2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
726 HAVE_FREEBSD_OS_FALSE
730 HAVE_OPENBSD_OS_FALSE
761 BUILD_INCLUDED_LIBINTL
768 INTL_LIBTOOL_SUFFIX_PREFIX
784 TRAY_MONITOR_CPPFLAGS
870 ac_subst_files='MCOMMON'
871 ac_precious_vars='build_alias
888 # Initialize some variables set by options.
890 ac_init_version=false
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
900 program_transform_name=s,x,x,
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE}'
925 infodir='${datarootdir}/info'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
946 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
974 cache_file=config.cache ;;
976 -datadir | --datadir | --datadi | --datad)
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
988 -disable-* | --disable-*)
989 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
992 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
993 { (exit 1); exit 1; }; }
994 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
995 eval enable_$ac_feature=no ;;
997 -docdir | --docdir | --docdi | --doc | --do)
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
1007 -enable-* | --enable-*)
1008 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1014 eval enable_$ac_feature=\$ac_optarg ;;
1016 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018 | --exec | --exe | --ex)
1019 ac_prev=exec_prefix ;;
1020 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022 | --exec=* | --exe=* | --ex=*)
1023 exec_prefix=$ac_optarg ;;
1025 -gas | --gas | --ga | --g)
1026 # Obsolete; use --with-gas.
1029 -help | --help | --hel | --he | -h)
1030 ac_init_help=long ;;
1031 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032 ac_init_help=recursive ;;
1033 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034 ac_init_help=short ;;
1036 -host | --host | --hos | --ho)
1037 ac_prev=host_alias ;;
1038 -host=* | --host=* | --hos=* | --ho=*)
1039 host_alias=$ac_optarg ;;
1041 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 htmldir=$ac_optarg ;;
1047 -includedir | --includedir | --includedi | --included | --include \
1048 | --includ | --inclu | --incl | --inc)
1049 ac_prev=includedir ;;
1050 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051 | --includ=* | --inclu=* | --incl=* | --inc=*)
1052 includedir=$ac_optarg ;;
1054 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057 infodir=$ac_optarg ;;
1059 -libdir | --libdir | --libdi | --libd)
1061 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062 libdir=$ac_optarg ;;
1064 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065 | --libexe | --libex | --libe)
1066 ac_prev=libexecdir ;;
1067 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068 | --libexe=* | --libex=* | --libe=*)
1069 libexecdir=$ac_optarg ;;
1071 -localedir | --localedir | --localedi | --localed | --locale)
1072 ac_prev=localedir ;;
1073 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074 localedir=$ac_optarg ;;
1076 -localstatedir | --localstatedir | --localstatedi | --localstated \
1077 | --localstate | --localstat | --localsta | --localst | --locals)
1078 ac_prev=localstatedir ;;
1079 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081 localstatedir=$ac_optarg ;;
1083 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086 mandir=$ac_optarg ;;
1088 -nfp | --nfp | --nf)
1089 # Obsolete; use --without-fp.
1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093 | --no-cr | --no-c | -n)
1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102 | --oldin | --oldi | --old | --ol | --o)
1103 ac_prev=oldincludedir ;;
1104 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107 oldincludedir=$ac_optarg ;;
1109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112 prefix=$ac_optarg ;;
1114 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115 | --program-pre | --program-pr | --program-p)
1116 ac_prev=program_prefix ;;
1117 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119 program_prefix=$ac_optarg ;;
1121 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122 | --program-suf | --program-su | --program-s)
1123 ac_prev=program_suffix ;;
1124 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126 program_suffix=$ac_optarg ;;
1128 -program-transform-name | --program-transform-name \
1129 | --program-transform-nam | --program-transform-na \
1130 | --program-transform-n | --program-transform- \
1131 | --program-transform | --program-transfor \
1132 | --program-transfo | --program-transf \
1133 | --program-trans | --program-tran \
1134 | --progr-tra | --program-tr | --program-t)
1135 ac_prev=program_transform_name ;;
1136 -program-transform-name=* | --program-transform-name=* \
1137 | --program-transform-nam=* | --program-transform-na=* \
1138 | --program-transform-n=* | --program-transform-=* \
1139 | --program-transform=* | --program-transfor=* \
1140 | --program-transfo=* | --program-transf=* \
1141 | --program-trans=* | --program-tran=* \
1142 | --progr-tra=* | --program-tr=* | --program-t=*)
1143 program_transform_name=$ac_optarg ;;
1145 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148 pdfdir=$ac_optarg ;;
1150 -psdir | --psdir | --psdi | --psd | --ps)
1152 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156 | -silent | --silent | --silen | --sile | --sil)
1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 sbindir=$ac_optarg ;;
1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167 | --sharedst | --shareds | --shared | --share | --shar \
1169 ac_prev=sharedstatedir ;;
1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 sharedstatedir=$ac_optarg ;;
1176 -site | --site | --sit)
1178 -site=* | --site=* | --sit=*)
1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184 srcdir=$ac_optarg ;;
1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187 | --syscon | --sysco | --sysc | --sys | --sy)
1188 ac_prev=sysconfdir ;;
1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191 sysconfdir=$ac_optarg ;;
1193 -target | --target | --targe | --targ | --tar | --ta | --t)
1194 ac_prev=target_alias ;;
1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196 target_alias=$ac_optarg ;;
1198 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 -version | --version | --versio | --versi | --vers | -V)
1202 ac_init_version=: ;;
1205 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 { echo "$as_me: error: invalid package name: $ac_package" >&2
1209 { (exit 1); exit 1; }; }
1210 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1211 eval with_$ac_package=\$ac_optarg ;;
1213 -without-* | --without-*)
1214 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220 eval with_$ac_package=no ;;
1223 # Obsolete; use --with-x.
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1240 -*) { echo "$as_me: error: unrecognized option: $ac_option
1241 Try \`$0 --help' for more information." >&2
1242 { (exit 1); exit 1; }; }
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1249 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1250 { (exit 1); exit 1; }; }
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1255 # FIXME: should be removed in autoconf 3.0.
1256 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 { echo "$as_me: error: missing argument to $ac_option" >&2
1268 { (exit 1); exit 1; }; }
1271 # Be sure to have absolute directory names.
1272 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273 datadir sysconfdir sharedstatedir localstatedir includedir \
1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275 libdir localedir mandir
1277 eval ac_val=\$$ac_var
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1283 { (exit 1); exit 1; }; }
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1298 If a cross compiler is detected then cross compile mode will be used." >&2
1299 elif test "x$build_alias" != "x$host_alias"; then
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307 test "$silent" = yes && exec 6>/dev/null
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 { echo "$as_me: error: Working directory cannot be determined" >&2
1314 { (exit 1); exit 1; }; }
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 { echo "$as_me: error: pwd does not report name of working directory" >&2
1317 { (exit 1); exit 1; }; }
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$0" ||
1325 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$0" : 'X\(//\)[^/]' \| \
1327 X"$0" : 'X\(//\)$' \| \
1328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1357 { (exit 1); exit 1; }; }
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1362 { (exit 1); exit 1; }; }
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 for ac_var in $ac_precious_vars; do
1375 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_${ac_var}_value=\$${ac_var}
1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 # Report the --help message.
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1388 \`configure' configures this package to adapt to many kinds of systems.
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1395 Defaults for the options are specified in brackets.
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print \`checking...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for \`--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 By default, \`make install' will install all the files in
1415 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417 for instance \`--prefix=\$HOME'.
1419 For better control, use the options below.
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1446 --x-includes=DIR X include files are in DIR
1447 --x-libraries=DIR X library files are in DIR
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 if test -n "$ac_init_help"; then
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --disable-nls do not use Native Language Support
1463 --disable-rpath do not hardcode runtime library paths
1464 --disable-libdb disable build of accurate mode with libdb
1465 --enable-gnome enable build of bgnome-console GUI disabled
1466 --enable-bat enable build of bat Qt4 GUI disabled
1467 --enable-bwx-console enable build of wxWidgets console disabled
1468 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1469 --enable-smartalloc enable smartalloc debugging support disabled
1470 --enable-static-tools enable static tape tools disabled
1471 --enable-static-fd enable static File daemon disabled
1472 --enable-static-sd enable static Storage daemon disabled
1473 --enable-static-dir enable static Director disabled
1474 --enable-static-cons enable static Console disabled
1475 --enable-client-only build client (File daemon) only disabled
1476 --enable-build-dird enable building of dird (Director) enabled
1477 --enable-build-stored enable building of stored (Storage daemon) enabled
1478 --disable-conio disable conio support enabled
1480 --enable-ipv6 enable ipv6 support enabled
1482 --disable-readline disable readline support disable
1484 --enable-batch-insert enable the DB batch insert code disabled
1485 --enable-batch-insert enable the DB batch insert code disabled
1486 --disable-largefile omit support for large files
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-gnu-ld assume the C compiler uses GNU ld default=no
1492 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1493 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1494 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1495 --without-libintl-prefix don't search for libintl in includedir and libdir
1496 --with-included-gettext use the GNU gettext library included here
1497 --with-bdb-dir=DIR Berkeley DB installation directory
1498 --with-qwt[=DIR] specify qwt library directory
1499 --with-readline[=DIR] specify readline library directory
1501 --with-python[=DIR] Include Python support. DIR is the Python base
1502 install directory, default is to search through
1503 a number of common places for the Python files.
1504 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1505 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1506 --with-working-dir=PATH specify path of Bacula working directory
1507 --with-archivedir=PATH specify path of SD archive directory
1508 --with-scriptdir=PATH specify path of Bacula scripts directory
1509 --with-dump-email=EMAIL dump email address
1510 --with-job-email=EMAIL job output email address
1511 --with-smtp-host=HOST SMTP mail host address
1512 --with-pid-dir=PATH specify location of Bacula pid files
1513 --with-subsys-dir=PATH specify location of Bacula subsys file
1514 --with-baseport=PORT specify base port address for daemons
1515 --with-dir-password=PASSWORD specify Director's password
1516 --with-fd-password=PASSWORD specify Client's password
1517 --with-sd-password=PASSWORD specify Storage daemon's password
1518 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1519 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1520 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1521 --with-db-name=DBNAME specify database name (default bacula)
1522 --with-db-user=UNAME specify database user (default bacula)
1523 --with-db-password=UNAME specify database password (default *none*)
1524 --with-db-port=DBPORT specify a database port (default null)
1525 --with-dir-user=USER specify user for Director daemon
1526 --with-dir-group=GROUP specify group for Director daemon
1527 --with-sd-user=USER specify user for Storage daemon
1528 --with-sd-group=GROUP specify group for Storage daemon
1529 --with-fd-user=USER specify user for File daemon
1530 --with-fd-group=GROUP specify group for File daemon
1531 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1532 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1533 base install directory, defaults to /usr/local/pgsql
1535 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1536 install directory, default is to search through
1537 a number of common places for the MySQL files.
1539 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1540 install directory, default is to search through
1541 a number of common places for the MySQL files.
1543 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1544 install directory, default is to search through
1545 a number of common places for the SQLite3 files.
1547 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1548 install directory, default is to search through
1549 a number of common places for the SQLite files.
1551 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1552 install directory, default is to search through
1553 a number of common places for the DBI files.
1555 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1556 the one DBI driver like Mysql, Postgresql, others.
1557 Default is to not configure any driver.
1558 --with-x use the X Window System
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1571 WXCONFIG wx-config command. On some systems, you must set it to
1572 wx-config-2.6 to use wxWidgets 2.6.
1573 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1574 XMKMF Path to xmkmf, Makefile generator for X Window System
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" || continue
1590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1593 # A ".." for each directory in $ac_dir_suffix.
1594 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1595 case $ac_top_builddir_sub in
1596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 ac_abs_top_builddir=$ac_pwd
1601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602 # for backward compatibility:
1603 ac_top_builddir=$ac_top_build_prefix
1606 .) # We are building in place.
1608 ac_top_srcdir=$ac_top_builddir_sub
1609 ac_abs_top_srcdir=$ac_pwd ;;
1610 [\\/]* | ?:[\\/]* ) # Absolute name.
1611 ac_srcdir=$srcdir$ac_dir_suffix;
1612 ac_top_srcdir=$srcdir
1613 ac_abs_top_srcdir=$srcdir ;;
1615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616 ac_top_srcdir=$ac_top_build_prefix$srcdir
1617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621 cd "$ac_dir" || { ac_status=$?; continue; }
1622 # Check for guested configure.
1623 if test -f "$ac_srcdir/configure.gnu"; then
1625 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626 elif test -f "$ac_srcdir/configure"; then
1628 $SHELL "$ac_srcdir/configure" --help=recursive
1630 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632 cd "$ac_pwd" || { ac_status=$?; break; }
1636 test -n "$ac_init_help" && exit $ac_status
1637 if $ac_init_version; then
1640 generated by GNU Autoconf 2.61
1642 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1643 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1644 This configure script is free software; the Free Software Foundation
1645 gives unlimited permission to copy, distribute and modify it.
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1653 It was created by $as_me, which was
1654 generated by GNU Autoconf 2.61. Invocation command line was
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1675 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1676 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1679 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1680 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1681 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 test -z "$as_dir" && as_dir=.
1690 echo "PATH: $as_dir"
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_must_keep_next=false
1720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722 | -silent | --silent | --silen | --sile | --sil)
1725 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731 if test $ac_must_keep_next = true; then
1732 ac_must_keep_next=false # Got value, back to normal.
1735 *=* | --config-cache | -C | -disable-* | --disable-* \
1736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738 | -with-* | --with-* | -without-* | --without-* | --x)
1739 case "$ac_configure_args0 " in
1740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 -* ) ac_must_keep_next=true ;;
1746 ac_configure_args="$ac_configure_args '$ac_arg'"
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log. We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760 # Save into config.log some information that might help in debugging.
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1770 # The following way of writing the cache mishandles newlines in values,
1772 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773 eval ac_val=\$$ac_var
1777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781 _ | IFS | as_nl) ;; #(
1782 *) $as_unset $ac_var ;;
1787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788 *${as_nl}ac_space=\ *)
1790 "s/'\''/'\''\\\\'\'''\''/g;
1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1807 for ac_var in $ac_subst_vars
1809 eval ac_val=\$$ac_var
1811 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 echo "$ac_var='\''$ac_val'\''"
1817 if test -n "$ac_subst_files"; then
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1824 for ac_var in $ac_subst_files
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 echo "$ac_var='\''$ac_val'\''"
1835 if test -s confdefs.h; then
1845 test "$ac_signal" != 0 &&
1846 echo "$as_me: caught signal $ac_signal"
1847 echo "$as_me: exit $exit_status"
1849 rm -f core *.core core.conftest.* &&
1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853 for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1861 # Predefined preprocessor variables.
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1895 set x "$ac_default_prefix/share/config.site" \
1896 "$ac_default_prefix/etc/config.site"
1901 if test -r "$ac_site_file"; then
1902 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1909 if test -r "$cache_file"; then
1910 # Some versions of bash will fail to source /dev/null (special
1911 # files actually), so we avoid doing that.
1912 if test -f "$cache_file"; then
1913 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917 *) . "./$cache_file";;
1921 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1926 # Check that the precious variables saved in the cache have kept the same
1928 ac_cache_corrupted=false
1929 for ac_var in $ac_precious_vars; do
1930 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931 eval ac_new_set=\$ac_env_${ac_var}_set
1932 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933 eval ac_new_val=\$ac_env_${ac_var}_value
1934 case $ac_old_set,$ac_new_set in
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1940 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1945 if test "x$ac_old_val" != "x$ac_new_val"; then
1946 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1947 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1948 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1949 echo "$as_me: former value: $ac_old_val" >&2;}
1950 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1951 echo "$as_me: current value: $ac_new_val" >&2;}
1952 ac_cache_corrupted=:
1955 # Pass precious variables to config.status.
1956 if test "$ac_new_set" = set; then
1958 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 *) ac_arg=$ac_var=$ac_new_val ;;
1961 case " $ac_configure_args " in
1962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1963 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967 if $ac_cache_corrupted; then
1968 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1969 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1970 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1971 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1972 { (exit 1); exit 1; }; }
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2006 if test -f "$ac_dir/install-sh"; then
2008 ac_install_sh="$ac_aux_dir/install-sh -c"
2010 elif test -f "$ac_dir/install.sh"; then
2012 ac_install_sh="$ac_aux_dir/install.sh -c"
2014 elif test -f "$ac_dir/shtool"; then
2016 ac_install_sh="$ac_aux_dir/shtool install -c"
2020 if test -z "$ac_aux_dir"; then
2021 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2022 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2023 { (exit 1); exit 1; }; }
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2035 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2043 # Extract the first word of "$ac_prog", so it can be a program name with args.
2044 set dummy $ac_prog; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2062 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 TRUEPRG=$ac_cv_path_TRUEPRG
2074 if test -n "$TRUEPRG"; then
2075 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2076 echo "${ECHO_T}$TRUEPRG" >&6; }
2078 { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2083 test -n "$TRUEPRG" && break
2085 test -n "$TRUEPRG" || TRUEPRG=":"
2087 for ac_prog in false
2089 # Extract the first word of "$ac_prog", so it can be a program name with args.
2090 set dummy $ac_prog; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 FALSEPRG=$ac_cv_path_FALSEPRG
2120 if test -n "$FALSEPRG"; then
2121 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2122 echo "${ECHO_T}$FALSEPRG" >&6; }
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2129 test -n "$FALSEPRG" && break
2131 test -n "$FALSEPRG" || FALSEPRG=":"
2135 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2136 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2137 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2138 echo "configuring for bacula $VERSION ($DATE)"
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147 if test -n "$ac_tool_prefix"; then
2148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 if test -n "$CC"; then
2177 { echo "$as_me:$LINENO: result: $CC" >&5
2178 echo "${ECHO_T}$CC" >&6; }
2180 { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2186 if test -z "$ac_cv_prog_CC"; then
2188 # Extract the first word of "gcc", so it can be a program name with args.
2189 set dummy gcc; ac_word=$2
2190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 if test -n "$ac_ct_CC"; then
2196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205 ac_cv_prog_ac_ct_CC="gcc"
2206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2216 if test -n "$ac_ct_CC"; then
2217 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2218 echo "${ECHO_T}$ac_ct_CC" >&6; }
2220 { echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6; }
2224 if test "x$ac_ct_CC" = x; then
2227 case $cross_compiling:$ac_tool_warned in
2229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2230 whose name does not start with the host triplet. If you think this
2231 configuration is useful to you, please write to autoconf@gnu.org." >&5
2232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2233 whose name does not start with the host triplet. If you think this
2234 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2235 ac_tool_warned=yes ;;
2243 if test -z "$CC"; then
2244 if test -n "$ac_tool_prefix"; then
2245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2246 set dummy ${ac_tool_prefix}cc; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_prog_CC+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 if test -n "$CC"; then
2253 ac_cv_prog_CC="$CC" # Let the user override the test.
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262 ac_cv_prog_CC="${ac_tool_prefix}cc"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 if test -n "$CC"; then
2274 { echo "$as_me:$LINENO: result: $CC" >&5
2275 echo "${ECHO_T}$CC" >&6; }
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2284 if test -z "$CC"; then
2285 # Extract the first word of "cc", so it can be a program name with args.
2286 set dummy cc; 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_prog_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test -n "$CC"; then
2293 ac_cv_prog_CC="$CC" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2304 ac_prog_rejected=yes
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 if test $ac_prog_rejected = yes; then
2316 # We found a bogon in the path, so make sure we never use it.
2317 set dummy $ac_cv_prog_CC
2319 if test $# != 0; then
2320 # We chose a different compiler from the bogus one.
2321 # However, it has the same basename, so the bogon will be chosen
2322 # first if we set CC to just the basename; use the full file name.
2324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2330 if test -n "$CC"; then
2331 { echo "$as_me:$LINENO: result: $CC" >&5
2332 echo "${ECHO_T}$CC" >&6; }
2334 { echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6; }
2340 if test -z "$CC"; then
2341 if test -n "$ac_tool_prefix"; then
2342 for ac_prog in cl.exe
2344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_CC+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test -n "$CC"; then
2352 ac_cv_prog_CC="$CC" # Let the user override the test.
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 if test -n "$CC"; then
2373 { echo "$as_me:$LINENO: result: $CC" >&5
2374 echo "${ECHO_T}$CC" >&6; }
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2381 test -n "$CC" && break
2384 if test -z "$CC"; then
2386 for ac_prog in cl.exe
2388 # Extract the first word of "$ac_prog", so it can be a program name with args.
2389 set dummy $ac_prog; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$ac_ct_CC"; then
2396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_ac_ct_CC="$ac_prog"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416 if test -n "$ac_ct_CC"; then
2417 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2418 echo "${ECHO_T}$ac_ct_CC" >&6; }
2420 { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2425 test -n "$ac_ct_CC" && break
2428 if test "x$ac_ct_CC" = x; then
2431 case $cross_compiling:$ac_tool_warned in
2433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet. If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&5
2436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet. If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2439 ac_tool_warned=yes ;;
2448 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: no acceptable C compiler found in \$PATH
2451 See \`config.log' for more details." >&2;}
2452 { (exit 1); exit 1; }; }
2454 # Provide some information about the compiler.
2455 echo "$as_me:$LINENO: checking for C compiler version" >&5
2456 ac_compiler=`set X $ac_compile; echo $2`
2457 { (ac_try="$ac_compiler --version >&5"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compiler --version >&5") 2>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }
2467 { (ac_try="$ac_compiler -v >&5"
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_compiler -v >&5") 2>&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }
2477 { (ac_try="$ac_compiler -V >&5"
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_compiler -V >&5") 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2503 ac_clean_files_save=$ac_clean_files
2504 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2505 # Try to create an executable without -o first, disregard a.out.
2506 # It will help us diagnose broken compilers, and finding out an intuition
2508 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2509 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2510 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2512 # List of possible output files, starting from the most likely.
2513 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2514 # only as a last resort. b.out is created by i960 compilers.
2515 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2517 # The IRIX 6 linker writes into existing files which may not be
2518 # executable, retaining their permissions. Remove them first so a
2519 # subsequent execution test works.
2521 for ac_file in $ac_files
2524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2525 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2530 if { (ac_try="$ac_link_default"
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_link_default") 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; then
2540 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2541 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2542 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2543 # so that the user can short-circuit this test for compilers unknown to
2545 for ac_file in $ac_files ''
2547 test -f "$ac_file" || continue
2549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2552 # We found the default executable, but exeext='' is most
2556 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2558 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2560 # We set ac_cv_exeext here because the later test for it is not
2561 # safe: cross compilers may not add the suffix if given an `-o'
2562 # argument, so we may need to know it at that point already.
2563 # Even if this section looks crufty: it has the advantage of
2570 test "$ac_cv_exeext" = no && ac_cv_exeext=
2576 { echo "$as_me:$LINENO: result: $ac_file" >&5
2577 echo "${ECHO_T}$ac_file" >&6; }
2578 if test -z "$ac_file"; then
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2582 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&5
2584 echo "$as_me: error: C compiler cannot create executables
2585 See \`config.log' for more details." >&2;}
2586 { (exit 77); exit 77; }; }
2589 ac_exeext=$ac_cv_exeext
2591 # Check that the compiler produces executables we can run. If not, either
2592 # the compiler is broken, or we cross compile.
2593 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2596 # If not cross compiling, check that we can run a simple program.
2597 if test "$cross_compiling" != yes; then
2598 if { ac_try='./$ac_file'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2610 if test "$cross_compiling" = maybe; then
2613 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2614 If you meant to cross compile, use \`--host'.
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot run C compiled programs.
2617 If you meant to cross compile, use \`--host'.
2618 See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2623 { echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6; }
2626 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2627 ac_clean_files=$ac_clean_files_save
2628 # Check that the compiler produces executables we can run. If not, either
2629 # the compiler is broken, or we cross compile.
2630 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2632 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2633 echo "${ECHO_T}$cross_compiling" >&6; }
2635 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2636 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2637 if { (ac_try="$ac_link"
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_link") 2>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; then
2647 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2648 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2649 # work properly (i.e., refer to `conftest.exe'), while it won't with
2651 for ac_file in conftest.exe conftest conftest.*; do
2652 test -f "$ac_file" || continue
2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2661 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2664 See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2668 rm -f conftest$ac_cv_exeext
2669 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2670 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2672 rm -f conftest.$ac_ext
2673 EXEEXT=$ac_cv_exeext
2675 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2676 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2677 if test "${ac_cv_objext+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 cat >conftest.$ac_ext <<_ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 rm -f conftest.o conftest.obj
2696 if { (ac_try="$ac_compile"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; then
2706 for ac_file in conftest.o conftest.obj conftest.*; do
2707 test -f "$ac_file" || continue;
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2721 See \`config.log' for more details." >&2;}
2722 { (exit 1); exit 1; }; }
2725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2727 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2728 echo "${ECHO_T}$ac_cv_objext" >&6; }
2729 OBJEXT=$ac_cv_objext
2731 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2732 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2733 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 cat >conftest.$ac_ext <<_ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2754 rm -f conftest.$ac_objext
2755 if { (ac_try="$ac_compile"
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compile") 2>conftest.er1
2763 grep -v '^ *+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } && {
2768 test -z "$ac_c_werror_flag" ||
2769 test ! -s conftest.err
2770 } && test -s conftest.$ac_objext; then
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2783 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2784 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2785 GCC=`test $ac_compiler_gnu = yes && echo yes`
2786 ac_test_CFLAGS=${CFLAGS+set}
2787 ac_save_CFLAGS=$CFLAGS
2788 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2789 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_cc_g+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 ac_save_c_werror_flag=$ac_c_werror_flag
2794 ac_c_werror_flag=yes
2797 cat >conftest.$ac_ext <<_ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2812 rm -f conftest.$ac_objext
2813 if { (ac_try="$ac_compile"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_compile") 2>conftest.er1
2821 grep -v '^ *+' conftest.er1 >conftest.err
2823 cat conftest.err >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } && {
2826 test -z "$ac_c_werror_flag" ||
2827 test ! -s conftest.err
2828 } && test -s conftest.$ac_objext; then
2831 echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2835 cat >conftest.$ac_ext <<_ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2850 rm -f conftest.$ac_objext
2851 if { (ac_try="$ac_compile"
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_compile") 2>conftest.er1
2859 grep -v '^ *+' conftest.er1 >conftest.err
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } && {
2864 test -z "$ac_c_werror_flag" ||
2865 test ! -s conftest.err
2866 } && test -s conftest.$ac_objext; then
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2872 ac_c_werror_flag=$ac_save_c_werror_flag
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compile") 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } && {
2903 test -z "$ac_c_werror_flag" ||
2904 test ! -s conftest.err
2905 } && test -s conftest.$ac_objext; then
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921 ac_c_werror_flag=$ac_save_c_werror_flag
2923 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2924 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2925 if test "$ac_test_CFLAGS" = set; then
2926 CFLAGS=$ac_save_CFLAGS
2927 elif test $ac_cv_prog_cc_g = yes; then
2928 if test "$GCC" = yes; then
2934 if test "$GCC" = yes; then
2940 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2941 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2942 if test "${ac_cv_prog_cc_c89+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 ac_cv_prog_cc_c89=no
2947 cat >conftest.$ac_ext <<_ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2955 #include <sys/types.h>
2956 #include <sys/stat.h>
2957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2958 struct buf { int x; };
2959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2960 static char *e (p, i)
2966 static char *f (char * (*g) (char **, int), char **p, ...)
2971 s = g (p, va_arg (v,int));
2976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2977 function prototypes and stuff, but not '\xHH' hex character constants.
2978 These don't provoke an error unfortunately, instead are silently treated
2979 as 'x'. The following induces an error, until -std is added to get
2980 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2981 array size at least. It's necessary to write '\x00'==0 to get something
2982 that's true only with -std. */
2983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2986 inside strings and character constants. */
2988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2990 int test (int i, double x);
2991 struct s1 {int (*f) (int a);};
2992 struct s2 {int (*f) (double a);};
2993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3005 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3007 CC="$ac_save_CC $ac_arg"
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compile") 2>conftest.er1
3017 grep -v '^ *+' conftest.er1 >conftest.err
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } && {
3022 test -z "$ac_c_werror_flag" ||
3023 test ! -s conftest.err
3024 } && test -s conftest.$ac_objext; then
3025 ac_cv_prog_cc_c89=$ac_arg
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3033 rm -f core conftest.err conftest.$ac_objext
3034 test "x$ac_cv_prog_cc_c89" != "xno" && break
3036 rm -f conftest.$ac_ext
3041 case "x$ac_cv_prog_cc_c89" in
3043 { echo "$as_me:$LINENO: result: none needed" >&5
3044 echo "${ECHO_T}none needed" >&6; } ;;
3046 { echo "$as_me:$LINENO: result: unsupported" >&5
3047 echo "${ECHO_T}unsupported" >&6; } ;;
3049 CC="$CC $ac_cv_prog_cc_c89"
3050 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3051 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 ac_cpp='$CXXCPP $CPPFLAGS'
3063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3066 if test -z "$CXX"; then
3067 if test -n "$CCC"; then
3070 if test -n "$ac_tool_prefix"; then
3071 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_CXX+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 if test -n "$CXX"; then
3081 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 if test -n "$CXX"; then
3102 { echo "$as_me:$LINENO: result: $CXX" >&5
3103 echo "${ECHO_T}$CXX" >&6; }
3105 { echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6; }
3110 test -n "$CXX" && break
3113 if test -z "$CXX"; then
3115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3117 # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3121 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 if test -n "$ac_ct_CXX"; then
3125 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_ac_ct_CXX="$ac_prog"
3135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3145 if test -n "$ac_ct_CXX"; then
3146 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3147 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3149 { echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6; }
3154 test -n "$ac_ct_CXX" && break
3157 if test "x$ac_ct_CXX" = x; then
3160 case $cross_compiling:$ac_tool_warned in
3162 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3163 whose name does not start with the host triplet. If you think this
3164 configuration is useful to you, please write to autoconf@gnu.org." >&5
3165 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3166 whose name does not start with the host triplet. If you think this
3167 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3168 ac_tool_warned=yes ;;
3176 # Provide some information about the compiler.
3177 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3178 ac_compiler=`set X $ac_compile; echo $2`
3179 { (ac_try="$ac_compiler --version >&5"
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_compiler --version >&5") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }
3189 { (ac_try="$ac_compiler -v >&5"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_compiler -v >&5") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }
3199 { (ac_try="$ac_compiler -V >&5"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compiler -V >&5") 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }
3210 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3211 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3212 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3233 rm -f conftest.$ac_objext
3234 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && {
3247 test -z "$ac_cxx_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3262 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3263 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3264 GXX=`test $ac_compiler_gnu = yes && echo yes`
3265 ac_test_CXXFLAGS=${CXXFLAGS+set}
3266 ac_save_CXXFLAGS=$CXXFLAGS
3267 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3268 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_cxx_g+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3273 ac_cxx_werror_flag=yes
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_compile") 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } && {
3305 test -z "$ac_cxx_werror_flag" ||
3306 test ! -s conftest.err
3307 } && test -s conftest.$ac_objext; then
3308 ac_cv_prog_cxx_g=yes
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3314 cat >conftest.$ac_ext <<_ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
3338 grep -v '^ *+' conftest.er1 >conftest.err
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && {
3343 test -z "$ac_cxx_werror_flag" ||
3344 test ! -s conftest.err
3345 } && test -s conftest.$ac_objext; then
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3351 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3353 cat >conftest.$ac_ext <<_ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3368 rm -f conftest.$ac_objext
3369 if { (ac_try="$ac_compile"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_compile") 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } && {
3382 test -z "$ac_cxx_werror_flag" ||
3383 test ! -s conftest.err
3384 } && test -s conftest.$ac_objext; then
3385 ac_cv_prog_cxx_g=yes
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3402 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3403 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3404 if test "$ac_test_CXXFLAGS" = set; then
3405 CXXFLAGS=$ac_save_CXXFLAGS
3406 elif test $ac_cv_prog_cxx_g = yes; then
3407 if test "$GXX" = yes; then
3413 if test "$GXX" = yes; then
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 if test "x$CC" != xcc; then
3426 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3427 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3429 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3430 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3432 set dummy $CC; ac_cc=`echo $2 |
3433 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3434 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 cat >conftest.$ac_ext <<_ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3452 # Make sure it works both with $CC and with simple cc.
3453 # We do the test twice because some compilers refuse to overwrite an
3454 # existing .o file with -o, though they will create one.
3455 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3457 if { (case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_try") 2>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_try") 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); };
3476 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3477 if test "x$CC" != xcc; then
3478 # Test first that cc exists at all.
3479 if { ac_try='cc -c conftest.$ac_ext >&5'
3480 { (case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_try") 2>&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3491 if { (case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_try") 2>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } &&
3500 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_try") 2>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); };
3513 # cc exists but doesn't like -o.
3514 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3519 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3521 rm -f core conftest*
3524 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3525 { echo "$as_me:$LINENO: result: yes" >&5
3526 echo "${ECHO_T}yes" >&6; }
3528 { echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6; }
3531 cat >>confdefs.h <<\_ACEOF
3532 #define NO_MINUS_C_MINUS_O 1
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3543 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3544 # On Suns, sometimes $CPP names a directory.
3545 if test -n "$CPP" && test -d "$CPP"; then
3548 if test -z "$CPP"; then
3549 if test "${ac_cv_prog_CPP+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 # Double quotes because CPP needs to be expanded
3553 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3556 for ac_c_preproc_warn_flag in '' yes
3558 # Use a header file that comes with gcc, so configuring glibc
3559 # with a fresh cross-compiler works.
3560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561 # <limits.h> exists even on freestanding compilers.
3562 # On the NeXT, cc -E runs the code through the compiler's parser,
3563 # not just through cpp. "Syntax error" is here to catch this case.
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3571 # include <limits.h>
3573 # include <assert.h>
3577 if { (ac_try="$ac_cpp conftest.$ac_ext"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } >/dev/null && {
3590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 # Broken: fails on valid input.
3602 rm -f conftest.err conftest.$ac_ext
3604 # OK, works on sane cases. Now check whether nonexistent headers
3605 # can be detected and how.
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 #include <ac_nonexistent.h>
3614 if { (ac_try="$ac_cpp conftest.$ac_ext"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } >/dev/null && {
3627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3630 # Broken: success on invalid input.
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 # Passes both tests.
3641 rm -f conftest.err conftest.$ac_ext
3644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645 rm -f conftest.err conftest.$ac_ext
3646 if $ac_preproc_ok; then
3658 { echo "$as_me:$LINENO: result: $CPP" >&5
3659 echo "${ECHO_T}$CPP" >&6; }
3661 for ac_c_preproc_warn_flag in '' yes
3663 # Use a header file that comes with gcc, so configuring glibc
3664 # with a fresh cross-compiler works.
3665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3666 # <limits.h> exists even on freestanding compilers.
3667 # On the NeXT, cc -E runs the code through the compiler's parser,
3668 # not just through cpp. "Syntax error" is here to catch this case.
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3676 # include <limits.h>
3678 # include <assert.h>
3682 if { (ac_try="$ac_cpp conftest.$ac_ext"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3690 grep -v '^ *+' conftest.er1 >conftest.err
3692 cat conftest.err >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } >/dev/null && {
3695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3696 test ! -s conftest.err
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 # Broken: fails on valid input.
3707 rm -f conftest.err conftest.$ac_ext
3709 # OK, works on sane cases. Now check whether nonexistent headers
3710 # can be detected and how.
3711 cat >conftest.$ac_ext <<_ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3717 #include <ac_nonexistent.h>
3719 if { (ac_try="$ac_cpp conftest.$ac_ext"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null && {
3732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3735 # Broken: success on invalid input.
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3741 # Passes both tests.
3746 rm -f conftest.err conftest.$ac_ext
3749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3750 rm -f conftest.err conftest.$ac_ext
3751 if $ac_preproc_ok; then
3754 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3755 See \`config.log' for more details." >&5
3756 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3757 See \`config.log' for more details." >&2;}
3758 { (exit 1); exit 1; }; }
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3769 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3770 if test "${ac_cv_path_GREP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 # Extract the first word of "grep ggrep" to use in msg output
3774 if test -z "$GREP"; then
3775 set dummy grep ggrep; ac_prog_name=$2
3776 if test "${ac_cv_path_GREP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 ac_path_GREP_found=false
3780 # Loop through the user's path and test for each of PROGNAME-LIST
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3785 test -z "$as_dir" && as_dir=.
3786 for ac_prog in grep ggrep; do
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3789 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3790 # Check for GNU ac_path_GREP and select it if it is found.
3791 # Check for GNU $ac_path_GREP
3792 case `"$ac_path_GREP" --version 2>&1` in
3794 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3797 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3800 cat "conftest.in" "conftest.in" >"conftest.tmp"
3801 mv "conftest.tmp" "conftest.in"
3802 cp "conftest.in" "conftest.nl"
3803 echo 'GREP' >> "conftest.nl"
3804 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3806 ac_count=`expr $ac_count + 1`
3807 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3808 # Best one so far, save it but keep looking for a better one
3809 ac_cv_path_GREP="$ac_path_GREP"
3810 ac_path_GREP_max=$ac_count
3812 # 10*(2^10) chars as input seems more than enough
3813 test $ac_count -gt 10 && break
3815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3819 $ac_path_GREP_found && break 3
3829 GREP="$ac_cv_path_GREP"
3830 if test -z "$GREP"; then
3831 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3832 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3833 { (exit 1); exit 1; }; }
3837 ac_cv_path_GREP=$GREP
3842 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3843 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3844 GREP="$ac_cv_path_GREP"
3847 { echo "$as_me:$LINENO: checking for egrep" >&5
3848 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3849 if test "${ac_cv_path_EGREP+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3853 then ac_cv_path_EGREP="$GREP -E"
3855 # Extract the first word of "egrep" to use in msg output
3856 if test -z "$EGREP"; then
3857 set dummy egrep; ac_prog_name=$2
3858 if test "${ac_cv_path_EGREP+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 ac_path_EGREP_found=false
3862 # Loop through the user's path and test for each of PROGNAME-LIST
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3867 test -z "$as_dir" && as_dir=.
3868 for ac_prog in egrep; do
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3871 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3872 # Check for GNU ac_path_EGREP and select it if it is found.
3873 # Check for GNU $ac_path_EGREP
3874 case `"$ac_path_EGREP" --version 2>&1` in
3876 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3879 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3882 cat "conftest.in" "conftest.in" >"conftest.tmp"
3883 mv "conftest.tmp" "conftest.in"
3884 cp "conftest.in" "conftest.nl"
3885 echo 'EGREP' >> "conftest.nl"
3886 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3888 ac_count=`expr $ac_count + 1`
3889 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3890 # Best one so far, save it but keep looking for a better one
3891 ac_cv_path_EGREP="$ac_path_EGREP"
3892 ac_path_EGREP_max=$ac_count
3894 # 10*(2^10) chars as input seems more than enough
3895 test $ac_count -gt 10 && break
3897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3901 $ac_path_EGREP_found && break 3
3911 EGREP="$ac_cv_path_EGREP"
3912 if test -z "$EGREP"; then
3913 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3914 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3915 { (exit 1); exit 1; }; }
3919 ac_cv_path_EGREP=$EGREP
3925 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3926 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3927 EGREP="$ac_cv_path_EGREP"
3930 if test $ac_cv_c_compiler_gnu = yes; then
3931 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3932 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3933 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 ac_pattern="Autoconf.*'x'"
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3948 ac_cv_prog_gcc_traditional=yes
3950 ac_cv_prog_gcc_traditional=no
3955 if test $ac_cv_prog_gcc_traditional = no; then
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3967 ac_cv_prog_gcc_traditional=yes
3973 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3974 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3975 if test $ac_cv_prog_gcc_traditional = yes; then
3976 CC="$CC -traditional"
3980 BASECC=`basename $CC`
3982 if test "x$BASECC" = xgcc; then
3983 cat >>confdefs.h <<\_ACEOF
3989 # Extract the first word of "$CXX", so it can be a program name with args.
3990 set dummy $CXX; ac_word=$2
3991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993 if test "${ac_cv_path_CXX+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4021 if test -n "$CXX"; then
4022 { echo "$as_me:$LINENO: result: $CXX" >&5
4023 echo "${ECHO_T}$CXX" >&6; }
4025 { echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6; }
4030 if test ! -e $CXX; then
4031 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4032 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4033 { (exit 1); exit 1; }; }
4036 # Find a good install program. We prefer a C program (faster),
4037 # so one script is as good as another. But avoid the broken or
4038 # incompatible versions:
4039 # SysV /etc/install, /usr/sbin/install
4040 # SunOS /usr/etc/install
4041 # IRIX /sbin/install
4043 # AmigaOS /C/install, which installs bootblocks on floppy discs
4044 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4045 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4046 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4047 # OS/2's system install, which has a completely different semantic
4048 # ./install, which can be erroneously created by make from ./install.sh.
4049 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4050 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4051 if test -z "$INSTALL"; then
4052 if test "${ac_cv_path_install+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 # Account for people who put trailing slashes in PATH elements.
4062 ./ | .// | /cC/* | \
4063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4064 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4067 # OSF1 and SCO ODT 3.0 have their own names for install.
4068 # Don't use installbsd from OSF since it installs stuff as root
4070 for ac_prog in ginstall scoinst install; do
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4073 if test $ac_prog = install &&
4074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4075 # AIX install. It has an incompatible calling convention.
4077 elif test $ac_prog = install &&
4078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4079 # program-specific install script used by HP pwplus--don't use.
4082 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4095 if test "${ac_cv_path_install+set}" = set; then
4096 INSTALL=$ac_cv_path_install
4098 # As a last resort, use the slow shell script. Don't cache a
4099 # value for INSTALL within a source directory, because that will
4100 # break other packages using the cache if that directory is
4101 # removed, or if the value is a relative name.
4102 INSTALL=$ac_install_sh
4105 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4106 echo "${ECHO_T}$INSTALL" >&6; }
4108 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4109 # It thinks the first close brace ends the variable substitution.
4110 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4112 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4114 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4116 if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4121 if test "${ac_cv_prog_RANLIB+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 if test -n "$RANLIB"; then
4125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 RANLIB=$ac_cv_prog_RANLIB
4145 if test -n "$RANLIB"; then
4146 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4147 echo "${ECHO_T}$RANLIB" >&6; }
4149 { echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6; }
4155 if test -z "$ac_cv_prog_RANLIB"; then
4156 ac_ct_RANLIB=$RANLIB
4157 # Extract the first word of "ranlib", so it can be a program name with args.
4158 set dummy ranlib; ac_word=$2
4159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 if test -n "$ac_ct_RANLIB"; then
4165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_prog_ac_ct_RANLIB="ranlib"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4185 if test -n "$ac_ct_RANLIB"; then
4186 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4187 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4189 { echo "$as_me:$LINENO: result: no" >&5
4190 echo "${ECHO_T}no" >&6; }
4193 if test "x$ac_ct_RANLIB" = x; then
4196 case $cross_compiling:$ac_tool_warned in
4198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4199 whose name does not start with the host triplet. If you think this
4200 configuration is useful to you, please write to autoconf@gnu.org." >&5
4201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4202 whose name does not start with the host triplet. If you think this
4203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4204 ac_tool_warned=yes ;;
4206 RANLIB=$ac_ct_RANLIB
4209 RANLIB="$ac_cv_prog_RANLIB"
4212 # Extract the first word of "mv", so it can be a program name with args.
4213 set dummy mv; ac_word=$2
4214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4216 if test "${ac_cv_path_MV+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4244 if test -n "$MV"; then
4245 { echo "$as_me:$LINENO: result: $MV" >&5
4246 echo "${ECHO_T}$MV" >&6; }
4248 { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4253 # Extract the first word of "rm", so it can be a program name with args.
4254 set dummy rm; ac_word=$2
4255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4257 if test "${ac_cv_path_RM+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 ac_cv_path_RM="$RM" # Let the user override the test with a path.
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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4285 if test -n "$RM"; then
4286 { echo "$as_me:$LINENO: result: $RM" >&5
4287 echo "${ECHO_T}$RM" >&6; }
4289 { echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6; }
4294 # Extract the first word of "cp", so it can be a program name with args.
4295 set dummy cp; ac_word=$2
4296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298 if test "${ac_cv_path_CP+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4326 if test -n "$CP"; then
4327 { echo "$as_me:$LINENO: result: $CP" >&5
4328 echo "${ECHO_T}$CP" >&6; }
4330 { echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6; }
4335 # Extract the first word of "sed", so it can be a program name with args.
4336 set dummy sed; ac_word=$2
4337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4339 if test "${ac_cv_path_SED+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4367 if test -n "$SED"; then
4368 { echo "$as_me:$LINENO: result: $SED" >&5
4369 echo "${ECHO_T}$SED" >&6; }
4371 { echo "$as_me:$LINENO: result: no" >&5
4372 echo "${ECHO_T}no" >&6; }
4376 # Extract the first word of "echo", so it can be a program name with args.
4377 set dummy echo; ac_word=$2
4378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4380 if test "${ac_cv_path_ECHO+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4407 ECHO=$ac_cv_path_ECHO
4408 if test -n "$ECHO"; then
4409 { echo "$as_me:$LINENO: result: $ECHO" >&5
4410 echo "${ECHO_T}$ECHO" >&6; }
4412 { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4417 # Extract the first word of "cmp", so it can be a program name with args.
4418 set dummy cmp; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_path_CMP+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4449 if test -n "$CMP"; then
4450 { echo "$as_me:$LINENO: result: $CMP" >&5
4451 echo "${ECHO_T}$CMP" >&6; }
4453 { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4458 # Extract the first word of "tbl", so it can be a program name with args.
4459 set dummy tbl; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_path_TBL+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4490 if test -n "$TBL"; then
4491 { echo "$as_me:$LINENO: result: $TBL" >&5
4492 echo "${ECHO_T}$TBL" >&6; }
4494 { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4499 # Extract the first word of "ar", so it can be a program name with args.
4500 set dummy ar; ac_word=$2
4501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4503 if test "${ac_cv_path_AR+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4531 if test -n "$AR"; then
4532 { echo "$as_me:$LINENO: result: $AR" >&5
4533 echo "${ECHO_T}$AR" >&6; }
4535 { echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6; }
4540 # Extract the first word of "openssl", so it can be a program name with args.
4541 set dummy openssl; ac_word=$2
4542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4544 if test "${ac_cv_path_OPENSSL+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4571 OPENSSL=$ac_cv_path_OPENSSL
4572 if test -n "$OPENSSL"; then
4573 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4574 echo "${ECHO_T}$OPENSSL" >&6; }
4576 { echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; }
4581 # Extract the first word of "mtx", so it can be a program name with args.
4582 set dummy mtx; ac_word=$2
4583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585 if test "${ac_cv_path_MTX+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4613 if test -n "$MTX"; then
4614 { echo "$as_me:$LINENO: result: $MTX" >&5
4615 echo "${ECHO_T}$MTX" >&6; }
4617 { echo "$as_me:$LINENO: result: no" >&5
4618 echo "${ECHO_T}no" >&6; }
4622 # Extract the first word of "dd", so it can be a program name with args.
4623 set dummy dd; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_path_DD+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4654 if test -n "$DD"; then
4655 { echo "$as_me:$LINENO: result: $DD" >&5
4656 echo "${ECHO_T}$DD" >&6; }
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4663 # Extract the first word of "mkisofs", so it can be a program name with args.
4664 set dummy mkisofs; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_path_MKISOFS+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4694 MKISOFS=$ac_cv_path_MKISOFS
4695 if test -n "$MKISOFS"; then
4696 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4697 echo "${ECHO_T}$MKISOFS" >&6; }
4699 { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4704 # Extract the first word of "python", so it can be a program name with args.
4705 set dummy python; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_path_PYTHON+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4735 PYTHON=$ac_cv_path_PYTHON
4736 if test -n "$PYTHON"; then
4737 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4738 echo "${ECHO_T}$PYTHON" >&6; }
4740 { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4745 # Extract the first word of "growisofs", so it can be a program name with args.
4746 set dummy growisofs; ac_word=$2
4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4776 GROWISOFS=$ac_cv_path_GROWISOFS
4777 if test -n "$GROWISOFS"; then
4778 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4779 echo "${ECHO_T}$GROWISOFS" >&6; }
4781 { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4786 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4787 set dummy dvd+rw-mediainfo; ac_word=$2
4788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4790 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 case $DVDRWMEDIAINFO in
4795 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4817 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4818 if test -n "$DVDRWMEDIAINFO"; then
4819 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4820 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4822 { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4827 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4828 set dummy dvd+rw-format; ac_word=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 case $DVDRWFORMAT in
4836 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4858 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4859 if test -n "$DVDRWFORMAT"; then
4860 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4861 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4863 { echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6; }
4868 # Extract the first word of "pkg-config", so it can be a program name with args.
4869 set dummy pkg-config; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4899 PKGCONFIG=$ac_cv_path_PKGCONFIG
4900 if test -n "$PKGCONFIG"; then
4901 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4902 echo "${ECHO_T}$PKGCONFIG" >&6; }
4904 { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4909 # Extract the first word of "qmake", so it can be a program name with args.
4910 set dummy qmake; ac_word=$2
4911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913 if test "${ac_cv_path_QMAKE+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4940 QMAKE=$ac_cv_path_QMAKE
4941 if test -n "$QMAKE"; then
4942 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4943 echo "${ECHO_T}$QMAKE" >&6; }
4945 { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4950 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4951 set dummy qmake-qt4; ac_word=$2
4952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4981 QMAKEQT4=$ac_cv_path_QMAKEQT4
4982 if test -n "$QMAKEQT4"; then
4983 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4984 echo "${ECHO_T}$QMAKEQT4" >&6; }
4986 { echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6; }
4992 if test "x$WXCONFIG" = x; then
4995 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4996 set dummy ${WXCONFIG}; ac_word=$2
4997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4999 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5026 WXCONFIG=$ac_cv_path_WXCONFIG
5027 if test -n "$WXCONFIG"; then
5028 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5029 echo "${ECHO_T}$WXCONFIG" >&6; }
5031 { echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6; }
5037 # Extract the first word of "cdrecord", so it can be a program name with args.
5038 set dummy cdrecord; ac_word=$2
5039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5041 if test "${ac_cv_path_CDRECORD+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5068 CDRECORD=$ac_cv_path_CDRECORD
5069 if test -n "$CDRECORD"; then
5070 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5071 echo "${ECHO_T}$CDRECORD" >&6; }
5073 { echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6; }
5078 # Extract the first word of "pidof", so it can be a program name with args.
5079 set dummy pidof; ac_word=$2
5080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5082 if test "${ac_cv_path_PIDOF+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5109 PIDOF=$ac_cv_path_PIDOF
5110 if test -n "$PIDOF"; then
5111 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5112 echo "${ECHO_T}$PIDOF" >&6; }
5114 { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5119 for ac_prog in gawk mawk nawk awk
5121 # Extract the first word of "$ac_prog", so it can be a program name with args.
5122 set dummy $ac_prog; ac_word=$2
5123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5125 if test "${ac_cv_prog_AWK+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 if test -n "$AWK"; then
5129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_AWK="$ac_prog"
5139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 if test -n "$AWK"; then
5150 { echo "$as_me:$LINENO: result: $AWK" >&5
5151 echo "${ECHO_T}$AWK" >&6; }
5153 { echo "$as_me:$LINENO: result: no" >&5
5154 echo "${ECHO_T}no" >&6; }
5158 test -n "$AWK" && break
5161 # Some AWK programs fail, so test it and warn the user
5162 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5163 { if ((prog == $2) || (("(" prog ")") == $2) ||
5164 (("" prog "") == $2) ||
5165 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5167 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5168 The regex engine of $AWK is too broken to be used you
5169 might want to install GNU AWK.
5170 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5171 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5172 The regex engine of $AWK is too broken to be used you
5173 might want to install GNU AWK.
5174 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5175 { (exit 1); exit 1; }; }
5178 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5179 set dummy $THE_AWK; ac_word=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_path_AWK+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5210 if test -n "$AWK"; then
5211 { echo "$as_me:$LINENO: result: $AWK" >&5
5212 echo "${ECHO_T}$AWK" >&6; }
5214 { echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6; }
5221 test -n "$ARFLAG" || ARFLAGS="cr"
5232 # Make sure we can run config.sub.
5233 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5234 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5235 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5236 { (exit 1); exit 1; }; }
5238 { echo "$as_me:$LINENO: checking build system type" >&5
5239 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5240 if test "${ac_cv_build+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_build_alias=$build_alias
5244 test "x$ac_build_alias" = x &&
5245 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5246 test "x$ac_build_alias" = x &&
5247 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5248 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5249 { (exit 1); exit 1; }; }
5250 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5251 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5252 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5253 { (exit 1); exit 1; }; }
5256 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5257 echo "${ECHO_T}$ac_cv_build" >&6; }
5258 case $ac_cv_build in
5260 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5261 echo "$as_me: error: invalid value of canonical build" >&2;}
5262 { (exit 1); exit 1; }; };;
5265 ac_save_IFS=$IFS; IFS='-'
5271 # Remember, the first character of IFS is used to create $*,
5272 # except with old shells:
5275 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5279 { echo "$as_me:$LINENO: checking host system type" >&5
5280 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5281 if test "${ac_cv_host+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 if test "x$host_alias" = x; then
5285 ac_cv_host=$ac_cv_build
5287 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5288 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5289 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5290 { (exit 1); exit 1; }; }
5294 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5295 echo "${ECHO_T}$ac_cv_host" >&6; }
5298 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5299 echo "$as_me: error: invalid value of canonical host" >&2;}
5300 { (exit 1); exit 1; }; };;
5303 ac_save_IFS=$IFS; IFS='-'
5309 # Remember, the first character of IFS is used to create $*,
5310 # except with old shells:
5313 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5317 *cygwin* ) CYGWIN=yes;;
5321 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5327 HAVE_SUN_OS_FALSE='#'
5329 HAVE_SUN_OS_TRUE='#'
5332 cat >>confdefs.h <<\_ACEOF
5333 #define HAVE_SUN_OS 1
5341 HAVE_SUN_OS_FALSE='#'
5343 HAVE_SUN_OS_TRUE='#'
5348 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5354 HAVE_OSF1_OS_FALSE='#'
5356 HAVE_OSF1_OS_TRUE='#'
5359 cat >>confdefs.h <<\_ACEOF
5360 #define HAVE_OSF1_OS 1
5368 HAVE_OSF1_OS_FALSE='#'
5370 HAVE_OSF1_OS_TRUE='#'
5375 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5381 HAVE_AIX_OS_FALSE='#'
5383 HAVE_AIX_OS_TRUE='#'
5386 cat >>confdefs.h <<\_ACEOF
5387 #define HAVE_AIX_OS 1
5395 HAVE_AIX_OS_FALSE='#'
5397 HAVE_AIX_OS_TRUE='#'
5402 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5408 HAVE_HPUX_OS_FALSE='#'
5410 HAVE_HPUX_OS_TRUE='#'
5413 cat >>confdefs.h <<\_ACEOF
5414 #define HAVE_HPUX_OS 1
5422 HAVE_HPUX_OS_FALSE='#'
5424 HAVE_HPUX_OS_TRUE='#'
5429 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5435 HAVE_LINUX_OS_FALSE='#'
5437 HAVE_LINUX_OS_TRUE='#'
5438 HAVE_LINUX_OS_FALSE=
5440 cat >>confdefs.h <<\_ACEOF
5441 #define HAVE_LINUX_OS 1
5449 HAVE_LINUX_OS_FALSE='#'
5451 HAVE_LINUX_OS_TRUE='#'
5452 HAVE_LINUX_OS_FALSE=
5456 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5461 HAVE_FREEBSD_OS_TRUE=
5462 HAVE_FREEBSD_OS_FALSE='#'
5464 HAVE_FREEBSD_OS_TRUE='#'
5465 HAVE_FREEBSD_OS_FALSE=
5467 cat >>confdefs.h <<\_ACEOF
5468 #define HAVE_FREEBSD_OS 1
5475 HAVE_FREEBSD_OS_TRUE=
5476 HAVE_FREEBSD_OS_FALSE='#'
5478 HAVE_FREEBSD_OS_TRUE='#'
5479 HAVE_FREEBSD_OS_FALSE=
5483 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5488 HAVE_NETBSD_OS_TRUE=
5489 HAVE_NETBSD_OS_FALSE='#'
5491 HAVE_NETBSD_OS_TRUE='#'
5492 HAVE_NETBSD_OS_FALSE=
5494 cat >>confdefs.h <<\_ACEOF
5495 #define HAVE_NETBSD_OS 1
5502 HAVE_NETBSD_OS_TRUE=
5503 HAVE_NETBSD_OS_FALSE='#'
5505 HAVE_NETBSD_OS_TRUE='#'
5506 HAVE_NETBSD_OS_FALSE=
5510 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5515 HAVE_OPENBSD_OS_TRUE=
5516 HAVE_OPENBSD_OS_FALSE='#'
5518 HAVE_OPENBSD_OS_TRUE='#'
5519 HAVE_OPENBSD_OS_FALSE=
5521 cat >>confdefs.h <<\_ACEOF
5522 #define HAVE_OPENBSD_OS 1
5529 HAVE_OPENBSD_OS_TRUE=
5530 HAVE_OPENBSD_OS_FALSE='#'
5532 HAVE_OPENBSD_OS_TRUE='#'
5533 HAVE_OPENBSD_OS_FALSE=
5537 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5543 HAVE_BSDI_OS_FALSE='#'
5545 HAVE_BSDI_OS_TRUE='#'
5548 cat >>confdefs.h <<\_ACEOF
5549 #define HAVE_BSDI_OS 1
5557 HAVE_BSDI_OS_FALSE='#'
5559 HAVE_BSDI_OS_TRUE='#'
5564 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5570 HAVE_SGI_OS_FALSE='#'
5572 HAVE_SGI_OS_TRUE='#'
5575 cat >>confdefs.h <<\_ACEOF
5576 #define HAVE_SGI_OS 1
5584 HAVE_SGI_OS_FALSE='#'
5586 HAVE_SGI_OS_TRUE='#'
5591 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5597 HAVE_IRIX_OS_FALSE='#'
5599 HAVE_IRIX_OS_TRUE='#'
5602 cat >>confdefs.h <<\_ACEOF
5603 #define HAVE_IRIX_OS 1
5611 HAVE_IRIX_OS_FALSE='#'
5613 HAVE_IRIX_OS_TRUE='#'
5618 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5623 HAVE_DARWIN_OS_TRUE=
5624 HAVE_DARWIN_OS_FALSE='#'
5626 HAVE_DARWIN_OS_TRUE='#'
5627 HAVE_DARWIN_OS_FALSE=
5629 cat >>confdefs.h <<\_ACEOF
5630 #define HAVE_DARWIN_OS 1
5637 HAVE_DARWIN_OS_TRUE=
5638 HAVE_DARWIN_OS_FALSE='#'
5640 HAVE_DARWIN_OS_TRUE='#'
5641 HAVE_DARWIN_OS_FALSE=
5646 # -----------------------------------------------------------
5647 # ----------------------------------------------------------
5648 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5649 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5650 if test "x$DISTNAME" != "x"
5652 echo "distname set to $DISTNAME"
5653 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5656 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5659 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5662 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5665 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5668 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5671 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5674 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5677 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5680 elif test -f /etc/SuSE-release
5683 elif test -d /etc/SuSEconfig
5686 elif test -f /etc/mandrake-release
5689 elif test -f /etc/whitebox-release
5692 elif test -f /etc/redhat-release
5695 elif test -f /etc/gentoo-release
5698 elif test -f /etc/debian_version
5701 elif test -f /etc/slackware-version
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5707 elif test -f /etc/engarde-version
5710 elif test "$CYGWIN" = yes
5713 cat >>confdefs.h <<\_ACEOF
5714 #define HAVE_CYGWIN 1
5720 { echo "$as_me:$LINENO: result: done" >&5
5721 echo "${ECHO_T}done" >&6; }
5724 # --------------------------------------------------
5725 # Suppport for gettext (translations)
5726 # By default, $datadir is ${prefix}/share
5727 # --------------------------------------------------
5728 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5729 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5730 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5731 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 cat >conftest.make <<\_ACEOF
5737 @echo '@@@%%%=$(MAKE)=@@@%%%'
5739 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5740 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5742 eval ac_cv_prog_make_${ac_make}_set=yes;;
5744 eval ac_cv_prog_make_${ac_make}_set=no;;
5748 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5749 { echo "$as_me:$LINENO: result: yes" >&5
5750 echo "${ECHO_T}yes" >&6; }
5753 { echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6; }
5755 SET_MAKE="MAKE=${MAKE-make}"
5761 if test -n "$ac_aux_dir"; then
5762 case "$ac_aux_dir" in
5763 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5764 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5767 if test -z "$MKINSTALLDIRS"; then
5768 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5773 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5774 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5775 # Check whether --enable-nls was given.
5776 if test "${enable_nls+set}" = set; then
5777 enableval=$enable_nls; USE_NLS=$enableval
5782 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5783 echo "${ECHO_T}$USE_NLS" >&6; }
5790 # Prepare PATH_SEPARATOR.
5791 # The user is always right.
5792 if test "${PATH_SEPARATOR+set}" != set; then
5793 echo "#! /bin/sh" >conf$$.sh
5794 echo "exit 0" >>conf$$.sh
5796 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5804 # Find out how to test for executable files. Don't use a zero-byte file,
5805 # as systems may use methods other than mode bits to determine executability.
5806 cat >conf$$.file <<_ASEOF
5810 chmod +x conf$$.file
5811 if test -x conf$$.file >/dev/null 2>&1; then
5812 ac_executable_p="test -x"
5814 ac_executable_p="test -f"
5818 # Extract the first word of "msgfmt", so it can be a program name with args.
5819 set dummy msgfmt; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_path_MSGFMT+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5830 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5831 for ac_dir in $PATH; do
5833 test -z "$ac_dir" && ac_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5836 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5837 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5838 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5839 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5846 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5850 MSGFMT="$ac_cv_path_MSGFMT"
5851 if test "$MSGFMT" != ":"; then
5852 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5853 echo "${ECHO_T}$MSGFMT" >&6; }
5855 { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5859 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5860 set dummy gmsgfmt; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5890 GMSGFMT=$ac_cv_path_GMSGFMT
5891 if test -n "$GMSGFMT"; then
5892 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5893 echo "${ECHO_T}$GMSGFMT" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5902 # Prepare PATH_SEPARATOR.
5903 # The user is always right.
5904 if test "${PATH_SEPARATOR+set}" != set; then
5905 echo "#! /bin/sh" >conf$$.sh
5906 echo "exit 0" >>conf$$.sh
5908 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5916 # Find out how to test for executable files. Don't use a zero-byte file,
5917 # as systems may use methods other than mode bits to determine executability.
5918 cat >conf$$.file <<_ASEOF
5922 chmod +x conf$$.file
5923 if test -x conf$$.file >/dev/null 2>&1; then
5924 ac_executable_p="test -x"
5926 ac_executable_p="test -f"
5930 # Extract the first word of "xgettext", so it can be a program name with args.
5931 set dummy xgettext; ac_word=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5942 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5943 for ac_dir in $PATH; do
5945 test -z "$ac_dir" && ac_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5948 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5949 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5950 (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
5951 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5958 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5962 XGETTEXT="$ac_cv_path_XGETTEXT"
5963 if test "$XGETTEXT" != ":"; then
5964 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5965 echo "${ECHO_T}$XGETTEXT" >&6; }
5967 { echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6; }
5974 # Prepare PATH_SEPARATOR.
5975 # The user is always right.
5976 if test "${PATH_SEPARATOR+set}" != set; then
5977 echo "#! /bin/sh" >conf$$.sh
5978 echo "exit 0" >>conf$$.sh
5980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5988 # Find out how to test for executable files. Don't use a zero-byte file,
5989 # as systems may use methods other than mode bits to determine executability.
5990 cat >conf$$.file <<_ASEOF
5994 chmod +x conf$$.file
5995 if test -x conf$$.file >/dev/null 2>&1; then
5996 ac_executable_p="test -x"
5998 ac_executable_p="test -f"
6002 # Extract the first word of "msgmerge", so it can be a program name with args.
6003 set dummy msgmerge; ac_word=$2
6004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6014 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6015 for ac_dir in $PATH; do
6017 test -z "$ac_dir" && ac_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6020 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6021 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6022 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6029 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6033 MSGMERGE="$ac_cv_path_MSGMERGE"
6034 if test "$MSGMERGE" != ":"; then
6035 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6036 echo "${ECHO_T}$MSGMERGE" >&6; }
6038 { echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6; }
6043 if test "$GMSGFMT" != ":"; then
6044 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6045 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6048 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6049 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6050 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6055 if test "$XGETTEXT" != ":"; then
6056 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6057 (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
6060 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6061 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6067 ac_config_commands="$ac_config_commands default-1"
6071 if test "X$prefix" = "XNONE"; then
6072 acl_final_prefix="$ac_default_prefix"
6074 acl_final_prefix="$prefix"
6076 if test "X$exec_prefix" = "XNONE"; then
6077 acl_final_exec_prefix='${prefix}'
6079 acl_final_exec_prefix="$exec_prefix"
6081 acl_save_prefix="$prefix"
6082 prefix="$acl_final_prefix"
6083 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6084 prefix="$acl_save_prefix"
6087 # Check whether --with-gnu-ld was given.
6088 if test "${with_gnu_ld+set}" = set; then
6089 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6094 # Prepare PATH_SEPARATOR.
6095 # The user is always right.
6096 if test "${PATH_SEPARATOR+set}" != set; then
6097 echo "#! /bin/sh" >conf$$.sh
6098 echo "exit 0" >>conf$$.sh
6100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6108 if test "$GCC" = yes; then
6109 # Check if gcc -print-prog-name=ld gives a path.
6110 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6111 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6114 # gcc leaves a trailing carriage return which upsets mingw
6115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6120 # Accept absolute paths.
6121 [\\/]* | [A-Za-z]:[\\/]*)
6122 re_direlt='/[^/][^/]*/\.\./'
6123 # Canonicalize the path of ld
6124 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6125 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6126 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6128 test -z "$LD" && LD="$ac_prog"
6131 # If it fails, then pretend we aren't using GCC.
6135 # If it is relative, then search for the first ld in PATH.
6139 elif test "$with_gnu_ld" = yes; then
6140 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6141 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6143 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6144 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6146 if test "${acl_cv_path_LD+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 if test -z "$LD"; then
6150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6151 for ac_dir in $PATH; do
6152 test -z "$ac_dir" && ac_dir=.
6153 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6154 acl_cv_path_LD="$ac_dir/$ac_prog"
6155 # Check to see if the program is GNU ld. I'd rather use --version,
6156 # but apparently some GNU ld's only accept -v.
6157 # Break only if it was the GNU/non-GNU ld that we prefer.
6158 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6159 *GNU* | *'with BFD'*)
6160 test "$with_gnu_ld" != no && break ;;
6162 test "$with_gnu_ld" != yes && break ;;
6168 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6172 LD="$acl_cv_path_LD"
6173 if test -n "$LD"; then
6174 { echo "$as_me:$LINENO: result: $LD" >&5
6175 echo "${ECHO_T}$LD" >&6; }
6177 { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6180 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6181 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6182 { (exit 1); exit 1; }; }
6183 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6184 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6185 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6189 case `$LD -v 2>&1 </dev/null` in
6190 *GNU* | *'with BFD'*)
6191 acl_cv_prog_gnu_ld=yes ;;
6193 acl_cv_prog_gnu_ld=no ;;
6196 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6197 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6198 with_gnu_ld=$acl_cv_prog_gnu_ld
6203 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6204 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6205 if test "${acl_cv_rpath+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6210 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6216 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6217 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6219 libext="$acl_cv_libext"
6220 shlibext="$acl_cv_shlibext"
6221 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6222 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6223 hardcode_direct="$acl_cv_hardcode_direct"
6224 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6225 # Check whether --enable-rpath was given.
6226 if test "${enable_rpath+set}" = set; then
6227 enableval=$enable_rpath; :
6241 acl_save_prefix="$prefix"
6242 prefix="$acl_final_prefix"
6243 acl_save_exec_prefix="$exec_prefix"
6244 exec_prefix="$acl_final_exec_prefix"
6246 eval additional_includedir=\"$includedir\"
6247 eval additional_libdir=\"$libdir\"
6249 exec_prefix="$acl_save_exec_prefix"
6250 prefix="$acl_save_prefix"
6253 # Check whether --with-libiconv-prefix was given.
6254 if test "${with_libiconv_prefix+set}" = set; then
6255 withval=$with_libiconv_prefix;
6256 if test "X$withval" = "Xno"; then
6259 if test "X$withval" = "X"; then
6261 acl_save_prefix="$prefix"
6262 prefix="$acl_final_prefix"
6263 acl_save_exec_prefix="$exec_prefix"
6264 exec_prefix="$acl_final_exec_prefix"
6266 eval additional_includedir=\"$includedir\"
6267 eval additional_libdir=\"$libdir\"
6269 exec_prefix="$acl_save_exec_prefix"
6270 prefix="$acl_save_prefix"
6273 additional_includedir="$withval/include"
6274 additional_libdir="$withval/lib"
6285 names_already_handled=
6286 names_next_round='iconv '
6287 while test -n "$names_next_round"; do
6288 names_this_round="$names_next_round"
6290 for name in $names_this_round; do
6292 for n in $names_already_handled; do
6293 if test "$n" = "$name"; then
6298 if test -z "$already_handled"; then
6299 names_already_handled="$names_already_handled $name"
6300 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6301 eval value=\"\$HAVE_LIB$uppername\"
6302 if test -n "$value"; then
6303 if test "$value" = yes; then
6304 eval value=\"\$LIB$uppername\"
6305 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6306 eval value=\"\$LTLIB$uppername\"
6307 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6316 if test $use_additional = yes; then
6317 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6318 found_dir="$additional_libdir"
6319 found_so="$additional_libdir/lib$name.$shlibext"
6320 if test -f "$additional_libdir/lib$name.la"; then
6321 found_la="$additional_libdir/lib$name.la"
6324 if test -f "$additional_libdir/lib$name.$libext"; then
6325 found_dir="$additional_libdir"
6326 found_a="$additional_libdir/lib$name.$libext"
6327 if test -f "$additional_libdir/lib$name.la"; then
6328 found_la="$additional_libdir/lib$name.la"
6333 if test "X$found_dir" = "X"; then
6334 for x in $LDFLAGS $LTLIBICONV; do
6336 acl_save_prefix="$prefix"
6337 prefix="$acl_final_prefix"
6338 acl_save_exec_prefix="$exec_prefix"
6339 exec_prefix="$acl_final_exec_prefix"
6341 exec_prefix="$acl_save_exec_prefix"
6342 prefix="$acl_save_prefix"
6346 dir=`echo "X$x" | sed -e 's/^X-L//'`
6347 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6349 found_so="$dir/lib$name.$shlibext"
6350 if test -f "$dir/lib$name.la"; then
6351 found_la="$dir/lib$name.la"
6354 if test -f "$dir/lib$name.$libext"; then
6356 found_a="$dir/lib$name.$libext"
6357 if test -f "$dir/lib$name.la"; then
6358 found_la="$dir/lib$name.la"
6364 if test "X$found_dir" != "X"; then
6369 if test "X$found_dir" != "X"; then
6370 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6371 if test "X$found_so" != "X"; then
6372 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6376 for x in $ltrpathdirs; do
6377 if test "X$x" = "X$found_dir"; then
6382 if test -z "$haveit"; then
6383 ltrpathdirs="$ltrpathdirs $found_dir"
6385 if test "$hardcode_direct" = yes; then
6386 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6388 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6389 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6391 for x in $rpathdirs; do
6392 if test "X$x" = "X$found_dir"; then
6397 if test -z "$haveit"; then
6398 rpathdirs="$rpathdirs $found_dir"
6402 for x in $LDFLAGS $LIBICONV; do
6404 acl_save_prefix="$prefix"
6405 prefix="$acl_final_prefix"
6406 acl_save_exec_prefix="$exec_prefix"
6407 exec_prefix="$acl_final_exec_prefix"
6409 exec_prefix="$acl_save_exec_prefix"
6410 prefix="$acl_save_prefix"
6412 if test "X$x" = "X-L$found_dir"; then
6417 if test -z "$haveit"; then
6418 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6420 if test "$hardcode_minus_L" != no; then
6421 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6423 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6429 if test "X$found_a" != "X"; then
6430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6432 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6435 additional_includedir=
6436 case "$found_dir" in
6438 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6439 additional_includedir="$basedir/include"
6442 if test "X$additional_includedir" != "X"; then
6443 if test "X$additional_includedir" != "X/usr/include"; then
6445 if test "X$additional_includedir" = "X/usr/local/include"; then
6446 if test -n "$GCC"; then
6448 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6452 if test -z "$haveit"; then
6453 for x in $CPPFLAGS $INCICONV; do
6455 acl_save_prefix="$prefix"
6456 prefix="$acl_final_prefix"
6457 acl_save_exec_prefix="$exec_prefix"
6458 exec_prefix="$acl_final_exec_prefix"
6460 exec_prefix="$acl_save_exec_prefix"
6461 prefix="$acl_save_prefix"
6463 if test "X$x" = "X-I$additional_includedir"; then
6468 if test -z "$haveit"; then
6469 if test -d "$additional_includedir"; then
6470 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6476 if test -n "$found_la"; then
6477 save_libdir="$libdir"
6479 */* | *\\*) . "$found_la" ;;
6480 *) . "./$found_la" ;;
6482 libdir="$save_libdir"
6483 for dep in $dependency_libs; do
6486 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6487 if test "X$additional_libdir" != "X/usr/lib"; then
6489 if test "X$additional_libdir" = "X/usr/local/lib"; then
6490 if test -n "$GCC"; then
6492 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6496 if test -z "$haveit"; then
6498 for x in $LDFLAGS $LIBICONV; do
6500 acl_save_prefix="$prefix"
6501 prefix="$acl_final_prefix"
6502 acl_save_exec_prefix="$exec_prefix"
6503 exec_prefix="$acl_final_exec_prefix"
6505 exec_prefix="$acl_save_exec_prefix"
6506 prefix="$acl_save_prefix"
6508 if test "X$x" = "X-L$additional_libdir"; then
6513 if test -z "$haveit"; then
6514 if test -d "$additional_libdir"; then
6515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6519 for x in $LDFLAGS $LTLIBICONV; do
6521 acl_save_prefix="$prefix"
6522 prefix="$acl_final_prefix"
6523 acl_save_exec_prefix="$exec_prefix"
6524 exec_prefix="$acl_final_exec_prefix"
6526 exec_prefix="$acl_save_exec_prefix"
6527 prefix="$acl_save_prefix"
6529 if test "X$x" = "X-L$additional_libdir"; then
6534 if test -z "$haveit"; then
6535 if test -d "$additional_libdir"; then
6536 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6543 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6544 if test "$enable_rpath" != no; then
6546 for x in $rpathdirs; do
6547 if test "X$x" = "X$dir"; then
6552 if test -z "$haveit"; then
6553 rpathdirs="$rpathdirs $dir"
6556 for x in $ltrpathdirs; do
6557 if test "X$x" = "X$dir"; then
6562 if test -z "$haveit"; then
6563 ltrpathdirs="$ltrpathdirs $dir"
6568 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6571 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6574 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6575 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6581 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6588 if test "X$rpathdirs" != "X"; then
6589 if test -n "$hardcode_libdir_separator"; then
6591 for found_dir in $rpathdirs; do
6592 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6594 acl_save_libdir="$libdir"
6596 eval flag=\"$hardcode_libdir_flag_spec\"
6597 libdir="$acl_save_libdir"
6598 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6600 for found_dir in $rpathdirs; do
6601 acl_save_libdir="$libdir"
6603 eval flag=\"$hardcode_libdir_flag_spec\"
6604 libdir="$acl_save_libdir"
6605 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6609 if test "X$ltrpathdirs" != "X"; then
6610 for found_dir in $ltrpathdirs; do
6611 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6632 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6633 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6634 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 gt_save_CPPFLAGS="$CPPFLAGS"
6638 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6639 gt_save_LIBS="$LIBS"
6640 LIBS="$LIBS -framework CoreFoundation"
6641 cat >conftest.$ac_ext <<_ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 #include <CFPreferences.h>
6651 CFPreferencesCopyAppValue(NULL, NULL)
6656 rm -f conftest.$ac_objext conftest$ac_exeext
6657 if { (ac_try="$ac_link"
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_link") 2>conftest.er1
6665 grep -v '^ *+' conftest.er1 >conftest.err
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } && {
6670 test -z "$ac_c_werror_flag" ||
6671 test ! -s conftest.err
6672 } && test -s conftest$ac_exeext &&
6673 $as_test_x conftest$ac_exeext; then
6674 gt_cv_func_CFPreferencesCopyAppValue=yes
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6679 gt_cv_func_CFPreferencesCopyAppValue=no
6682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6683 conftest$ac_exeext conftest.$ac_ext
6684 CPPFLAGS="$gt_save_CPPFLAGS"
6685 LIBS="$gt_save_LIBS"
6687 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6688 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6689 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6696 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6697 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6698 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 gt_save_CPPFLAGS="$CPPFLAGS"
6702 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6703 gt_save_LIBS="$LIBS"
6704 LIBS="$LIBS -framework CoreFoundation"
6705 cat >conftest.$ac_ext <<_ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 #include <CFLocale.h>
6715 CFLocaleCopyCurrent();
6720 rm -f conftest.$ac_objext conftest$ac_exeext
6721 if { (ac_try="$ac_link"
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_link") 2>conftest.er1
6729 grep -v '^ *+' conftest.er1 >conftest.err
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && {
6734 test -z "$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 } && test -s conftest$ac_exeext &&
6737 $as_test_x conftest$ac_exeext; then
6738 gt_cv_func_CFLocaleCopyCurrent=yes
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6743 gt_cv_func_CFLocaleCopyCurrent=no
6746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6747 conftest$ac_exeext conftest.$ac_ext
6748 CPPFLAGS="$gt_save_CPPFLAGS"
6749 LIBS="$gt_save_LIBS"
6751 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6752 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6753 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6755 cat >>confdefs.h <<\_ACEOF
6756 #define HAVE_CFLOCALECOPYCURRENT 1
6761 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6762 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6768 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6769 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6770 # Check whether --enable-nls was given.
6771 if test "${enable_nls+set}" = set; then
6772 enableval=$enable_nls; USE_NLS=$enableval
6777 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6778 echo "${ECHO_T}$USE_NLS" >&6; }
6787 if test "$USE_NLS" = "yes"; then
6788 gt_use_preinstalled_gnugettext=no
6795 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6796 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6797 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 cat >conftest.$ac_ext <<_ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 #include <libintl.h>
6807 extern int _nl_msg_cat_cntr;
6808 extern int *_nl_domain_bindings;
6812 bindtextdomain ("", "");
6813 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (ac_try="$ac_link"
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_link") 2>conftest.er1
6827 grep -v '^ *+' conftest.er1 >conftest.err
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest$ac_exeext &&
6835 $as_test_x conftest$ac_exeext; then
6836 gt_cv_func_gnugettext1_libc=yes
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6841 gt_cv_func_gnugettext1_libc=no
6844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6845 conftest$ac_exeext conftest.$ac_ext
6847 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6848 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6850 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6856 am_save_CPPFLAGS="$CPPFLAGS"
6858 for element in $INCICONV; do
6860 for x in $CPPFLAGS; do
6862 acl_save_prefix="$prefix"
6863 prefix="$acl_final_prefix"
6864 acl_save_exec_prefix="$exec_prefix"
6865 exec_prefix="$acl_final_exec_prefix"
6867 exec_prefix="$acl_save_exec_prefix"
6868 prefix="$acl_save_prefix"
6870 if test "X$x" = "X$element"; then
6875 if test -z "$haveit"; then
6876 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6881 { echo "$as_me:$LINENO: checking for iconv" >&5
6882 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6883 if test "${am_cv_func_iconv+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 am_cv_func_iconv="no, consider installing GNU libiconv"
6889 cat >conftest.$ac_ext <<_ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6900 iconv_t cd = iconv_open("","");
6901 iconv(cd,NULL,NULL,NULL,NULL);
6907 rm -f conftest.$ac_objext conftest$ac_exeext
6908 if { (ac_try="$ac_link"
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914 (eval "$ac_link") 2>conftest.er1
6916 grep -v '^ *+' conftest.er1 >conftest.err
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } && {
6921 test -z "$ac_c_werror_flag" ||
6922 test ! -s conftest.err
6923 } && test -s conftest$ac_exeext &&
6924 $as_test_x conftest$ac_exeext; then
6925 am_cv_func_iconv=yes
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6934 conftest$ac_exeext conftest.$ac_ext
6935 if test "$am_cv_func_iconv" != yes; then
6936 am_save_LIBS="$LIBS"
6937 LIBS="$LIBS $LIBICONV"
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6949 iconv_t cd = iconv_open("","");
6950 iconv(cd,NULL,NULL,NULL,NULL);
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (ac_try="$ac_link"
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_link") 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 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest$ac_exeext &&
6973 $as_test_x conftest$ac_exeext; then
6975 am_cv_func_iconv=yes
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6984 conftest$ac_exeext conftest.$ac_ext
6985 LIBS="$am_save_LIBS"
6989 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6990 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6991 if test "$am_cv_func_iconv" = yes; then
6993 cat >>confdefs.h <<\_ACEOF
6994 #define HAVE_ICONV 1
6998 if test "$am_cv_lib_iconv" = yes; then
6999 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7000 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7001 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7002 echo "${ECHO_T}$LIBICONV" >&6; }
7004 CPPFLAGS="$am_save_CPPFLAGS"
7016 acl_save_prefix="$prefix"
7017 prefix="$acl_final_prefix"
7018 acl_save_exec_prefix="$exec_prefix"
7019 exec_prefix="$acl_final_exec_prefix"
7021 eval additional_includedir=\"$includedir\"
7022 eval additional_libdir=\"$libdir\"
7024 exec_prefix="$acl_save_exec_prefix"
7025 prefix="$acl_save_prefix"
7028 # Check whether --with-libintl-prefix was given.
7029 if test "${with_libintl_prefix+set}" = set; then
7030 withval=$with_libintl_prefix;
7031 if test "X$withval" = "Xno"; then
7034 if test "X$withval" = "X"; then
7036 acl_save_prefix="$prefix"
7037 prefix="$acl_final_prefix"
7038 acl_save_exec_prefix="$exec_prefix"
7039 exec_prefix="$acl_final_exec_prefix"
7041 eval additional_includedir=\"$includedir\"
7042 eval additional_libdir=\"$libdir\"
7044 exec_prefix="$acl_save_exec_prefix"
7045 prefix="$acl_save_prefix"
7048 additional_includedir="$withval/include"
7049 additional_libdir="$withval/lib"
7060 names_already_handled=
7061 names_next_round='intl '
7062 while test -n "$names_next_round"; do
7063 names_this_round="$names_next_round"
7065 for name in $names_this_round; do
7067 for n in $names_already_handled; do
7068 if test "$n" = "$name"; then
7073 if test -z "$already_handled"; then
7074 names_already_handled="$names_already_handled $name"
7075 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7076 eval value=\"\$HAVE_LIB$uppername\"
7077 if test -n "$value"; then
7078 if test "$value" = yes; then
7079 eval value=\"\$LIB$uppername\"
7080 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7081 eval value=\"\$LTLIB$uppername\"
7082 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7091 if test $use_additional = yes; then
7092 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7093 found_dir="$additional_libdir"
7094 found_so="$additional_libdir/lib$name.$shlibext"
7095 if test -f "$additional_libdir/lib$name.la"; then
7096 found_la="$additional_libdir/lib$name.la"
7099 if test -f "$additional_libdir/lib$name.$libext"; then
7100 found_dir="$additional_libdir"
7101 found_a="$additional_libdir/lib$name.$libext"
7102 if test -f "$additional_libdir/lib$name.la"; then
7103 found_la="$additional_libdir/lib$name.la"
7108 if test "X$found_dir" = "X"; then
7109 for x in $LDFLAGS $LTLIBINTL; do
7111 acl_save_prefix="$prefix"
7112 prefix="$acl_final_prefix"
7113 acl_save_exec_prefix="$exec_prefix"
7114 exec_prefix="$acl_final_exec_prefix"
7116 exec_prefix="$acl_save_exec_prefix"
7117 prefix="$acl_save_prefix"
7121 dir=`echo "X$x" | sed -e 's/^X-L//'`
7122 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7124 found_so="$dir/lib$name.$shlibext"
7125 if test -f "$dir/lib$name.la"; then
7126 found_la="$dir/lib$name.la"
7129 if test -f "$dir/lib$name.$libext"; then
7131 found_a="$dir/lib$name.$libext"
7132 if test -f "$dir/lib$name.la"; then
7133 found_la="$dir/lib$name.la"
7139 if test "X$found_dir" != "X"; then
7144 if test "X$found_dir" != "X"; then
7145 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7146 if test "X$found_so" != "X"; then
7147 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7148 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7151 for x in $ltrpathdirs; do
7152 if test "X$x" = "X$found_dir"; then
7157 if test -z "$haveit"; then
7158 ltrpathdirs="$ltrpathdirs $found_dir"
7160 if test "$hardcode_direct" = yes; then
7161 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7163 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7164 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7166 for x in $rpathdirs; do
7167 if test "X$x" = "X$found_dir"; then
7172 if test -z "$haveit"; then
7173 rpathdirs="$rpathdirs $found_dir"
7177 for x in $LDFLAGS $LIBINTL; do
7179 acl_save_prefix="$prefix"
7180 prefix="$acl_final_prefix"
7181 acl_save_exec_prefix="$exec_prefix"
7182 exec_prefix="$acl_final_exec_prefix"
7184 exec_prefix="$acl_save_exec_prefix"
7185 prefix="$acl_save_prefix"
7187 if test "X$x" = "X-L$found_dir"; then
7192 if test -z "$haveit"; then
7193 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7195 if test "$hardcode_minus_L" != no; then
7196 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7198 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7204 if test "X$found_a" != "X"; then
7205 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7207 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7210 additional_includedir=
7211 case "$found_dir" in
7213 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7214 additional_includedir="$basedir/include"
7217 if test "X$additional_includedir" != "X"; then
7218 if test "X$additional_includedir" != "X/usr/include"; then
7220 if test "X$additional_includedir" = "X/usr/local/include"; then
7221 if test -n "$GCC"; then
7223 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7227 if test -z "$haveit"; then
7228 for x in $CPPFLAGS $INCINTL; do
7230 acl_save_prefix="$prefix"
7231 prefix="$acl_final_prefix"
7232 acl_save_exec_prefix="$exec_prefix"
7233 exec_prefix="$acl_final_exec_prefix"
7235 exec_prefix="$acl_save_exec_prefix"
7236 prefix="$acl_save_prefix"
7238 if test "X$x" = "X-I$additional_includedir"; then
7243 if test -z "$haveit"; then
7244 if test -d "$additional_includedir"; then
7245 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7251 if test -n "$found_la"; then
7252 save_libdir="$libdir"
7254 */* | *\\*) . "$found_la" ;;
7255 *) . "./$found_la" ;;
7257 libdir="$save_libdir"
7258 for dep in $dependency_libs; do
7261 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7262 if test "X$additional_libdir" != "X/usr/lib"; then
7264 if test "X$additional_libdir" = "X/usr/local/lib"; then
7265 if test -n "$GCC"; then
7267 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7271 if test -z "$haveit"; then
7273 for x in $LDFLAGS $LIBINTL; do
7275 acl_save_prefix="$prefix"
7276 prefix="$acl_final_prefix"
7277 acl_save_exec_prefix="$exec_prefix"
7278 exec_prefix="$acl_final_exec_prefix"
7280 exec_prefix="$acl_save_exec_prefix"
7281 prefix="$acl_save_prefix"
7283 if test "X$x" = "X-L$additional_libdir"; then
7288 if test -z "$haveit"; then
7289 if test -d "$additional_libdir"; then
7290 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7294 for x in $LDFLAGS $LTLIBINTL; do
7296 acl_save_prefix="$prefix"
7297 prefix="$acl_final_prefix"
7298 acl_save_exec_prefix="$exec_prefix"
7299 exec_prefix="$acl_final_exec_prefix"
7301 exec_prefix="$acl_save_exec_prefix"
7302 prefix="$acl_save_prefix"
7304 if test "X$x" = "X-L$additional_libdir"; then
7309 if test -z "$haveit"; then
7310 if test -d "$additional_libdir"; then
7311 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7318 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7319 if test "$enable_rpath" != no; then
7321 for x in $rpathdirs; do
7322 if test "X$x" = "X$dir"; then
7327 if test -z "$haveit"; then
7328 rpathdirs="$rpathdirs $dir"
7331 for x in $ltrpathdirs; do
7332 if test "X$x" = "X$dir"; then
7337 if test -z "$haveit"; then
7338 ltrpathdirs="$ltrpathdirs $dir"
7343 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7346 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7349 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7350 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7356 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7357 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7363 if test "X$rpathdirs" != "X"; then
7364 if test -n "$hardcode_libdir_separator"; then
7366 for found_dir in $rpathdirs; do
7367 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7369 acl_save_libdir="$libdir"
7371 eval flag=\"$hardcode_libdir_flag_spec\"
7372 libdir="$acl_save_libdir"
7373 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7375 for found_dir in $rpathdirs; do
7376 acl_save_libdir="$libdir"
7378 eval flag=\"$hardcode_libdir_flag_spec\"
7379 libdir="$acl_save_libdir"
7380 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7384 if test "X$ltrpathdirs" != "X"; then
7385 for found_dir in $ltrpathdirs; do
7386 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7390 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7391 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7392 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 gt_save_CPPFLAGS="$CPPFLAGS"
7396 CPPFLAGS="$CPPFLAGS $INCINTL"
7397 gt_save_LIBS="$LIBS"
7398 LIBS="$LIBS $LIBINTL"
7399 cat >conftest.$ac_ext <<_ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405 #include <libintl.h>
7406 extern int _nl_msg_cat_cntr;
7411 const char *_nl_expand_alias (const char *);
7415 bindtextdomain ("", "");
7416 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7421 rm -f conftest.$ac_objext conftest$ac_exeext
7422 if { (ac_try="$ac_link"
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_link") 2>conftest.er1
7430 grep -v '^ *+' conftest.er1 >conftest.err
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } && {
7435 test -z "$ac_c_werror_flag" ||
7436 test ! -s conftest.err
7437 } && test -s conftest$ac_exeext &&
7438 $as_test_x conftest$ac_exeext; then
7439 gt_cv_func_gnugettext1_libintl=yes
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7444 gt_cv_func_gnugettext1_libintl=no
7447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448 conftest$ac_exeext conftest.$ac_ext
7449 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7450 LIBS="$LIBS $LIBICONV"
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 #include <libintl.h>
7458 extern int _nl_msg_cat_cntr;
7463 const char *_nl_expand_alias (const char *);
7467 bindtextdomain ("", "");
7468 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7473 rm -f conftest.$ac_objext conftest$ac_exeext
7474 if { (ac_try="$ac_link"
7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480 (eval "$ac_link") 2>conftest.er1
7482 grep -v '^ *+' conftest.er1 >conftest.err
7484 cat conftest.err >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } && {
7487 test -z "$ac_c_werror_flag" ||
7488 test ! -s conftest.err
7489 } && test -s conftest$ac_exeext &&
7490 $as_test_x conftest$ac_exeext; then
7491 LIBINTL="$LIBINTL $LIBICONV"
7492 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7493 gt_cv_func_gnugettext1_libintl=yes
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7503 conftest$ac_exeext conftest.$ac_ext
7505 CPPFLAGS="$gt_save_CPPFLAGS"
7506 LIBS="$gt_save_LIBS"
7508 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7509 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7512 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7513 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7514 && test "$PACKAGE" != gettext-runtime \
7515 && test "$PACKAGE" != gettext-tools; }; then
7516 gt_use_preinstalled_gnugettext=yes
7525 if test -n "$INTL_MACOSX_LIBS"; then
7526 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7527 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7528 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7529 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7533 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7534 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7536 cat >>confdefs.h <<\_ACEOF
7537 #define ENABLE_NLS 1
7545 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7546 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7547 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7548 echo "${ECHO_T}$USE_NLS" >&6; }
7549 if test "$USE_NLS" = "yes"; then
7550 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7551 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7552 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7553 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7554 gt_source="external libintl"
7559 gt_source="included intl directory"
7561 { echo "$as_me:$LINENO: result: $gt_source" >&5
7562 echo "${ECHO_T}$gt_source" >&6; }
7565 if test "$USE_NLS" = "yes"; then
7567 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7568 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7569 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7570 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7571 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7572 echo "${ECHO_T}$LIBINTL" >&6; }
7574 for element in $INCINTL; do
7576 for x in $CPPFLAGS; do
7578 acl_save_prefix="$prefix"
7579 prefix="$acl_final_prefix"
7580 acl_save_exec_prefix="$exec_prefix"
7581 exec_prefix="$acl_final_exec_prefix"
7583 exec_prefix="$acl_save_exec_prefix"
7584 prefix="$acl_save_prefix"
7586 if test "X$x" = "X$element"; then
7591 if test -z "$haveit"; then
7592 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7599 cat >>confdefs.h <<\_ACEOF
7600 #define HAVE_GETTEXT 1
7604 cat >>confdefs.h <<\_ACEOF
7605 #define HAVE_DCGETTEXT 1
7622 if test x${prefix} = xNONE ; then
7623 if test `eval echo ${datadir}` = NONE/share ; then
7628 # ------------------------------------------------------------------
7629 # If the user has not set --prefix, we set our default to nothing.
7630 # In this case, if the user has not set --sysconfdir, we set it
7631 # to the package default of /etc/bacula. If either --prefix or
7632 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7633 # ------------------------------------------------------------------
7634 if test x${prefix} = xNONE ; then
7635 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7636 sysconfdir=/etc/bacula
7640 sysconfdir=`eval echo ${sysconfdir}`
7641 datadir=`eval echo ${datadir}`
7642 localedir=`eval echo ${datadir}/locale`
7643 cat >>confdefs.h <<_ACEOF
7644 #define LOCALEDIR "$localedir"
7647 cat >>confdefs.h <<_ACEOF
7648 #define SYSCONFDIR "$sysconfdir"
7652 # -------------------------------------------------------------------------
7653 # If the user has not set --exec-prefix, we default to ${prefix}
7654 # -------------------------------------------------------------------------
7655 if test x${exec_prefix} = xNONE ; then
7656 exec_prefix=${prefix}
7659 # ------------------------------------------------------------------
7660 # If the user has not set --sbindir, we set our default as /sbin
7661 # ------------------------------------------------------------------
7662 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7663 sbindir=${exec_prefix}/sbin
7665 sbindir=`eval echo ${sbindir}`
7668 # -------------------------------------------------------------------------
7669 # If the user has not set --mandir, we default to /usr/share/man
7670 # -------------------------------------------------------------------------
7671 if test x$mandir = x'${prefix}/man' ; then
7672 mandir=/usr/share/man
7676 for ac_prog in msgfmt
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682 if test "${ac_cv_path_MSGFMT+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 MSGFMT=$ac_cv_path_MSGFMT
7709 if test -n "$MSGFMT"; then
7710 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7711 echo "${ECHO_T}$MSGFMT" >&6; }
7713 { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7718 test -n "$MSGFMT" && break
7720 test -n "$MSGFMT" || MSGFMT="no"
7722 if test "$MSGFMT" = "no"
7724 echo 'msgfmt program not found, disabling NLS !'
7726 USE_INCLUDED_LIBINTL=no
7729 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7730 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7731 if test "${ac_cv_gnu_library_2+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 cat >conftest.$ac_ext <<_ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7741 #include <features.h>
7742 #ifdef __GNU_LIBRARY__
7743 #if (__GLIBC__ >= 2)
7749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7750 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7751 ac_cv_gnu_library_2=yes
7753 ac_cv_gnu_library_2=no
7760 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7761 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7763 GLIBC2="$ac_cv_gnu_library_2"
7767 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7768 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7769 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 ac_check_lib_save_LIBS=$LIBS
7773 LIBS="-lcposix $LIBS"
7774 cat >conftest.$ac_ext <<_ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7781 /* Override any GCC internal prototype to avoid an error.
7782 Use char because int might match the return type of a GCC
7783 builtin and then its argument prototype would still apply. */
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (ac_try="$ac_link"
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803 (eval "$ac_link") 2>conftest.er1
7805 grep -v '^ *+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest$ac_exeext &&
7813 $as_test_x conftest$ac_exeext; then
7814 ac_cv_lib_cposix_strerror=yes
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 ac_cv_lib_cposix_strerror=no
7822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7823 conftest$ac_exeext conftest.$ac_ext
7824 LIBS=$ac_check_lib_save_LIBS
7826 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7827 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7828 if test $ac_cv_lib_cposix_strerror = yes; then
7829 LIBS="$LIBS -lcposix"
7834 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7836 if test "${ac_cv_header_stdc+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7858 rm -f conftest.$ac_objext
7859 if { (ac_try="$ac_compile"
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_compile") 2>conftest.er1
7867 grep -v '^ *+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && {
7872 test -z "$ac_c_werror_flag" ||
7873 test ! -s conftest.err
7874 } && test -s conftest.$ac_objext; then
7875 ac_cv_header_stdc=yes
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7880 ac_cv_header_stdc=no
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 if test $ac_cv_header_stdc = yes; then
7886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7887 cat >conftest.$ac_ext <<_ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7897 $EGREP "memchr" >/dev/null 2>&1; then
7900 ac_cv_header_stdc=no
7906 if test $ac_cv_header_stdc = yes; then
7907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7908 cat >conftest.$ac_ext <<_ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918 $EGREP "free" >/dev/null 2>&1; then
7921 ac_cv_header_stdc=no
7927 if test $ac_cv_header_stdc = yes; then
7928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7929 if test "$cross_compiling" = yes; then
7932 cat >conftest.$ac_ext <<_ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7940 #if ((' ' & 0x0FF) == 0x020)
7941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7944 # define ISLOWER(c) \
7945 (('a' <= (c) && (c) <= 'i') \
7946 || ('j' <= (c) && (c) <= 'r') \
7947 || ('s' <= (c) && (c) <= 'z'))
7948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7956 for (i = 0; i < 256; i++)
7957 if (XOR (islower (i), ISLOWER (i))
7958 || toupper (i) != TOUPPER (i))
7963 rm -f conftest$ac_exeext
7964 if { (ac_try="$ac_link"
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970 (eval "$ac_link") 2>&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7974 { (case "(($ac_try" in
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979 (eval "$ac_try") 2>&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7985 echo "$as_me: program exited with status $ac_status" >&5
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7990 ac_cv_header_stdc=no
7992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7998 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7999 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8000 if test $ac_cv_header_stdc = yes; then
8002 cat >>confdefs.h <<\_ACEOF
8003 #define STDC_HEADERS 1
8008 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8009 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8010 if test "${ac_cv_c_const+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 cat >conftest.$ac_ext <<_ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8023 /* FIXME: Include the comments suggested by Paul. */
8025 /* Ultrix mips cc rejects this. */
8026 typedef int charset[2];
8028 /* SunOS 4.1.1 cc rejects this. */
8029 char const *const *pcpcc;
8031 /* NEC SVR4.0.2 mips cc rejects this. */
8032 struct point {int x, y;};
8033 static struct point const zero = {0,0};
8034 /* AIX XL C 1.02.0.0 rejects this.
8035 It does not let you subtract one const X* pointer from another in
8036 an arm of an if-expression whose if-part is not a constant
8038 const char *g = "string";
8039 pcpcc = &g + (g ? g-g : 0);
8040 /* HPUX 7.0 cc rejects these. */
8042 ppc = (char**) pcpcc;
8043 pcpcc = (char const *const *) ppc;
8044 { /* SCO 3.2v4 cc rejects this. */
8046 char const *s = 0 ? (char *) 0 : (char const *) 0;
8051 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8053 const int *foo = &x[0];
8056 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8057 typedef const int *iptr;
8061 { /* AIX XL C 1.02.0.0 rejects this saying
8062 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8063 struct s { int j; const int *ap[3]; };
8064 struct s *b; b->j = 5;
8066 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8070 return !cs[0] && !zero.x;
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8086 grep -v '^ *+' conftest.er1 >conftest.err
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8105 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8106 if test $ac_cv_c_const = no; then
8108 cat >>confdefs.h <<\_ACEOF
8115 { echo "$as_me:$LINENO: checking for signed" >&5
8116 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8117 if test "${bh_cv_c_signed+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 cat >conftest.$ac_ext <<_ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_compile") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8163 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8164 if test $bh_cv_c_signed = no; then
8166 cat >>confdefs.h <<\_ACEOF
8172 { echo "$as_me:$LINENO: checking for inline" >&5
8173 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8174 if test "${ac_cv_c_inline+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 for ac_kw in inline __inline__ __inline; do
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8187 static $ac_kw foo_t static_foo () {return 0; }
8188 $ac_kw foo_t foo () {return 0; }
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8201 grep -v '^ *+' conftest.er1 >conftest.err
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest.$ac_objext; then
8209 ac_cv_c_inline=$ac_kw
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 test "$ac_cv_c_inline" != no && break
8222 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8223 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8226 case $ac_cv_c_inline in
8229 case $ac_cv_c_inline in
8231 *) ac_val=$ac_cv_c_inline;;
8233 cat >>confdefs.h <<_ACEOF
8235 #define inline $ac_val
8241 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8252 inttypes.h stdint.h unistd.h
8254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 cat >conftest.$ac_ext <<_ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 $ac_includes_default
8268 #include <$ac_header>
8270 rm -f conftest.$ac_objext
8271 if { (ac_try="$ac_compile"
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_compile") 2>conftest.er1
8279 grep -v '^ *+' conftest.er1 >conftest.err
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest.$ac_objext; then
8287 eval "$as_ac_Header=yes"
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8292 eval "$as_ac_Header=no"
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 ac_res=`eval echo '${'$as_ac_Header'}'`
8298 { echo "$as_me:$LINENO: result: $ac_res" >&5
8299 echo "${ECHO_T}$ac_res" >&6; }
8300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8301 cat >>confdefs.h <<_ACEOF
8302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8310 { echo "$as_me:$LINENO: checking for off_t" >&5
8311 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8312 if test "${ac_cv_type_off_t+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 cat >conftest.$ac_ext <<_ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 $ac_includes_default
8322 typedef off_t ac__type_new_;
8326 if ((ac__type_new_ *) 0)
8328 if (sizeof (ac__type_new_))
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8343 grep -v '^ *+' conftest.er1 >conftest.err
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.$ac_objext; then
8351 ac_cv_type_off_t=yes
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8362 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8363 if test $ac_cv_type_off_t = yes; then
8367 cat >>confdefs.h <<_ACEOF
8368 #define off_t long int
8373 { echo "$as_me:$LINENO: checking for size_t" >&5
8374 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8375 if test "${ac_cv_type_size_t+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8385 typedef size_t ac__type_new_;
8389 if ((ac__type_new_ *) 0)
8391 if (sizeof (ac__type_new_))
8397 rm -f conftest.$ac_objext
8398 if { (ac_try="$ac_compile"
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_compile") 2>conftest.er1
8406 grep -v '^ *+' conftest.er1 >conftest.err
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && {
8411 test -z "$ac_c_werror_flag" ||
8412 test ! -s conftest.err
8413 } && test -s conftest.$ac_objext; then
8414 ac_cv_type_size_t=yes
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 ac_cv_type_size_t=no
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8425 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8426 if test $ac_cv_type_size_t = yes; then
8430 cat >>confdefs.h <<_ACEOF
8431 #define size_t unsigned int
8437 { echo "$as_me:$LINENO: checking for long long" >&5
8438 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8439 if test "${ac_cv_type_long_long+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 long long ll = 1LL; int i = 63;
8452 long long llmax = (long long) -1;
8453 return ll << i | ll >> i | llmax / ll | llmax % ll;
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (ac_try="$ac_link"
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_link") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest$ac_exeext &&
8475 $as_test_x conftest$ac_exeext; then
8476 ac_cv_type_long_long=yes
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_type_long_long=no
8484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8485 conftest$ac_exeext conftest.$ac_ext
8487 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8488 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8489 if test $ac_cv_type_long_long = yes; then
8491 cat >>confdefs.h <<\_ACEOF
8492 #define HAVE_LONG_LONG 1
8498 { echo "$as_me:$LINENO: checking for long double" >&5
8499 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8500 if test "${gt_cv_c_long_double+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 if test "$GCC" = yes; then
8504 gt_cv_c_long_double=yes
8506 cat >conftest.$ac_ext <<_ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8513 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8514 long double foo = 0.0;
8515 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8516 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_c_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 gt_cv_c_long_double=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 gt_cv_c_long_double=no
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8555 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8556 if test $gt_cv_c_long_double = yes; then
8558 cat >>confdefs.h <<\_ACEOF
8559 #define HAVE_LONG_DOUBLE 1
8565 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8566 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8567 if test "${gt_cv_c_wchar_t+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 cat >conftest.$ac_ext <<_ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8577 wchar_t foo = (wchar_t)'\0';
8586 rm -f conftest.$ac_objext
8587 if { (ac_try="$ac_compile"
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8595 grep -v '^ *+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8614 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8615 if test $gt_cv_c_wchar_t = yes; then
8617 cat >>confdefs.h <<\_ACEOF
8618 #define HAVE_WCHAR_T 1
8624 { echo "$as_me:$LINENO: checking for wint_t" >&5
8625 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8626 if test "${gt_cv_c_wint_t+set}" = set; then
8627 echo $ECHO_N "(cached) $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. */
8636 wint_t foo = (wchar_t)'\0';
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
8654 grep -v '^ *+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && {
8659 test -z "$ac_c_werror_flag" ||
8660 test ! -s conftest.err
8661 } && test -s conftest.$ac_objext; then
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8673 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8674 if test $gt_cv_c_wint_t = yes; then
8676 cat >>confdefs.h <<\_ACEOF
8677 #define HAVE_WINT_T 1
8683 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8684 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8685 if test "${gl_cv_header_inttypes_h+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 cat >conftest.$ac_ext <<_ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 #include <sys/types.h>
8695 #include <inttypes.h>
8699 uintmax_t i = (uintmax_t) -1;
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_compile") 2>conftest.er1
8713 grep -v '^ *+' conftest.er1 >conftest.err
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && {
8718 test -z "$ac_c_werror_flag" ||
8719 test ! -s conftest.err
8720 } && test -s conftest.$ac_objext; then
8721 gl_cv_header_inttypes_h=yes
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 gl_cv_header_inttypes_h=no
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8732 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8733 if test $gl_cv_header_inttypes_h = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8742 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8743 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8744 if test "${gl_cv_header_stdint_h+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 #include <sys/types.h>
8758 uintmax_t i = (uintmax_t) -1;
8763 rm -f conftest.$ac_objext
8764 if { (ac_try="$ac_compile"
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_compile") 2>conftest.er1
8772 grep -v '^ *+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest.$ac_objext; then
8780 gl_cv_header_stdint_h=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 gl_cv_header_stdint_h=no
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8791 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8792 if test $gl_cv_header_stdint_h = yes; then
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_STDINT_H_WITH_UINTMAX 1
8803 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8804 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8805 if test "${gt_cv_c_intmax_t+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 cat >conftest.$ac_ext <<_ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8817 #if HAVE_STDINT_H_WITH_UINTMAX
8820 #if HAVE_INTTYPES_H_WITH_UINTMAX
8821 #include <inttypes.h>
8832 rm -f conftest.$ac_objext
8833 if { (ac_try="$ac_compile"
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_compile") 2>conftest.er1
8841 grep -v '^ *+' conftest.er1 >conftest.err
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && {
8846 test -z "$ac_c_werror_flag" ||
8847 test ! -s conftest.err
8848 } && test -s conftest.$ac_objext; then
8849 gt_cv_c_intmax_t=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8860 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8861 if test $gt_cv_c_intmax_t = yes; then
8863 cat >>confdefs.h <<\_ACEOF
8864 #define HAVE_INTMAX_T 1
8871 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8872 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8873 if test "${gt_cv_func_printf_posix+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 if test "$cross_compiling" = yes; then
8879 cat >conftest.$ac_ext <<_ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8886 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8892 $EGREP "notposix" >/dev/null 2>&1; then
8893 gt_cv_func_printf_posix="guessing no"
8895 gt_cv_func_printf_posix="guessing yes"
8901 cat >conftest.$ac_ext <<_ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8910 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8911 dollar expansion (possibly an autoconf bug). */
8912 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8913 static char buf[100];
8916 sprintf (buf, format, 33, 55);
8917 return (strcmp (buf, "55 33") != 0);
8920 rm -f conftest$ac_exeext
8921 if { (ac_try="$ac_link"
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927 (eval "$ac_link") 2>&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8931 { (case "(($ac_try" in
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933 *) ac_try_echo=$ac_try;;
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936 (eval "$ac_try") 2>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 gt_cv_func_printf_posix=yes
8942 echo "$as_me: program exited with status $ac_status" >&5
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8947 gt_cv_func_printf_posix=no
8949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8955 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8956 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8957 case $gt_cv_func_printf_posix in
8960 cat >>confdefs.h <<\_ACEOF
8961 #define HAVE_POSIX_PRINTF 1
8967 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8968 # for constant arguments. Useless!
8969 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8970 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8971 if test "${ac_cv_working_alloca_h+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8984 char *p = (char *) alloca (2 * sizeof (int));
8990 rm -f conftest.$ac_objext conftest$ac_exeext
8991 if { (ac_try="$ac_link"
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_link") 2>conftest.er1
8999 grep -v '^ *+' conftest.er1 >conftest.err
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && {
9004 test -z "$ac_c_werror_flag" ||
9005 test ! -s conftest.err
9006 } && test -s conftest$ac_exeext &&
9007 $as_test_x conftest$ac_exeext; then
9008 ac_cv_working_alloca_h=yes
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9013 ac_cv_working_alloca_h=no
9016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9017 conftest$ac_exeext conftest.$ac_ext
9019 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9020 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9021 if test $ac_cv_working_alloca_h = yes; then
9023 cat >>confdefs.h <<\_ACEOF
9024 #define HAVE_ALLOCA_H 1
9029 { echo "$as_me:$LINENO: checking for alloca" >&5
9030 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9031 if test "${ac_cv_func_alloca_works+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 cat >conftest.$ac_ext <<_ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9041 # define alloca __builtin_alloca
9044 # include <malloc.h>
9045 # define alloca _alloca
9047 # ifdef HAVE_ALLOCA_H
9048 # include <alloca.h>
9053 # ifndef alloca /* predefined by HP cc +Olibcalls */
9064 char *p = (char *) alloca (1);
9070 rm -f conftest.$ac_objext conftest$ac_exeext
9071 if { (ac_try="$ac_link"
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_link") 2>conftest.er1
9079 grep -v '^ *+' conftest.er1 >conftest.err
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } && {
9084 test -z "$ac_c_werror_flag" ||
9085 test ! -s conftest.err
9086 } && test -s conftest$ac_exeext &&
9087 $as_test_x conftest$ac_exeext; then
9088 ac_cv_func_alloca_works=yes
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 ac_cv_func_alloca_works=no
9096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9097 conftest$ac_exeext conftest.$ac_ext
9099 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9100 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9102 if test $ac_cv_func_alloca_works = yes; then
9104 cat >>confdefs.h <<\_ACEOF
9105 #define HAVE_ALLOCA 1
9109 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9110 # that cause trouble. Some versions do not even contain alloca or
9111 # contain a buggy version. If you still want to use their alloca,
9112 # use ar to extract alloca.o from them instead of compiling alloca.c.
9114 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9116 cat >>confdefs.h <<\_ACEOF
9121 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9122 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9123 if test "${ac_cv_os_cray+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 #if defined CRAY && ! defined CRAY2
9139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9140 $EGREP "webecray" >/dev/null 2>&1; then
9148 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9149 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9150 if test $ac_cv_os_cray = yes; then
9151 for ac_func in _getb67 GETB67 getb67; do
9152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9166 #define $ac_func innocuous_$ac_func
9168 /* System header to define __stub macros and hopefully few prototypes,
9169 which can conflict with char $ac_func (); below.
9170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9171 <limits.h> exists even on freestanding compilers. */
9174 # include <limits.h>
9176 # include <assert.h>
9181 /* Override any GCC internal prototype to avoid an error.
9182 Use char because int might match the return type of a GCC
9183 builtin and then its argument prototype would still apply. */
9188 /* The GNU C library defines this for functions which it implements
9189 to always fail with ENOSYS. Some functions are actually named
9190 something starting with __ and the normal name is an alias. */
9191 #if defined __stub_$ac_func || defined __stub___$ac_func
9203 rm -f conftest.$ac_objext conftest$ac_exeext
9204 if { (ac_try="$ac_link"
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_link") 2>conftest.er1
9212 grep -v '^ *+' conftest.er1 >conftest.err
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } && {
9217 test -z "$ac_c_werror_flag" ||
9218 test ! -s conftest.err
9219 } && test -s conftest$ac_exeext &&
9220 $as_test_x conftest$ac_exeext; then
9221 eval "$as_ac_var=yes"
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 eval "$as_ac_var=no"
9229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230 conftest$ac_exeext conftest.$ac_ext
9232 ac_res=`eval echo '${'$as_ac_var'}'`
9233 { echo "$as_me:$LINENO: result: $ac_res" >&5
9234 echo "${ECHO_T}$ac_res" >&6; }
9235 if test `eval echo '${'$as_ac_var'}'` = yes; then
9237 cat >>confdefs.h <<_ACEOF
9238 #define CRAY_STACKSEG_END $ac_func
9247 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9248 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9249 if test "${ac_cv_c_stack_direction+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 if test "$cross_compiling" = yes; then
9253 ac_cv_c_stack_direction=0
9255 cat >conftest.$ac_ext <<_ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261 $ac_includes_default
9263 find_stack_direction ()
9265 static char *addr = 0;
9270 return find_stack_direction ();
9273 return (&dummy > addr) ? 1 : -1;
9279 return find_stack_direction () < 0;
9282 rm -f conftest$ac_exeext
9283 if { (ac_try="$ac_link"
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_link") 2>&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9293 { (case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_try") 2>&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_cv_c_stack_direction=1
9304 echo "$as_me: program exited with status $ac_status" >&5
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9309 ac_cv_c_stack_direction=-1
9311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9316 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9317 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9319 cat >>confdefs.h <<_ACEOF
9320 #define STACK_DIRECTION $ac_cv_c_stack_direction
9328 for ac_header in stdlib.h unistd.h
9330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 ac_res=`eval echo '${'$as_ac_Header'}'`
9338 { echo "$as_me:$LINENO: result: $ac_res" >&5
9339 echo "${ECHO_T}$ac_res" >&6; }
9341 # Is the header compilable?
9342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9344 cat >conftest.$ac_ext <<_ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 $ac_includes_default
9351 #include <$ac_header>
9353 rm -f conftest.$ac_objext
9354 if { (ac_try="$ac_compile"
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1 >conftest.err
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.$ac_objext; then
9370 ac_header_compiler=yes
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_header_compiler=no
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9380 echo "${ECHO_T}$ac_header_compiler" >&6; }
9382 # Is the header present?
9383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9385 cat >conftest.$ac_ext <<_ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 #include <$ac_header>
9393 if { (ac_try="$ac_cpp conftest.$ac_ext"
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1 >conftest.err
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } >/dev/null && {
9406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9409 ac_header_preproc=yes
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 ac_header_preproc=no
9417 rm -f conftest.err conftest.$ac_ext
9418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9419 echo "${ECHO_T}$ac_header_preproc" >&6; }
9421 # So? What about this header?
9422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9428 ac_header_preproc=yes
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 eval "$as_ac_Header=\$ac_header_preproc"
9453 ac_res=`eval echo '${'$as_ac_Header'}'`
9454 { echo "$as_me:$LINENO: result: $ac_res" >&5
9455 echo "${ECHO_T}$ac_res" >&6; }
9458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9459 cat >>confdefs.h <<_ACEOF
9460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468 for ac_func in getpagesize
9470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9484 #define $ac_func innocuous_$ac_func
9486 /* System header to define __stub macros and hopefully few prototypes,
9487 which can conflict with char $ac_func (); below.
9488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9489 <limits.h> exists even on freestanding compilers. */
9492 # include <limits.h>
9494 # include <assert.h>
9499 /* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined __stub_$ac_func || defined __stub___$ac_func
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (ac_try="$ac_link"
9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_link") 2>conftest.er1
9530 grep -v '^ *+' conftest.er1 >conftest.err
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && {
9535 test -z "$ac_c_werror_flag" ||
9536 test ! -s conftest.err
9537 } && test -s conftest$ac_exeext &&
9538 $as_test_x conftest$ac_exeext; then
9539 eval "$as_ac_var=yes"
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9544 eval "$as_ac_var=no"
9547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9548 conftest$ac_exeext conftest.$ac_ext
9550 ac_res=`eval echo '${'$as_ac_var'}'`
9551 { echo "$as_me:$LINENO: result: $ac_res" >&5
9552 echo "${ECHO_T}$ac_res" >&6; }
9553 if test `eval echo '${'$as_ac_var'}'` = yes; then
9554 cat >>confdefs.h <<_ACEOF
9555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9561 { echo "$as_me:$LINENO: checking for working mmap" >&5
9562 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9563 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 if test "$cross_compiling" = yes; then
9567 ac_cv_func_mmap_fixed_mapped=no
9569 cat >conftest.$ac_ext <<_ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575 $ac_includes_default
9576 /* malloc might have been renamed as rpl_malloc. */
9579 /* Thanks to Mike Haertel and Jim Avera for this test.
9580 Here is a matrix of mmap possibilities:
9581 mmap private not fixed
9582 mmap private fixed at somewhere currently unmapped
9583 mmap private fixed at somewhere already mapped
9584 mmap shared not fixed
9585 mmap shared fixed at somewhere currently unmapped
9586 mmap shared fixed at somewhere already mapped
9587 For private mappings, we should verify that changes cannot be read()
9588 back from the file, nor mmap's back from the file at a different
9589 address. (There have been systems where private was not correctly
9590 implemented like the infamous i386 svr4.0, and systems where the
9591 VM page cache was not coherent with the file system buffer cache
9592 like early versions of FreeBSD and possibly contemporary NetBSD.)
9593 For shared mappings, we should conversely verify that changes get
9594 propagated back to all the places they're supposed to be.
9596 Grep wants private fixed already mapped.
9597 The main things grep needs to know about mmap are:
9598 * does it exist and is it safe to write into the mmap'd area
9599 * how to use it (BSD variants) */
9602 #include <sys/mman.h>
9604 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9608 /* This mess was copied from the GNU getpagesize.h. */
9609 #ifndef HAVE_GETPAGESIZE
9610 /* Assume that all systems that can run configure have sys/param.h. */
9611 # ifndef HAVE_SYS_PARAM_H
9612 # define HAVE_SYS_PARAM_H 1
9615 # ifdef _SC_PAGESIZE
9616 # define getpagesize() sysconf(_SC_PAGESIZE)
9617 # else /* no _SC_PAGESIZE */
9618 # ifdef HAVE_SYS_PARAM_H
9619 # include <sys/param.h>
9620 # ifdef EXEC_PAGESIZE
9621 # define getpagesize() EXEC_PAGESIZE
9622 # else /* no EXEC_PAGESIZE */
9624 # define getpagesize() NBPG * CLSIZE
9627 # endif /* no CLSIZE */
9628 # else /* no NBPG */
9630 # define getpagesize() NBPC
9631 # else /* no NBPC */
9633 # define getpagesize() PAGESIZE
9634 # endif /* PAGESIZE */
9635 # endif /* no NBPC */
9636 # endif /* no NBPG */
9637 # endif /* no EXEC_PAGESIZE */
9638 # else /* no HAVE_SYS_PARAM_H */
9639 # define getpagesize() 8192 /* punt totally */
9640 # endif /* no HAVE_SYS_PARAM_H */
9641 # endif /* no _SC_PAGESIZE */
9643 #endif /* no HAVE_GETPAGESIZE */
9648 char *data, *data2, *data3;
9652 pagesize = getpagesize ();
9654 /* First, make a file with some known garbage in it. */
9655 data = (char *) malloc (pagesize);
9658 for (i = 0; i < pagesize; ++i)
9659 *(data + i) = rand ();
9661 fd = creat ("conftest.mmap", 0600);
9664 if (write (fd, data, pagesize) != pagesize)
9668 /* Next, try to mmap the file at a fixed address which already has
9669 something else allocated at it. If we can, also make sure that
9670 we see the same garbage. */
9671 fd = open ("conftest.mmap", O_RDWR);
9674 data2 = (char *) malloc (2 * pagesize);
9677 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9678 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9679 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9681 for (i = 0; i < pagesize; ++i)
9682 if (*(data + i) != *(data2 + i))
9685 /* Finally, make sure that changes to the mapped area do not
9686 percolate back to the file as seen by read(). (This is a bug on
9687 some variants of i386 svr4.0.) */
9688 for (i = 0; i < pagesize; ++i)
9689 *(data2 + i) = *(data2 + i) + 1;
9690 data3 = (char *) malloc (pagesize);
9693 if (read (fd, data3, pagesize) != pagesize)
9695 for (i = 0; i < pagesize; ++i)
9696 if (*(data + i) != *(data3 + i))
9702 rm -f conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9713 { (case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_try") 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9722 ac_cv_func_mmap_fixed_mapped=yes
9724 echo "$as_me: program exited with status $ac_status" >&5
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9729 ac_cv_func_mmap_fixed_mapped=no
9731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9736 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9737 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9738 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9740 cat >>confdefs.h <<\_ACEOF
9748 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9749 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9750 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 cat >conftest.$ac_ext <<_ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9760 #include <features.h>
9761 #ifdef __GNU_LIBRARY__
9762 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9769 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9770 ac_cv_gnu_library_2_1=yes
9772 ac_cv_gnu_library_2_1=no
9779 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9780 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9782 GLIBC21="$ac_cv_gnu_library_2_1"
9787 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9788 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9789 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 if test "$cross_compiling" = yes; then
9795 # Guess based on the CPU.
9797 alpha* | i3456786 | m68k | s390*)
9798 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9800 gt_cv_int_divbyzero_sigfpe="guessing no";;
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9816 sigfpe_handler (int sig)
9818 sigfpe_handler (sig) int sig;
9821 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9822 exit (sig != SIGFPE);
9832 signal (SIGFPE, sigfpe_handler);
9833 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9834 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9835 signal (SIGTRAP, sigfpe_handler);
9837 /* Linux/SPARC yields signal SIGILL. */
9838 #if defined (__sparc__) && defined (__linux__)
9839 signal (SIGILL, sigfpe_handler);
9848 rm -f conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_link") 2>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; }; then
9868 gt_cv_int_divbyzero_sigfpe=yes
9870 echo "$as_me: program exited with status $ac_status" >&5
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9875 gt_cv_int_divbyzero_sigfpe=no
9877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9883 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9884 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9885 case "$gt_cv_int_divbyzero_sigfpe" in
9890 cat >>confdefs.h <<_ACEOF
9891 #define INTDIV0_RAISES_SIGFPE $value
9896 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9897 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9898 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 unsigned long long ull = 1ULL; int i = 63;
9911 unsigned long long ullmax = (unsigned long long) -1;
9912 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_link") 2>conftest.er1
9926 grep -v '^ *+' conftest.er1 >conftest.err
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } && {
9931 test -z "$ac_c_werror_flag" ||
9932 test ! -s conftest.err
9933 } && test -s conftest$ac_exeext &&
9934 $as_test_x conftest$ac_exeext; then
9935 ac_cv_type_unsigned_long_long=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_type_unsigned_long_long=no
9943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944 conftest$ac_exeext conftest.$ac_ext
9946 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9947 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9948 if test $ac_cv_type_unsigned_long_long = yes; then
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_UNSIGNED_LONG_LONG 1
9959 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9961 test $ac_cv_type_unsigned_long_long = yes \
9962 && ac_type='unsigned long long' \
9963 || ac_type='unsigned long'
9965 cat >>confdefs.h <<_ACEOF
9966 #define uintmax_t $ac_type
9971 cat >>confdefs.h <<\_ACEOF
9972 #define HAVE_UINTMAX_T 1
9978 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9979 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9980 if test "${gt_cv_header_inttypes_h+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 #include <sys/types.h>
9991 #include <inttypes.h>
10000 rm -f conftest.$ac_objext
10001 if { (ac_try="$ac_compile"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_compile") 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest.$ac_objext; then
10017 gt_cv_header_inttypes_h=yes
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 gt_cv_header_inttypes_h=no
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10029 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10030 if test $gt_cv_header_inttypes_h = yes; then
10032 cat >>confdefs.h <<_ACEOF
10033 #define HAVE_INTTYPES_H 1
10040 if test $gt_cv_header_inttypes_h = yes; then
10041 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10042 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10043 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 cat >conftest.$ac_ext <<_ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10053 #include <inttypes.h>
10066 rm -f conftest.$ac_objext
10067 if { (ac_try="$ac_compile"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_compile") 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest.$ac_objext; then
10083 gt_cv_inttypes_pri_broken=no
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 gt_cv_inttypes_pri_broken=yes
10091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10095 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10097 if test "$gt_cv_inttypes_pri_broken" = yes; then
10099 cat >>confdefs.h <<_ACEOF
10100 #define PRI_MACROS_BROKEN 1
10107 for ac_header in stdint.h
10109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 ac_res=`eval echo '${'$as_ac_Header'}'`
10117 { echo "$as_me:$LINENO: result: $ac_res" >&5
10118 echo "${ECHO_T}$ac_res" >&6; }
10120 # Is the header compilable?
10121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10123 cat >conftest.$ac_ext <<_ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10129 $ac_includes_default
10130 #include <$ac_header>
10132 rm -f conftest.$ac_objext
10133 if { (ac_try="$ac_compile"
10134 case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_compile") 2>conftest.er1
10141 grep -v '^ *+' conftest.er1 >conftest.err
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest.$ac_objext; then
10149 ac_header_compiler=yes
10151 echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10154 ac_header_compiler=no
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10159 echo "${ECHO_T}$ac_header_compiler" >&6; }
10161 # Is the header present?
10162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10163 echo $ECHO_N "checking $ac_header presence... $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. */
10170 #include <$ac_header>
10172 if { (ac_try="$ac_cpp conftest.$ac_ext"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } >/dev/null && {
10185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10186 test ! -s conftest.err
10188 ac_header_preproc=yes
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 ac_header_preproc=no
10196 rm -f conftest.err conftest.$ac_ext
10197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10198 echo "${ECHO_T}$ac_header_preproc" >&6; }
10200 # So? What about this header?
10201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10207 ac_header_preproc=yes
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 eval "$as_ac_Header=\$ac_header_preproc"
10232 ac_res=`eval echo '${'$as_ac_Header'}'`
10233 { echo "$as_me:$LINENO: result: $ac_res" >&5
10234 echo "${ECHO_T}$ac_res" >&6; }
10237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10246 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10247 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10249 cat >conftest.$ac_ext <<_ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10256 #include <limits.h>
10258 #include <stdint.h>
10265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10266 $EGREP "Found it" >/dev/null 2>&1; then
10271 if test -z "$result"; then
10272 if test "$cross_compiling" = yes; then
10273 # Depending upon the size, compute the lo and hi bounds.
10274 cat >conftest.$ac_ext <<_ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 #include <stddef.h>
10284 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10291 rm -f conftest.$ac_objext
10292 if { (ac_try="$ac_compile"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_compile") 2>conftest.er1
10300 grep -v '^ *+' conftest.er1 >conftest.err
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest.$ac_objext; then
10310 cat >conftest.$ac_ext <<_ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316 #include <stddef.h>
10320 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10327 rm -f conftest.$ac_objext
10328 if { (ac_try="$ac_compile"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_compile") 2>conftest.er1
10336 grep -v '^ *+' conftest.er1 >conftest.err
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest.$ac_objext; then
10344 ac_hi=$ac_mid; break
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349 ac_lo=`expr $ac_mid + 1`
10350 if test $ac_lo -le $ac_mid; then
10354 ac_mid=`expr 2 '*' $ac_mid + 1`
10357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 cat >conftest.$ac_ext <<_ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 #include <stddef.h>
10373 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10380 rm -f conftest.$ac_objext
10381 if { (ac_try="$ac_compile"
10382 case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_compile") 2>conftest.er1
10389 grep -v '^ *+' conftest.er1 >conftest.err
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } && {
10394 test -z "$ac_c_werror_flag" ||
10395 test ! -s conftest.err
10396 } && test -s conftest.$ac_objext; then
10399 cat >conftest.$ac_ext <<_ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 #include <stddef.h>
10409 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10416 rm -f conftest.$ac_objext
10417 if { (ac_try="$ac_compile"
10418 case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_compile") 2>conftest.er1
10425 grep -v '^ *+' conftest.er1 >conftest.err
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } && {
10430 test -z "$ac_c_werror_flag" ||
10431 test ! -s conftest.err
10432 } && test -s conftest.$ac_objext; then
10433 ac_lo=$ac_mid; break
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10438 ac_hi=`expr '(' $ac_mid ')' - 1`
10439 if test $ac_mid -le $ac_hi; then
10443 ac_mid=`expr 2 '*' $ac_mid`
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 # Binary search between lo and hi bounds.
10460 while test "x$ac_lo" != "x$ac_hi"; do
10461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 #include <stddef.h>
10472 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10479 rm -f conftest.$ac_objext
10480 if { (ac_try="$ac_compile"
10481 case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_compile") 2>conftest.er1
10488 grep -v '^ *+' conftest.er1 >conftest.err
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest.$ac_objext; then
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_lo=`expr '(' $ac_mid ')' + 1`
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 ?*) res_hi=$ac_lo;;
10511 cat >conftest.$ac_ext <<_ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10517 #include <stddef.h>
10518 static long int longval () { return ~(size_t)0 / 10; }
10519 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10521 #include <stdlib.h>
10526 FILE *f = fopen ("conftest.val", "w");
10529 if ((~(size_t)0 / 10) < 0)
10531 long int i = longval ();
10532 if (i != (~(size_t)0 / 10))
10534 fprintf (f, "%ld\n", i);
10538 unsigned long int i = ulongval ();
10539 if (i != (~(size_t)0 / 10))
10541 fprintf (f, "%lu\n", i);
10543 return ferror (f) || fclose (f) != 0;
10549 rm -f conftest$ac_exeext
10550 if { (ac_try="$ac_link"
10551 case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_link") 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 res_hi=`cat conftest.val`
10571 echo "$as_me: program exited with status $ac_status" >&5
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 ( exit $ac_status )
10578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10582 if test "$cross_compiling" = yes; then
10583 # Depending upon the size, compute the lo and hi bounds.
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <stddef.h>
10594 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest.$ac_objext; then
10620 cat >conftest.$ac_ext <<_ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10626 #include <stddef.h>
10630 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10637 rm -f conftest.$ac_objext
10638 if { (ac_try="$ac_compile"
10639 case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_compile") 2>conftest.er1
10646 grep -v '^ *+' conftest.er1 >conftest.err
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest.$ac_objext; then
10654 ac_hi=$ac_mid; break
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 ac_lo=`expr $ac_mid + 1`
10660 if test $ac_lo -le $ac_mid; then
10664 ac_mid=`expr 2 '*' $ac_mid + 1`
10667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 cat >conftest.$ac_ext <<_ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 #include <stddef.h>
10683 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest.$ac_objext; then
10709 cat >conftest.$ac_ext <<_ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 #include <stddef.h>
10719 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10726 rm -f conftest.$ac_objext
10727 if { (ac_try="$ac_compile"
10728 case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_compile") 2>conftest.er1
10735 grep -v '^ *+' conftest.er1 >conftest.err
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } && {
10740 test -z "$ac_c_werror_flag" ||
10741 test ! -s conftest.err
10742 } && test -s conftest.$ac_objext; then
10743 ac_lo=$ac_mid; break
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10748 ac_hi=`expr '(' $ac_mid ')' - 1`
10749 if test $ac_mid -le $ac_hi; then
10753 ac_mid=`expr 2 '*' $ac_mid`
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 # Binary search between lo and hi bounds.
10770 while test "x$ac_lo" != "x$ac_hi"; do
10771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10772 cat >conftest.$ac_ext <<_ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 #include <stddef.h>
10782 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10789 rm -f conftest.$ac_objext
10790 if { (ac_try="$ac_compile"
10791 case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_compile") 2>conftest.er1
10798 grep -v '^ *+' conftest.er1 >conftest.err
10800 cat conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } && {
10803 test -z "$ac_c_werror_flag" ||
10804 test ! -s conftest.err
10805 } && test -s conftest.$ac_objext; then
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 ac_lo=`expr '(' $ac_mid ')' + 1`
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 ?*) res_lo=$ac_lo;;
10821 cat >conftest.$ac_ext <<_ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 #include <stddef.h>
10828 static long int longval () { return ~(size_t)0 % 10; }
10829 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10831 #include <stdlib.h>
10836 FILE *f = fopen ("conftest.val", "w");
10839 if ((~(size_t)0 % 10) < 0)
10841 long int i = longval ();
10842 if (i != (~(size_t)0 % 10))
10844 fprintf (f, "%ld\n", i);
10848 unsigned long int i = ulongval ();
10849 if (i != (~(size_t)0 % 10))
10851 fprintf (f, "%lu\n", i);
10853 return ferror (f) || fclose (f) != 0;
10859 rm -f conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_link") 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 res_lo=`cat conftest.val`
10881 echo "$as_me: program exited with status $ac_status" >&5
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 ( exit $ac_status )
10888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10892 if test "$cross_compiling" = yes; then
10893 # Depending upon the size, compute the lo and hi bounds.
10894 cat >conftest.$ac_ext <<_ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 #include <stddef.h>
10904 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest.$ac_objext; then
10930 cat >conftest.$ac_ext <<_ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 #include <stddef.h>
10940 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10947 rm -f conftest.$ac_objext
10948 if { (ac_try="$ac_compile"
10949 case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_compile") 2>conftest.er1
10956 grep -v '^ *+' conftest.er1 >conftest.err
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } && {
10961 test -z "$ac_c_werror_flag" ||
10962 test ! -s conftest.err
10963 } && test -s conftest.$ac_objext; then
10964 ac_hi=$ac_mid; break
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_lo=`expr $ac_mid + 1`
10970 if test $ac_lo -le $ac_mid; then
10974 ac_mid=`expr 2 '*' $ac_mid + 1`
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10983 cat >conftest.$ac_ext <<_ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 #include <stddef.h>
10993 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11000 rm -f conftest.$ac_objext
11001 if { (ac_try="$ac_compile"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_compile") 2>conftest.er1
11009 grep -v '^ *+' conftest.er1 >conftest.err
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_c_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest.$ac_objext; then
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <stddef.h>
11029 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11036 rm -f conftest.$ac_objext
11037 if { (ac_try="$ac_compile"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_compile") 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest.$ac_objext; then
11053 ac_lo=$ac_mid; break
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_hi=`expr '(' $ac_mid ')' - 1`
11059 if test $ac_mid -le $ac_hi; then
11063 ac_mid=`expr 2 '*' $ac_mid`
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 # Binary search between lo and hi bounds.
11080 while test "x$ac_lo" != "x$ac_hi"; do
11081 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11082 cat >conftest.$ac_ext <<_ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088 #include <stddef.h>
11092 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11108 grep -v '^ *+' conftest.er1 >conftest.err
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.$ac_objext; then
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_lo=`expr '(' $ac_mid ')' + 1`
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 ?*) fits_in_uint=$ac_lo;;
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <stddef.h>
11138 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11139 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11141 #include <stdlib.h>
11146 FILE *f = fopen ("conftest.val", "w");
11149 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11151 long int i = longval ();
11152 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11154 fprintf (f, "%ld\n", i);
11158 unsigned long int i = ulongval ();
11159 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11161 fprintf (f, "%lu\n", i);
11163 return ferror (f) || fclose (f) != 0;
11169 rm -f conftest$ac_exeext
11170 if { (ac_try="$ac_link"
11171 case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_link") 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11180 { (case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_try") 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 fits_in_uint=`cat conftest.val`
11191 echo "$as_me: program exited with status $ac_status" >&5
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ( exit $ac_status )
11198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11202 if test "$fits_in_uint" = 1; then
11203 cat >conftest.$ac_ext <<_ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 #include <stddef.h>
11211 extern unsigned long foo;
11221 rm -f conftest.$ac_objext
11222 if { (ac_try="$ac_compile"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_compile") 2>conftest.er1
11230 grep -v '^ *+' conftest.er1 >conftest.err
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && {
11235 test -z "$ac_c_werror_flag" ||
11236 test ! -s conftest.err
11237 } && test -s conftest.$ac_objext; then
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 if test -z "$result"; then
11249 if test "$fits_in_uint" = 1; then
11250 result="$res_hi$res_lo"U
11252 result="$res_hi$res_lo"UL
11255 result='~(size_t)0'
11258 { echo "$as_me:$LINENO: result: $result" >&5
11259 echo "${ECHO_T}$result" >&6; }
11260 if test "$result" != yes; then
11262 cat >>confdefs.h <<_ACEOF
11263 #define SIZE_MAX $result
11272 for ac_header in stdint.h
11274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 ac_res=`eval echo '${'$as_ac_Header'}'`
11282 { echo "$as_me:$LINENO: result: $ac_res" >&5
11283 echo "${ECHO_T}$ac_res" >&6; }
11285 # Is the header compilable?
11286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11288 cat >conftest.$ac_ext <<_ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 $ac_includes_default
11295 #include <$ac_header>
11297 rm -f conftest.$ac_objext
11298 if { (ac_try="$ac_compile"
11299 case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_compile") 2>conftest.er1
11306 grep -v '^ *+' conftest.er1 >conftest.err
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && {
11311 test -z "$ac_c_werror_flag" ||
11312 test ! -s conftest.err
11313 } && test -s conftest.$ac_objext; then
11314 ac_header_compiler=yes
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11319 ac_header_compiler=no
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324 echo "${ECHO_T}$ac_header_compiler" >&6; }
11326 # Is the header present?
11327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 #include <$ac_header>
11337 if { (ac_try="$ac_cpp conftest.$ac_ext"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11345 grep -v '^ *+' conftest.er1 >conftest.err
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } >/dev/null && {
11350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11351 test ! -s conftest.err
11353 ac_header_preproc=yes
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_header_preproc=no
11361 rm -f conftest.err conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11363 echo "${ECHO_T}$ac_header_preproc" >&6; }
11365 # So? What about this header?
11366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11372 ac_header_preproc=yes
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 eval "$as_ac_Header=\$ac_header_preproc"
11397 ac_res=`eval echo '${'$as_ac_Header'}'`
11398 { echo "$as_me:$LINENO: result: $ac_res" >&5
11399 echo "${ECHO_T}$ac_res" >&6; }
11402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11403 cat >>confdefs.h <<_ACEOF
11404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11418 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11419 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11420 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 cat >conftest.$ac_ext <<_ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 $ac_includes_default
11430 typedef ptrdiff_t ac__type_new_;
11434 if ((ac__type_new_ *) 0)
11436 if (sizeof (ac__type_new_))
11442 rm -f conftest.$ac_objext
11443 if { (ac_try="$ac_compile"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_compile") 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_c_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest.$ac_objext; then
11459 ac_cv_type_ptrdiff_t=yes
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ac_cv_type_ptrdiff_t=no
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11470 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11471 if test $ac_cv_type_ptrdiff_t = yes; then
11475 cat >>confdefs.h <<\_ACEOF
11476 #define ptrdiff_t long
11492 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11493 stdlib.h string.h unistd.h sys/param.h
11495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11506 # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11516 #include <$ac_header>
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } && {
11532 test -z "$ac_c_werror_flag" ||
11533 test ! -s conftest.err
11534 } && test -s conftest.$ac_objext; then
11535 ac_header_compiler=yes
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11540 ac_header_compiler=no
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 echo "${ECHO_T}$ac_header_compiler" >&6; }
11547 # Is the header present?
11548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11550 cat >conftest.$ac_ext <<_ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 #include <$ac_header>
11558 if { (ac_try="$ac_cpp conftest.$ac_ext"
11559 case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11566 grep -v '^ *+' conftest.er1 >conftest.err
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } >/dev/null && {
11571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11572 test ! -s conftest.err
11574 ac_header_preproc=yes
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 ac_header_preproc=no
11582 rm -f conftest.err conftest.$ac_ext
11583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584 echo "${ECHO_T}$ac_header_preproc" >&6; }
11586 # So? What about this header?
11587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11593 ac_header_preproc=yes
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 eval "$as_ac_Header=\$ac_header_preproc"
11618 ac_res=`eval echo '${'$as_ac_Header'}'`
11619 { echo "$as_me:$LINENO: result: $ac_res" >&5
11620 echo "${ECHO_T}$ac_res" >&6; }
11623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11624 cat >>confdefs.h <<_ACEOF
11625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11656 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11657 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11674 #define $ac_func innocuous_$ac_func
11676 /* System header to define __stub macros and hopefully few prototypes,
11677 which can conflict with char $ac_func (); below.
11678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679 <limits.h> exists even on freestanding compilers. */
11682 # include <limits.h>
11684 # include <assert.h>
11689 /* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11696 /* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699 #if defined __stub_$ac_func || defined __stub___$ac_func
11706 return $ac_func ();
11711 rm -f conftest.$ac_objext conftest$ac_exeext
11712 if { (ac_try="$ac_link"
11713 case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_link") 2>conftest.er1
11720 grep -v '^ *+' conftest.er1 >conftest.err
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } && {
11725 test -z "$ac_c_werror_flag" ||
11726 test ! -s conftest.err
11727 } && test -s conftest$ac_exeext &&
11728 $as_test_x conftest$ac_exeext; then
11729 eval "$as_ac_var=yes"
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 eval "$as_ac_var=no"
11737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11738 conftest$ac_exeext conftest.$ac_ext
11740 ac_res=`eval echo '${'$as_ac_var'}'`
11741 { echo "$as_me:$LINENO: result: $ac_res" >&5
11742 echo "${ECHO_T}$ac_res" >&6; }
11743 if test `eval echo '${'$as_ac_var'}'` = yes; then
11744 cat >>confdefs.h <<_ACEOF
11745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11753 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11754 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11755 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 cat >conftest.$ac_ext <<_ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11770 char *p = (char *) _snprintf;
11777 rm -f conftest.$ac_objext
11778 if { (ac_try="$ac_compile"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_compile") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest.$ac_objext; then
11794 ac_cv_have_decl__snprintf=yes
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 ac_cv_have_decl__snprintf=no
11802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11804 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11805 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11806 if test $ac_cv_have_decl__snprintf = yes; then
11812 cat >>confdefs.h <<_ACEOF
11813 #define HAVE_DECL__SNPRINTF $gt_value
11818 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11819 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11820 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11835 char *p = (char *) _snwprintf;
11842 rm -f conftest.$ac_objext
11843 if { (ac_try="$ac_compile"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_compile") 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } && {
11856 test -z "$ac_c_werror_flag" ||
11857 test ! -s conftest.err
11858 } && test -s conftest.$ac_objext; then
11859 ac_cv_have_decl__snwprintf=yes
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 ac_cv_have_decl__snwprintf=no
11867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11870 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11871 if test $ac_cv_have_decl__snwprintf = yes; then
11877 cat >>confdefs.h <<_ACEOF
11878 #define HAVE_DECL__SNWPRINTF $gt_value
11884 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11885 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11886 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 cat >conftest.$ac_ext <<_ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11900 #ifndef feof_unlocked
11901 char *p = (char *) feof_unlocked;
11908 rm -f conftest.$ac_objext
11909 if { (ac_try="$ac_compile"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_compile") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest.$ac_objext; then
11925 ac_cv_have_decl_feof_unlocked=yes
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11930 ac_cv_have_decl_feof_unlocked=no
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11936 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11937 if test $ac_cv_have_decl_feof_unlocked = yes; then
11943 cat >>confdefs.h <<_ACEOF
11944 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11949 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11950 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11951 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 cat >conftest.$ac_ext <<_ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11965 #ifndef fgets_unlocked
11966 char *p = (char *) fgets_unlocked;
11973 rm -f conftest.$ac_objext
11974 if { (ac_try="$ac_compile"
11975 case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_compile") 2>conftest.er1
11982 grep -v '^ *+' conftest.er1 >conftest.err
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest.$ac_objext; then
11990 ac_cv_have_decl_fgets_unlocked=yes
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11995 ac_cv_have_decl_fgets_unlocked=no
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12001 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12002 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12008 cat >>confdefs.h <<_ACEOF
12009 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12014 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12015 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12016 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 cat >conftest.$ac_ext <<_ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12030 #ifndef getc_unlocked
12031 char *p = (char *) getc_unlocked;
12038 rm -f conftest.$ac_objext
12039 if { (ac_try="$ac_compile"
12040 case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_compile") 2>conftest.er1
12047 grep -v '^ *+' conftest.er1 >conftest.err
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest.$ac_objext; then
12055 ac_cv_have_decl_getc_unlocked=yes
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 ac_cv_have_decl_getc_unlocked=no
12063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12066 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12067 if test $ac_cv_have_decl_getc_unlocked = yes; then
12073 cat >>confdefs.h <<_ACEOF
12074 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12079 case $gt_cv_func_printf_posix in
12080 *yes) HAVE_POSIX_PRINTF=1 ;;
12081 *) HAVE_POSIX_PRINTF=0 ;;
12084 if test "$ac_cv_func_asprintf" = yes; then
12090 if test "$ac_cv_func_snprintf" = yes; then
12096 if test "$ac_cv_func_wprintf" = yes; then
12108 am_save_CPPFLAGS="$CPPFLAGS"
12110 for element in $INCICONV; do
12112 for x in $CPPFLAGS; do
12114 acl_save_prefix="$prefix"
12115 prefix="$acl_final_prefix"
12116 acl_save_exec_prefix="$exec_prefix"
12117 exec_prefix="$acl_final_exec_prefix"
12119 exec_prefix="$acl_save_exec_prefix"
12120 prefix="$acl_save_prefix"
12122 if test "X$x" = "X$element"; then
12127 if test -z "$haveit"; then
12128 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12133 { echo "$as_me:$LINENO: checking for iconv" >&5
12134 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12135 if test "${am_cv_func_iconv+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 am_cv_func_iconv="no, consider installing GNU libiconv"
12141 cat >conftest.$ac_ext <<_ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 #include <stdlib.h>
12152 iconv_t cd = iconv_open("","");
12153 iconv(cd,NULL,NULL,NULL,NULL);
12159 rm -f conftest.$ac_objext conftest$ac_exeext
12160 if { (ac_try="$ac_link"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_link") 2>conftest.er1
12168 grep -v '^ *+' conftest.er1 >conftest.err
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } && {
12173 test -z "$ac_c_werror_flag" ||
12174 test ! -s conftest.err
12175 } && test -s conftest$ac_exeext &&
12176 $as_test_x conftest$ac_exeext; then
12177 am_cv_func_iconv=yes
12179 echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12186 conftest$ac_exeext conftest.$ac_ext
12187 if test "$am_cv_func_iconv" != yes; then
12188 am_save_LIBS="$LIBS"
12189 LIBS="$LIBS $LIBICONV"
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <stdlib.h>
12201 iconv_t cd = iconv_open("","");
12202 iconv(cd,NULL,NULL,NULL,NULL);
12208 rm -f conftest.$ac_objext conftest$ac_exeext
12209 if { (ac_try="$ac_link"
12210 case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_link") 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } && {
12222 test -z "$ac_c_werror_flag" ||
12223 test ! -s conftest.err
12224 } && test -s conftest$ac_exeext &&
12225 $as_test_x conftest$ac_exeext; then
12226 am_cv_lib_iconv=yes
12227 am_cv_func_iconv=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS="$am_save_LIBS"
12241 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12242 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12243 if test "$am_cv_func_iconv" = yes; then
12245 cat >>confdefs.h <<\_ACEOF
12246 #define HAVE_ICONV 1
12250 if test "$am_cv_lib_iconv" = yes; then
12251 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12252 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12253 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12254 echo "${ECHO_T}$LIBICONV" >&6; }
12256 CPPFLAGS="$am_save_CPPFLAGS"
12263 if test "$am_cv_func_iconv" = yes; then
12264 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12265 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12266 if test "${am_cv_proto_iconv+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12277 #include <stdlib.h>
12283 #if defined(__STDC__) || defined(__cplusplus)
12284 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12297 rm -f conftest.$ac_objext
12298 if { (ac_try="$ac_compile"
12299 case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_compile") 2>conftest.er1
12306 grep -v '^ *+' conftest.er1 >conftest.err
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } && {
12311 test -z "$ac_c_werror_flag" ||
12312 test ! -s conftest.err
12313 } && test -s conftest.$ac_objext; then
12314 am_cv_proto_iconv_arg1=""
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 am_cv_proto_iconv_arg1="const"
12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323 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);"
12326 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12327 { echo "$as_me:$LINENO: result: ${ac_t:-
12328 }$am_cv_proto_iconv" >&5
12329 echo "${ECHO_T}${ac_t:-
12330 }$am_cv_proto_iconv" >&6; }
12332 cat >>confdefs.h <<_ACEOF
12333 #define ICONV_CONST $am_cv_proto_iconv_arg1
12339 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12340 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12341 if test "${am_cv_langinfo_codeset+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 cat >conftest.$ac_ext <<_ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 #include <langinfo.h>
12354 char* cs = nl_langinfo(CODESET);
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_link") 2>conftest.er1
12368 grep -v '^ *+' conftest.er1 >conftest.err
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest$ac_exeext &&
12376 $as_test_x conftest$ac_exeext; then
12377 am_cv_langinfo_codeset=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 am_cv_langinfo_codeset=no
12385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12386 conftest$ac_exeext conftest.$ac_ext
12389 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12390 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12391 if test $am_cv_langinfo_codeset = yes; then
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_LANGINFO_CODESET 1
12399 if test $ac_cv_header_locale_h = yes; then
12401 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12402 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12403 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 cat >conftest.$ac_ext <<_ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 #include <locale.h>
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext &&
12438 $as_test_x conftest$ac_exeext; then
12439 gt_cv_val_LC_MESSAGES=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 gt_cv_val_LC_MESSAGES=no
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext conftest.$ac_ext
12450 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12451 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12452 if test $gt_cv_val_LC_MESSAGES = yes; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define HAVE_LC_MESSAGES 1
12462 if test -n "$INTL_MACOSX_LIBS"; then
12463 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12466 for ac_prog in bison
12468 # Extract the first word of "$ac_prog", so it can be a program name with args.
12469 set dummy $ac_prog; ac_word=$2
12470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12472 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 if test -n "$INTLBISON"; then
12476 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12485 ac_cv_prog_INTLBISON="$ac_prog"
12486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 INTLBISON=$ac_cv_prog_INTLBISON
12496 if test -n "$INTLBISON"; then
12497 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12498 echo "${ECHO_T}$INTLBISON" >&6; }
12500 { echo "$as_me:$LINENO: result: no" >&5
12501 echo "${ECHO_T}no" >&6; }
12505 test -n "$INTLBISON" && break
12508 if test -z "$INTLBISON"; then
12511 { echo "$as_me:$LINENO: checking version of bison" >&5
12512 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12513 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12514 case $ac_prog_version in
12515 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12516 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12517 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12518 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12520 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12521 echo "${ECHO_T}$ac_prog_version" >&6; }
12523 if test $ac_verc_fail = yes; then
12542 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12543 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12544 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 gt_save_CPPFLAGS="$CPPFLAGS"
12548 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12549 gt_save_LIBS="$LIBS"
12550 LIBS="$LIBS -framework CoreFoundation"
12551 cat >conftest.$ac_ext <<_ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 #include <CFPreferences.h>
12561 CFPreferencesCopyAppValue(NULL, NULL)
12566 rm -f conftest.$ac_objext conftest$ac_exeext
12567 if { (ac_try="$ac_link"
12568 case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_link") 2>conftest.er1
12575 grep -v '^ *+' conftest.er1 >conftest.err
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } && {
12580 test -z "$ac_c_werror_flag" ||
12581 test ! -s conftest.err
12582 } && test -s conftest$ac_exeext &&
12583 $as_test_x conftest$ac_exeext; then
12584 gt_cv_func_CFPreferencesCopyAppValue=yes
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12589 gt_cv_func_CFPreferencesCopyAppValue=no
12592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12593 conftest$ac_exeext conftest.$ac_ext
12594 CPPFLAGS="$gt_save_CPPFLAGS"
12595 LIBS="$gt_save_LIBS"
12597 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12598 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12599 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12601 cat >>confdefs.h <<\_ACEOF
12602 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12606 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12607 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12608 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12611 gt_save_CPPFLAGS="$CPPFLAGS"
12612 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12613 gt_save_LIBS="$LIBS"
12614 LIBS="$LIBS -framework CoreFoundation"
12615 cat >conftest.$ac_ext <<_ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 #include <CFLocale.h>
12625 CFLocaleCopyCurrent();
12630 rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (ac_try="$ac_link"
12632 case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_link") 2>conftest.er1
12639 grep -v '^ *+' conftest.er1 >conftest.err
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } && {
12644 test -z "$ac_c_werror_flag" ||
12645 test ! -s conftest.err
12646 } && test -s conftest$ac_exeext &&
12647 $as_test_x conftest$ac_exeext; then
12648 gt_cv_func_CFLocaleCopyCurrent=yes
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12653 gt_cv_func_CFLocaleCopyCurrent=no
12656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12657 conftest$ac_exeext conftest.$ac_ext
12658 CPPFLAGS="$gt_save_CPPFLAGS"
12659 LIBS="$gt_save_LIBS"
12661 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12662 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12663 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12665 cat >>confdefs.h <<\_ACEOF
12666 #define HAVE_CFLOCALECOPYCURRENT 1
12671 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12672 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12678 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12679 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12680 # Check whether --enable-nls was given.
12681 if test "${enable_nls+set}" = set; then
12682 enableval=$enable_nls; USE_NLS=$enableval
12687 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12688 echo "${ECHO_T}$USE_NLS" >&6; }
12693 BUILD_INCLUDED_LIBINTL=no
12694 USE_INCLUDED_LIBINTL=no
12700 if test "$USE_NLS" = "yes"; then
12701 gt_use_preinstalled_gnugettext=no
12703 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12704 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12706 # Check whether --with-included-gettext was given.
12707 if test "${with_included_gettext+set}" = set; then
12708 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12710 nls_cv_force_use_gnu_gettext=no
12713 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12714 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12716 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12717 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12724 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12725 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12726 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 cat >conftest.$ac_ext <<_ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12735 #include <libintl.h>
12736 extern int _nl_msg_cat_cntr;
12737 extern int *_nl_domain_bindings;
12741 bindtextdomain ("", "");
12742 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (ac_try="$ac_link"
12749 case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_link") 2>conftest.er1
12756 grep -v '^ *+' conftest.er1 >conftest.err
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_c_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest$ac_exeext &&
12764 $as_test_x conftest$ac_exeext; then
12765 gt_cv_func_gnugettext1_libc=yes
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12770 gt_cv_func_gnugettext1_libc=no
12773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12774 conftest$ac_exeext conftest.$ac_ext
12776 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12777 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12779 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12785 acl_save_prefix="$prefix"
12786 prefix="$acl_final_prefix"
12787 acl_save_exec_prefix="$exec_prefix"
12788 exec_prefix="$acl_final_exec_prefix"
12790 eval additional_includedir=\"$includedir\"
12791 eval additional_libdir=\"$libdir\"
12793 exec_prefix="$acl_save_exec_prefix"
12794 prefix="$acl_save_prefix"
12797 # Check whether --with-libintl-prefix was given.
12798 if test "${with_libintl_prefix+set}" = set; then
12799 withval=$with_libintl_prefix;
12800 if test "X$withval" = "Xno"; then
12803 if test "X$withval" = "X"; then
12805 acl_save_prefix="$prefix"
12806 prefix="$acl_final_prefix"
12807 acl_save_exec_prefix="$exec_prefix"
12808 exec_prefix="$acl_final_exec_prefix"
12810 eval additional_includedir=\"$includedir\"
12811 eval additional_libdir=\"$libdir\"
12813 exec_prefix="$acl_save_exec_prefix"
12814 prefix="$acl_save_prefix"
12817 additional_includedir="$withval/include"
12818 additional_libdir="$withval/lib"
12829 names_already_handled=
12830 names_next_round='intl '
12831 while test -n "$names_next_round"; do
12832 names_this_round="$names_next_round"
12834 for name in $names_this_round; do
12836 for n in $names_already_handled; do
12837 if test "$n" = "$name"; then
12838 already_handled=yes
12842 if test -z "$already_handled"; then
12843 names_already_handled="$names_already_handled $name"
12844 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12845 eval value=\"\$HAVE_LIB$uppername\"
12846 if test -n "$value"; then
12847 if test "$value" = yes; then
12848 eval value=\"\$LIB$uppername\"
12849 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12850 eval value=\"\$LTLIB$uppername\"
12851 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12860 if test $use_additional = yes; then
12861 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12862 found_dir="$additional_libdir"
12863 found_so="$additional_libdir/lib$name.$shlibext"
12864 if test -f "$additional_libdir/lib$name.la"; then
12865 found_la="$additional_libdir/lib$name.la"
12868 if test -f "$additional_libdir/lib$name.$libext"; then
12869 found_dir="$additional_libdir"
12870 found_a="$additional_libdir/lib$name.$libext"
12871 if test -f "$additional_libdir/lib$name.la"; then
12872 found_la="$additional_libdir/lib$name.la"
12877 if test "X$found_dir" = "X"; then
12878 for x in $LDFLAGS $LTLIBINTL; do
12880 acl_save_prefix="$prefix"
12881 prefix="$acl_final_prefix"
12882 acl_save_exec_prefix="$exec_prefix"
12883 exec_prefix="$acl_final_exec_prefix"
12885 exec_prefix="$acl_save_exec_prefix"
12886 prefix="$acl_save_prefix"
12890 dir=`echo "X$x" | sed -e 's/^X-L//'`
12891 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12893 found_so="$dir/lib$name.$shlibext"
12894 if test -f "$dir/lib$name.la"; then
12895 found_la="$dir/lib$name.la"
12898 if test -f "$dir/lib$name.$libext"; then
12900 found_a="$dir/lib$name.$libext"
12901 if test -f "$dir/lib$name.la"; then
12902 found_la="$dir/lib$name.la"
12908 if test "X$found_dir" != "X"; then
12913 if test "X$found_dir" != "X"; then
12914 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12915 if test "X$found_so" != "X"; then
12916 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12917 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12920 for x in $ltrpathdirs; do
12921 if test "X$x" = "X$found_dir"; then
12926 if test -z "$haveit"; then
12927 ltrpathdirs="$ltrpathdirs $found_dir"
12929 if test "$hardcode_direct" = yes; then
12930 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12932 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12933 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12935 for x in $rpathdirs; do
12936 if test "X$x" = "X$found_dir"; then
12941 if test -z "$haveit"; then
12942 rpathdirs="$rpathdirs $found_dir"
12946 for x in $LDFLAGS $LIBINTL; do
12948 acl_save_prefix="$prefix"
12949 prefix="$acl_final_prefix"
12950 acl_save_exec_prefix="$exec_prefix"
12951 exec_prefix="$acl_final_exec_prefix"
12953 exec_prefix="$acl_save_exec_prefix"
12954 prefix="$acl_save_prefix"
12956 if test "X$x" = "X-L$found_dir"; then
12961 if test -z "$haveit"; then
12962 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12964 if test "$hardcode_minus_L" != no; then
12965 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12967 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12973 if test "X$found_a" != "X"; then
12974 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12976 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12979 additional_includedir=
12980 case "$found_dir" in
12982 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12983 additional_includedir="$basedir/include"
12986 if test "X$additional_includedir" != "X"; then
12987 if test "X$additional_includedir" != "X/usr/include"; then
12989 if test "X$additional_includedir" = "X/usr/local/include"; then
12990 if test -n "$GCC"; then
12992 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12996 if test -z "$haveit"; then
12997 for x in $CPPFLAGS $INCINTL; do
12999 acl_save_prefix="$prefix"
13000 prefix="$acl_final_prefix"
13001 acl_save_exec_prefix="$exec_prefix"
13002 exec_prefix="$acl_final_exec_prefix"
13004 exec_prefix="$acl_save_exec_prefix"
13005 prefix="$acl_save_prefix"
13007 if test "X$x" = "X-I$additional_includedir"; then
13012 if test -z "$haveit"; then
13013 if test -d "$additional_includedir"; then
13014 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13020 if test -n "$found_la"; then
13021 save_libdir="$libdir"
13022 case "$found_la" in
13023 */* | *\\*) . "$found_la" ;;
13024 *) . "./$found_la" ;;
13026 libdir="$save_libdir"
13027 for dep in $dependency_libs; do
13030 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13031 if test "X$additional_libdir" != "X/usr/lib"; then
13033 if test "X$additional_libdir" = "X/usr/local/lib"; then
13034 if test -n "$GCC"; then
13036 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13040 if test -z "$haveit"; then
13042 for x in $LDFLAGS $LIBINTL; do
13044 acl_save_prefix="$prefix"
13045 prefix="$acl_final_prefix"
13046 acl_save_exec_prefix="$exec_prefix"
13047 exec_prefix="$acl_final_exec_prefix"
13049 exec_prefix="$acl_save_exec_prefix"
13050 prefix="$acl_save_prefix"
13052 if test "X$x" = "X-L$additional_libdir"; then
13057 if test -z "$haveit"; then
13058 if test -d "$additional_libdir"; then
13059 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13063 for x in $LDFLAGS $LTLIBINTL; do
13065 acl_save_prefix="$prefix"
13066 prefix="$acl_final_prefix"
13067 acl_save_exec_prefix="$exec_prefix"
13068 exec_prefix="$acl_final_exec_prefix"
13070 exec_prefix="$acl_save_exec_prefix"
13071 prefix="$acl_save_prefix"
13073 if test "X$x" = "X-L$additional_libdir"; then
13078 if test -z "$haveit"; then
13079 if test -d "$additional_libdir"; then
13080 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13087 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13088 if test "$enable_rpath" != no; then
13090 for x in $rpathdirs; do
13091 if test "X$x" = "X$dir"; then
13096 if test -z "$haveit"; then
13097 rpathdirs="$rpathdirs $dir"
13100 for x in $ltrpathdirs; do
13101 if test "X$x" = "X$dir"; then
13106 if test -z "$haveit"; then
13107 ltrpathdirs="$ltrpathdirs $dir"
13112 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13115 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13118 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13119 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13125 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13132 if test "X$rpathdirs" != "X"; then
13133 if test -n "$hardcode_libdir_separator"; then
13135 for found_dir in $rpathdirs; do
13136 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13138 acl_save_libdir="$libdir"
13140 eval flag=\"$hardcode_libdir_flag_spec\"
13141 libdir="$acl_save_libdir"
13142 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13144 for found_dir in $rpathdirs; do
13145 acl_save_libdir="$libdir"
13146 libdir="$found_dir"
13147 eval flag=\"$hardcode_libdir_flag_spec\"
13148 libdir="$acl_save_libdir"
13149 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13153 if test "X$ltrpathdirs" != "X"; then
13154 for found_dir in $ltrpathdirs; do
13155 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13159 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13160 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13161 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 gt_save_CPPFLAGS="$CPPFLAGS"
13165 CPPFLAGS="$CPPFLAGS $INCINTL"
13166 gt_save_LIBS="$LIBS"
13167 LIBS="$LIBS $LIBINTL"
13168 cat >conftest.$ac_ext <<_ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13174 #include <libintl.h>
13175 extern int _nl_msg_cat_cntr;
13180 const char *_nl_expand_alias (const char *);
13184 bindtextdomain ("", "");
13185 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (ac_try="$ac_link"
13192 case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_link") 2>conftest.er1
13199 grep -v '^ *+' conftest.er1 >conftest.err
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } && {
13204 test -z "$ac_c_werror_flag" ||
13205 test ! -s conftest.err
13206 } && test -s conftest$ac_exeext &&
13207 $as_test_x conftest$ac_exeext; then
13208 gt_cv_func_gnugettext1_libintl=yes
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 gt_cv_func_gnugettext1_libintl=no
13216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13217 conftest$ac_exeext conftest.$ac_ext
13218 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13219 LIBS="$LIBS $LIBICONV"
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 #include <libintl.h>
13227 extern int _nl_msg_cat_cntr;
13232 const char *_nl_expand_alias (const char *);
13236 bindtextdomain ("", "");
13237 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_link") 2>conftest.er1
13251 grep -v '^ *+' conftest.er1 >conftest.err
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && {
13256 test -z "$ac_c_werror_flag" ||
13257 test ! -s conftest.err
13258 } && test -s conftest$ac_exeext &&
13259 $as_test_x conftest$ac_exeext; then
13260 LIBINTL="$LIBINTL $LIBICONV"
13261 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13262 gt_cv_func_gnugettext1_libintl=yes
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13272 conftest$ac_exeext conftest.$ac_ext
13274 CPPFLAGS="$gt_save_CPPFLAGS"
13275 LIBS="$gt_save_LIBS"
13277 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13278 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13281 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13282 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13283 && test "$PACKAGE" != gettext-runtime \
13284 && test "$PACKAGE" != gettext-tools; }; then
13285 gt_use_preinstalled_gnugettext=yes
13293 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13294 nls_cv_use_gnu_gettext=yes
13298 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13299 BUILD_INCLUDED_LIBINTL=yes
13300 USE_INCLUDED_LIBINTL=yes
13301 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13302 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13303 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13307 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13308 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13313 if test -n "$INTL_MACOSX_LIBS"; then
13314 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13315 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13316 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13317 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13321 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13322 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13324 cat >>confdefs.h <<\_ACEOF
13325 #define ENABLE_NLS 1
13333 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13334 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13335 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13336 echo "${ECHO_T}$USE_NLS" >&6; }
13337 if test "$USE_NLS" = "yes"; then
13338 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13339 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13340 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13341 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13342 gt_source="external libintl"
13347 gt_source="included intl directory"
13349 { echo "$as_me:$LINENO: result: $gt_source" >&5
13350 echo "${ECHO_T}$gt_source" >&6; }
13353 if test "$USE_NLS" = "yes"; then
13355 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13356 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13357 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13358 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13359 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13360 echo "${ECHO_T}$LIBINTL" >&6; }
13362 for element in $INCINTL; do
13364 for x in $CPPFLAGS; do
13366 acl_save_prefix="$prefix"
13367 prefix="$acl_final_prefix"
13368 acl_save_exec_prefix="$exec_prefix"
13369 exec_prefix="$acl_final_exec_prefix"
13371 exec_prefix="$acl_save_exec_prefix"
13372 prefix="$acl_save_prefix"
13374 if test "X$x" = "X$element"; then
13379 if test -z "$haveit"; then
13380 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13387 cat >>confdefs.h <<\_ACEOF
13388 #define HAVE_GETTEXT 1
13392 cat >>confdefs.h <<\_ACEOF
13393 #define HAVE_DCGETTEXT 1
13402 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13403 BUILD_INCLUDED_LIBINTL=yes
13410 nls_cv_header_intl=
13411 nls_cv_header_libgt=
13423 if test "$USE_INCLUDED_LIBINTL" = yes; then
13424 INTLOBJS="\$(GETTOBJS)"
13428 INTL_LIBTOOL_SUFFIX_PREFIX=
13432 INTLLIBS="$LIBINTL"
13444 support_postgresql=no
13446 support_smartalloc=yes
13447 support_readline=yes
13451 support_wx_console=no
13457 support_static_tools=no
13458 support_static_fd=no
13459 support_static_sd=no
13460 support_static_dir=no
13461 support_static_cons=no
13463 build_client_only=no
13471 # -------------------------------------------
13472 # Berkeley DB (default off)
13473 # -------------------------------------------
13475 # Check whether --enable-libdb was given.
13476 if test "${enable_libdb+set}" = set; then
13477 enableval=$enable_libdb; if test x$enableval = xno; then
13483 if test x$support_libdb = xyes; then
13488 # Add --with-bdb-dir option to configure.
13490 # Check whether --with-bdb-dir was given.
13491 if test "${with_bdb_dir+set}" = set; then
13492 withval=$with_bdb_dir;
13496 # Check if --with-bdb-dir was specified.
13497 if test "x$with_bdb_dir" = "x" ; then
13498 # No option specified, so just search the system.
13500 ax_path_bdb_no_options_ok=no
13502 # Values to add to environment to use Berkeley DB.
13508 # Check cross compilation here.
13509 if test "x$cross_compiling" = "xyes" ; then
13510 # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
13511 # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
13512 # and extracts the version number from it.
13513 { echo "$as_me:$LINENO: checking for db.h" >&5
13514 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13516 ax_path_bdb_no_options_HEADER_VERSION=''
13517 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13526 AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
13530 if { (ac_try="$ac_cpp conftest.$ac_ext"
13531 case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13538 grep -v '^ *+' conftest.er1 >conftest.err
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } >/dev/null && {
13543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13544 test ! -s conftest.err
13547 # Extract version from preprocessor output.
13548 ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
13549 | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13558 rm -f conftest.err conftest.$ac_ext
13560 if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
13561 { echo "$as_me:$LINENO: result: no" >&5
13562 echo "${ECHO_T}no" >&6; }
13564 { echo "$as_me:$LINENO: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
13565 echo "${ECHO_T}$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
13567 # Check that version is high enough.
13569 for ac_prog in gawk mawk nawk awk
13571 # Extract the first word of "$ac_prog", so it can be a program name with args.
13572 set dummy $ac_prog; ac_word=$2
13573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13575 if test "${ac_cv_prog_AWK+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 if test -n "$AWK"; then
13579 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582 for as_dir in $PATH
13585 test -z "$as_dir" && as_dir=.
13586 for ac_exec_ext in '' $ac_executable_extensions; do
13587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13588 ac_cv_prog_AWK="$ac_prog"
13589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 AWK=$ac_cv_prog_AWK
13599 if test -n "$AWK"; then
13600 { echo "$as_me:$LINENO: result: $AWK" >&5
13601 echo "${ECHO_T}$AWK" >&6; }
13603 { echo "$as_me:$LINENO: result: no" >&5
13604 echo "${ECHO_T}no" >&6; }
13608 test -n "$AWK" && break
13612 # Used to indicate true or false condition
13613 ax_compare_version=false
13615 # Convert the two version strings to be compared into a format that
13616 # allows a simple string comparison. The end result is that a version
13617 # string of the form 1.12.5-r617 will be converted to the form
13618 # 0001001200050617. In other words, each number is zero padded to four
13619 # digits, and non digits are removed.
13621 ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13622 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13623 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13624 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13628 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13629 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13630 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13631 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13635 ax_compare_version=`echo "x$ax_compare_version_A
13636 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
13640 if test "$ax_compare_version" = "true" ; then
13642 # get major and minor version numbers
13643 ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
13644 ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
13646 ax_path_bdb_no_options_save_LIBS="$LIBS"
13648 # Check that we can link with the library.
13649 { echo "$as_me:$LINENO: checking for library containing db_version" >&5
13650 echo $ECHO_N "checking for library containing db_version... $ECHO_C" >&6; }
13651 if test "${ac_cv_search_db_version+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 ac_func_search_save_LIBS=$LIBS
13655 cat >conftest.$ac_ext <<_ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13662 /* Override any GCC internal prototype to avoid an error.
13663 Use char because int might match the return type of a GCC
13664 builtin and then its argument prototype would still apply. */
13668 char db_version ();
13672 return db_version ();
13677 for ac_lib in '' db db-$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_options_MAJOR db$ax_path_bdb_no_options_MAJOR; do
13678 if test -z "$ac_lib"; then
13679 ac_res="none required"
13682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (ac_try="$ac_link"
13686 case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>conftest.er1
13693 grep -v '^ *+' conftest.er1 >conftest.err
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } && {
13698 test -z "$ac_c_werror_flag" ||
13699 test ! -s conftest.err
13700 } && test -s conftest$ac_exeext &&
13701 $as_test_x conftest$ac_exeext; then
13702 ac_cv_search_db_version=$ac_res
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13712 if test "${ac_cv_search_db_version+set}" = set; then
13716 if test "${ac_cv_search_db_version+set}" = set; then
13719 ac_cv_search_db_version=no
13721 rm conftest.$ac_ext
13722 LIBS=$ac_func_search_save_LIBS
13724 { echo "$as_me:$LINENO: result: $ac_cv_search_db_version" >&5
13725 echo "${ECHO_T}$ac_cv_search_db_version" >&6; }
13726 ac_res=$ac_cv_search_db_version
13727 if test "$ac_res" != no; then
13728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13730 # Sucessfully found library.
13731 ax_path_bdb_no_options_ok=yes
13732 BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
13734 # Extract library from LIBS
13735 ax_path_bdb_no_options_LEN=` \
13736 echo "x$ax_path_bdb_no_options_save_LIBS" \
13737 | awk '{print(length)}'`
13738 BDB_LIBS=`echo "x$LIBS " \
13739 | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
13744 LIBS="$ax_path_bdb_no_options_save_LIBS"
13752 # Not cross compiling.
13753 # Check version of Berkeley DB in the current environment.
13755 ax_path_bdb_env_get_version_ok=no
13757 ax_path_bdb_env_get_version_VERSION=''
13758 ax_path_bdb_env_get_version_LIBS=''
13761 # Indicate status of checking for Berkeley DB library.
13762 { echo "$as_me:$LINENO: checking for db.h" >&5
13763 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13765 # Compile and run a program that determines the Berkeley DB version
13766 # in the header file db.h.
13767 ax_path_bdb_env_get_version_HEADER_VERSION=''
13768 if test "$cross_compiling" = yes; then
13769 { echo "$as_me:$LINENO: result: no" >&5
13770 echo "${ECHO_T}no" >&6; }
13772 cat >conftest.$ac_ext <<_ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13782 int main(int argc,char **argv)
13786 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
13792 rm -f conftest$ac_exeext
13793 if { (ac_try="$ac_link"
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_link") 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13803 { (case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_try") 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; }; then
13813 # Program compiled and ran, so get version by adding an argument.
13814 ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
13815 { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
13816 echo "${ECHO_T}$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
13819 echo "$as_me: program exited with status $ac_status" >&5
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ( exit $ac_status )
13824 { echo "$as_me:$LINENO: result: no" >&5
13825 echo "${ECHO_T}no" >&6; }
13827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13832 # Have header version, so try to find corresponding library.
13833 # Looks for library names in the order:
13834 # nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
13835 # and stops when it finds the first one that matches the version
13836 # of the header file.
13837 if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
13838 { echo "$as_me:$LINENO: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
13839 echo $ECHO_N "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... $ECHO_C" >&6; }
13842 # get major and minor version numbers
13843 ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
13844 ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
13846 # see if it is already specified in LIBS
13847 ax_path_bdb_env_get_version_TEST_LIBNAME=''
13849 ax_path_bdb_env_confirm_lib_ok=no
13851 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
13852 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
13854 # Compile and run a program that compares the version defined in
13855 # the header file with a version defined in the library function
13857 if test "$cross_compiling" = yes; then
13858 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13859 See \`config.log' for more details." >&5
13860 echo "$as_me: error: cannot run test program while cross compiling
13861 See \`config.log' for more details." >&2;}
13862 { (exit 1); exit 1; }; }
13864 cat >conftest.$ac_ext <<_ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13874 int main(int argc,char **argv)
13876 int major,minor,patch;
13878 db_version(&major,&minor,&patch);
13880 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
13881 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
13882 DB_VERSION_PATCH == patch)
13890 rm -f conftest$ac_exeext
13891 if { (ac_try="$ac_link"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_link") 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13901 { (case "(($ac_try" in
13902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13903 *) ac_try_echo=$ac_try;;
13905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13906 (eval "$ac_try") 2>&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
13911 # Program compiled and ran, so get version by giving an argument,
13912 # which will tell the program to print the output.
13913 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
13915 # If the versions all match up, indicate success.
13917 for ac_prog in gawk mawk nawk awk
13919 # Extract the first word of "$ac_prog", so it can be a program name with args.
13920 set dummy $ac_prog; ac_word=$2
13921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13923 if test "${ac_cv_prog_AWK+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 if test -n "$AWK"; then
13927 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13933 test -z "$as_dir" && as_dir=.
13934 for ac_exec_ext in '' $ac_executable_extensions; do
13935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13936 ac_cv_prog_AWK="$ac_prog"
13937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13946 AWK=$ac_cv_prog_AWK
13947 if test -n "$AWK"; then
13948 { echo "$as_me:$LINENO: result: $AWK" >&5
13949 echo "${ECHO_T}$AWK" >&6; }
13951 { echo "$as_me:$LINENO: result: no" >&5
13952 echo "${ECHO_T}no" >&6; }
13956 test -n "$AWK" && break
13960 # Used to indicate true or false condition
13961 ax_compare_version=false
13963 # Convert the two version strings to be compared into a format that
13964 # allows a simple string comparison. The end result is that a version
13965 # string of the form 1.12.5-r617 will be converted to the form
13966 # 0001001200050617. In other words, each number is zero padded to four
13967 # digits, and non digits are removed.
13969 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13970 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13971 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13972 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13976 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13977 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13978 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13979 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13985 # Pad zeros at end of numbers to make same length.
13986 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
13987 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
13988 ax_compare_version_A="$ax_compare_version_tmp_A"
13990 # Check for equality or inequality as necessary.
13992 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
13997 if test "$ax_compare_version" = "true" ; then
13999 ax_path_bdb_env_confirm_lib_ok=yes
14005 echo "$as_me: program exited with status $ac_status" >&5
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14015 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14019 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14021 ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
14023 ax_path_bdb_env_confirm_lib_ok=no
14025 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14026 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14028 # Compile and run a program that compares the version defined in
14029 # the header file with a version defined in the library function
14031 if test "$cross_compiling" = yes; then
14032 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14033 See \`config.log' for more details." >&5
14034 echo "$as_me: error: cannot run test program while cross compiling
14035 See \`config.log' for more details." >&2;}
14036 { (exit 1); exit 1; }; }
14038 cat >conftest.$ac_ext <<_ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14048 int main(int argc,char **argv)
14050 int major,minor,patch;
14052 db_version(&major,&minor,&patch);
14054 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14055 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14056 DB_VERSION_PATCH == patch)
14064 rm -f conftest$ac_exeext
14065 if { (ac_try="$ac_link"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_link") 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14075 { (case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_try") 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14085 # Program compiled and ran, so get version by giving an argument,
14086 # which will tell the program to print the output.
14087 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14089 # If the versions all match up, indicate success.
14091 for ac_prog in gawk mawk nawk awk
14093 # Extract the first word of "$ac_prog", so it can be a program name with args.
14094 set dummy $ac_prog; ac_word=$2
14095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14097 if test "${ac_cv_prog_AWK+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 if test -n "$AWK"; then
14101 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14110 ac_cv_prog_AWK="$ac_prog"
14111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14120 AWK=$ac_cv_prog_AWK
14121 if test -n "$AWK"; then
14122 { echo "$as_me:$LINENO: result: $AWK" >&5
14123 echo "${ECHO_T}$AWK" >&6; }
14125 { echo "$as_me:$LINENO: result: no" >&5
14126 echo "${ECHO_T}no" >&6; }
14130 test -n "$AWK" && break
14134 # Used to indicate true or false condition
14135 ax_compare_version=false
14137 # Convert the two version strings to be compared into a format that
14138 # allows a simple string comparison. The end result is that a version
14139 # string of the form 1.12.5-r617 will be converted to the form
14140 # 0001001200050617. In other words, each number is zero padded to four
14141 # digits, and non digits are removed.
14143 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14144 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14145 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14146 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14150 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14151 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14152 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14153 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14159 # Pad zeros at end of numbers to make same length.
14160 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14161 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14162 ax_compare_version_A="$ax_compare_version_tmp_A"
14164 # Check for equality or inequality as necessary.
14166 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14171 if test "$ax_compare_version" = "true" ; then
14173 ax_path_bdb_env_confirm_lib_ok=yes
14179 echo "$as_me: program exited with status $ac_status" >&5
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14189 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14194 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14195 # try format "db-X.Y"
14196 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
14198 ax_path_bdb_env_confirm_lib_ok=no
14200 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14201 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14203 # Compile and run a program that compares the version defined in
14204 # the header file with a version defined in the library function
14206 if test "$cross_compiling" = yes; then
14207 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14208 See \`config.log' for more details." >&5
14209 echo "$as_me: error: cannot run test program while cross compiling
14210 See \`config.log' for more details." >&2;}
14211 { (exit 1); exit 1; }; }
14213 cat >conftest.$ac_ext <<_ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14223 int main(int argc,char **argv)
14225 int major,minor,patch;
14227 db_version(&major,&minor,&patch);
14229 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14230 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14231 DB_VERSION_PATCH == patch)
14239 rm -f conftest$ac_exeext
14240 if { (ac_try="$ac_link"
14241 case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_link") 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14250 { (case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_try") 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14260 # Program compiled and ran, so get version by giving an argument,
14261 # which will tell the program to print the output.
14262 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14264 # If the versions all match up, indicate success.
14266 for ac_prog in gawk mawk nawk awk
14268 # Extract the first word of "$ac_prog", so it can be a program name with args.
14269 set dummy $ac_prog; ac_word=$2
14270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14272 if test "${ac_cv_prog_AWK+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 if test -n "$AWK"; then
14276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $PATH
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14285 ac_cv_prog_AWK="$ac_prog"
14286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 AWK=$ac_cv_prog_AWK
14296 if test -n "$AWK"; then
14297 { echo "$as_me:$LINENO: result: $AWK" >&5
14298 echo "${ECHO_T}$AWK" >&6; }
14300 { echo "$as_me:$LINENO: result: no" >&5
14301 echo "${ECHO_T}no" >&6; }
14305 test -n "$AWK" && break
14309 # Used to indicate true or false condition
14310 ax_compare_version=false
14312 # Convert the two version strings to be compared into a format that
14313 # allows a simple string comparison. The end result is that a version
14314 # string of the form 1.12.5-r617 will be converted to the form
14315 # 0001001200050617. In other words, each number is zero padded to four
14316 # digits, and non digits are removed.
14318 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14319 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14320 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14321 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14325 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14326 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14327 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14328 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14334 # Pad zeros at end of numbers to make same length.
14335 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14336 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14337 ax_compare_version_A="$ax_compare_version_tmp_A"
14339 # Check for equality or inequality as necessary.
14341 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14346 if test "$ax_compare_version" = "true" ; then
14348 ax_path_bdb_env_confirm_lib_ok=yes
14354 echo "$as_me: program exited with status $ac_status" >&5
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14364 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14369 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14370 # try format "dbX.Y"
14371 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
14373 ax_path_bdb_env_confirm_lib_ok=no
14375 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14376 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14378 # Compile and run a program that compares the version defined in
14379 # the header file with a version defined in the library function
14381 if test "$cross_compiling" = yes; then
14382 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14383 See \`config.log' for more details." >&5
14384 echo "$as_me: error: cannot run test program while cross compiling
14385 See \`config.log' for more details." >&2;}
14386 { (exit 1); exit 1; }; }
14388 cat >conftest.$ac_ext <<_ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14398 int main(int argc,char **argv)
14400 int major,minor,patch;
14402 db_version(&major,&minor,&patch);
14404 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14405 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14406 DB_VERSION_PATCH == patch)
14414 rm -f conftest$ac_exeext
14415 if { (ac_try="$ac_link"
14416 case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_link") 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14425 { (case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_try") 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14435 # Program compiled and ran, so get version by giving an argument,
14436 # which will tell the program to print the output.
14437 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14439 # If the versions all match up, indicate success.
14441 for ac_prog in gawk mawk nawk awk
14443 # Extract the first word of "$ac_prog", so it can be a program name with args.
14444 set dummy $ac_prog; ac_word=$2
14445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14447 if test "${ac_cv_prog_AWK+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 if test -n "$AWK"; then
14451 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454 for as_dir in $PATH
14457 test -z "$as_dir" && as_dir=.
14458 for ac_exec_ext in '' $ac_executable_extensions; do
14459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14460 ac_cv_prog_AWK="$ac_prog"
14461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14470 AWK=$ac_cv_prog_AWK
14471 if test -n "$AWK"; then
14472 { echo "$as_me:$LINENO: result: $AWK" >&5
14473 echo "${ECHO_T}$AWK" >&6; }
14475 { echo "$as_me:$LINENO: result: no" >&5
14476 echo "${ECHO_T}no" >&6; }
14480 test -n "$AWK" && break
14484 # Used to indicate true or false condition
14485 ax_compare_version=false
14487 # Convert the two version strings to be compared into a format that
14488 # allows a simple string comparison. The end result is that a version
14489 # string of the form 1.12.5-r617 will be converted to the form
14490 # 0001001200050617. In other words, each number is zero padded to four
14491 # digits, and non digits are removed.
14493 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14494 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14495 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14496 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14500 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14501 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14502 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14503 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14509 # Pad zeros at end of numbers to make same length.
14510 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14511 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14512 ax_compare_version_A="$ax_compare_version_tmp_A"
14514 # Check for equality or inequality as necessary.
14516 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14521 if test "$ax_compare_version" = "true" ; then
14523 ax_path_bdb_env_confirm_lib_ok=yes
14529 echo "$as_me: program exited with status $ac_status" >&5
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14539 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14544 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14545 # try format "dbXY"
14546 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
14548 ax_path_bdb_env_confirm_lib_ok=no
14550 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14551 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14553 # Compile and run a program that compares the version defined in
14554 # the header file with a version defined in the library function
14556 if test "$cross_compiling" = yes; then
14557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14558 See \`config.log' for more details." >&5
14559 echo "$as_me: error: cannot run test program while cross compiling
14560 See \`config.log' for more details." >&2;}
14561 { (exit 1); exit 1; }; }
14563 cat >conftest.$ac_ext <<_ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14573 int main(int argc,char **argv)
14575 int major,minor,patch;
14577 db_version(&major,&minor,&patch);
14579 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14580 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14581 DB_VERSION_PATCH == patch)
14589 rm -f conftest$ac_exeext
14590 if { (ac_try="$ac_link"
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_link") 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14600 { (case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_try") 2>&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; }; then
14610 # Program compiled and ran, so get version by giving an argument,
14611 # which will tell the program to print the output.
14612 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14614 # If the versions all match up, indicate success.
14616 for ac_prog in gawk mawk nawk awk
14618 # Extract the first word of "$ac_prog", so it can be a program name with args.
14619 set dummy $ac_prog; ac_word=$2
14620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14622 if test "${ac_cv_prog_AWK+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 if test -n "$AWK"; then
14626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14629 for as_dir in $PATH
14632 test -z "$as_dir" && as_dir=.
14633 for ac_exec_ext in '' $ac_executable_extensions; do
14634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14635 ac_cv_prog_AWK="$ac_prog"
14636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14645 AWK=$ac_cv_prog_AWK
14646 if test -n "$AWK"; then
14647 { echo "$as_me:$LINENO: result: $AWK" >&5
14648 echo "${ECHO_T}$AWK" >&6; }
14650 { echo "$as_me:$LINENO: result: no" >&5
14651 echo "${ECHO_T}no" >&6; }
14655 test -n "$AWK" && break
14659 # Used to indicate true or false condition
14660 ax_compare_version=false
14662 # Convert the two version strings to be compared into a format that
14663 # allows a simple string comparison. The end result is that a version
14664 # string of the form 1.12.5-r617 will be converted to the form
14665 # 0001001200050617. In other words, each number is zero padded to four
14666 # digits, and non digits are removed.
14668 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14669 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14670 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14671 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14675 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14676 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14677 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14678 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14684 # Pad zeros at end of numbers to make same length.
14685 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14686 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14687 ax_compare_version_A="$ax_compare_version_tmp_A"
14689 # Check for equality or inequality as necessary.
14691 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14696 if test "$ax_compare_version" = "true" ; then
14698 ax_path_bdb_env_confirm_lib_ok=yes
14704 echo "$as_me: program exited with status $ac_status" >&5
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14714 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14719 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14720 # try format "db-X"
14721 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
14723 ax_path_bdb_env_confirm_lib_ok=no
14725 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14726 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14728 # Compile and run a program that compares the version defined in
14729 # the header file with a version defined in the library function
14731 if test "$cross_compiling" = yes; then
14732 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14733 See \`config.log' for more details." >&5
14734 echo "$as_me: error: cannot run test program while cross compiling
14735 See \`config.log' for more details." >&2;}
14736 { (exit 1); exit 1; }; }
14738 cat >conftest.$ac_ext <<_ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14748 int main(int argc,char **argv)
14750 int major,minor,patch;
14752 db_version(&major,&minor,&patch);
14754 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14755 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14756 DB_VERSION_PATCH == patch)
14764 rm -f conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_link") 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14775 { (case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_try") 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14785 # Program compiled and ran, so get version by giving an argument,
14786 # which will tell the program to print the output.
14787 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14789 # If the versions all match up, indicate success.
14791 for ac_prog in gawk mawk nawk awk
14793 # Extract the first word of "$ac_prog", so it can be a program name with args.
14794 set dummy $ac_prog; ac_word=$2
14795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14797 if test "${ac_cv_prog_AWK+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 if test -n "$AWK"; then
14801 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14804 for as_dir in $PATH
14807 test -z "$as_dir" && as_dir=.
14808 for ac_exec_ext in '' $ac_executable_extensions; do
14809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14810 ac_cv_prog_AWK="$ac_prog"
14811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14820 AWK=$ac_cv_prog_AWK
14821 if test -n "$AWK"; then
14822 { echo "$as_me:$LINENO: result: $AWK" >&5
14823 echo "${ECHO_T}$AWK" >&6; }
14825 { echo "$as_me:$LINENO: result: no" >&5
14826 echo "${ECHO_T}no" >&6; }
14830 test -n "$AWK" && break
14834 # Used to indicate true or false condition
14835 ax_compare_version=false
14837 # Convert the two version strings to be compared into a format that
14838 # allows a simple string comparison. The end result is that a version
14839 # string of the form 1.12.5-r617 will be converted to the form
14840 # 0001001200050617. In other words, each number is zero padded to four
14841 # digits, and non digits are removed.
14843 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14844 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14845 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14846 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14850 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14851 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14852 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14853 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14859 # Pad zeros at end of numbers to make same length.
14860 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14861 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14862 ax_compare_version_A="$ax_compare_version_tmp_A"
14864 # Check for equality or inequality as necessary.
14866 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14871 if test "$ax_compare_version" = "true" ; then
14873 ax_path_bdb_env_confirm_lib_ok=yes
14879 echo "$as_me: program exited with status $ac_status" >&5
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14889 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14894 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14896 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
14898 ax_path_bdb_env_confirm_lib_ok=no
14900 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14901 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14903 # Compile and run a program that compares the version defined in
14904 # the header file with a version defined in the library function
14906 if test "$cross_compiling" = yes; then
14907 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14908 See \`config.log' for more details." >&5
14909 echo "$as_me: error: cannot run test program while cross compiling
14910 See \`config.log' for more details." >&2;}
14911 { (exit 1); exit 1; }; }
14913 cat >conftest.$ac_ext <<_ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14923 int main(int argc,char **argv)
14925 int major,minor,patch;
14927 db_version(&major,&minor,&patch);
14929 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14930 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14931 DB_VERSION_PATCH == patch)
14939 rm -f conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_link") 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14950 { (case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_try") 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14960 # Program compiled and ran, so get version by giving an argument,
14961 # which will tell the program to print the output.
14962 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14964 # If the versions all match up, indicate success.
14966 for ac_prog in gawk mawk nawk awk
14968 # Extract the first word of "$ac_prog", so it can be a program name with args.
14969 set dummy $ac_prog; ac_word=$2
14970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14972 if test "${ac_cv_prog_AWK+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 if test -n "$AWK"; then
14976 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979 for as_dir in $PATH
14982 test -z "$as_dir" && as_dir=.
14983 for ac_exec_ext in '' $ac_executable_extensions; do
14984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14985 ac_cv_prog_AWK="$ac_prog"
14986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14995 AWK=$ac_cv_prog_AWK
14996 if test -n "$AWK"; then
14997 { echo "$as_me:$LINENO: result: $AWK" >&5
14998 echo "${ECHO_T}$AWK" >&6; }
15000 { echo "$as_me:$LINENO: result: no" >&5
15001 echo "${ECHO_T}no" >&6; }
15005 test -n "$AWK" && break
15009 # Used to indicate true or false condition
15010 ax_compare_version=false
15012 # Convert the two version strings to be compared into a format that
15013 # allows a simple string comparison. The end result is that a version
15014 # string of the form 1.12.5-r617 will be converted to the form
15015 # 0001001200050617. In other words, each number is zero padded to four
15016 # digits, and non digits are removed.
15018 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15019 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15020 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15021 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15025 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15026 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15027 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15028 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15034 # Pad zeros at end of numbers to make same length.
15035 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
15036 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
15037 ax_compare_version_A="$ax_compare_version_tmp_A"
15039 # Check for equality or inequality as necessary.
15041 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
15046 if test "$ax_compare_version" = "true" ; then
15048 ax_path_bdb_env_confirm_lib_ok=yes
15054 echo "$as_me: program exited with status $ac_status" >&5
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15064 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
15069 if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
15070 if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
15071 { echo "$as_me:$LINENO: result: none required" >&5
15072 echo "${ECHO_T}none required" >&6; }
15074 { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
15075 echo "${ECHO_T}$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
15077 ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
15078 ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
15079 ax_path_bdb_env_get_version_ok=yes
15081 { echo "$as_me:$LINENO: result: no" >&5
15082 echo "${ECHO_T}no" >&6; }
15088 if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
15091 for ac_prog in gawk mawk nawk awk
15093 # Extract the first word of "$ac_prog", so it can be a program name with args.
15094 set dummy $ac_prog; ac_word=$2
15095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15097 if test "${ac_cv_prog_AWK+set}" = set; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15100 if test -n "$AWK"; then
15101 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15107 test -z "$as_dir" && as_dir=.
15108 for ac_exec_ext in '' $ac_executable_extensions; do
15109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15110 ac_cv_prog_AWK="$ac_prog"
15111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15120 AWK=$ac_cv_prog_AWK
15121 if test -n "$AWK"; then
15122 { echo "$as_me:$LINENO: result: $AWK" >&5
15123 echo "${ECHO_T}$AWK" >&6; }
15125 { echo "$as_me:$LINENO: result: no" >&5
15126 echo "${ECHO_T}no" >&6; }
15130 test -n "$AWK" && break
15134 # Used to indicate true or false condition
15135 ax_compare_version=false
15137 # Convert the two version strings to be compared into a format that
15138 # allows a simple string comparison. The end result is that a version
15139 # string of the form 1.12.5-r617 will be converted to the form
15140 # 0001001200050617. In other words, each number is zero padded to four
15141 # digits, and non digits are removed.
15143 ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15144 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15145 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15146 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15150 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15151 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15152 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15153 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15157 ax_compare_version=`echo "x$ax_compare_version_A
15158 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15162 if test "$ax_compare_version" = "true" ; then
15164 # Found acceptable version in current environment.
15165 ax_path_bdb_no_options_ok=yes
15166 BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
15167 BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
15176 # Determine if we need to search /usr/local/BerkeleyDB*
15177 ax_path_bdb_no_options_DONE=no
15178 if test "xHIGHEST" = "xENVONLY" ; then
15179 ax_path_bdb_no_options_DONE=yes
15180 elif test "xHIGHEST" = "xENVFIRST" ; then
15181 ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
15184 if test "$ax_path_bdb_no_options_DONE" = "no" ; then
15185 # Check for highest in /usr/local/BerkeleyDB*
15187 ax_path_bdb_path_find_highest_ok=no
15189 ax_path_bdb_path_find_highest_VERSION=''
15191 ax_path_bdb_path_find_highest_DIR=''
15193 # find highest verison in default install directory for Berkeley DB
15195 for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
15198 ax_path_bdb_path_get_version_ok=no
15200 # Indicate status of checking for Berkeley DB header.
15201 { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
15202 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... $ECHO_C" >&6; }
15203 ax_path_bdb_path_get_version_got_header=no
15204 test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
15205 { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_got_header" >&5
15206 echo "${ECHO_T}$ax_path_bdb_path_get_version_got_header" >&6; }
15208 # Indicate status of checking for Berkeley DB library.
15209 { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
15210 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... $ECHO_C" >&6; }
15212 ax_path_bdb_path_get_version_VERSION=''
15214 if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
15215 test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
15216 ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
15217 CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
15219 ax_path_bdb_path_get_version_save_LIBS="$LIBS"
15222 ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
15223 LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
15225 # Compile and run a program that compares the version defined in
15226 # the header file with a version defined in the library function
15228 if test "$cross_compiling" = yes; then
15229 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15230 See \`config.log' for more details." >&5
15231 echo "$as_me: error: cannot run test program while cross compiling
15232 See \`config.log' for more details." >&2;}
15233 { (exit 1); exit 1; }; }
15235 cat >conftest.$ac_ext <<_ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15245 int main(int argc,char **argv)
15247 int major,minor,patch;
15249 db_version(&major,&minor,&patch);
15251 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15252 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
15253 DB_VERSION_PATCH == patch)
15261 rm -f conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_link") 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15272 { (case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_try") 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15282 # Program compiled and ran, so get version by adding argument.
15283 ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
15284 ax_path_bdb_path_get_version_ok=yes
15287 echo "$as_me: program exited with status $ac_status" >&5
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15297 CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
15298 LIBS="$ax_path_bdb_path_get_version_save_LIBS"
15299 LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
15302 if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
15303 { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_VERSION" >&5
15304 echo "${ECHO_T}$ax_path_bdb_path_get_version_VERSION" >&6; }
15307 for ac_prog in gawk mawk nawk awk
15309 # Extract the first word of "$ac_prog", so it can be a program name with args.
15310 set dummy $ac_prog; ac_word=$2
15311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15313 if test "${ac_cv_prog_AWK+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 if test -n "$AWK"; then
15317 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15320 for as_dir in $PATH
15323 test -z "$as_dir" && as_dir=.
15324 for ac_exec_ext in '' $ac_executable_extensions; do
15325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15326 ac_cv_prog_AWK="$ac_prog"
15327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15336 AWK=$ac_cv_prog_AWK
15337 if test -n "$AWK"; then
15338 { echo "$as_me:$LINENO: result: $AWK" >&5
15339 echo "${ECHO_T}$AWK" >&6; }
15341 { echo "$as_me:$LINENO: result: no" >&5
15342 echo "${ECHO_T}no" >&6; }
15346 test -n "$AWK" && break
15350 # Used to indicate true or false condition
15351 ax_compare_version=false
15353 # Convert the two version strings to be compared into a format that
15354 # allows a simple string comparison. The end result is that a version
15355 # string of the form 1.12.5-r617 will be converted to the form
15356 # 0001001200050617. In other words, each number is zero padded to four
15357 # digits, and non digits are removed.
15359 ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15360 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15361 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15362 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15366 ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15367 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15368 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15369 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15373 ax_compare_version=`echo "x$ax_compare_version_A
15374 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
15378 if test "$ax_compare_version" = "true" ; then
15380 ax_path_bdb_path_find_highest_ok=yes
15381 ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
15382 ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
15388 { echo "$as_me:$LINENO: result: no" >&5
15389 echo "${ECHO_T}no" >&6; }
15395 if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
15397 if test "$ax_path_bdb_no_options_ok" = "yes" ; then
15398 # If we already have an acceptable version use this if higher.
15400 for ac_prog in gawk mawk nawk awk
15402 # Extract the first word of "$ac_prog", so it can be a program name with args.
15403 set dummy $ac_prog; ac_word=$2
15404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15406 if test "${ac_cv_prog_AWK+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 if test -n "$AWK"; then
15410 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15413 for as_dir in $PATH
15416 test -z "$as_dir" && as_dir=.
15417 for ac_exec_ext in '' $ac_executable_extensions; do
15418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15419 ac_cv_prog_AWK="$ac_prog"
15420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15429 AWK=$ac_cv_prog_AWK
15430 if test -n "$AWK"; then
15431 { echo "$as_me:$LINENO: result: $AWK" >&5
15432 echo "${ECHO_T}$AWK" >&6; }
15434 { echo "$as_me:$LINENO: result: no" >&5
15435 echo "${ECHO_T}no" >&6; }
15439 test -n "$AWK" && break
15443 # Used to indicate true or false condition
15444 ax_compare_version=false
15446 # Convert the two version strings to be compared into a format that
15447 # allows a simple string comparison. The end result is that a version
15448 # string of the form 1.12.5-r617 will be converted to the form
15449 # 0001001200050617. In other words, each number is zero padded to four
15450 # digits, and non digits are removed.
15452 ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15453 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15454 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15455 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15459 ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15460 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15461 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15462 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15466 ax_compare_version=`echo "x$ax_compare_version_A
15467 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
15471 if test "$ax_compare_version" = "true" ; then
15476 # Since we didn't have an acceptable version check if this one is.
15478 for ac_prog in gawk mawk nawk awk
15480 # Extract the first word of "$ac_prog", so it can be a program name with args.
15481 set dummy $ac_prog; ac_word=$2
15482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15484 if test "${ac_cv_prog_AWK+set}" = set; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15487 if test -n "$AWK"; then
15488 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15491 for as_dir in $PATH
15494 test -z "$as_dir" && as_dir=.
15495 for ac_exec_ext in '' $ac_executable_extensions; do
15496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15497 ac_cv_prog_AWK="$ac_prog"
15498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15507 AWK=$ac_cv_prog_AWK
15508 if test -n "$AWK"; then
15509 { echo "$as_me:$LINENO: result: $AWK" >&5
15510 echo "${ECHO_T}$AWK" >&6; }
15512 { echo "$as_me:$LINENO: result: no" >&5
15513 echo "${ECHO_T}no" >&6; }
15517 test -n "$AWK" && break
15521 # Used to indicate true or false condition
15522 ax_compare_version=false
15524 # Convert the two version strings to be compared into a format that
15525 # allows a simple string comparison. The end result is that a version
15526 # string of the form 1.12.5-r617 will be converted to the form
15527 # 0001001200050617. In other words, each number is zero padded to four
15528 # digits, and non digits are removed.
15530 ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15531 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15532 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15533 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15537 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15538 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15539 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15540 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15544 ax_compare_version=`echo "x$ax_compare_version_A
15545 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15549 if test "$ax_compare_version" = "true" ; then
15559 if test "$ax_compare_version" = "true" ; then
15560 ax_path_bdb_no_options_ok=yes
15562 if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
15563 BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
15564 BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
15566 BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
15571 if test "$ax_path_bdb_no_options_ok" = "yes" ; then
15572 { echo "$as_me:$LINENO: using Berkeley DB version $BDB_VERSION" >&5
15573 echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
15575 cat >>confdefs.h <<\_ACEOF
15576 #define HAVE_DB_H 1
15583 { echo "$as_me:$LINENO: no Berkeley DB version 3 or higher found" >&5
15584 echo "$as_me: no Berkeley DB version 3 or higher found" >&6;}
15588 # Set --with-bdb-dir option.
15589 ax_path_bdb_INC="$with_bdb_dir/include"
15590 ax_path_bdb_LIB="$with_bdb_dir/lib"
15592 ax_path_bdb_save_CPPFLAGS="$CPPFLAGS"
15593 CPPFLAGS="-I$ax_path_bdb_INC $CPPFLAGS"
15595 ax_path_bdb_save_LDFLAGS=$LDFLAGS
15596 LDFLAGS="-L$ax_path_bdb_LIB $LDFLAGS"
15598 # Check for specific header file db.h
15599 { echo "$as_me:$LINENO: checking db.h presence in $ax_path_bdb_INC" >&5
15600 echo $ECHO_N "checking db.h presence in $ax_path_bdb_INC... $ECHO_C" >&6; }
15601 if test -f "$ax_path_bdb_INC/db.h" ; then
15602 { echo "$as_me:$LINENO: result: yes" >&5
15603 echo "${ECHO_T}yes" >&6; }
15604 # Check for library
15606 ax_path_bdb_no_options_ok=no
15608 # Values to add to environment to use Berkeley DB.
15614 # Check cross compilation here.
15615 if test "x$cross_compiling" = "xyes" ; then
15616 # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
15617 # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
15618 # and extracts the version number from it.
15619 { echo "$as_me:$LINENO: checking for db.h" >&5
15620 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
15622 ax_path_bdb_no_options_HEADER_VERSION=''
15623 cat >conftest.$ac_ext <<_ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15632 AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
15636 if { (ac_try="$ac_cpp conftest.$ac_ext"
15637 case "(($ac_try" in
15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } >/dev/null && {
15649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15650 test ! -s conftest.err
15653 # Extract version from preprocessor output.
15654 ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
15655 | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
15658 echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15664 rm -f conftest.err conftest.$ac_ext
15666 if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
15667 { echo "$as_me:$LINENO: result: no" >&5
15668 echo "${ECHO_T}no" >&6; }
15670 { echo "$as_me:$LINENO: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
15671 echo "${ECHO_T}$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
15673 # Check that version is high enough.
15675 for ac_prog in gawk mawk nawk awk
15677 # Extract the first word of "$ac_prog", so it can be a program name with args.
15678 set dummy $ac_prog; ac_word=$2
15679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15681 if test "${ac_cv_prog_AWK+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 if test -n "$AWK"; then
15685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688 for as_dir in $PATH
15691 test -z "$as_dir" && as_dir=.
15692 for ac_exec_ext in '' $ac_executable_extensions; do
15693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15694 ac_cv_prog_AWK="$ac_prog"
15695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15704 AWK=$ac_cv_prog_AWK
15705 if test -n "$AWK"; then
15706 { echo "$as_me:$LINENO: result: $AWK" >&5
15707 echo "${ECHO_T}$AWK" >&6; }
15709 { echo "$as_me:$LINENO: result: no" >&5
15710 echo "${ECHO_T}no" >&6; }
15714 test -n "$AWK" && break
15718 # Used to indicate true or false condition
15719 ax_compare_version=false
15721 # Convert the two version strings to be compared into a format that
15722 # allows a simple string comparison. The end result is that a version
15723 # string of the form 1.12.5-r617 will be converted to the form
15724 # 0001001200050617. In other words, each number is zero padded to four
15725 # digits, and non digits are removed.
15727 ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15728 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15729 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15730 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15734 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15735 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15736 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15737 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15741 ax_compare_version=`echo "x$ax_compare_version_A
15742 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15746 if test "$ax_compare_version" = "true" ; then
15748 # get major and minor version numbers
15749 ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
15750 ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
15752 ax_path_bdb_no_options_save_LIBS="$LIBS"
15754 # Check that we can link with the library.
15755 { echo "$as_me:$LINENO: checking for library containing db_version" >&5
15756 echo $ECHO_N "checking for library containing db_version... $ECHO_C" >&6; }
15757 if test "${ac_cv_search_db_version+set}" = set; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 ac_func_search_save_LIBS=$LIBS
15761 cat >conftest.$ac_ext <<_ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15768 /* Override any GCC internal prototype to avoid an error.
15769 Use char because int might match the return type of a GCC
15770 builtin and then its argument prototype would still apply. */
15774 char db_version ();
15778 return db_version ();
15783 for ac_lib in '' db db-$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_options_MAJOR db$ax_path_bdb_no_options_MAJOR; do
15784 if test -z "$ac_lib"; then
15785 ac_res="none required"
15788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (ac_try="$ac_link"
15792 case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_link") 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } && {
15804 test -z "$ac_c_werror_flag" ||
15805 test ! -s conftest.err
15806 } && test -s conftest$ac_exeext &&
15807 $as_test_x conftest$ac_exeext; then
15808 ac_cv_search_db_version=$ac_res
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15818 if test "${ac_cv_search_db_version+set}" = set; then
15822 if test "${ac_cv_search_db_version+set}" = set; then
15825 ac_cv_search_db_version=no
15827 rm conftest.$ac_ext
15828 LIBS=$ac_func_search_save_LIBS
15830 { echo "$as_me:$LINENO: result: $ac_cv_search_db_version" >&5
15831 echo "${ECHO_T}$ac_cv_search_db_version" >&6; }
15832 ac_res=$ac_cv_search_db_version
15833 if test "$ac_res" != no; then
15834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15836 # Sucessfully found library.
15837 ax_path_bdb_no_options_ok=yes
15838 BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
15840 # Extract library from LIBS
15841 ax_path_bdb_no_options_LEN=` \
15842 echo "x$ax_path_bdb_no_options_save_LIBS" \
15843 | awk '{print(length)}'`
15844 BDB_LIBS=`echo "x$LIBS " \
15845 | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
15850 LIBS="$ax_path_bdb_no_options_save_LIBS"
15858 # Not cross compiling.
15859 # Check version of Berkeley DB in the current environment.
15861 ax_path_bdb_env_get_version_ok=no
15863 ax_path_bdb_env_get_version_VERSION=''
15864 ax_path_bdb_env_get_version_LIBS=''
15867 # Indicate status of checking for Berkeley DB library.
15868 { echo "$as_me:$LINENO: checking for db.h" >&5
15869 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
15871 # Compile and run a program that determines the Berkeley DB version
15872 # in the header file db.h.
15873 ax_path_bdb_env_get_version_HEADER_VERSION=''
15874 if test "$cross_compiling" = yes; then
15875 { echo "$as_me:$LINENO: result: no" >&5
15876 echo "${ECHO_T}no" >&6; }
15878 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15888 int main(int argc,char **argv)
15892 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15898 rm -f conftest$ac_exeext
15899 if { (ac_try="$ac_link"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_link") 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15909 { (case "(($ac_try" in
15910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914 (eval "$ac_try") 2>&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; }; then
15919 # Program compiled and ran, so get version by adding an argument.
15920 ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
15921 { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
15922 echo "${ECHO_T}$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
15925 echo "$as_me: program exited with status $ac_status" >&5
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15929 ( exit $ac_status )
15930 { echo "$as_me:$LINENO: result: no" >&5
15931 echo "${ECHO_T}no" >&6; }
15933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15938 # Have header version, so try to find corresponding library.
15939 # Looks for library names in the order:
15940 # nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
15941 # and stops when it finds the first one that matches the version
15942 # of the header file.
15943 if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
15944 { echo "$as_me:$LINENO: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
15945 echo $ECHO_N "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... $ECHO_C" >&6; }
15948 # get major and minor version numbers
15949 ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
15950 ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
15952 # see if it is already specified in LIBS
15953 ax_path_bdb_env_get_version_TEST_LIBNAME=''
15955 ax_path_bdb_env_confirm_lib_ok=no
15957 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
15958 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
15960 # Compile and run a program that compares the version defined in
15961 # the header file with a version defined in the library function
15963 if test "$cross_compiling" = yes; then
15964 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15965 See \`config.log' for more details." >&5
15966 echo "$as_me: error: cannot run test program while cross compiling
15967 See \`config.log' for more details." >&2;}
15968 { (exit 1); exit 1; }; }
15970 cat >conftest.$ac_ext <<_ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15980 int main(int argc,char **argv)
15982 int major,minor,patch;
15984 db_version(&major,&minor,&patch);
15986 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15987 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
15988 DB_VERSION_PATCH == patch)
15996 rm -f conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_link") 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16007 { (case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_try") 2>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16017 # Program compiled and ran, so get version by giving an argument,
16018 # which will tell the program to print the output.
16019 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16021 # If the versions all match up, indicate success.
16023 for ac_prog in gawk mawk nawk awk
16025 # Extract the first word of "$ac_prog", so it can be a program name with args.
16026 set dummy $ac_prog; ac_word=$2
16027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16029 if test "${ac_cv_prog_AWK+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 if test -n "$AWK"; then
16033 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16036 for as_dir in $PATH
16039 test -z "$as_dir" && as_dir=.
16040 for ac_exec_ext in '' $ac_executable_extensions; do
16041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16042 ac_cv_prog_AWK="$ac_prog"
16043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16052 AWK=$ac_cv_prog_AWK
16053 if test -n "$AWK"; then
16054 { echo "$as_me:$LINENO: result: $AWK" >&5
16055 echo "${ECHO_T}$AWK" >&6; }
16057 { echo "$as_me:$LINENO: result: no" >&5
16058 echo "${ECHO_T}no" >&6; }
16062 test -n "$AWK" && break
16066 # Used to indicate true or false condition
16067 ax_compare_version=false
16069 # Convert the two version strings to be compared into a format that
16070 # allows a simple string comparison. The end result is that a version
16071 # string of the form 1.12.5-r617 will be converted to the form
16072 # 0001001200050617. In other words, each number is zero padded to four
16073 # digits, and non digits are removed.
16075 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16076 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16077 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16078 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16082 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16083 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16084 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16085 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16091 # Pad zeros at end of numbers to make same length.
16092 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16093 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16094 ax_compare_version_A="$ax_compare_version_tmp_A"
16096 # Check for equality or inequality as necessary.
16098 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16103 if test "$ax_compare_version" = "true" ; then
16105 ax_path_bdb_env_confirm_lib_ok=yes
16111 echo "$as_me: program exited with status $ac_status" >&5
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16121 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16125 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16127 ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
16129 ax_path_bdb_env_confirm_lib_ok=no
16131 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16132 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16134 # Compile and run a program that compares the version defined in
16135 # the header file with a version defined in the library function
16137 if test "$cross_compiling" = yes; then
16138 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16139 See \`config.log' for more details." >&5
16140 echo "$as_me: error: cannot run test program while cross compiling
16141 See \`config.log' for more details." >&2;}
16142 { (exit 1); exit 1; }; }
16144 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16154 int main(int argc,char **argv)
16156 int major,minor,patch;
16158 db_version(&major,&minor,&patch);
16160 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16161 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16162 DB_VERSION_PATCH == patch)
16170 rm -f conftest$ac_exeext
16171 if { (ac_try="$ac_link"
16172 case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_link") 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181 { (case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_try") 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16191 # Program compiled and ran, so get version by giving an argument,
16192 # which will tell the program to print the output.
16193 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16195 # If the versions all match up, indicate success.
16197 for ac_prog in gawk mawk nawk awk
16199 # Extract the first word of "$ac_prog", so it can be a program name with args.
16200 set dummy $ac_prog; ac_word=$2
16201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16203 if test "${ac_cv_prog_AWK+set}" = set; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 if test -n "$AWK"; then
16207 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16210 for as_dir in $PATH
16213 test -z "$as_dir" && as_dir=.
16214 for ac_exec_ext in '' $ac_executable_extensions; do
16215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16216 ac_cv_prog_AWK="$ac_prog"
16217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16226 AWK=$ac_cv_prog_AWK
16227 if test -n "$AWK"; then
16228 { echo "$as_me:$LINENO: result: $AWK" >&5
16229 echo "${ECHO_T}$AWK" >&6; }
16231 { echo "$as_me:$LINENO: result: no" >&5
16232 echo "${ECHO_T}no" >&6; }
16236 test -n "$AWK" && break
16240 # Used to indicate true or false condition
16241 ax_compare_version=false
16243 # Convert the two version strings to be compared into a format that
16244 # allows a simple string comparison. The end result is that a version
16245 # string of the form 1.12.5-r617 will be converted to the form
16246 # 0001001200050617. In other words, each number is zero padded to four
16247 # digits, and non digits are removed.
16249 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16250 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16251 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16252 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16256 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16257 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16258 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16259 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16265 # Pad zeros at end of numbers to make same length.
16266 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16267 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16268 ax_compare_version_A="$ax_compare_version_tmp_A"
16270 # Check for equality or inequality as necessary.
16272 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16277 if test "$ax_compare_version" = "true" ; then
16279 ax_path_bdb_env_confirm_lib_ok=yes
16285 echo "$as_me: program exited with status $ac_status" >&5
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16295 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16300 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16301 # try format "db-X.Y"
16302 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
16304 ax_path_bdb_env_confirm_lib_ok=no
16306 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16307 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16309 # Compile and run a program that compares the version defined in
16310 # the header file with a version defined in the library function
16312 if test "$cross_compiling" = yes; then
16313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16314 See \`config.log' for more details." >&5
16315 echo "$as_me: error: cannot run test program while cross compiling
16316 See \`config.log' for more details." >&2;}
16317 { (exit 1); exit 1; }; }
16319 cat >conftest.$ac_ext <<_ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16329 int main(int argc,char **argv)
16331 int major,minor,patch;
16333 db_version(&major,&minor,&patch);
16335 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16336 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16337 DB_VERSION_PATCH == patch)
16345 rm -f conftest$ac_exeext
16346 if { (ac_try="$ac_link"
16347 case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_link") 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16356 { (case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_try") 2>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16366 # Program compiled and ran, so get version by giving an argument,
16367 # which will tell the program to print the output.
16368 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16370 # If the versions all match up, indicate success.
16372 for ac_prog in gawk mawk nawk awk
16374 # Extract the first word of "$ac_prog", so it can be a program name with args.
16375 set dummy $ac_prog; ac_word=$2
16376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16378 if test "${ac_cv_prog_AWK+set}" = set; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 if test -n "$AWK"; then
16382 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16385 for as_dir in $PATH
16388 test -z "$as_dir" && as_dir=.
16389 for ac_exec_ext in '' $ac_executable_extensions; do
16390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16391 ac_cv_prog_AWK="$ac_prog"
16392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16401 AWK=$ac_cv_prog_AWK
16402 if test -n "$AWK"; then
16403 { echo "$as_me:$LINENO: result: $AWK" >&5
16404 echo "${ECHO_T}$AWK" >&6; }
16406 { echo "$as_me:$LINENO: result: no" >&5
16407 echo "${ECHO_T}no" >&6; }
16411 test -n "$AWK" && break
16415 # Used to indicate true or false condition
16416 ax_compare_version=false
16418 # Convert the two version strings to be compared into a format that
16419 # allows a simple string comparison. The end result is that a version
16420 # string of the form 1.12.5-r617 will be converted to the form
16421 # 0001001200050617. In other words, each number is zero padded to four
16422 # digits, and non digits are removed.
16424 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16425 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16426 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16427 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16431 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16432 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16433 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16434 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16440 # Pad zeros at end of numbers to make same length.
16441 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16442 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16443 ax_compare_version_A="$ax_compare_version_tmp_A"
16445 # Check for equality or inequality as necessary.
16447 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16452 if test "$ax_compare_version" = "true" ; then
16454 ax_path_bdb_env_confirm_lib_ok=yes
16460 echo "$as_me: program exited with status $ac_status" >&5
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16470 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16475 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16476 # try format "dbX.Y"
16477 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
16479 ax_path_bdb_env_confirm_lib_ok=no
16481 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16482 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16484 # Compile and run a program that compares the version defined in
16485 # the header file with a version defined in the library function
16487 if test "$cross_compiling" = yes; then
16488 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16489 See \`config.log' for more details." >&5
16490 echo "$as_me: error: cannot run test program while cross compiling
16491 See \`config.log' for more details." >&2;}
16492 { (exit 1); exit 1; }; }
16494 cat >conftest.$ac_ext <<_ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16504 int main(int argc,char **argv)
16506 int major,minor,patch;
16508 db_version(&major,&minor,&patch);
16510 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16511 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16512 DB_VERSION_PATCH == patch)
16520 rm -f conftest$ac_exeext
16521 if { (ac_try="$ac_link"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_link") 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16531 { (case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_try") 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16541 # Program compiled and ran, so get version by giving an argument,
16542 # which will tell the program to print the output.
16543 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16545 # If the versions all match up, indicate success.
16547 for ac_prog in gawk mawk nawk awk
16549 # Extract the first word of "$ac_prog", so it can be a program name with args.
16550 set dummy $ac_prog; ac_word=$2
16551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16553 if test "${ac_cv_prog_AWK+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16556 if test -n "$AWK"; then
16557 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16560 for as_dir in $PATH
16563 test -z "$as_dir" && as_dir=.
16564 for ac_exec_ext in '' $ac_executable_extensions; do
16565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16566 ac_cv_prog_AWK="$ac_prog"
16567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16576 AWK=$ac_cv_prog_AWK
16577 if test -n "$AWK"; then
16578 { echo "$as_me:$LINENO: result: $AWK" >&5
16579 echo "${ECHO_T}$AWK" >&6; }
16581 { echo "$as_me:$LINENO: result: no" >&5
16582 echo "${ECHO_T}no" >&6; }
16586 test -n "$AWK" && break
16590 # Used to indicate true or false condition
16591 ax_compare_version=false
16593 # Convert the two version strings to be compared into a format that
16594 # allows a simple string comparison. The end result is that a version
16595 # string of the form 1.12.5-r617 will be converted to the form
16596 # 0001001200050617. In other words, each number is zero padded to four
16597 # digits, and non digits are removed.
16599 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16600 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16601 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16602 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16606 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16607 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16608 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16609 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16615 # Pad zeros at end of numbers to make same length.
16616 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16617 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16618 ax_compare_version_A="$ax_compare_version_tmp_A"
16620 # Check for equality or inequality as necessary.
16622 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16627 if test "$ax_compare_version" = "true" ; then
16629 ax_path_bdb_env_confirm_lib_ok=yes
16635 echo "$as_me: program exited with status $ac_status" >&5
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16645 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16650 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16651 # try format "dbXY"
16652 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
16654 ax_path_bdb_env_confirm_lib_ok=no
16656 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16657 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16659 # Compile and run a program that compares the version defined in
16660 # the header file with a version defined in the library function
16662 if test "$cross_compiling" = yes; then
16663 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16664 See \`config.log' for more details." >&5
16665 echo "$as_me: error: cannot run test program while cross compiling
16666 See \`config.log' for more details." >&2;}
16667 { (exit 1); exit 1; }; }
16669 cat >conftest.$ac_ext <<_ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16679 int main(int argc,char **argv)
16681 int major,minor,patch;
16683 db_version(&major,&minor,&patch);
16685 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16686 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16687 DB_VERSION_PATCH == patch)
16695 rm -f conftest$ac_exeext
16696 if { (ac_try="$ac_link"
16697 case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_link") 2>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16716 # Program compiled and ran, so get version by giving an argument,
16717 # which will tell the program to print the output.
16718 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16720 # If the versions all match up, indicate success.
16722 for ac_prog in gawk mawk nawk awk
16724 # Extract the first word of "$ac_prog", so it can be a program name with args.
16725 set dummy $ac_prog; ac_word=$2
16726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16728 if test "${ac_cv_prog_AWK+set}" = set; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 if test -n "$AWK"; then
16732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16735 for as_dir in $PATH
16738 test -z "$as_dir" && as_dir=.
16739 for ac_exec_ext in '' $ac_executable_extensions; do
16740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16741 ac_cv_prog_AWK="$ac_prog"
16742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16751 AWK=$ac_cv_prog_AWK
16752 if test -n "$AWK"; then
16753 { echo "$as_me:$LINENO: result: $AWK" >&5
16754 echo "${ECHO_T}$AWK" >&6; }
16756 { echo "$as_me:$LINENO: result: no" >&5
16757 echo "${ECHO_T}no" >&6; }
16761 test -n "$AWK" && break
16765 # Used to indicate true or false condition
16766 ax_compare_version=false
16768 # Convert the two version strings to be compared into a format that
16769 # allows a simple string comparison. The end result is that a version
16770 # string of the form 1.12.5-r617 will be converted to the form
16771 # 0001001200050617. In other words, each number is zero padded to four
16772 # digits, and non digits are removed.
16774 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16775 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16776 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16777 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16781 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16782 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16783 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16784 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16790 # Pad zeros at end of numbers to make same length.
16791 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16792 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16793 ax_compare_version_A="$ax_compare_version_tmp_A"
16795 # Check for equality or inequality as necessary.
16797 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16802 if test "$ax_compare_version" = "true" ; then
16804 ax_path_bdb_env_confirm_lib_ok=yes
16810 echo "$as_me: program exited with status $ac_status" >&5
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16820 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16825 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16826 # try format "db-X"
16827 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
16829 ax_path_bdb_env_confirm_lib_ok=no
16831 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16832 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16834 # Compile and run a program that compares the version defined in
16835 # the header file with a version defined in the library function
16837 if test "$cross_compiling" = yes; then
16838 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16839 See \`config.log' for more details." >&5
16840 echo "$as_me: error: cannot run test program while cross compiling
16841 See \`config.log' for more details." >&2;}
16842 { (exit 1); exit 1; }; }
16844 cat >conftest.$ac_ext <<_ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h. */
16854 int main(int argc,char **argv)
16856 int major,minor,patch;
16858 db_version(&major,&minor,&patch);
16860 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16861 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16862 DB_VERSION_PATCH == patch)
16870 rm -f conftest$ac_exeext
16871 if { (ac_try="$ac_link"
16872 case "(($ac_try" in
16873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877 (eval "$ac_link") 2>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16891 # Program compiled and ran, so get version by giving an argument,
16892 # which will tell the program to print the output.
16893 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16895 # If the versions all match up, indicate success.
16897 for ac_prog in gawk mawk nawk awk
16899 # Extract the first word of "$ac_prog", so it can be a program name with args.
16900 set dummy $ac_prog; ac_word=$2
16901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16903 if test "${ac_cv_prog_AWK+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 if test -n "$AWK"; then
16907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16910 for as_dir in $PATH
16913 test -z "$as_dir" && as_dir=.
16914 for ac_exec_ext in '' $ac_executable_extensions; do
16915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16916 ac_cv_prog_AWK="$ac_prog"
16917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16926 AWK=$ac_cv_prog_AWK
16927 if test -n "$AWK"; then
16928 { echo "$as_me:$LINENO: result: $AWK" >&5
16929 echo "${ECHO_T}$AWK" >&6; }
16931 { echo "$as_me:$LINENO: result: no" >&5
16932 echo "${ECHO_T}no" >&6; }
16936 test -n "$AWK" && break
16940 # Used to indicate true or false condition
16941 ax_compare_version=false
16943 # Convert the two version strings to be compared into a format that
16944 # allows a simple string comparison. The end result is that a version
16945 # string of the form 1.12.5-r617 will be converted to the form
16946 # 0001001200050617. In other words, each number is zero padded to four
16947 # digits, and non digits are removed.
16949 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16950 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16951 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16952 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16956 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16957 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16958 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16959 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16965 # Pad zeros at end of numbers to make same length.
16966 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16967 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16968 ax_compare_version_A="$ax_compare_version_tmp_A"
16970 # Check for equality or inequality as necessary.
16972 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16977 if test "$ax_compare_version" = "true" ; then
16979 ax_path_bdb_env_confirm_lib_ok=yes
16985 echo "$as_me: program exited with status $ac_status" >&5
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16995 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
17000 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
17002 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
17004 ax_path_bdb_env_confirm_lib_ok=no
17006 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
17007 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
17009 # Compile and run a program that compares the version defined in
17010 # the header file with a version defined in the library function
17012 if test "$cross_compiling" = yes; then
17013 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17014 See \`config.log' for more details." >&5
17015 echo "$as_me: error: cannot run test program while cross compiling
17016 See \`config.log' for more details." >&2;}
17017 { (exit 1); exit 1; }; }
17019 cat >conftest.$ac_ext <<_ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17029 int main(int argc,char **argv)
17031 int major,minor,patch;
17033 db_version(&major,&minor,&patch);
17035 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
17036 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
17037 DB_VERSION_PATCH == patch)
17045 rm -f conftest$ac_exeext
17046 if { (ac_try="$ac_link"
17047 case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_link") 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17066 # Program compiled and ran, so get version by giving an argument,
17067 # which will tell the program to print the output.
17068 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
17070 # If the versions all match up, indicate success.
17072 for ac_prog in gawk mawk nawk awk
17074 # Extract the first word of "$ac_prog", so it can be a program name with args.
17075 set dummy $ac_prog; ac_word=$2
17076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17078 if test "${ac_cv_prog_AWK+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 if test -n "$AWK"; then
17082 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17085 for as_dir in $PATH
17088 test -z "$as_dir" && as_dir=.
17089 for ac_exec_ext in '' $ac_executable_extensions; do
17090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17091 ac_cv_prog_AWK="$ac_prog"
17092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17101 AWK=$ac_cv_prog_AWK
17102 if test -n "$AWK"; then
17103 { echo "$as_me:$LINENO: result: $AWK" >&5
17104 echo "${ECHO_T}$AWK" >&6; }
17106 { echo "$as_me:$LINENO: result: no" >&5
17107 echo "${ECHO_T}no" >&6; }
17111 test -n "$AWK" && break
17115 # Used to indicate true or false condition
17116 ax_compare_version=false
17118 # Convert the two version strings to be compared into a format that
17119 # allows a simple string comparison. The end result is that a version
17120 # string of the form 1.12.5-r617 will be converted to the form
17121 # 0001001200050617. In other words, each number is zero padded to four
17122 # digits, and non digits are removed.
17124 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17125 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17126 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17127 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17131 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17132 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17133 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17134 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17140 # Pad zeros at end of numbers to make same length.
17141 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
17142 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
17143 ax_compare_version_A="$ax_compare_version_tmp_A"
17145 # Check for equality or inequality as necessary.
17147 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
17152 if test "$ax_compare_version" = "true" ; then
17154 ax_path_bdb_env_confirm_lib_ok=yes
17160 echo "$as_me: program exited with status $ac_status" >&5
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17170 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
17175 if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
17176 if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
17177 { echo "$as_me:$LINENO: result: none required" >&5
17178 echo "${ECHO_T}none required" >&6; }
17180 { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
17181 echo "${ECHO_T}$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
17183 ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
17184 ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
17185 ax_path_bdb_env_get_version_ok=yes
17187 { echo "$as_me:$LINENO: result: no" >&5
17188 echo "${ECHO_T}no" >&6; }
17194 if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
17197 for ac_prog in gawk mawk nawk awk
17199 # Extract the first word of "$ac_prog", so it can be a program name with args.
17200 set dummy $ac_prog; ac_word=$2
17201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17203 if test "${ac_cv_prog_AWK+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17206 if test -n "$AWK"; then
17207 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17210 for as_dir in $PATH
17213 test -z "$as_dir" && as_dir=.
17214 for ac_exec_ext in '' $ac_executable_extensions; do
17215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17216 ac_cv_prog_AWK="$ac_prog"
17217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17226 AWK=$ac_cv_prog_AWK
17227 if test -n "$AWK"; then
17228 { echo "$as_me:$LINENO: result: $AWK" >&5
17229 echo "${ECHO_T}$AWK" >&6; }
17231 { echo "$as_me:$LINENO: result: no" >&5
17232 echo "${ECHO_T}no" >&6; }
17236 test -n "$AWK" && break
17240 # Used to indicate true or false condition
17241 ax_compare_version=false
17243 # Convert the two version strings to be compared into a format that
17244 # allows a simple string comparison. The end result is that a version
17245 # string of the form 1.12.5-r617 will be converted to the form
17246 # 0001001200050617. In other words, each number is zero padded to four
17247 # digits, and non digits are removed.
17249 ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17250 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17251 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17252 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17256 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17257 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17258 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17259 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17263 ax_compare_version=`echo "x$ax_compare_version_A
17264 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
17268 if test "$ax_compare_version" = "true" ; then
17270 # Found acceptable version in current environment.
17271 ax_path_bdb_no_options_ok=yes
17272 BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
17273 BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
17282 # Determine if we need to search /usr/local/BerkeleyDB*
17283 ax_path_bdb_no_options_DONE=no
17284 if test "xENVONLY" = "xENVONLY" ; then
17285 ax_path_bdb_no_options_DONE=yes
17286 elif test "xENVONLY" = "xENVFIRST" ; then
17287 ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
17290 if test "$ax_path_bdb_no_options_DONE" = "no" ; then
17291 # Check for highest in /usr/local/BerkeleyDB*
17293 ax_path_bdb_path_find_highest_ok=no
17295 ax_path_bdb_path_find_highest_VERSION=''
17297 ax_path_bdb_path_find_highest_DIR=''
17299 # find highest verison in default install directory for Berkeley DB
17301 for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
17304 ax_path_bdb_path_get_version_ok=no
17306 # Indicate status of checking for Berkeley DB header.
17307 { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
17308 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... $ECHO_C" >&6; }
17309 ax_path_bdb_path_get_version_got_header=no
17310 test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
17311 { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_got_header" >&5
17312 echo "${ECHO_T}$ax_path_bdb_path_get_version_got_header" >&6; }
17314 # Indicate status of checking for Berkeley DB library.
17315 { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
17316 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... $ECHO_C" >&6; }
17318 ax_path_bdb_path_get_version_VERSION=''
17320 if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
17321 test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
17322 ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
17323 CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
17325 ax_path_bdb_path_get_version_save_LIBS="$LIBS"
17328 ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
17329 LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
17331 # Compile and run a program that compares the version defined in
17332 # the header file with a version defined in the library function
17334 if test "$cross_compiling" = yes; then
17335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17336 See \`config.log' for more details." >&5
17337 echo "$as_me: error: cannot run test program while cross compiling
17338 See \`config.log' for more details." >&2;}
17339 { (exit 1); exit 1; }; }
17341 cat >conftest.$ac_ext <<_ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17351 int main(int argc,char **argv)
17353 int major,minor,patch;
17355 db_version(&major,&minor,&patch);
17357 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
17358 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
17359 DB_VERSION_PATCH == patch)
17367 rm -f conftest$ac_exeext
17368 if { (ac_try="$ac_link"
17369 case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_link") 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17378 { (case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_try") 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17388 # Program compiled and ran, so get version by adding argument.
17389 ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
17390 ax_path_bdb_path_get_version_ok=yes
17393 echo "$as_me: program exited with status $ac_status" >&5
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17403 CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
17404 LIBS="$ax_path_bdb_path_get_version_save_LIBS"
17405 LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
17408 if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
17409 { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_VERSION" >&5
17410 echo "${ECHO_T}$ax_path_bdb_path_get_version_VERSION" >&6; }
17413 for ac_prog in gawk mawk nawk awk
17415 # Extract the first word of "$ac_prog", so it can be a program name with args.
17416 set dummy $ac_prog; ac_word=$2
17417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17419 if test "${ac_cv_prog_AWK+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17422 if test -n "$AWK"; then
17423 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17426 for as_dir in $PATH
17429 test -z "$as_dir" && as_dir=.
17430 for ac_exec_ext in '' $ac_executable_extensions; do
17431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17432 ac_cv_prog_AWK="$ac_prog"
17433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17442 AWK=$ac_cv_prog_AWK
17443 if test -n "$AWK"; then
17444 { echo "$as_me:$LINENO: result: $AWK" >&5
17445 echo "${ECHO_T}$AWK" >&6; }
17447 { echo "$as_me:$LINENO: result: no" >&5
17448 echo "${ECHO_T}no" >&6; }
17452 test -n "$AWK" && break
17456 # Used to indicate true or false condition
17457 ax_compare_version=false
17459 # Convert the two version strings to be compared into a format that
17460 # allows a simple string comparison. The end result is that a version
17461 # string of the form 1.12.5-r617 will be converted to the form
17462 # 0001001200050617. In other words, each number is zero padded to four
17463 # digits, and non digits are removed.
17465 ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17466 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17467 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17468 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17472 ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17473 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17474 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17475 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17479 ax_compare_version=`echo "x$ax_compare_version_A
17480 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
17484 if test "$ax_compare_version" = "true" ; then
17486 ax_path_bdb_path_find_highest_ok=yes
17487 ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
17488 ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
17494 { echo "$as_me:$LINENO: result: no" >&5
17495 echo "${ECHO_T}no" >&6; }
17501 if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
17503 if test "$ax_path_bdb_no_options_ok" = "yes" ; then
17504 # If we already have an acceptable version use this if higher.
17506 for ac_prog in gawk mawk nawk awk
17508 # Extract the first word of "$ac_prog", so it can be a program name with args.
17509 set dummy $ac_prog; ac_word=$2
17510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17512 if test "${ac_cv_prog_AWK+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17515 if test -n "$AWK"; then
17516 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17519 for as_dir in $PATH
17522 test -z "$as_dir" && as_dir=.
17523 for ac_exec_ext in '' $ac_executable_extensions; do
17524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17525 ac_cv_prog_AWK="$ac_prog"
17526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17535 AWK=$ac_cv_prog_AWK
17536 if test -n "$AWK"; then
17537 { echo "$as_me:$LINENO: result: $AWK" >&5
17538 echo "${ECHO_T}$AWK" >&6; }
17540 { echo "$as_me:$LINENO: result: no" >&5
17541 echo "${ECHO_T}no" >&6; }
17545 test -n "$AWK" && break
17549 # Used to indicate true or false condition
17550 ax_compare_version=false
17552 # Convert the two version strings to be compared into a format that
17553 # allows a simple string comparison. The end result is that a version
17554 # string of the form 1.12.5-r617 will be converted to the form
17555 # 0001001200050617. In other words, each number is zero padded to four
17556 # digits, and non digits are removed.
17558 ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17559 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17560 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17561 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17565 ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17566 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17567 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17568 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17572 ax_compare_version=`echo "x$ax_compare_version_A
17573 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
17577 if test "$ax_compare_version" = "true" ; then
17582 # Since we didn't have an acceptable version check if this one is.
17584 for ac_prog in gawk mawk nawk awk
17586 # Extract the first word of "$ac_prog", so it can be a program name with args.
17587 set dummy $ac_prog; ac_word=$2
17588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17590 if test "${ac_cv_prog_AWK+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 if test -n "$AWK"; then
17594 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17597 for as_dir in $PATH
17600 test -z "$as_dir" && as_dir=.
17601 for ac_exec_ext in '' $ac_executable_extensions; do
17602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17603 ac_cv_prog_AWK="$ac_prog"
17604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17613 AWK=$ac_cv_prog_AWK
17614 if test -n "$AWK"; then
17615 { echo "$as_me:$LINENO: result: $AWK" >&5
17616 echo "${ECHO_T}$AWK" >&6; }
17618 { echo "$as_me:$LINENO: result: no" >&5
17619 echo "${ECHO_T}no" >&6; }
17623 test -n "$AWK" && break
17627 # Used to indicate true or false condition
17628 ax_compare_version=false
17630 # Convert the two version strings to be compared into a format that
17631 # allows a simple string comparison. The end result is that a version
17632 # string of the form 1.12.5-r617 will be converted to the form
17633 # 0001001200050617. In other words, each number is zero padded to four
17634 # digits, and non digits are removed.
17636 ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17637 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17638 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17639 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17643 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17644 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17645 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17646 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17650 ax_compare_version=`echo "x$ax_compare_version_A
17651 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
17655 if test "$ax_compare_version" = "true" ; then
17665 if test "$ax_compare_version" = "true" ; then
17666 ax_path_bdb_no_options_ok=yes
17668 if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
17669 BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
17670 BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
17672 BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
17677 if test "$ax_path_bdb_no_options_ok" = "yes" ; then
17678 { echo "$as_me:$LINENO: using Berkeley DB version $BDB_VERSION" >&5
17679 echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
17681 cat >>confdefs.h <<\_ACEOF
17682 #define HAVE_DB_H 1
17687 BDB_CPPFLAGS="-I$ax_path_bdb_INC"
17688 BDB_LDFLAGS="-L$ax_path_bdb_LIB"
17691 { echo "$as_me:$LINENO: no Berkeley DB version 3 or higher found" >&5
17692 echo "$as_me: no Berkeley DB version 3 or higher found" >&6;}
17696 { echo "$as_me:$LINENO: result: no" >&5
17697 echo "${ECHO_T}no" >&6; }
17698 { echo "$as_me:$LINENO: no usable Berkeley DB not found" >&5
17699 echo "$as_me: no usable Berkeley DB not found" >&6;}
17702 CPPFLAGS="$ax_path_bdb_save_CPPFLAGS"
17703 LDFLAGS="$ax_path_bdb_save_LDFLAGS"
17707 if test "$ax_path_bdb_ok" = "yes" ; then
17716 if test x$support_libdb = xyes; then
17718 cat >>confdefs.h <<\_ACEOF
17726 # -------------------------------------------
17727 # gnome (default off)
17728 # -------------------------------------------
17729 # Check whether --enable-gnome was given.
17730 if test "${enable_gnome+set}" = set; then
17731 enableval=$enable_gnome; if test x$enableval = xyes; then
17738 if test x$support_gnome = xyes; then
17739 abc=`$PKGCONFIG --exists libgnomeui-2.0`
17741 if test $pkg = 0; then
17742 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
17743 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
17744 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
17745 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
17750 GNOME_DIR=src/gnome2-console
17751 gnome_version="Version 2.x"
17753 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
17754 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
17755 { (exit 1); exit 1; }; }
17760 # -------------------------------------------
17761 # bat (default off)
17762 # -------------------------------------------
17763 # Check whether --enable-bat was given.
17764 if test "${enable_bat+set}" = set; then
17765 enableval=$enable_bat; if test x$enableval = xyes; then
17767 cat >>confdefs.h <<\_ACEOF
17777 if test x$support_bat = xyes; then
17778 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
17780 if test $pkg = 0; then
17781 BAT_DIR=src/qt-console
17783 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
17784 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
17785 { (exit 1); exit 1; }; }
17790 # If bat is enabled, we need the qwt library
17797 if test x$support_bat = xyes; then
17798 { echo "$as_me:$LINENO: checking for qwt support" >&5
17799 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
17801 # Check whether --with-qwt was given.
17802 if test "${with_qwt+set}" = set; then
17804 case "$with_qwt" in
17809 if test -f ${with_qwt}/include/qwt.h; then
17810 QWT_INC="${with_qwt}/include"
17811 QWT_LDFLAGS="-L${with_qwt}/lib"
17822 # Search in standard places, or --with-qwt not specified
17824 if test $no_qwt = no; then
17825 if test x$QWT_INC = x; then
17826 for root in /usr /usr/local; do
17827 for ver in qwt qwt5 qwt-qt4; do
17828 if test -f ${root}/include/${ver}/qwt.h; then
17829 QWT_INC="${root}/include/${ver}"
17830 if test -d ${root}/lib64/; then
17831 QWT_LDFLAGS="-L${root}/lib64"
17833 QWT_LDFLAGS="-L${root}/lib"
17844 if test x$QWT_INC = x; then
17845 { echo "$as_me:$LINENO: result: no" >&5
17846 echo "${ECHO_T}no" >&6; }
17849 cat >>confdefs.h <<\_ACEOF
17853 { echo "$as_me:$LINENO: result: yes" >&5
17854 echo "${ECHO_T}yes" >&6; }
17865 # -------------------------------------------
17866 # bwx-console (default off)
17867 # -------------------------------------------
17868 # Check whether --enable-bwx-console was given.
17869 if test "${enable_bwx_console+set}" = set; then
17870 enableval=$enable_bwx_console; if test x$enableval = xyes; then
17871 support_wx_console=yes
17877 if test x$support_wx_console = xyes; then
17878 abc=`$WXCONFIG $WXFLAGS --cppflags`
17880 if test $pkg = 0; then
17881 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
17882 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
17883 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
17887 WX_DIR=src/wx-console
17890 echo "wx-config program not found. bwx-console disabled."
17892 support_wx_console=no
17898 # -------------------------------------------
17899 # tray-monitor (default off)
17900 # -------------------------------------------
17901 # Check whether --enable-tray-monitor was given.
17902 if test "${enable_tray_monitor+set}" = set; then
17903 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
17904 support_tray_monitor=yes
17910 if test x$support_tray_monitor = xyes; then
17911 abc=`$PKGCONFIG --exists gtk+-2.0`
17913 if test $pkg = 0; then
17914 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
17915 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
17918 TRAY_MONITOR_DIR=src/tray-monitor
17919 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
17921 if test $pkg = 0; then
17923 cat >>confdefs.h <<\_ACEOF
17924 #define HAVE_GTK_2_4 1
17932 # -------------------------------------------
17933 # smartalloc (default off)
17934 # -------------------------------------------
17935 # Check whether --enable-smartalloc was given.
17936 if test "${enable_smartalloc+set}" = set; then
17937 enableval=$enable_smartalloc; if test x$enableval = xno; then
17938 support_smartalloc=no
17943 if test x$support_smartalloc = xyes; then
17945 cat >>confdefs.h <<\_ACEOF
17946 #define SMARTALLOC 1
17951 # -------------------------------------------
17952 # static-tools (default off)
17953 # -------------------------------------------
17954 # Check whether --enable-static-tools was given.
17955 if test "${enable_static_tools+set}" = set; then
17956 enableval=$enable_static_tools; if test x$enableval = xyes; then
17957 support_static_tools=yes
17963 if test x$support_static_tools = xyes; then
17964 TTOOL_LDFLAGS="-static"
17968 # -------------------------------------------
17969 # static-fd (default off)
17970 # -------------------------------------------
17971 # Check whether --enable-static-fd was given.
17972 if test "${enable_static_fd+set}" = set; then
17973 enableval=$enable_static_fd; if test x$enableval = xyes; then
17974 support_static_fd=yes
17980 if test x$support_static_fd = xyes; then
17981 STATIC_FD="static-bacula-fd"
17985 # -------------------------------------------
17986 # static-sd (default off)
17987 # -------------------------------------------
17988 # Check whether --enable-static-sd was given.
17989 if test "${enable_static_sd+set}" = set; then
17990 enableval=$enable_static_sd; if test x$enableval = xyes; then
17991 support_static_sd=yes
17997 if test x$support_static_sd = xyes; then
17998 STATIC_SD="static-bacula-sd"
18002 # -------------------------------------------
18003 # static-dir (default off)
18004 # -------------------------------------------
18005 # Check whether --enable-static-dir was given.
18006 if test "${enable_static_dir+set}" = set; then
18007 enableval=$enable_static_dir; if test x$enableval = xyes; then
18008 support_static_dir=yes
18014 if test x$support_static_dir = xyes; then
18015 STATIC_DIR="static-bacula-dir"
18019 # -------------------------------------------
18020 # static-cons (default off)
18021 # -------------------------------------------
18022 # Check whether --enable-static-cons was given.
18023 if test "${enable_static_cons+set}" = set; then
18024 enableval=$enable_static_cons; if test x$enableval = xyes; then
18025 support_static_cons=yes
18033 if test x$support_static_cons = xyes; then
18034 STATIC_CONS="static-bconsole"
18035 STATIC_GNOME_CONS="static-bgnome-console"
18036 STATIC_WX_CONS="static-bwx-console"
18042 # -------------------------------------------
18043 # client_only (default off)
18044 # -------------------------------------------
18045 # Check whether --enable-client-only was given.
18046 if test "${enable_client_only+set}" = set; then
18047 enableval=$enable_client_only; if test x$enableval = xyes; then
18048 build_client_only=yes
18054 if test x$build_client_only = xno; then
18061 # -------------------------------------------
18062 # director (default on)
18063 # -------------------------------------------
18064 # Check whether --enable-build-dird was given.
18065 if test "${enable_build_dird+set}" = set; then
18066 enableval=$enable_build_dird; if test x$enableval = xno; then
18071 if test x$build_dird = xyes; then
18072 DIRD_DIR="src/dird"
18073 DIR_TOOLS="DIRTOOLS"
18076 DIR_TOOLS="NODIRTOOLS"
18081 # -------------------------------------------
18082 # stored (default on)
18083 # -------------------------------------------
18084 # Check whether --enable-build-stored was given.
18085 if test "${enable_build_stored+set}" = set; then
18086 enableval=$enable_build_stored; if test x$enableval = xno; then
18091 if test x$build_stored = xyes; then
18092 STORED_DIR="src/stored"
18098 # ---------------------------------------------------
18099 # Check for conio (Bacula readline substitute)(
18100 # ---------------------------------------------------
18101 # this allows you to turn it completely off
18102 # Check whether --enable-conio was given.
18103 if test "${enable_conio+set}" = set; then
18104 enableval=$enable_conio; if test x$enableval = xno; then
18112 # ---------------------------------------------------
18113 # Check for IPv6 support
18114 # ---------------------------------------------------
18115 # this allows you to turn it completely off
18117 # Check whether --enable-ipv6 was given.
18118 if test "${enable_ipv6+set}" = set; then
18119 enableval=$enable_ipv6; if test x$enableval = xno; then
18126 if test x$support_ipv6 = xyes; then
18127 cat >conftest.$ac_ext <<_ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 #include <sys/types.h>
18134 #include <sys/socket.h>
18135 #include <netinet/in.h>
18139 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
18144 rm -f conftest.$ac_objext conftest$ac_exeext
18145 if { (ac_try="$ac_link"
18146 case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_link") 2>conftest.er1
18153 grep -v '^ *+' conftest.er1 >conftest.err
18155 cat conftest.err >&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } && {
18158 test -z "$ac_c_werror_flag" ||
18159 test ! -s conftest.err
18160 } && test -s conftest$ac_exeext &&
18161 $as_test_x conftest$ac_exeext; then
18164 echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18171 conftest$ac_exeext conftest.$ac_ext
18174 if test x$support_ipv6 = xyes; then
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_IPV6 1
18185 if test x$support_conio = xyes; then
18186 if test "${ac_cv_header_termcap_h+set}" = set; then
18187 { echo "$as_me:$LINENO: checking for termcap.h" >&5
18188 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
18189 if test "${ac_cv_header_termcap_h+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
18193 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
18195 # Is the header compilable?
18196 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
18197 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
18198 cat >conftest.$ac_ext <<_ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18204 $ac_includes_default
18205 #include <termcap.h>
18207 rm -f conftest.$ac_objext
18208 if { (ac_try="$ac_compile"
18209 case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_compile") 2>conftest.er1
18216 grep -v '^ *+' conftest.er1 >conftest.err
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } && {
18221 test -z "$ac_c_werror_flag" ||
18222 test ! -s conftest.err
18223 } && test -s conftest.$ac_objext; then
18224 ac_header_compiler=yes
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 ac_header_compiler=no
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18234 echo "${ECHO_T}$ac_header_compiler" >&6; }
18236 # Is the header present?
18237 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
18238 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
18239 cat >conftest.$ac_ext <<_ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18245 #include <termcap.h>
18247 if { (ac_try="$ac_cpp conftest.$ac_ext"
18248 case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18255 grep -v '^ *+' conftest.er1 >conftest.err
18257 cat conftest.err >&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } >/dev/null && {
18260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18261 test ! -s conftest.err
18263 ac_header_preproc=yes
18265 echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18268 ac_header_preproc=no
18271 rm -f conftest.err conftest.$ac_ext
18272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18273 echo "${ECHO_T}$ac_header_preproc" >&6; }
18275 # So? What about this header?
18276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18278 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
18279 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18280 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
18281 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
18282 ac_header_preproc=yes
18285 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
18286 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
18287 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
18288 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
18289 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
18290 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
18291 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
18292 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
18293 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
18294 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
18295 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
18296 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
18300 { echo "$as_me:$LINENO: checking for termcap.h" >&5
18301 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
18302 if test "${ac_cv_header_termcap_h+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18305 ac_cv_header_termcap_h=$ac_header_preproc
18307 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
18308 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
18311 if test $ac_cv_header_termcap_h = yes; then
18312 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
18313 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
18314 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 ac_check_lib_save_LIBS=$LIBS
18318 LIBS="-ltermcap $LIBS"
18319 cat >conftest.$ac_ext <<_ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h. */
18326 /* Override any GCC internal prototype to avoid an error.
18327 Use char because int might match the return type of a GCC
18328 builtin and then its argument prototype would still apply. */
18341 rm -f conftest.$ac_objext conftest$ac_exeext
18342 if { (ac_try="$ac_link"
18343 case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_link") 2>conftest.er1
18350 grep -v '^ *+' conftest.er1 >conftest.err
18352 cat conftest.err >&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } && {
18355 test -z "$ac_c_werror_flag" ||
18356 test ! -s conftest.err
18357 } && test -s conftest$ac_exeext &&
18358 $as_test_x conftest$ac_exeext; then
18359 ac_cv_lib_termcap_tgetent=yes
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 ac_cv_lib_termcap_tgetent=no
18367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18368 conftest$ac_exeext conftest.$ac_ext
18369 LIBS=$ac_check_lib_save_LIBS
18371 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
18372 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
18373 if test $ac_cv_lib_termcap_tgetent = yes; then
18374 CONS_LIBS="-ltermcap"
18378 support_readline=no
18380 cat >>confdefs.h <<\_ACEOF
18381 #define HAVE_CONIO 1
18386 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
18387 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
18388 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 ac_check_lib_save_LIBS=$LIBS
18392 LIBS="-lncurses $LIBS"
18393 cat >conftest.$ac_ext <<_ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18400 /* Override any GCC internal prototype to avoid an error.
18401 Use char because int might match the return type of a GCC
18402 builtin and then its argument prototype would still apply. */
18415 rm -f conftest.$ac_objext conftest$ac_exeext
18416 if { (ac_try="$ac_link"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_link") 2>conftest.er1
18424 grep -v '^ *+' conftest.er1 >conftest.err
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } && {
18429 test -z "$ac_c_werror_flag" ||
18430 test ! -s conftest.err
18431 } && test -s conftest$ac_exeext &&
18432 $as_test_x conftest$ac_exeext; then
18433 ac_cv_lib_ncurses_tgetent=yes
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18438 ac_cv_lib_ncurses_tgetent=no
18441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18442 conftest$ac_exeext conftest.$ac_ext
18443 LIBS=$ac_check_lib_save_LIBS
18445 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
18446 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
18447 if test $ac_cv_lib_ncurses_tgetent = yes; then
18448 CONS_LIBS="-lncurses"
18452 support_readline=no
18454 cat >>confdefs.h <<\_ACEOF
18455 #define HAVE_CONIO 1
18468 for ac_header in curses.h
18470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 ac_res=`eval echo '${'$as_ac_Header'}'`
18478 { echo "$as_me:$LINENO: result: $ac_res" >&5
18479 echo "${ECHO_T}$ac_res" >&6; }
18481 # Is the header compilable?
18482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18484 cat >conftest.$ac_ext <<_ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18490 $ac_includes_default
18491 #include <$ac_header>
18493 rm -f conftest.$ac_objext
18494 if { (ac_try="$ac_compile"
18495 case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_compile") 2>conftest.er1
18502 grep -v '^ *+' conftest.er1 >conftest.err
18504 cat conftest.err >&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } && {
18507 test -z "$ac_c_werror_flag" ||
18508 test ! -s conftest.err
18509 } && test -s conftest.$ac_objext; then
18510 ac_header_compiler=yes
18512 echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18515 ac_header_compiler=no
18518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18520 echo "${ECHO_T}$ac_header_compiler" >&6; }
18522 # Is the header present?
18523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18531 #include <$ac_header>
18533 if { (ac_try="$ac_cpp conftest.$ac_ext"
18534 case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18541 grep -v '^ *+' conftest.er1 >conftest.err
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } >/dev/null && {
18546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18547 test ! -s conftest.err
18549 ac_header_preproc=yes
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18554 ac_header_preproc=no
18557 rm -f conftest.err conftest.$ac_ext
18558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18559 echo "${ECHO_T}$ac_header_preproc" >&6; }
18561 # So? What about this header?
18562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18568 ac_header_preproc=yes
18571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 eval "$as_ac_Header=\$ac_header_preproc"
18593 ac_res=`eval echo '${'$as_ac_Header'}'`
18594 { echo "$as_me:$LINENO: result: $ac_res" >&5
18595 echo "${ECHO_T}$ac_res" >&6; }
18598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18599 cat >>confdefs.h <<_ACEOF
18600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18607 { echo "$as_me:$LINENO: checking for term.h" >&5
18608 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
18609 if test "${ac_cv_header_term_h+set}" = set; then
18610 echo $ECHO_N "(cached) $ECHO_C" >&6
18612 cat >conftest.$ac_ext <<_ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18619 #include <curses.h>
18625 rm -f conftest.$ac_objext
18626 if { (ac_try="$ac_compile"
18627 case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_compile") 2>conftest.er1
18634 grep -v '^ *+' conftest.er1 >conftest.err
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } && {
18639 test -z "$ac_c_werror_flag" ||
18640 test ! -s conftest.err
18641 } && test -s conftest.$ac_objext; then
18642 ac_cv_header_term_h=yes
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 ac_cv_header_term_h=no
18650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18652 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
18653 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
18654 if test $ac_cv_header_term_h = yes; then
18655 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
18656 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
18657 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 ac_check_lib_save_LIBS=$LIBS
18661 LIBS="-lcurses $LIBS"
18662 cat >conftest.$ac_ext <<_ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18669 /* Override any GCC internal prototype to avoid an error.
18670 Use char because int might match the return type of a GCC
18671 builtin and then its argument prototype would still apply. */
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (ac_try="$ac_link"
18686 case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_link") 2>conftest.er1
18693 grep -v '^ *+' conftest.er1 >conftest.err
18695 cat conftest.err >&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } && {
18698 test -z "$ac_c_werror_flag" ||
18699 test ! -s conftest.err
18700 } && test -s conftest$ac_exeext &&
18701 $as_test_x conftest$ac_exeext; then
18702 ac_cv_lib_curses_tgetent=yes
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_lib_curses_tgetent=no
18710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18711 conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18714 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
18715 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
18716 if test $ac_cv_lib_curses_tgetent = yes; then
18717 CONS_LIBS="-lcurses"
18721 support_readline=no
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_CONIO 1
18732 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
18743 # ---------------------------------------------------
18744 # Check for readline support/directory (default off)
18745 # ---------------------------------------------------
18746 # this allows you to turn it completely off
18747 # Check whether --enable-readline was given.
18748 if test "${enable_readline+set}" = set; then
18749 enableval=$enable_readline; if test x$enableval = xno; then
18750 support_readline=no
18757 if test x$support_readline = xyes; then
18759 # Check whether --with-readline was given.
18760 if test "${with_readline+set}" = set; then
18761 withval=$with_readline;
18762 case "$with_readline" in
18765 if test -f ${with_readline}/readline.h; then
18766 CONS_INC="-I${with_readline}"
18767 CONS_LDFLAGS="-L$with_readline"
18768 elif test -f ${with_readline}/include/readline/readline.h; then
18769 CONS_INC="-I${with_readline}/include/readline"
18770 CONS_LDFLAGS="-L${with_readline}/lib"
18771 with_readline="${with_readline}/include/readline"
18773 with_readline="/usr/include/readline"
18775 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
18776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18777 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
18778 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
18779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18782 ac_res=`eval echo '${'$as_ac_Header'}'`
18783 { echo "$as_me:$LINENO: result: $ac_res" >&5
18784 echo "${ECHO_T}$ac_res" >&6; }
18786 # Is the header compilable?
18787 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
18788 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 $ac_includes_default
18796 #include <${with_readline}/readline.h>
18798 rm -f conftest.$ac_objext
18799 if { (ac_try="$ac_compile"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_compile") 2>conftest.er1
18807 grep -v '^ *+' conftest.er1 >conftest.err
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } && {
18812 test -z "$ac_c_werror_flag" ||
18813 test ! -s conftest.err
18814 } && test -s conftest.$ac_objext; then
18815 ac_header_compiler=yes
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18820 ac_header_compiler=no
18823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18825 echo "${ECHO_T}$ac_header_compiler" >&6; }
18827 # Is the header present?
18828 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
18829 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836 #include <${with_readline}/readline.h>
18838 if { (ac_try="$ac_cpp conftest.$ac_ext"
18839 case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } >/dev/null && {
18851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18852 test ! -s conftest.err
18854 ac_header_preproc=yes
18856 echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18859 ac_header_preproc=no
18862 rm -f conftest.err conftest.$ac_ext
18863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18864 echo "${ECHO_T}$ac_header_preproc" >&6; }
18866 # So? What about this header?
18867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18869 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
18870 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
18872 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
18873 ac_header_preproc=yes
18876 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
18877 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
18878 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
18879 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
18881 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
18882 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
18883 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
18885 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
18887 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
18891 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
18892 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
18893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 eval "$as_ac_Header=\$ac_header_preproc"
18898 ac_res=`eval echo '${'$as_ac_Header'}'`
18899 { echo "$as_me:$LINENO: result: $ac_res" >&5
18900 echo "${ECHO_T}$ac_res" >&6; }
18903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18905 cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_READLINE 1
18909 CONS_LIBS="-lreadline -lhistory -ltermcap"
18914 echo "readline.h not found. readline turned off ..."
18926 # check for standard readline library
18927 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
18928 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
18929 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
18930 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18933 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
18934 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
18936 # Is the header compilable?
18937 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
18938 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18945 $ac_includes_default
18946 #include </usr/include/readline/readline.h>
18948 rm -f conftest.$ac_objext
18949 if { (ac_try="$ac_compile"
18950 case "(($ac_try" in
18951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952 *) ac_try_echo=$ac_try;;
18954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955 (eval "$ac_compile") 2>conftest.er1
18957 grep -v '^ *+' conftest.er1 >conftest.err
18959 cat conftest.err >&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } && {
18962 test -z "$ac_c_werror_flag" ||
18963 test ! -s conftest.err
18964 } && test -s conftest.$ac_objext; then
18965 ac_header_compiler=yes
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 ac_header_compiler=no
18973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975 echo "${ECHO_T}$ac_header_compiler" >&6; }
18977 # Is the header present?
18978 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
18979 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
18980 cat >conftest.$ac_ext <<_ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18986 #include </usr/include/readline/readline.h>
18988 if { (ac_try="$ac_cpp conftest.$ac_ext"
18989 case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18996 grep -v '^ *+' conftest.er1 >conftest.err
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } >/dev/null && {
19001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19002 test ! -s conftest.err
19004 ac_header_preproc=yes
19006 echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19009 ac_header_preproc=no
19012 rm -f conftest.err conftest.$ac_ext
19013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19014 echo "${ECHO_T}$ac_header_preproc" >&6; }
19016 # So? What about this header?
19017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19019 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19020 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
19022 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
19023 ac_header_preproc=yes
19026 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
19027 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
19028 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
19029 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
19031 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
19032 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
19033 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
19034 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
19035 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
19037 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
19041 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
19042 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
19043 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19046 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
19048 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
19049 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
19052 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
19054 cat >>confdefs.h <<\_ACEOF
19055 #define HAVE_READLINE 1
19059 CONS_INC="-I/usr/include/readline"
19060 CONS_LIBS="-lreadline -ltermcap"
19064 # Did not find standard library, so try Bacula's default
19065 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
19066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19067 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
19068 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
19069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 ac_res=`eval echo '${'$as_ac_Header'}'`
19073 { echo "$as_me:$LINENO: result: $ac_res" >&5
19074 echo "${ECHO_T}$ac_res" >&6; }
19076 # Is the header compilable?
19077 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
19078 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
19079 cat >conftest.$ac_ext <<_ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19085 $ac_includes_default
19086 #include <${TOP_DIR}/depkgs/readline/readline.h>
19088 rm -f conftest.$ac_objext
19089 if { (ac_try="$ac_compile"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_compile") 2>conftest.er1
19097 grep -v '^ *+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest.$ac_objext; then
19105 ac_header_compiler=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_header_compiler=no
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19115 echo "${ECHO_T}$ac_header_compiler" >&6; }
19117 # Is the header present?
19118 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
19119 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
19120 cat >conftest.$ac_ext <<_ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126 #include <${TOP_DIR}/depkgs/readline/readline.h>
19128 if { (ac_try="$ac_cpp conftest.$ac_ext"
19129 case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19136 grep -v '^ *+' conftest.er1 >conftest.err
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } >/dev/null && {
19141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19142 test ! -s conftest.err
19144 ac_header_preproc=yes
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19149 ac_header_preproc=no
19152 rm -f conftest.err conftest.$ac_ext
19153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19154 echo "${ECHO_T}$ac_header_preproc" >&6; }
19156 # So? What about this header?
19157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19159 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19160 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19161 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
19162 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
19163 ac_header_preproc=yes
19166 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
19167 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
19168 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
19169 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
19170 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
19171 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
19173 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
19175 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
19176 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
19177 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
19181 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
19182 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
19183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 eval "$as_ac_Header=\$ac_header_preproc"
19188 ac_res=`eval echo '${'$as_ac_Header'}'`
19189 { echo "$as_me:$LINENO: result: $ac_res" >&5
19190 echo "${ECHO_T}$ac_res" >&6; }
19193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19195 cat >>confdefs.h <<\_ACEOF
19196 #define HAVE_READLINE 1
19200 CONS_INC="-I${TOP_DIR}/depkgs/readline"
19201 CONS_LIBS="-lreadline -lhistory -ltermcap"
19202 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
19203 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
19207 echo "readline.h not found. readline turned off ..."
19234 # Minimal stuff for readline Makefile configuration
19237 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19238 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
19239 if test "${ac_cv_header_stat_broken+set}" = set; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19242 cat >conftest.$ac_ext <<_ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <sys/types.h>
19249 #include <sys/stat.h>
19251 #if defined S_ISBLK && defined S_IFDIR
19252 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19255 #if defined S_ISBLK && defined S_IFCHR
19256 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19259 #if defined S_ISLNK && defined S_IFREG
19260 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19263 #if defined S_ISSOCK && defined S_IFREG
19264 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19268 rm -f conftest.$ac_objext
19269 if { (ac_try="$ac_compile"
19270 case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_compile") 2>conftest.er1
19277 grep -v '^ *+' conftest.er1 >conftest.err
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } && {
19282 test -z "$ac_c_werror_flag" ||
19283 test ! -s conftest.err
19284 } && test -s conftest.$ac_objext; then
19285 ac_cv_header_stat_broken=no
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 ac_cv_header_stat_broken=yes
19293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19296 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
19297 if test $ac_cv_header_stat_broken = yes; then
19299 cat >>confdefs.h <<\_ACEOF
19300 #define STAT_MACROS_BROKEN 1
19310 ac_header_dirent=no
19311 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19312 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19313 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19314 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 cat >conftest.$ac_ext <<_ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h. */
19324 #include <sys/types.h>
19336 rm -f conftest.$ac_objext
19337 if { (ac_try="$ac_compile"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_compile") 2>conftest.er1
19345 grep -v '^ *+' conftest.er1 >conftest.err
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest.$ac_objext; then
19353 eval "$as_ac_Header=yes"
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 eval "$as_ac_Header=no"
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363 ac_res=`eval echo '${'$as_ac_Header'}'`
19364 { echo "$as_me:$LINENO: result: $ac_res" >&5
19365 echo "${ECHO_T}$ac_res" >&6; }
19366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19367 cat >>confdefs.h <<_ACEOF
19368 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19371 ac_header_dirent=$ac_hdr; break
19375 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19376 if test $ac_header_dirent = dirent.h; then
19377 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19378 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19379 if test "${ac_cv_search_opendir+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 ac_func_search_save_LIBS=$LIBS
19383 cat >conftest.$ac_ext <<_ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19390 /* Override any GCC internal prototype to avoid an error.
19391 Use char because int might match the return type of a GCC
19392 builtin and then its argument prototype would still apply. */
19405 for ac_lib in '' dir; do
19406 if test -z "$ac_lib"; then
19407 ac_res="none required"
19410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (ac_try="$ac_link"
19414 case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_link") 2>conftest.er1
19421 grep -v '^ *+' conftest.er1 >conftest.err
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } && {
19426 test -z "$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19428 } && test -s conftest$ac_exeext &&
19429 $as_test_x conftest$ac_exeext; then
19430 ac_cv_search_opendir=$ac_res
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19440 if test "${ac_cv_search_opendir+set}" = set; then
19444 if test "${ac_cv_search_opendir+set}" = set; then
19447 ac_cv_search_opendir=no
19449 rm conftest.$ac_ext
19450 LIBS=$ac_func_search_save_LIBS
19452 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19453 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19454 ac_res=$ac_cv_search_opendir
19455 if test "$ac_res" != no; then
19456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19461 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19462 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19463 if test "${ac_cv_search_opendir+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 ac_func_search_save_LIBS=$LIBS
19467 cat >conftest.$ac_ext <<_ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19474 /* Override any GCC internal prototype to avoid an error.
19475 Use char because int might match the return type of a GCC
19476 builtin and then its argument prototype would still apply. */
19489 for ac_lib in '' x; do
19490 if test -z "$ac_lib"; then
19491 ac_res="none required"
19494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19496 rm -f conftest.$ac_objext conftest$ac_exeext
19497 if { (ac_try="$ac_link"
19498 case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_link") 2>conftest.er1
19505 grep -v '^ *+' conftest.er1 >conftest.err
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } && {
19510 test -z "$ac_c_werror_flag" ||
19511 test ! -s conftest.err
19512 } && test -s conftest$ac_exeext &&
19513 $as_test_x conftest$ac_exeext; then
19514 ac_cv_search_opendir=$ac_res
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19524 if test "${ac_cv_search_opendir+set}" = set; then
19528 if test "${ac_cv_search_opendir+set}" = set; then
19531 ac_cv_search_opendir=no
19533 rm conftest.$ac_ext
19534 LIBS=$ac_func_search_save_LIBS
19536 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19537 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19538 ac_res=$ac_cv_search_opendir
19539 if test "$ac_res" != no; then
19540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19553 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
19555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19561 cat >conftest.$ac_ext <<_ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19569 #define $ac_func innocuous_$ac_func
19571 /* System header to define __stub macros and hopefully few prototypes,
19572 which can conflict with char $ac_func (); below.
19573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19574 <limits.h> exists even on freestanding compilers. */
19577 # include <limits.h>
19579 # include <assert.h>
19584 /* Override any GCC internal prototype to avoid an error.
19585 Use char because int might match the return type of a GCC
19586 builtin and then its argument prototype would still apply. */
19591 /* The GNU C library defines this for functions which it implements
19592 to always fail with ENOSYS. Some functions are actually named
19593 something starting with __ and the normal name is an alias. */
19594 #if defined __stub_$ac_func || defined __stub___$ac_func
19601 return $ac_func ();
19606 rm -f conftest.$ac_objext conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_link") 2>conftest.er1
19615 grep -v '^ *+' conftest.er1 >conftest.err
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } && {
19620 test -z "$ac_c_werror_flag" ||
19621 test ! -s conftest.err
19622 } && test -s conftest$ac_exeext &&
19623 $as_test_x conftest$ac_exeext; then
19624 eval "$as_ac_var=yes"
19626 echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 eval "$as_ac_var=no"
19632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19633 conftest$ac_exeext conftest.$ac_ext
19635 ac_res=`eval echo '${'$as_ac_var'}'`
19636 { echo "$as_me:$LINENO: result: $ac_res" >&5
19637 echo "${ECHO_T}$ac_res" >&6; }
19638 if test `eval echo '${'$as_ac_var'}'` = yes; then
19639 cat >>confdefs.h <<_ACEOF
19640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19648 for ac_func in nanosleep nl_langinfo
19650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 cat >conftest.$ac_ext <<_ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19664 #define $ac_func innocuous_$ac_func
19666 /* System header to define __stub macros and hopefully few prototypes,
19667 which can conflict with char $ac_func (); below.
19668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19669 <limits.h> exists even on freestanding compilers. */
19672 # include <limits.h>
19674 # include <assert.h>
19679 /* Override any GCC internal prototype to avoid an error.
19680 Use char because int might match the return type of a GCC
19681 builtin and then its argument prototype would still apply. */
19686 /* The GNU C library defines this for functions which it implements
19687 to always fail with ENOSYS. Some functions are actually named
19688 something starting with __ and the normal name is an alias. */
19689 #if defined __stub_$ac_func || defined __stub___$ac_func
19696 return $ac_func ();
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (ac_try="$ac_link"
19703 case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_link") 2>conftest.er1
19710 grep -v '^ *+' conftest.er1 >conftest.err
19712 cat conftest.err >&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } && {
19715 test -z "$ac_c_werror_flag" ||
19716 test ! -s conftest.err
19717 } && test -s conftest$ac_exeext &&
19718 $as_test_x conftest$ac_exeext; then
19719 eval "$as_ac_var=yes"
19721 echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19724 eval "$as_ac_var=no"
19727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19728 conftest$ac_exeext conftest.$ac_ext
19730 ac_res=`eval echo '${'$as_ac_var'}'`
19731 { echo "$as_me:$LINENO: result: $ac_res" >&5
19732 echo "${ECHO_T}$ac_res" >&6; }
19733 if test `eval echo '${'$as_ac_var'}'` = yes; then
19734 cat >>confdefs.h <<_ACEOF
19735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19742 for ac_header in varargs.h
19744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 ac_res=`eval echo '${'$as_ac_Header'}'`
19752 { echo "$as_me:$LINENO: result: $ac_res" >&5
19753 echo "${ECHO_T}$ac_res" >&6; }
19755 # Is the header compilable?
19756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19758 cat >conftest.$ac_ext <<_ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19764 $ac_includes_default
19765 #include <$ac_header>
19767 rm -f conftest.$ac_objext
19768 if { (ac_try="$ac_compile"
19769 case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_compile") 2>conftest.er1
19776 grep -v '^ *+' conftest.er1 >conftest.err
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && {
19781 test -z "$ac_c_werror_flag" ||
19782 test ! -s conftest.err
19783 } && test -s conftest.$ac_objext; then
19784 ac_header_compiler=yes
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 ac_header_compiler=no
19792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19794 echo "${ECHO_T}$ac_header_compiler" >&6; }
19796 # Is the header present?
19797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19799 cat >conftest.$ac_ext <<_ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 #include <$ac_header>
19807 if { (ac_try="$ac_cpp conftest.$ac_ext"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19815 grep -v '^ *+' conftest.er1 >conftest.err
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } >/dev/null && {
19820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19821 test ! -s conftest.err
19823 ac_header_preproc=yes
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19828 ac_header_preproc=no
19831 rm -f conftest.err conftest.$ac_ext
19832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19833 echo "${ECHO_T}$ac_header_preproc" >&6; }
19835 # So? What about this header?
19836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19842 ac_header_preproc=yes
19845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 eval "$as_ac_Header=\$ac_header_preproc"
19867 ac_res=`eval echo '${'$as_ac_Header'}'`
19868 { echo "$as_me:$LINENO: result: $ac_res" >&5
19869 echo "${ECHO_T}$ac_res" >&6; }
19872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19873 cat >>confdefs.h <<_ACEOF
19874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19882 # End of readline/conio stuff
19883 # -----------------------------------------------------------------------
19885 # -----------------------------------------------------------------------
19886 # Check for Python support
19888 { echo "$as_me:$LINENO: checking for Python support" >&5
19889 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
19891 # Check whether --with-python was given.
19892 if test "${with_python+set}" = set; then
19893 withval=$with_python;
19896 if test "$withval" != "no"; then
19897 if test "$withval" = "yes"; then
19898 for python_root in /usr /usr/local /usr/sfw; do
19899 for ver in python2.2 python2.3 python2.4 python2.5; do
19900 if test -f $python_root/include/${ver}/Python.h; then
19901 PYTHON_INCDIR=-I$python_root/include/${ver}
19902 if test -d $python_root/lib64/${ver}/config; then
19903 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
19905 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
19911 if test x$PYTHON_INCDIR = x; then
19912 if test -f $prefix/include/Python.h; then
19913 PYTHON_INCDIR=-I$prefix/include
19914 if test -d $prefix/lib64/config; then
19915 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
19917 PYTHON_LIBS="-L$prefix/lib/config -lpython"
19920 { echo "$as_me:$LINENO: result: no" >&5
19921 echo "${ECHO_T}no" >&6; }
19922 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
19923 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
19924 { (exit 1); exit 1; }; }
19928 if test -f $withval/Python.h; then
19929 PYTHON_INCDIR=-I$withval
19930 PYTHON_LIBS="-L$withval/config -lpython"
19931 elif test -f $withval/include/Python.h; then
19932 PYTHON_INCDIR=-I$withval/include
19933 if test -d $withval/lib64/config; then
19934 PYTHON_LIBS="-L$withval/lib64/config -lpython"
19936 PYTHON_LIBS="-L$withval/lib/config -lpython"
19938 elif test -f $withval/include/python/Python.h; then
19939 PYTHON_INCDIR=-I$withval/include/python
19940 if test -d $withval/lib64/python/config; then
19941 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
19943 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
19946 { echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6; }
19948 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
19949 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
19950 { (exit 1); exit 1; }; }
19953 cat >>confdefs.h <<\_ACEOF
19954 #define HAVE_PYTHON 1
19957 { echo "$as_me:$LINENO: result: yes" >&5
19958 echo "${ECHO_T}yes" >&6; }
19960 { echo "$as_me:$LINENO: checking for more Python libs" >&5
19961 echo "$as_me: checking for more Python libs" >&6;}
19962 saved_LIBS="$LIBS"; LIBS=
19963 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
19964 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
19965 if test "${ac_cv_search_shm_open+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 ac_func_search_save_LIBS=$LIBS
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19976 /* Override any GCC internal prototype to avoid an error.
19977 Use char because int might match the return type of a GCC
19978 builtin and then its argument prototype would still apply. */
19986 return shm_open ();
19991 for ac_lib in '' rt; do
19992 if test -z "$ac_lib"; then
19993 ac_res="none required"
19996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (ac_try="$ac_link"
20000 case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_link") 2>conftest.er1
20007 grep -v '^ *+' conftest.er1 >conftest.err
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } && {
20012 test -z "$ac_c_werror_flag" ||
20013 test ! -s conftest.err
20014 } && test -s conftest$ac_exeext &&
20015 $as_test_x conftest$ac_exeext; then
20016 ac_cv_search_shm_open=$ac_res
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20026 if test "${ac_cv_search_shm_open+set}" = set; then
20030 if test "${ac_cv_search_shm_open+set}" = set; then
20033 ac_cv_search_shm_open=no
20035 rm conftest.$ac_ext
20036 LIBS=$ac_func_search_save_LIBS
20038 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
20039 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
20040 ac_res=$ac_cv_search_shm_open
20041 if test "$ac_res" != no; then
20042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20047 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
20048 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
20049 if test "${ac_cv_lib_util_openpty+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 ac_check_lib_save_LIBS=$LIBS
20053 LIBS="-lutil $LIBS"
20054 cat >conftest.$ac_ext <<_ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20061 /* Override any GCC internal prototype to avoid an error.
20062 Use char because int might match the return type of a GCC
20063 builtin and then its argument prototype would still apply. */
20076 rm -f conftest.$ac_objext conftest$ac_exeext
20077 if { (ac_try="$ac_link"
20078 case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_link") 2>conftest.er1
20085 grep -v '^ *+' conftest.er1 >conftest.err
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && {
20090 test -z "$ac_c_werror_flag" ||
20091 test ! -s conftest.err
20092 } && test -s conftest$ac_exeext &&
20093 $as_test_x conftest$ac_exeext; then
20094 ac_cv_lib_util_openpty=yes
20096 echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20099 ac_cv_lib_util_openpty=no
20102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20103 conftest$ac_exeext conftest.$ac_ext
20104 LIBS=$ac_check_lib_save_LIBS
20106 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
20107 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
20108 if test $ac_cv_lib_util_openpty = yes; then
20109 cat >>confdefs.h <<_ACEOF
20110 #define HAVE_LIBUTIL 1
20113 LIBS="-lutil $LIBS"
20117 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
20120 { echo "$as_me:$LINENO: result: no" >&5
20121 echo "${ECHO_T}no" >&6; }
20126 { echo "$as_me:$LINENO: result: no" >&5
20127 echo "${ECHO_T}no" >&6; }
20135 # Find where sockets are (especially for Solaris)
20136 # Do this before the TCP Wrappers test since tcp wrappers
20137 # uses the socket library and some linkers are stupid.
20139 { echo "$as_me:$LINENO: checking for socket" >&5
20140 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
20141 if test "${ac_cv_func_socket+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20152 #define socket innocuous_socket
20154 /* System header to define __stub macros and hopefully few prototypes,
20155 which can conflict with char socket (); below.
20156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20157 <limits.h> exists even on freestanding compilers. */
20160 # include <limits.h>
20162 # include <assert.h>
20167 /* Override any GCC internal prototype to avoid an error.
20168 Use char because int might match the return type of a GCC
20169 builtin and then its argument prototype would still apply. */
20174 /* The GNU C library defines this for functions which it implements
20175 to always fail with ENOSYS. Some functions are actually named
20176 something starting with __ and the normal name is an alias. */
20177 #if defined __stub_socket || defined __stub___socket
20189 rm -f conftest.$ac_objext conftest$ac_exeext
20190 if { (ac_try="$ac_link"
20191 case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_link") 2>conftest.er1
20198 grep -v '^ *+' conftest.er1 >conftest.err
20200 cat conftest.err >&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } && {
20203 test -z "$ac_c_werror_flag" ||
20204 test ! -s conftest.err
20205 } && test -s conftest$ac_exeext &&
20206 $as_test_x conftest$ac_exeext; then
20207 ac_cv_func_socket=yes
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ac_cv_func_socket=no
20215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20216 conftest$ac_exeext conftest.$ac_ext
20218 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20219 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
20220 if test $ac_cv_func_socket = yes; then
20221 { echo "$as_me:$LINENO: result: using libc's socket" >&5
20222 echo "${ECHO_T}using libc's socket" >&6; }
20225 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
20226 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
20227 if test "${ac_cv_lib_xnet_socket+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 ac_check_lib_save_LIBS=$LIBS
20231 LIBS="-lxnet $LIBS"
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20239 /* Override any GCC internal prototype to avoid an error.
20240 Use char because int might match the return type of a GCC
20241 builtin and then its argument prototype would still apply. */
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20263 grep -v '^ *+' conftest.er1 >conftest.err
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest$ac_exeext &&
20271 $as_test_x conftest$ac_exeext; then
20272 ac_cv_lib_xnet_socket=yes
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_cv_lib_xnet_socket=no
20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281 conftest$ac_exeext conftest.$ac_ext
20282 LIBS=$ac_check_lib_save_LIBS
20284 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
20285 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
20286 if test $ac_cv_lib_xnet_socket = yes; then
20287 cat >>confdefs.h <<_ACEOF
20288 #define HAVE_LIBXNET 1
20291 LIBS="-lxnet $LIBS"
20296 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20297 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
20298 if test "${ac_cv_lib_socket_socket+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 ac_check_lib_save_LIBS=$LIBS
20302 LIBS="-lsocket $LIBS"
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20310 /* Override any GCC internal prototype to avoid an error.
20311 Use char because int might match the return type of a GCC
20312 builtin and then its argument prototype would still apply. */
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && {
20339 test -z "$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 } && test -s conftest$ac_exeext &&
20342 $as_test_x conftest$ac_exeext; then
20343 ac_cv_lib_socket_socket=yes
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_cv_lib_socket_socket=no
20351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20352 conftest$ac_exeext conftest.$ac_ext
20353 LIBS=$ac_check_lib_save_LIBS
20355 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20356 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
20357 if test $ac_cv_lib_socket_socket = yes; then
20358 cat >>confdefs.h <<_ACEOF
20359 #define HAVE_LIBSOCKET 1
20362 LIBS="-lsocket $LIBS"
20367 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
20368 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
20369 if test "${ac_cv_lib_inet_socket+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 ac_check_lib_save_LIBS=$LIBS
20373 LIBS="-linet $LIBS"
20374 cat >conftest.$ac_ext <<_ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20381 /* Override any GCC internal prototype to avoid an error.
20382 Use char because int might match the return type of a GCC
20383 builtin and then its argument prototype would still apply. */
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_link") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest$ac_exeext &&
20413 $as_test_x conftest$ac_exeext; then
20414 ac_cv_lib_inet_socket=yes
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_lib_inet_socket=no
20422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20423 conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
20427 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
20428 if test $ac_cv_lib_inet_socket = yes; then
20429 cat >>confdefs.h <<_ACEOF
20430 #define HAVE_LIBINET 1
20433 LIBS="-linet $LIBS"
20441 # -----------------------------------------------------------
20442 # Check whether user wants TCP wrappers support (default off)
20443 # -----------------------------------------------------------
20447 # Check whether --with-tcp-wrappers was given.
20448 if test "${with_tcp_wrappers+set}" = set; then
20449 withval=$with_tcp_wrappers;
20450 if test "x$withval" != "xno" ; then
20452 LIBS="$saved_LIBS -lwrap"
20453 { echo "$as_me:$LINENO: checking for libwrap" >&5
20454 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
20455 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
20456 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
20457 if test "${ac_cv_search_nanosleep+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 ac_func_search_save_LIBS=$LIBS
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20478 return nanosleep ();
20483 for ac_lib in '' rt; do
20484 if test -z "$ac_lib"; then
20485 ac_res="none required"
20488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_link") 2>conftest.er1
20499 grep -v '^ *+' conftest.er1 >conftest.err
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest$ac_exeext &&
20507 $as_test_x conftest$ac_exeext; then
20508 ac_cv_search_nanosleep=$ac_res
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20518 if test "${ac_cv_search_nanosleep+set}" = set; then
20522 if test "${ac_cv_search_nanosleep+set}" = set; then
20525 ac_cv_search_nanosleep=no
20527 rm conftest.$ac_ext
20528 LIBS=$ac_func_search_save_LIBS
20530 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
20531 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
20532 ac_res=$ac_cv_search_nanosleep
20533 if test "$ac_res" != no; then
20534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20538 cat >conftest.$ac_ext <<_ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544 #include <sys/types.h>
20546 int deny_severity = 0;
20547 int allow_severity = 0;
20548 struct request_info *req;
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (ac_try="$ac_link"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_link") 2>conftest.er1
20566 grep -v '^ *+' conftest.er1 >conftest.err
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest$ac_exeext &&
20574 $as_test_x conftest$ac_exeext; then
20576 { echo "$as_me:$LINENO: result: yes" >&5
20577 echo "${ECHO_T}yes" >&6; }
20579 cat >>confdefs.h <<\_ACEOF
20580 #define HAVE_LIBWRAP 1
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20592 LIBS="$saved_LIBS -lwrap -lnsl"
20593 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
20594 cat >conftest.$ac_ext <<_ACEOF
20597 cat confdefs.h >>conftest.$ac_ext
20598 cat >>conftest.$ac_ext <<_ACEOF
20599 /* end confdefs.h. */
20600 #include <sys/types.h>
20602 int deny_severity = 0;
20603 int allow_severity = 0;
20604 struct request_info *req;
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_link") 2>conftest.er1
20622 grep -v '^ *+' conftest.er1 >conftest.err
20624 cat conftest.err >&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } && {
20627 test -z "$ac_c_werror_flag" ||
20628 test ! -s conftest.err
20629 } && test -s conftest$ac_exeext &&
20630 $as_test_x conftest$ac_exeext; then
20632 { echo "$as_me:$LINENO: result: yes" >&5
20633 echo "${ECHO_T}yes" >&6; }
20635 cat >>confdefs.h <<\_ACEOF
20636 #define HAVE_LIBWRAP 1
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
20648 echo "$as_me: error: *** libwrap missing" >&2;}
20649 { (exit 1); exit 1; }; }
20653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20654 conftest$ac_exeext conftest.$ac_ext
20658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20659 conftest$ac_exeext conftest.$ac_ext
20666 # -----------------------------------------------------------
20667 # Check whether OpenSSL is available
20668 # -----------------------------------------------------------
20669 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
20670 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
20672 # Check whether --with-openssl was given.
20673 if test "${with_openssl+set}" = set; then
20674 withval=$with_openssl; with_openssl_directory=${withval}
20678 if test "x$with_openssl_directory" != "x"; then
20679 OPENSSL_LIBS="-lssl -lcrypto"
20682 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
20683 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
20684 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
20687 saved_LIBS="${LIBS}"
20688 saved_CFLAGS="${CFLAGS}"
20689 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
20690 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
20692 cat >conftest.$ac_ext <<_ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20698 #include <openssl/ssl.h>
20702 CRYPTO_set_id_callback(NULL);
20707 rm -f conftest.$ac_objext conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_link") 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } && {
20721 test -z "$ac_c_werror_flag" ||
20722 test ! -s conftest.err
20723 } && test -s conftest$ac_exeext &&
20724 $as_test_x conftest$ac_exeext; then
20727 support_crypto="yes"
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20738 conftest$ac_exeext conftest.$ac_ext
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 #include <openssl/evp.h>
20755 rm -f conftest.$ac_objext conftest$ac_exeext
20756 if { (ac_try="$ac_link"
20757 case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_link") 2>conftest.er1
20764 grep -v '^ *+' conftest.er1 >conftest.err
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } && {
20769 test -z "$ac_c_werror_flag" ||
20770 test ! -s conftest.err
20771 } && test -s conftest$ac_exeext &&
20772 $as_test_x conftest$ac_exeext; then
20773 ac_cv_openssl_sha2="yes"
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20778 ac_cv_openssl_sha2="no"
20782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20783 conftest$ac_exeext conftest.$ac_ext
20785 # Solaris disables greater than 128+ bit encryption in their OpenSSL
20786 # implementation, presumably for export reasons. If 192bit AES
20787 # is available, we assume that we're running with a 'non-export'
20789 cat >conftest.$ac_ext <<_ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20795 #include <openssl/evp.h>
20804 rm -f conftest.$ac_objext conftest$ac_exeext
20805 if { (ac_try="$ac_link"
20806 case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_link") 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } && {
20818 test -z "$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 } && test -s conftest$ac_exeext &&
20821 $as_test_x conftest$ac_exeext; then
20822 ac_cv_openssl_export="no"
20824 echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20827 ac_cv_openssl_export="yes"
20831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20832 conftest$ac_exeext conftest.$ac_ext
20834 LIBS="${saved_LIBS}"
20835 CFLAGS="${saved_CFLAGS}"
20837 if test "$support_tls" = "yes"; then
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_OPENSSL 1
20844 cat >>confdefs.h <<\_ACEOF
20849 cat >>confdefs.h <<\_ACEOF
20850 #define HAVE_CRYPTO 1
20855 if test "$ac_cv_openssl_sha2" = "yes"; then
20857 cat >>confdefs.h <<\_ACEOF
20858 #define HAVE_SHA2 1
20863 if test "$ac_cv_openssl_export" = "yes"; then
20865 cat >>confdefs.h <<\_ACEOF
20866 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
20872 support_crypto="no"
20877 { echo "$as_me:$LINENO: result: $support_tls" >&5
20878 echo "${ECHO_T}$support_tls" >&6; }
20883 # -----------------------------------------------------------
20884 # dlopen is needed for plugins
20885 # -----------------------------------------------------------
20886 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
20887 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
20888 if test "${ac_cv_search_dlopen+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 ac_func_search_save_LIBS=$LIBS
20892 cat >conftest.$ac_ext <<_ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20899 /* Override any GCC internal prototype to avoid an error.
20900 Use char because int might match the return type of a GCC
20901 builtin and then its argument prototype would still apply. */
20914 for ac_lib in '' dl; do
20915 if test -z "$ac_lib"; then
20916 ac_res="none required"
20919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20921 rm -f conftest.$ac_objext conftest$ac_exeext
20922 if { (ac_try="$ac_link"
20923 case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_link") 2>conftest.er1
20930 grep -v '^ *+' conftest.er1 >conftest.err
20932 cat conftest.err >&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } && {
20935 test -z "$ac_c_werror_flag" ||
20936 test ! -s conftest.err
20937 } && test -s conftest$ac_exeext &&
20938 $as_test_x conftest$ac_exeext; then
20939 ac_cv_search_dlopen=$ac_res
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20949 if test "${ac_cv_search_dlopen+set}" = set; then
20953 if test "${ac_cv_search_dlopen+set}" = set; then
20956 ac_cv_search_dlopen=no
20958 rm conftest.$ac_ext
20959 LIBS=$ac_func_search_save_LIBS
20961 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
20962 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
20963 ac_res=$ac_cv_search_dlopen
20964 if test "$ac_res" != no; then
20965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20970 # ------------------------------------------
20971 # Where to place working dir
20972 # ------------------------------------------
20973 working_dir=`eval echo ${prefix}/var/bacula/working`
20975 # Check whether --with-working-dir was given.
20976 if test "${with_working_dir+set}" = set; then
20977 withval=$with_working_dir;
20978 if test "x$withval" != "xno" ; then
20979 working_dir=$withval
20988 # ------------------------------------------------------------------
20989 # If the user has not set archivedir, we set our default as /tmp
20990 # ------------------------------------------------------------------
20993 # Check whether --with-archivedir was given.
20994 if test "${with_archivedir+set}" = set; then
20995 withval=$with_archivedir;
20996 if test "x$withval" != "xno" ; then
20997 archivedir=$withval
21008 # ------------------------------------------
21009 # Where to place scriptdir (script files)
21010 # ------------------------------------------
21011 scriptdir=`eval echo ${sysconfdir}`
21013 # Check whether --with-scriptdir was given.
21014 if test "${with_scriptdir+set}" = set; then
21015 withval=$with_scriptdir;
21016 if test "x$withval" != "xno" ; then
21027 # ------------------------------------------
21028 # Where to send dump email
21029 # ------------------------------------------
21030 dump_email=root@localhost
21032 # Check whether --with-dump-email was given.
21033 if test "${with_dump_email+set}" = set; then
21034 withval=$with_dump_email;
21035 if test "x$withval" != "xno" ; then
21036 dump_email=$withval
21045 # ------------------------------------------
21046 # Where to send job email
21047 # ------------------------------------------
21048 job_email=root@localhost
21050 # Check whether --with-job-email was given.
21051 if test "${with_job_email+set}" = set; then
21052 withval=$with_job_email;
21053 if test "x$withval" != "xno" ; then
21063 # ------------------------------------------
21064 # Where to find smtp host
21065 # ------------------------------------------
21066 smtp_host=localhost
21068 # Check whether --with-smtp_host was given.
21069 if test "${with_smtp_host+set}" = set; then
21070 withval=$with_smtp_host;
21071 if test "x$withval" != "xno" ; then
21082 # ------------------------------------
21083 # Where to place pid files
21084 # ------------------------------------
21087 # Check whether --with-pid-dir was given.
21088 if test "${with_pid_dir+set}" = set; then
21089 withval=$with_pid_dir;
21090 if test "x$withval" != "xno" ; then
21098 cat >>confdefs.h <<_ACEOF
21099 #define _PATH_BACULA_PIDDIR "$piddir"
21105 # ------------------------------------
21106 # Where to place subsys "lock file"
21107 # ------------------------------------
21108 subsysdir=/var/run/subsys
21109 if test -d /var/run/subsys; then
21110 subsysdir=/var/run/subsys
21111 elif test -d /var/lock/subsys; then
21112 subsysdir=/var/lock/subsys
21114 subsysdir=/var/run/subsys
21117 # Check whether --with-subsys-dir was given.
21118 if test "${with_subsys_dir+set}" = set; then
21119 withval=$with_subsys_dir;
21120 if test "x$withval" != "xno" ; then
21132 # ------------------------------------
21133 # Where to start assigning ports
21134 # ------------------------------------
21137 # Check whether --with-baseport was given.
21138 if test "${with_baseport+set}" = set; then
21139 withval=$with_baseport;
21140 if test "x$withval" != "xno" ; then
21149 dir_port=`expr $baseport`
21150 fd_port=`expr $baseport + 1`
21151 sd_port=`expr $fd_port + 1`
21158 # ------------------------------------------
21159 # Generate passwords
21160 # ------------------------------------------
21163 # Check whether --with-dir-password was given.
21164 if test "${with_dir_password+set}" = set; then
21165 withval=$with_dir_password;
21166 if test "x$withval" != "xno" ; then
21167 dir_password=$withval
21174 if test "x$dir_password" = "x" ; then
21175 if test "x$OPENSSL" = "xnone" ; then
21176 key=`autoconf/randpass 33`
21178 key=`openssl rand -base64 33`
21185 # Check whether --with-fd-password was given.
21186 if test "${with_fd_password+set}" = set; then
21187 withval=$with_fd_password;
21188 if test "x$withval" != "xno" ; then
21189 fd_password=$withval
21196 if test "x$fd_password" = "x" ; then
21197 if test "x$OPENSSL" = "xnone" ; then
21198 key=`autoconf/randpass 37`
21200 key=`openssl rand -base64 33`
21207 # Check whether --with-sd-password was given.
21208 if test "${with_sd_password+set}" = set; then
21209 withval=$with_sd_password;
21210 if test "x$withval" != "xno" ; then
21211 sd_password=$withval
21218 if test "x$sd_password" = "x" ; then
21219 if test "x$OPENSSL" = "xnone" ; then
21220 key=`autoconf/randpass 41`
21222 key=`openssl rand -base64 33`
21229 # Check whether --with-mon-dir-password was given.
21230 if test "${with_mon_dir_password+set}" = set; then
21231 withval=$with_mon_dir_password;
21232 if test "x$withval" != "xno" ; then
21233 mon_dir_password=$withval
21240 if test "x$mon_dir_password" = "x" ; then
21241 if test "x$OPENSSL" = "xnone" ; then
21242 key=`autoconf/randpass 33`
21244 key=`openssl rand -base64 33`
21246 mon_dir_password=$key
21251 # Check whether --with-mon-fd-password was given.
21252 if test "${with_mon_fd_password+set}" = set; then
21253 withval=$with_mon_fd_password;
21254 if test "x$withval" != "xno" ; then
21255 mon_fd_password=$withval
21262 if test "x$mon_fd_password" = "x" ; then
21263 if test "x$OPENSSL" = "xnone" ; then
21264 key=`autoconf/randpass 37`
21266 key=`openssl rand -base64 33`
21268 mon_fd_password=$key
21273 # Check whether --with-mon-sd-password was given.
21274 if test "${with_mon_sd_password+set}" = set; then
21275 withval=$with_mon_sd_password;
21276 if test "x$withval" != "xno" ; then
21277 mon_sd_password=$withval
21284 if test "x$mon_sd_password" = "x" ; then
21285 if test "x$OPENSSL" = "xnone" ; then
21286 key=`autoconf/randpass 41`
21288 key=`openssl rand -base64 33`
21290 mon_sd_password=$key
21301 # Pickup any database name
21305 # Check whether --with-db_name was given.
21306 if test "${with_db_name+set}" = set; then
21307 withval=$with_db_name;
21308 if test "x$withval" != "x" ; then
21319 # Check whether --with-db_user was given.
21320 if test "${with_db_user+set}" = set; then
21321 withval=$with_db_user;
21322 if test "x$withval" != "x" ; then
21333 # Check whether --with-db_password was given.
21334 if test "${with_db_password+set}" = set; then
21335 withval=$with_db_password;
21336 if test "x$withval" != "x" ; then
21337 db_password=$withval
21346 # Pickup a database port
21350 # Check whether --with-db_port was given.
21351 if test "${with_db_port+set}" = set; then
21352 withval=$with_db_port;
21353 if test "x$withval" != "x" ; then
21363 # Handle users and groups for each daemon
21367 # Check whether --with-dir_user was given.
21368 if test "${with_dir_user+set}" = set; then
21369 withval=$with_dir_user;
21370 if test "x$withval" != "x" ; then
21380 # Check whether --with-dir_group was given.
21381 if test "${with_dir_group+set}" = set; then
21382 withval=$with_dir_group;
21383 if test "x$withval" != "x" ; then
21393 # Check whether --with-sd_user was given.
21394 if test "${with_sd_user+set}" = set; then
21395 withval=$with_sd_user;
21396 if test "x$withval" != "x" ; then
21406 # Check whether --with-sd_group was given.
21407 if test "${with_sd_group+set}" = set; then
21408 withval=$with_sd_group;
21409 if test "x$withval" != "x" ; then
21419 # Check whether --with-fd_user was given.
21420 if test "${with_fd_user+set}" = set; then
21421 withval=$with_fd_user;
21422 if test "x$withval" != "x" ; then
21432 # Check whether --with-fd_group was given.
21433 if test "${with_fd_group+set}" = set; then
21434 withval=$with_fd_group;
21435 if test "x$withval" != "x" ; then
21451 # allow setting default executable permissions
21455 # Check whether --with-sbin-perm was given.
21456 if test "${with_sbin_perm+set}" = set; then
21457 withval=$with_sbin_perm;
21458 if test "x$withval" != "x" ; then
21468 # ------------------------------------------------
21469 # Bacula check for various SQL database engines
21470 # ------------------------------------------------
21474 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
21475 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
21477 # Check whether --with-postgresql was given.
21478 if test "${with_postgresql+set}" = set; then
21479 withval=$with_postgresql;
21480 if test "$withval" != "no"; then
21481 if test "$db_found" = "yes"; then
21482 { echo "$as_me:$LINENO: result: error" >&5
21483 echo "${ECHO_T}error" >&6; }
21484 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
21485 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
21486 { (exit 1); exit 1; }; };
21488 if test "$withval" = "yes"; then
21489 PG_CONFIG=`which pg_config`
21490 if test -n "$PG_CONFIG";then
21491 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
21492 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
21493 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
21494 elif test -f /usr/local/include/libpq-fe.h; then
21495 POSTGRESQL_INCDIR=/usr/local/include
21496 if test -d /usr/local/lib64; then
21497 POSTGRESQL_LIBDIR=/usr/local/lib64
21499 POSTGRESQL_LIBDIR=/usr/local/lib
21501 POSTGRESQL_BINDIR=/usr/local/bin
21502 elif test -f /usr/include/libpq-fe.h; then
21503 POSTGRESQL_INCDIR=/usr/include
21504 if test -d /usr/lib64; then
21505 POSTGRESQL_LIBDIR=/usr/lib64
21507 POSTGRESQL_LIBDIR=/usr/lib
21509 POSTGRESQL_BINDIR=/usr/bin
21510 elif test -f /usr/include/pgsql/libpq-fe.h; then
21511 POSTGRESQL_INCDIR=/usr/include/pgsql
21512 if test -d /usr/lib64/pgsql; then
21513 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
21515 POSTGRESQL_LIBDIR=/usr/lib/pgsql
21517 POSTGRESQL_BINDIR=/usr/bin
21518 elif test -f /usr/include/postgresql/libpq-fe.h; then
21519 POSTGRESQL_INCDIR=/usr/include/postgresql
21520 if test -d /usr/lib64/postgresql; then
21521 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
21523 POSTGRESQL_LIBDIR=/usr/lib/postgresql
21525 POSTGRESQL_BINDIR=/usr/bin
21527 { echo "$as_me:$LINENO: result: no" >&5
21528 echo "${ECHO_T}no" >&6; }
21529 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
21530 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
21531 { (exit 1); exit 1; }; }
21533 elif test -f $withval/include/libpq-fe.h; then
21534 POSTGRESQL_INCDIR=$withval/include
21535 POSTGRESQL_LIBDIR=$withval/lib
21536 POSTGRESQL_BINDIR=$withval/bin
21537 elif test -f $withval/include/postgresql/libpq-fe.h; then
21538 POSTGRESQL_INCDIR=$withval/include/postgresql
21539 if test -d $withval/lib64; then
21540 POSTGRESQL_LIBDIR=$withval/lib64
21542 POSTGRESQL_LIBDIR=$withval/lib
21544 POSTGRESQL_BINDIR=$withval/bin
21546 { echo "$as_me:$LINENO: result: no" >&5
21547 echo "${ECHO_T}no" >&6; }
21548 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
21549 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
21550 { (exit 1); exit 1; }; }
21552 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
21553 { echo "$as_me:$LINENO: checking for crypt" >&5
21554 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
21555 if test "${ac_cv_func_crypt+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
21565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21566 #define crypt innocuous_crypt
21568 /* System header to define __stub macros and hopefully few prototypes,
21569 which can conflict with char crypt (); below.
21570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21571 <limits.h> exists even on freestanding compilers. */
21574 # include <limits.h>
21576 # include <assert.h>
21581 /* Override any GCC internal prototype to avoid an error.
21582 Use char because int might match the return type of a GCC
21583 builtin and then its argument prototype would still apply. */
21588 /* The GNU C library defines this for functions which it implements
21589 to always fail with ENOSYS. Some functions are actually named
21590 something starting with __ and the normal name is an alias. */
21591 #if defined __stub_crypt || defined __stub___crypt
21603 rm -f conftest.$ac_objext conftest$ac_exeext
21604 if { (ac_try="$ac_link"
21605 case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610 (eval "$ac_link") 2>conftest.er1
21612 grep -v '^ *+' conftest.er1 >conftest.err
21614 cat conftest.err >&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } && {
21617 test -z "$ac_c_werror_flag" ||
21618 test ! -s conftest.err
21619 } && test -s conftest$ac_exeext &&
21620 $as_test_x conftest$ac_exeext; then
21621 ac_cv_func_crypt=yes
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ac_cv_func_crypt=no
21629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21630 conftest$ac_exeext conftest.$ac_ext
21632 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
21633 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
21634 if test $ac_cv_func_crypt = yes; then
21637 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21638 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21639 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21640 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 ac_check_lib_save_LIBS=$LIBS
21643 LIBS="-lcrypt $LIBS"
21644 cat >conftest.$ac_ext <<_ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21651 /* Override any GCC internal prototype to avoid an error.
21652 Use char because int might match the return type of a GCC
21653 builtin and then its argument prototype would still apply. */
21666 rm -f conftest.$ac_objext conftest$ac_exeext
21667 if { (ac_try="$ac_link"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_link") 2>conftest.er1
21675 grep -v '^ *+' conftest.er1 >conftest.err
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } && {
21680 test -z "$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21682 } && test -s conftest$ac_exeext &&
21683 $as_test_x conftest$ac_exeext; then
21684 ac_cv_lib_crypt_crypt=yes
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21689 ac_cv_lib_crypt_crypt=no
21692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21693 conftest$ac_exeext conftest.$ac_ext
21694 LIBS=$ac_check_lib_save_LIBS
21696 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21697 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21698 if test $ac_cv_lib_crypt_crypt = yes; then
21699 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
21704 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
21705 SQL_LFLAGS=$POSTGRESQL_LFLAGS
21706 SQL_BINDIR=$POSTGRESQL_BINDIR
21707 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
21709 cat >>confdefs.h <<\_ACEOF
21710 #define HAVE_POSTGRESQL 1
21713 { echo "$as_me:$LINENO: result: yes" >&5
21714 echo "${ECHO_T}yes" >&6; }
21716 support_postgresql=yes
21720 { echo "$as_me:$LINENO: result: no" >&5
21721 echo "${ECHO_T}no" >&6; }
21726 { echo "$as_me:$LINENO: result: no" >&5
21727 echo "${ECHO_T}no" >&6; }
21739 { echo "$as_me:$LINENO: checking for MySQL support" >&5
21740 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
21742 # Check whether --with-mysql was given.
21743 if test "${with_mysql+set}" = set; then
21744 withval=$with_mysql;
21745 if test "$withval" != "no"; then
21746 if test "$withval" = "yes"; then
21747 if test -f /usr/local/mysql/include/mysql/mysql.h; then
21748 MYSQL_INCDIR=/usr/local/mysql/include/mysql
21749 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
21750 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
21751 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
21753 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
21755 MYSQL_BINDIR=/usr/local/mysql/bin
21756 elif test -f /usr/include/mysql/mysql.h; then
21757 MYSQL_INCDIR=/usr/include/mysql
21758 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
21759 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
21760 MYSQL_LIBDIR=/usr/lib64/mysql
21761 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
21762 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
21763 MYSQL_LIBDIR=/usr/lib/mysql
21765 MYSQL_LIBDIR=/usr/lib
21767 MYSQL_BINDIR=/usr/bin
21768 elif test -f /usr/include/mysql.h; then
21769 MYSQL_INCDIR=/usr/include
21770 if test -f /usr/lib64/libmysqlclient_r.a \
21771 -o -f /usr/lib64/libmysqlclient_r.so; then
21772 MYSQL_LIBDIR=/usr/lib64
21774 MYSQL_LIBDIR=/usr/lib
21776 MYSQL_BINDIR=/usr/bin
21777 elif test -f /usr/local/include/mysql/mysql.h; then
21778 MYSQL_INCDIR=/usr/local/include/mysql
21779 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
21780 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
21781 MYSQL_LIBDIR=/usr/local/lib64/mysql
21783 MYSQL_LIBDIR=/usr/local/lib/mysql
21785 MYSQL_BINDIR=/usr/local/bin
21786 elif test -f /usr/local/include/mysql.h; then
21787 MYSQL_INCDIR=/usr/local/include
21788 if test -f /usr/local/lib64/libmysqlclient_r.a \
21789 -o -f /usr/local/lib64/libmysqlclient_r.so; then
21790 MYSQL_LIBDIR=/usr/local/lib64
21792 MYSQL_LIBDIR=/usr/local/lib
21794 MYSQL_BINDIR=/usr/local/bin
21796 { echo "$as_me:$LINENO: result: no" >&5
21797 echo "${ECHO_T}no" >&6; }
21798 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
21799 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
21800 { (exit 1); exit 1; }; }
21803 if test -f $withval/include/mysql/mysql.h; then
21804 MYSQL_INCDIR=$withval/include/mysql
21805 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
21806 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
21807 MYSQL_LIBDIR=$withval/lib64/mysql
21809 MYSQL_LIBDIR=$withval/lib/mysql
21811 if test -f $withval/lib/libmysqlclient_r.so; then
21812 MYSQL_LIBDIR=$withval/lib
21815 MYSQL_BINDIR=$withval/bin
21816 elif test -f $withval/include/mysql.h; then
21817 MYSQL_INCDIR=$withval/include
21818 if test -f $withval/lib64/libmysqlclient_r.a \
21819 -o -f $withval/lib64/libmysqlclient_r.so; then
21820 MYSQL_LIBDIR=$withval/lib64
21822 MYSQL_LIBDIR=$withval/lib
21824 MYSQL_BINDIR=$withval/bin
21826 { echo "$as_me:$LINENO: result: no" >&5
21827 echo "${ECHO_T}no" >&6; }
21828 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
21829 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
21830 { (exit 1); exit 1; }; }
21833 SQL_INCLUDE=-I$MYSQL_INCDIR
21834 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
21835 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
21836 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
21837 cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_THREAD_SAFE_MYSQL 1
21842 SQL_BINDIR=$MYSQL_BINDIR
21843 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_MYSQL 1
21849 { echo "$as_me:$LINENO: result: yes" >&5
21850 echo "${ECHO_T}yes" >&6; }
21857 { echo "$as_me:$LINENO: result: no" >&5
21858 echo "${ECHO_T}no" >&6; }
21866 # Check whether --with-embedded-mysql was given.
21867 if test "${with_embedded_mysql+set}" = set; then
21868 withval=$with_embedded_mysql;
21869 if test "$withval" != "no"; then
21870 if test "$withval" = "yes"; then
21871 if test -f /usr/local/mysql/include/mysql/mysql.h; then
21872 MYSQL_INCDIR=/usr/local/mysql/include/mysql
21873 if test -d /usr/local/mysql/lib64/mysql; then
21874 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
21876 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
21878 MYSQL_BINDIR=/usr/local/mysql/bin
21879 elif test -f /usr/include/mysql/mysql.h; then
21880 MYSQL_INCDIR=/usr/include/mysql
21881 if test -d /usr/lib64/mysql; then
21882 MYSQL_LIBDIR=/usr/lib64/mysql
21884 MYSQL_LIBDIR=/usr/lib/mysql
21886 MYSQL_BINDIR=/usr/bin
21887 elif test -f /usr/include/mysql.h; then
21888 MYSQL_INCDIR=/usr/include
21889 if test -d /usr/lib64; then
21890 MYSQL_LIBDIR=/usr/lib64
21892 MYSQL_LIBDIR=/usr/lib
21894 MYSQL_BINDIR=/usr/bin
21895 elif test -f /usr/local/include/mysql/mysql.h; then
21896 MYSQL_INCDIR=/usr/local/include/mysql
21897 if test -d /usr/local/lib64/mysql; then
21898 MYSQL_LIBDIR=/usr/local/lib64/mysql
21900 MYSQL_LIBDIR=/usr/local/lib/mysql
21902 MYSQL_BINDIR=/usr/local/bin
21903 elif test -f /usr/local/include/mysql.h; then
21904 MYSQL_INCDIR=/usr/local/include
21905 if test -d /usr/local/lib64; then
21906 MYSQL_LIBDIR=/usr/local/lib64
21908 MYSQL_LIBDIR=/usr/local/lib
21910 MYSQL_BINDIR=/usr/local/bin
21912 { echo "$as_me:$LINENO: result: no" >&5
21913 echo "${ECHO_T}no" >&6; }
21914 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
21915 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
21916 { (exit 1); exit 1; }; }
21919 if test -f $withval/include/mysql/mysql.h; then
21920 MYSQL_INCDIR=$withval/include/mysql
21921 if test -d $withval/lib64/mysql; then
21922 MYSQL_LIBDIR=$withval/lib64/mysql
21924 MYSQL_LIBDIR=$withval/lib/mysql
21926 MYSQL_BINDIR=$withval/bin
21927 elif test -f $withval/include/mysql.h; then
21928 MYSQL_INCDIR=$withval/include
21929 if test -d $withval/lib64; then
21930 MYSQL_LIBDIR=$withval/lib64
21932 MYSQL_LIBDIR=$withval/lib
21934 MYSQL_BINDIR=$withval/bin
21936 { echo "$as_me:$LINENO: result: no" >&5
21937 echo "${ECHO_T}no" >&6; }
21938 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
21939 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
21940 { (exit 1); exit 1; }; }
21943 SQL_INCLUDE=-I$MYSQL_INCDIR
21944 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
21945 SQL_BINDIR=$MYSQL_BINDIR
21946 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
21948 cat >>confdefs.h <<\_ACEOF
21949 #define HAVE_MYSQL 1
21952 cat >>confdefs.h <<\_ACEOF
21953 #define HAVE_EMBEDDED_MYSQL 1
21956 { echo "$as_me:$LINENO: result: yes" >&5
21957 echo "${ECHO_T}yes" >&6; }
21964 { echo "$as_me:$LINENO: result: no" >&5
21965 echo "${ECHO_T}no" >&6; }
21981 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
21982 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
21984 # Check whether --with-sqlite3 was given.
21985 if test "${with_sqlite3+set}" = set; then
21986 withval=$with_sqlite3;
21987 if test "$withval" != "no"; then
21988 if test "$withval" = "yes"; then
21989 if test -f /usr/local/include/sqlite3.h; then
21990 SQLITE_INCDIR=/usr/local/include
21991 if test -d /usr/local/lib64; then
21992 SQLITE_LIBDIR=/usr/local/lib64
21994 SQLITE_LIBDIR=/usr/local/lib
21996 SQLITE_BINDIR=/usr/local/bin
21997 elif test -f /usr/include/sqlite3.h; then
21998 SQLITE_INCDIR=/usr/include
21999 if test -d /usr/lib64; then
22000 SQLITE_LIBDIR=/usr/lib64
22002 SQLITE_LIBDIR=/usr/lib
22004 SQLITE_BINDIR=/usr/bin
22005 elif test -f $prefix/include/sqlite3.h; then
22006 SQLITE_INCDIR=$prefix/include
22007 if test -d $prefix/lib64; then
22008 SQLITE_LIBDIR=$prefix/lib64
22010 SQLITE_LIBDIR=$prefix/lib
22012 SQLITE_BINDIR=$prefix/bin
22014 { echo "$as_me:$LINENO: result: no" >&5
22015 echo "${ECHO_T}no" >&6; }
22016 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
22017 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
22018 { (exit 1); exit 1; }; }
22021 if test -f $withval/sqlite3.h; then
22022 SQLITE_INCDIR=$withval
22023 SQLITE_LIBDIR=$withval
22024 SQLITE_BINDIR=$withval
22025 elif test -f $withval/include/sqlite3.h; then
22026 SQLITE_INCDIR=$withval/include
22027 if test -d $withval/lib64; then
22028 SQLITE_LIBDIR=$withval/lib64
22030 SQLITE_LIBDIR=$withval/lib
22032 SQLITE_BINDIR=$withval/bin
22034 { echo "$as_me:$LINENO: result: no" >&5
22035 echo "${ECHO_T}no" >&6; }
22036 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
22037 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
22038 { (exit 1); exit 1; }; }
22041 SQL_INCLUDE=-I$SQLITE_INCDIR
22042 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
22043 SQL_BINDIR=$SQLITE_BINDIR
22044 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
22046 cat >>confdefs.h <<\_ACEOF
22047 #define HAVE_SQLITE3 1
22050 { echo "$as_me:$LINENO: result: yes" >&5
22051 echo "${ECHO_T}yes" >&6; }
22053 support_sqlite3=yes
22058 { echo "$as_me:$LINENO: result: no" >&5
22059 echo "${ECHO_T}no" >&6; }
22064 { echo "$as_me:$LINENO: result: no" >&5
22065 echo "${ECHO_T}no" >&6; }
22077 { echo "$as_me:$LINENO: checking for SQLite support" >&5
22078 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
22080 # Check whether --with-sqlite was given.
22081 if test "${with_sqlite+set}" = set; then
22082 withval=$with_sqlite;
22083 if test "$withval" != "no"; then
22084 if test "$withval" = "yes"; then
22085 if test -f /usr/local/include/sqlite.h; then
22086 SQLITE_INCDIR=/usr/local/include
22087 if test -d /usr/local/lib64; then
22088 SQLITE_LIBDIR=/usr/local/lib64
22090 SQLITE_LIBDIR=/usr/local/lib
22092 SQLITE_BINDIR=/usr/local/bin
22093 elif test -f /usr/include/sqlite.h; then
22094 SQLITE_INCDIR=/usr/include
22095 if test -d /usr/lib64; then
22096 SQLITE_LIBDIR=/usr/lib64
22098 SQLITE_LIBDIR=/usr/lib
22100 SQLITE_BINDIR=/usr/bin
22101 elif test -f $prefix/include/sqlite.h; then
22102 SQLITE_INCDIR=$prefix/include
22103 if test -d $prefix/lib64; then
22104 SQLITE_LIBDIR=$prefix/lib64
22106 SQLITE_LIBDIR=$prefix/lib
22108 SQLITE_BINDIR=$prefix/bin
22110 { echo "$as_me:$LINENO: result: no" >&5
22111 echo "${ECHO_T}no" >&6; }
22112 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
22113 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
22114 { (exit 1); exit 1; }; }
22117 if test -f $withval/sqlite.h; then
22118 SQLITE_INCDIR=$withval
22119 SQLITE_LIBDIR=$withval
22120 SQLITE_BINDIR=$withval
22121 elif test -f $withval/include/sqlite.h; then
22122 SQLITE_INCDIR=$withval/include
22123 if test -d $withval/lib64; then
22124 SQLITE_LIBDIR=$withval/lib64
22126 SQLITE_LIBDIR=$withval/lib
22128 SQLITE_BINDIR=$withval/bin
22130 { echo "$as_me:$LINENO: result: no" >&5
22131 echo "${ECHO_T}no" >&6; }
22132 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
22133 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
22134 { (exit 1); exit 1; }; }
22137 SQL_INCLUDE=-I$SQLITE_INCDIR
22138 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
22139 SQL_BINDIR=$SQLITE_BINDIR
22140 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
22142 cat >>confdefs.h <<\_ACEOF
22143 #define HAVE_SQLITE 1
22146 { echo "$as_me:$LINENO: result: yes" >&5
22147 echo "${ECHO_T}yes" >&6; }
22154 { echo "$as_me:$LINENO: result: no" >&5
22155 echo "${ECHO_T}no" >&6; }
22160 { echo "$as_me:$LINENO: result: no" >&5
22161 echo "${ECHO_T}no" >&6; }
22173 { echo "$as_me:$LINENO: checking for DBI support" >&5
22174 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
22176 # Check whether --with-dbi was given.
22177 if test "${with_dbi+set}" = set; then
22179 if test "$withval" != "no"; then
22180 if test "$withval" = "yes"; then
22181 if test -f /usr/local/include/dbi/dbi.h; then
22182 DBI_INCDIR=/usr/local/dbi/include
22183 if test -d /usr/local/lib64; then
22184 DBI_LIBDIR=/usr/local/lib64
22186 DBI_LIBDIR=/usr/local/lib
22188 DBI_BINDIR=/usr/local/bin
22189 elif test -f /usr/include/dbi/dbi.h; then
22190 DBI_INCDIR=/usr/include
22191 if test -d /usr/lib64; then
22192 DBI_LIBDIR=/usr/lib64
22194 DBI_LIBDIR=/usr/lib
22196 DBI_BINDIR=/usr/bin
22197 elif test -f $prefix/include/dbi/dbi.h; then
22198 DBI_INCDIR=$prefix/include
22199 if test -d $prefix/lib64; then
22200 DBI_LIBDIR=$prefix/lib64
22202 DBI_LIBDIR=$prefix/lib
22204 DBI_BINDIR=$prefix/bin
22206 { echo "$as_me:$LINENO: result: no" >&5
22207 echo "${ECHO_T}no" >&6; }
22208 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
22209 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
22210 { (exit 1); exit 1; }; }
22212 if test -d /usr/local/lib/dbd; then
22213 DRIVERDIR=/usr/local/lib/dbd
22214 if test -d /usr/local/lib64/dbd; then
22215 DRIVERDIR=/usr/local/lib64/dbd
22217 DRIVERDIR=/usr/local/lib/dbd
22219 elif test -d /usr/lib/dbd; then
22220 DRIVERDIR=/usr/lib/dbd
22221 if test -d /usr/lib64/dbd; then
22222 DRIVERDIR=/usr/lib64/dbd
22224 DRIVERDIR=/usr/lib/dbd
22226 elif test -d $prefix/lib/dbd; then
22227 if test -d $prefix/lib64/dbd; then
22228 DRIVERDIR=$prefix/lib64/dbd
22230 DRIVERDIR=$prefix/lib/dbd
22233 { echo "$as_me:$LINENO: result: no" >&5
22234 echo "${ECHO_T}no" >&6; }
22235 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
22236 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
22237 { (exit 1); exit 1; }; }
22240 if test -f $withval/dbi.h; then
22241 DBI_INCDIR=$withval
22242 DBI_LIBDIR=$withval
22243 DBI_BINDIR=$withval
22244 elif test -f $withval/include/dbi/dbi.h; then
22245 DBI_INCDIR=$withval/include
22246 if test -d $withval/lib64; then
22247 DBI_LIBDIR=$withval/lib64
22249 DBI_LIBDIR=$withval/lib
22251 DBI_BINDIR=$withval/bin
22253 { echo "$as_me:$LINENO: result: no" >&5
22254 echo "${ECHO_T}no" >&6; }
22255 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
22256 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
22257 { (exit 1); exit 1; }; }
22259 if test -d $withval/dbd; then
22260 DRIVERDIR=$withval/dbd
22261 elif test -d $withval/lib/; then
22262 if test -d $withval/lib64/dbd; then
22263 DRIVERDIR=$withval/lib64/dbd
22265 DRIVERDIR=$withval/lib/dbd
22268 { echo "$as_me:$LINENO: result: no" >&5
22269 echo "${ECHO_T}no" >&6; }
22270 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
22271 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
22272 { (exit 1); exit 1; }; }
22275 SQL_INCLUDE=-I$DBI_INCDIR
22276 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
22277 SQL_BINDIR=$DBI_BINDIR
22278 SQL_LIB=$DBI_LIBDIR/libdbi.a
22279 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
22282 cat >>confdefs.h <<\_ACEOF
22286 { echo "$as_me:$LINENO: result: yes" >&5
22287 echo "${ECHO_T}yes" >&6; }
22295 { echo "$as_me:$LINENO: result: no" >&5
22296 echo "${ECHO_T}no" >&6; }
22301 { echo "$as_me:$LINENO: result: no" >&5
22302 echo "${ECHO_T}no" >&6; }
22317 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
22318 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
22320 # Check whether --with-dbi-driver was given.
22321 if test "${with_dbi_driver+set}" = set; then
22322 withval=$with_dbi_driver;
22323 if test "$withval" != "no"; then
22327 if test -f /usr/local/mysql/bin/mysql; then
22328 SQL_BINDIR=/usr/local/mysql/bin
22329 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22330 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22331 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
22333 SQL_LIBDIR=/usr/local/mysql/lib/mysql
22335 elif test -f /usr/bin/mysql; then
22336 SQL_BINDIR=/usr/bin
22337 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22338 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22339 SQL_LIBDIR=/usr/lib64/mysql
22340 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22341 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22342 SQL_LIBDIR=/usr/lib/mysql
22344 SQL_LIBDIR=/usr/lib
22346 elif test -f /usr/local/bin/mysql; then
22347 SQL_BINDIR=/usr/local/bin
22348 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22349 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22350 SQL_LIBDIR=/usr/local/lib64/mysql
22351 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
22352 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
22353 SQL_LIBDIR=/usr/local/lib/mysql
22355 SQL_LIBDIR=/usr/local/lib
22357 elif test -f $withval/bin/mysql; then
22358 SQL_BINDIR=$withval/bin
22359 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
22360 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
22361 SQL_LIBDIR=$withval/lib64/mysql
22362 elif test -f $withval/lib64/libmysqlclient_r.a \
22363 -o -f $withval/lib64/libmysqlclient_r.so; then
22364 SQL_LIBDIR=$withval/lib64
22365 elif test -f $withval/lib/libmysqlclient_r.a \
22366 -o -f $withval/lib/libmysqlclient_r.so; then
22367 SQL_LIBDIR=$withval/lib/
22369 SQL_LIBDIR=$withval/lib/mysql
22372 { echo "$as_me:$LINENO: result: no" >&5
22373 echo "${ECHO_T}no" >&6; }
22374 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
22375 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
22376 { (exit 1); exit 1; }; }
22378 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
22381 db_prog="postgresql"
22382 PG_CONFIG=`which pg_config`
22383 if test -n "$PG_CONFIG"; then
22384 SQL_BINDIR=`"$PG_CONFIG" --bindir`
22385 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
22386 elif test -f /usr/local/bin/psql; then
22387 SQL_BINDIR=/usr/local/bin
22388 if test -d /usr/local/lib64; then
22389 SQL_LIBDIR=/usr/local/lib64
22391 SQL_LIBDIR=/usr/local/lib
22393 elif test -f /usr/bin/psql; then
22394 SQL_BINDIR=/usr/local/bin
22395 if test -d /usr/lib64/postgresql; then
22396 SQL_LIBDIR=/usr/lib64/postgresql
22397 elif test -d /usr/lib/postgresql; then
22398 SQL_LIBDIR=/usr/lib/postgresql
22399 elif test -d /usr/lib64; then
22400 SQL_LIBDIR=/usr/lib64
22402 SQL_LIBDIR=/usr/lib
22404 elif test -f $withval/bin/psql; then
22405 SQL_BINDIR=$withval/bin
22406 if test -d $withval/lib64; then
22407 SQL_LIBDIR=$withval/lib64
22409 SQL_LIBDIR=$withval/lib
22412 { echo "$as_me:$LINENO: result: no" >&5
22413 echo "${ECHO_T}no" >&6; }
22414 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
22415 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
22416 { (exit 1); exit 1; }; }
22418 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
22421 { echo "$as_me:$LINENO: result: no" >&5
22422 echo "${ECHO_T}no" >&6; }
22423 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
22424 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
22425 { (exit 1); exit 1; }; }
22429 { echo "$as_me:$LINENO: result: yes" >&5
22430 echo "${ECHO_T}yes" >&6; }
22433 { echo "$as_me:$LINENO: result: no" >&5
22434 echo "${ECHO_T}no" >&6; }
22439 { echo "$as_me:$LINENO: result: no" >&5
22440 echo "${ECHO_T}no" >&6; }
22453 # -------------------------------------------
22454 # enable batch attribute DB insert (default on)
22455 # -------------------------------------------
22456 support_batch_insert=no
22457 A=`nm $SQL_LIB | grep pthread_mutex_lock`
22459 if test $pkg = 0; then
22460 support_batch_insert=yes
22461 # Check whether --enable-batch-insert was given.
22462 if test "${enable_batch_insert+set}" = set; then
22463 enableval=$enable_batch_insert; if test x$enableval = xno; then
22464 support_batch_insert=no
22466 support_batch_insert=yes
22472 # Check if postgresql support batch mode
22473 if test x$DB_TYPE = xpostgresql; then
22474 A=`nm $SQL_LIB | grep PQputCopyData`
22476 if test $pkg != 0; then
22477 support_batch_insert=no
22481 if test x$DB_TYPE = xdbi; then
22485 # Check for batch insert
22486 if test $DB_PROG = postgresql; then
22487 A=`nm $DB_PROG_LIB | grep PQputCopyData`
22491 if test $DB_PROG = mysql; then
22492 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
22496 if test $pkg = 0; then
22497 # Check whether --enable-batch-insert was given.
22498 if test "${enable_batch_insert+set}" = set; then
22499 enableval=$enable_batch_insert; if test x$enableval = xno; then
22500 support_batch_insert=no
22502 support_batch_insert=yes
22508 # If dbi was not chosen, let the comment in file
22514 if test $support_batch_insert = yes ; then
22516 cat >>confdefs.h <<\_ACEOF
22517 #define HAVE_BATCH_FILE_INSERT 1
22523 cat >>confdefs.h <<\_ACEOF
22524 #define PROTOTYPES 1
22528 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
22529 if test -z "$CCOPTS"; then
22530 CCOPTS='-g -O2 -Wall'
22538 largefile_support="no"
22540 # Check whether --enable-largefile was given.
22541 if test "${enable_largefile+set}" = set; then
22542 enableval=$enable_largefile;
22545 if test "$enable_largefile" != no; then
22546 if test -n "$ac_tool_prefix"; then
22547 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
22548 set dummy ${ac_tool_prefix}getconf; ac_word=$2
22549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22551 if test "${ac_cv_prog_GETCONF+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22554 if test -n "$GETCONF"; then
22555 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
22557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22558 for as_dir in $PATH
22561 test -z "$as_dir" && as_dir=.
22562 for ac_exec_ext in '' $ac_executable_extensions; do
22563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22564 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
22565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22574 GETCONF=$ac_cv_prog_GETCONF
22575 if test -n "$GETCONF"; then
22576 { echo "$as_me:$LINENO: result: $GETCONF" >&5
22577 echo "${ECHO_T}$GETCONF" >&6; }
22579 { echo "$as_me:$LINENO: result: no" >&5
22580 echo "${ECHO_T}no" >&6; }
22585 if test -z "$ac_cv_prog_GETCONF"; then
22586 ac_ct_GETCONF=$GETCONF
22587 # Extract the first word of "getconf", so it can be a program name with args.
22588 set dummy getconf; ac_word=$2
22589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22591 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 if test -n "$ac_ct_GETCONF"; then
22595 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
22597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22598 for as_dir in $PATH
22601 test -z "$as_dir" && as_dir=.
22602 for ac_exec_ext in '' $ac_executable_extensions; do
22603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22604 ac_cv_prog_ac_ct_GETCONF="getconf"
22605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22614 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
22615 if test -n "$ac_ct_GETCONF"; then
22616 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
22617 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
22619 { echo "$as_me:$LINENO: result: no" >&5
22620 echo "${ECHO_T}no" >&6; }
22623 if test "x$ac_ct_GETCONF" = x; then
22626 case $cross_compiling:$ac_tool_warned in
22628 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22629 whose name does not start with the host triplet. If you think this
22630 configuration is useful to you, please write to autoconf@gnu.org." >&5
22631 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22632 whose name does not start with the host triplet. If you think this
22633 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22634 ac_tool_warned=yes ;;
22636 GETCONF=$ac_ct_GETCONF
22639 GETCONF="$ac_cv_prog_GETCONF"
22642 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
22643 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
22644 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
22648 ac_cv_sys_largefile_CFLAGS=no
22650 # IRIX 6.2 and later require cc -n32.
22651 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
22652 if test "$GCC" != yes; then
22653 ac_cv_sys_largefile_CFLAGS=-n32
22656 CC="$CC $ac_cv_sys_largefile_CFLAGS"
22657 cat >conftest.$ac_ext <<_ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22672 rm -f conftest.$ac_objext conftest$ac_exeext
22673 if { (ac_try="$ac_link"
22674 case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_link") 2>conftest.er1
22681 grep -v '^ *+' conftest.er1 >conftest.err
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest$ac_exeext &&
22689 $as_test_x conftest$ac_exeext; then
22692 echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22695 ac_cv_sys_largefile_CFLAGS=no
22698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22699 conftest$ac_exeext conftest.$ac_ext
22704 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
22705 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
22706 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
22707 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
22708 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
22709 echo $ECHO_N "(cached) $ECHO_C" >&6
22711 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
22712 ac_cv_sys_largefile_LDFLAGS=no
22716 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
22717 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
22718 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
22719 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
22720 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
22721 echo $ECHO_N "(cached) $ECHO_C" >&6
22723 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
22724 ac_cv_sys_largefile_LIBS=no
22728 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
22729 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
22731 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22734 -D_FILE_OFFSET_BITS=*) ;;
22735 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
22736 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
22741 case "$CPPFLAGS" in
22742 '') CPPFLAGS="$ac_flag" ;;
22743 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
22751 '') CFLAGS="$ac_flag" ;;
22752 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
22757 case "$ac_cv_sys_largefile_LDFLAGS" in
22761 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
22762 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
22765 case "$ac_cv_sys_largefile_LIBS" in
22769 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
22770 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
22773 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
22774 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
22775 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22778 ac_cv_sys_file_offset_bits=no
22779 ac_cv_sys_file_offset_bits=64
22780 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22782 -D_FILE_OFFSET_BITS)
22783 ac_cv_sys_file_offset_bits=1 ;;
22784 -D_FILE_OFFSET_BITS=*)
22785 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22790 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22791 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22792 if test "$ac_cv_sys_file_offset_bits" != no; then
22794 cat >>confdefs.h <<_ACEOF
22795 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22799 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
22800 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
22801 if test "${ac_cv_sys_largefile_source+set}" = set; then
22802 echo $ECHO_N "(cached) $ECHO_C" >&6
22804 ac_cv_sys_largefile_source=no
22805 ac_cv_sys_largefile_source=1
22806 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22808 -D_LARGEFILE_SOURCE)
22809 ac_cv_sys_largefile_source=1 ;;
22810 -D_LARGEFILE_SOURCE=*)
22811 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22816 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22817 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22818 if test "$ac_cv_sys_largefile_source" != no; then
22820 cat >>confdefs.h <<_ACEOF
22821 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22825 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
22826 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
22827 if test "${ac_cv_sys_large_files+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 ac_cv_sys_large_files=no
22831 ac_cv_sys_large_files=1
22832 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22835 ac_cv_sys_large_files=1 ;;
22837 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22842 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22843 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22844 if test "$ac_cv_sys_large_files" != no; then
22846 cat >>confdefs.h <<_ACEOF
22847 #define _LARGE_FILES $ac_cv_sys_large_files
22855 { echo "$as_me:$LINENO: checking for X" >&5
22856 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22859 # Check whether --with-x was given.
22860 if test "${with_x+set}" = set; then
22864 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22865 if test "x$with_x" = xno; then
22866 # The user explicitly disabled X.
22869 case $x_includes,$x_libraries in #(
22870 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22871 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22872 { (exit 1); exit 1; }; };; #(
22873 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22874 echo $ECHO_N "(cached) $ECHO_C" >&6
22876 # One or both of the vars are not set, and there is no cached value.
22877 ac_x_includes=no ac_x_libraries=no
22878 rm -f -r conftest.dir
22879 if mkdir conftest.dir; then
22881 cat >Imakefile <<'_ACEOF'
22883 @echo incroot='${INCROOT}'
22885 @echo usrlibdir='${USRLIBDIR}'
22887 @echo libdir='${LIBDIR}'
22889 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22890 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22891 for ac_var in incroot usrlibdir libdir; do
22892 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22894 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22895 for ac_extension in a so sl; do
22896 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22897 test -f "$ac_im_libdir/libX11.$ac_extension"; then
22898 ac_im_usrlibdir=$ac_im_libdir; break
22901 # Screen out bogus values from the imake configuration. They are
22902 # bogus both because they are the default anyway, and because
22903 # using them would break gcc on systems where it needs fixed includes.
22904 case $ac_im_incroot in
22905 /usr/include) ac_x_includes= ;;
22906 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22908 case $ac_im_usrlibdir in
22909 /usr/lib | /lib) ;;
22910 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22914 rm -f -r conftest.dir
22917 # Standard set of common directories for X headers.
22918 # Check X11 before X11Rn because it is often a symlink to the current release.
22930 /usr/local/X11/include
22931 /usr/local/X11R6/include
22932 /usr/local/X11R5/include
22933 /usr/local/X11R4/include
22935 /usr/local/include/X11
22936 /usr/local/include/X11R6
22937 /usr/local/include/X11R5
22938 /usr/local/include/X11R4
22942 /usr/XFree86/include/X11
22946 /usr/unsupported/include
22947 /usr/athena/include
22948 /usr/local/x11r5/include
22949 /usr/lpp/Xamples/include
22951 /usr/openwin/include
22952 /usr/openwin/share/include'
22954 if test "$ac_x_includes" = no; then
22955 # Guess where to find include files, by looking for Xlib.h.
22956 # First, try using that file with no special directory specified.
22957 cat >conftest.$ac_ext <<_ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22963 #include <X11/Xlib.h>
22965 if { (ac_try="$ac_cpp conftest.$ac_ext"
22966 case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } >/dev/null && {
22978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22981 # We can compile using X headers with no special include directory.
22984 echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 for ac_dir in $ac_x_header_dirs; do
22988 if test -r "$ac_dir/X11/Xlib.h"; then
22989 ac_x_includes=$ac_dir
22995 rm -f conftest.err conftest.$ac_ext
22996 fi # $ac_x_includes = no
22998 if test "$ac_x_libraries" = no; then
22999 # Check for the libraries.
23000 # See if we find them without any special options.
23001 # Don't add to $LIBS permanently.
23004 cat >conftest.$ac_ext <<_ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h. */
23010 #include <X11/Xlib.h>
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (ac_try="$ac_link"
23021 case "(($ac_try" in
23022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23023 *) ac_try_echo=$ac_try;;
23025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23026 (eval "$ac_link") 2>conftest.er1
23028 grep -v '^ *+' conftest.er1 >conftest.err
23030 cat conftest.err >&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } && {
23033 test -z "$ac_c_werror_flag" ||
23034 test ! -s conftest.err
23035 } && test -s conftest$ac_exeext &&
23036 $as_test_x conftest$ac_exeext; then
23038 # We can link X programs with no special library path.
23041 echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23045 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23047 # Don't even attempt the hair of trying to link an X program!
23048 for ac_extension in a so sl; do
23049 if test -r "$ac_dir/libX11.$ac_extension"; then
23050 ac_x_libraries=$ac_dir
23057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23058 conftest$ac_exeext conftest.$ac_ext
23059 fi # $ac_x_libraries = no
23061 case $ac_x_includes,$ac_x_libraries in #(
23062 no,* | *,no | *\'*)
23063 # Didn't find X, or a directory has "'" in its name.
23064 ac_cv_have_x="have_x=no";; #(
23066 # Record where we found X for the cache.
23067 ac_cv_have_x="have_x=yes\
23068 ac_x_includes='$ac_x_includes'\
23069 ac_x_libraries='$ac_x_libraries'"
23075 eval "$ac_cv_have_x"
23078 if test "$have_x" != yes; then
23079 { echo "$as_me:$LINENO: result: $have_x" >&5
23080 echo "${ECHO_T}$have_x" >&6; }
23083 # If each of the values was on the command line, it overrides each guess.
23084 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23085 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23086 # Update the cache value to reflect the command line values.
23087 ac_cv_have_x="have_x=yes\
23088 ac_x_includes='$x_includes'\
23089 ac_x_libraries='$x_libraries'"
23090 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23091 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
23094 if test "$no_x" = yes; then
23095 # Not all programs may use this symbol, but it does not hurt to define it.
23097 cat >>confdefs.h <<\_ACEOF
23098 #define X_DISPLAY_MISSING 1
23101 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23103 if test -n "$x_includes"; then
23104 X_CFLAGS="$X_CFLAGS -I$x_includes"
23107 # It would also be nice to do this for all -L options, not just this one.
23108 if test -n "$x_libraries"; then
23109 X_LIBS="$X_LIBS -L$x_libraries"
23110 # For Solaris; some versions of Sun CC require a space after -R and
23111 # others require no space. Words are not sufficient . . . .
23112 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23113 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
23114 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23115 ac_xsave_c_werror_flag=$ac_c_werror_flag
23116 ac_c_werror_flag=yes
23117 cat >conftest.$ac_ext <<_ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23132 rm -f conftest.$ac_objext conftest$ac_exeext
23133 if { (ac_try="$ac_link"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_link") 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } && {
23146 test -z "$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23148 } && test -s conftest$ac_exeext &&
23149 $as_test_x conftest$ac_exeext; then
23150 { echo "$as_me:$LINENO: result: no" >&5
23151 echo "${ECHO_T}no" >&6; }
23152 X_LIBS="$X_LIBS -R$x_libraries"
23154 echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23157 LIBS="$ac_xsave_LIBS -R $x_libraries"
23158 cat >conftest.$ac_ext <<_ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h. */
23173 rm -f conftest.$ac_objext conftest$ac_exeext
23174 if { (ac_try="$ac_link"
23175 case "(($ac_try" in
23176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23177 *) ac_try_echo=$ac_try;;
23179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23180 (eval "$ac_link") 2>conftest.er1
23182 grep -v '^ *+' conftest.er1 >conftest.err
23184 cat conftest.err >&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); } && {
23187 test -z "$ac_c_werror_flag" ||
23188 test ! -s conftest.err
23189 } && test -s conftest$ac_exeext &&
23190 $as_test_x conftest$ac_exeext; then
23191 { echo "$as_me:$LINENO: result: yes" >&5
23192 echo "${ECHO_T}yes" >&6; }
23193 X_LIBS="$X_LIBS -R $x_libraries"
23195 echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23198 { echo "$as_me:$LINENO: result: neither works" >&5
23199 echo "${ECHO_T}neither works" >&6; }
23202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23203 conftest$ac_exeext conftest.$ac_ext
23206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23207 conftest$ac_exeext conftest.$ac_ext
23208 ac_c_werror_flag=$ac_xsave_c_werror_flag
23209 LIBS=$ac_xsave_LIBS
23212 # Check for system-dependent libraries X programs must link with.
23213 # Do this before checking for the system-independent R6 libraries
23214 # (-lICE), since we may need -lsocket or whatever for X linking.
23216 if test "$ISC" = yes; then
23217 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23219 # Martyn Johnson says this is needed for Ultrix, if the X
23220 # libraries were built with DECnet support. And Karl Berry says
23221 # the Alpha needs dnet_stub (dnet does not exist).
23222 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23223 cat >conftest.$ac_ext <<_ACEOF
23226 cat confdefs.h >>conftest.$ac_ext
23227 cat >>conftest.$ac_ext <<_ACEOF
23228 /* end confdefs.h. */
23230 /* Override any GCC internal prototype to avoid an error.
23231 Use char because int might match the return type of a GCC
23232 builtin and then its argument prototype would still apply. */
23236 char XOpenDisplay ();
23240 return XOpenDisplay ();
23245 rm -f conftest.$ac_objext conftest$ac_exeext
23246 if { (ac_try="$ac_link"
23247 case "(($ac_try" in
23248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23249 *) ac_try_echo=$ac_try;;
23251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23252 (eval "$ac_link") 2>conftest.er1
23254 grep -v '^ *+' conftest.er1 >conftest.err
23256 cat conftest.err >&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } && {
23259 test -z "$ac_c_werror_flag" ||
23260 test ! -s conftest.err
23261 } && test -s conftest$ac_exeext &&
23262 $as_test_x conftest$ac_exeext; then
23265 echo "$as_me: failed program was:" >&5
23266 sed 's/^/| /' conftest.$ac_ext >&5
23268 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23269 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23270 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23271 echo $ECHO_N "(cached) $ECHO_C" >&6
23273 ac_check_lib_save_LIBS=$LIBS
23274 LIBS="-ldnet $LIBS"
23275 cat >conftest.$ac_ext <<_ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23282 /* Override any GCC internal prototype to avoid an error.
23283 Use char because int might match the return type of a GCC
23284 builtin and then its argument prototype would still apply. */
23292 return dnet_ntoa ();
23297 rm -f conftest.$ac_objext conftest$ac_exeext
23298 if { (ac_try="$ac_link"
23299 case "(($ac_try" in
23300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301 *) ac_try_echo=$ac_try;;
23303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23304 (eval "$ac_link") 2>conftest.er1
23306 grep -v '^ *+' conftest.er1 >conftest.err
23308 cat conftest.err >&5
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); } && {
23311 test -z "$ac_c_werror_flag" ||
23312 test ! -s conftest.err
23313 } && test -s conftest$ac_exeext &&
23314 $as_test_x conftest$ac_exeext; then
23315 ac_cv_lib_dnet_dnet_ntoa=yes
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23320 ac_cv_lib_dnet_dnet_ntoa=no
23323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23324 conftest$ac_exeext conftest.$ac_ext
23325 LIBS=$ac_check_lib_save_LIBS
23327 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23328 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23329 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23330 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23333 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23334 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23335 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23336 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23337 echo $ECHO_N "(cached) $ECHO_C" >&6
23339 ac_check_lib_save_LIBS=$LIBS
23340 LIBS="-ldnet_stub $LIBS"
23341 cat >conftest.$ac_ext <<_ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h. */
23348 /* Override any GCC internal prototype to avoid an error.
23349 Use char because int might match the return type of a GCC
23350 builtin and then its argument prototype would still apply. */
23358 return dnet_ntoa ();
23363 rm -f conftest.$ac_objext conftest$ac_exeext
23364 if { (ac_try="$ac_link"
23365 case "(($ac_try" in
23366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23367 *) ac_try_echo=$ac_try;;
23369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23370 (eval "$ac_link") 2>conftest.er1
23372 grep -v '^ *+' conftest.er1 >conftest.err
23374 cat conftest.err >&5
23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); } && {
23377 test -z "$ac_c_werror_flag" ||
23378 test ! -s conftest.err
23379 } && test -s conftest$ac_exeext &&
23380 $as_test_x conftest$ac_exeext; then
23381 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23383 echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23386 ac_cv_lib_dnet_stub_dnet_ntoa=no
23389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23390 conftest$ac_exeext conftest.$ac_ext
23391 LIBS=$ac_check_lib_save_LIBS
23393 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23394 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23395 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23396 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23403 conftest$ac_exeext conftest.$ac_ext
23404 LIBS="$ac_xsave_LIBS"
23406 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23407 # to get the SysV transport functions.
23408 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23410 # The nsl library prevents programs from opening the X display
23411 # on Irix 5.2, according to T.E. Dickey.
23412 # The functions gethostbyname, getservbyname, and inet_addr are
23413 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23414 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23415 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23416 if test "${ac_cv_func_gethostbyname+set}" = set; then
23417 echo $ECHO_N "(cached) $ECHO_C" >&6
23419 cat >conftest.$ac_ext <<_ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h. */
23425 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23427 #define gethostbyname innocuous_gethostbyname
23429 /* System header to define __stub macros and hopefully few prototypes,
23430 which can conflict with char gethostbyname (); below.
23431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23432 <limits.h> exists even on freestanding compilers. */
23435 # include <limits.h>
23437 # include <assert.h>
23440 #undef gethostbyname
23442 /* Override any GCC internal prototype to avoid an error.
23443 Use char because int might match the return type of a GCC
23444 builtin and then its argument prototype would still apply. */
23448 char gethostbyname ();
23449 /* The GNU C library defines this for functions which it implements
23450 to always fail with ENOSYS. Some functions are actually named
23451 something starting with __ and the normal name is an alias. */
23452 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23459 return gethostbyname ();
23464 rm -f conftest.$ac_objext conftest$ac_exeext
23465 if { (ac_try="$ac_link"
23466 case "(($ac_try" in
23467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471 (eval "$ac_link") 2>conftest.er1
23473 grep -v '^ *+' conftest.er1 >conftest.err
23475 cat conftest.err >&5
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); } && {
23478 test -z "$ac_c_werror_flag" ||
23479 test ! -s conftest.err
23480 } && test -s conftest$ac_exeext &&
23481 $as_test_x conftest$ac_exeext; then
23482 ac_cv_func_gethostbyname=yes
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 ac_cv_func_gethostbyname=no
23490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23491 conftest$ac_exeext conftest.$ac_ext
23493 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23494 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23496 if test $ac_cv_func_gethostbyname = no; then
23497 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23498 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23499 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23500 echo $ECHO_N "(cached) $ECHO_C" >&6
23502 ac_check_lib_save_LIBS=$LIBS
23504 cat >conftest.$ac_ext <<_ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23511 /* Override any GCC internal prototype to avoid an error.
23512 Use char because int might match the return type of a GCC
23513 builtin and then its argument prototype would still apply. */
23517 char gethostbyname ();
23521 return gethostbyname ();
23526 rm -f conftest.$ac_objext conftest$ac_exeext
23527 if { (ac_try="$ac_link"
23528 case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533 (eval "$ac_link") 2>conftest.er1
23535 grep -v '^ *+' conftest.er1 >conftest.err
23537 cat conftest.err >&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest$ac_exeext &&
23543 $as_test_x conftest$ac_exeext; then
23544 ac_cv_lib_nsl_gethostbyname=yes
23546 echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23549 ac_cv_lib_nsl_gethostbyname=no
23552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23553 conftest$ac_exeext conftest.$ac_ext
23554 LIBS=$ac_check_lib_save_LIBS
23556 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23557 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23558 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23562 if test $ac_cv_lib_nsl_gethostbyname = no; then
23563 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23564 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23565 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 ac_check_lib_save_LIBS=$LIBS
23570 cat >conftest.$ac_ext <<_ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23577 /* Override any GCC internal prototype to avoid an error.
23578 Use char because int might match the return type of a GCC
23579 builtin and then its argument prototype would still apply. */
23583 char gethostbyname ();
23587 return gethostbyname ();
23592 rm -f conftest.$ac_objext conftest$ac_exeext
23593 if { (ac_try="$ac_link"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23599 (eval "$ac_link") 2>conftest.er1
23601 grep -v '^ *+' conftest.er1 >conftest.err
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } && {
23606 test -z "$ac_c_werror_flag" ||
23607 test ! -s conftest.err
23608 } && test -s conftest$ac_exeext &&
23609 $as_test_x conftest$ac_exeext; then
23610 ac_cv_lib_bsd_gethostbyname=yes
23612 echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 ac_cv_lib_bsd_gethostbyname=no
23618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23619 conftest$ac_exeext conftest.$ac_ext
23620 LIBS=$ac_check_lib_save_LIBS
23622 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23623 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23624 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23625 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23631 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23632 # socket/setsockopt and other routines are undefined under SCO ODT
23633 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23634 # on later versions), says Simon Leinen: it contains gethostby*
23635 # variants that don't use the name server (or something). -lsocket
23636 # must be given before -lnsl if both are needed. We assume that
23637 # if connect needs -lnsl, so does gethostbyname.
23638 { echo "$as_me:$LINENO: checking for connect" >&5
23639 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23640 if test "${ac_cv_func_connect+set}" = set; then
23641 echo $ECHO_N "(cached) $ECHO_C" >&6
23643 cat >conftest.$ac_ext <<_ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h. */
23649 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23651 #define connect innocuous_connect
23653 /* System header to define __stub macros and hopefully few prototypes,
23654 which can conflict with char connect (); below.
23655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23656 <limits.h> exists even on freestanding compilers. */
23659 # include <limits.h>
23661 # include <assert.h>
23666 /* Override any GCC internal prototype to avoid an error.
23667 Use char because int might match the return type of a GCC
23668 builtin and then its argument prototype would still apply. */
23673 /* The GNU C library defines this for functions which it implements
23674 to always fail with ENOSYS. Some functions are actually named
23675 something starting with __ and the normal name is an alias. */
23676 #if defined __stub_connect || defined __stub___connect
23688 rm -f conftest.$ac_objext conftest$ac_exeext
23689 if { (ac_try="$ac_link"
23690 case "(($ac_try" in
23691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692 *) ac_try_echo=$ac_try;;
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_link") 2>conftest.er1
23697 grep -v '^ *+' conftest.er1 >conftest.err
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest$ac_exeext &&
23705 $as_test_x conftest$ac_exeext; then
23706 ac_cv_func_connect=yes
23708 echo "$as_me: failed program was:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23711 ac_cv_func_connect=no
23714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23715 conftest$ac_exeext conftest.$ac_ext
23717 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23718 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23720 if test $ac_cv_func_connect = no; then
23721 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23722 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23723 if test "${ac_cv_lib_socket_connect+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 ac_check_lib_save_LIBS=$LIBS
23727 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23728 cat >conftest.$ac_ext <<_ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h. */
23735 /* Override any GCC internal prototype to avoid an error.
23736 Use char because int might match the return type of a GCC
23737 builtin and then its argument prototype would still apply. */
23750 rm -f conftest.$ac_objext conftest$ac_exeext
23751 if { (ac_try="$ac_link"
23752 case "(($ac_try" in
23753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754 *) ac_try_echo=$ac_try;;
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757 (eval "$ac_link") 2>conftest.er1
23759 grep -v '^ *+' conftest.er1 >conftest.err
23761 cat conftest.err >&5
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); } && {
23764 test -z "$ac_c_werror_flag" ||
23765 test ! -s conftest.err
23766 } && test -s conftest$ac_exeext &&
23767 $as_test_x conftest$ac_exeext; then
23768 ac_cv_lib_socket_connect=yes
23770 echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23773 ac_cv_lib_socket_connect=no
23776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23777 conftest$ac_exeext conftest.$ac_ext
23778 LIBS=$ac_check_lib_save_LIBS
23780 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23781 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23782 if test $ac_cv_lib_socket_connect = yes; then
23783 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23788 # Guillermo Gomez says -lposix is necessary on A/UX.
23789 { echo "$as_me:$LINENO: checking for remove" >&5
23790 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23791 if test "${ac_cv_func_remove+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23794 cat >conftest.$ac_ext <<_ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h. */
23800 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23802 #define remove innocuous_remove
23804 /* System header to define __stub macros and hopefully few prototypes,
23805 which can conflict with char remove (); below.
23806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23807 <limits.h> exists even on freestanding compilers. */
23810 # include <limits.h>
23812 # include <assert.h>
23817 /* Override any GCC internal prototype to avoid an error.
23818 Use char because int might match the return type of a GCC
23819 builtin and then its argument prototype would still apply. */
23824 /* The GNU C library defines this for functions which it implements
23825 to always fail with ENOSYS. Some functions are actually named
23826 something starting with __ and the normal name is an alias. */
23827 #if defined __stub_remove || defined __stub___remove
23839 rm -f conftest.$ac_objext conftest$ac_exeext
23840 if { (ac_try="$ac_link"
23841 case "(($ac_try" in
23842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23843 *) ac_try_echo=$ac_try;;
23845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23846 (eval "$ac_link") 2>conftest.er1
23848 grep -v '^ *+' conftest.er1 >conftest.err
23850 cat conftest.err >&5
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); } && {
23853 test -z "$ac_c_werror_flag" ||
23854 test ! -s conftest.err
23855 } && test -s conftest$ac_exeext &&
23856 $as_test_x conftest$ac_exeext; then
23857 ac_cv_func_remove=yes
23859 echo "$as_me: failed program was:" >&5
23860 sed 's/^/| /' conftest.$ac_ext >&5
23862 ac_cv_func_remove=no
23865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23866 conftest$ac_exeext conftest.$ac_ext
23868 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23869 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23871 if test $ac_cv_func_remove = no; then
23872 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23873 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23874 if test "${ac_cv_lib_posix_remove+set}" = set; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23877 ac_check_lib_save_LIBS=$LIBS
23878 LIBS="-lposix $LIBS"
23879 cat >conftest.$ac_ext <<_ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23886 /* Override any GCC internal prototype to avoid an error.
23887 Use char because int might match the return type of a GCC
23888 builtin and then its argument prototype would still apply. */
23901 rm -f conftest.$ac_objext conftest$ac_exeext
23902 if { (ac_try="$ac_link"
23903 case "(($ac_try" in
23904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905 *) ac_try_echo=$ac_try;;
23907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23908 (eval "$ac_link") 2>conftest.er1
23910 grep -v '^ *+' conftest.er1 >conftest.err
23912 cat conftest.err >&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && {
23915 test -z "$ac_c_werror_flag" ||
23916 test ! -s conftest.err
23917 } && test -s conftest$ac_exeext &&
23918 $as_test_x conftest$ac_exeext; then
23919 ac_cv_lib_posix_remove=yes
23921 echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23924 ac_cv_lib_posix_remove=no
23927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23928 conftest$ac_exeext conftest.$ac_ext
23929 LIBS=$ac_check_lib_save_LIBS
23931 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23932 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
23933 if test $ac_cv_lib_posix_remove = yes; then
23934 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23939 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23940 { echo "$as_me:$LINENO: checking for shmat" >&5
23941 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23942 if test "${ac_cv_func_shmat+set}" = set; then
23943 echo $ECHO_N "(cached) $ECHO_C" >&6
23945 cat >conftest.$ac_ext <<_ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23951 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23953 #define shmat innocuous_shmat
23955 /* System header to define __stub macros and hopefully few prototypes,
23956 which can conflict with char shmat (); below.
23957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23958 <limits.h> exists even on freestanding compilers. */
23961 # include <limits.h>
23963 # include <assert.h>
23968 /* Override any GCC internal prototype to avoid an error.
23969 Use char because int might match the return type of a GCC
23970 builtin and then its argument prototype would still apply. */
23975 /* The GNU C library defines this for functions which it implements
23976 to always fail with ENOSYS. Some functions are actually named
23977 something starting with __ and the normal name is an alias. */
23978 #if defined __stub_shmat || defined __stub___shmat
23990 rm -f conftest.$ac_objext conftest$ac_exeext
23991 if { (ac_try="$ac_link"
23992 case "(($ac_try" in
23993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994 *) ac_try_echo=$ac_try;;
23996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23997 (eval "$ac_link") 2>conftest.er1
23999 grep -v '^ *+' conftest.er1 >conftest.err
24001 cat conftest.err >&5
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); } && {
24004 test -z "$ac_c_werror_flag" ||
24005 test ! -s conftest.err
24006 } && test -s conftest$ac_exeext &&
24007 $as_test_x conftest$ac_exeext; then
24008 ac_cv_func_shmat=yes
24010 echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24013 ac_cv_func_shmat=no
24016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24017 conftest$ac_exeext conftest.$ac_ext
24019 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24020 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24022 if test $ac_cv_func_shmat = no; then
24023 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24024 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24025 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24026 echo $ECHO_N "(cached) $ECHO_C" >&6
24028 ac_check_lib_save_LIBS=$LIBS
24030 cat >conftest.$ac_ext <<_ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24037 /* Override any GCC internal prototype to avoid an error.
24038 Use char because int might match the return type of a GCC
24039 builtin and then its argument prototype would still apply. */
24052 rm -f conftest.$ac_objext conftest$ac_exeext
24053 if { (ac_try="$ac_link"
24054 case "(($ac_try" in
24055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056 *) ac_try_echo=$ac_try;;
24058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24059 (eval "$ac_link") 2>conftest.er1
24061 grep -v '^ *+' conftest.er1 >conftest.err
24063 cat conftest.err >&5
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); } && {
24066 test -z "$ac_c_werror_flag" ||
24067 test ! -s conftest.err
24068 } && test -s conftest$ac_exeext &&
24069 $as_test_x conftest$ac_exeext; then
24070 ac_cv_lib_ipc_shmat=yes
24072 echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24075 ac_cv_lib_ipc_shmat=no
24078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24079 conftest$ac_exeext conftest.$ac_ext
24080 LIBS=$ac_check_lib_save_LIBS
24082 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24083 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24084 if test $ac_cv_lib_ipc_shmat = yes; then
24085 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24091 # Check for libraries that X11R6 Xt/Xaw programs need.
24092 ac_save_LDFLAGS=$LDFLAGS
24093 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24094 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24095 # check for ICE first), but we must link in the order -lSM -lICE or
24096 # we get undefined symbols. So assume we have SM if we have ICE.
24097 # These have to be linked with before -lX11, unlike the other
24098 # libraries we check for below, so use a different variable.
24099 # John Interrante, Karl Berry
24100 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24101 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
24102 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24103 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 ac_check_lib_save_LIBS=$LIBS
24106 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24107 cat >conftest.$ac_ext <<_ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h. */
24114 /* Override any GCC internal prototype to avoid an error.
24115 Use char because int might match the return type of a GCC
24116 builtin and then its argument prototype would still apply. */
24120 char IceConnectionNumber ();
24124 return IceConnectionNumber ();
24129 rm -f conftest.$ac_objext conftest$ac_exeext
24130 if { (ac_try="$ac_link"
24131 case "(($ac_try" in
24132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133 *) ac_try_echo=$ac_try;;
24135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24136 (eval "$ac_link") 2>conftest.er1
24138 grep -v '^ *+' conftest.er1 >conftest.err
24140 cat conftest.err >&5
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } && {
24143 test -z "$ac_c_werror_flag" ||
24144 test ! -s conftest.err
24145 } && test -s conftest$ac_exeext &&
24146 $as_test_x conftest$ac_exeext; then
24147 ac_cv_lib_ICE_IceConnectionNumber=yes
24149 echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24152 ac_cv_lib_ICE_IceConnectionNumber=no
24155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24156 conftest$ac_exeext conftest.$ac_ext
24157 LIBS=$ac_check_lib_save_LIBS
24159 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24160 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24161 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24162 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24165 LDFLAGS=$ac_save_LDFLAGS
24233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24238 echo $ECHO_N "(cached) $ECHO_C" >&6
24240 ac_res=`eval echo '${'$as_ac_Header'}'`
24241 { echo "$as_me:$LINENO: result: $ac_res" >&5
24242 echo "${ECHO_T}$ac_res" >&6; }
24244 # Is the header compilable?
24245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24247 cat >conftest.$ac_ext <<_ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h. */
24253 $ac_includes_default
24254 #include <$ac_header>
24256 rm -f conftest.$ac_objext
24257 if { (ac_try="$ac_compile"
24258 case "(($ac_try" in
24259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24263 (eval "$ac_compile") 2>conftest.er1
24265 grep -v '^ *+' conftest.er1 >conftest.err
24267 cat conftest.err >&5
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); } && {
24270 test -z "$ac_c_werror_flag" ||
24271 test ! -s conftest.err
24272 } && test -s conftest.$ac_objext; then
24273 ac_header_compiler=yes
24275 echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24278 ac_header_compiler=no
24281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24283 echo "${ECHO_T}$ac_header_compiler" >&6; }
24285 # Is the header present?
24286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24288 cat >conftest.$ac_ext <<_ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24294 #include <$ac_header>
24296 if { (ac_try="$ac_cpp conftest.$ac_ext"
24297 case "(($ac_try" in
24298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24299 *) ac_try_echo=$ac_try;;
24301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24304 grep -v '^ *+' conftest.er1 >conftest.err
24306 cat conftest.err >&5
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); } >/dev/null && {
24309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24310 test ! -s conftest.err
24312 ac_header_preproc=yes
24314 echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24317 ac_header_preproc=no
24320 rm -f conftest.err conftest.$ac_ext
24321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24322 echo "${ECHO_T}$ac_header_preproc" >&6; }
24324 # So? What about this header?
24325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24331 ac_header_preproc=yes
24334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24352 echo $ECHO_N "(cached) $ECHO_C" >&6
24354 eval "$as_ac_Header=\$ac_header_preproc"
24356 ac_res=`eval echo '${'$as_ac_Header'}'`
24357 { echo "$as_me:$LINENO: result: $ac_res" >&5
24358 echo "${ECHO_T}$ac_res" >&6; }
24361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24362 cat >>confdefs.h <<_ACEOF
24363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24370 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24371 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24372 if test "${ac_cv_header_stdc+set}" = set; then
24373 echo $ECHO_N "(cached) $ECHO_C" >&6
24375 cat >conftest.$ac_ext <<_ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 #include <stdlib.h>
24382 #include <stdarg.h>
24383 #include <string.h>
24394 rm -f conftest.$ac_objext
24395 if { (ac_try="$ac_compile"
24396 case "(($ac_try" in
24397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24398 *) ac_try_echo=$ac_try;;
24400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24401 (eval "$ac_compile") 2>conftest.er1
24403 grep -v '^ *+' conftest.er1 >conftest.err
24405 cat conftest.err >&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); } && {
24408 test -z "$ac_c_werror_flag" ||
24409 test ! -s conftest.err
24410 } && test -s conftest.$ac_objext; then
24411 ac_cv_header_stdc=yes
24413 echo "$as_me: failed program was:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24416 ac_cv_header_stdc=no
24419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24421 if test $ac_cv_header_stdc = yes; then
24422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24423 cat >conftest.$ac_ext <<_ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h. */
24429 #include <string.h>
24432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24433 $EGREP "memchr" >/dev/null 2>&1; then
24436 ac_cv_header_stdc=no
24442 if test $ac_cv_header_stdc = yes; then
24443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24444 cat >conftest.$ac_ext <<_ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h. */
24450 #include <stdlib.h>
24453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24454 $EGREP "free" >/dev/null 2>&1; then
24457 ac_cv_header_stdc=no
24463 if test $ac_cv_header_stdc = yes; then
24464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24465 if test "$cross_compiling" = yes; then
24468 cat >conftest.$ac_ext <<_ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24475 #include <stdlib.h>
24476 #if ((' ' & 0x0FF) == 0x020)
24477 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24478 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24480 # define ISLOWER(c) \
24481 (('a' <= (c) && (c) <= 'i') \
24482 || ('j' <= (c) && (c) <= 'r') \
24483 || ('s' <= (c) && (c) <= 'z'))
24484 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24492 for (i = 0; i < 256; i++)
24493 if (XOR (islower (i), ISLOWER (i))
24494 || toupper (i) != TOUPPER (i))
24499 rm -f conftest$ac_exeext
24500 if { (ac_try="$ac_link"
24501 case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_link") 2>&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24510 { (case "(($ac_try" in
24511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24512 *) ac_try_echo=$ac_try;;
24514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24515 (eval "$ac_try") 2>&5
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); }; }; then
24521 echo "$as_me: program exited with status $ac_status" >&5
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24525 ( exit $ac_status )
24526 ac_cv_header_stdc=no
24528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24534 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24535 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
24536 if test $ac_cv_header_stdc = yes; then
24538 cat >>confdefs.h <<\_ACEOF
24539 #define STDC_HEADERS 1
24544 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24545 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
24546 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24547 echo $ECHO_N "(cached) $ECHO_C" >&6
24549 cat >conftest.$ac_ext <<_ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555 #include <sys/types.h>
24559 return makedev(0, 0);
24564 rm -f conftest.$ac_objext conftest$ac_exeext
24565 if { (ac_try="$ac_link"
24566 case "(($ac_try" in
24567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568 *) ac_try_echo=$ac_try;;
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571 (eval "$ac_link") 2>conftest.er1
24573 grep -v '^ *+' conftest.er1 >conftest.err
24575 cat conftest.err >&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); } && {
24578 test -z "$ac_c_werror_flag" ||
24579 test ! -s conftest.err
24580 } && test -s conftest$ac_exeext &&
24581 $as_test_x conftest$ac_exeext; then
24582 ac_cv_header_sys_types_h_makedev=yes
24584 echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24587 ac_cv_header_sys_types_h_makedev=no
24590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24591 conftest$ac_exeext conftest.$ac_ext
24594 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24595 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
24597 if test $ac_cv_header_sys_types_h_makedev = no; then
24598 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24599 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24600 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24601 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24602 echo $ECHO_N "(cached) $ECHO_C" >&6
24604 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24605 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24607 # Is the header compilable?
24608 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24609 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
24610 cat >conftest.$ac_ext <<_ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h. */
24616 $ac_includes_default
24617 #include <sys/mkdev.h>
24619 rm -f conftest.$ac_objext
24620 if { (ac_try="$ac_compile"
24621 case "(($ac_try" in
24622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623 *) ac_try_echo=$ac_try;;
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626 (eval "$ac_compile") 2>conftest.er1
24628 grep -v '^ *+' conftest.er1 >conftest.err
24630 cat conftest.err >&5
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); } && {
24633 test -z "$ac_c_werror_flag" ||
24634 test ! -s conftest.err
24635 } && test -s conftest.$ac_objext; then
24636 ac_header_compiler=yes
24638 echo "$as_me: failed program was:" >&5
24639 sed 's/^/| /' conftest.$ac_ext >&5
24641 ac_header_compiler=no
24644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24646 echo "${ECHO_T}$ac_header_compiler" >&6; }
24648 # Is the header present?
24649 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24650 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
24651 cat >conftest.$ac_ext <<_ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h. */
24657 #include <sys/mkdev.h>
24659 if { (ac_try="$ac_cpp conftest.$ac_ext"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24667 grep -v '^ *+' conftest.er1 >conftest.err
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } >/dev/null && {
24672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24673 test ! -s conftest.err
24675 ac_header_preproc=yes
24677 echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24680 ac_header_preproc=no
24683 rm -f conftest.err conftest.$ac_ext
24684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24685 echo "${ECHO_T}$ac_header_preproc" >&6; }
24687 # So? What about this header?
24688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24690 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24691 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24692 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24693 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24694 ac_header_preproc=yes
24697 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24698 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24699 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
24700 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
24701 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24702 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24703 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
24704 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
24705 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24706 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24707 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24708 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24712 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24713 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24714 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24715 echo $ECHO_N "(cached) $ECHO_C" >&6
24717 ac_cv_header_sys_mkdev_h=$ac_header_preproc
24719 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24720 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24723 if test $ac_cv_header_sys_mkdev_h = yes; then
24725 cat >>confdefs.h <<\_ACEOF
24726 #define MAJOR_IN_MKDEV 1
24733 if test $ac_cv_header_sys_mkdev_h = no; then
24734 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24735 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24736 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24737 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24738 echo $ECHO_N "(cached) $ECHO_C" >&6
24740 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24741 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24743 # Is the header compilable?
24744 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24745 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
24746 cat >conftest.$ac_ext <<_ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24752 $ac_includes_default
24753 #include <sys/sysmacros.h>
24755 rm -f conftest.$ac_objext
24756 if { (ac_try="$ac_compile"
24757 case "(($ac_try" in
24758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762 (eval "$ac_compile") 2>conftest.er1
24764 grep -v '^ *+' conftest.er1 >conftest.err
24766 cat conftest.err >&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } && {
24769 test -z "$ac_c_werror_flag" ||
24770 test ! -s conftest.err
24771 } && test -s conftest.$ac_objext; then
24772 ac_header_compiler=yes
24774 echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24777 ac_header_compiler=no
24780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24782 echo "${ECHO_T}$ac_header_compiler" >&6; }
24784 # Is the header present?
24785 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24786 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
24787 cat >conftest.$ac_ext <<_ACEOF
24790 cat confdefs.h >>conftest.$ac_ext
24791 cat >>conftest.$ac_ext <<_ACEOF
24792 /* end confdefs.h. */
24793 #include <sys/sysmacros.h>
24795 if { (ac_try="$ac_cpp conftest.$ac_ext"
24796 case "(($ac_try" in
24797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798 *) ac_try_echo=$ac_try;;
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24803 grep -v '^ *+' conftest.er1 >conftest.err
24805 cat conftest.err >&5
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); } >/dev/null && {
24808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24809 test ! -s conftest.err
24811 ac_header_preproc=yes
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24816 ac_header_preproc=no
24819 rm -f conftest.err conftest.$ac_ext
24820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24821 echo "${ECHO_T}$ac_header_preproc" >&6; }
24823 # So? What about this header?
24824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24826 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24827 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24828 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24829 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24830 ac_header_preproc=yes
24833 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24834 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24835 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
24836 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
24837 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24838 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24839 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
24840 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
24841 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24842 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24843 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24844 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24848 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24849 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24850 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24851 echo $ECHO_N "(cached) $ECHO_C" >&6
24853 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24855 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24856 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24859 if test $ac_cv_header_sys_sysmacros_h = yes; then
24861 cat >>confdefs.h <<\_ACEOF
24862 #define MAJOR_IN_SYSMACROS 1
24876 ac_header_dirent=no
24877 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24878 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24879 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24880 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24884 cat >conftest.$ac_ext <<_ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h. */
24890 #include <sys/types.h>
24902 rm -f conftest.$ac_objext
24903 if { (ac_try="$ac_compile"
24904 case "(($ac_try" in
24905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906 *) ac_try_echo=$ac_try;;
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909 (eval "$ac_compile") 2>conftest.er1
24911 grep -v '^ *+' conftest.er1 >conftest.err
24913 cat conftest.err >&5
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); } && {
24916 test -z "$ac_c_werror_flag" ||
24917 test ! -s conftest.err
24918 } && test -s conftest.$ac_objext; then
24919 eval "$as_ac_Header=yes"
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24924 eval "$as_ac_Header=no"
24927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24929 ac_res=`eval echo '${'$as_ac_Header'}'`
24930 { echo "$as_me:$LINENO: result: $ac_res" >&5
24931 echo "${ECHO_T}$ac_res" >&6; }
24932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24933 cat >>confdefs.h <<_ACEOF
24934 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24937 ac_header_dirent=$ac_hdr; break
24941 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24942 if test $ac_header_dirent = dirent.h; then
24943 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24944 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24945 if test "${ac_cv_search_opendir+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24948 ac_func_search_save_LIBS=$LIBS
24949 cat >conftest.$ac_ext <<_ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24956 /* Override any GCC internal prototype to avoid an error.
24957 Use char because int might match the return type of a GCC
24958 builtin and then its argument prototype would still apply. */
24971 for ac_lib in '' dir; do
24972 if test -z "$ac_lib"; then
24973 ac_res="none required"
24976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24978 rm -f conftest.$ac_objext conftest$ac_exeext
24979 if { (ac_try="$ac_link"
24980 case "(($ac_try" in
24981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982 *) ac_try_echo=$ac_try;;
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985 (eval "$ac_link") 2>conftest.er1
24987 grep -v '^ *+' conftest.er1 >conftest.err
24989 cat conftest.err >&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest$ac_exeext &&
24995 $as_test_x conftest$ac_exeext; then
24996 ac_cv_search_opendir=$ac_res
24998 echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25006 if test "${ac_cv_search_opendir+set}" = set; then
25010 if test "${ac_cv_search_opendir+set}" = set; then
25013 ac_cv_search_opendir=no
25015 rm conftest.$ac_ext
25016 LIBS=$ac_func_search_save_LIBS
25018 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25019 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25020 ac_res=$ac_cv_search_opendir
25021 if test "$ac_res" != no; then
25022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25027 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25028 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25029 if test "${ac_cv_search_opendir+set}" = set; then
25030 echo $ECHO_N "(cached) $ECHO_C" >&6
25032 ac_func_search_save_LIBS=$LIBS
25033 cat >conftest.$ac_ext <<_ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h. */
25040 /* Override any GCC internal prototype to avoid an error.
25041 Use char because int might match the return type of a GCC
25042 builtin and then its argument prototype would still apply. */
25055 for ac_lib in '' x; do
25056 if test -z "$ac_lib"; then
25057 ac_res="none required"
25060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25062 rm -f conftest.$ac_objext conftest$ac_exeext
25063 if { (ac_try="$ac_link"
25064 case "(($ac_try" in
25065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066 *) ac_try_echo=$ac_try;;
25068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25069 (eval "$ac_link") 2>conftest.er1
25071 grep -v '^ *+' conftest.er1 >conftest.err
25073 cat conftest.err >&5
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); } && {
25076 test -z "$ac_c_werror_flag" ||
25077 test ! -s conftest.err
25078 } && test -s conftest$ac_exeext &&
25079 $as_test_x conftest$ac_exeext; then
25080 ac_cv_search_opendir=$ac_res
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25090 if test "${ac_cv_search_opendir+set}" = set; then
25094 if test "${ac_cv_search_opendir+set}" = set; then
25097 ac_cv_search_opendir=no
25099 rm conftest.$ac_ext
25100 LIBS=$ac_func_search_save_LIBS
25102 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25103 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25104 ac_res=$ac_cv_search_opendir
25105 if test "$ac_res" != no; then
25106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25112 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25113 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25114 if test "${ac_cv_header_stat_broken+set}" = set; then
25115 echo $ECHO_N "(cached) $ECHO_C" >&6
25117 cat >conftest.$ac_ext <<_ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h. */
25123 #include <sys/types.h>
25124 #include <sys/stat.h>
25126 #if defined S_ISBLK && defined S_IFDIR
25127 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25130 #if defined S_ISBLK && defined S_IFCHR
25131 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25134 #if defined S_ISLNK && defined S_IFREG
25135 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25138 #if defined S_ISSOCK && defined S_IFREG
25139 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25143 rm -f conftest.$ac_objext
25144 if { (ac_try="$ac_compile"
25145 case "(($ac_try" in
25146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147 *) ac_try_echo=$ac_try;;
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150 (eval "$ac_compile") 2>conftest.er1
25152 grep -v '^ *+' conftest.er1 >conftest.err
25154 cat conftest.err >&5
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); } && {
25157 test -z "$ac_c_werror_flag" ||
25158 test ! -s conftest.err
25159 } && test -s conftest.$ac_objext; then
25160 ac_cv_header_stat_broken=no
25162 echo "$as_me: failed program was:" >&5
25163 sed 's/^/| /' conftest.$ac_ext >&5
25165 ac_cv_header_stat_broken=yes
25168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25170 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25171 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25172 if test $ac_cv_header_stat_broken = yes; then
25174 cat >>confdefs.h <<\_ACEOF
25175 #define STAT_MACROS_BROKEN 1
25180 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25181 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
25182 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25183 echo $ECHO_N "(cached) $ECHO_C" >&6
25185 cat >conftest.$ac_ext <<_ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h. */
25191 #include <sys/types.h>
25192 #include <sys/wait.h>
25193 #ifndef WEXITSTATUS
25194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25210 rm -f conftest.$ac_objext
25211 if { (ac_try="$ac_compile"
25212 case "(($ac_try" in
25213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25214 *) ac_try_echo=$ac_try;;
25216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25217 (eval "$ac_compile") 2>conftest.er1
25219 grep -v '^ *+' conftest.er1 >conftest.err
25221 cat conftest.err >&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); } && {
25224 test -z "$ac_c_werror_flag" ||
25225 test ! -s conftest.err
25226 } && test -s conftest.$ac_objext; then
25227 ac_cv_header_sys_wait_h=yes
25229 echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25232 ac_cv_header_sys_wait_h=no
25235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25238 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
25239 if test $ac_cv_header_sys_wait_h = yes; then
25241 cat >>confdefs.h <<\_ACEOF
25242 #define HAVE_SYS_WAIT_H 1
25247 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25248 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25249 if test "${ac_cv_header_time+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25252 cat >conftest.$ac_ext <<_ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h. */
25258 #include <sys/types.h>
25259 #include <sys/time.h>
25265 if ((struct tm *) 0)
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278 (eval "$ac_compile") 2>conftest.er1
25280 grep -v '^ *+' conftest.er1 >conftest.err
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } && {
25285 test -z "$ac_c_werror_flag" ||
25286 test ! -s conftest.err
25287 } && test -s conftest.$ac_objext; then
25288 ac_cv_header_time=yes
25290 echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25293 ac_cv_header_time=no
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25298 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25299 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25300 if test $ac_cv_header_time = yes; then
25302 cat >>confdefs.h <<\_ACEOF
25303 #define TIME_WITH_SYS_TIME 1
25308 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25309 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25310 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25311 echo $ECHO_N "(cached) $ECHO_C" >&6
25313 cat >conftest.$ac_ext <<_ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h. */
25319 $ac_includes_default
25323 static struct stat ac_aggr;
25324 if (ac_aggr.st_blksize)
25330 rm -f conftest.$ac_objext
25331 if { (ac_try="$ac_compile"
25332 case "(($ac_try" in
25333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25334 *) ac_try_echo=$ac_try;;
25336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25337 (eval "$ac_compile") 2>conftest.er1
25339 grep -v '^ *+' conftest.er1 >conftest.err
25341 cat conftest.err >&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } && {
25344 test -z "$ac_c_werror_flag" ||
25345 test ! -s conftest.err
25346 } && test -s conftest.$ac_objext; then
25347 ac_cv_member_struct_stat_st_blksize=yes
25349 echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25352 cat >conftest.$ac_ext <<_ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 $ac_includes_default
25362 static struct stat ac_aggr;
25363 if (sizeof ac_aggr.st_blksize)
25369 rm -f conftest.$ac_objext
25370 if { (ac_try="$ac_compile"
25371 case "(($ac_try" in
25372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373 *) ac_try_echo=$ac_try;;
25375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25376 (eval "$ac_compile") 2>conftest.er1
25378 grep -v '^ *+' conftest.er1 >conftest.err
25380 cat conftest.err >&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } && {
25383 test -z "$ac_c_werror_flag" ||
25384 test ! -s conftest.err
25385 } && test -s conftest.$ac_objext; then
25386 ac_cv_member_struct_stat_st_blksize=yes
25388 echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.$ac_ext >&5
25391 ac_cv_member_struct_stat_st_blksize=no
25394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25399 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
25400 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
25401 if test $ac_cv_member_struct_stat_st_blksize = yes; then
25403 cat >>confdefs.h <<_ACEOF
25404 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25408 cat >>confdefs.h <<\_ACEOF
25409 #define HAVE_ST_BLKSIZE 1
25415 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25416 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25417 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25418 echo $ECHO_N "(cached) $ECHO_C" >&6
25420 cat >conftest.$ac_ext <<_ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h. */
25426 $ac_includes_default
25430 static struct stat ac_aggr;
25431 if (ac_aggr.st_blocks)
25437 rm -f conftest.$ac_objext
25438 if { (ac_try="$ac_compile"
25439 case "(($ac_try" in
25440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25441 *) ac_try_echo=$ac_try;;
25443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25444 (eval "$ac_compile") 2>conftest.er1
25446 grep -v '^ *+' conftest.er1 >conftest.err
25448 cat conftest.err >&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } && {
25451 test -z "$ac_c_werror_flag" ||
25452 test ! -s conftest.err
25453 } && test -s conftest.$ac_objext; then
25454 ac_cv_member_struct_stat_st_blocks=yes
25456 echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.$ac_ext >&5
25459 cat >conftest.$ac_ext <<_ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h. */
25465 $ac_includes_default
25469 static struct stat ac_aggr;
25470 if (sizeof ac_aggr.st_blocks)
25476 rm -f conftest.$ac_objext
25477 if { (ac_try="$ac_compile"
25478 case "(($ac_try" in
25479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480 *) ac_try_echo=$ac_try;;
25482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25483 (eval "$ac_compile") 2>conftest.er1
25485 grep -v '^ *+' conftest.er1 >conftest.err
25487 cat conftest.err >&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); } && {
25490 test -z "$ac_c_werror_flag" ||
25491 test ! -s conftest.err
25492 } && test -s conftest.$ac_objext; then
25493 ac_cv_member_struct_stat_st_blocks=yes
25495 echo "$as_me: failed program was:" >&5
25496 sed 's/^/| /' conftest.$ac_ext >&5
25498 ac_cv_member_struct_stat_st_blocks=no
25501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25506 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25507 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25508 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25510 cat >>confdefs.h <<_ACEOF
25511 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25515 cat >>confdefs.h <<\_ACEOF
25516 #define HAVE_ST_BLOCKS 1
25520 case " $LIBOBJS " in
25521 *" fileblocks.$ac_objext "* ) ;;
25522 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25529 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25530 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25531 if test "${ac_cv_struct_tm+set}" = set; then
25532 echo $ECHO_N "(cached) $ECHO_C" >&6
25534 cat >conftest.$ac_ext <<_ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h. */
25540 #include <sys/types.h>
25547 int *p = &tm.tm_sec;
25553 rm -f conftest.$ac_objext
25554 if { (ac_try="$ac_compile"
25555 case "(($ac_try" in
25556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25557 *) ac_try_echo=$ac_try;;
25559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25560 (eval "$ac_compile") 2>conftest.er1
25562 grep -v '^ *+' conftest.er1 >conftest.err
25564 cat conftest.err >&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); } && {
25567 test -z "$ac_c_werror_flag" ||
25568 test ! -s conftest.err
25569 } && test -s conftest.$ac_objext; then
25570 ac_cv_struct_tm=time.h
25572 echo "$as_me: failed program was:" >&5
25573 sed 's/^/| /' conftest.$ac_ext >&5
25575 ac_cv_struct_tm=sys/time.h
25578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25580 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25581 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25582 if test $ac_cv_struct_tm = sys/time.h; then
25584 cat >>confdefs.h <<\_ACEOF
25585 #define TM_IN_SYS_TIME 1
25590 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25591 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
25592 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25593 echo $ECHO_N "(cached) $ECHO_C" >&6
25595 cat >conftest.$ac_ext <<_ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h. */
25601 #include <sys/types.h>
25602 #include <$ac_cv_struct_tm>
25608 static struct tm ac_aggr;
25609 if (ac_aggr.tm_zone)
25615 rm -f conftest.$ac_objext
25616 if { (ac_try="$ac_compile"
25617 case "(($ac_try" in
25618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25619 *) ac_try_echo=$ac_try;;
25621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25622 (eval "$ac_compile") 2>conftest.er1
25624 grep -v '^ *+' conftest.er1 >conftest.err
25626 cat conftest.err >&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); } && {
25629 test -z "$ac_c_werror_flag" ||
25630 test ! -s conftest.err
25631 } && test -s conftest.$ac_objext; then
25632 ac_cv_member_struct_tm_tm_zone=yes
25634 echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25637 cat >conftest.$ac_ext <<_ACEOF
25640 cat confdefs.h >>conftest.$ac_ext
25641 cat >>conftest.$ac_ext <<_ACEOF
25642 /* end confdefs.h. */
25643 #include <sys/types.h>
25644 #include <$ac_cv_struct_tm>
25650 static struct tm ac_aggr;
25651 if (sizeof ac_aggr.tm_zone)
25657 rm -f conftest.$ac_objext
25658 if { (ac_try="$ac_compile"
25659 case "(($ac_try" in
25660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661 *) ac_try_echo=$ac_try;;
25663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25664 (eval "$ac_compile") 2>conftest.er1
25666 grep -v '^ *+' conftest.er1 >conftest.err
25668 cat conftest.err >&5
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); } && {
25671 test -z "$ac_c_werror_flag" ||
25672 test ! -s conftest.err
25673 } && test -s conftest.$ac_objext; then
25674 ac_cv_member_struct_tm_tm_zone=yes
25676 echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25679 ac_cv_member_struct_tm_tm_zone=no
25682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25687 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25688 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25689 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25691 cat >>confdefs.h <<_ACEOF
25692 #define HAVE_STRUCT_TM_TM_ZONE 1
25698 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25700 cat >>confdefs.h <<\_ACEOF
25701 #define HAVE_TM_ZONE 1
25705 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25706 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
25707 if test "${ac_cv_have_decl_tzname+set}" = set; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25710 cat >conftest.$ac_ext <<_ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h. */
25729 rm -f conftest.$ac_objext
25730 if { (ac_try="$ac_compile"
25731 case "(($ac_try" in
25732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733 *) ac_try_echo=$ac_try;;
25735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25736 (eval "$ac_compile") 2>conftest.er1
25738 grep -v '^ *+' conftest.er1 >conftest.err
25740 cat conftest.err >&5
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); } && {
25743 test -z "$ac_c_werror_flag" ||
25744 test ! -s conftest.err
25745 } && test -s conftest.$ac_objext; then
25746 ac_cv_have_decl_tzname=yes
25748 echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25751 ac_cv_have_decl_tzname=no
25754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25756 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25757 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25758 if test $ac_cv_have_decl_tzname = yes; then
25760 cat >>confdefs.h <<_ACEOF
25761 #define HAVE_DECL_TZNAME 1
25766 cat >>confdefs.h <<_ACEOF
25767 #define HAVE_DECL_TZNAME 0
25774 { echo "$as_me:$LINENO: checking for tzname" >&5
25775 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
25776 if test "${ac_cv_var_tzname+set}" = set; then
25777 echo $ECHO_N "(cached) $ECHO_C" >&6
25779 cat >conftest.$ac_ext <<_ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h. */
25786 #if !HAVE_DECL_TZNAME
25787 extern char *tzname[];
25793 return tzname[0][0];
25798 rm -f conftest.$ac_objext conftest$ac_exeext
25799 if { (ac_try="$ac_link"
25800 case "(($ac_try" in
25801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805 (eval "$ac_link") 2>conftest.er1
25807 grep -v '^ *+' conftest.er1 >conftest.err
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } && {
25812 test -z "$ac_c_werror_flag" ||
25813 test ! -s conftest.err
25814 } && test -s conftest$ac_exeext &&
25815 $as_test_x conftest$ac_exeext; then
25816 ac_cv_var_tzname=yes
25818 echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25821 ac_cv_var_tzname=no
25824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25825 conftest$ac_exeext conftest.$ac_ext
25827 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25828 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25829 if test $ac_cv_var_tzname = yes; then
25831 cat >>confdefs.h <<\_ACEOF
25832 #define HAVE_TZNAME 1
25839 { echo "$as_me:$LINENO: checking for utime.h" >&5
25840 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
25841 if test "${ba_cv_header_utime_h+set}" = set; then
25842 echo $ECHO_N "(cached) $ECHO_C" >&6
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25851 #include <sys/types.h>
25861 rm -f conftest.$ac_objext
25862 if { (ac_try="$ac_compile"
25863 case "(($ac_try" in
25864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25865 *) ac_try_echo=$ac_try;;
25867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25868 (eval "$ac_compile") 2>conftest.er1
25870 grep -v '^ *+' conftest.er1 >conftest.err
25872 cat conftest.err >&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); } && {
25875 test -z "$ac_c_werror_flag" ||
25876 test ! -s conftest.err
25877 } && test -s conftest.$ac_objext; then
25878 ba_cv_header_utime_h=yes
25880 echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25883 ba_cv_header_utime_h=no
25886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25888 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
25889 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
25890 test $ba_cv_header_utime_h = yes &&
25891 cat >>confdefs.h <<\_ACEOF
25892 #define HAVE_UTIME_H 1
25896 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25897 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25898 if test "${ba_cv_header_socklen_t+set}" = set; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25901 cat >conftest.$ac_ext <<_ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h. */
25908 #include <sys/types.h>
25909 #include <sys/socket.h>
25918 rm -f conftest.$ac_objext
25919 if { (ac_try="$ac_compile"
25920 case "(($ac_try" in
25921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25922 *) ac_try_echo=$ac_try;;
25924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25925 (eval "$ac_compile") 2>conftest.er1
25927 grep -v '^ *+' conftest.er1 >conftest.err
25929 cat conftest.err >&5
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } && {
25932 test -z "$ac_c_werror_flag" ||
25933 test ! -s conftest.err
25934 } && test -s conftest.$ac_objext; then
25935 ba_cv_header_socklen_t=yes
25937 echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25940 ba_cv_header_socklen_t=no
25943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25945 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
25946 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
25947 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
25948 #define HAVE_SOCKLEN_T 1
25952 { echo "$as_me:$LINENO: checking for bigendian" >&5
25953 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
25954 if test "${ba_cv_bigendian+set}" = set; then
25955 echo $ECHO_N "(cached) $ECHO_C" >&6
25957 if test "$cross_compiling" = yes; then
25960 cat >conftest.$ac_ext <<_ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 main(){long a=1L; char *p=(char *)&a; exit(*p);}
25968 rm -f conftest$ac_exeext
25969 if { (ac_try="$ac_link"
25970 case "(($ac_try" in
25971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972 *) ac_try_echo=$ac_try;;
25974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975 (eval "$ac_link") 2>&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25979 { (case "(($ac_try" in
25980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25981 *) ac_try_echo=$ac_try;;
25983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25984 (eval "$ac_try") 2>&5
25986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987 (exit $ac_status); }; }; then
25988 ba_cv_bigendian=yes
25990 echo "$as_me: program exited with status $ac_status" >&5
25991 echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25994 ( exit $ac_status )
25997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26002 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
26003 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
26004 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
26005 #define HAVE_BIGENDIAN 1
26010 ac_cpp='$CXXCPP $CPPFLAGS'
26011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26016 { echo "$as_me:$LINENO: checking for typeof" >&5
26017 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
26018 if test "${ba_cv_have_typeof+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26021 if test "$cross_compiling" = yes; then
26022 ba_cv_have_typeof=no
26024 cat >conftest.$ac_ext <<_ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h. */
26030 main(){char *a = 0; a = (typeof a)a;}
26032 rm -f conftest$ac_exeext
26033 if { (ac_try="$ac_link"
26034 case "(($ac_try" in
26035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036 *) ac_try_echo=$ac_try;;
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039 (eval "$ac_link") 2>&5
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26043 { (case "(($ac_try" in
26044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045 *) ac_try_echo=$ac_try;;
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048 (eval "$ac_try") 2>&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; }; then
26052 ba_cv_have_typeof=yes
26054 echo "$as_me: program exited with status $ac_status" >&5
26055 echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26058 ( exit $ac_status )
26059 ba_cv_have_typeof=no
26061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26066 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
26067 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
26068 test $ba_cv_have_typeof = yes &&
26069 cat >>confdefs.h <<\_ACEOF
26070 #define HAVE_TYPEOF 1
26074 ac_cpp='$CPP $CPPFLAGS'
26075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26080 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26081 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
26082 if test "${ac_cv_c_const+set}" = set; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26085 cat >conftest.$ac_ext <<_ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h. */
26095 /* FIXME: Include the comments suggested by Paul. */
26096 #ifndef __cplusplus
26097 /* Ultrix mips cc rejects this. */
26098 typedef int charset[2];
26100 /* SunOS 4.1.1 cc rejects this. */
26101 char const *const *pcpcc;
26103 /* NEC SVR4.0.2 mips cc rejects this. */
26104 struct point {int x, y;};
26105 static struct point const zero = {0,0};
26106 /* AIX XL C 1.02.0.0 rejects this.
26107 It does not let you subtract one const X* pointer from another in
26108 an arm of an if-expression whose if-part is not a constant
26110 const char *g = "string";
26111 pcpcc = &g + (g ? g-g : 0);
26112 /* HPUX 7.0 cc rejects these. */
26114 ppc = (char**) pcpcc;
26115 pcpcc = (char const *const *) ppc;
26116 { /* SCO 3.2v4 cc rejects this. */
26118 char const *s = 0 ? (char *) 0 : (char const *) 0;
26123 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26124 int x[] = {25, 17};
26125 const int *foo = &x[0];
26128 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26129 typedef const int *iptr;
26133 { /* AIX XL C 1.02.0.0 rejects this saying
26134 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26135 struct s { int j; const int *ap[3]; };
26136 struct s *b; b->j = 5;
26138 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26139 const int foo = 10;
26140 if (!foo) return 0;
26142 return !cs[0] && !zero.x;
26149 rm -f conftest.$ac_objext
26150 if { (ac_try="$ac_compile"
26151 case "(($ac_try" in
26152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153 *) ac_try_echo=$ac_try;;
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156 (eval "$ac_compile") 2>conftest.er1
26158 grep -v '^ *+' conftest.er1 >conftest.err
26160 cat conftest.err >&5
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } && {
26163 test -z "$ac_c_werror_flag" ||
26164 test ! -s conftest.err
26165 } && test -s conftest.$ac_objext; then
26168 echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26176 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26177 echo "${ECHO_T}$ac_cv_c_const" >&6; }
26178 if test $ac_cv_c_const = no; then
26180 cat >>confdefs.h <<\_ACEOF
26188 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
26189 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
26191 # The order of these tests is important.
26192 cat >conftest.$ac_ext <<_ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h. */
26198 #include <sys/statvfs.h>
26199 #include <sys/fstyp.h>
26201 if { (ac_try="$ac_cpp conftest.$ac_ext"
26202 case "(($ac_try" in
26203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204 *) ac_try_echo=$ac_try;;
26206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26209 grep -v '^ *+' conftest.er1 >conftest.err
26211 cat conftest.err >&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } >/dev/null && {
26214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26215 test ! -s conftest.err
26217 cat >>confdefs.h <<\_ACEOF
26218 #define FSTYPE_STATVFS 1
26222 echo "$as_me: failed program was:" >&5
26223 sed 's/^/| /' conftest.$ac_ext >&5
26228 rm -f conftest.err conftest.$ac_ext
26229 if test $fstype = no; then
26230 cat >conftest.$ac_ext <<_ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h. */
26236 #include <sys/statfs.h>
26237 #include <sys/fstyp.h>
26239 if { (ac_try="$ac_cpp conftest.$ac_ext"
26240 case "(($ac_try" in
26241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26242 *) ac_try_echo=$ac_try;;
26244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26247 grep -v '^ *+' conftest.er1 >conftest.err
26249 cat conftest.err >&5
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } >/dev/null && {
26252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26253 test ! -s conftest.err
26255 cat >>confdefs.h <<\_ACEOF
26256 #define FSTYPE_USG_STATFS 1
26260 echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26266 rm -f conftest.err conftest.$ac_ext
26268 if test $fstype = no; then
26269 cat >conftest.$ac_ext <<_ACEOF
26272 cat confdefs.h >>conftest.$ac_ext
26273 cat >>conftest.$ac_ext <<_ACEOF
26274 /* end confdefs.h. */
26275 #include <sys/statfs.h>
26276 #include <sys/vmount.h>
26278 if { (ac_try="$ac_cpp conftest.$ac_ext"
26279 case "(($ac_try" in
26280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281 *) ac_try_echo=$ac_try;;
26283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26286 grep -v '^ *+' conftest.er1 >conftest.err
26288 cat conftest.err >&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); } >/dev/null && {
26291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26292 test ! -s conftest.err
26294 cat >>confdefs.h <<\_ACEOF
26295 #define FSTYPE_AIX_STATFS 1
26299 echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.$ac_ext >&5
26305 rm -f conftest.err conftest.$ac_ext
26307 if test $fstype = no; then
26308 cat >conftest.$ac_ext <<_ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h. */
26314 #include <mntent.h>
26316 if { (ac_try="$ac_cpp conftest.$ac_ext"
26317 case "(($ac_try" in
26318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319 *) ac_try_echo=$ac_try;;
26321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26324 grep -v '^ *+' conftest.er1 >conftest.err
26326 cat conftest.err >&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); } >/dev/null && {
26329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26330 test ! -s conftest.err
26332 cat >>confdefs.h <<\_ACEOF
26333 #define FSTYPE_MNTENT 1
26337 echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26343 rm -f conftest.err conftest.$ac_ext
26345 if test $fstype = no; then
26346 cat >conftest.$ac_ext <<_ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h. */
26352 #include <sys/mount.h>
26355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26356 $EGREP "f_type;" >/dev/null 2>&1; then
26357 cat >>confdefs.h <<\_ACEOF
26358 #define FSTYPE_STATFS 1
26365 if test $fstype = no; then
26366 cat >conftest.$ac_ext <<_ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h. */
26372 #include <sys/mount.h>
26373 #include <sys/fs_types.h>
26375 if { (ac_try="$ac_cpp conftest.$ac_ext"
26376 case "(($ac_try" in
26377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26378 *) ac_try_echo=$ac_try;;
26380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26383 grep -v '^ *+' conftest.er1 >conftest.err
26385 cat conftest.err >&5
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); } >/dev/null && {
26388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26389 test ! -s conftest.err
26391 cat >>confdefs.h <<\_ACEOF
26392 #define FSTYPE_GETMNT 1
26396 echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26402 rm -f conftest.err conftest.$ac_ext
26404 { echo "$as_me:$LINENO: result: $fstype" >&5
26405 echo "${ECHO_T}$fstype" >&6; }
26407 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26408 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26409 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26410 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26411 echo $ECHO_N "(cached) $ECHO_C" >&6
26413 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26414 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26416 # Is the header compilable?
26417 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
26418 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
26419 cat >conftest.$ac_ext <<_ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26425 $ac_includes_default
26426 #include <sys/statvfs.h>
26428 rm -f conftest.$ac_objext
26429 if { (ac_try="$ac_compile"
26430 case "(($ac_try" in
26431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26432 *) ac_try_echo=$ac_try;;
26434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26435 (eval "$ac_compile") 2>conftest.er1
26437 grep -v '^ *+' conftest.er1 >conftest.err
26439 cat conftest.err >&5
26440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441 (exit $ac_status); } && {
26442 test -z "$ac_c_werror_flag" ||
26443 test ! -s conftest.err
26444 } && test -s conftest.$ac_objext; then
26445 ac_header_compiler=yes
26447 echo "$as_me: failed program was:" >&5
26448 sed 's/^/| /' conftest.$ac_ext >&5
26450 ac_header_compiler=no
26453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26455 echo "${ECHO_T}$ac_header_compiler" >&6; }
26457 # Is the header present?
26458 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
26459 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
26460 cat >conftest.$ac_ext <<_ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h. */
26466 #include <sys/statvfs.h>
26468 if { (ac_try="$ac_cpp conftest.$ac_ext"
26469 case "(($ac_try" in
26470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26471 *) ac_try_echo=$ac_try;;
26473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26476 grep -v '^ *+' conftest.er1 >conftest.err
26478 cat conftest.err >&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } >/dev/null && {
26481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26482 test ! -s conftest.err
26484 ac_header_preproc=yes
26486 echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26489 ac_header_preproc=no
26492 rm -f conftest.err conftest.$ac_ext
26493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26494 echo "${ECHO_T}$ac_header_preproc" >&6; }
26496 # So? What about this header?
26497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26499 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26500 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26501 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
26502 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
26503 ac_header_preproc=yes
26506 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
26507 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
26508 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
26509 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
26510 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
26511 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
26512 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
26513 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
26514 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
26515 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
26516 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
26517 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
26521 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26522 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26523 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26524 echo $ECHO_N "(cached) $ECHO_C" >&6
26526 ac_cv_header_sys_statvfs_h=$ac_header_preproc
26528 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26529 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26532 if test $ac_cv_header_sys_statvfs_h = yes; then
26534 cat >>confdefs.h <<\_ACEOF
26535 #define HAVE_SYS_STATVFS_H 1
26542 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26543 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26544 if test "${ac_cv_type_signal+set}" = set; then
26545 echo $ECHO_N "(cached) $ECHO_C" >&6
26547 cat >conftest.$ac_ext <<_ACEOF
26550 cat confdefs.h >>conftest.$ac_ext
26551 cat >>conftest.$ac_ext <<_ACEOF
26552 /* end confdefs.h. */
26553 #include <sys/types.h>
26554 #include <signal.h>
26559 return *(signal (0, 0)) (0) == 1;
26564 rm -f conftest.$ac_objext
26565 if { (ac_try="$ac_compile"
26566 case "(($ac_try" in
26567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568 *) ac_try_echo=$ac_try;;
26570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26571 (eval "$ac_compile") 2>conftest.er1
26573 grep -v '^ *+' conftest.er1 >conftest.err
26575 cat conftest.err >&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); } && {
26578 test -z "$ac_c_werror_flag" ||
26579 test ! -s conftest.err
26580 } && test -s conftest.$ac_objext; then
26581 ac_cv_type_signal=int
26583 echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26586 ac_cv_type_signal=void
26589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26591 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26592 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26594 cat >>confdefs.h <<_ACEOF
26595 #define RETSIGTYPE $ac_cv_type_signal
26600 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
26601 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
26602 if test "${bash_cv_signal_vintage+set}" = set; then
26603 echo $ECHO_N "(cached) $ECHO_C" >&6
26606 cat >conftest.$ac_ext <<_ACEOF
26609 cat confdefs.h >>conftest.$ac_ext
26610 cat >>conftest.$ac_ext <<_ACEOF
26611 /* end confdefs.h. */
26612 #include <signal.h>
26618 struct sigaction sa;
26619 sigemptyset(&ss); sigsuspend(&ss);
26620 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26621 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26627 rm -f conftest.$ac_objext conftest$ac_exeext
26628 if { (ac_try="$ac_link"
26629 case "(($ac_try" in
26630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26631 *) ac_try_echo=$ac_try;;
26633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26634 (eval "$ac_link") 2>conftest.er1
26636 grep -v '^ *+' conftest.er1 >conftest.err
26638 cat conftest.err >&5
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); } && {
26641 test -z "$ac_c_werror_flag" ||
26642 test ! -s conftest.err
26643 } && test -s conftest$ac_exeext &&
26644 $as_test_x conftest$ac_exeext; then
26645 bash_cv_signal_vintage="posix"
26647 echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26651 cat >conftest.$ac_ext <<_ACEOF
26654 cat confdefs.h >>conftest.$ac_ext
26655 cat >>conftest.$ac_ext <<_ACEOF
26656 /* end confdefs.h. */
26657 #include <signal.h>
26662 int mask = sigmask(SIGINT);
26663 sigsetmask(mask); sigblock(mask); sigpause(mask);
26669 rm -f conftest.$ac_objext conftest$ac_exeext
26670 if { (ac_try="$ac_link"
26671 case "(($ac_try" in
26672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26673 *) ac_try_echo=$ac_try;;
26675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26676 (eval "$ac_link") 2>conftest.er1
26678 grep -v '^ *+' conftest.er1 >conftest.err
26680 cat conftest.err >&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } && {
26683 test -z "$ac_c_werror_flag" ||
26684 test ! -s conftest.err
26685 } && test -s conftest$ac_exeext &&
26686 $as_test_x conftest$ac_exeext; then
26687 bash_cv_signal_vintage="4.2bsd"
26689 echo "$as_me: failed program was:" >&5
26690 sed 's/^/| /' conftest.$ac_ext >&5
26693 cat >conftest.$ac_ext <<_ACEOF
26696 cat confdefs.h >>conftest.$ac_ext
26697 cat >>conftest.$ac_ext <<_ACEOF
26698 /* end confdefs.h. */
26700 #include <signal.h>
26701 RETSIGTYPE foo() { }
26706 int mask = sigmask(SIGINT);
26707 sigset(SIGINT, foo); sigrelse(SIGINT);
26708 sighold(SIGINT); sigpause(SIGINT);
26714 rm -f conftest.$ac_objext conftest$ac_exeext
26715 if { (ac_try="$ac_link"
26716 case "(($ac_try" in
26717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718 *) ac_try_echo=$ac_try;;
26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721 (eval "$ac_link") 2>conftest.er1
26723 grep -v '^ *+' conftest.er1 >conftest.err
26725 cat conftest.err >&5
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); } && {
26728 test -z "$ac_c_werror_flag" ||
26729 test ! -s conftest.err
26730 } && test -s conftest$ac_exeext &&
26731 $as_test_x conftest$ac_exeext; then
26732 bash_cv_signal_vintage="svr3"
26734 echo "$as_me: failed program was:" >&5
26735 sed 's/^/| /' conftest.$ac_ext >&5
26737 bash_cv_signal_vintage="v7"
26741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26742 conftest$ac_exeext conftest.$ac_ext
26746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26747 conftest$ac_exeext conftest.$ac_ext
26751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26752 conftest$ac_exeext conftest.$ac_ext
26756 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26757 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
26758 if test "$bash_cv_signal_vintage" = "posix"; then
26759 cat >>confdefs.h <<\_ACEOF
26760 #define HAVE_POSIX_SIGNALS 1
26763 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26764 cat >>confdefs.h <<\_ACEOF
26765 #define HAVE_BSD_SIGNALS 1
26768 elif test "$bash_cv_signal_vintage" = "svr3"; then
26769 cat >>confdefs.h <<\_ACEOF
26770 #define HAVE_USG_SIGHOLD 1
26775 { echo "$as_me:$LINENO: checking for mode_t" >&5
26776 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
26777 if test "${ac_cv_type_mode_t+set}" = set; then
26778 echo $ECHO_N "(cached) $ECHO_C" >&6
26780 cat >conftest.$ac_ext <<_ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h. */
26786 $ac_includes_default
26787 typedef mode_t ac__type_new_;
26791 if ((ac__type_new_ *) 0)
26793 if (sizeof (ac__type_new_))
26799 rm -f conftest.$ac_objext
26800 if { (ac_try="$ac_compile"
26801 case "(($ac_try" in
26802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803 *) ac_try_echo=$ac_try;;
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806 (eval "$ac_compile") 2>conftest.er1
26808 grep -v '^ *+' conftest.er1 >conftest.err
26810 cat conftest.err >&5
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } && {
26813 test -z "$ac_c_werror_flag" ||
26814 test ! -s conftest.err
26815 } && test -s conftest.$ac_objext; then
26816 ac_cv_type_mode_t=yes
26818 echo "$as_me: failed program was:" >&5
26819 sed 's/^/| /' conftest.$ac_ext >&5
26821 ac_cv_type_mode_t=no
26824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26826 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26827 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
26828 if test $ac_cv_type_mode_t = yes; then
26832 cat >>confdefs.h <<_ACEOF
26838 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26839 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
26840 if test "${ac_cv_type_uid_t+set}" = set; then
26841 echo $ECHO_N "(cached) $ECHO_C" >&6
26843 cat >conftest.$ac_ext <<_ACEOF
26846 cat confdefs.h >>conftest.$ac_ext
26847 cat >>conftest.$ac_ext <<_ACEOF
26848 /* end confdefs.h. */
26849 #include <sys/types.h>
26852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26853 $EGREP "uid_t" >/dev/null 2>&1; then
26854 ac_cv_type_uid_t=yes
26856 ac_cv_type_uid_t=no
26861 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26862 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
26863 if test $ac_cv_type_uid_t = no; then
26865 cat >>confdefs.h <<\_ACEOF
26870 cat >>confdefs.h <<\_ACEOF
26876 { echo "$as_me:$LINENO: checking for size_t" >&5
26877 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
26878 if test "${ac_cv_type_size_t+set}" = set; then
26879 echo $ECHO_N "(cached) $ECHO_C" >&6
26881 cat >conftest.$ac_ext <<_ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h. */
26887 $ac_includes_default
26888 typedef size_t ac__type_new_;
26892 if ((ac__type_new_ *) 0)
26894 if (sizeof (ac__type_new_))
26900 rm -f conftest.$ac_objext
26901 if { (ac_try="$ac_compile"
26902 case "(($ac_try" in
26903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904 *) ac_try_echo=$ac_try;;
26906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907 (eval "$ac_compile") 2>conftest.er1
26909 grep -v '^ *+' conftest.er1 >conftest.err
26911 cat conftest.err >&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } && {
26914 test -z "$ac_c_werror_flag" ||
26915 test ! -s conftest.err
26916 } && test -s conftest.$ac_objext; then
26917 ac_cv_type_size_t=yes
26919 echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26922 ac_cv_type_size_t=no
26925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26927 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26928 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
26929 if test $ac_cv_type_size_t = yes; then
26933 cat >>confdefs.h <<_ACEOF
26934 #define size_t unsigned int
26939 { echo "$as_me:$LINENO: checking for pid_t" >&5
26940 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
26941 if test "${ac_cv_type_pid_t+set}" = set; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26944 cat >conftest.$ac_ext <<_ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h. */
26950 $ac_includes_default
26951 typedef pid_t ac__type_new_;
26955 if ((ac__type_new_ *) 0)
26957 if (sizeof (ac__type_new_))
26963 rm -f conftest.$ac_objext
26964 if { (ac_try="$ac_compile"
26965 case "(($ac_try" in
26966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967 *) ac_try_echo=$ac_try;;
26969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970 (eval "$ac_compile") 2>conftest.er1
26972 grep -v '^ *+' conftest.er1 >conftest.err
26974 cat conftest.err >&5
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); } && {
26977 test -z "$ac_c_werror_flag" ||
26978 test ! -s conftest.err
26979 } && test -s conftest.$ac_objext; then
26980 ac_cv_type_pid_t=yes
26982 echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26985 ac_cv_type_pid_t=no
26988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26990 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26991 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
26992 if test $ac_cv_type_pid_t = yes; then
26996 cat >>confdefs.h <<_ACEOF
27002 { echo "$as_me:$LINENO: checking for off_t" >&5
27003 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
27004 if test "${ac_cv_type_off_t+set}" = set; then
27005 echo $ECHO_N "(cached) $ECHO_C" >&6
27007 cat >conftest.$ac_ext <<_ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h. */
27013 $ac_includes_default
27014 typedef off_t ac__type_new_;
27018 if ((ac__type_new_ *) 0)
27020 if (sizeof (ac__type_new_))
27026 rm -f conftest.$ac_objext
27027 if { (ac_try="$ac_compile"
27028 case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_compile") 2>conftest.er1
27035 grep -v '^ *+' conftest.er1 >conftest.err
27037 cat conftest.err >&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); } && {
27040 test -z "$ac_c_werror_flag" ||
27041 test ! -s conftest.err
27042 } && test -s conftest.$ac_objext; then
27043 ac_cv_type_off_t=yes
27045 echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27048 ac_cv_type_off_t=no
27051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27053 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27054 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
27055 if test $ac_cv_type_off_t = yes; then
27059 cat >>confdefs.h <<_ACEOF
27060 #define off_t long int
27065 { echo "$as_me:$LINENO: checking for ino_t" >&5
27066 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
27067 if test "${ac_cv_type_ino_t+set}" = set; then
27068 echo $ECHO_N "(cached) $ECHO_C" >&6
27070 cat >conftest.$ac_ext <<_ACEOF
27073 cat confdefs.h >>conftest.$ac_ext
27074 cat >>conftest.$ac_ext <<_ACEOF
27075 /* end confdefs.h. */
27076 $ac_includes_default
27077 typedef ino_t ac__type_new_;
27081 if ((ac__type_new_ *) 0)
27083 if (sizeof (ac__type_new_))
27089 rm -f conftest.$ac_objext
27090 if { (ac_try="$ac_compile"
27091 case "(($ac_try" in
27092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093 *) ac_try_echo=$ac_try;;
27095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096 (eval "$ac_compile") 2>conftest.er1
27098 grep -v '^ *+' conftest.er1 >conftest.err
27100 cat conftest.err >&5
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); } && {
27103 test -z "$ac_c_werror_flag" ||
27104 test ! -s conftest.err
27105 } && test -s conftest.$ac_objext; then
27106 ac_cv_type_ino_t=yes
27108 echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27111 ac_cv_type_ino_t=no
27114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27116 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
27117 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
27118 if test $ac_cv_type_ino_t = yes; then
27122 cat >>confdefs.h <<_ACEOF
27123 #define ino_t unsigned long
27128 { echo "$as_me:$LINENO: checking for dev_t" >&5
27129 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
27130 if test "${ac_cv_type_dev_t+set}" = set; then
27131 echo $ECHO_N "(cached) $ECHO_C" >&6
27133 cat >conftest.$ac_ext <<_ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h. */
27139 $ac_includes_default
27140 typedef dev_t ac__type_new_;
27144 if ((ac__type_new_ *) 0)
27146 if (sizeof (ac__type_new_))
27152 rm -f conftest.$ac_objext
27153 if { (ac_try="$ac_compile"
27154 case "(($ac_try" in
27155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156 *) ac_try_echo=$ac_try;;
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159 (eval "$ac_compile") 2>conftest.er1
27161 grep -v '^ *+' conftest.er1 >conftest.err
27163 cat conftest.err >&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); } && {
27166 test -z "$ac_c_werror_flag" ||
27167 test ! -s conftest.err
27168 } && test -s conftest.$ac_objext; then
27169 ac_cv_type_dev_t=yes
27171 echo "$as_me: failed program was:" >&5
27172 sed 's/^/| /' conftest.$ac_ext >&5
27174 ac_cv_type_dev_t=no
27177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27179 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
27180 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
27181 if test $ac_cv_type_dev_t = yes; then
27185 cat >>confdefs.h <<_ACEOF
27186 #define dev_t unsigned long
27191 { echo "$as_me:$LINENO: checking for daddr_t" >&5
27192 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
27193 if test "${ac_cv_type_daddr_t+set}" = set; then
27194 echo $ECHO_N "(cached) $ECHO_C" >&6
27196 cat >conftest.$ac_ext <<_ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h. */
27202 $ac_includes_default
27203 typedef daddr_t ac__type_new_;
27207 if ((ac__type_new_ *) 0)
27209 if (sizeof (ac__type_new_))
27215 rm -f conftest.$ac_objext
27216 if { (ac_try="$ac_compile"
27217 case "(($ac_try" in
27218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27219 *) ac_try_echo=$ac_try;;
27221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27222 (eval "$ac_compile") 2>conftest.er1
27224 grep -v '^ *+' conftest.er1 >conftest.err
27226 cat conftest.err >&5
27227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228 (exit $ac_status); } && {
27229 test -z "$ac_c_werror_flag" ||
27230 test ! -s conftest.err
27231 } && test -s conftest.$ac_objext; then
27232 ac_cv_type_daddr_t=yes
27234 echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27237 ac_cv_type_daddr_t=no
27240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27242 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
27243 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
27244 if test $ac_cv_type_daddr_t = yes; then
27248 cat >>confdefs.h <<_ACEOF
27249 #define daddr_t long
27254 { echo "$as_me:$LINENO: checking for major_t" >&5
27255 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
27256 if test "${ac_cv_type_major_t+set}" = set; then
27257 echo $ECHO_N "(cached) $ECHO_C" >&6
27259 cat >conftest.$ac_ext <<_ACEOF
27262 cat confdefs.h >>conftest.$ac_ext
27263 cat >>conftest.$ac_ext <<_ACEOF
27264 /* end confdefs.h. */
27265 $ac_includes_default
27266 typedef major_t ac__type_new_;
27270 if ((ac__type_new_ *) 0)
27272 if (sizeof (ac__type_new_))
27278 rm -f conftest.$ac_objext
27279 if { (ac_try="$ac_compile"
27280 case "(($ac_try" in
27281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282 *) ac_try_echo=$ac_try;;
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285 (eval "$ac_compile") 2>conftest.er1
27287 grep -v '^ *+' conftest.er1 >conftest.err
27289 cat conftest.err >&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); } && {
27292 test -z "$ac_c_werror_flag" ||
27293 test ! -s conftest.err
27294 } && test -s conftest.$ac_objext; then
27295 ac_cv_type_major_t=yes
27297 echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27300 ac_cv_type_major_t=no
27303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27305 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
27306 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
27307 if test $ac_cv_type_major_t = yes; then
27311 cat >>confdefs.h <<_ACEOF
27312 #define major_t int
27317 { echo "$as_me:$LINENO: checking for minor_t" >&5
27318 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
27319 if test "${ac_cv_type_minor_t+set}" = set; then
27320 echo $ECHO_N "(cached) $ECHO_C" >&6
27322 cat >conftest.$ac_ext <<_ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h. */
27328 $ac_includes_default
27329 typedef minor_t ac__type_new_;
27333 if ((ac__type_new_ *) 0)
27335 if (sizeof (ac__type_new_))
27341 rm -f conftest.$ac_objext
27342 if { (ac_try="$ac_compile"
27343 case "(($ac_try" in
27344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345 *) ac_try_echo=$ac_try;;
27347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348 (eval "$ac_compile") 2>conftest.er1
27350 grep -v '^ *+' conftest.er1 >conftest.err
27352 cat conftest.err >&5
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); } && {
27355 test -z "$ac_c_werror_flag" ||
27356 test ! -s conftest.err
27357 } && test -s conftest.$ac_objext; then
27358 ac_cv_type_minor_t=yes
27360 echo "$as_me: failed program was:" >&5
27361 sed 's/^/| /' conftest.$ac_ext >&5
27363 ac_cv_type_minor_t=no
27366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27368 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
27369 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
27370 if test $ac_cv_type_minor_t = yes; then
27374 cat >>confdefs.h <<_ACEOF
27375 #define minor_t int
27380 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27381 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27382 if test "${ac_cv_type_ssize_t+set}" = set; then
27383 echo $ECHO_N "(cached) $ECHO_C" >&6
27385 cat >conftest.$ac_ext <<_ACEOF
27388 cat confdefs.h >>conftest.$ac_ext
27389 cat >>conftest.$ac_ext <<_ACEOF
27390 /* end confdefs.h. */
27391 $ac_includes_default
27392 typedef ssize_t ac__type_new_;
27396 if ((ac__type_new_ *) 0)
27398 if (sizeof (ac__type_new_))
27404 rm -f conftest.$ac_objext
27405 if { (ac_try="$ac_compile"
27406 case "(($ac_try" in
27407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408 *) ac_try_echo=$ac_try;;
27410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411 (eval "$ac_compile") 2>conftest.er1
27413 grep -v '^ *+' conftest.er1 >conftest.err
27415 cat conftest.err >&5
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); } && {
27418 test -z "$ac_c_werror_flag" ||
27419 test ! -s conftest.err
27420 } && test -s conftest.$ac_objext; then
27421 ac_cv_type_ssize_t=yes
27423 echo "$as_me: failed program was:" >&5
27424 sed 's/^/| /' conftest.$ac_ext >&5
27426 ac_cv_type_ssize_t=no
27429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27431 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27432 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27433 if test $ac_cv_type_ssize_t = yes; then
27437 cat >>confdefs.h <<_ACEOF
27438 #define ssize_t int
27443 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27444 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
27445 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27446 echo $ECHO_N "(cached) $ECHO_C" >&6
27448 cat >conftest.$ac_ext <<_ACEOF
27451 cat confdefs.h >>conftest.$ac_ext
27452 cat >>conftest.$ac_ext <<_ACEOF
27453 /* end confdefs.h. */
27454 $ac_includes_default
27458 static struct stat ac_aggr;
27459 if (ac_aggr.st_blocks)
27465 rm -f conftest.$ac_objext
27466 if { (ac_try="$ac_compile"
27467 case "(($ac_try" in
27468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469 *) ac_try_echo=$ac_try;;
27471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472 (eval "$ac_compile") 2>conftest.er1
27474 grep -v '^ *+' conftest.er1 >conftest.err
27476 cat conftest.err >&5
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); } && {
27479 test -z "$ac_c_werror_flag" ||
27480 test ! -s conftest.err
27481 } && test -s conftest.$ac_objext; then
27482 ac_cv_member_struct_stat_st_blocks=yes
27484 echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27487 cat >conftest.$ac_ext <<_ACEOF
27490 cat confdefs.h >>conftest.$ac_ext
27491 cat >>conftest.$ac_ext <<_ACEOF
27492 /* end confdefs.h. */
27493 $ac_includes_default
27497 static struct stat ac_aggr;
27498 if (sizeof ac_aggr.st_blocks)
27504 rm -f conftest.$ac_objext
27505 if { (ac_try="$ac_compile"
27506 case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_compile") 2>conftest.er1
27513 grep -v '^ *+' conftest.er1 >conftest.err
27515 cat conftest.err >&5
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); } && {
27518 test -z "$ac_c_werror_flag" ||
27519 test ! -s conftest.err
27520 } && test -s conftest.$ac_objext; then
27521 ac_cv_member_struct_stat_st_blocks=yes
27523 echo "$as_me: failed program was:" >&5
27524 sed 's/^/| /' conftest.$ac_ext >&5
27526 ac_cv_member_struct_stat_st_blocks=no
27529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27535 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
27536 if test $ac_cv_member_struct_stat_st_blocks = yes; then
27538 cat >>confdefs.h <<_ACEOF
27539 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_ST_BLOCKS 1
27548 case " $LIBOBJS " in
27549 *" fileblocks.$ac_objext "* ) ;;
27550 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27557 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
27558 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
27559 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
27560 echo $ECHO_N "(cached) $ECHO_C" >&6
27562 cat >conftest.$ac_ext <<_ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h. */
27568 $ac_includes_default
27572 static struct stat ac_aggr;
27573 if (ac_aggr.st_rdev)
27579 rm -f conftest.$ac_objext
27580 if { (ac_try="$ac_compile"
27581 case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_compile") 2>conftest.er1
27588 grep -v '^ *+' conftest.er1 >conftest.err
27590 cat conftest.err >&5
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); } && {
27593 test -z "$ac_c_werror_flag" ||
27594 test ! -s conftest.err
27595 } && test -s conftest.$ac_objext; then
27596 ac_cv_member_struct_stat_st_rdev=yes
27598 echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27601 cat >conftest.$ac_ext <<_ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h. */
27607 $ac_includes_default
27611 static struct stat ac_aggr;
27612 if (sizeof ac_aggr.st_rdev)
27618 rm -f conftest.$ac_objext
27619 if { (ac_try="$ac_compile"
27620 case "(($ac_try" in
27621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622 *) ac_try_echo=$ac_try;;
27624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27625 (eval "$ac_compile") 2>conftest.er1
27627 grep -v '^ *+' conftest.er1 >conftest.err
27629 cat conftest.err >&5
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); } && {
27632 test -z "$ac_c_werror_flag" ||
27633 test ! -s conftest.err
27634 } && test -s conftest.$ac_objext; then
27635 ac_cv_member_struct_stat_st_rdev=yes
27637 echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27640 ac_cv_member_struct_stat_st_rdev=no
27643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27648 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
27649 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
27650 if test $ac_cv_member_struct_stat_st_rdev = yes; then
27652 cat >>confdefs.h <<_ACEOF
27653 #define HAVE_STRUCT_STAT_ST_RDEV 1
27657 cat >>confdefs.h <<\_ACEOF
27658 #define HAVE_ST_RDEV 1
27664 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27665 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
27666 if test "${ac_cv_struct_tm+set}" = set; then
27667 echo $ECHO_N "(cached) $ECHO_C" >&6
27669 cat >conftest.$ac_ext <<_ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h. */
27675 #include <sys/types.h>
27682 int *p = &tm.tm_sec;
27688 rm -f conftest.$ac_objext
27689 if { (ac_try="$ac_compile"
27690 case "(($ac_try" in
27691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692 *) ac_try_echo=$ac_try;;
27694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695 (eval "$ac_compile") 2>conftest.er1
27697 grep -v '^ *+' conftest.er1 >conftest.err
27699 cat conftest.err >&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); } && {
27702 test -z "$ac_c_werror_flag" ||
27703 test ! -s conftest.err
27704 } && test -s conftest.$ac_objext; then
27705 ac_cv_struct_tm=time.h
27707 echo "$as_me: failed program was:" >&5
27708 sed 's/^/| /' conftest.$ac_ext >&5
27710 ac_cv_struct_tm=sys/time.h
27713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27715 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27716 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
27717 if test $ac_cv_struct_tm = sys/time.h; then
27719 cat >>confdefs.h <<\_ACEOF
27720 #define TM_IN_SYS_TIME 1
27725 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
27726 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
27727 if test "${ac_cv_c_const+set}" = set; then
27728 echo $ECHO_N "(cached) $ECHO_C" >&6
27730 cat >conftest.$ac_ext <<_ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h. */
27740 /* FIXME: Include the comments suggested by Paul. */
27741 #ifndef __cplusplus
27742 /* Ultrix mips cc rejects this. */
27743 typedef int charset[2];
27745 /* SunOS 4.1.1 cc rejects this. */
27746 char const *const *pcpcc;
27748 /* NEC SVR4.0.2 mips cc rejects this. */
27749 struct point {int x, y;};
27750 static struct point const zero = {0,0};
27751 /* AIX XL C 1.02.0.0 rejects this.
27752 It does not let you subtract one const X* pointer from another in
27753 an arm of an if-expression whose if-part is not a constant
27755 const char *g = "string";
27756 pcpcc = &g + (g ? g-g : 0);
27757 /* HPUX 7.0 cc rejects these. */
27759 ppc = (char**) pcpcc;
27760 pcpcc = (char const *const *) ppc;
27761 { /* SCO 3.2v4 cc rejects this. */
27763 char const *s = 0 ? (char *) 0 : (char const *) 0;
27768 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27769 int x[] = {25, 17};
27770 const int *foo = &x[0];
27773 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27774 typedef const int *iptr;
27778 { /* AIX XL C 1.02.0.0 rejects this saying
27779 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27780 struct s { int j; const int *ap[3]; };
27781 struct s *b; b->j = 5;
27783 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27784 const int foo = 10;
27785 if (!foo) return 0;
27787 return !cs[0] && !zero.x;
27794 rm -f conftest.$ac_objext
27795 if { (ac_try="$ac_compile"
27796 case "(($ac_try" in
27797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27798 *) ac_try_echo=$ac_try;;
27800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27801 (eval "$ac_compile") 2>conftest.er1
27803 grep -v '^ *+' conftest.er1 >conftest.err
27805 cat conftest.err >&5
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); } && {
27808 test -z "$ac_c_werror_flag" ||
27809 test ! -s conftest.err
27810 } && test -s conftest.$ac_objext; then
27813 echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27821 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27822 echo "${ECHO_T}$ac_cv_c_const" >&6; }
27823 if test $ac_cv_c_const = no; then
27825 cat >>confdefs.h <<\_ACEOF
27833 { echo "$as_me:$LINENO: checking for char" >&5
27834 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
27835 if test "${ac_cv_type_char+set}" = set; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
27838 cat >conftest.$ac_ext <<_ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h. */
27844 $ac_includes_default
27845 typedef char ac__type_new_;
27849 if ((ac__type_new_ *) 0)
27851 if (sizeof (ac__type_new_))
27857 rm -f conftest.$ac_objext
27858 if { (ac_try="$ac_compile"
27859 case "(($ac_try" in
27860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861 *) ac_try_echo=$ac_try;;
27863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864 (eval "$ac_compile") 2>conftest.er1
27866 grep -v '^ *+' conftest.er1 >conftest.err
27868 cat conftest.err >&5
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); } && {
27871 test -z "$ac_c_werror_flag" ||
27872 test ! -s conftest.err
27873 } && test -s conftest.$ac_objext; then
27874 ac_cv_type_char=yes
27876 echo "$as_me: failed program was:" >&5
27877 sed 's/^/| /' conftest.$ac_ext >&5
27882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27884 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
27885 echo "${ECHO_T}$ac_cv_type_char" >&6; }
27887 # The cast to long int works around a bug in the HP C Compiler
27888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27890 # This bug is HP SR number 8606223364.
27891 { echo "$as_me:$LINENO: checking size of char" >&5
27892 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
27893 if test "${ac_cv_sizeof_char+set}" = set; then
27894 echo $ECHO_N "(cached) $ECHO_C" >&6
27896 if test "$cross_compiling" = yes; then
27897 # Depending upon the size, compute the lo and hi bounds.
27898 cat >conftest.$ac_ext <<_ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h. */
27904 $ac_includes_default
27905 typedef char ac__type_sizeof_;
27909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27916 rm -f conftest.$ac_objext
27917 if { (ac_try="$ac_compile"
27918 case "(($ac_try" in
27919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27920 *) ac_try_echo=$ac_try;;
27922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27923 (eval "$ac_compile") 2>conftest.er1
27925 grep -v '^ *+' conftest.er1 >conftest.err
27927 cat conftest.err >&5
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); } && {
27930 test -z "$ac_c_werror_flag" ||
27931 test ! -s conftest.err
27932 } && test -s conftest.$ac_objext; then
27935 cat >conftest.$ac_ext <<_ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h. */
27941 $ac_includes_default
27942 typedef char ac__type_sizeof_;
27946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27953 rm -f conftest.$ac_objext
27954 if { (ac_try="$ac_compile"
27955 case "(($ac_try" in
27956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957 *) ac_try_echo=$ac_try;;
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960 (eval "$ac_compile") 2>conftest.er1
27962 grep -v '^ *+' conftest.er1 >conftest.err
27964 cat conftest.err >&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } && {
27967 test -z "$ac_c_werror_flag" ||
27968 test ! -s conftest.err
27969 } && test -s conftest.$ac_objext; then
27970 ac_hi=$ac_mid; break
27972 echo "$as_me: failed program was:" >&5
27973 sed 's/^/| /' conftest.$ac_ext >&5
27975 ac_lo=`expr $ac_mid + 1`
27976 if test $ac_lo -le $ac_mid; then
27980 ac_mid=`expr 2 '*' $ac_mid + 1`
27983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27986 echo "$as_me: failed program was:" >&5
27987 sed 's/^/| /' conftest.$ac_ext >&5
27989 cat >conftest.$ac_ext <<_ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27995 $ac_includes_default
27996 typedef char ac__type_sizeof_;
28000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28007 rm -f conftest.$ac_objext
28008 if { (ac_try="$ac_compile"
28009 case "(($ac_try" in
28010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28011 *) ac_try_echo=$ac_try;;
28013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28014 (eval "$ac_compile") 2>conftest.er1
28016 grep -v '^ *+' conftest.er1 >conftest.err
28018 cat conftest.err >&5
28019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); } && {
28021 test -z "$ac_c_werror_flag" ||
28022 test ! -s conftest.err
28023 } && test -s conftest.$ac_objext; then
28026 cat >conftest.$ac_ext <<_ACEOF
28029 cat confdefs.h >>conftest.$ac_ext
28030 cat >>conftest.$ac_ext <<_ACEOF
28031 /* end confdefs.h. */
28032 $ac_includes_default
28033 typedef char ac__type_sizeof_;
28037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28044 rm -f conftest.$ac_objext
28045 if { (ac_try="$ac_compile"
28046 case "(($ac_try" in
28047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048 *) ac_try_echo=$ac_try;;
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051 (eval "$ac_compile") 2>conftest.er1
28053 grep -v '^ *+' conftest.er1 >conftest.err
28055 cat conftest.err >&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } && {
28058 test -z "$ac_c_werror_flag" ||
28059 test ! -s conftest.err
28060 } && test -s conftest.$ac_objext; then
28061 ac_lo=$ac_mid; break
28063 echo "$as_me: failed program was:" >&5
28064 sed 's/^/| /' conftest.$ac_ext >&5
28066 ac_hi=`expr '(' $ac_mid ')' - 1`
28067 if test $ac_mid -le $ac_hi; then
28071 ac_mid=`expr 2 '*' $ac_mid`
28074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28077 echo "$as_me: failed program was:" >&5
28078 sed 's/^/| /' conftest.$ac_ext >&5
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28087 # Binary search between lo and hi bounds.
28088 while test "x$ac_lo" != "x$ac_hi"; do
28089 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28090 cat >conftest.$ac_ext <<_ACEOF
28093 cat confdefs.h >>conftest.$ac_ext
28094 cat >>conftest.$ac_ext <<_ACEOF
28095 /* end confdefs.h. */
28096 $ac_includes_default
28097 typedef char ac__type_sizeof_;
28101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28108 rm -f conftest.$ac_objext
28109 if { (ac_try="$ac_compile"
28110 case "(($ac_try" in
28111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28112 *) ac_try_echo=$ac_try;;
28114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28115 (eval "$ac_compile") 2>conftest.er1
28117 grep -v '^ *+' conftest.er1 >conftest.err
28119 cat conftest.err >&5
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); } && {
28122 test -z "$ac_c_werror_flag" ||
28123 test ! -s conftest.err
28124 } && test -s conftest.$ac_objext; then
28127 echo "$as_me: failed program was:" >&5
28128 sed 's/^/| /' conftest.$ac_ext >&5
28130 ac_lo=`expr '(' $ac_mid ')' + 1`
28133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28136 ?*) ac_cv_sizeof_char=$ac_lo;;
28137 '') if test "$ac_cv_type_char" = yes; then
28138 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28139 See \`config.log' for more details." >&5
28140 echo "$as_me: error: cannot compute sizeof (char)
28141 See \`config.log' for more details." >&2;}
28142 { (exit 77); exit 77; }; }
28144 ac_cv_sizeof_char=0
28148 cat >conftest.$ac_ext <<_ACEOF
28151 cat confdefs.h >>conftest.$ac_ext
28152 cat >>conftest.$ac_ext <<_ACEOF
28153 /* end confdefs.h. */
28154 $ac_includes_default
28155 typedef char ac__type_sizeof_;
28156 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28157 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28159 #include <stdlib.h>
28164 FILE *f = fopen ("conftest.val", "w");
28167 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28169 long int i = longval ();
28170 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28172 fprintf (f, "%ld\n", i);
28176 unsigned long int i = ulongval ();
28177 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28179 fprintf (f, "%lu\n", i);
28181 return ferror (f) || fclose (f) != 0;
28187 rm -f conftest$ac_exeext
28188 if { (ac_try="$ac_link"
28189 case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_link") 2>&5
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28198 { (case "(($ac_try" in
28199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28200 *) ac_try_echo=$ac_try;;
28202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28203 (eval "$ac_try") 2>&5
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; }; then
28207 ac_cv_sizeof_char=`cat conftest.val`
28209 echo "$as_me: program exited with status $ac_status" >&5
28210 echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28213 ( exit $ac_status )
28214 if test "$ac_cv_type_char" = yes; then
28215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28216 See \`config.log' for more details." >&5
28217 echo "$as_me: error: cannot compute sizeof (char)
28218 See \`config.log' for more details." >&2;}
28219 { (exit 77); exit 77; }; }
28221 ac_cv_sizeof_char=0
28224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28228 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
28229 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
28233 cat >>confdefs.h <<_ACEOF
28234 #define SIZEOF_CHAR $ac_cv_sizeof_char
28238 { echo "$as_me:$LINENO: checking for short int" >&5
28239 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
28240 if test "${ac_cv_type_short_int+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28243 cat >conftest.$ac_ext <<_ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h. */
28249 $ac_includes_default
28250 typedef short int ac__type_new_;
28254 if ((ac__type_new_ *) 0)
28256 if (sizeof (ac__type_new_))
28262 rm -f conftest.$ac_objext
28263 if { (ac_try="$ac_compile"
28264 case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269 (eval "$ac_compile") 2>conftest.er1
28271 grep -v '^ *+' conftest.er1 >conftest.err
28273 cat conftest.err >&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); } && {
28276 test -z "$ac_c_werror_flag" ||
28277 test ! -s conftest.err
28278 } && test -s conftest.$ac_objext; then
28279 ac_cv_type_short_int=yes
28281 echo "$as_me: failed program was:" >&5
28282 sed 's/^/| /' conftest.$ac_ext >&5
28284 ac_cv_type_short_int=no
28287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28289 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
28290 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
28292 # The cast to long int works around a bug in the HP C Compiler
28293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28295 # This bug is HP SR number 8606223364.
28296 { echo "$as_me:$LINENO: checking size of short int" >&5
28297 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
28298 if test "${ac_cv_sizeof_short_int+set}" = set; then
28299 echo $ECHO_N "(cached) $ECHO_C" >&6
28301 if test "$cross_compiling" = yes; then
28302 # Depending upon the size, compute the lo and hi bounds.
28303 cat >conftest.$ac_ext <<_ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h. */
28309 $ac_includes_default
28310 typedef short int ac__type_sizeof_;
28314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28321 rm -f conftest.$ac_objext
28322 if { (ac_try="$ac_compile"
28323 case "(($ac_try" in
28324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325 *) ac_try_echo=$ac_try;;
28327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328 (eval "$ac_compile") 2>conftest.er1
28330 grep -v '^ *+' conftest.er1 >conftest.err
28332 cat conftest.err >&5
28333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334 (exit $ac_status); } && {
28335 test -z "$ac_c_werror_flag" ||
28336 test ! -s conftest.err
28337 } && test -s conftest.$ac_objext; then
28340 cat >conftest.$ac_ext <<_ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28346 $ac_includes_default
28347 typedef short int ac__type_sizeof_;
28351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28358 rm -f conftest.$ac_objext
28359 if { (ac_try="$ac_compile"
28360 case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_compile") 2>conftest.er1
28367 grep -v '^ *+' conftest.er1 >conftest.err
28369 cat conftest.err >&5
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); } && {
28372 test -z "$ac_c_werror_flag" ||
28373 test ! -s conftest.err
28374 } && test -s conftest.$ac_objext; then
28375 ac_hi=$ac_mid; break
28377 echo "$as_me: failed program was:" >&5
28378 sed 's/^/| /' conftest.$ac_ext >&5
28380 ac_lo=`expr $ac_mid + 1`
28381 if test $ac_lo -le $ac_mid; then
28385 ac_mid=`expr 2 '*' $ac_mid + 1`
28388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28391 echo "$as_me: failed program was:" >&5
28392 sed 's/^/| /' conftest.$ac_ext >&5
28394 cat >conftest.$ac_ext <<_ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h. */
28400 $ac_includes_default
28401 typedef short int ac__type_sizeof_;
28405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28412 rm -f conftest.$ac_objext
28413 if { (ac_try="$ac_compile"
28414 case "(($ac_try" in
28415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416 *) ac_try_echo=$ac_try;;
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419 (eval "$ac_compile") 2>conftest.er1
28421 grep -v '^ *+' conftest.er1 >conftest.err
28423 cat conftest.err >&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); } && {
28426 test -z "$ac_c_werror_flag" ||
28427 test ! -s conftest.err
28428 } && test -s conftest.$ac_objext; then
28431 cat >conftest.$ac_ext <<_ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h. */
28437 $ac_includes_default
28438 typedef short int ac__type_sizeof_;
28442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28449 rm -f conftest.$ac_objext
28450 if { (ac_try="$ac_compile"
28451 case "(($ac_try" in
28452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453 *) ac_try_echo=$ac_try;;
28455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28456 (eval "$ac_compile") 2>conftest.er1
28458 grep -v '^ *+' conftest.er1 >conftest.err
28460 cat conftest.err >&5
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); } && {
28463 test -z "$ac_c_werror_flag" ||
28464 test ! -s conftest.err
28465 } && test -s conftest.$ac_objext; then
28466 ac_lo=$ac_mid; break
28468 echo "$as_me: failed program was:" >&5
28469 sed 's/^/| /' conftest.$ac_ext >&5
28471 ac_hi=`expr '(' $ac_mid ')' - 1`
28472 if test $ac_mid -le $ac_hi; then
28476 ac_mid=`expr 2 '*' $ac_mid`
28479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28482 echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28492 # Binary search between lo and hi bounds.
28493 while test "x$ac_lo" != "x$ac_hi"; do
28494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28495 cat >conftest.$ac_ext <<_ACEOF
28498 cat confdefs.h >>conftest.$ac_ext
28499 cat >>conftest.$ac_ext <<_ACEOF
28500 /* end confdefs.h. */
28501 $ac_includes_default
28502 typedef short int ac__type_sizeof_;
28506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28513 rm -f conftest.$ac_objext
28514 if { (ac_try="$ac_compile"
28515 case "(($ac_try" in
28516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28517 *) ac_try_echo=$ac_try;;
28519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28520 (eval "$ac_compile") 2>conftest.er1
28522 grep -v '^ *+' conftest.er1 >conftest.err
28524 cat conftest.err >&5
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); } && {
28527 test -z "$ac_c_werror_flag" ||
28528 test ! -s conftest.err
28529 } && test -s conftest.$ac_objext; then
28532 echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28535 ac_lo=`expr '(' $ac_mid ')' + 1`
28538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28541 ?*) ac_cv_sizeof_short_int=$ac_lo;;
28542 '') if test "$ac_cv_type_short_int" = yes; then
28543 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28544 See \`config.log' for more details." >&5
28545 echo "$as_me: error: cannot compute sizeof (short int)
28546 See \`config.log' for more details." >&2;}
28547 { (exit 77); exit 77; }; }
28549 ac_cv_sizeof_short_int=0
28553 cat >conftest.$ac_ext <<_ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h. */
28559 $ac_includes_default
28560 typedef short int ac__type_sizeof_;
28561 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28562 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28564 #include <stdlib.h>
28569 FILE *f = fopen ("conftest.val", "w");
28572 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28574 long int i = longval ();
28575 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28577 fprintf (f, "%ld\n", i);
28581 unsigned long int i = ulongval ();
28582 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28584 fprintf (f, "%lu\n", i);
28586 return ferror (f) || fclose (f) != 0;
28592 rm -f conftest$ac_exeext
28593 if { (ac_try="$ac_link"
28594 case "(($ac_try" in
28595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596 *) ac_try_echo=$ac_try;;
28598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28599 (eval "$ac_link") 2>&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28603 { (case "(($ac_try" in
28604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605 *) ac_try_echo=$ac_try;;
28607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608 (eval "$ac_try") 2>&5
28610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); }; }; then
28612 ac_cv_sizeof_short_int=`cat conftest.val`
28614 echo "$as_me: program exited with status $ac_status" >&5
28615 echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28618 ( exit $ac_status )
28619 if test "$ac_cv_type_short_int" = yes; then
28620 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28621 See \`config.log' for more details." >&5
28622 echo "$as_me: error: cannot compute sizeof (short int)
28623 See \`config.log' for more details." >&2;}
28624 { (exit 77); exit 77; }; }
28626 ac_cv_sizeof_short_int=0
28629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28633 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
28634 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
28638 cat >>confdefs.h <<_ACEOF
28639 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
28643 { echo "$as_me:$LINENO: checking for int" >&5
28644 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28645 if test "${ac_cv_type_int+set}" = set; then
28646 echo $ECHO_N "(cached) $ECHO_C" >&6
28648 cat >conftest.$ac_ext <<_ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h. */
28654 $ac_includes_default
28655 typedef int ac__type_new_;
28659 if ((ac__type_new_ *) 0)
28661 if (sizeof (ac__type_new_))
28667 rm -f conftest.$ac_objext
28668 if { (ac_try="$ac_compile"
28669 case "(($ac_try" in
28670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28671 *) ac_try_echo=$ac_try;;
28673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28674 (eval "$ac_compile") 2>conftest.er1
28676 grep -v '^ *+' conftest.er1 >conftest.err
28678 cat conftest.err >&5
28679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680 (exit $ac_status); } && {
28681 test -z "$ac_c_werror_flag" ||
28682 test ! -s conftest.err
28683 } && test -s conftest.$ac_objext; then
28686 echo "$as_me: failed program was:" >&5
28687 sed 's/^/| /' conftest.$ac_ext >&5
28692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28694 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28695 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28697 # The cast to long int works around a bug in the HP C Compiler
28698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28700 # This bug is HP SR number 8606223364.
28701 { echo "$as_me:$LINENO: checking size of int" >&5
28702 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28703 if test "${ac_cv_sizeof_int+set}" = set; then
28704 echo $ECHO_N "(cached) $ECHO_C" >&6
28706 if test "$cross_compiling" = yes; then
28707 # Depending upon the size, compute the lo and hi bounds.
28708 cat >conftest.$ac_ext <<_ACEOF
28711 cat confdefs.h >>conftest.$ac_ext
28712 cat >>conftest.$ac_ext <<_ACEOF
28713 /* end confdefs.h. */
28714 $ac_includes_default
28715 typedef int ac__type_sizeof_;
28719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28726 rm -f conftest.$ac_objext
28727 if { (ac_try="$ac_compile"
28728 case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_compile") 2>conftest.er1
28735 grep -v '^ *+' conftest.er1 >conftest.err
28737 cat conftest.err >&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); } && {
28740 test -z "$ac_c_werror_flag" ||
28741 test ! -s conftest.err
28742 } && test -s conftest.$ac_objext; then
28745 cat >conftest.$ac_ext <<_ACEOF
28748 cat confdefs.h >>conftest.$ac_ext
28749 cat >>conftest.$ac_ext <<_ACEOF
28750 /* end confdefs.h. */
28751 $ac_includes_default
28752 typedef int ac__type_sizeof_;
28756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28763 rm -f conftest.$ac_objext
28764 if { (ac_try="$ac_compile"
28765 case "(($ac_try" in
28766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767 *) ac_try_echo=$ac_try;;
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770 (eval "$ac_compile") 2>conftest.er1
28772 grep -v '^ *+' conftest.er1 >conftest.err
28774 cat conftest.err >&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } && {
28777 test -z "$ac_c_werror_flag" ||
28778 test ! -s conftest.err
28779 } && test -s conftest.$ac_objext; then
28780 ac_hi=$ac_mid; break
28782 echo "$as_me: failed program was:" >&5
28783 sed 's/^/| /' conftest.$ac_ext >&5
28785 ac_lo=`expr $ac_mid + 1`
28786 if test $ac_lo -le $ac_mid; then
28790 ac_mid=`expr 2 '*' $ac_mid + 1`
28793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28796 echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28799 cat >conftest.$ac_ext <<_ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h. */
28805 $ac_includes_default
28806 typedef int ac__type_sizeof_;
28810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28817 rm -f conftest.$ac_objext
28818 if { (ac_try="$ac_compile"
28819 case "(($ac_try" in
28820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821 *) ac_try_echo=$ac_try;;
28823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824 (eval "$ac_compile") 2>conftest.er1
28826 grep -v '^ *+' conftest.er1 >conftest.err
28828 cat conftest.err >&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); } && {
28831 test -z "$ac_c_werror_flag" ||
28832 test ! -s conftest.err
28833 } && test -s conftest.$ac_objext; then
28836 cat >conftest.$ac_ext <<_ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h. */
28842 $ac_includes_default
28843 typedef int ac__type_sizeof_;
28847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28854 rm -f conftest.$ac_objext
28855 if { (ac_try="$ac_compile"
28856 case "(($ac_try" in
28857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858 *) ac_try_echo=$ac_try;;
28860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861 (eval "$ac_compile") 2>conftest.er1
28863 grep -v '^ *+' conftest.er1 >conftest.err
28865 cat conftest.err >&5
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); } && {
28868 test -z "$ac_c_werror_flag" ||
28869 test ! -s conftest.err
28870 } && test -s conftest.$ac_objext; then
28871 ac_lo=$ac_mid; break
28873 echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28876 ac_hi=`expr '(' $ac_mid ')' - 1`
28877 if test $ac_mid -le $ac_hi; then
28881 ac_mid=`expr 2 '*' $ac_mid`
28884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28887 echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28897 # Binary search between lo and hi bounds.
28898 while test "x$ac_lo" != "x$ac_hi"; do
28899 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28900 cat >conftest.$ac_ext <<_ACEOF
28903 cat confdefs.h >>conftest.$ac_ext
28904 cat >>conftest.$ac_ext <<_ACEOF
28905 /* end confdefs.h. */
28906 $ac_includes_default
28907 typedef int ac__type_sizeof_;
28911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28918 rm -f conftest.$ac_objext
28919 if { (ac_try="$ac_compile"
28920 case "(($ac_try" in
28921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922 *) ac_try_echo=$ac_try;;
28924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28925 (eval "$ac_compile") 2>conftest.er1
28927 grep -v '^ *+' conftest.er1 >conftest.err
28929 cat conftest.err >&5
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); } && {
28932 test -z "$ac_c_werror_flag" ||
28933 test ! -s conftest.err
28934 } && test -s conftest.$ac_objext; then
28937 echo "$as_me: failed program was:" >&5
28938 sed 's/^/| /' conftest.$ac_ext >&5
28940 ac_lo=`expr '(' $ac_mid ')' + 1`
28943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28946 ?*) ac_cv_sizeof_int=$ac_lo;;
28947 '') if test "$ac_cv_type_int" = yes; then
28948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28949 See \`config.log' for more details." >&5
28950 echo "$as_me: error: cannot compute sizeof (int)
28951 See \`config.log' for more details." >&2;}
28952 { (exit 77); exit 77; }; }
28958 cat >conftest.$ac_ext <<_ACEOF
28961 cat confdefs.h >>conftest.$ac_ext
28962 cat >>conftest.$ac_ext <<_ACEOF
28963 /* end confdefs.h. */
28964 $ac_includes_default
28965 typedef int ac__type_sizeof_;
28966 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28967 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28969 #include <stdlib.h>
28974 FILE *f = fopen ("conftest.val", "w");
28977 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28979 long int i = longval ();
28980 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28982 fprintf (f, "%ld\n", i);
28986 unsigned long int i = ulongval ();
28987 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28989 fprintf (f, "%lu\n", i);
28991 return ferror (f) || fclose (f) != 0;
28997 rm -f conftest$ac_exeext
28998 if { (ac_try="$ac_link"
28999 case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_link") 2>&5
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29008 { (case "(($ac_try" in
29009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010 *) ac_try_echo=$ac_try;;
29012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29013 (eval "$ac_try") 2>&5
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); }; }; then
29017 ac_cv_sizeof_int=`cat conftest.val`
29019 echo "$as_me: program exited with status $ac_status" >&5
29020 echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29023 ( exit $ac_status )
29024 if test "$ac_cv_type_int" = yes; then
29025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29026 See \`config.log' for more details." >&5
29027 echo "$as_me: error: cannot compute sizeof (int)
29028 See \`config.log' for more details." >&2;}
29029 { (exit 77); exit 77; }; }
29034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29038 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29039 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29043 cat >>confdefs.h <<_ACEOF
29044 #define SIZEOF_INT $ac_cv_sizeof_int
29048 { echo "$as_me:$LINENO: checking for long int" >&5
29049 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
29050 if test "${ac_cv_type_long_int+set}" = set; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29053 cat >conftest.$ac_ext <<_ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h. */
29059 $ac_includes_default
29060 typedef long int ac__type_new_;
29064 if ((ac__type_new_ *) 0)
29066 if (sizeof (ac__type_new_))
29072 rm -f conftest.$ac_objext
29073 if { (ac_try="$ac_compile"
29074 case "(($ac_try" in
29075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29076 *) ac_try_echo=$ac_try;;
29078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29079 (eval "$ac_compile") 2>conftest.er1
29081 grep -v '^ *+' conftest.er1 >conftest.err
29083 cat conftest.err >&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); } && {
29086 test -z "$ac_c_werror_flag" ||
29087 test ! -s conftest.err
29088 } && test -s conftest.$ac_objext; then
29089 ac_cv_type_long_int=yes
29091 echo "$as_me: failed program was:" >&5
29092 sed 's/^/| /' conftest.$ac_ext >&5
29094 ac_cv_type_long_int=no
29097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29099 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
29100 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
29102 # The cast to long int works around a bug in the HP C Compiler
29103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29105 # This bug is HP SR number 8606223364.
29106 { echo "$as_me:$LINENO: checking size of long int" >&5
29107 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
29108 if test "${ac_cv_sizeof_long_int+set}" = set; then
29109 echo $ECHO_N "(cached) $ECHO_C" >&6
29111 if test "$cross_compiling" = yes; then
29112 # Depending upon the size, compute the lo and hi bounds.
29113 cat >conftest.$ac_ext <<_ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h. */
29119 $ac_includes_default
29120 typedef long int ac__type_sizeof_;
29124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29131 rm -f conftest.$ac_objext
29132 if { (ac_try="$ac_compile"
29133 case "(($ac_try" in
29134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135 *) ac_try_echo=$ac_try;;
29137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138 (eval "$ac_compile") 2>conftest.er1
29140 grep -v '^ *+' conftest.er1 >conftest.err
29142 cat conftest.err >&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); } && {
29145 test -z "$ac_c_werror_flag" ||
29146 test ! -s conftest.err
29147 } && test -s conftest.$ac_objext; then
29150 cat >conftest.$ac_ext <<_ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29156 $ac_includes_default
29157 typedef long int ac__type_sizeof_;
29161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29168 rm -f conftest.$ac_objext
29169 if { (ac_try="$ac_compile"
29170 case "(($ac_try" in
29171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172 *) ac_try_echo=$ac_try;;
29174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175 (eval "$ac_compile") 2>conftest.er1
29177 grep -v '^ *+' conftest.er1 >conftest.err
29179 cat conftest.err >&5
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); } && {
29182 test -z "$ac_c_werror_flag" ||
29183 test ! -s conftest.err
29184 } && test -s conftest.$ac_objext; then
29185 ac_hi=$ac_mid; break
29187 echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29190 ac_lo=`expr $ac_mid + 1`
29191 if test $ac_lo -le $ac_mid; then
29195 ac_mid=`expr 2 '*' $ac_mid + 1`
29198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29201 echo "$as_me: failed program was:" >&5
29202 sed 's/^/| /' conftest.$ac_ext >&5
29204 cat >conftest.$ac_ext <<_ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h. */
29210 $ac_includes_default
29211 typedef long int ac__type_sizeof_;
29215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29222 rm -f conftest.$ac_objext
29223 if { (ac_try="$ac_compile"
29224 case "(($ac_try" in
29225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226 *) ac_try_echo=$ac_try;;
29228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229 (eval "$ac_compile") 2>conftest.er1
29231 grep -v '^ *+' conftest.er1 >conftest.err
29233 cat conftest.err >&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); } && {
29236 test -z "$ac_c_werror_flag" ||
29237 test ! -s conftest.err
29238 } && test -s conftest.$ac_objext; then
29241 cat >conftest.$ac_ext <<_ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h. */
29247 $ac_includes_default
29248 typedef long int ac__type_sizeof_;
29252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29259 rm -f conftest.$ac_objext
29260 if { (ac_try="$ac_compile"
29261 case "(($ac_try" in
29262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263 *) ac_try_echo=$ac_try;;
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266 (eval "$ac_compile") 2>conftest.er1
29268 grep -v '^ *+' conftest.er1 >conftest.err
29270 cat conftest.err >&5
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); } && {
29273 test -z "$ac_c_werror_flag" ||
29274 test ! -s conftest.err
29275 } && test -s conftest.$ac_objext; then
29276 ac_lo=$ac_mid; break
29278 echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29281 ac_hi=`expr '(' $ac_mid ')' - 1`
29282 if test $ac_mid -le $ac_hi; then
29286 ac_mid=`expr 2 '*' $ac_mid`
29289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29292 echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29302 # Binary search between lo and hi bounds.
29303 while test "x$ac_lo" != "x$ac_hi"; do
29304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29305 cat >conftest.$ac_ext <<_ACEOF
29308 cat confdefs.h >>conftest.$ac_ext
29309 cat >>conftest.$ac_ext <<_ACEOF
29310 /* end confdefs.h. */
29311 $ac_includes_default
29312 typedef long int ac__type_sizeof_;
29316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29323 rm -f conftest.$ac_objext
29324 if { (ac_try="$ac_compile"
29325 case "(($ac_try" in
29326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327 *) ac_try_echo=$ac_try;;
29329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330 (eval "$ac_compile") 2>conftest.er1
29332 grep -v '^ *+' conftest.er1 >conftest.err
29334 cat conftest.err >&5
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); } && {
29337 test -z "$ac_c_werror_flag" ||
29338 test ! -s conftest.err
29339 } && test -s conftest.$ac_objext; then
29342 echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29345 ac_lo=`expr '(' $ac_mid ')' + 1`
29348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29351 ?*) ac_cv_sizeof_long_int=$ac_lo;;
29352 '') if test "$ac_cv_type_long_int" = yes; then
29353 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29354 See \`config.log' for more details." >&5
29355 echo "$as_me: error: cannot compute sizeof (long int)
29356 See \`config.log' for more details." >&2;}
29357 { (exit 77); exit 77; }; }
29359 ac_cv_sizeof_long_int=0
29363 cat >conftest.$ac_ext <<_ACEOF
29366 cat confdefs.h >>conftest.$ac_ext
29367 cat >>conftest.$ac_ext <<_ACEOF
29368 /* end confdefs.h. */
29369 $ac_includes_default
29370 typedef long int ac__type_sizeof_;
29371 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29372 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29374 #include <stdlib.h>
29379 FILE *f = fopen ("conftest.val", "w");
29382 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29384 long int i = longval ();
29385 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29387 fprintf (f, "%ld\n", i);
29391 unsigned long int i = ulongval ();
29392 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29394 fprintf (f, "%lu\n", i);
29396 return ferror (f) || fclose (f) != 0;
29402 rm -f conftest$ac_exeext
29403 if { (ac_try="$ac_link"
29404 case "(($ac_try" in
29405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29406 *) ac_try_echo=$ac_try;;
29408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29409 (eval "$ac_link") 2>&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29413 { (case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_try") 2>&5
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; }; then
29422 ac_cv_sizeof_long_int=`cat conftest.val`
29424 echo "$as_me: program exited with status $ac_status" >&5
29425 echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29428 ( exit $ac_status )
29429 if test "$ac_cv_type_long_int" = yes; then
29430 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29431 See \`config.log' for more details." >&5
29432 echo "$as_me: error: cannot compute sizeof (long int)
29433 See \`config.log' for more details." >&2;}
29434 { (exit 77); exit 77; }; }
29436 ac_cv_sizeof_long_int=0
29439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29443 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
29444 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
29448 cat >>confdefs.h <<_ACEOF
29449 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
29453 { echo "$as_me:$LINENO: checking for long long int" >&5
29454 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
29455 if test "${ac_cv_type_long_long_int+set}" = set; then
29456 echo $ECHO_N "(cached) $ECHO_C" >&6
29458 cat >conftest.$ac_ext <<_ACEOF
29461 cat confdefs.h >>conftest.$ac_ext
29462 cat >>conftest.$ac_ext <<_ACEOF
29463 /* end confdefs.h. */
29464 $ac_includes_default
29465 typedef long long int ac__type_new_;
29469 if ((ac__type_new_ *) 0)
29471 if (sizeof (ac__type_new_))
29477 rm -f conftest.$ac_objext
29478 if { (ac_try="$ac_compile"
29479 case "(($ac_try" in
29480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29481 *) ac_try_echo=$ac_try;;
29483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29484 (eval "$ac_compile") 2>conftest.er1
29486 grep -v '^ *+' conftest.er1 >conftest.err
29488 cat conftest.err >&5
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); } && {
29491 test -z "$ac_c_werror_flag" ||
29492 test ! -s conftest.err
29493 } && test -s conftest.$ac_objext; then
29494 ac_cv_type_long_long_int=yes
29496 echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29499 ac_cv_type_long_long_int=no
29502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29504 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
29505 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
29507 # The cast to long int works around a bug in the HP C Compiler
29508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29510 # This bug is HP SR number 8606223364.
29511 { echo "$as_me:$LINENO: checking size of long long int" >&5
29512 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
29513 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
29514 echo $ECHO_N "(cached) $ECHO_C" >&6
29516 if test "$cross_compiling" = yes; then
29517 # Depending upon the size, compute the lo and hi bounds.
29518 cat >conftest.$ac_ext <<_ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h. */
29524 $ac_includes_default
29525 typedef long long int ac__type_sizeof_;
29529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29536 rm -f conftest.$ac_objext
29537 if { (ac_try="$ac_compile"
29538 case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_compile") 2>conftest.er1
29545 grep -v '^ *+' conftest.er1 >conftest.err
29547 cat conftest.err >&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } && {
29550 test -z "$ac_c_werror_flag" ||
29551 test ! -s conftest.err
29552 } && test -s conftest.$ac_objext; then
29555 cat >conftest.$ac_ext <<_ACEOF
29558 cat confdefs.h >>conftest.$ac_ext
29559 cat >>conftest.$ac_ext <<_ACEOF
29560 /* end confdefs.h. */
29561 $ac_includes_default
29562 typedef long long int ac__type_sizeof_;
29566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29573 rm -f conftest.$ac_objext
29574 if { (ac_try="$ac_compile"
29575 case "(($ac_try" in
29576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577 *) ac_try_echo=$ac_try;;
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580 (eval "$ac_compile") 2>conftest.er1
29582 grep -v '^ *+' conftest.er1 >conftest.err
29584 cat conftest.err >&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); } && {
29587 test -z "$ac_c_werror_flag" ||
29588 test ! -s conftest.err
29589 } && test -s conftest.$ac_objext; then
29590 ac_hi=$ac_mid; break
29592 echo "$as_me: failed program was:" >&5
29593 sed 's/^/| /' conftest.$ac_ext >&5
29595 ac_lo=`expr $ac_mid + 1`
29596 if test $ac_lo -le $ac_mid; then
29600 ac_mid=`expr 2 '*' $ac_mid + 1`
29603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29606 echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29609 cat >conftest.$ac_ext <<_ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h. */
29615 $ac_includes_default
29616 typedef long long int ac__type_sizeof_;
29620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29627 rm -f conftest.$ac_objext
29628 if { (ac_try="$ac_compile"
29629 case "(($ac_try" in
29630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631 *) ac_try_echo=$ac_try;;
29633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634 (eval "$ac_compile") 2>conftest.er1
29636 grep -v '^ *+' conftest.er1 >conftest.err
29638 cat conftest.err >&5
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); } && {
29641 test -z "$ac_c_werror_flag" ||
29642 test ! -s conftest.err
29643 } && test -s conftest.$ac_objext; then
29646 cat >conftest.$ac_ext <<_ACEOF
29649 cat confdefs.h >>conftest.$ac_ext
29650 cat >>conftest.$ac_ext <<_ACEOF
29651 /* end confdefs.h. */
29652 $ac_includes_default
29653 typedef long long int ac__type_sizeof_;
29657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29664 rm -f conftest.$ac_objext
29665 if { (ac_try="$ac_compile"
29666 case "(($ac_try" in
29667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29668 *) ac_try_echo=$ac_try;;
29670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29671 (eval "$ac_compile") 2>conftest.er1
29673 grep -v '^ *+' conftest.er1 >conftest.err
29675 cat conftest.err >&5
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); } && {
29678 test -z "$ac_c_werror_flag" ||
29679 test ! -s conftest.err
29680 } && test -s conftest.$ac_objext; then
29681 ac_lo=$ac_mid; break
29683 echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29686 ac_hi=`expr '(' $ac_mid ')' - 1`
29687 if test $ac_mid -le $ac_hi; then
29691 ac_mid=`expr 2 '*' $ac_mid`
29694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29697 echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29707 # Binary search between lo and hi bounds.
29708 while test "x$ac_lo" != "x$ac_hi"; do
29709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29710 cat >conftest.$ac_ext <<_ACEOF
29713 cat confdefs.h >>conftest.$ac_ext
29714 cat >>conftest.$ac_ext <<_ACEOF
29715 /* end confdefs.h. */
29716 $ac_includes_default
29717 typedef long long int ac__type_sizeof_;
29721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29728 rm -f conftest.$ac_objext
29729 if { (ac_try="$ac_compile"
29730 case "(($ac_try" in
29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732 *) ac_try_echo=$ac_try;;
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735 (eval "$ac_compile") 2>conftest.er1
29737 grep -v '^ *+' conftest.er1 >conftest.err
29739 cat conftest.err >&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } && {
29742 test -z "$ac_c_werror_flag" ||
29743 test ! -s conftest.err
29744 } && test -s conftest.$ac_objext; then
29747 echo "$as_me: failed program was:" >&5
29748 sed 's/^/| /' conftest.$ac_ext >&5
29750 ac_lo=`expr '(' $ac_mid ')' + 1`
29753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29756 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
29757 '') if test "$ac_cv_type_long_long_int" = yes; then
29758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29759 See \`config.log' for more details." >&5
29760 echo "$as_me: error: cannot compute sizeof (long long int)
29761 See \`config.log' for more details." >&2;}
29762 { (exit 77); exit 77; }; }
29764 ac_cv_sizeof_long_long_int=0
29768 cat >conftest.$ac_ext <<_ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h. */
29774 $ac_includes_default
29775 typedef long long int ac__type_sizeof_;
29776 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29777 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29779 #include <stdlib.h>
29784 FILE *f = fopen ("conftest.val", "w");
29787 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29789 long int i = longval ();
29790 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29792 fprintf (f, "%ld\n", i);
29796 unsigned long int i = ulongval ();
29797 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29799 fprintf (f, "%lu\n", i);
29801 return ferror (f) || fclose (f) != 0;
29807 rm -f conftest$ac_exeext
29808 if { (ac_try="$ac_link"
29809 case "(($ac_try" in
29810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811 *) ac_try_echo=$ac_try;;
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814 (eval "$ac_link") 2>&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29818 { (case "(($ac_try" in
29819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820 *) ac_try_echo=$ac_try;;
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823 (eval "$ac_try") 2>&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; }; then
29827 ac_cv_sizeof_long_long_int=`cat conftest.val`
29829 echo "$as_me: program exited with status $ac_status" >&5
29830 echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29833 ( exit $ac_status )
29834 if test "$ac_cv_type_long_long_int" = yes; then
29835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29836 See \`config.log' for more details." >&5
29837 echo "$as_me: error: cannot compute sizeof (long long int)
29838 See \`config.log' for more details." >&2;}
29839 { (exit 77); exit 77; }; }
29841 ac_cv_sizeof_long_long_int=0
29844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29848 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
29849 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
29853 cat >>confdefs.h <<_ACEOF
29854 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
29858 { echo "$as_me:$LINENO: checking for int *" >&5
29859 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
29860 if test "${ac_cv_type_int_p+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
29863 cat >conftest.$ac_ext <<_ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h. */
29869 $ac_includes_default
29870 typedef int * ac__type_new_;
29874 if ((ac__type_new_ *) 0)
29876 if (sizeof (ac__type_new_))
29882 rm -f conftest.$ac_objext
29883 if { (ac_try="$ac_compile"
29884 case "(($ac_try" in
29885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889 (eval "$ac_compile") 2>conftest.er1
29891 grep -v '^ *+' conftest.er1 >conftest.err
29893 cat conftest.err >&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } && {
29896 test -z "$ac_c_werror_flag" ||
29897 test ! -s conftest.err
29898 } && test -s conftest.$ac_objext; then
29899 ac_cv_type_int_p=yes
29901 echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29904 ac_cv_type_int_p=no
29907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29909 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
29910 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
29912 # The cast to long int works around a bug in the HP C Compiler
29913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29915 # This bug is HP SR number 8606223364.
29916 { echo "$as_me:$LINENO: checking size of int *" >&5
29917 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
29918 if test "${ac_cv_sizeof_int_p+set}" = set; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29921 if test "$cross_compiling" = yes; then
29922 # Depending upon the size, compute the lo and hi bounds.
29923 cat >conftest.$ac_ext <<_ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h. */
29929 $ac_includes_default
29930 typedef int * ac__type_sizeof_;
29934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29941 rm -f conftest.$ac_objext
29942 if { (ac_try="$ac_compile"
29943 case "(($ac_try" in
29944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29945 *) ac_try_echo=$ac_try;;
29947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29948 (eval "$ac_compile") 2>conftest.er1
29950 grep -v '^ *+' conftest.er1 >conftest.err
29952 cat conftest.err >&5
29953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954 (exit $ac_status); } && {
29955 test -z "$ac_c_werror_flag" ||
29956 test ! -s conftest.err
29957 } && test -s conftest.$ac_objext; then
29960 cat >conftest.$ac_ext <<_ACEOF
29963 cat confdefs.h >>conftest.$ac_ext
29964 cat >>conftest.$ac_ext <<_ACEOF
29965 /* end confdefs.h. */
29966 $ac_includes_default
29967 typedef int * ac__type_sizeof_;
29971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29978 rm -f conftest.$ac_objext
29979 if { (ac_try="$ac_compile"
29980 case "(($ac_try" in
29981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29982 *) ac_try_echo=$ac_try;;
29984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29985 (eval "$ac_compile") 2>conftest.er1
29987 grep -v '^ *+' conftest.er1 >conftest.err
29989 cat conftest.err >&5
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); } && {
29992 test -z "$ac_c_werror_flag" ||
29993 test ! -s conftest.err
29994 } && test -s conftest.$ac_objext; then
29995 ac_hi=$ac_mid; break
29997 echo "$as_me: failed program was:" >&5
29998 sed 's/^/| /' conftest.$ac_ext >&5
30000 ac_lo=`expr $ac_mid + 1`
30001 if test $ac_lo -le $ac_mid; then
30005 ac_mid=`expr 2 '*' $ac_mid + 1`
30008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30014 cat >conftest.$ac_ext <<_ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h. */
30020 $ac_includes_default
30021 typedef int * ac__type_sizeof_;
30025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30032 rm -f conftest.$ac_objext
30033 if { (ac_try="$ac_compile"
30034 case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_compile") 2>conftest.er1
30041 grep -v '^ *+' conftest.er1 >conftest.err
30043 cat conftest.err >&5
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); } && {
30046 test -z "$ac_c_werror_flag" ||
30047 test ! -s conftest.err
30048 } && test -s conftest.$ac_objext; then
30051 cat >conftest.$ac_ext <<_ACEOF
30054 cat confdefs.h >>conftest.$ac_ext
30055 cat >>conftest.$ac_ext <<_ACEOF
30056 /* end confdefs.h. */
30057 $ac_includes_default
30058 typedef int * ac__type_sizeof_;
30062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30069 rm -f conftest.$ac_objext
30070 if { (ac_try="$ac_compile"
30071 case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_compile") 2>conftest.er1
30078 grep -v '^ *+' conftest.er1 >conftest.err
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } && {
30083 test -z "$ac_c_werror_flag" ||
30084 test ! -s conftest.err
30085 } && test -s conftest.$ac_objext; then
30086 ac_lo=$ac_mid; break
30088 echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30091 ac_hi=`expr '(' $ac_mid ')' - 1`
30092 if test $ac_mid -le $ac_hi; then
30096 ac_mid=`expr 2 '*' $ac_mid`
30099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30102 echo "$as_me: failed program was:" >&5
30103 sed 's/^/| /' conftest.$ac_ext >&5
30108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30112 # Binary search between lo and hi bounds.
30113 while test "x$ac_lo" != "x$ac_hi"; do
30114 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30115 cat >conftest.$ac_ext <<_ACEOF
30118 cat confdefs.h >>conftest.$ac_ext
30119 cat >>conftest.$ac_ext <<_ACEOF
30120 /* end confdefs.h. */
30121 $ac_includes_default
30122 typedef int * ac__type_sizeof_;
30126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30133 rm -f conftest.$ac_objext
30134 if { (ac_try="$ac_compile"
30135 case "(($ac_try" in
30136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_compile") 2>conftest.er1
30142 grep -v '^ *+' conftest.er1 >conftest.err
30144 cat conftest.err >&5
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } && {
30147 test -z "$ac_c_werror_flag" ||
30148 test ! -s conftest.err
30149 } && test -s conftest.$ac_objext; then
30152 echo "$as_me: failed program was:" >&5
30153 sed 's/^/| /' conftest.$ac_ext >&5
30155 ac_lo=`expr '(' $ac_mid ')' + 1`
30158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30161 ?*) ac_cv_sizeof_int_p=$ac_lo;;
30162 '') if test "$ac_cv_type_int_p" = yes; then
30163 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30164 See \`config.log' for more details." >&5
30165 echo "$as_me: error: cannot compute sizeof (int *)
30166 See \`config.log' for more details." >&2;}
30167 { (exit 77); exit 77; }; }
30169 ac_cv_sizeof_int_p=0
30173 cat >conftest.$ac_ext <<_ACEOF
30176 cat confdefs.h >>conftest.$ac_ext
30177 cat >>conftest.$ac_ext <<_ACEOF
30178 /* end confdefs.h. */
30179 $ac_includes_default
30180 typedef int * ac__type_sizeof_;
30181 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30182 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30184 #include <stdlib.h>
30189 FILE *f = fopen ("conftest.val", "w");
30192 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30194 long int i = longval ();
30195 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30197 fprintf (f, "%ld\n", i);
30201 unsigned long int i = ulongval ();
30202 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30204 fprintf (f, "%lu\n", i);
30206 return ferror (f) || fclose (f) != 0;
30212 rm -f conftest$ac_exeext
30213 if { (ac_try="$ac_link"
30214 case "(($ac_try" in
30215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30216 *) ac_try_echo=$ac_try;;
30218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30219 (eval "$ac_link") 2>&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30223 { (case "(($ac_try" in
30224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30225 *) ac_try_echo=$ac_try;;
30227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30228 (eval "$ac_try") 2>&5
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); }; }; then
30232 ac_cv_sizeof_int_p=`cat conftest.val`
30234 echo "$as_me: program exited with status $ac_status" >&5
30235 echo "$as_me: failed program was:" >&5
30236 sed 's/^/| /' conftest.$ac_ext >&5
30238 ( exit $ac_status )
30239 if test "$ac_cv_type_int_p" = yes; then
30240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30241 See \`config.log' for more details." >&5
30242 echo "$as_me: error: cannot compute sizeof (int *)
30243 See \`config.log' for more details." >&2;}
30244 { (exit 77); exit 77; }; }
30246 ac_cv_sizeof_int_p=0
30249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30253 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
30254 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
30258 cat >>confdefs.h <<_ACEOF
30259 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
30264 # Check for sys/types.h types
30265 { echo "$as_me:$LINENO: checking for u_int type" >&5
30266 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
30267 if test "${ac_cv_have_u_int+set}" = set; then
30268 echo $ECHO_N "(cached) $ECHO_C" >&6
30271 cat >conftest.$ac_ext <<_ACEOF
30274 cat confdefs.h >>conftest.$ac_ext
30275 cat >>conftest.$ac_ext <<_ACEOF
30276 /* end confdefs.h. */
30277 #include <sys/types.h>
30286 rm -f conftest.$ac_objext
30287 if { (ac_try="$ac_compile"
30288 case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293 (eval "$ac_compile") 2>conftest.er1
30295 grep -v '^ *+' conftest.er1 >conftest.err
30297 cat conftest.err >&5
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); } && {
30300 test -z "$ac_c_werror_flag" ||
30301 test ! -s conftest.err
30302 } && test -s conftest.$ac_objext; then
30303 ac_cv_have_u_int="yes"
30305 echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30308 ac_cv_have_u_int="no"
30312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30315 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
30316 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
30317 if test "x$ac_cv_have_u_int" = "xyes" ; then
30318 cat >>confdefs.h <<\_ACEOF
30319 #define HAVE_U_INT 1
30325 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
30326 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
30327 if test "${ac_cv_have_intmax_t+set}" = set; then
30328 echo $ECHO_N "(cached) $ECHO_C" >&6
30331 cat >conftest.$ac_ext <<_ACEOF
30334 cat confdefs.h >>conftest.$ac_ext
30335 cat >>conftest.$ac_ext <<_ACEOF
30336 /* end confdefs.h. */
30337 #include <sys/types.h>
30346 rm -f conftest.$ac_objext
30347 if { (ac_try="$ac_compile"
30348 case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_compile") 2>conftest.er1
30355 grep -v '^ *+' conftest.er1 >conftest.err
30357 cat conftest.err >&5
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); } && {
30360 test -z "$ac_c_werror_flag" ||
30361 test ! -s conftest.err
30362 } && test -s conftest.$ac_objext; then
30363 ac_cv_have_intmax_t="yes"
30365 echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30369 cat >conftest.$ac_ext <<_ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h. */
30375 #include <stdint.h>
30384 rm -f conftest.$ac_objext
30385 if { (ac_try="$ac_compile"
30386 case "(($ac_try" in
30387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388 *) ac_try_echo=$ac_try;;
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391 (eval "$ac_compile") 2>conftest.er1
30393 grep -v '^ *+' conftest.er1 >conftest.err
30395 cat conftest.err >&5
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); } && {
30398 test -z "$ac_c_werror_flag" ||
30399 test ! -s conftest.err
30400 } && test -s conftest.$ac_objext; then
30401 ac_cv_have_intmax_t="yes"
30403 echo "$as_me: failed program was:" >&5
30404 sed 's/^/| /' conftest.$ac_ext >&5
30406 ac_cv_have_intmax_t="no"
30410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30419 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
30420 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
30421 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
30422 cat >>confdefs.h <<\_ACEOF
30423 #define HAVE_INTMAX_T 1
30430 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
30431 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
30432 if test "${ac_cv_have_u_intmax_t+set}" = set; then
30433 echo $ECHO_N "(cached) $ECHO_C" >&6
30436 cat >conftest.$ac_ext <<_ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h. */
30442 #include <sys/types.h>
30446 u_intmax_t a; a = 1;
30451 rm -f conftest.$ac_objext
30452 if { (ac_try="$ac_compile"
30453 case "(($ac_try" in
30454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455 *) ac_try_echo=$ac_try;;
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458 (eval "$ac_compile") 2>conftest.er1
30460 grep -v '^ *+' conftest.er1 >conftest.err
30462 cat conftest.err >&5
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); } && {
30465 test -z "$ac_c_werror_flag" ||
30466 test ! -s conftest.err
30467 } && test -s conftest.$ac_objext; then
30468 ac_cv_have_u_intmax_t="yes"
30470 echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.$ac_ext >&5
30474 cat >conftest.$ac_ext <<_ACEOF
30477 cat confdefs.h >>conftest.$ac_ext
30478 cat >>conftest.$ac_ext <<_ACEOF
30479 /* end confdefs.h. */
30480 #include <stdint.h>
30484 u_intmax_t a; a = 1;
30489 rm -f conftest.$ac_objext
30490 if { (ac_try="$ac_compile"
30491 case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_compile") 2>conftest.er1
30498 grep -v '^ *+' conftest.er1 >conftest.err
30500 cat conftest.err >&5
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); } && {
30503 test -z "$ac_c_werror_flag" ||
30504 test ! -s conftest.err
30505 } && test -s conftest.$ac_objext; then
30506 ac_cv_have_u_intmax_t="yes"
30508 echo "$as_me: failed program was:" >&5
30509 sed 's/^/| /' conftest.$ac_ext >&5
30511 ac_cv_have_u_intmax_t="no"
30515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30523 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
30524 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
30525 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
30526 cat >>confdefs.h <<\_ACEOF
30527 #define HAVE_U_INTMAX_T 1
30534 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
30535 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
30536 if test "${ac_cv_have_intxx_t+set}" = set; then
30537 echo $ECHO_N "(cached) $ECHO_C" >&6
30540 cat >conftest.$ac_ext <<_ACEOF
30543 cat confdefs.h >>conftest.$ac_ext
30544 cat >>conftest.$ac_ext <<_ACEOF
30545 /* end confdefs.h. */
30546 #include <sys/types.h>
30550 int8_t a; int16_t b; int32_t c; a = b = c = 1;
30555 rm -f conftest.$ac_objext
30556 if { (ac_try="$ac_compile"
30557 case "(($ac_try" in
30558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30559 *) ac_try_echo=$ac_try;;
30561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30562 (eval "$ac_compile") 2>conftest.er1
30564 grep -v '^ *+' conftest.er1 >conftest.err
30566 cat conftest.err >&5
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); } && {
30569 test -z "$ac_c_werror_flag" ||
30570 test ! -s conftest.err
30571 } && test -s conftest.$ac_objext; then
30572 ac_cv_have_intxx_t="yes"
30574 echo "$as_me: failed program was:" >&5
30575 sed 's/^/| /' conftest.$ac_ext >&5
30577 ac_cv_have_intxx_t="no"
30581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30584 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
30585 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
30586 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
30587 cat >>confdefs.h <<\_ACEOF
30588 #define HAVE_INTXX_T 1
30594 { echo "$as_me:$LINENO: checking for int64_t type" >&5
30595 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
30596 if test "${ac_cv_have_int64_t+set}" = set; then
30597 echo $ECHO_N "(cached) $ECHO_C" >&6
30600 cat >conftest.$ac_ext <<_ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h. */
30606 #include <sys/types.h>
30615 rm -f conftest.$ac_objext
30616 if { (ac_try="$ac_compile"
30617 case "(($ac_try" in
30618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_compile") 2>conftest.er1
30624 grep -v '^ *+' conftest.er1 >conftest.err
30626 cat conftest.err >&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); } && {
30629 test -z "$ac_c_werror_flag" ||
30630 test ! -s conftest.err
30631 } && test -s conftest.$ac_objext; then
30632 ac_cv_have_int64_t="yes"
30634 echo "$as_me: failed program was:" >&5
30635 sed 's/^/| /' conftest.$ac_ext >&5
30637 ac_cv_have_int64_t="no"
30641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30644 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
30645 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
30646 if test "x$ac_cv_have_int64_t" = "xyes" ; then
30647 cat >>confdefs.h <<\_ACEOF
30648 #define HAVE_INT64_T 1
30654 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
30655 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
30656 if test "${ac_cv_have_u_intxx_t+set}" = set; then
30657 echo $ECHO_N "(cached) $ECHO_C" >&6
30660 cat >conftest.$ac_ext <<_ACEOF
30663 cat confdefs.h >>conftest.$ac_ext
30664 cat >>conftest.$ac_ext <<_ACEOF
30665 /* end confdefs.h. */
30666 #include <sys/types.h>
30670 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
30675 rm -f conftest.$ac_objext
30676 if { (ac_try="$ac_compile"
30677 case "(($ac_try" in
30678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679 *) ac_try_echo=$ac_try;;
30681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682 (eval "$ac_compile") 2>conftest.er1
30684 grep -v '^ *+' conftest.er1 >conftest.err
30686 cat conftest.err >&5
30687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); } && {
30689 test -z "$ac_c_werror_flag" ||
30690 test ! -s conftest.err
30691 } && test -s conftest.$ac_objext; then
30692 ac_cv_have_u_intxx_t="yes"
30694 echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30697 ac_cv_have_u_intxx_t="no"
30701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30704 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
30705 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
30706 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
30707 cat >>confdefs.h <<\_ACEOF
30708 #define HAVE_U_INTXX_T 1
30714 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
30715 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
30716 if test "${ac_cv_have_u_int64_t+set}" = set; then
30717 echo $ECHO_N "(cached) $ECHO_C" >&6
30720 cat >conftest.$ac_ext <<_ACEOF
30723 cat confdefs.h >>conftest.$ac_ext
30724 cat >>conftest.$ac_ext <<_ACEOF
30725 /* end confdefs.h. */
30726 #include <sys/types.h>
30730 u_int64_t a; a = 1;
30735 rm -f conftest.$ac_objext
30736 if { (ac_try="$ac_compile"
30737 case "(($ac_try" in
30738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30739 *) ac_try_echo=$ac_try;;
30741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30742 (eval "$ac_compile") 2>conftest.er1
30744 grep -v '^ *+' conftest.er1 >conftest.err
30746 cat conftest.err >&5
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); } && {
30749 test -z "$ac_c_werror_flag" ||
30750 test ! -s conftest.err
30751 } && test -s conftest.$ac_objext; then
30752 ac_cv_have_u_int64_t="yes"
30754 echo "$as_me: failed program was:" >&5
30755 sed 's/^/| /' conftest.$ac_ext >&5
30757 ac_cv_have_u_int64_t="no"
30761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30764 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
30765 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
30766 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
30767 cat >>confdefs.h <<\_ACEOF
30768 #define HAVE_U_INT64_T 1
30774 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
30775 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30777 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
30778 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
30779 cat >conftest.$ac_ext <<_ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h. */
30785 #include <sys/bitypes.h>
30789 int8_t a; int16_t b; int32_t c;
30790 u_int8_t e; u_int16_t f; u_int32_t g;
30791 a = b = c = e = f = g = 1;
30796 rm -f conftest.$ac_objext
30797 if { (ac_try="$ac_compile"
30798 case "(($ac_try" in
30799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30800 *) ac_try_echo=$ac_try;;
30802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30803 (eval "$ac_compile") 2>conftest.er1
30805 grep -v '^ *+' conftest.er1 >conftest.err
30807 cat conftest.err >&5
30808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 (exit $ac_status); } && {
30810 test -z "$ac_c_werror_flag" ||
30811 test ! -s conftest.err
30812 } && test -s conftest.$ac_objext; then
30813 cat >>confdefs.h <<\_ACEOF
30814 #define HAVE_U_INTXX_T 1
30817 cat >>confdefs.h <<\_ACEOF
30818 #define HAVE_INTXX_T 1
30821 cat >>confdefs.h <<\_ACEOF
30822 #define HAVE_SYS_BITYPES_H 1
30825 { echo "$as_me:$LINENO: result: yes" >&5
30826 echo "${ECHO_T}yes" >&6; }
30828 echo "$as_me: failed program was:" >&5
30829 sed 's/^/| /' conftest.$ac_ext >&5
30831 { echo "$as_me:$LINENO: result: no" >&5
30832 echo "${ECHO_T}no" >&6; }
30836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30839 if test -z "$have_u_intxx_t" ; then
30840 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
30841 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
30842 if test "${ac_cv_have_uintxx_t+set}" = set; then
30843 echo $ECHO_N "(cached) $ECHO_C" >&6
30846 cat >conftest.$ac_ext <<_ACEOF
30849 cat confdefs.h >>conftest.$ac_ext
30850 cat >>conftest.$ac_ext <<_ACEOF
30851 /* end confdefs.h. */
30852 #include <sys/types.h>
30856 uint8_t a; uint16_t b;
30857 uint32_t c; a = b = c = 1;
30862 rm -f conftest.$ac_objext
30863 if { (ac_try="$ac_compile"
30864 case "(($ac_try" in
30865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30866 *) ac_try_echo=$ac_try;;
30868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30869 (eval "$ac_compile") 2>conftest.er1
30871 grep -v '^ *+' conftest.er1 >conftest.err
30873 cat conftest.err >&5
30874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875 (exit $ac_status); } && {
30876 test -z "$ac_c_werror_flag" ||
30877 test ! -s conftest.err
30878 } && test -s conftest.$ac_objext; then
30879 ac_cv_have_uintxx_t="yes"
30881 echo "$as_me: failed program was:" >&5
30882 sed 's/^/| /' conftest.$ac_ext >&5
30884 ac_cv_have_uintxx_t="no"
30888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30891 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
30892 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
30893 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
30894 cat >>confdefs.h <<\_ACEOF
30895 #define HAVE_UINTXX_T 1
30901 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
30902 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30904 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
30905 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
30906 cat >conftest.$ac_ext <<_ACEOF
30909 cat confdefs.h >>conftest.$ac_ext
30910 cat >>conftest.$ac_ext <<_ACEOF
30911 /* end confdefs.h. */
30912 #include <sys/bitypes.h>
30916 int64_t a; u_int64_t b;
30922 rm -f conftest.$ac_objext
30923 if { (ac_try="$ac_compile"
30924 case "(($ac_try" in
30925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926 *) ac_try_echo=$ac_try;;
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929 (eval "$ac_compile") 2>conftest.er1
30931 grep -v '^ *+' conftest.er1 >conftest.err
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } && {
30936 test -z "$ac_c_werror_flag" ||
30937 test ! -s conftest.err
30938 } && test -s conftest.$ac_objext; then
30939 cat >>confdefs.h <<\_ACEOF
30940 #define HAVE_U_INT64_T 1
30943 cat >>confdefs.h <<\_ACEOF
30944 #define HAVE_INT64_T 1
30947 { echo "$as_me:$LINENO: result: yes" >&5
30948 echo "${ECHO_T}yes" >&6; }
30950 echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30953 { echo "$as_me:$LINENO: result: no" >&5
30954 echo "${ECHO_T}no" >&6; }
30958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30961 if (test -z "$have_uintxx_t" && \
30962 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30964 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
30965 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
30966 cat >conftest.$ac_ext <<_ACEOF
30969 cat confdefs.h >>conftest.$ac_ext
30970 cat >>conftest.$ac_ext <<_ACEOF
30971 /* end confdefs.h. */
30972 #include <sys/bitypes.h>
30976 uint8_t a; uint16_t b;
30977 uint32_t c; a = b = c = 1;
30982 rm -f conftest.$ac_objext
30983 if { (ac_try="$ac_compile"
30984 case "(($ac_try" in
30985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986 *) ac_try_echo=$ac_try;;
30988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989 (eval "$ac_compile") 2>conftest.er1
30991 grep -v '^ *+' conftest.er1 >conftest.err
30993 cat conftest.err >&5
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } && {
30996 test -z "$ac_c_werror_flag" ||
30997 test ! -s conftest.err
30998 } && test -s conftest.$ac_objext; then
30999 cat >>confdefs.h <<\_ACEOF
31000 #define HAVE_UINTXX_T 1
31003 { echo "$as_me:$LINENO: result: yes" >&5
31004 echo "${ECHO_T}yes" >&6; }
31006 echo "$as_me: failed program was:" >&5
31007 sed 's/^/| /' conftest.$ac_ext >&5
31009 { echo "$as_me:$LINENO: result: no" >&5
31010 echo "${ECHO_T}no" >&6; }
31014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31054 echo $ECHO_N "(cached) $ECHO_C" >&6
31056 cat >conftest.$ac_ext <<_ACEOF
31059 cat confdefs.h >>conftest.$ac_ext
31060 cat >>conftest.$ac_ext <<_ACEOF
31061 /* end confdefs.h. */
31062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31064 #define $ac_func innocuous_$ac_func
31066 /* System header to define __stub macros and hopefully few prototypes,
31067 which can conflict with char $ac_func (); below.
31068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31069 <limits.h> exists even on freestanding compilers. */
31072 # include <limits.h>
31074 # include <assert.h>
31079 /* Override any GCC internal prototype to avoid an error.
31080 Use char because int might match the return type of a GCC
31081 builtin and then its argument prototype would still apply. */
31086 /* The GNU C library defines this for functions which it implements
31087 to always fail with ENOSYS. Some functions are actually named
31088 something starting with __ and the normal name is an alias. */
31089 #if defined __stub_$ac_func || defined __stub___$ac_func
31096 return $ac_func ();
31101 rm -f conftest.$ac_objext conftest$ac_exeext
31102 if { (ac_try="$ac_link"
31103 case "(($ac_try" in
31104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105 *) ac_try_echo=$ac_try;;
31107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31108 (eval "$ac_link") 2>conftest.er1
31110 grep -v '^ *+' conftest.er1 >conftest.err
31112 cat conftest.err >&5
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); } && {
31115 test -z "$ac_c_werror_flag" ||
31116 test ! -s conftest.err
31117 } && test -s conftest$ac_exeext &&
31118 $as_test_x conftest$ac_exeext; then
31119 eval "$as_ac_var=yes"
31121 echo "$as_me: failed program was:" >&5
31122 sed 's/^/| /' conftest.$ac_ext >&5
31124 eval "$as_ac_var=no"
31127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31128 conftest$ac_exeext conftest.$ac_ext
31130 ac_res=`eval echo '${'$as_ac_var'}'`
31131 { echo "$as_me:$LINENO: result: $ac_res" >&5
31132 echo "${ECHO_T}$ac_res" >&6; }
31133 if test `eval echo '${'$as_ac_var'}'` = yes; then
31134 cat >>confdefs.h <<_ACEOF
31135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31139 echo 'configure: cannot find needed function.'; exit 1
31146 for ac_func in fchdir
31148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31152 echo $ECHO_N "(cached) $ECHO_C" >&6
31154 cat >conftest.$ac_ext <<_ACEOF
31157 cat confdefs.h >>conftest.$ac_ext
31158 cat >>conftest.$ac_ext <<_ACEOF
31159 /* end confdefs.h. */
31160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31162 #define $ac_func innocuous_$ac_func
31164 /* System header to define __stub macros and hopefully few prototypes,
31165 which can conflict with char $ac_func (); below.
31166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31167 <limits.h> exists even on freestanding compilers. */
31170 # include <limits.h>
31172 # include <assert.h>
31177 /* Override any GCC internal prototype to avoid an error.
31178 Use char because int might match the return type of a GCC
31179 builtin and then its argument prototype would still apply. */
31184 /* The GNU C library defines this for functions which it implements
31185 to always fail with ENOSYS. Some functions are actually named
31186 something starting with __ and the normal name is an alias. */
31187 #if defined __stub_$ac_func || defined __stub___$ac_func
31194 return $ac_func ();
31199 rm -f conftest.$ac_objext conftest$ac_exeext
31200 if { (ac_try="$ac_link"
31201 case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_link") 2>conftest.er1
31208 grep -v '^ *+' conftest.er1 >conftest.err
31210 cat conftest.err >&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); } && {
31213 test -z "$ac_c_werror_flag" ||
31214 test ! -s conftest.err
31215 } && test -s conftest$ac_exeext &&
31216 $as_test_x conftest$ac_exeext; then
31217 eval "$as_ac_var=yes"
31219 echo "$as_me: failed program was:" >&5
31220 sed 's/^/| /' conftest.$ac_ext >&5
31222 eval "$as_ac_var=no"
31225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31226 conftest$ac_exeext conftest.$ac_ext
31228 ac_res=`eval echo '${'$as_ac_var'}'`
31229 { echo "$as_me:$LINENO: result: $ac_res" >&5
31230 echo "${ECHO_T}$ac_res" >&6; }
31231 if test `eval echo '${'$as_ac_var'}'` = yes; then
31232 cat >>confdefs.h <<_ACEOF
31233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31235 cat >>confdefs.h <<\_ACEOF
31236 #define HAVE_FCHDIR 1
31243 for ac_func in strtoll
31245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31249 echo $ECHO_N "(cached) $ECHO_C" >&6
31251 cat >conftest.$ac_ext <<_ACEOF
31254 cat confdefs.h >>conftest.$ac_ext
31255 cat >>conftest.$ac_ext <<_ACEOF
31256 /* end confdefs.h. */
31257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31259 #define $ac_func innocuous_$ac_func
31261 /* System header to define __stub macros and hopefully few prototypes,
31262 which can conflict with char $ac_func (); below.
31263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31264 <limits.h> exists even on freestanding compilers. */
31267 # include <limits.h>
31269 # include <assert.h>
31274 /* Override any GCC internal prototype to avoid an error.
31275 Use char because int might match the return type of a GCC
31276 builtin and then its argument prototype would still apply. */
31281 /* The GNU C library defines this for functions which it implements
31282 to always fail with ENOSYS. Some functions are actually named
31283 something starting with __ and the normal name is an alias. */
31284 #if defined __stub_$ac_func || defined __stub___$ac_func
31291 return $ac_func ();
31296 rm -f conftest.$ac_objext conftest$ac_exeext
31297 if { (ac_try="$ac_link"
31298 case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_link") 2>conftest.er1
31305 grep -v '^ *+' conftest.er1 >conftest.err
31307 cat conftest.err >&5
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } && {
31310 test -z "$ac_c_werror_flag" ||
31311 test ! -s conftest.err
31312 } && test -s conftest$ac_exeext &&
31313 $as_test_x conftest$ac_exeext; then
31314 eval "$as_ac_var=yes"
31316 echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31319 eval "$as_ac_var=no"
31322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31323 conftest$ac_exeext conftest.$ac_ext
31325 ac_res=`eval echo '${'$as_ac_var'}'`
31326 { echo "$as_me:$LINENO: result: $ac_res" >&5
31327 echo "${ECHO_T}$ac_res" >&6; }
31328 if test `eval echo '${'$as_ac_var'}'` = yes; then
31329 cat >>confdefs.h <<_ACEOF
31330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31332 cat >>confdefs.h <<\_ACEOF
31333 #define HAVE_STRTOLL 1
31340 for ac_func in posix_fadvise
31342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31346 echo $ECHO_N "(cached) $ECHO_C" >&6
31348 cat >conftest.$ac_ext <<_ACEOF
31351 cat confdefs.h >>conftest.$ac_ext
31352 cat >>conftest.$ac_ext <<_ACEOF
31353 /* end confdefs.h. */
31354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31356 #define $ac_func innocuous_$ac_func
31358 /* System header to define __stub macros and hopefully few prototypes,
31359 which can conflict with char $ac_func (); below.
31360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31361 <limits.h> exists even on freestanding compilers. */
31364 # include <limits.h>
31366 # include <assert.h>
31371 /* Override any GCC internal prototype to avoid an error.
31372 Use char because int might match the return type of a GCC
31373 builtin and then its argument prototype would still apply. */
31378 /* The GNU C library defines this for functions which it implements
31379 to always fail with ENOSYS. Some functions are actually named
31380 something starting with __ and the normal name is an alias. */
31381 #if defined __stub_$ac_func || defined __stub___$ac_func
31388 return $ac_func ();
31393 rm -f conftest.$ac_objext conftest$ac_exeext
31394 if { (ac_try="$ac_link"
31395 case "(($ac_try" in
31396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31397 *) ac_try_echo=$ac_try;;
31399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31400 (eval "$ac_link") 2>conftest.er1
31402 grep -v '^ *+' conftest.er1 >conftest.err
31404 cat conftest.err >&5
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); } && {
31407 test -z "$ac_c_werror_flag" ||
31408 test ! -s conftest.err
31409 } && test -s conftest$ac_exeext &&
31410 $as_test_x conftest$ac_exeext; then
31411 eval "$as_ac_var=yes"
31413 echo "$as_me: failed program was:" >&5
31414 sed 's/^/| /' conftest.$ac_ext >&5
31416 eval "$as_ac_var=no"
31419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31420 conftest$ac_exeext conftest.$ac_ext
31422 ac_res=`eval echo '${'$as_ac_var'}'`
31423 { echo "$as_me:$LINENO: result: $ac_res" >&5
31424 echo "${ECHO_T}$ac_res" >&6; }
31425 if test `eval echo '${'$as_ac_var'}'` = yes; then
31426 cat >>confdefs.h <<_ACEOF
31427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31434 for ac_func in fdatasync
31436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31440 echo $ECHO_N "(cached) $ECHO_C" >&6
31442 cat >conftest.$ac_ext <<_ACEOF
31445 cat confdefs.h >>conftest.$ac_ext
31446 cat >>conftest.$ac_ext <<_ACEOF
31447 /* end confdefs.h. */
31448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31450 #define $ac_func innocuous_$ac_func
31452 /* System header to define __stub macros and hopefully few prototypes,
31453 which can conflict with char $ac_func (); below.
31454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31455 <limits.h> exists even on freestanding compilers. */
31458 # include <limits.h>
31460 # include <assert.h>
31465 /* Override any GCC internal prototype to avoid an error.
31466 Use char because int might match the return type of a GCC
31467 builtin and then its argument prototype would still apply. */
31472 /* The GNU C library defines this for functions which it implements
31473 to always fail with ENOSYS. Some functions are actually named
31474 something starting with __ and the normal name is an alias. */
31475 #if defined __stub_$ac_func || defined __stub___$ac_func
31482 return $ac_func ();
31487 rm -f conftest.$ac_objext conftest$ac_exeext
31488 if { (ac_try="$ac_link"
31489 case "(($ac_try" in
31490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31491 *) ac_try_echo=$ac_try;;
31493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31494 (eval "$ac_link") 2>conftest.er1
31496 grep -v '^ *+' conftest.er1 >conftest.err
31498 cat conftest.err >&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } && {
31501 test -z "$ac_c_werror_flag" ||
31502 test ! -s conftest.err
31503 } && test -s conftest$ac_exeext &&
31504 $as_test_x conftest$ac_exeext; then
31505 eval "$as_ac_var=yes"
31507 echo "$as_me: failed program was:" >&5
31508 sed 's/^/| /' conftest.$ac_ext >&5
31510 eval "$as_ac_var=no"
31513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31514 conftest$ac_exeext conftest.$ac_ext
31516 ac_res=`eval echo '${'$as_ac_var'}'`
31517 { echo "$as_me:$LINENO: result: $ac_res" >&5
31518 echo "${ECHO_T}$ac_res" >&6; }
31519 if test `eval echo '${'$as_ac_var'}'` = yes; then
31520 cat >>confdefs.h <<_ACEOF
31521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31529 for ac_func in chflags
31531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31535 echo $ECHO_N "(cached) $ECHO_C" >&6
31537 cat >conftest.$ac_ext <<_ACEOF
31540 cat confdefs.h >>conftest.$ac_ext
31541 cat >>conftest.$ac_ext <<_ACEOF
31542 /* end confdefs.h. */
31543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31545 #define $ac_func innocuous_$ac_func
31547 /* System header to define __stub macros and hopefully few prototypes,
31548 which can conflict with char $ac_func (); below.
31549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31550 <limits.h> exists even on freestanding compilers. */
31553 # include <limits.h>
31555 # include <assert.h>
31560 /* Override any GCC internal prototype to avoid an error.
31561 Use char because int might match the return type of a GCC
31562 builtin and then its argument prototype would still apply. */
31567 /* The GNU C library defines this for functions which it implements
31568 to always fail with ENOSYS. Some functions are actually named
31569 something starting with __ and the normal name is an alias. */
31570 #if defined __stub_$ac_func || defined __stub___$ac_func
31577 return $ac_func ();
31582 rm -f conftest.$ac_objext conftest$ac_exeext
31583 if { (ac_try="$ac_link"
31584 case "(($ac_try" in
31585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586 *) ac_try_echo=$ac_try;;
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589 (eval "$ac_link") 2>conftest.er1
31591 grep -v '^ *+' conftest.er1 >conftest.err
31593 cat conftest.err >&5
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); } && {
31596 test -z "$ac_c_werror_flag" ||
31597 test ! -s conftest.err
31598 } && test -s conftest$ac_exeext &&
31599 $as_test_x conftest$ac_exeext; then
31600 eval "$as_ac_var=yes"
31602 echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31605 eval "$as_ac_var=no"
31608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31609 conftest$ac_exeext conftest.$ac_ext
31611 ac_res=`eval echo '${'$as_ac_var'}'`
31612 { echo "$as_me:$LINENO: result: $ac_res" >&5
31613 echo "${ECHO_T}$ac_res" >&6; }
31614 if test `eval echo '${'$as_ac_var'}'` = yes; then
31615 cat >>confdefs.h <<_ACEOF
31616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31627 for ac_func in snprintf vsnprintf gethostid fseeko
31629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31633 echo $ECHO_N "(cached) $ECHO_C" >&6
31635 cat >conftest.$ac_ext <<_ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h. */
31641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31643 #define $ac_func innocuous_$ac_func
31645 /* System header to define __stub macros and hopefully few prototypes,
31646 which can conflict with char $ac_func (); below.
31647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31648 <limits.h> exists even on freestanding compilers. */
31651 # include <limits.h>
31653 # include <assert.h>
31658 /* Override any GCC internal prototype to avoid an error.
31659 Use char because int might match the return type of a GCC
31660 builtin and then its argument prototype would still apply. */
31665 /* The GNU C library defines this for functions which it implements
31666 to always fail with ENOSYS. Some functions are actually named
31667 something starting with __ and the normal name is an alias. */
31668 #if defined __stub_$ac_func || defined __stub___$ac_func
31675 return $ac_func ();
31680 rm -f conftest.$ac_objext conftest$ac_exeext
31681 if { (ac_try="$ac_link"
31682 case "(($ac_try" in
31683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31684 *) ac_try_echo=$ac_try;;
31686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31687 (eval "$ac_link") 2>conftest.er1
31689 grep -v '^ *+' conftest.er1 >conftest.err
31691 cat conftest.err >&5
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); } && {
31694 test -z "$ac_c_werror_flag" ||
31695 test ! -s conftest.err
31696 } && test -s conftest$ac_exeext &&
31697 $as_test_x conftest$ac_exeext; then
31698 eval "$as_ac_var=yes"
31700 echo "$as_me: failed program was:" >&5
31701 sed 's/^/| /' conftest.$ac_ext >&5
31703 eval "$as_ac_var=no"
31706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31707 conftest$ac_exeext conftest.$ac_ext
31709 ac_res=`eval echo '${'$as_ac_var'}'`
31710 { echo "$as_me:$LINENO: result: $ac_res" >&5
31711 echo "${ECHO_T}$ac_res" >&6; }
31712 if test `eval echo '${'$as_ac_var'}'` = yes; then
31713 cat >>confdefs.h <<_ACEOF
31714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31721 { echo "$as_me:$LINENO: checking for va_copy" >&5
31722 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
31723 if test "${ba_cv_va_copy+set}" = set; then
31724 echo $ECHO_N "(cached) $ECHO_C" >&6
31726 cat >conftest.$ac_ext <<_ACEOF
31729 cat confdefs.h >>conftest.$ac_ext
31730 cat >>conftest.$ac_ext <<_ACEOF
31731 /* end confdefs.h. */
31733 #include <stdarg.h>
31734 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
31735 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
31740 call_use_va_copy(1,2,3)
31745 rm -f conftest.$ac_objext conftest$ac_exeext
31746 if { (ac_try="$ac_link"
31747 case "(($ac_try" in
31748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749 *) ac_try_echo=$ac_try;;
31751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752 (eval "$ac_link") 2>conftest.er1
31754 grep -v '^ *+' conftest.er1 >conftest.err
31756 cat conftest.err >&5
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); } && {
31759 test -z "$ac_c_werror_flag" ||
31760 test ! -s conftest.err
31761 } && test -s conftest$ac_exeext &&
31762 $as_test_x conftest$ac_exeext; then
31765 echo "$as_me: failed program was:" >&5
31766 sed 's/^/| /' conftest.$ac_ext >&5
31771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31772 conftest$ac_exeext conftest.$ac_ext
31774 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
31775 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
31776 test $ba_cv_va_copy = yes &&
31777 cat >>confdefs.h <<\_ACEOF
31778 #define HAVE_VA_COPY 1
31787 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
31789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31793 echo $ECHO_N "(cached) $ECHO_C" >&6
31795 cat >conftest.$ac_ext <<_ACEOF
31798 cat confdefs.h >>conftest.$ac_ext
31799 cat >>conftest.$ac_ext <<_ACEOF
31800 /* end confdefs.h. */
31801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31803 #define $ac_func innocuous_$ac_func
31805 /* System header to define __stub macros and hopefully few prototypes,
31806 which can conflict with char $ac_func (); below.
31807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31808 <limits.h> exists even on freestanding compilers. */
31811 # include <limits.h>
31813 # include <assert.h>
31818 /* Override any GCC internal prototype to avoid an error.
31819 Use char because int might match the return type of a GCC
31820 builtin and then its argument prototype would still apply. */
31825 /* The GNU C library defines this for functions which it implements
31826 to always fail with ENOSYS. Some functions are actually named
31827 something starting with __ and the normal name is an alias. */
31828 #if defined __stub_$ac_func || defined __stub___$ac_func
31835 return $ac_func ();
31840 rm -f conftest.$ac_objext conftest$ac_exeext
31841 if { (ac_try="$ac_link"
31842 case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_link") 2>conftest.er1
31849 grep -v '^ *+' conftest.er1 >conftest.err
31851 cat conftest.err >&5
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); } && {
31854 test -z "$ac_c_werror_flag" ||
31855 test ! -s conftest.err
31856 } && test -s conftest$ac_exeext &&
31857 $as_test_x conftest$ac_exeext; then
31858 eval "$as_ac_var=yes"
31860 echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31863 eval "$as_ac_var=no"
31866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31867 conftest$ac_exeext conftest.$ac_ext
31869 ac_res=`eval echo '${'$as_ac_var'}'`
31870 { echo "$as_me:$LINENO: result: $ac_res" >&5
31871 echo "${ECHO_T}$ac_res" >&6; }
31872 if test `eval echo '${'$as_ac_var'}'` = yes; then
31873 cat >>confdefs.h <<_ACEOF
31874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31881 # If resolver functions are not in libc check for -lnsl or -lresolv.
31882 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
31883 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
31884 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
31885 echo $ECHO_N "(cached) $ECHO_C" >&6
31887 cat >conftest.$ac_ext <<_ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h. */
31893 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
31894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31895 #define gethostbyname_r innocuous_gethostbyname_r
31897 /* System header to define __stub macros and hopefully few prototypes,
31898 which can conflict with char gethostbyname_r (); below.
31899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31900 <limits.h> exists even on freestanding compilers. */
31903 # include <limits.h>
31905 # include <assert.h>
31908 #undef gethostbyname_r
31910 /* Override any GCC internal prototype to avoid an error.
31911 Use char because int might match the return type of a GCC
31912 builtin and then its argument prototype would still apply. */
31916 char gethostbyname_r ();
31917 /* The GNU C library defines this for functions which it implements
31918 to always fail with ENOSYS. Some functions are actually named
31919 something starting with __ and the normal name is an alias. */
31920 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31927 return gethostbyname_r ();
31932 rm -f conftest.$ac_objext conftest$ac_exeext
31933 if { (ac_try="$ac_link"
31934 case "(($ac_try" in
31935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31936 *) ac_try_echo=$ac_try;;
31938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31939 (eval "$ac_link") 2>conftest.er1
31941 grep -v '^ *+' conftest.er1 >conftest.err
31943 cat conftest.err >&5
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); } && {
31946 test -z "$ac_c_werror_flag" ||
31947 test ! -s conftest.err
31948 } && test -s conftest$ac_exeext &&
31949 $as_test_x conftest$ac_exeext; then
31950 ac_cv_func_gethostbyname_r=yes
31952 echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31955 ac_cv_func_gethostbyname_r=no
31958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31959 conftest$ac_exeext conftest.$ac_ext
31961 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
31962 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
31963 if test $ac_cv_func_gethostbyname_r = yes; then
31964 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
31965 echo "${ECHO_T}using libc's resolver" >&6; }
31968 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
31969 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
31970 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
31971 echo $ECHO_N "(cached) $ECHO_C" >&6
31973 ac_check_lib_save_LIBS=$LIBS
31975 cat >conftest.$ac_ext <<_ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h. */
31982 /* Override any GCC internal prototype to avoid an error.
31983 Use char because int might match the return type of a GCC
31984 builtin and then its argument prototype would still apply. */
31988 char gethostbyname_r ();
31992 return gethostbyname_r ();
31997 rm -f conftest.$ac_objext conftest$ac_exeext
31998 if { (ac_try="$ac_link"
31999 case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004 (eval "$ac_link") 2>conftest.er1
32006 grep -v '^ *+' conftest.er1 >conftest.err
32008 cat conftest.err >&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); } && {
32011 test -z "$ac_c_werror_flag" ||
32012 test ! -s conftest.err
32013 } && test -s conftest$ac_exeext &&
32014 $as_test_x conftest$ac_exeext; then
32015 ac_cv_lib_nsl_gethostbyname_r=yes
32017 echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.$ac_ext >&5
32020 ac_cv_lib_nsl_gethostbyname_r=no
32023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32024 conftest$ac_exeext conftest.$ac_ext
32025 LIBS=$ac_check_lib_save_LIBS
32027 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
32028 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
32029 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
32030 cat >>confdefs.h <<_ACEOF
32031 #define HAVE_LIBNSL 1
32039 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
32040 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
32041 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
32042 echo $ECHO_N "(cached) $ECHO_C" >&6
32044 ac_check_lib_save_LIBS=$LIBS
32045 LIBS="-lresolv $LIBS"
32046 cat >conftest.$ac_ext <<_ACEOF
32049 cat confdefs.h >>conftest.$ac_ext
32050 cat >>conftest.$ac_ext <<_ACEOF
32051 /* end confdefs.h. */
32053 /* Override any GCC internal prototype to avoid an error.
32054 Use char because int might match the return type of a GCC
32055 builtin and then its argument prototype would still apply. */
32059 char gethostbyname_r ();
32063 return gethostbyname_r ();
32068 rm -f conftest.$ac_objext conftest$ac_exeext
32069 if { (ac_try="$ac_link"
32070 case "(($ac_try" in
32071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072 *) ac_try_echo=$ac_try;;
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075 (eval "$ac_link") 2>conftest.er1
32077 grep -v '^ *+' conftest.er1 >conftest.err
32079 cat conftest.err >&5
32080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081 (exit $ac_status); } && {
32082 test -z "$ac_c_werror_flag" ||
32083 test ! -s conftest.err
32084 } && test -s conftest$ac_exeext &&
32085 $as_test_x conftest$ac_exeext; then
32086 ac_cv_lib_resolv_gethostbyname_r=yes
32088 echo "$as_me: failed program was:" >&5
32089 sed 's/^/| /' conftest.$ac_ext >&5
32091 ac_cv_lib_resolv_gethostbyname_r=no
32094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32095 conftest$ac_exeext conftest.$ac_ext
32096 LIBS=$ac_check_lib_save_LIBS
32098 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
32099 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
32100 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
32101 cat >>confdefs.h <<_ACEOF
32102 #define HAVE_LIBRESOLV 1
32105 LIBS="-lresolv $LIBS"
32115 for ac_func in inet_pton
32117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32121 echo $ECHO_N "(cached) $ECHO_C" >&6
32123 cat >conftest.$ac_ext <<_ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h. */
32129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32131 #define $ac_func innocuous_$ac_func
32133 /* System header to define __stub macros and hopefully few prototypes,
32134 which can conflict with char $ac_func (); below.
32135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32136 <limits.h> exists even on freestanding compilers. */
32139 # include <limits.h>
32141 # include <assert.h>
32146 /* Override any GCC internal prototype to avoid an error.
32147 Use char because int might match the return type of a GCC
32148 builtin and then its argument prototype would still apply. */
32153 /* The GNU C library defines this for functions which it implements
32154 to always fail with ENOSYS. Some functions are actually named
32155 something starting with __ and the normal name is an alias. */
32156 #if defined __stub_$ac_func || defined __stub___$ac_func
32163 return $ac_func ();
32168 rm -f conftest.$ac_objext conftest$ac_exeext
32169 if { (ac_try="$ac_link"
32170 case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_link") 2>conftest.er1
32177 grep -v '^ *+' conftest.er1 >conftest.err
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } && {
32182 test -z "$ac_c_werror_flag" ||
32183 test ! -s conftest.err
32184 } && test -s conftest$ac_exeext &&
32185 $as_test_x conftest$ac_exeext; then
32186 eval "$as_ac_var=yes"
32188 echo "$as_me: failed program was:" >&5
32189 sed 's/^/| /' conftest.$ac_ext >&5
32191 eval "$as_ac_var=no"
32194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32195 conftest$ac_exeext conftest.$ac_ext
32197 ac_res=`eval echo '${'$as_ac_var'}'`
32198 { echo "$as_me:$LINENO: result: $ac_res" >&5
32199 echo "${ECHO_T}$ac_res" >&6; }
32200 if test `eval echo '${'$as_ac_var'}'` = yes; then
32201 cat >>confdefs.h <<_ACEOF
32202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32204 cat >>confdefs.h <<\_ACEOF
32205 #define HAVE_INET_PTON 1
32212 for ac_func in inet_ntop
32214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32218 echo $ECHO_N "(cached) $ECHO_C" >&6
32220 cat >conftest.$ac_ext <<_ACEOF
32223 cat confdefs.h >>conftest.$ac_ext
32224 cat >>conftest.$ac_ext <<_ACEOF
32225 /* end confdefs.h. */
32226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32228 #define $ac_func innocuous_$ac_func
32230 /* System header to define __stub macros and hopefully few prototypes,
32231 which can conflict with char $ac_func (); below.
32232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32233 <limits.h> exists even on freestanding compilers. */
32236 # include <limits.h>
32238 # include <assert.h>
32243 /* Override any GCC internal prototype to avoid an error.
32244 Use char because int might match the return type of a GCC
32245 builtin and then its argument prototype would still apply. */
32250 /* The GNU C library defines this for functions which it implements
32251 to always fail with ENOSYS. Some functions are actually named
32252 something starting with __ and the normal name is an alias. */
32253 #if defined __stub_$ac_func || defined __stub___$ac_func
32260 return $ac_func ();
32265 rm -f conftest.$ac_objext conftest$ac_exeext
32266 if { (ac_try="$ac_link"
32267 case "(($ac_try" in
32268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269 *) ac_try_echo=$ac_try;;
32271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272 (eval "$ac_link") 2>conftest.er1
32274 grep -v '^ *+' conftest.er1 >conftest.err
32276 cat conftest.err >&5
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); } && {
32279 test -z "$ac_c_werror_flag" ||
32280 test ! -s conftest.err
32281 } && test -s conftest$ac_exeext &&
32282 $as_test_x conftest$ac_exeext; then
32283 eval "$as_ac_var=yes"
32285 echo "$as_me: failed program was:" >&5
32286 sed 's/^/| /' conftest.$ac_ext >&5
32288 eval "$as_ac_var=no"
32291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32292 conftest$ac_exeext conftest.$ac_ext
32294 ac_res=`eval echo '${'$as_ac_var'}'`
32295 { echo "$as_me:$LINENO: result: $ac_res" >&5
32296 echo "${ECHO_T}$ac_res" >&6; }
32297 if test `eval echo '${'$as_ac_var'}'` = yes; then
32298 cat >>confdefs.h <<_ACEOF
32299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32301 cat >>confdefs.h <<\_ACEOF
32302 #define HAVE_INET_NTOP 1
32309 for ac_func in gethostbyname2
32311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32315 echo $ECHO_N "(cached) $ECHO_C" >&6
32317 cat >conftest.$ac_ext <<_ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h. */
32323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32325 #define $ac_func innocuous_$ac_func
32327 /* System header to define __stub macros and hopefully few prototypes,
32328 which can conflict with char $ac_func (); below.
32329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32330 <limits.h> exists even on freestanding compilers. */
32333 # include <limits.h>
32335 # include <assert.h>
32340 /* Override any GCC internal prototype to avoid an error.
32341 Use char because int might match the return type of a GCC
32342 builtin and then its argument prototype would still apply. */
32347 /* The GNU C library defines this for functions which it implements
32348 to always fail with ENOSYS. Some functions are actually named
32349 something starting with __ and the normal name is an alias. */
32350 #if defined __stub_$ac_func || defined __stub___$ac_func
32357 return $ac_func ();
32362 rm -f conftest.$ac_objext conftest$ac_exeext
32363 if { (ac_try="$ac_link"
32364 case "(($ac_try" in
32365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32366 *) ac_try_echo=$ac_try;;
32368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32369 (eval "$ac_link") 2>conftest.er1
32371 grep -v '^ *+' conftest.er1 >conftest.err
32373 cat conftest.err >&5
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); } && {
32376 test -z "$ac_c_werror_flag" ||
32377 test ! -s conftest.err
32378 } && test -s conftest$ac_exeext &&
32379 $as_test_x conftest$ac_exeext; then
32380 eval "$as_ac_var=yes"
32382 echo "$as_me: failed program was:" >&5
32383 sed 's/^/| /' conftest.$ac_ext >&5
32385 eval "$as_ac_var=no"
32388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32389 conftest$ac_exeext conftest.$ac_ext
32391 ac_res=`eval echo '${'$as_ac_var'}'`
32392 { echo "$as_me:$LINENO: result: $ac_res" >&5
32393 echo "${ECHO_T}$ac_res" >&6; }
32394 if test `eval echo '${'$as_ac_var'}'` = yes; then
32395 cat >>confdefs.h <<_ACEOF
32396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32398 cat >>confdefs.h <<\_ACEOF
32399 #define HAVE_GETHOSTBYNAME2 1
32406 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
32407 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
32408 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
32409 echo $ECHO_N "(cached) $ECHO_C" >&6
32411 cat >conftest.$ac_ext <<_ACEOF
32414 cat confdefs.h >>conftest.$ac_ext
32415 cat >>conftest.$ac_ext <<_ACEOF
32416 /* end confdefs.h. */
32417 #include <sys/socket.h>
32421 struct sockaddr s; s.sa_len;
32426 rm -f conftest.$ac_objext
32427 if { (ac_try="$ac_compile"
32428 case "(($ac_try" in
32429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430 *) ac_try_echo=$ac_try;;
32432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433 (eval "$ac_compile") 2>conftest.er1
32435 grep -v '^ *+' conftest.er1 >conftest.err
32437 cat conftest.err >&5
32438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439 (exit $ac_status); } && {
32440 test -z "$ac_c_werror_flag" ||
32441 test ! -s conftest.err
32442 } && test -s conftest.$ac_objext; then
32443 ac_cv_struct_sockaddr_sa_len=yes
32445 echo "$as_me: failed program was:" >&5
32446 sed 's/^/| /' conftest.$ac_ext >&5
32448 ac_cv_struct_sockaddr_sa_len=no
32451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32453 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
32454 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
32456 if test $ac_cv_struct_sockaddr_sa_len = yes; then
32458 cat >>confdefs.h <<\_ACEOF
32459 #define HAVE_SA_LEN 1
32468 for ac_func in strftime
32470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32474 echo $ECHO_N "(cached) $ECHO_C" >&6
32476 cat >conftest.$ac_ext <<_ACEOF
32479 cat confdefs.h >>conftest.$ac_ext
32480 cat >>conftest.$ac_ext <<_ACEOF
32481 /* end confdefs.h. */
32482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32484 #define $ac_func innocuous_$ac_func
32486 /* System header to define __stub macros and hopefully few prototypes,
32487 which can conflict with char $ac_func (); below.
32488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32489 <limits.h> exists even on freestanding compilers. */
32492 # include <limits.h>
32494 # include <assert.h>
32499 /* Override any GCC internal prototype to avoid an error.
32500 Use char because int might match the return type of a GCC
32501 builtin and then its argument prototype would still apply. */
32506 /* The GNU C library defines this for functions which it implements
32507 to always fail with ENOSYS. Some functions are actually named
32508 something starting with __ and the normal name is an alias. */
32509 #if defined __stub_$ac_func || defined __stub___$ac_func
32516 return $ac_func ();
32521 rm -f conftest.$ac_objext conftest$ac_exeext
32522 if { (ac_try="$ac_link"
32523 case "(($ac_try" in
32524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525 *) ac_try_echo=$ac_try;;
32527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32528 (eval "$ac_link") 2>conftest.er1
32530 grep -v '^ *+' conftest.er1 >conftest.err
32532 cat conftest.err >&5
32533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534 (exit $ac_status); } && {
32535 test -z "$ac_c_werror_flag" ||
32536 test ! -s conftest.err
32537 } && test -s conftest$ac_exeext &&
32538 $as_test_x conftest$ac_exeext; then
32539 eval "$as_ac_var=yes"
32541 echo "$as_me: failed program was:" >&5
32542 sed 's/^/| /' conftest.$ac_ext >&5
32544 eval "$as_ac_var=no"
32547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32548 conftest$ac_exeext conftest.$ac_ext
32550 ac_res=`eval echo '${'$as_ac_var'}'`
32551 { echo "$as_me:$LINENO: result: $ac_res" >&5
32552 echo "${ECHO_T}$ac_res" >&6; }
32553 if test `eval echo '${'$as_ac_var'}'` = yes; then
32554 cat >>confdefs.h <<_ACEOF
32555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32559 # strftime is in -lintl on SCO UNIX.
32560 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
32561 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
32562 if test "${ac_cv_lib_intl_strftime+set}" = set; then
32563 echo $ECHO_N "(cached) $ECHO_C" >&6
32565 ac_check_lib_save_LIBS=$LIBS
32566 LIBS="-lintl $LIBS"
32567 cat >conftest.$ac_ext <<_ACEOF
32570 cat confdefs.h >>conftest.$ac_ext
32571 cat >>conftest.$ac_ext <<_ACEOF
32572 /* end confdefs.h. */
32574 /* Override any GCC internal prototype to avoid an error.
32575 Use char because int might match the return type of a GCC
32576 builtin and then its argument prototype would still apply. */
32584 return strftime ();
32589 rm -f conftest.$ac_objext conftest$ac_exeext
32590 if { (ac_try="$ac_link"
32591 case "(($ac_try" in
32592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32593 *) ac_try_echo=$ac_try;;
32595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32596 (eval "$ac_link") 2>conftest.er1
32598 grep -v '^ *+' conftest.er1 >conftest.err
32600 cat conftest.err >&5
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); } && {
32603 test -z "$ac_c_werror_flag" ||
32604 test ! -s conftest.err
32605 } && test -s conftest$ac_exeext &&
32606 $as_test_x conftest$ac_exeext; then
32607 ac_cv_lib_intl_strftime=yes
32609 echo "$as_me: failed program was:" >&5
32610 sed 's/^/| /' conftest.$ac_ext >&5
32612 ac_cv_lib_intl_strftime=no
32615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32616 conftest$ac_exeext conftest.$ac_ext
32617 LIBS=$ac_check_lib_save_LIBS
32619 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
32620 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
32621 if test $ac_cv_lib_intl_strftime = yes; then
32622 cat >>confdefs.h <<\_ACEOF
32623 #define HAVE_STRFTIME 1
32626 LIBS="-lintl $LIBS"
32633 for ac_func in vprintf
32635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32639 echo $ECHO_N "(cached) $ECHO_C" >&6
32641 cat >conftest.$ac_ext <<_ACEOF
32644 cat confdefs.h >>conftest.$ac_ext
32645 cat >>conftest.$ac_ext <<_ACEOF
32646 /* end confdefs.h. */
32647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32649 #define $ac_func innocuous_$ac_func
32651 /* System header to define __stub macros and hopefully few prototypes,
32652 which can conflict with char $ac_func (); below.
32653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32654 <limits.h> exists even on freestanding compilers. */
32657 # include <limits.h>
32659 # include <assert.h>
32664 /* Override any GCC internal prototype to avoid an error.
32665 Use char because int might match the return type of a GCC
32666 builtin and then its argument prototype would still apply. */
32671 /* The GNU C library defines this for functions which it implements
32672 to always fail with ENOSYS. Some functions are actually named
32673 something starting with __ and the normal name is an alias. */
32674 #if defined __stub_$ac_func || defined __stub___$ac_func
32681 return $ac_func ();
32686 rm -f conftest.$ac_objext conftest$ac_exeext
32687 if { (ac_try="$ac_link"
32688 case "(($ac_try" in
32689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690 *) ac_try_echo=$ac_try;;
32692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693 (eval "$ac_link") 2>conftest.er1
32695 grep -v '^ *+' conftest.er1 >conftest.err
32697 cat conftest.err >&5
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); } && {
32700 test -z "$ac_c_werror_flag" ||
32701 test ! -s conftest.err
32702 } && test -s conftest$ac_exeext &&
32703 $as_test_x conftest$ac_exeext; then
32704 eval "$as_ac_var=yes"
32706 echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32709 eval "$as_ac_var=no"
32712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32713 conftest$ac_exeext conftest.$ac_ext
32715 ac_res=`eval echo '${'$as_ac_var'}'`
32716 { echo "$as_me:$LINENO: result: $ac_res" >&5
32717 echo "${ECHO_T}$ac_res" >&6; }
32718 if test `eval echo '${'$as_ac_var'}'` = yes; then
32719 cat >>confdefs.h <<_ACEOF
32720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32723 { echo "$as_me:$LINENO: checking for _doprnt" >&5
32724 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
32725 if test "${ac_cv_func__doprnt+set}" = set; then
32726 echo $ECHO_N "(cached) $ECHO_C" >&6
32728 cat >conftest.$ac_ext <<_ACEOF
32731 cat confdefs.h >>conftest.$ac_ext
32732 cat >>conftest.$ac_ext <<_ACEOF
32733 /* end confdefs.h. */
32734 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
32735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32736 #define _doprnt innocuous__doprnt
32738 /* System header to define __stub macros and hopefully few prototypes,
32739 which can conflict with char _doprnt (); below.
32740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32741 <limits.h> exists even on freestanding compilers. */
32744 # include <limits.h>
32746 # include <assert.h>
32751 /* Override any GCC internal prototype to avoid an error.
32752 Use char because int might match the return type of a GCC
32753 builtin and then its argument prototype would still apply. */
32758 /* The GNU C library defines this for functions which it implements
32759 to always fail with ENOSYS. Some functions are actually named
32760 something starting with __ and the normal name is an alias. */
32761 #if defined __stub__doprnt || defined __stub____doprnt
32773 rm -f conftest.$ac_objext conftest$ac_exeext
32774 if { (ac_try="$ac_link"
32775 case "(($ac_try" in
32776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777 *) ac_try_echo=$ac_try;;
32779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780 (eval "$ac_link") 2>conftest.er1
32782 grep -v '^ *+' conftest.er1 >conftest.err
32784 cat conftest.err >&5
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); } && {
32787 test -z "$ac_c_werror_flag" ||
32788 test ! -s conftest.err
32789 } && test -s conftest$ac_exeext &&
32790 $as_test_x conftest$ac_exeext; then
32791 ac_cv_func__doprnt=yes
32793 echo "$as_me: failed program was:" >&5
32794 sed 's/^/| /' conftest.$ac_ext >&5
32796 ac_cv_func__doprnt=no
32799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32800 conftest$ac_exeext conftest.$ac_ext
32802 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
32803 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
32804 if test $ac_cv_func__doprnt = yes; then
32806 cat >>confdefs.h <<\_ACEOF
32807 #define HAVE_DOPRNT 1
32816 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32817 # for constant arguments. Useless!
32818 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32819 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32820 if test "${ac_cv_working_alloca_h+set}" = set; then
32821 echo $ECHO_N "(cached) $ECHO_C" >&6
32823 cat >conftest.$ac_ext <<_ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h. */
32829 #include <alloca.h>
32833 char *p = (char *) alloca (2 * sizeof (int));
32839 rm -f conftest.$ac_objext conftest$ac_exeext
32840 if { (ac_try="$ac_link"
32841 case "(($ac_try" in
32842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32843 *) ac_try_echo=$ac_try;;
32845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32846 (eval "$ac_link") 2>conftest.er1
32848 grep -v '^ *+' conftest.er1 >conftest.err
32850 cat conftest.err >&5
32851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852 (exit $ac_status); } && {
32853 test -z "$ac_c_werror_flag" ||
32854 test ! -s conftest.err
32855 } && test -s conftest$ac_exeext &&
32856 $as_test_x conftest$ac_exeext; then
32857 ac_cv_working_alloca_h=yes
32859 echo "$as_me: failed program was:" >&5
32860 sed 's/^/| /' conftest.$ac_ext >&5
32862 ac_cv_working_alloca_h=no
32865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32866 conftest$ac_exeext conftest.$ac_ext
32868 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32869 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32870 if test $ac_cv_working_alloca_h = yes; then
32872 cat >>confdefs.h <<\_ACEOF
32873 #define HAVE_ALLOCA_H 1
32878 { echo "$as_me:$LINENO: checking for alloca" >&5
32879 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32880 if test "${ac_cv_func_alloca_works+set}" = set; then
32881 echo $ECHO_N "(cached) $ECHO_C" >&6
32883 cat >conftest.$ac_ext <<_ACEOF
32886 cat confdefs.h >>conftest.$ac_ext
32887 cat >>conftest.$ac_ext <<_ACEOF
32888 /* end confdefs.h. */
32890 # define alloca __builtin_alloca
32893 # include <malloc.h>
32894 # define alloca _alloca
32896 # ifdef HAVE_ALLOCA_H
32897 # include <alloca.h>
32902 # ifndef alloca /* predefined by HP cc +Olibcalls */
32913 char *p = (char *) alloca (1);
32919 rm -f conftest.$ac_objext conftest$ac_exeext
32920 if { (ac_try="$ac_link"
32921 case "(($ac_try" in
32922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923 *) ac_try_echo=$ac_try;;
32925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926 (eval "$ac_link") 2>conftest.er1
32928 grep -v '^ *+' conftest.er1 >conftest.err
32930 cat conftest.err >&5
32931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932 (exit $ac_status); } && {
32933 test -z "$ac_c_werror_flag" ||
32934 test ! -s conftest.err
32935 } && test -s conftest$ac_exeext &&
32936 $as_test_x conftest$ac_exeext; then
32937 ac_cv_func_alloca_works=yes
32939 echo "$as_me: failed program was:" >&5
32940 sed 's/^/| /' conftest.$ac_ext >&5
32942 ac_cv_func_alloca_works=no
32945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32946 conftest$ac_exeext conftest.$ac_ext
32948 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32949 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32951 if test $ac_cv_func_alloca_works = yes; then
32953 cat >>confdefs.h <<\_ACEOF
32954 #define HAVE_ALLOCA 1
32958 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32959 # that cause trouble. Some versions do not even contain alloca or
32960 # contain a buggy version. If you still want to use their alloca,
32961 # use ar to extract alloca.o from them instead of compiling alloca.c.
32963 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32965 cat >>confdefs.h <<\_ACEOF
32970 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32971 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32972 if test "${ac_cv_os_cray+set}" = set; then
32973 echo $ECHO_N "(cached) $ECHO_C" >&6
32975 cat >conftest.$ac_ext <<_ACEOF
32978 cat confdefs.h >>conftest.$ac_ext
32979 cat >>conftest.$ac_ext <<_ACEOF
32980 /* end confdefs.h. */
32981 #if defined CRAY && ! defined CRAY2
32988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32989 $EGREP "webecray" >/dev/null 2>&1; then
32997 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32998 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32999 if test $ac_cv_os_cray = yes; then
33000 for ac_func in _getb67 GETB67 getb67; do
33001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33005 echo $ECHO_N "(cached) $ECHO_C" >&6
33007 cat >conftest.$ac_ext <<_ACEOF
33010 cat confdefs.h >>conftest.$ac_ext
33011 cat >>conftest.$ac_ext <<_ACEOF
33012 /* end confdefs.h. */
33013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33015 #define $ac_func innocuous_$ac_func
33017 /* System header to define __stub macros and hopefully few prototypes,
33018 which can conflict with char $ac_func (); below.
33019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33020 <limits.h> exists even on freestanding compilers. */
33023 # include <limits.h>
33025 # include <assert.h>
33030 /* Override any GCC internal prototype to avoid an error.
33031 Use char because int might match the return type of a GCC
33032 builtin and then its argument prototype would still apply. */
33037 /* The GNU C library defines this for functions which it implements
33038 to always fail with ENOSYS. Some functions are actually named
33039 something starting with __ and the normal name is an alias. */
33040 #if defined __stub_$ac_func || defined __stub___$ac_func
33047 return $ac_func ();
33052 rm -f conftest.$ac_objext conftest$ac_exeext
33053 if { (ac_try="$ac_link"
33054 case "(($ac_try" in
33055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056 *) ac_try_echo=$ac_try;;
33058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059 (eval "$ac_link") 2>conftest.er1
33061 grep -v '^ *+' conftest.er1 >conftest.err
33063 cat conftest.err >&5
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); } && {
33066 test -z "$ac_c_werror_flag" ||
33067 test ! -s conftest.err
33068 } && test -s conftest$ac_exeext &&
33069 $as_test_x conftest$ac_exeext; then
33070 eval "$as_ac_var=yes"
33072 echo "$as_me: failed program was:" >&5
33073 sed 's/^/| /' conftest.$ac_ext >&5
33075 eval "$as_ac_var=no"
33078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33079 conftest$ac_exeext conftest.$ac_ext
33081 ac_res=`eval echo '${'$as_ac_var'}'`
33082 { echo "$as_me:$LINENO: result: $ac_res" >&5
33083 echo "${ECHO_T}$ac_res" >&6; }
33084 if test `eval echo '${'$as_ac_var'}'` = yes; then
33086 cat >>confdefs.h <<_ACEOF
33087 #define CRAY_STACKSEG_END $ac_func
33096 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33097 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33098 if test "${ac_cv_c_stack_direction+set}" = set; then
33099 echo $ECHO_N "(cached) $ECHO_C" >&6
33101 if test "$cross_compiling" = yes; then
33102 ac_cv_c_stack_direction=0
33104 cat >conftest.$ac_ext <<_ACEOF
33107 cat confdefs.h >>conftest.$ac_ext
33108 cat >>conftest.$ac_ext <<_ACEOF
33109 /* end confdefs.h. */
33110 $ac_includes_default
33112 find_stack_direction ()
33114 static char *addr = 0;
33119 return find_stack_direction ();
33122 return (&dummy > addr) ? 1 : -1;
33128 return find_stack_direction () < 0;
33131 rm -f conftest$ac_exeext
33132 if { (ac_try="$ac_link"
33133 case "(($ac_try" in
33134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135 *) ac_try_echo=$ac_try;;
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138 (eval "$ac_link") 2>&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33142 { (case "(($ac_try" in
33143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144 *) ac_try_echo=$ac_try;;
33146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147 (eval "$ac_try") 2>&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); }; }; then
33151 ac_cv_c_stack_direction=1
33153 echo "$as_me: program exited with status $ac_status" >&5
33154 echo "$as_me: failed program was:" >&5
33155 sed 's/^/| /' conftest.$ac_ext >&5
33157 ( exit $ac_status )
33158 ac_cv_c_stack_direction=-1
33160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33165 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33166 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33168 cat >>confdefs.h <<_ACEOF
33169 #define STACK_DIRECTION $ac_cv_c_stack_direction
33175 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
33176 # -lseq on Dynix/PTX, -lgen on Unixware.
33177 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
33178 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
33179 if test "${ac_cv_search_getmntent+set}" = set; then
33180 echo $ECHO_N "(cached) $ECHO_C" >&6
33182 ac_func_search_save_LIBS=$LIBS
33183 cat >conftest.$ac_ext <<_ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h. */
33190 /* Override any GCC internal prototype to avoid an error.
33191 Use char because int might match the return type of a GCC
33192 builtin and then its argument prototype would still apply. */
33200 return getmntent ();
33205 for ac_lib in '' sun seq gen; do
33206 if test -z "$ac_lib"; then
33207 ac_res="none required"
33210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33212 rm -f conftest.$ac_objext conftest$ac_exeext
33213 if { (ac_try="$ac_link"
33214 case "(($ac_try" in
33215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33216 *) ac_try_echo=$ac_try;;
33218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33219 (eval "$ac_link") 2>conftest.er1
33221 grep -v '^ *+' conftest.er1 >conftest.err
33223 cat conftest.err >&5
33224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225 (exit $ac_status); } && {
33226 test -z "$ac_c_werror_flag" ||
33227 test ! -s conftest.err
33228 } && test -s conftest$ac_exeext &&
33229 $as_test_x conftest$ac_exeext; then
33230 ac_cv_search_getmntent=$ac_res
33232 echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33240 if test "${ac_cv_search_getmntent+set}" = set; then
33244 if test "${ac_cv_search_getmntent+set}" = set; then
33247 ac_cv_search_getmntent=no
33249 rm conftest.$ac_ext
33250 LIBS=$ac_func_search_save_LIBS
33252 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
33253 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
33254 ac_res=$ac_cv_search_getmntent
33255 if test "$ac_res" != no; then
33256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33257 ac_cv_func_getmntent=yes
33259 cat >>confdefs.h <<\_ACEOF
33260 #define HAVE_GETMNTENT 1
33264 ac_cv_func_getmntent=no
33268 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
33269 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
33270 if test "${ac_cv_func_closedir_void+set}" = set; then
33271 echo $ECHO_N "(cached) $ECHO_C" >&6
33273 if test "$cross_compiling" = yes; then
33274 ac_cv_func_closedir_void=yes
33276 cat >conftest.$ac_ext <<_ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h. */
33282 $ac_includes_default
33283 #include <$ac_header_dirent>
33284 #ifndef __cplusplus
33291 return closedir (opendir (".")) != 0;
33296 rm -f conftest$ac_exeext
33297 if { (ac_try="$ac_link"
33298 case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_link") 2>&5
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33307 { (case "(($ac_try" in
33308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309 *) ac_try_echo=$ac_try;;
33311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312 (eval "$ac_try") 2>&5
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); }; }; then
33316 ac_cv_func_closedir_void=no
33318 echo "$as_me: program exited with status $ac_status" >&5
33319 echo "$as_me: failed program was:" >&5
33320 sed 's/^/| /' conftest.$ac_ext >&5
33322 ( exit $ac_status )
33323 ac_cv_func_closedir_void=yes
33325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33330 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
33331 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
33332 if test $ac_cv_func_closedir_void = yes; then
33334 cat >>confdefs.h <<\_ACEOF
33335 #define CLOSEDIR_VOID 1
33340 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
33341 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
33342 if test "${ac_cv_func_setpgrp_void+set}" = set; then
33343 echo $ECHO_N "(cached) $ECHO_C" >&6
33345 if test "$cross_compiling" = yes; then
33346 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
33347 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
33348 { (exit 1); exit 1; }; }
33350 cat >conftest.$ac_ext <<_ACEOF
33353 cat confdefs.h >>conftest.$ac_ext
33354 cat >>conftest.$ac_ext <<_ACEOF
33355 /* end confdefs.h. */
33356 $ac_includes_default
33360 /* If this system has a BSD-style setpgrp which takes arguments,
33361 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
33362 exit successfully. */
33363 return setpgrp (1,1) != -1;
33368 rm -f conftest$ac_exeext
33369 if { (ac_try="$ac_link"
33370 case "(($ac_try" in
33371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372 *) ac_try_echo=$ac_try;;
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_link") 2>&5
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33379 { (case "(($ac_try" in
33380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33381 *) ac_try_echo=$ac_try;;
33383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33384 (eval "$ac_try") 2>&5
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); }; }; then
33388 ac_cv_func_setpgrp_void=no
33390 echo "$as_me: program exited with status $ac_status" >&5
33391 echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33394 ( exit $ac_status )
33395 ac_cv_func_setpgrp_void=yes
33397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33402 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
33403 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
33404 if test $ac_cv_func_setpgrp_void = yes; then
33406 cat >>confdefs.h <<\_ACEOF
33407 #define SETPGRP_VOID 1
33411 # AC_FUNC_FNMATCH dnl use local version
33414 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
33415 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
33416 if test "${ac_cv_lib_intl_gettext+set}" = set; then
33417 echo $ECHO_N "(cached) $ECHO_C" >&6
33419 ac_check_lib_save_LIBS=$LIBS
33420 LIBS="-lintl $LIBS"
33421 cat >conftest.$ac_ext <<_ACEOF
33424 cat confdefs.h >>conftest.$ac_ext
33425 cat >>conftest.$ac_ext <<_ACEOF
33426 /* end confdefs.h. */
33428 /* Override any GCC internal prototype to avoid an error.
33429 Use char because int might match the return type of a GCC
33430 builtin and then its argument prototype would still apply. */
33443 rm -f conftest.$ac_objext conftest$ac_exeext
33444 if { (ac_try="$ac_link"
33445 case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450 (eval "$ac_link") 2>conftest.er1
33452 grep -v '^ *+' conftest.er1 >conftest.err
33454 cat conftest.err >&5
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); } && {
33457 test -z "$ac_c_werror_flag" ||
33458 test ! -s conftest.err
33459 } && test -s conftest$ac_exeext &&
33460 $as_test_x conftest$ac_exeext; then
33461 ac_cv_lib_intl_gettext=yes
33463 echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.$ac_ext >&5
33466 ac_cv_lib_intl_gettext=no
33469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33470 conftest$ac_exeext conftest.$ac_ext
33471 LIBS=$ac_check_lib_save_LIBS
33473 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
33474 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
33475 if test $ac_cv_lib_intl_gettext = yes; then
33476 LIBS="$LIBS -lintl"
33482 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
33483 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
33484 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
33485 echo $ECHO_N "(cached) $ECHO_C" >&6
33487 ac_check_lib_save_LIBS=$LIBS
33489 cat >conftest.$ac_ext <<_ACEOF
33492 cat confdefs.h >>conftest.$ac_ext
33493 cat >>conftest.$ac_ext <<_ACEOF
33494 /* end confdefs.h. */
33496 /* Override any GCC internal prototype to avoid an error.
33497 Use char because int might match the return type of a GCC
33498 builtin and then its argument prototype would still apply. */
33506 return getpwnam ();
33511 rm -f conftest.$ac_objext conftest$ac_exeext
33512 if { (ac_try="$ac_link"
33513 case "(($ac_try" in
33514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33515 *) ac_try_echo=$ac_try;;
33517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33518 (eval "$ac_link") 2>conftest.er1
33520 grep -v '^ *+' conftest.er1 >conftest.err
33522 cat conftest.err >&5
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); } && {
33525 test -z "$ac_c_werror_flag" ||
33526 test ! -s conftest.err
33527 } && test -s conftest$ac_exeext &&
33528 $as_test_x conftest$ac_exeext; then
33529 ac_cv_lib_sun_getpwnam=yes
33531 echo "$as_me: failed program was:" >&5
33532 sed 's/^/| /' conftest.$ac_ext >&5
33534 ac_cv_lib_sun_getpwnam=no
33537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33538 conftest$ac_exeext conftest.$ac_ext
33539 LIBS=$ac_check_lib_save_LIBS
33541 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
33542 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
33543 if test $ac_cv_lib_sun_getpwnam = yes; then
33544 cat >>confdefs.h <<_ACEOF
33545 #define HAVE_LIBSUN 1
33554 for ac_header in zlib.h
33556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33561 echo $ECHO_N "(cached) $ECHO_C" >&6
33563 ac_res=`eval echo '${'$as_ac_Header'}'`
33564 { echo "$as_me:$LINENO: result: $ac_res" >&5
33565 echo "${ECHO_T}$ac_res" >&6; }
33567 # Is the header compilable?
33568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33570 cat >conftest.$ac_ext <<_ACEOF
33573 cat confdefs.h >>conftest.$ac_ext
33574 cat >>conftest.$ac_ext <<_ACEOF
33575 /* end confdefs.h. */
33576 $ac_includes_default
33577 #include <$ac_header>
33579 rm -f conftest.$ac_objext
33580 if { (ac_try="$ac_compile"
33581 case "(($ac_try" in
33582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583 *) ac_try_echo=$ac_try;;
33585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586 (eval "$ac_compile") 2>conftest.er1
33588 grep -v '^ *+' conftest.er1 >conftest.err
33590 cat conftest.err >&5
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); } && {
33593 test -z "$ac_c_werror_flag" ||
33594 test ! -s conftest.err
33595 } && test -s conftest.$ac_objext; then
33596 ac_header_compiler=yes
33598 echo "$as_me: failed program was:" >&5
33599 sed 's/^/| /' conftest.$ac_ext >&5
33601 ac_header_compiler=no
33604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33606 echo "${ECHO_T}$ac_header_compiler" >&6; }
33608 # Is the header present?
33609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33611 cat >conftest.$ac_ext <<_ACEOF
33614 cat confdefs.h >>conftest.$ac_ext
33615 cat >>conftest.$ac_ext <<_ACEOF
33616 /* end confdefs.h. */
33617 #include <$ac_header>
33619 if { (ac_try="$ac_cpp conftest.$ac_ext"
33620 case "(($ac_try" in
33621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33622 *) ac_try_echo=$ac_try;;
33624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33627 grep -v '^ *+' conftest.er1 >conftest.err
33629 cat conftest.err >&5
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); } >/dev/null && {
33632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33633 test ! -s conftest.err
33635 ac_header_preproc=yes
33637 echo "$as_me: failed program was:" >&5
33638 sed 's/^/| /' conftest.$ac_ext >&5
33640 ac_header_preproc=no
33643 rm -f conftest.err conftest.$ac_ext
33644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33645 echo "${ECHO_T}$ac_header_preproc" >&6; }
33647 # So? What about this header?
33648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33654 ac_header_preproc=yes
33657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33675 echo $ECHO_N "(cached) $ECHO_C" >&6
33677 eval "$as_ac_Header=\$ac_header_preproc"
33679 ac_res=`eval echo '${'$as_ac_Header'}'`
33680 { echo "$as_me:$LINENO: result: $ac_res" >&5
33681 echo "${ECHO_T}$ac_res" >&6; }
33684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33685 cat >>confdefs.h <<_ACEOF
33686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33693 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33694 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33695 if test "${ac_cv_lib_z_deflate+set}" = set; then
33696 echo $ECHO_N "(cached) $ECHO_C" >&6
33698 ac_check_lib_save_LIBS=$LIBS
33700 cat >conftest.$ac_ext <<_ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h. */
33707 /* Override any GCC internal prototype to avoid an error.
33708 Use char because int might match the return type of a GCC
33709 builtin and then its argument prototype would still apply. */
33722 rm -f conftest.$ac_objext conftest$ac_exeext
33723 if { (ac_try="$ac_link"
33724 case "(($ac_try" in
33725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33726 *) ac_try_echo=$ac_try;;
33728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33729 (eval "$ac_link") 2>conftest.er1
33731 grep -v '^ *+' conftest.er1 >conftest.err
33733 cat conftest.err >&5
33734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); } && {
33736 test -z "$ac_c_werror_flag" ||
33737 test ! -s conftest.err
33738 } && test -s conftest$ac_exeext &&
33739 $as_test_x conftest$ac_exeext; then
33740 ac_cv_lib_z_deflate=yes
33742 echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.$ac_ext >&5
33745 ac_cv_lib_z_deflate=no
33748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33749 conftest$ac_exeext conftest.$ac_ext
33750 LIBS=$ac_check_lib_save_LIBS
33752 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33753 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33754 if test $ac_cv_lib_z_deflate = yes; then
33759 if test x$FDLIBS = x-lz; then
33760 cat >>confdefs.h <<\_ACEOF
33761 #define HAVE_LIBZ 1
33768 # Check for ACL libraries
33771 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33772 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33773 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33774 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33775 echo $ECHO_N "(cached) $ECHO_C" >&6
33777 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33778 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33780 # Is the header compilable?
33781 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33782 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33783 cat >conftest.$ac_ext <<_ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h. */
33789 $ac_includes_default
33790 #include <sys/acl.h>
33792 rm -f conftest.$ac_objext
33793 if { (ac_try="$ac_compile"
33794 case "(($ac_try" in
33795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796 *) ac_try_echo=$ac_try;;
33798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33799 (eval "$ac_compile") 2>conftest.er1
33801 grep -v '^ *+' conftest.er1 >conftest.err
33803 cat conftest.err >&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); } && {
33806 test -z "$ac_c_werror_flag" ||
33807 test ! -s conftest.err
33808 } && test -s conftest.$ac_objext; then
33809 ac_header_compiler=yes
33811 echo "$as_me: failed program was:" >&5
33812 sed 's/^/| /' conftest.$ac_ext >&5
33814 ac_header_compiler=no
33817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33819 echo "${ECHO_T}$ac_header_compiler" >&6; }
33821 # Is the header present?
33822 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33823 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33824 cat >conftest.$ac_ext <<_ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h. */
33830 #include <sys/acl.h>
33832 if { (ac_try="$ac_cpp conftest.$ac_ext"
33833 case "(($ac_try" in
33834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33835 *) ac_try_echo=$ac_try;;
33837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33840 grep -v '^ *+' conftest.er1 >conftest.err
33842 cat conftest.err >&5
33843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); } >/dev/null && {
33845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33846 test ! -s conftest.err
33848 ac_header_preproc=yes
33850 echo "$as_me: failed program was:" >&5
33851 sed 's/^/| /' conftest.$ac_ext >&5
33853 ac_header_preproc=no
33856 rm -f conftest.err conftest.$ac_ext
33857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33858 echo "${ECHO_T}$ac_header_preproc" >&6; }
33860 # So? What about this header?
33861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33863 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33864 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33865 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33866 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33867 ac_header_preproc=yes
33870 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33871 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33872 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
33873 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
33874 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33875 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33876 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
33877 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33878 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33879 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33880 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33881 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33885 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33886 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33887 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33888 echo $ECHO_N "(cached) $ECHO_C" >&6
33890 ac_cv_header_sys_acl_h=$ac_header_preproc
33892 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33893 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33898 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33899 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33900 if test "${ac_cv_func_acl_get_file+set}" = set; then
33901 echo $ECHO_N "(cached) $ECHO_C" >&6
33903 cat >conftest.$ac_ext <<_ACEOF
33906 cat confdefs.h >>conftest.$ac_ext
33907 cat >>conftest.$ac_ext <<_ACEOF
33908 /* end confdefs.h. */
33909 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33911 #define acl_get_file innocuous_acl_get_file
33913 /* System header to define __stub macros and hopefully few prototypes,
33914 which can conflict with char acl_get_file (); below.
33915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33916 <limits.h> exists even on freestanding compilers. */
33919 # include <limits.h>
33921 # include <assert.h>
33924 #undef acl_get_file
33926 /* Override any GCC internal prototype to avoid an error.
33927 Use char because int might match the return type of a GCC
33928 builtin and then its argument prototype would still apply. */
33932 char acl_get_file ();
33933 /* The GNU C library defines this for functions which it implements
33934 to always fail with ENOSYS. Some functions are actually named
33935 something starting with __ and the normal name is an alias. */
33936 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33943 return acl_get_file ();
33948 rm -f conftest.$ac_objext conftest$ac_exeext
33949 if { (ac_try="$ac_link"
33950 case "(($ac_try" in
33951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952 *) ac_try_echo=$ac_try;;
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955 (eval "$ac_link") 2>conftest.er1
33957 grep -v '^ *+' conftest.er1 >conftest.err
33959 cat conftest.err >&5
33960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961 (exit $ac_status); } && {
33962 test -z "$ac_c_werror_flag" ||
33963 test ! -s conftest.err
33964 } && test -s conftest$ac_exeext &&
33965 $as_test_x conftest$ac_exeext; then
33966 ac_cv_func_acl_get_file=yes
33968 echo "$as_me: failed program was:" >&5
33969 sed 's/^/| /' conftest.$ac_ext >&5
33971 ac_cv_func_acl_get_file=no
33974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33975 conftest$ac_exeext conftest.$ac_ext
33977 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33978 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33979 if test $ac_cv_func_acl_get_file = yes; then
33982 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33983 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33984 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33985 echo $ECHO_N "(cached) $ECHO_C" >&6
33987 ac_check_lib_save_LIBS=$LIBS
33989 cat >conftest.$ac_ext <<_ACEOF
33992 cat confdefs.h >>conftest.$ac_ext
33993 cat >>conftest.$ac_ext <<_ACEOF
33994 /* end confdefs.h. */
33996 /* Override any GCC internal prototype to avoid an error.
33997 Use char because int might match the return type of a GCC
33998 builtin and then its argument prototype would still apply. */
34002 char acl_get_file ();
34006 return acl_get_file ();
34011 rm -f conftest.$ac_objext conftest$ac_exeext
34012 if { (ac_try="$ac_link"
34013 case "(($ac_try" in
34014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34015 *) ac_try_echo=$ac_try;;
34017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34018 (eval "$ac_link") 2>conftest.er1
34020 grep -v '^ *+' conftest.er1 >conftest.err
34022 cat conftest.err >&5
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); } && {
34025 test -z "$ac_c_werror_flag" ||
34026 test ! -s conftest.err
34027 } && test -s conftest$ac_exeext &&
34028 $as_test_x conftest$ac_exeext; then
34029 ac_cv_lib_acl_acl_get_file=yes
34031 echo "$as_me: failed program was:" >&5
34032 sed 's/^/| /' conftest.$ac_ext >&5
34034 ac_cv_lib_acl_acl_get_file=no
34037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34038 conftest$ac_exeext conftest.$ac_ext
34039 LIBS=$ac_check_lib_save_LIBS
34041 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
34042 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
34043 if test $ac_cv_lib_acl_acl_get_file = yes; then
34044 have_acl=yes; FDLIBS="-lacl $FDLIBS"
34046 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
34047 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
34048 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
34049 echo $ECHO_N "(cached) $ECHO_C" >&6
34051 ac_check_lib_save_LIBS=$LIBS
34053 cat >conftest.$ac_ext <<_ACEOF
34056 cat confdefs.h >>conftest.$ac_ext
34057 cat >>conftest.$ac_ext <<_ACEOF
34058 /* end confdefs.h. */
34060 /* Override any GCC internal prototype to avoid an error.
34061 Use char because int might match the return type of a GCC
34062 builtin and then its argument prototype would still apply. */
34070 return acltotext ();
34075 rm -f conftest.$ac_objext conftest$ac_exeext
34076 if { (ac_try="$ac_link"
34077 case "(($ac_try" in
34078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34079 *) ac_try_echo=$ac_try;;
34081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34082 (eval "$ac_link") 2>conftest.er1
34084 grep -v '^ *+' conftest.er1 >conftest.err
34086 cat conftest.err >&5
34087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088 (exit $ac_status); } && {
34089 test -z "$ac_c_werror_flag" ||
34090 test ! -s conftest.err
34091 } && test -s conftest$ac_exeext &&
34092 $as_test_x conftest$ac_exeext; then
34093 ac_cv_lib_sec_acltotext=yes
34095 echo "$as_me: failed program was:" >&5
34096 sed 's/^/| /' conftest.$ac_ext >&5
34098 ac_cv_lib_sec_acltotext=no
34101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34102 conftest$ac_exeext conftest.$ac_ext
34103 LIBS=$ac_check_lib_save_LIBS
34105 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
34106 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
34107 if test $ac_cv_lib_sec_acltotext = yes; then
34108 have_acl=yes; FDLIBS="-lsec $FDLIBS"
34117 if test $have_acl = yes; then
34118 cat >>confdefs.h <<\_ACEOF
34125 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
34126 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
34127 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
34130 ac_check_lib_save_LIBS=$LIBS
34131 LIBS="-lpthread $LIBS"
34132 cat >conftest.$ac_ext <<_ACEOF
34135 cat confdefs.h >>conftest.$ac_ext
34136 cat >>conftest.$ac_ext <<_ACEOF
34137 /* end confdefs.h. */
34139 /* Override any GCC internal prototype to avoid an error.
34140 Use char because int might match the return type of a GCC
34141 builtin and then its argument prototype would still apply. */
34145 char pthread_create ();
34149 return pthread_create ();
34154 rm -f conftest.$ac_objext conftest$ac_exeext
34155 if { (ac_try="$ac_link"
34156 case "(($ac_try" in
34157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34158 *) ac_try_echo=$ac_try;;
34160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34161 (eval "$ac_link") 2>conftest.er1
34163 grep -v '^ *+' conftest.er1 >conftest.err
34165 cat conftest.err >&5
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); } && {
34168 test -z "$ac_c_werror_flag" ||
34169 test ! -s conftest.err
34170 } && test -s conftest$ac_exeext &&
34171 $as_test_x conftest$ac_exeext; then
34172 ac_cv_lib_pthread_pthread_create=yes
34174 echo "$as_me: failed program was:" >&5
34175 sed 's/^/| /' conftest.$ac_ext >&5
34177 ac_cv_lib_pthread_pthread_create=no
34180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34181 conftest$ac_exeext conftest.$ac_ext
34182 LIBS=$ac_check_lib_save_LIBS
34184 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
34185 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
34186 if test $ac_cv_lib_pthread_pthread_create = yes; then
34187 PTHREAD_LIB="-lpthread"
34189 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
34190 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
34191 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
34192 echo $ECHO_N "(cached) $ECHO_C" >&6
34194 ac_check_lib_save_LIBS=$LIBS
34195 LIBS="-lpthreads $LIBS"
34196 cat >conftest.$ac_ext <<_ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h. */
34203 /* Override any GCC internal prototype to avoid an error.
34204 Use char because int might match the return type of a GCC
34205 builtin and then its argument prototype would still apply. */
34209 char pthread_create ();
34213 return pthread_create ();
34218 rm -f conftest.$ac_objext conftest$ac_exeext
34219 if { (ac_try="$ac_link"
34220 case "(($ac_try" in
34221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34222 *) ac_try_echo=$ac_try;;
34224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34225 (eval "$ac_link") 2>conftest.er1
34227 grep -v '^ *+' conftest.er1 >conftest.err
34229 cat conftest.err >&5
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); } && {
34232 test -z "$ac_c_werror_flag" ||
34233 test ! -s conftest.err
34234 } && test -s conftest$ac_exeext &&
34235 $as_test_x conftest$ac_exeext; then
34236 ac_cv_lib_pthreads_pthread_create=yes
34238 echo "$as_me: failed program was:" >&5
34239 sed 's/^/| /' conftest.$ac_ext >&5
34241 ac_cv_lib_pthreads_pthread_create=no
34244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34245 conftest$ac_exeext conftest.$ac_ext
34246 LIBS=$ac_check_lib_save_LIBS
34248 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
34249 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
34250 if test $ac_cv_lib_pthreads_pthread_create = yes; then
34251 PTHREAD_LIB="-lpthreads"
34253 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
34254 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
34255 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
34256 echo $ECHO_N "(cached) $ECHO_C" >&6
34258 ac_check_lib_save_LIBS=$LIBS
34260 cat >conftest.$ac_ext <<_ACEOF
34263 cat confdefs.h >>conftest.$ac_ext
34264 cat >>conftest.$ac_ext <<_ACEOF
34265 /* end confdefs.h. */
34267 /* Override any GCC internal prototype to avoid an error.
34268 Use char because int might match the return type of a GCC
34269 builtin and then its argument prototype would still apply. */
34273 char pthread_create ();
34277 return pthread_create ();
34282 rm -f conftest.$ac_objext conftest$ac_exeext
34283 if { (ac_try="$ac_link"
34284 case "(($ac_try" in
34285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34286 *) ac_try_echo=$ac_try;;
34288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34289 (eval "$ac_link") 2>conftest.er1
34291 grep -v '^ *+' conftest.er1 >conftest.err
34293 cat conftest.err >&5
34294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295 (exit $ac_status); } && {
34296 test -z "$ac_c_werror_flag" ||
34297 test ! -s conftest.err
34298 } && test -s conftest$ac_exeext &&
34299 $as_test_x conftest$ac_exeext; then
34300 ac_cv_lib_c_r_pthread_create=yes
34302 echo "$as_me: failed program was:" >&5
34303 sed 's/^/| /' conftest.$ac_ext >&5
34305 ac_cv_lib_c_r_pthread_create=no
34308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34309 conftest$ac_exeext conftest.$ac_ext
34310 LIBS=$ac_check_lib_save_LIBS
34312 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
34313 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
34314 if test $ac_cv_lib_c_r_pthread_create = yes; then
34315 PTHREAD_LIB="-lc_r"
34317 { echo "$as_me:$LINENO: checking for pthread_create" >&5
34318 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
34319 if test "${ac_cv_func_pthread_create+set}" = set; then
34320 echo $ECHO_N "(cached) $ECHO_C" >&6
34322 cat >conftest.$ac_ext <<_ACEOF
34325 cat confdefs.h >>conftest.$ac_ext
34326 cat >>conftest.$ac_ext <<_ACEOF
34327 /* end confdefs.h. */
34328 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
34329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34330 #define pthread_create innocuous_pthread_create
34332 /* System header to define __stub macros and hopefully few prototypes,
34333 which can conflict with char pthread_create (); below.
34334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34335 <limits.h> exists even on freestanding compilers. */
34338 # include <limits.h>
34340 # include <assert.h>
34343 #undef pthread_create
34345 /* Override any GCC internal prototype to avoid an error.
34346 Use char because int might match the return type of a GCC
34347 builtin and then its argument prototype would still apply. */
34351 char pthread_create ();
34352 /* The GNU C library defines this for functions which it implements
34353 to always fail with ENOSYS. Some functions are actually named
34354 something starting with __ and the normal name is an alias. */
34355 #if defined __stub_pthread_create || defined __stub___pthread_create
34362 return pthread_create ();
34367 rm -f conftest.$ac_objext conftest$ac_exeext
34368 if { (ac_try="$ac_link"
34369 case "(($ac_try" in
34370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34371 *) ac_try_echo=$ac_try;;
34373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34374 (eval "$ac_link") 2>conftest.er1
34376 grep -v '^ *+' conftest.er1 >conftest.err
34378 cat conftest.err >&5
34379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34380 (exit $ac_status); } && {
34381 test -z "$ac_c_werror_flag" ||
34382 test ! -s conftest.err
34383 } && test -s conftest$ac_exeext &&
34384 $as_test_x conftest$ac_exeext; then
34385 ac_cv_func_pthread_create=yes
34387 echo "$as_me: failed program was:" >&5
34388 sed 's/^/| /' conftest.$ac_ext >&5
34390 ac_cv_func_pthread_create=no
34393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34394 conftest$ac_exeext conftest.$ac_ext
34396 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
34397 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
34410 cat >>confdefs.h <<\_ACEOF
34416 CFLAGS=${CFLAGS--O}
34418 if test x$have_gcc = xyes ; then
34419 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34420 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34422 LDFLAGS=${LDFLAGS--O}
34423 DB_LIBS="${SQL_LFLAGS}"
34424 CPPFLAGS="$CPPFLAGS"
34452 # Finally we set appropriate distribution specific
34453 # variables and defaults
34455 # PFILES are platform specific files
34456 PFILES="platforms/Makefile"
34460 hostname=`uname -n | cut -d '.' -f 1`
34461 if test x${hostname} = x ; then
34462 hostname="localhost"
34464 case "$DISTNAME" in
34467 PSCMD="ps -e -o pid,comm"
34468 PFILES="${PFILES} \
34469 platforms/aix/Makefile"
34470 TAPEDRIVE="/dev/rmt0.1"
34474 PTHREAD_LIB="-lpthread -lexc"
34475 if test "${CC}" = "gcc" ; then
34482 TAPEDRIVE="/dev/nrmt0"
34485 DISTVER=`uname -a |awk '{print $3}'`
34486 TAPEDRIVE="/dev/nrmt0"
34487 PTHREAD_LIB="-pthread"
34488 CFLAGS="${CFLAGS} -pthread"
34489 PSCMD="ps -ax -o pid,command"
34492 PFILES="${PFILES} \
34493 platforms/bsdi/Makefile \
34494 platforms/bsdi/bacula-fd \
34495 platforms/bsdi/bacula-sd \
34496 platforms/bsdi/bacula-dir"
34497 largefile_support="yes"
34500 DISTVER=`uname -a |awk '{print $3}'`
34501 TAPEDRIVE="/dev/nrst0"
34503 WCFLAGS="-mwindows"
34504 WLDFLAGS="-mwindows"
34508 TAPEDRIVE="/dev/nst0"
34509 PSCMD="ps -e -o pid,command"
34511 PFILES="${PFILES} \
34512 platforms/darwin/Makefile"
34515 if `grep -q ubuntu /etc/apt/sources.list`; then
34518 DISTVER=`cat /etc/debian_version`
34519 if test -f /etc/lsb-release ; then
34521 if test "x$DISTRIB_ID" != "x" ; then
34522 DISTNAME=$DISTRIB_ID
34524 if test "x$DISTRIB_RELEASE" != "x" ; then
34525 DISTVER=$DISTRIB_RELEASE
34528 if test "$DISTNAME" = "Ubuntu" ; then
34531 TAPEDRIVE="/dev/nst0"
34532 PSCMD="ps -e -o pid,command"
34533 if test "$DISTNAME" = "ubuntu" ; then
34534 PFILES="${PFILES} \
34535 platforms/ubuntu/Makefile \
34536 platforms/ubuntu/bacula-fd \
34537 platforms/ubuntu/bacula-sd \
34538 platforms/ubuntu/bacula-dir"
34540 PFILES="${PFILES} \
34541 platforms/debian/Makefile \
34542 platforms/debian/bacula-fd \
34543 platforms/debian/bacula-sd \
34544 platforms/debian/bacula-dir"
34548 DISTVER=`uname -a |awk '{print $3}'`
34549 VER=`echo $DISTVER | cut -c 1`
34550 if test x$VER = x4 ; then
34551 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
34552 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34556 TAPEDRIVE="/dev/nrsa0"
34557 PSCMD="ps -ax -o pid,command"
34558 PFILES="${PFILES} \
34559 platforms/freebsd/Makefile \
34560 platforms/freebsd/bacula-fd \
34561 platforms/freebsd/bacula-sd \
34562 platforms/freebsd/bacula-dir"
34563 largefile_support="yes"
34566 PSCMD="UNIX95=1; ps -e -o pid,comm"
34567 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34569 TAPEDRIVE="/dev/rmt/0hnb"
34570 PTHREAD_LIB="-lpthread"
34571 cat >>confdefs.h <<\_ACEOF
34572 #define _INCLUDE_LONGLONG 1
34578 TAPEDRIVE="/dev/rmt/0cbn"
34579 PSCMD="ps -e -o pid,comm"
34580 PFILES="${PFILES} \
34581 platforms/irix/Makefile \
34582 platforms/irix/bacula-fd \
34583 platforms/irix/bacula-sd \
34584 platforms/irix/bacula-dir"
34587 DISTVER=`uname -a |awk '{print $3}'`
34590 TAPEDRIVE="/dev/nrst0"
34591 PSCMD="ps -ax -o pid,command"
34592 PTHREAD_LIB="-pthread"
34593 CFLAGS="${CFLAGS} -pthread"
34596 DISTVER=`uname -a |awk '{print $3}'`
34599 TAPEDRIVE="/dev/nrst0"
34600 PSCMD="ps -ax -o pid,command"
34601 PTHREAD_LIB="-pthread"
34602 CFLAGS="${CFLAGS} -pthread"
34603 PFILES="${PFILES} \
34604 platforms/openbsd/Makefile \
34605 platforms/openbsd/bacula-fd \
34606 platforms/openbsd/bacula-sd \
34607 platforms/openbsd/bacula-dir"
34610 if test -f /etc/whitebox-release ; then
34611 f=/etc/whitebox-release
34613 f=/etc/redhat-release
34615 if test `cat $f | grep release |\
34616 cut -f 3 -d ' '`x = "Enterprise"x ; then
34617 DISTVER="Enterprise "`cat $f | grep release |\
34620 DISTVER=`cat /etc/redhat-release | grep release |\
34623 TAPEDRIVE="/dev/nst0"
34624 PSCMD="ps -e -o pid,command"
34625 PFILES="${PFILES} \
34626 platforms/redhat/Makefile \
34627 platforms/redhat/bacula-fd \
34628 platforms/redhat/bacula-sd \
34629 platforms/redhat/bacula-dir \
34630 platforms/redhat/bacula.spec \
34634 DISTVER=`cat /etc/mandrake-release | grep release |\
34636 TAPEDRIVE="/dev/nst0"
34637 PSCMD="ps -e -o pid,command"
34638 PFILES="${PFILES} \
34639 platforms/mandrake/Makefile \
34640 platforms/mandrake/bacula-fd \
34641 platforms/mandrake/bacula-sd \
34642 platforms/mandrake/bacula-dir \
34643 platforms/mandrake/bacula.spec \
34647 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34648 TAPEDRIVE="/dev/nst0"
34649 PSCMD="ps -e -o pid,command"
34650 PFILES="${PFILES} \
34651 platforms/gentoo/Makefile \
34652 platforms/gentoo/bacula-init \
34653 platforms/gentoo/bacula-fd \
34654 platforms/gentoo/bacula-sd \
34655 platforms/gentoo/bacula-dir"
34658 DISTVER=`cat /etc/slackware-version`
34659 TAPEDRIVE="/dev/nst0"
34660 PSCMD="ps -e -o pid,command"
34661 PFILES="${PFILES} \
34662 platforms/slackware/Makefile \
34663 platforms/slackware/rc.bacula-fd \
34664 platforms/slackware/rc.bacula-sd \
34665 platforms/slackware/rc.bacula-dir\
34666 platforms/slackware/functions.bacula"
34670 TAPEDRIVE="/dev/rmt/0cbn"
34671 PSCMD="ps -e -o pid,comm"
34672 PFILES="${PFILES} \
34673 platforms/solaris/Makefile \
34674 platforms/solaris/bacula-fd \
34675 platforms/solaris/bacula-sd \
34676 platforms/solaris/bacula-dir"
34677 if test x$DISTVER = x5.6 ; then
34678 cat >>confdefs.h <<\_ACEOF
34679 #define HAVE_OLD_SOCKOPT 1
34683 LIBS="$LIBS -lresolv"
34686 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34688 TAPEDRIVE="/dev/nst0"
34689 PSCMD="ps -e -o pid,command"
34690 PFILES="${PFILES} \
34691 platforms/suse/Makefile \
34692 platforms/suse/bacula-fd \
34693 platforms/suse/bacula-sd \
34694 platforms/suse/bacula-dir \
34695 platforms/suse/bacula \
34696 platforms/suse/bacula.spec"
34701 TAPEDRIVE="/dev/nst0"
34702 PSCMD="ps -e -o pid,command"
34703 PFILES="${PFILES} \
34704 platforms/suse/Makefile \
34705 platforms/suse/bacula-fd \
34706 platforms/suse/bacula-sd \
34707 platforms/suse/bacula-dir"
34711 TAPEDRIVE="/dev/nst0"
34714 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34720 LIBS="$PTHREAD_LIB $LIBS"
34722 cat >>confdefs.h <<_ACEOF
34726 cat >>confdefs.h <<_ACEOF
34737 MCOMMON=./autoconf/Make.common
34740 if test "x${subsysdir}" = "x${sbindir}" ; then
34743 echo "You have set both --sbindir and --with-subsys-dir"
34744 echo " equal to: ${subsysdir} "
34745 echo "This is not permitted. Please reconfigure."
34747 echo "Aborting configuration ..."
34753 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
34755 ac_config_commands="$ac_config_commands default"
34757 cat >confcache <<\_ACEOF
34758 # This file is a shell script that caches the results of configure
34759 # tests run on this system so they can be shared between configure
34760 # scripts and configure runs, see configure's option --config-cache.
34761 # It is not useful on other systems. If it contains results you don't
34762 # want to keep, you may remove or edit it.
34764 # config.status only pays attention to the cache file if you give it
34765 # the --recheck option to rerun configure.
34767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34769 # following values.
34773 # The following way of writing the cache mishandles newlines in values,
34774 # but we know of no workaround that is simple, portable, and efficient.
34775 # So, we kill variables containing newlines.
34776 # Ultrix sh set writes to stderr and can't be redirected directly,
34777 # and sets the high bit in the cache file unless we assign to the vars.
34779 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34780 eval ac_val=\$$ac_var
34784 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34785 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34788 _ | IFS | as_nl) ;; #(
34789 *) $as_unset $ac_var ;;
34795 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34796 *${as_nl}ac_space=\ *)
34797 # `set' does not quote correctly, so add quotes (double-quote
34798 # substitution turns \\\\ into \\, and sed turns \\ into \).
34801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34804 # `set' quotes correctly as required by POSIX, so do not add quotes.
34805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34819 if test -w "$cache_file"; then
34820 test "x$cache_file" != "x/dev/null" &&
34821 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34822 echo "$as_me: updating cache $cache_file" >&6;}
34823 cat confcache >$cache_file
34825 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34826 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34832 # Let make expand exec_prefix.
34833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34835 DEFS=-DHAVE_CONFIG_H
34839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34840 # 1. Remove the extension, and $U if already installed.
34841 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34842 ac_i=`echo "$ac_i" | sed "$ac_script"`
34843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34844 # will be set to the directory where LIBOBJS objects are built.
34845 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34846 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34848 LIBOBJS=$ac_libobjs
34850 LTLIBOBJS=$ac_ltlibobjs
34854 : ${CONFIG_STATUS=./config.status}
34855 ac_clean_files_save=$ac_clean_files
34856 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34857 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34858 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34859 cat >$CONFIG_STATUS <<_ACEOF
34861 # Generated by $as_me.
34862 # Run this file to recreate the current configuration.
34863 # Compiler output produced by configure, useful for debugging
34864 # configure, is in config.log if it exists.
34867 ac_cs_recheck=false
34869 SHELL=\${CONFIG_SHELL-$SHELL}
34872 cat >>$CONFIG_STATUS <<\_ACEOF
34873 ## --------------------- ##
34874 ## M4sh Initialization. ##
34875 ## --------------------- ##
34877 # Be more Bourne compatible
34878 DUALCASE=1; export DUALCASE # for MKS sh
34879 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34882 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34883 # is contrary to our usage. Disable this feature.
34884 alias -g '${1+"$@"}'='"$@"'
34885 setopt NO_GLOB_SUBST
34887 case `(set -o) 2>/dev/null` in
34888 *posix*) set -o posix ;;
34897 # Avoid depending upon Character Ranges.
34898 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34899 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34900 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34901 as_cr_digits='0123456789'
34902 as_cr_alnum=$as_cr_Letters$as_cr_digits
34904 # The user is always right.
34905 if test "${PATH_SEPARATOR+set}" != set; then
34906 echo "#! /bin/sh" >conf$$.sh
34907 echo "exit 0" >>conf$$.sh
34909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34917 # Support unset when possible.
34918 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34926 # We need space, tab and new line, in precisely that order. Quoting is
34927 # there to prevent editors from complaining about space-tab.
34928 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34929 # splitting by setting IFS to empty value.)
34934 # Find who we are. Look in the path if we contain no directory separator.
34936 *[\\/]* ) as_myself=$0 ;;
34937 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34938 for as_dir in $PATH
34941 test -z "$as_dir" && as_dir=.
34942 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34948 # We did not find ourselves, most probably we were run as `sh COMMAND'
34949 # in which case we are not to be found in the path.
34950 if test "x$as_myself" = x; then
34953 if test ! -f "$as_myself"; then
34954 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34955 { (exit 1); exit 1; }
34958 # Work around bugs in pre-3.0 UWIN ksh.
34959 for as_var in ENV MAIL MAILPATH
34960 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34968 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34969 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34970 LC_TELEPHONE LC_TIME
34972 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34973 eval $as_var=C; export $as_var
34975 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34979 # Required to use basename.
34980 if expr a : '\(a\)' >/dev/null 2>&1 &&
34981 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34987 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34988 as_basename=basename
34994 # Name of the executable.
34995 as_me=`$as_basename -- "$0" ||
34996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34997 X"$0" : 'X\(//\)$' \| \
34998 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35000 sed '/^.*\/\([^/][^/]*\)\/*$/{
35019 as_lineno_1=$LINENO
35020 as_lineno_2=$LINENO
35021 test "x$as_lineno_1" != "x$as_lineno_2" &&
35022 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35024 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35025 # uniformly replaced by the line number. The first 'sed' inserts a
35026 # line-number line after each line using $LINENO; the second 'sed'
35027 # does the real work. The second script uses 'N' to pair each
35028 # line-number line with the line containing $LINENO, and appends
35029 # trailing '-' during substitution so that $LINENO is not a special
35030 # case at line end.
35031 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35032 # scripts with optimization help from Paolo Bonzini. Blame Lee
35033 # E. McMahon (1931-1989) for sed's syntax. :-)
35045 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35048 ' >$as_me.lineno &&
35049 chmod +x "$as_me.lineno" ||
35050 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35051 { (exit 1); exit 1; }; }
35053 # Don't try to exec as it changes $[0], causing all sort of problems
35054 # (the dirname of $[0] is not the place where we might find the
35055 # original and so on. Autoconf is especially sensitive to this).
35056 . "./$as_me.lineno"
35057 # Exit status is that of the last command.
35062 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35068 ECHO_C= ECHO_N= ECHO_T=
35069 case `echo -n x` in
35071 case `echo 'x\c'` in
35072 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35079 if expr a : '\(a\)' >/dev/null 2>&1 &&
35080 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35086 rm -f conf$$ conf$$.exe conf$$.file
35087 if test -d conf$$.dir; then
35088 rm -f conf$$.dir/conf$$.file
35094 if ln -s conf$$.file conf$$ 2>/dev/null; then
35096 # ... but there are two gotchas:
35097 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35098 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35099 # In both cases, we have to default to `cp -p'.
35100 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35102 elif ln conf$$.file conf$$ 2>/dev/null; then
35107 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35108 rmdir conf$$.dir 2>/dev/null
35110 if mkdir -p . 2>/dev/null; then
35113 test -d ./-p && rmdir ./-p
35117 if test -x / >/dev/null 2>&1; then
35118 as_test_x='test -x'
35120 if ls -dL / >/dev/null 2>&1; then
35127 if test -d "$1"; then
35133 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35134 ???[sx]*):;;*)false;;esac;fi
35138 as_executable_p=$as_test_x
35140 # Sed expression to map a string onto a valid CPP name.
35141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35143 # Sed expression to map a string onto a valid variable name.
35144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35149 # Save the log message, to keep $[0] and so on meaningful, and to
35150 # report actual input values of CONFIG_FILES etc. instead of their
35151 # values after options handling.
35153 This file was extended by $as_me, which was
35154 generated by GNU Autoconf 2.61. Invocation command line was
35156 CONFIG_FILES = $CONFIG_FILES
35157 CONFIG_HEADERS = $CONFIG_HEADERS
35158 CONFIG_LINKS = $CONFIG_LINKS
35159 CONFIG_COMMANDS = $CONFIG_COMMANDS
35162 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35167 cat >>$CONFIG_STATUS <<_ACEOF
35168 # Files that config.status was made for.
35169 config_files="$ac_config_files"
35170 config_headers="$ac_config_headers"
35171 config_commands="$ac_config_commands"
35175 cat >>$CONFIG_STATUS <<\_ACEOF
35177 \`$as_me' instantiates files from templates according to the
35178 current configuration.
35180 Usage: $0 [OPTIONS] [FILE]...
35182 -h, --help print this help, then exit
35183 -V, --version print version number and configuration settings, then exit
35184 -q, --quiet do not print progress messages
35185 -d, --debug don't remove temporary files
35186 --recheck update $as_me by reconfiguring in the same conditions
35187 --file=FILE[:TEMPLATE]
35188 instantiate the configuration file FILE
35189 --header=FILE[:TEMPLATE]
35190 instantiate the configuration header FILE
35192 Configuration files:
35195 Configuration headers:
35198 Configuration commands:
35201 Report bugs to <bug-autoconf@gnu.org>."
35204 cat >>$CONFIG_STATUS <<_ACEOF
35207 configured by $0, generated by GNU Autoconf 2.61,
35208 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35210 Copyright (C) 2006 Free Software Foundation, Inc.
35211 This config.status script is free software; the Free Software Foundation
35212 gives unlimited permission to copy, distribute and modify it."
35219 cat >>$CONFIG_STATUS <<\_ACEOF
35220 # If no file are specified by the user, then we need to provide default
35221 # value. By we need to know if files were specified by the user.
35227 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35228 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35239 # Handling of the options.
35240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35242 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35243 echo "$ac_cs_version"; exit ;;
35244 --debug | --debu | --deb | --de | --d | -d )
35246 --file | --fil | --fi | --f )
35248 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35249 ac_need_defaults=false;;
35250 --header | --heade | --head | --hea )
35252 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35253 ac_need_defaults=false;;
35255 # Conflict between --help and --header
35256 { echo "$as_me: error: ambiguous option: $1
35257 Try \`$0 --help' for more information." >&2
35258 { (exit 1); exit 1; }; };;
35259 --help | --hel | -h )
35260 echo "$ac_cs_usage"; exit ;;
35261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35262 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35265 # This is an error.
35266 -*) { echo "$as_me: error: unrecognized option: $1
35267 Try \`$0 --help' for more information." >&2
35268 { (exit 1); exit 1; }; } ;;
35270 *) ac_config_targets="$ac_config_targets $1"
35271 ac_need_defaults=false ;;
35277 ac_configure_extra_args=
35279 if $ac_cs_silent; then
35281 ac_configure_extra_args="$ac_configure_extra_args --silent"
35285 cat >>$CONFIG_STATUS <<_ACEOF
35286 if \$ac_cs_recheck; then
35287 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35288 CONFIG_SHELL=$SHELL
35289 export CONFIG_SHELL
35290 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35294 cat >>$CONFIG_STATUS <<\_ACEOF
35298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35299 ## Running $as_me. ##
35305 cat >>$CONFIG_STATUS <<_ACEOF
35309 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35310 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
35312 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35313 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35314 LINGUAS="${LINGUAS-%UNSET%}"
35319 cat >>$CONFIG_STATUS <<\_ACEOF
35321 # Handling of arguments.
35322 for ac_config_target in $ac_config_targets
35324 case $ac_config_target in
35325 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
35326 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35327 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
35328 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35329 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
35330 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
35331 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
35332 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
35333 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
35334 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
35335 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
35336 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
35337 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
35338 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
35339 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
35340 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
35341 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
35342 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
35343 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
35344 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
35345 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
35346 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
35347 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
35348 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
35349 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
35350 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
35351 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
35352 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
35353 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
35354 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
35355 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
35356 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
35357 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
35358 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
35359 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
35360 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
35361 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
35362 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
35363 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
35364 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
35365 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35366 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
35367 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
35368 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
35369 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
35370 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
35371 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
35372 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
35373 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
35374 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
35375 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
35376 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
35377 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
35378 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
35379 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
35380 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
35381 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
35382 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
35383 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
35384 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
35385 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
35386 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
35387 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
35388 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
35389 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
35390 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
35391 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
35392 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
35393 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
35394 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
35395 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
35396 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
35397 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
35398 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
35399 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
35400 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
35401 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
35402 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
35403 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
35404 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
35405 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
35406 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
35407 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
35408 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
35409 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
35410 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
35411 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
35412 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
35413 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
35414 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
35415 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
35416 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
35417 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
35418 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
35419 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
35420 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
35421 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
35422 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
35423 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
35424 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
35425 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
35426 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
35427 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
35428 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
35429 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
35430 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
35431 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
35432 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
35433 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
35434 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35436 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35437 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35438 { (exit 1); exit 1; }; };;
35443 # If the user did not use the arguments to specify the items to instantiate,
35444 # then the envvar interface is used. Set only those that are not.
35445 # We use the long form for the default assignment because of an extremely
35446 # bizarre bug on SunOS 4.1.3.
35447 if $ac_need_defaults; then
35448 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35449 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35450 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35453 # Have a temporary directory for convenience. Make it in the build tree
35454 # simply because there is no reason against having it here, and in addition,
35455 # creating and moving files from /tmp can sometimes cause problems.
35456 # Hook for its removal unless debugging.
35457 # Note that there is a small window in which the directory will not be cleaned:
35458 # after its creation but before its name has been assigned to `$tmp'.
35462 trap 'exit_status=$?
35463 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35465 trap '{ (exit 1); exit 1; }' 1 2 13 15
35467 # Create a (secure) tmp directory for tmp files.
35470 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35471 test -n "$tmp" && test -d "$tmp"
35474 tmp=./conf$$-$RANDOM
35475 (umask 077 && mkdir "$tmp")
35478 echo "$me: cannot create a temporary directory in ." >&2
35479 { (exit 1); exit 1; }
35483 # Set up the sed scripts for CONFIG_FILES section.
35486 # No need to generate the scripts if there are no CONFIG_FILES.
35487 # This happens for instance when ./config.status config.h
35488 if test -n "$CONFIG_FILES"; then
35492 # Create sed commands to just substitute file output variables.
35494 # Remaining file output variables are in a fragment that also has non-file
35500 for ac_last_try in false false false false false :; do
35501 cat >conf$$subs.sed <<_ACEOF
35502 SHELL!$SHELL$ac_delim
35503 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35504 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35505 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35506 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35507 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35508 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35509 exec_prefix!$exec_prefix$ac_delim
35510 prefix!$prefix$ac_delim
35511 program_transform_name!$program_transform_name$ac_delim
35512 bindir!$bindir$ac_delim
35513 sbindir!$sbindir$ac_delim
35514 libexecdir!$libexecdir$ac_delim
35515 datarootdir!$datarootdir$ac_delim
35516 datadir!$datadir$ac_delim
35517 sysconfdir!$sysconfdir$ac_delim
35518 sharedstatedir!$sharedstatedir$ac_delim
35519 localstatedir!$localstatedir$ac_delim
35520 includedir!$includedir$ac_delim
35521 oldincludedir!$oldincludedir$ac_delim
35522 docdir!$docdir$ac_delim
35523 infodir!$infodir$ac_delim
35524 htmldir!$htmldir$ac_delim
35525 dvidir!$dvidir$ac_delim
35526 pdfdir!$pdfdir$ac_delim
35527 psdir!$psdir$ac_delim
35528 libdir!$libdir$ac_delim
35529 localedir!$localedir$ac_delim
35530 mandir!$mandir$ac_delim
35531 DEFS!$DEFS$ac_delim
35532 ECHO_C!$ECHO_C$ac_delim
35533 ECHO_N!$ECHO_N$ac_delim
35534 ECHO_T!$ECHO_T$ac_delim
35535 LIBS!$LIBS$ac_delim
35536 build_alias!$build_alias$ac_delim
35537 host_alias!$host_alias$ac_delim
35538 target_alias!$target_alias$ac_delim
35539 BUILD_DIR!$BUILD_DIR$ac_delim
35540 TOP_DIR!$TOP_DIR$ac_delim
35541 TRUEPRG!$TRUEPRG$ac_delim
35542 FALSEPRG!$FALSEPRG$ac_delim
35543 VERSION!$VERSION$ac_delim
35544 DATE!$DATE$ac_delim
35545 LSMDATE!$LSMDATE$ac_delim
35547 CFLAGS!$CFLAGS$ac_delim
35548 LDFLAGS!$LDFLAGS$ac_delim
35549 CPPFLAGS!$CPPFLAGS$ac_delim
35550 ac_ct_CC!$ac_ct_CC$ac_delim
35551 EXEEXT!$EXEEXT$ac_delim
35552 OBJEXT!$OBJEXT$ac_delim
35554 CXXFLAGS!$CXXFLAGS$ac_delim
35555 ac_ct_CXX!$ac_ct_CXX$ac_delim
35557 GREP!$GREP$ac_delim
35558 EGREP!$EGREP$ac_delim
35559 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35560 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35561 INSTALL_DATA!$INSTALL_DATA$ac_delim
35562 RANLIB!$RANLIB$ac_delim
35567 ECHO!$ECHO$ac_delim
35571 OPENSSL!$OPENSSL$ac_delim
35574 MKISOFS!$MKISOFS$ac_delim
35575 PYTHON!$PYTHON$ac_delim
35576 GROWISOFS!$GROWISOFS$ac_delim
35577 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35578 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35579 PKGCONFIG!$PKGCONFIG$ac_delim
35580 QMAKE!$QMAKE$ac_delim
35581 QMAKEQT4!$QMAKEQT4$ac_delim
35582 WXCONFIG!$WXCONFIG$ac_delim
35583 WXFLAGS!$WXFLAGS$ac_delim
35584 CDRECORD!$CDRECORD$ac_delim
35585 PIDOF!$PIDOF$ac_delim
35587 ARFLAGS!$ARFLAGS$ac_delim
35588 MAKE_SHELL!$MAKE_SHELL$ac_delim
35589 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35590 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35591 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35592 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35593 build!$build$ac_delim
35594 build_cpu!$build_cpu$ac_delim
35595 build_vendor!$build_vendor$ac_delim
35598 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35600 elif $ac_last_try; then
35601 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35602 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35603 { (exit 1); exit 1; }; }
35605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35609 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35610 if test -n "$ac_eof"; then
35611 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35612 ac_eof=`expr $ac_eof + 1`
35615 cat >>$CONFIG_STATUS <<_ACEOF
35616 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35618 /^[ ]*@MCOMMON@[ ]*$/{
35624 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35625 s/^/s,@/; s/!/@,|#_!!_#|/
35628 s/'"$ac_delim"'$/,g/; t
35630 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35631 ' >>$CONFIG_STATUS <conf$$subs.sed
35632 rm -f conf$$subs.sed
35633 cat >>$CONFIG_STATUS <<_ACEOF
35639 for ac_last_try in false false false false false :; do
35640 cat >conf$$subs.sed <<_ACEOF
35641 build_os!$build_os$ac_delim
35642 host!$host$ac_delim
35643 host_cpu!$host_cpu$ac_delim
35644 host_vendor!$host_vendor$ac_delim
35645 host_os!$host_os$ac_delim
35646 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35647 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35648 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35649 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35650 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35651 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35652 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35653 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35654 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35655 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35656 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35657 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35658 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35659 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35660 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35661 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35662 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35663 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35664 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35665 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35666 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35667 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35668 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35669 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35670 SET_MAKE!$SET_MAKE$ac_delim
35671 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35672 USE_NLS!$USE_NLS$ac_delim
35673 MSGFMT!$MSGFMT$ac_delim
35674 GMSGFMT!$GMSGFMT$ac_delim
35675 XGETTEXT!$XGETTEXT$ac_delim
35676 MSGMERGE!$MSGMERGE$ac_delim
35677 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35678 LIBICONV!$LIBICONV$ac_delim
35679 LTLIBICONV!$LTLIBICONV$ac_delim
35680 INTLLIBS!$INTLLIBS$ac_delim
35681 LIBINTL!$LIBINTL$ac_delim
35682 LTLIBINTL!$LTLIBINTL$ac_delim
35683 POSUB!$POSUB$ac_delim
35684 GLIBC2!$GLIBC2$ac_delim
35685 ALLOCA!$ALLOCA$ac_delim
35686 GLIBC21!$GLIBC21$ac_delim
35687 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35688 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35689 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35690 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35691 INTLBISON!$INTLBISON$ac_delim
35692 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35693 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35694 CATOBJEXT!$CATOBJEXT$ac_delim
35695 DATADIRNAME!$DATADIRNAME$ac_delim
35696 INSTOBJEXT!$INSTOBJEXT$ac_delim
35697 GENCAT!$GENCAT$ac_delim
35698 INTLOBJS!$INTLOBJS$ac_delim
35699 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35700 BDB_CPPFLAGS!$BDB_CPPFLAGS$ac_delim
35701 BDB_LIBS!$BDB_LIBS$ac_delim
35702 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35703 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35704 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35705 GNOME_LIBS!$GNOME_LIBS$ac_delim
35706 GNOME_DIR!$GNOME_DIR$ac_delim
35707 BAT_DIR!$BAT_DIR$ac_delim
35708 QWT_INC!$QWT_INC$ac_delim
35709 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
35710 QWT_LIB!$QWT_LIB$ac_delim
35712 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35713 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35714 WX_DIR!$WX_DIR$ac_delim
35715 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35716 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35717 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35718 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35719 STATIC_FD!$STATIC_FD$ac_delim
35720 STATIC_SD!$STATIC_SD$ac_delim
35721 STATIC_DIR!$STATIC_DIR$ac_delim
35722 STATIC_CONS!$STATIC_CONS$ac_delim
35723 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35724 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35725 ALL_DIRS!$ALL_DIRS$ac_delim
35726 DIRD_DIR!$DIRD_DIR$ac_delim
35727 DIR_TOOLS!$DIR_TOOLS$ac_delim
35728 STORED_DIR!$STORED_DIR$ac_delim
35729 CONS_INC!$CONS_INC$ac_delim
35730 CONS_OBJ!$CONS_OBJ$ac_delim
35731 CONS_SRC!$CONS_SRC$ac_delim
35732 CONS_LIBS!$CONS_LIBS$ac_delim
35733 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35734 READLINE_SRC!$READLINE_SRC$ac_delim
35735 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35736 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35737 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35740 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35742 elif $ac_last_try; then
35743 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35744 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35745 { (exit 1); exit 1; }; }
35747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35751 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35752 if test -n "$ac_eof"; then
35753 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35754 ac_eof=`expr $ac_eof + 1`
35757 cat >>$CONFIG_STATUS <<_ACEOF
35758 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35762 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35763 s/^/s,@/; s/!/@,|#_!!_#|/
35766 s/'"$ac_delim"'$/,g/; t
35768 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35769 ' >>$CONFIG_STATUS <conf$$subs.sed
35770 rm -f conf$$subs.sed
35771 cat >>$CONFIG_STATUS <<_ACEOF
35777 for ac_last_try in false false false false false :; do
35778 cat >conf$$subs.sed <<_ACEOF
35779 OPENSSL_INC!$OPENSSL_INC$ac_delim
35780 working_dir!$working_dir$ac_delim
35781 archivedir!$archivedir$ac_delim
35782 scriptdir!$scriptdir$ac_delim
35783 dump_email!$dump_email$ac_delim
35784 job_email!$job_email$ac_delim
35785 smtp_host!$smtp_host$ac_delim
35786 piddir!$piddir$ac_delim
35787 subsysdir!$subsysdir$ac_delim
35788 baseport!$baseport$ac_delim
35789 dir_port!$dir_port$ac_delim
35790 fd_port!$fd_port$ac_delim
35791 sd_port!$sd_port$ac_delim
35792 dir_password!$dir_password$ac_delim
35793 fd_password!$fd_password$ac_delim
35794 sd_password!$sd_password$ac_delim
35795 mon_dir_password!$mon_dir_password$ac_delim
35796 mon_fd_password!$mon_fd_password$ac_delim
35797 mon_sd_password!$mon_sd_password$ac_delim
35798 db_name!$db_name$ac_delim
35799 db_user!$db_user$ac_delim
35800 db_password!$db_password$ac_delim
35801 db_port!$db_port$ac_delim
35802 dir_user!$dir_user$ac_delim
35803 dir_group!$dir_group$ac_delim
35804 sd_user!$sd_user$ac_delim
35805 sd_group!$sd_group$ac_delim
35806 fd_user!$fd_user$ac_delim
35807 fd_group!$fd_group$ac_delim
35808 SBINPERM!$SBINPERM$ac_delim
35809 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35810 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35811 SQL_BINDIR!$SQL_BINDIR$ac_delim
35812 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
35813 uncomment_dbi!$uncomment_dbi$ac_delim
35814 DB_PROG!$DB_PROG$ac_delim
35815 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
35816 cats!$cats$ac_delim
35817 DB_TYPE!$DB_TYPE$ac_delim
35818 GETCONF!$GETCONF$ac_delim
35819 XMKMF!$XMKMF$ac_delim
35820 X_CFLAGS!$X_CFLAGS$ac_delim
35821 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35822 X_LIBS!$X_LIBS$ac_delim
35823 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35824 LIBOBJS!$LIBOBJS$ac_delim
35825 FDLIBS!$FDLIBS$ac_delim
35826 DEBUG!$DEBUG$ac_delim
35827 DINCLUDE!$DINCLUDE$ac_delim
35828 DLIB!$DLIB$ac_delim
35829 DB_LIBS!$DB_LIBS$ac_delim
35830 WCFLAGS!$WCFLAGS$ac_delim
35831 WLDFLAGS!$WLDFLAGS$ac_delim
35832 WRAPLIBS!$WRAPLIBS$ac_delim
35833 OBJLIST!$OBJLIST$ac_delim
35834 hostname!$hostname$ac_delim
35835 TAPEDRIVE!$TAPEDRIVE$ac_delim
35836 PSCMD!$PSCMD$ac_delim
35837 WIN32!$WIN32$ac_delim
35838 MACOSX!$MACOSX$ac_delim
35839 DISTNAME!$DISTNAME$ac_delim
35840 DISTVER!$DISTVER$ac_delim
35841 LTLIBOBJS!$LTLIBOBJS$ac_delim
35844 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
35846 elif $ac_last_try; then
35847 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35848 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35849 { (exit 1); exit 1; }; }
35851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35855 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35856 if test -n "$ac_eof"; then
35857 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35858 ac_eof=`expr $ac_eof + 1`
35861 cat >>$CONFIG_STATUS <<_ACEOF
35862 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35866 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35867 s/^/s,@/; s/!/@,|#_!!_#|/
35870 s/'"$ac_delim"'$/,g/; t
35872 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35873 ' >>$CONFIG_STATUS <conf$$subs.sed
35874 rm -f conf$$subs.sed
35875 cat >>$CONFIG_STATUS <<_ACEOF
35882 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35883 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35884 # trailing colons and then remove the whole line if VPATH becomes empty
35885 # (actually we leave an empty line to preserve line numbers).
35886 if test "x$srcdir" = x.; then
35887 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35888 s/:*\$(srcdir):*/:/
35889 s/:*\${srcdir}:*/:/
35891 s/^\([^=]*=[ ]*\):*/\1/
35897 cat >>$CONFIG_STATUS <<\_ACEOF
35898 fi # test -n "$CONFIG_FILES"
35901 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35904 :[FHLC]) ac_mode=$ac_tag; continue;;
35906 case $ac_mode$ac_tag in
35908 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35909 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35910 { (exit 1); exit 1; }; };;
35911 :[FH]-) ac_tag=-:-;;
35912 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35929 -) ac_f="$tmp/stdin";;
35930 *) # Look for the file first in the build tree, then in the source tree
35931 # (if the path is not absolute). The absolute path cannot be DOS-style,
35932 # because $ac_f cannot contain `:'.
35936 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35938 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35939 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35940 { (exit 1); exit 1; }; };;
35942 ac_file_inputs="$ac_file_inputs $ac_f"
35945 # Let's still pretend it is `configure' which instantiates (i.e., don't
35946 # use $as_me), people would be surprised to read:
35947 # /* config.h. Generated by config.status. */
35948 configure_input="Generated from "`IFS=:
35949 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35950 if test x"$ac_file" != x-; then
35951 configure_input="$ac_file. $configure_input"
35952 { echo "$as_me:$LINENO: creating $ac_file" >&5
35953 echo "$as_me: creating $ac_file" >&6;}
35957 *:-:* | *:-) cat >"$tmp/stdin";;
35962 ac_dir=`$as_dirname -- "$ac_file" ||
35963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35964 X"$ac_file" : 'X\(//\)[^/]' \| \
35965 X"$ac_file" : 'X\(//\)$' \| \
35966 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35972 /^X\(\/\/\)[^/].*/{
35987 -*) as_dir=./$as_dir;;
35989 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35993 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35994 *) as_qdir=$as_dir;;
35996 as_dirs="'$as_qdir' $as_dirs"
35997 as_dir=`$as_dirname -- "$as_dir" ||
35998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35999 X"$as_dir" : 'X\(//\)[^/]' \| \
36000 X"$as_dir" : 'X\(//\)$' \| \
36001 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36007 /^X\(\/\/\)[^/].*/{
36020 test -d "$as_dir" && break
36022 test -z "$as_dirs" || eval "mkdir $as_dirs"
36023 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36024 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36025 { (exit 1); exit 1; }; }; }
36029 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36031 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36032 # A ".." for each directory in $ac_dir_suffix.
36033 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36034 case $ac_top_builddir_sub in
36035 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36036 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36039 ac_abs_top_builddir=$ac_pwd
36040 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36041 # for backward compatibility:
36042 ac_top_builddir=$ac_top_build_prefix
36045 .) # We are building in place.
36047 ac_top_srcdir=$ac_top_builddir_sub
36048 ac_abs_top_srcdir=$ac_pwd ;;
36049 [\\/]* | ?:[\\/]* ) # Absolute name.
36050 ac_srcdir=$srcdir$ac_dir_suffix;
36051 ac_top_srcdir=$srcdir
36052 ac_abs_top_srcdir=$srcdir ;;
36053 *) # Relative name.
36054 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36055 ac_top_srcdir=$ac_top_build_prefix$srcdir
36056 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36058 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36068 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36069 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36073 cat >>$CONFIG_STATUS <<\_ACEOF
36074 # If the template does not know about datarootdir, expand it.
36075 # FIXME: This hack should be removed a few years after 2.60.
36076 ac_datarootdir_hack=; ac_datarootdir_seen=
36078 case `sed -n '/datarootdir/ {
36087 ' $ac_file_inputs` in
36088 *datarootdir*) ac_datarootdir_seen=yes;;
36089 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36090 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36091 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36093 cat >>$CONFIG_STATUS <<_ACEOF
36094 ac_datarootdir_hack='
36095 s&@datadir@&$datadir&g
36096 s&@docdir@&$docdir&g
36097 s&@infodir@&$infodir&g
36098 s&@localedir@&$localedir&g
36099 s&@mandir@&$mandir&g
36100 s&\\\${datarootdir}&$datarootdir&g' ;;
36104 # Neutralize VPATH when `$srcdir' = `.'.
36105 # Shell code in configure.ac might set extrasub.
36106 # FIXME: do we really want to maintain this feature?
36107 cat >>$CONFIG_STATUS <<_ACEOF
36111 cat >>$CONFIG_STATUS <<\_ACEOF
36113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36114 s&@configure_input@&$configure_input&;t t
36115 s&@top_builddir@&$ac_top_builddir_sub&;t t
36116 s&@srcdir@&$ac_srcdir&;t t
36117 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36118 s&@top_srcdir@&$ac_top_srcdir&;t t
36119 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36120 s&@builddir@&$ac_builddir&;t t
36121 s&@abs_builddir@&$ac_abs_builddir&;t t
36122 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36123 s&@INSTALL@&$ac_INSTALL&;t t
36124 $ac_datarootdir_hack
36125 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
36127 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36128 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36129 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36130 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36131 which seems to be undefined. Please make sure it is defined." >&5
36132 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36133 which seems to be undefined. Please make sure it is defined." >&2;}
36137 -) cat "$tmp/out"; rm -f "$tmp/out";;
36138 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36147 # Transform confdefs.h into a sed script `conftest.defines', that
36148 # substitutes the proper values into config.h.in to produce config.h.
36149 rm -f conftest.defines conftest.tail
36150 # First, append a space to every undef/define line, to ease matching.
36151 echo 's/$/ /' >conftest.defines
36152 # Then, protect against being on the right side of a sed subst, or in
36153 # an unquoted here document, in config.status. If some macros were
36154 # called several times there might be several #defines for the same
36155 # symbol, which is useless. But do not sort them, since the last
36156 # AC_DEFINE must be honored.
36157 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36158 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36159 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36160 # PARAMS is the parameter list in the macro definition--in most cases, it's
36161 # just an empty string.
36162 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36163 ac_dB='\\)[ (].*,\\1define\\2'
36171 s/^[ ]*#[ ]*define[ ][ ]*//
36176 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36177 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36178 ' >>conftest.defines
36180 # Remove the space that was appended to ease matching.
36181 # Then replace #undef with comments. This is necessary, for
36182 # example, in the case of _POSIX_SOURCE, which is predefined and required
36183 # on some systems where configure will not decide to define it.
36184 # (The regexp can be short, since the line contains either #define or #undef.)
36186 s,^[ #]*u.*,/* & */,' >>conftest.defines
36188 # Break up conftest.defines:
36189 ac_max_sed_lines=50
36191 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36192 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36193 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36195 ac_in='$ac_file_inputs'
36196 ac_out='"$tmp/out1"'
36197 ac_nxt='"$tmp/out2"'
36201 # Write a here document:
36202 cat >>$CONFIG_STATUS <<_ACEOF
36203 # First, check the format of the line:
36204 cat >"\$tmp/defines.sed" <<\\CEOF
36205 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36206 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36210 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36212 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36213 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36214 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36215 grep . conftest.tail >/dev/null || break
36216 rm -f conftest.defines
36217 mv conftest.tail conftest.defines
36219 rm -f conftest.defines conftest.tail
36221 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36222 cat >>$CONFIG_STATUS <<\_ACEOF
36223 if test x"$ac_file" != x-; then
36224 echo "/* $configure_input */" >"$tmp/config.h"
36225 cat "$ac_result" >>"$tmp/config.h"
36226 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36227 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36228 echo "$as_me: $ac_file is unchanged" >&6;}
36231 mv "$tmp/config.h" $ac_file
36234 echo "/* $configure_input */"
36240 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36241 echo "$as_me: executing $ac_file commands" >&6;}
36246 case $ac_file$ac_mode in
36248 for ac_file in $CONFIG_FILES; do
36249 # Support "outfile[:infile[:infile...]]"
36251 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36253 # PO directories have a Makefile.in generated from Makefile.in.in.
36254 case "$ac_file" in */Makefile.in)
36255 # Adjust a relative srcdir.
36256 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36257 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
36258 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36259 # In autoconf-2.13 it is called $ac_given_srcdir.
36260 # In autoconf-2.50 it is called $srcdir.
36261 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36262 case "$ac_given_srcdir" in
36263 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36264 /*) top_srcdir="$ac_given_srcdir" ;;
36265 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36267 # Treat a directory as a PO directory if and only if it has a
36268 # POTFILES.in file. This allows packages to have multiple PO
36269 # directories under different names or in different locations.
36270 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36271 rm -f "$ac_dir/POTFILES"
36272 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36273 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36274 POMAKEFILEDEPS="POTFILES.in"
36275 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
36276 # on $ac_dir but don't depend on user-specified configuration
36278 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36279 # The LINGUAS file contains the set of available languages.
36280 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36281 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
36283 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36284 # Hide the ALL_LINGUAS assigment from automake.
36285 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36286 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36288 # The set of available languages was given in configure.in.
36289 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36292 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
36293 # Compute UPDATEPOFILES
36294 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
36295 # Compute DUMMYPOFILES
36296 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
36298 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
36299 case "$ac_given_srcdir" in
36301 *) srcdirpre='$(srcdir)/' ;;
36307 for lang in $ALL_LINGUAS; do
36308 POFILES="$POFILES $srcdirpre$lang.po"
36309 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36310 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36311 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36313 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36314 # environment variable.
36316 if test -n "$ALL_LINGUAS"; then
36317 for presentlang in $ALL_LINGUAS; do
36319 if test "%UNSET%" != "$LINGUAS"; then
36320 desiredlanguages="$LINGUAS"
36322 desiredlanguages="$ALL_LINGUAS"
36324 for desiredlang in $desiredlanguages; do
36325 # Use the presentlang catalog if desiredlang is
36326 # a. equal to presentlang, or
36327 # b. a variant of presentlang (because in this case,
36328 # presentlang can be used as a fallback for messages
36329 # which are not translated in the desiredlang catalog).
36330 case "$desiredlang" in
36331 "$presentlang"*) useit=yes;;
36334 if test $useit = yes; then
36335 INST_LINGUAS="$INST_LINGUAS $presentlang"
36340 if test -n "$INST_LINGUAS"; then
36341 for lang in $INST_LINGUAS; do
36342 CATALOGS="$CATALOGS $lang.gmo"
36345 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36346 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"
36347 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36348 if test -f "$f"; then
36350 *.orig | *.bak | *~) ;;
36351 *) cat "$f" >> "$ac_dir/Makefile" ;;
36366 { (exit 0); exit 0; }
36368 chmod +x $CONFIG_STATUS
36369 ac_clean_files=$ac_clean_files_save
36372 # configure is writing to config.log, and then calls config.status.
36373 # config.status does its own redirection, appending to config.log.
36374 # Unfortunately, on DOS this fails, as config.log is still kept open
36375 # by configure, so config.status won't be able to write to it; its
36376 # output is simply discarded. So we exec the FD to /dev/null,
36377 # effectively closing config.log, so it can be properly (re)opened and
36378 # appended to by config.status. When coming back to configure, we
36379 # need to make the FD available again.
36380 if test "$no_create" != yes; then
36382 ac_config_status_args=
36383 test "$silent" = yes &&
36384 ac_config_status_args="$ac_config_status_args --quiet"
36386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36389 # would make configure fail if this is the last instruction.
36390 $ac_cs_success || { (exit 1); exit 1; }
36394 if test "${support_bat}" = "yes" ; then
36395 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
36396 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
36402 if test "x$QMAKEQT4" != "xnone"; then
36407 chmod 755 install_conf_file build-depkgs-qt-console
36408 echo "Creating bat Makefile"
36414 echo "Doing make of dependencies"
36415 ${MAKE:-make} depend
36418 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
36419 chmod 755 dvd-handler dvd-simulator
36420 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
36424 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
36425 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
36429 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
36430 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
36432 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
36433 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
36435 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
36436 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
36438 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
36439 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
36441 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
36442 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
36444 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
36445 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
36447 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
36448 chmod 755 $c/sqlite
36451 chmod 755 src/win32/build-depkgs-mingw32
36455 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
36456 largefile_support="yes"
36460 # A whole lot of hand springs to get the compiler version.
36461 # This is because gcc changed the output in version 3.0
36463 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36464 if test "x${CCVERSION}" = "x" ; then
36465 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36467 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36468 if test x"${CXXVERSION}" = x ; then
36469 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36472 if test "x${subsysdir}" = "x${sbindir}" ; then
36475 echo "You have set --sbindir and --with-subsys-dir"
36476 echo " both equal to: ${subsysdir} "
36477 echo " This is not permitted. Please reconfigure."
36479 echo "Aborting configuration ..."
36485 if test "x${db_type}" = "xInternal" ; then
36488 echo "You have not specified either --enable-client-only or one of the"
36489 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
36490 echo " This is not permitted. Please reconfigure."
36492 echo "Aborting the configuration ..."
36499 Configuration on `date`:
36501 Host: $host -- ${DISTNAME} ${DISTVER}
36502 Bacula version: ${VERSION} (${DATE})
36503 Source code location: ${srcdir}
36504 Install binaries: ${sbindir}
36505 Install config files: ${sysconfdir}
36506 Scripts directory: ${scriptdir}
36507 Archive directory: ${archivedir}
36508 Working directory: ${working_dir}
36509 PID directory: ${piddir}
36510 Subsys directory: ${subsysdir}
36511 Man directory: ${mandir}
36512 Data directory: ${datadir}
36513 C Compiler: ${CC} ${CCVERSION}
36514 C++ Compiler: ${CXX} ${CXXVERSION}
36515 Compiler flags: ${WCFLAGS} ${CFLAGS}
36516 Linker flags: ${WLDFLAGS} ${LDFLAGS}
36518 Statically Linked Tools: ${support_static_tools}
36519 Statically Linked FD: ${support_static_fd}
36520 Statically Linked SD: ${support_static_sd}
36521 Statically Linked DIR: ${support_static_dir}
36522 Statically Linked CONS: ${support_static_cons}
36523 Database type: ${db_type}
36524 Database port: ${db_port}
36525 Database lib: ${DB_LIBS}
36526 Database name: ${db_name}
36527 Database user: ${db_user}
36529 Job Output Email: ${job_email}
36530 Traceback Email: ${dump_email}
36531 SMTP Host Address: ${smtp_host}
36533 Director Port: ${dir_port}
36534 File daemon Port: ${fd_port}
36535 Storage daemon Port: ${sd_port}
36537 Director User: ${dir_user}
36538 Director Group: ${dir_group}
36539 Storage Daemon User: ${sd_user}
36540 Storage DaemonGroup: ${sd_group}
36541 File Daemon User: ${fd_user}
36542 File Daemon Group: ${fd_group}
36544 SQL binaries Directory ${SQL_BINDIR}
36546 Large file support: $largefile_support
36547 Bacula conio support: ${got_conio} ${CONS_LIBS}
36548 readline support: ${got_readline} ${PRTREADLINE_SRC}
36549 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
36550 TLS support: ${support_tls}
36551 Encryption support: ${support_crypto}
36552 ZLIB support: ${have_zlib}
36553 enable-smartalloc: ${support_smartalloc}
36554 bat support: ${support_bat} ${QWT_LDFLAGS}
36555 enable-gnome: ${support_gnome} ${gnome_version}
36556 enable-bwx-console: ${support_wx_console} ${wx_version}
36557 enable-tray-monitor: ${support_tray_monitor}
36558 client-only: ${build_client_only}
36559 build-dird: ${build_dird}
36560 build-stored: ${build_stored}
36561 ACL support: ${have_acl}
36562 Python support: ${support_python} ${PYTHON_LIBS}
36563 Batch insert enabled: ${support_batch_insert}
36564 Berkeley DB support: ${support_libdb} ${BDB_LIBS}