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
871 ac_subst_files='MCOMMON'
872 ac_precious_vars='build_alias
889 # Initialize some variables set by options.
891 ac_init_version=false
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
901 program_transform_name=s,x,x,
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 # Accept the important Cygnus configure options, so we can diagnose typos.
953 case $ac_dashdash$ac_option in
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
975 cache_file=config.cache ;;
977 -datadir | --datadir | --datadi | --datad)
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
989 -disable-* | --disable-*)
990 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
993 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
994 { (exit 1); exit 1; }; }
995 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
996 eval enable_$ac_feature=no ;;
998 -docdir | --docdir | --docdi | --doc | --do)
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1008 -enable-* | --enable-*)
1009 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015 eval enable_$ac_feature=\$ac_optarg ;;
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 htmldir=$ac_optarg ;;
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1060 -libdir | --libdir | --libdi | --libd)
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1151 -psdir | --psdir | --psdi | --psd | --ps)
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 sbindir=$ac_optarg ;;
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 sharedstatedir=$ac_optarg ;;
1177 -site | --site | --sit)
1179 -site=* | --site=* | --sit=*)
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185 srcdir=$ac_optarg ;;
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192 sysconfdir=$ac_optarg ;;
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
1195 ac_prev=target_alias ;;
1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197 target_alias=$ac_optarg ;;
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
1206 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 { echo "$as_me: error: invalid package name: $ac_package" >&2
1210 { (exit 1); exit 1; }; }
1211 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1212 eval with_$ac_package=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid package name: $ac_package" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221 eval with_$ac_package=no ;;
1224 # Obsolete; use --with-x.
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1241 -*) { echo "$as_me: error: unrecognized option: $ac_option
1242 Try \`$0 --help' for more information." >&2
1243 { (exit 1); exit 1; }; }
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1250 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1251 { (exit 1); exit 1; }; }
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1256 # FIXME: should be removed in autoconf 3.0.
1257 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 { echo "$as_me: error: missing argument to $ac_option" >&2
1269 { (exit 1); exit 1; }; }
1272 # Be sure to have absolute directory names.
1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1278 eval ac_val=\$$ac_var
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1284 { (exit 1); exit 1; }; }
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 { echo "$as_me: error: Working directory cannot be determined" >&2
1315 { (exit 1); exit 1; }; }
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 { echo "$as_me: error: pwd does not report name of working directory" >&2
1318 { (exit 1); exit 1; }; }
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$0" ||
1326 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$0" : 'X\(//\)[^/]' \| \
1328 X"$0" : 'X\(//\)$' \| \
1329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1358 { (exit 1); exit 1; }; }
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1363 { (exit 1); exit 1; }; }
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --x-includes=DIR X include files are in DIR
1448 --x-libraries=DIR X library files are in DIR
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 if test -n "$ac_init_help"; then
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --disable-nls do not use Native Language Support
1464 --disable-rpath do not hardcode runtime library paths
1465 --disable-libdb disable build of accurate mode with libdb
1466 --enable-gnome enable build of bgnome-console GUI disabled
1467 --enable-bat enable build of bat Qt4 GUI disabled
1468 --enable-bwx-console enable build of wxWidgets console disabled
1469 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1470 --enable-smartalloc enable smartalloc debugging support disabled
1471 --enable-static-tools enable static tape tools disabled
1472 --enable-static-fd enable static File daemon disabled
1473 --enable-static-sd enable static Storage daemon disabled
1474 --enable-static-dir enable static Director disabled
1475 --enable-static-cons enable static Console disabled
1476 --enable-client-only build client (File daemon) only disabled
1477 --enable-build-dird enable building of dird (Director) enabled
1478 --enable-build-stored enable building of stored (Storage daemon) enabled
1479 --disable-conio disable conio support enabled
1481 --enable-ipv6 enable ipv6 support enabled
1483 --disable-readline disable readline support disable
1485 --enable-batch-insert enable the DB batch insert code disabled
1486 --enable-batch-insert enable the DB batch insert code disabled
1487 --disable-largefile omit support for large files
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-gnu-ld assume the C compiler uses GNU ld default=no
1493 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1494 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1495 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1496 --without-libintl-prefix don't search for libintl in includedir and libdir
1497 --with-included-gettext use the GNU gettext library included here
1498 --with-bdb-dir=DIR Berkeley DB installation directory
1499 --with-qwt[=DIR] specify qwt library directory
1500 --with-readline[=DIR] specify readline library directory
1502 --with-python[=DIR] Include Python support. DIR is the Python base
1503 install directory, default is to search through
1504 a number of common places for the Python files.
1505 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1506 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1507 --with-working-dir=PATH specify path of Bacula working directory
1508 --with-archivedir=PATH specify path of SD archive directory
1509 --with-scriptdir=PATH specify path of Bacula scripts directory
1510 --with-plugindir=PATH specify path of Bacula plugins directory
1511 --with-dump-email=EMAIL dump email address
1512 --with-job-email=EMAIL job output email address
1513 --with-smtp-host=HOST SMTP mail host address
1514 --with-pid-dir=PATH specify location of Bacula pid files
1515 --with-subsys-dir=PATH specify location of Bacula subsys file
1516 --with-baseport=PORT specify base port address for daemons
1517 --with-dir-password=PASSWORD specify Director's password
1518 --with-fd-password=PASSWORD specify Client's password
1519 --with-sd-password=PASSWORD specify Storage daemon's password
1520 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1521 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1522 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1523 --with-db-name=DBNAME specify database name (default bacula)
1524 --with-db-user=UNAME specify database user (default bacula)
1525 --with-db-password=UNAME specify database password (default *none*)
1526 --with-db-port=DBPORT specify a database port (default null)
1527 --with-dir-user=USER specify user for Director daemon
1528 --with-dir-group=GROUP specify group for Director daemon
1529 --with-sd-user=USER specify user for Storage daemon
1530 --with-sd-group=GROUP specify group for Storage daemon
1531 --with-fd-user=USER specify user for File daemon
1532 --with-fd-group=GROUP specify group for File daemon
1533 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1534 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1535 base install directory, defaults to /usr/local/pgsql
1537 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1538 install directory, default is to search through
1539 a number of common places for the MySQL files.
1541 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1542 install directory, default is to search through
1543 a number of common places for the MySQL files.
1545 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1546 install directory, default is to search through
1547 a number of common places for the SQLite3 files.
1549 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1550 install directory, default is to search through
1551 a number of common places for the SQLite files.
1553 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1554 install directory, default is to search through
1555 a number of common places for the DBI files.
1557 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1558 the one DBI driver like Mysql, Postgresql, others.
1559 Default is to not configure any driver.
1560 --with-x use the X Window System
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1570 CXX C++ compiler command
1571 CXXFLAGS C++ compiler flags
1573 WXCONFIG wx-config command. On some systems, you must set it to
1574 wx-config-2.6 to use wxWidgets 2.6.
1575 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1576 XMKMF Path to xmkmf, Makefile generator for X Window System
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" || continue
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1608 .) # We are building in place.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1632 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1642 generated by GNU Autoconf 2.61
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1651 cat >config.log <<_ACEOF
1652 This file contains any messages produced by compilers while
1653 running configure, to aid debugging if configure makes a mistake.
1655 It was created by $as_me, which was
1656 generated by GNU Autoconf 2.61. Invocation command line was
1668 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1669 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1670 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1671 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1672 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1675 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1677 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1678 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1679 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1680 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1681 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1682 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1683 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 test -z "$as_dir" && as_dir=.
1692 echo "PATH: $as_dir"
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1716 ac_must_keep_next=false
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1727 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1730 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745 -* ) ac_must_keep_next=true ;;
1748 ac_configure_args="$ac_configure_args '$ac_arg'"
1753 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1754 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762 # Save into config.log some information that might help in debugging.
1767 ## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##
1772 # The following way of writing the cache mishandles newlines in values,
1774 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775 eval ac_val=\$$ac_var
1779 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1780 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1783 _ | IFS | as_nl) ;; #(
1784 *) $as_unset $ac_var ;;
1789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790 *${as_nl}ac_space=\ *)
1792 "s/'\''/'\''\\\\'\'''\''/g;
1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1804 ## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##
1809 for ac_var in $ac_subst_vars
1811 eval ac_val=\$$ac_var
1813 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 echo "$ac_var='\''$ac_val'\''"
1819 if test -n "$ac_subst_files"; then
1821 ## ------------------- ##
1822 ## File substitutions. ##
1823 ## ------------------- ##
1826 for ac_var in $ac_subst_files
1828 eval ac_val=\$$ac_var
1830 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 echo "$ac_var='\''$ac_val'\''"
1837 if test -s confdefs.h; then
1847 test "$ac_signal" != 0 &&
1848 echo "$as_me: caught signal $ac_signal"
1849 echo "$as_me: exit $exit_status"
1851 rm -f core *.core core.conftest.* &&
1852 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1855 for ac_signal in 1 2 13 15; do
1856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1861 rm -f -r conftest* confdefs.h
1863 # Predefined preprocessor variables.
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_NAME "$PACKAGE_NAME"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_STRING "$PACKAGE_STRING"
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1890 # Let the site file select an alternate cache file if it wants to.
1891 # Prefer explicitly selected file to automatically selected ones.
1892 if test -n "$CONFIG_SITE"; then
1893 set x "$CONFIG_SITE"
1894 elif test "x$prefix" != xNONE; then
1895 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1897 set x "$ac_default_prefix/share/config.site" \
1898 "$ac_default_prefix/etc/config.site"
1903 if test -r "$ac_site_file"; then
1904 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1905 echo "$as_me: loading site script $ac_site_file" >&6;}
1906 sed 's/^/| /' "$ac_site_file" >&5
1911 if test -r "$cache_file"; then
1912 # Some versions of bash will fail to source /dev/null (special
1913 # files actually), so we avoid doing that.
1914 if test -f "$cache_file"; then
1915 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1916 echo "$as_me: loading cache $cache_file" >&6;}
1918 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1919 *) . "./$cache_file";;
1923 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1924 echo "$as_me: creating cache $cache_file" >&6;}
1928 # Check that the precious variables saved in the cache have kept the same
1930 ac_cache_corrupted=false
1931 for ac_var in $ac_precious_vars; do
1932 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1933 eval ac_new_set=\$ac_env_${ac_var}_set
1934 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1935 eval ac_new_val=\$ac_env_${ac_var}_value
1936 case $ac_old_set,$ac_new_set in
1938 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1939 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1940 ac_cache_corrupted=: ;;
1942 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1943 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1944 ac_cache_corrupted=: ;;
1947 if test "x$ac_old_val" != "x$ac_new_val"; then
1948 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1949 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1950 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1951 echo "$as_me: former value: $ac_old_val" >&2;}
1952 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1953 echo "$as_me: current value: $ac_new_val" >&2;}
1954 ac_cache_corrupted=:
1957 # Pass precious variables to config.status.
1958 if test "$ac_new_set" = set; then
1960 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 *) ac_arg=$ac_var=$ac_new_val ;;
1963 case " $ac_configure_args " in
1964 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1965 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1969 if $ac_cache_corrupted; then
1970 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974 { (exit 1); exit 1; }; }
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2008 if test -f "$ac_dir/install-sh"; then
2010 ac_install_sh="$ac_aux_dir/install-sh -c"
2012 elif test -f "$ac_dir/install.sh"; then
2014 ac_install_sh="$ac_aux_dir/install.sh -c"
2016 elif test -f "$ac_dir/shtool"; then
2018 ac_install_sh="$ac_aux_dir/shtool install -c"
2022 if test -z "$ac_aux_dir"; then
2023 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2024 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2025 { (exit 1); exit 1; }; }
2028 # These three variables are undocumented and unsupported,
2029 # and are intended to be withdrawn in a future Autoconf release.
2030 # They can cause serious problems if a builder's source tree is in a directory
2031 # whose full name contains unusual characters.
2032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2037 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2064 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 TRUEPRG=$ac_cv_path_TRUEPRG
2076 if test -n "$TRUEPRG"; then
2077 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2078 echo "${ECHO_T}$TRUEPRG" >&6; }
2080 { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2085 test -n "$TRUEPRG" && break
2087 test -n "$TRUEPRG" || TRUEPRG=":"
2089 for ac_prog in false
2091 # Extract the first word of "$ac_prog", so it can be a program name with args.
2092 set dummy $ac_prog; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 FALSEPRG=$ac_cv_path_FALSEPRG
2122 if test -n "$FALSEPRG"; then
2123 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2124 echo "${ECHO_T}$FALSEPRG" >&6; }
2126 { echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6; }
2131 test -n "$FALSEPRG" && break
2133 test -n "$FALSEPRG" || FALSEPRG=":"
2137 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2138 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2139 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2140 echo "configuring for bacula $VERSION ($DATE)"
2145 ac_cpp='$CPP $CPPFLAGS'
2146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149 if test -n "$ac_tool_prefix"; then
2150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 if test -n "$CC"; then
2179 { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2188 if test -z "$ac_cv_prog_CC"; then
2190 # Extract the first word of "gcc", so it can be a program name with args.
2191 set dummy gcc; ac_word=$2
2192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 if test -n "$ac_ct_CC"; then
2198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 ac_cv_prog_ac_ct_CC="gcc"
2208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2218 if test -n "$ac_ct_CC"; then
2219 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2220 echo "${ECHO_T}$ac_ct_CC" >&6; }
2222 { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2226 if test "x$ac_ct_CC" = x; then
2229 case $cross_compiling:$ac_tool_warned in
2231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2232 whose name does not start with the host triplet. If you think this
2233 configuration is useful to you, please write to autoconf@gnu.org." >&5
2234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2235 whose name does not start with the host triplet. If you think this
2236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2237 ac_tool_warned=yes ;;
2245 if test -z "$CC"; then
2246 if test -n "$ac_tool_prefix"; then
2247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2248 set dummy ${ac_tool_prefix}cc; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_prog_CC+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 if test -n "$CC"; then
2255 ac_cv_prog_CC="$CC" # Let the user override the test.
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 ac_cv_prog_CC="${ac_tool_prefix}cc"
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 if test -n "$CC"; then
2276 { echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6; }
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2286 if test -z "$CC"; then
2287 # Extract the first word of "cc", so it can be a program name with args.
2288 set dummy cc; ac_word=$2
2289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2291 if test "${ac_cv_prog_CC+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 if test -n "$CC"; then
2295 ac_cv_prog_CC="$CC" # Let the user override the test.
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2306 ac_prog_rejected=yes
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 if test $ac_prog_rejected = yes; then
2318 # We found a bogon in the path, so make sure we never use it.
2319 set dummy $ac_cv_prog_CC
2321 if test $# != 0; then
2322 # We chose a different compiler from the bogus one.
2323 # However, it has the same basename, so the bogon will be chosen
2324 # first if we set CC to just the basename; use the full file name.
2326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2332 if test -n "$CC"; then
2333 { echo "$as_me:$LINENO: result: $CC" >&5
2334 echo "${ECHO_T}$CC" >&6; }
2336 { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2342 if test -z "$CC"; then
2343 if test -n "$ac_tool_prefix"; then
2344 for ac_prog in cl.exe
2346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_CC+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 if test -n "$CC"; then
2354 ac_cv_prog_CC="$CC" # Let the user override the test.
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 if test -n "$CC"; then
2375 { echo "$as_me:$LINENO: result: $CC" >&5
2376 echo "${ECHO_T}$CC" >&6; }
2378 { echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6; }
2383 test -n "$CC" && break
2386 if test -z "$CC"; then
2388 for ac_prog in cl.exe
2390 # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test -n "$ac_ct_CC"; then
2398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 ac_cv_prog_ac_ct_CC="$ac_prog"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2418 if test -n "$ac_ct_CC"; then
2419 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2420 echo "${ECHO_T}$ac_ct_CC" >&6; }
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2427 test -n "$ac_ct_CC" && break
2430 if test "x$ac_ct_CC" = x; then
2433 case $cross_compiling:$ac_tool_warned in
2435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2436 whose name does not start with the host triplet. If you think this
2437 configuration is useful to you, please write to autoconf@gnu.org." >&5
2438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet. If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2441 ac_tool_warned=yes ;;
2450 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2451 See \`config.log' for more details." >&5
2452 echo "$as_me: error: no acceptable C compiler found in \$PATH
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2456 # Provide some information about the compiler.
2457 echo "$as_me:$LINENO: checking for C compiler version" >&5
2458 ac_compiler=`set X $ac_compile; echo $2`
2459 { (ac_try="$ac_compiler --version >&5"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compiler --version >&5") 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }
2469 { (ac_try="$ac_compiler -v >&5"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compiler -v >&5") 2>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }
2479 { (ac_try="$ac_compiler -V >&5"
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_compiler -V >&5") 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }
2490 cat >conftest.$ac_ext <<_ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2505 ac_clean_files_save=$ac_clean_files
2506 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2507 # Try to create an executable without -o first, disregard a.out.
2508 # It will help us diagnose broken compilers, and finding out an intuition
2510 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2511 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2512 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2514 # List of possible output files, starting from the most likely.
2515 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2516 # only as a last resort. b.out is created by i960 compilers.
2517 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2519 # The IRIX 6 linker writes into existing files which may not be
2520 # executable, retaining their permissions. Remove them first so a
2521 # subsequent execution test works.
2523 for ac_file in $ac_files
2526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2527 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2532 if { (ac_try="$ac_link_default"
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_link_default") 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; then
2542 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2543 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2544 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2545 # so that the user can short-circuit this test for compilers unknown to
2547 for ac_file in $ac_files ''
2549 test -f "$ac_file" || continue
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2554 # We found the default executable, but exeext='' is most
2558 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2562 # We set ac_cv_exeext here because the later test for it is not
2563 # safe: cross compilers may not add the suffix if given an `-o'
2564 # argument, so we may need to know it at that point already.
2565 # Even if this section looks crufty: it has the advantage of
2572 test "$ac_cv_exeext" = no && ac_cv_exeext=
2578 { echo "$as_me:$LINENO: result: $ac_file" >&5
2579 echo "${ECHO_T}$ac_file" >&6; }
2580 if test -z "$ac_file"; then
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: C compiler cannot create executables
2587 See \`config.log' for more details." >&2;}
2588 { (exit 77); exit 77; }; }
2591 ac_exeext=$ac_cv_exeext
2593 # Check that the compiler produces executables we can run. If not, either
2594 # the compiler is broken, or we cross compile.
2595 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2596 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2597 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2598 # If not cross compiling, check that we can run a simple program.
2599 if test "$cross_compiling" != yes; then
2600 if { ac_try='./$ac_file'
2601 { (case "(($ac_try" in
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606 (eval "$ac_try") 2>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2612 if test "$cross_compiling" = maybe; then
2615 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2616 If you meant to cross compile, use \`--host'.
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: cannot run C compiled programs.
2619 If you meant to cross compile, use \`--host'.
2620 See \`config.log' for more details." >&2;}
2621 { (exit 1); exit 1; }; }
2625 { echo "$as_me:$LINENO: result: yes" >&5
2626 echo "${ECHO_T}yes" >&6; }
2628 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2629 ac_clean_files=$ac_clean_files_save
2630 # Check that the compiler produces executables we can run. If not, either
2631 # the compiler is broken, or we cross compile.
2632 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2633 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2634 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2635 echo "${ECHO_T}$cross_compiling" >&6; }
2637 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2638 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2639 if { (ac_try="$ac_link"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_link") 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; then
2649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2653 for ac_file in conftest.exe conftest conftest.*; do
2654 test -f "$ac_file" || continue
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2670 rm -f conftest$ac_cv_exeext
2671 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2672 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2674 rm -f conftest.$ac_ext
2675 EXEEXT=$ac_cv_exeext
2677 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2678 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2679 if test "${ac_cv_objext+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.o conftest.obj
2698 if { (ac_try="$ac_compile"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; then
2708 for ac_file in conftest.o conftest.obj conftest.*; do
2709 test -f "$ac_file" || continue;
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2712 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2720 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2721 See \`config.log' for more details." >&5
2722 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2723 See \`config.log' for more details." >&2;}
2724 { (exit 1); exit 1; }; }
2727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2729 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2730 echo "${ECHO_T}$ac_cv_objext" >&6; }
2731 OBJEXT=$ac_cv_objext
2733 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2756 rm -f conftest.$ac_objext
2757 if { (ac_try="$ac_compile"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compile") 2>conftest.er1
2765 grep -v '^ *+' conftest.er1 >conftest.err
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } && {
2770 test -z "$ac_c_werror_flag" ||
2771 test ! -s conftest.err
2772 } && test -s conftest.$ac_objext; then
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2785 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2786 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2787 GCC=`test $ac_compiler_gnu = yes && echo yes`
2788 ac_test_CFLAGS=${CFLAGS+set}
2789 ac_save_CFLAGS=$CFLAGS
2790 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_cc_g+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 ac_save_c_werror_flag=$ac_c_werror_flag
2796 ac_c_werror_flag=yes
2799 cat >conftest.$ac_ext <<_ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2814 rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_compile") 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } && {
2828 test -z "$ac_c_werror_flag" ||
2829 test ! -s conftest.err
2830 } && test -s conftest.$ac_objext; then
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2852 rm -f conftest.$ac_objext
2853 if { (ac_try="$ac_compile"
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_compile") 2>conftest.er1
2861 grep -v '^ *+' conftest.er1 >conftest.err
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } && {
2866 test -z "$ac_c_werror_flag" ||
2867 test ! -s conftest.err
2868 } && test -s conftest.$ac_objext; then
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 ac_c_werror_flag=$ac_save_c_werror_flag
2876 cat >conftest.$ac_ext <<_ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2891 rm -f conftest.$ac_objext
2892 if { (ac_try="$ac_compile"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compile") 2>conftest.er1
2900 grep -v '^ *+' conftest.er1 >conftest.err
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest.$ac_objext; then
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923 ac_c_werror_flag=$ac_save_c_werror_flag
2925 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2927 if test "$ac_test_CFLAGS" = set; then
2928 CFLAGS=$ac_save_CFLAGS
2929 elif test $ac_cv_prog_cc_g = yes; then
2930 if test "$GCC" = yes; then
2936 if test "$GCC" = yes; then
2942 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2943 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_cc_c89+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 ac_cv_prog_cc_c89=no
2949 cat >conftest.$ac_ext <<_ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2957 #include <sys/types.h>
2958 #include <sys/stat.h>
2959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2960 struct buf { int x; };
2961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2962 static char *e (p, i)
2968 static char *f (char * (*g) (char **, int), char **p, ...)
2973 s = g (p, va_arg (v,int));
2978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2979 function prototypes and stuff, but not '\xHH' hex character constants.
2980 These don't provoke an error unfortunately, instead are silently treated
2981 as 'x'. The following induces an error, until -std is added to get
2982 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2983 array size at least. It's necessary to write '\x00'==0 to get something
2984 that's true only with -std. */
2985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2988 inside strings and character constants. */
2990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2992 int test (int i, double x);
2993 struct s1 {int (*f) (int a);};
2994 struct s2 {int (*f) (double a);};
2995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3007 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3009 CC="$ac_save_CC $ac_arg"
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3019 grep -v '^ *+' conftest.er1 >conftest.err
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } && {
3024 test -z "$ac_c_werror_flag" ||
3025 test ! -s conftest.err
3026 } && test -s conftest.$ac_objext; then
3027 ac_cv_prog_cc_c89=$ac_arg
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3035 rm -f core conftest.err conftest.$ac_objext
3036 test "x$ac_cv_prog_cc_c89" != "xno" && break
3038 rm -f conftest.$ac_ext
3043 case "x$ac_cv_prog_cc_c89" in
3045 { echo "$as_me:$LINENO: result: none needed" >&5
3046 echo "${ECHO_T}none needed" >&6; } ;;
3048 { echo "$as_me:$LINENO: result: unsupported" >&5
3049 echo "${ECHO_T}unsupported" >&6; } ;;
3051 CC="$CC $ac_cv_prog_cc_c89"
3052 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3053 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3058 ac_cpp='$CPP $CPPFLAGS'
3059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 ac_cpp='$CXXCPP $CPPFLAGS'
3065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3068 if test -z "$CXX"; then
3069 if test -n "$CCC"; then
3072 if test -n "$ac_tool_prefix"; then
3073 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3079 if test "${ac_cv_prog_CXX+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 if test -n "$CXX"; then
3083 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 if test -n "$CXX"; then
3104 { echo "$as_me:$LINENO: result: $CXX" >&5
3105 echo "${ECHO_T}$CXX" >&6; }
3107 { echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6; }
3112 test -n "$CXX" && break
3115 if test -z "$CXX"; then
3117 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3119 # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3123 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 if test -n "$ac_ct_CXX"; then
3127 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136 ac_cv_prog_ac_ct_CXX="$ac_prog"
3137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3147 if test -n "$ac_ct_CXX"; then
3148 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3149 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3151 { echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6; }
3156 test -n "$ac_ct_CXX" && break
3159 if test "x$ac_ct_CXX" = x; then
3162 case $cross_compiling:$ac_tool_warned in
3164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3165 whose name does not start with the host triplet. If you think this
3166 configuration is useful to you, please write to autoconf@gnu.org." >&5
3167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3168 whose name does not start with the host triplet. If you think this
3169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3170 ac_tool_warned=yes ;;
3178 # Provide some information about the compiler.
3179 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3180 ac_compiler=`set X $ac_compile; echo $2`
3181 { (ac_try="$ac_compiler --version >&5"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compiler --version >&5") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }
3191 { (ac_try="$ac_compiler -v >&5"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compiler -v >&5") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }
3201 { (ac_try="$ac_compiler -V >&5"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compiler -V >&5") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }
3212 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3213 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3214 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3235 rm -f conftest.$ac_objext
3236 if { (ac_try="$ac_compile"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_compile") 2>conftest.er1
3244 grep -v '^ *+' conftest.er1 >conftest.err
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } && {
3249 test -z "$ac_cxx_werror_flag" ||
3250 test ! -s conftest.err
3251 } && test -s conftest.$ac_objext; then
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3264 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3265 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3266 GXX=`test $ac_compiler_gnu = yes && echo yes`
3267 ac_test_CXXFLAGS=${CXXFLAGS+set}
3268 ac_save_CXXFLAGS=$CXXFLAGS
3269 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3270 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3271 if test "${ac_cv_prog_cxx_g+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3275 ac_cxx_werror_flag=yes
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3293 rm -f conftest.$ac_objext
3294 if { (ac_try="$ac_compile"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_compile") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } && {
3307 test -z "$ac_cxx_werror_flag" ||
3308 test ! -s conftest.err
3309 } && test -s conftest.$ac_objext; then
3310 ac_cv_prog_cxx_g=yes
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3331 rm -f conftest.$ac_objext
3332 if { (ac_try="$ac_compile"
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_compile") 2>conftest.er1
3340 grep -v '^ *+' conftest.er1 >conftest.err
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } && {
3345 test -z "$ac_cxx_werror_flag" ||
3346 test ! -s conftest.err
3347 } && test -s conftest.$ac_objext; then
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3355 cat >conftest.$ac_ext <<_ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3370 rm -f conftest.$ac_objext
3371 if { (ac_try="$ac_compile"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_compile") 2>conftest.er1
3379 grep -v '^ *+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } && {
3384 test -z "$ac_cxx_werror_flag" ||
3385 test ! -s conftest.err
3386 } && test -s conftest.$ac_objext; then
3387 ac_cv_prog_cxx_g=yes
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3404 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3405 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3406 if test "$ac_test_CXXFLAGS" = set; then
3407 CXXFLAGS=$ac_save_CXXFLAGS
3408 elif test $ac_cv_prog_cxx_g = yes; then
3409 if test "$GXX" = yes; then
3415 if test "$GXX" = yes; then
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427 if test "x$CC" != xcc; then
3428 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3429 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3431 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3432 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3434 set dummy $CC; ac_cc=`echo $2 |
3435 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3436 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3454 # Make sure it works both with $CC and with simple cc.
3455 # We do the test twice because some compilers refuse to overwrite an
3456 # existing .o file with -o, though they will create one.
3457 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3459 if { (case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464 (eval "$ac_try") 2>&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_try") 2>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); };
3478 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3479 if test "x$CC" != xcc; then
3480 # Test first that cc exists at all.
3481 if { ac_try='cc -c conftest.$ac_ext >&5'
3482 { (case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_try") 2>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3491 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3493 if { (case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_try") 2>&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_try") 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); };
3515 # cc exists but doesn't like -o.
3516 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3521 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3523 rm -f core conftest*
3526 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3527 { echo "$as_me:$LINENO: result: yes" >&5
3528 echo "${ECHO_T}yes" >&6; }
3530 { echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6; }
3533 cat >>confdefs.h <<\_ACEOF
3534 #define NO_MINUS_C_MINUS_O 1
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3545 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3546 # On Suns, sometimes $CPP names a directory.
3547 if test -n "$CPP" && test -d "$CPP"; then
3550 if test -z "$CPP"; then
3551 if test "${ac_cv_prog_CPP+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 # Double quotes because CPP needs to be expanded
3555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3558 for ac_c_preproc_warn_flag in '' yes
3560 # Use a header file that comes with gcc, so configuring glibc
3561 # with a fresh cross-compiler works.
3562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3563 # <limits.h> exists even on freestanding compilers.
3564 # On the NeXT, cc -E runs the code through the compiler's parser,
3565 # not just through cpp. "Syntax error" is here to catch this case.
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3573 # include <limits.h>
3575 # include <assert.h>
3579 if { (ac_try="$ac_cpp conftest.$ac_ext"
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3587 grep -v '^ *+' conftest.er1 >conftest.err
3589 cat conftest.err >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } >/dev/null && {
3592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3593 test ! -s conftest.err
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3600 # Broken: fails on valid input.
3604 rm -f conftest.err conftest.$ac_ext
3606 # OK, works on sane cases. Now check whether nonexistent headers
3607 # can be detected and how.
3608 cat >conftest.$ac_ext <<_ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 #include <ac_nonexistent.h>
3616 if { (ac_try="$ac_cpp conftest.$ac_ext"
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3624 grep -v '^ *+' conftest.er1 >conftest.err
3626 cat conftest.err >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } >/dev/null && {
3629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3632 # Broken: success on invalid input.
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 # Passes both tests.
3643 rm -f conftest.err conftest.$ac_ext
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then
3660 { echo "$as_me:$LINENO: result: $CPP" >&5
3661 echo "${ECHO_T}$CPP" >&6; }
3663 for ac_c_preproc_warn_flag in '' yes
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat >conftest.$ac_ext <<_ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3678 # include <limits.h>
3680 # include <assert.h>
3684 if { (ac_try="$ac_cpp conftest.$ac_ext"
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3692 grep -v '^ *+' conftest.er1 >conftest.err
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev/null && {
3697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3698 test ! -s conftest.err
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 # Broken: fails on valid input.
3709 rm -f conftest.err conftest.$ac_ext
3711 # OK, works on sane cases. Now check whether nonexistent headers
3712 # can be detected and how.
3713 cat >conftest.$ac_ext <<_ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 #include <ac_nonexistent.h>
3721 if { (ac_try="$ac_cpp conftest.$ac_ext"
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3729 grep -v '^ *+' conftest.er1 >conftest.err
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } >/dev/null && {
3734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3735 test ! -s conftest.err
3737 # Broken: success on invalid input.
3740 echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3743 # Passes both tests.
3748 rm -f conftest.err conftest.$ac_ext
3751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752 rm -f conftest.err conftest.$ac_ext
3753 if $ac_preproc_ok; then
3756 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3757 See \`config.log' for more details." >&5
3758 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details." >&2;}
3760 { (exit 1); exit 1; }; }
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3771 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3772 if test "${ac_cv_path_GREP+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 # Extract the first word of "grep ggrep" to use in msg output
3776 if test -z "$GREP"; then
3777 set dummy grep ggrep; ac_prog_name=$2
3778 if test "${ac_cv_path_GREP+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 ac_path_GREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787 test -z "$as_dir" && as_dir=.
3788 for ac_prog in grep ggrep; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3791 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3792 # Check for GNU ac_path_GREP and select it if it is found.
3793 # Check for GNU $ac_path_GREP
3794 case `"$ac_path_GREP" --version 2>&1` in
3796 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3799 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 echo 'GREP' >> "conftest.nl"
3806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808 ac_count=`expr $ac_count + 1`
3809 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_GREP="$ac_path_GREP"
3812 ac_path_GREP_max=$ac_count
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3821 $ac_path_GREP_found && break 3
3831 GREP="$ac_cv_path_GREP"
3832 if test -z "$GREP"; then
3833 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3834 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3835 { (exit 1); exit 1; }; }
3839 ac_cv_path_GREP=$GREP
3844 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3845 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3846 GREP="$ac_cv_path_GREP"
3849 { echo "$as_me:$LINENO: checking for egrep" >&5
3850 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3851 if test "${ac_cv_path_EGREP+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3855 then ac_cv_path_EGREP="$GREP -E"
3857 # Extract the first word of "egrep" to use in msg output
3858 if test -z "$EGREP"; then
3859 set dummy egrep; ac_prog_name=$2
3860 if test "${ac_cv_path_EGREP+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 ac_path_EGREP_found=false
3864 # Loop through the user's path and test for each of PROGNAME-LIST
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3869 test -z "$as_dir" && as_dir=.
3870 for ac_prog in egrep; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3873 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3874 # Check for GNU ac_path_EGREP and select it if it is found.
3875 # Check for GNU $ac_path_EGREP
3876 case `"$ac_path_EGREP" --version 2>&1` in
3878 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3881 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3884 cat "conftest.in" "conftest.in" >"conftest.tmp"
3885 mv "conftest.tmp" "conftest.in"
3886 cp "conftest.in" "conftest.nl"
3887 echo 'EGREP' >> "conftest.nl"
3888 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3890 ac_count=`expr $ac_count + 1`
3891 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3892 # Best one so far, save it but keep looking for a better one
3893 ac_cv_path_EGREP="$ac_path_EGREP"
3894 ac_path_EGREP_max=$ac_count
3896 # 10*(2^10) chars as input seems more than enough
3897 test $ac_count -gt 10 && break
3899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 $ac_path_EGREP_found && break 3
3913 EGREP="$ac_cv_path_EGREP"
3914 if test -z "$EGREP"; then
3915 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3916 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3917 { (exit 1); exit 1; }; }
3921 ac_cv_path_EGREP=$EGREP
3927 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3928 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3929 EGREP="$ac_cv_path_EGREP"
3932 if test $ac_cv_c_compiler_gnu = yes; then
3933 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3934 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3935 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_pattern="Autoconf.*'x'"
3939 cat >conftest.$ac_ext <<_ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3949 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3950 ac_cv_prog_gcc_traditional=yes
3952 ac_cv_prog_gcc_traditional=no
3957 if test $ac_cv_prog_gcc_traditional = no; then
3958 cat >conftest.$ac_ext <<_ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3968 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3969 ac_cv_prog_gcc_traditional=yes
3975 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3976 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3977 if test $ac_cv_prog_gcc_traditional = yes; then
3978 CC="$CC -traditional"
3982 BASECC=`basename $CC`
3984 if test "x$BASECC" = xgcc; then
3985 cat >>confdefs.h <<\_ACEOF
3991 # Extract the first word of "$CXX", so it can be a program name with args.
3992 set dummy $CXX; ac_word=$2
3993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3995 if test "${ac_cv_path_CXX+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4010 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4023 if test -n "$CXX"; then
4024 { echo "$as_me:$LINENO: result: $CXX" >&5
4025 echo "${ECHO_T}$CXX" >&6; }
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4032 if test ! -e $CXX; then
4033 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4034 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4035 { (exit 1); exit 1; }; }
4038 # Find a good install program. We prefer a C program (faster),
4039 # so one script is as good as another. But avoid the broken or
4040 # incompatible versions:
4041 # SysV /etc/install, /usr/sbin/install
4042 # SunOS /usr/etc/install
4043 # IRIX /sbin/install
4045 # AmigaOS /C/install, which installs bootblocks on floppy discs
4046 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4047 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4048 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4049 # OS/2's system install, which has a completely different semantic
4050 # ./install, which can be erroneously created by make from ./install.sh.
4051 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4052 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4053 if test -z "$INSTALL"; then
4054 if test "${ac_cv_path_install+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir=.
4062 # Account for people who put trailing slashes in PATH elements.
4064 ./ | .// | /cC/* | \
4065 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4066 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4069 # OSF1 and SCO ODT 3.0 have their own names for install.
4070 # Don't use installbsd from OSF since it installs stuff as root
4072 for ac_prog in ginstall scoinst install; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4075 if test $ac_prog = install &&
4076 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4077 # AIX install. It has an incompatible calling convention.
4079 elif test $ac_prog = install &&
4080 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4081 # program-specific install script used by HP pwplus--don't use.
4084 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4097 if test "${ac_cv_path_install+set}" = set; then
4098 INSTALL=$ac_cv_path_install
4100 # As a last resort, use the slow shell script. Don't cache a
4101 # value for INSTALL within a source directory, because that will
4102 # break other packages using the cache if that directory is
4103 # removed, or if the value is a relative name.
4104 INSTALL=$ac_install_sh
4107 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4108 echo "${ECHO_T}$INSTALL" >&6; }
4110 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4111 # It thinks the first close brace ends the variable substitution.
4112 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4114 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4123 if test "${ac_cv_prog_RANLIB+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test -n "$RANLIB"; then
4127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 RANLIB=$ac_cv_prog_RANLIB
4147 if test -n "$RANLIB"; then
4148 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4149 echo "${ECHO_T}$RANLIB" >&6; }
4151 { echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6; }
4157 if test -z "$ac_cv_prog_RANLIB"; then
4158 ac_ct_RANLIB=$RANLIB
4159 # Extract the first word of "ranlib", so it can be a program name with args.
4160 set dummy ranlib; ac_word=$2
4161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 if test -n "$ac_ct_RANLIB"; then
4167 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176 ac_cv_prog_ac_ct_RANLIB="ranlib"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4187 if test -n "$ac_ct_RANLIB"; then
4188 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4189 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4191 { echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6; }
4195 if test "x$ac_ct_RANLIB" = x; then
4198 case $cross_compiling:$ac_tool_warned in
4200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4201 whose name does not start with the host triplet. If you think this
4202 configuration is useful to you, please write to autoconf@gnu.org." >&5
4203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4204 whose name does not start with the host triplet. If you think this
4205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4206 ac_tool_warned=yes ;;
4208 RANLIB=$ac_ct_RANLIB
4211 RANLIB="$ac_cv_prog_RANLIB"
4214 # Extract the first word of "mv", so it can be a program name with args.
4215 set dummy mv; ac_word=$2
4216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4218 if test "${ac_cv_path_MV+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4246 if test -n "$MV"; then
4247 { echo "$as_me:$LINENO: result: $MV" >&5
4248 echo "${ECHO_T}$MV" >&6; }
4250 { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4255 # Extract the first word of "rm", so it can be a program name with args.
4256 set dummy rm; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_path_RM+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4287 if test -n "$RM"; then
4288 { echo "$as_me:$LINENO: result: $RM" >&5
4289 echo "${ECHO_T}$RM" >&6; }
4291 { echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6; }
4296 # Extract the first word of "cp", so it can be a program name with args.
4297 set dummy cp; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_path_CP+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4328 if test -n "$CP"; then
4329 { echo "$as_me:$LINENO: result: $CP" >&5
4330 echo "${ECHO_T}$CP" >&6; }
4332 { echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6; }
4337 # Extract the first word of "sed", so it can be a program name with args.
4338 set dummy sed; ac_word=$2
4339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4341 if test "${ac_cv_path_SED+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4369 if test -n "$SED"; then
4370 { echo "$as_me:$LINENO: result: $SED" >&5
4371 echo "${ECHO_T}$SED" >&6; }
4373 { echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6; }
4378 # Extract the first word of "echo", so it can be a program name with args.
4379 set dummy echo; ac_word=$2
4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382 if test "${ac_cv_path_ECHO+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4409 ECHO=$ac_cv_path_ECHO
4410 if test -n "$ECHO"; then
4411 { echo "$as_me:$LINENO: result: $ECHO" >&5
4412 echo "${ECHO_T}$ECHO" >&6; }
4414 { echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; }
4419 # Extract the first word of "cmp", so it can be a program name with args.
4420 set dummy cmp; ac_word=$2
4421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4423 if test "${ac_cv_path_CMP+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4451 if test -n "$CMP"; then
4452 { echo "$as_me:$LINENO: result: $CMP" >&5
4453 echo "${ECHO_T}$CMP" >&6; }
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 # Extract the first word of "tbl", so it can be a program name with args.
4461 set dummy tbl; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_path_TBL+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4492 if test -n "$TBL"; then
4493 { echo "$as_me:$LINENO: result: $TBL" >&5
4494 echo "${ECHO_T}$TBL" >&6; }
4496 { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }
4501 # Extract the first word of "ar", so it can be a program name with args.
4502 set dummy ar; ac_word=$2
4503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505 if test "${ac_cv_path_AR+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4533 if test -n "$AR"; then
4534 { echo "$as_me:$LINENO: result: $AR" >&5
4535 echo "${ECHO_T}$AR" >&6; }
4537 { echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6; }
4542 # Extract the first word of "openssl", so it can be a program name with args.
4543 set dummy openssl; ac_word=$2
4544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4546 if test "${ac_cv_path_OPENSSL+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4573 OPENSSL=$ac_cv_path_OPENSSL
4574 if test -n "$OPENSSL"; then
4575 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4576 echo "${ECHO_T}$OPENSSL" >&6; }
4578 { echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6; }
4583 # Extract the first word of "mtx", so it can be a program name with args.
4584 set dummy mtx; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_path_MTX+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4615 if test -n "$MTX"; then
4616 { echo "$as_me:$LINENO: result: $MTX" >&5
4617 echo "${ECHO_T}$MTX" >&6; }
4619 { echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6; }
4624 # Extract the first word of "dd", so it can be a program name with args.
4625 set dummy dd; ac_word=$2
4626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4628 if test "${ac_cv_path_DD+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4643 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4656 if test -n "$DD"; then
4657 { echo "$as_me:$LINENO: result: $DD" >&5
4658 echo "${ECHO_T}$DD" >&6; }
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4665 # Extract the first word of "mkisofs", so it can be a program name with args.
4666 set dummy mkisofs; ac_word=$2
4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669 if test "${ac_cv_path_MKISOFS+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4696 MKISOFS=$ac_cv_path_MKISOFS
4697 if test -n "$MKISOFS"; then
4698 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4699 echo "${ECHO_T}$MKISOFS" >&6; }
4701 { echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6; }
4706 # Extract the first word of "python", so it can be a program name with args.
4707 set dummy python; ac_word=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_path_PYTHON+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4737 PYTHON=$ac_cv_path_PYTHON
4738 if test -n "$PYTHON"; then
4739 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4740 echo "${ECHO_T}$PYTHON" >&6; }
4742 { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4747 # Extract the first word of "growisofs", so it can be a program name with args.
4748 set dummy growisofs; ac_word=$2
4749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4751 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4778 GROWISOFS=$ac_cv_path_GROWISOFS
4779 if test -n "$GROWISOFS"; then
4780 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4781 echo "${ECHO_T}$GROWISOFS" >&6; }
4783 { echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6; }
4788 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4789 set dummy dvd+rw-mediainfo; ac_word=$2
4790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 case $DVDRWMEDIAINFO in
4797 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4819 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4820 if test -n "$DVDRWMEDIAINFO"; then
4821 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4822 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4824 { echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6; }
4829 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4830 set dummy dvd+rw-format; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 case $DVDRWFORMAT in
4838 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4860 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4861 if test -n "$DVDRWFORMAT"; then
4862 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4863 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4865 { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4870 # Extract the first word of "pkg-config", so it can be a program name with args.
4871 set dummy pkg-config; ac_word=$2
4872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4901 PKGCONFIG=$ac_cv_path_PKGCONFIG
4902 if test -n "$PKGCONFIG"; then
4903 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4904 echo "${ECHO_T}$PKGCONFIG" >&6; }
4906 { echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6; }
4911 # Extract the first word of "qmake", so it can be a program name with args.
4912 set dummy qmake; ac_word=$2
4913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4915 if test "${ac_cv_path_QMAKE+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4942 QMAKE=$ac_cv_path_QMAKE
4943 if test -n "$QMAKE"; then
4944 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4945 echo "${ECHO_T}$QMAKE" >&6; }
4947 { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4952 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4953 set dummy qmake-qt4; ac_word=$2
4954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4956 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4983 QMAKEQT4=$ac_cv_path_QMAKEQT4
4984 if test -n "$QMAKEQT4"; then
4985 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4986 echo "${ECHO_T}$QMAKEQT4" >&6; }
4988 { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4994 if test "x$WXCONFIG" = x; then
4997 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4998 set dummy ${WXCONFIG}; ac_word=$2
4999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5001 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5028 WXCONFIG=$ac_cv_path_WXCONFIG
5029 if test -n "$WXCONFIG"; then
5030 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5031 echo "${ECHO_T}$WXCONFIG" >&6; }
5033 { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5039 # Extract the first word of "cdrecord", so it can be a program name with args.
5040 set dummy cdrecord; ac_word=$2
5041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5043 if test "${ac_cv_path_CDRECORD+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5070 CDRECORD=$ac_cv_path_CDRECORD
5071 if test -n "$CDRECORD"; then
5072 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5073 echo "${ECHO_T}$CDRECORD" >&6; }
5075 { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5080 # Extract the first word of "pidof", so it can be a program name with args.
5081 set dummy pidof; ac_word=$2
5082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5084 if test "${ac_cv_path_PIDOF+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5111 PIDOF=$ac_cv_path_PIDOF
5112 if test -n "$PIDOF"; then
5113 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5114 echo "${ECHO_T}$PIDOF" >&6; }
5116 { echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6; }
5121 for ac_prog in gawk mawk nawk awk
5123 # Extract the first word of "$ac_prog", so it can be a program name with args.
5124 set dummy $ac_prog; ac_word=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_prog_AWK+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 if test -n "$AWK"; then
5131 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_AWK="$ac_prog"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 if test -n "$AWK"; then
5152 { echo "$as_me:$LINENO: result: $AWK" >&5
5153 echo "${ECHO_T}$AWK" >&6; }
5155 { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5160 test -n "$AWK" && break
5163 # Some AWK programs fail, so test it and warn the user
5164 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5165 { if ((prog == $2) || (("(" prog ")") == $2) ||
5166 (("" prog "") == $2) ||
5167 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5169 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5170 The regex engine of $AWK is too broken to be used you
5171 might want to install GNU AWK.
5172 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5173 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5174 The regex engine of $AWK is too broken to be used you
5175 might want to install GNU AWK.
5176 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5177 { (exit 1); exit 1; }; }
5180 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5181 set dummy $THE_AWK; ac_word=$2
5182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5184 if test "${ac_cv_path_AWK+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5212 if test -n "$AWK"; then
5213 { echo "$as_me:$LINENO: result: $AWK" >&5
5214 echo "${ECHO_T}$AWK" >&6; }
5216 { echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6; }
5223 test -n "$ARFLAG" || ARFLAGS="cr"
5234 # Make sure we can run config.sub.
5235 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5236 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5237 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5238 { (exit 1); exit 1; }; }
5240 { echo "$as_me:$LINENO: checking build system type" >&5
5241 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5242 if test "${ac_cv_build+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 ac_build_alias=$build_alias
5246 test "x$ac_build_alias" = x &&
5247 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5248 test "x$ac_build_alias" = x &&
5249 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5250 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5251 { (exit 1); exit 1; }; }
5252 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5253 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5254 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5255 { (exit 1); exit 1; }; }
5258 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5259 echo "${ECHO_T}$ac_cv_build" >&6; }
5260 case $ac_cv_build in
5262 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5263 echo "$as_me: error: invalid value of canonical build" >&2;}
5264 { (exit 1); exit 1; }; };;
5267 ac_save_IFS=$IFS; IFS='-'
5273 # Remember, the first character of IFS is used to create $*,
5274 # except with old shells:
5277 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5281 { echo "$as_me:$LINENO: checking host system type" >&5
5282 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5283 if test "${ac_cv_host+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 if test "x$host_alias" = x; then
5287 ac_cv_host=$ac_cv_build
5289 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5290 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5291 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5292 { (exit 1); exit 1; }; }
5296 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5297 echo "${ECHO_T}$ac_cv_host" >&6; }
5300 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5301 echo "$as_me: error: invalid value of canonical host" >&2;}
5302 { (exit 1); exit 1; }; };;
5305 ac_save_IFS=$IFS; IFS='-'
5311 # Remember, the first character of IFS is used to create $*,
5312 # except with old shells:
5315 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5319 *cygwin* ) CYGWIN=yes;;
5323 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5329 HAVE_SUN_OS_FALSE='#'
5331 HAVE_SUN_OS_TRUE='#'
5334 cat >>confdefs.h <<\_ACEOF
5335 #define HAVE_SUN_OS 1
5343 HAVE_SUN_OS_FALSE='#'
5345 HAVE_SUN_OS_TRUE='#'
5350 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5356 HAVE_OSF1_OS_FALSE='#'
5358 HAVE_OSF1_OS_TRUE='#'
5361 cat >>confdefs.h <<\_ACEOF
5362 #define HAVE_OSF1_OS 1
5370 HAVE_OSF1_OS_FALSE='#'
5372 HAVE_OSF1_OS_TRUE='#'
5377 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5383 HAVE_AIX_OS_FALSE='#'
5385 HAVE_AIX_OS_TRUE='#'
5388 cat >>confdefs.h <<\_ACEOF
5389 #define HAVE_AIX_OS 1
5397 HAVE_AIX_OS_FALSE='#'
5399 HAVE_AIX_OS_TRUE='#'
5404 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5410 HAVE_HPUX_OS_FALSE='#'
5412 HAVE_HPUX_OS_TRUE='#'
5415 cat >>confdefs.h <<\_ACEOF
5416 #define HAVE_HPUX_OS 1
5424 HAVE_HPUX_OS_FALSE='#'
5426 HAVE_HPUX_OS_TRUE='#'
5431 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5437 HAVE_LINUX_OS_FALSE='#'
5439 HAVE_LINUX_OS_TRUE='#'
5440 HAVE_LINUX_OS_FALSE=
5442 cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_LINUX_OS 1
5451 HAVE_LINUX_OS_FALSE='#'
5453 HAVE_LINUX_OS_TRUE='#'
5454 HAVE_LINUX_OS_FALSE=
5458 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5463 HAVE_FREEBSD_OS_TRUE=
5464 HAVE_FREEBSD_OS_FALSE='#'
5466 HAVE_FREEBSD_OS_TRUE='#'
5467 HAVE_FREEBSD_OS_FALSE=
5469 cat >>confdefs.h <<\_ACEOF
5470 #define HAVE_FREEBSD_OS 1
5477 HAVE_FREEBSD_OS_TRUE=
5478 HAVE_FREEBSD_OS_FALSE='#'
5480 HAVE_FREEBSD_OS_TRUE='#'
5481 HAVE_FREEBSD_OS_FALSE=
5485 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5490 HAVE_NETBSD_OS_TRUE=
5491 HAVE_NETBSD_OS_FALSE='#'
5493 HAVE_NETBSD_OS_TRUE='#'
5494 HAVE_NETBSD_OS_FALSE=
5496 cat >>confdefs.h <<\_ACEOF
5497 #define HAVE_NETBSD_OS 1
5504 HAVE_NETBSD_OS_TRUE=
5505 HAVE_NETBSD_OS_FALSE='#'
5507 HAVE_NETBSD_OS_TRUE='#'
5508 HAVE_NETBSD_OS_FALSE=
5512 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5517 HAVE_OPENBSD_OS_TRUE=
5518 HAVE_OPENBSD_OS_FALSE='#'
5520 HAVE_OPENBSD_OS_TRUE='#'
5521 HAVE_OPENBSD_OS_FALSE=
5523 cat >>confdefs.h <<\_ACEOF
5524 #define HAVE_OPENBSD_OS 1
5531 HAVE_OPENBSD_OS_TRUE=
5532 HAVE_OPENBSD_OS_FALSE='#'
5534 HAVE_OPENBSD_OS_TRUE='#'
5535 HAVE_OPENBSD_OS_FALSE=
5539 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5545 HAVE_BSDI_OS_FALSE='#'
5547 HAVE_BSDI_OS_TRUE='#'
5550 cat >>confdefs.h <<\_ACEOF
5551 #define HAVE_BSDI_OS 1
5559 HAVE_BSDI_OS_FALSE='#'
5561 HAVE_BSDI_OS_TRUE='#'
5566 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5572 HAVE_SGI_OS_FALSE='#'
5574 HAVE_SGI_OS_TRUE='#'
5577 cat >>confdefs.h <<\_ACEOF
5578 #define HAVE_SGI_OS 1
5586 HAVE_SGI_OS_FALSE='#'
5588 HAVE_SGI_OS_TRUE='#'
5593 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5599 HAVE_IRIX_OS_FALSE='#'
5601 HAVE_IRIX_OS_TRUE='#'
5604 cat >>confdefs.h <<\_ACEOF
5605 #define HAVE_IRIX_OS 1
5613 HAVE_IRIX_OS_FALSE='#'
5615 HAVE_IRIX_OS_TRUE='#'
5620 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5625 HAVE_DARWIN_OS_TRUE=
5626 HAVE_DARWIN_OS_FALSE='#'
5628 HAVE_DARWIN_OS_TRUE='#'
5629 HAVE_DARWIN_OS_FALSE=
5631 cat >>confdefs.h <<\_ACEOF
5632 #define HAVE_DARWIN_OS 1
5639 HAVE_DARWIN_OS_TRUE=
5640 HAVE_DARWIN_OS_FALSE='#'
5642 HAVE_DARWIN_OS_TRUE='#'
5643 HAVE_DARWIN_OS_FALSE=
5648 # -----------------------------------------------------------
5649 # ----------------------------------------------------------
5650 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5651 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5652 if test "x$DISTNAME" != "x"
5654 echo "distname set to $DISTNAME"
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5667 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5670 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5673 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5676 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5679 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5682 elif test -f /etc/SuSE-release
5685 elif test -d /etc/SuSEconfig
5688 elif test -f /etc/mandrake-release
5691 elif test -f /etc/whitebox-release
5694 elif test -f /etc/redhat-release
5697 elif test -f /etc/gentoo-release
5700 elif test -f /etc/debian_version
5703 elif test -f /etc/slackware-version
5706 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5709 elif test -f /etc/engarde-version
5712 elif test "$CYGWIN" = yes
5715 cat >>confdefs.h <<\_ACEOF
5716 #define HAVE_CYGWIN 1
5722 { echo "$as_me:$LINENO: result: done" >&5
5723 echo "${ECHO_T}done" >&6; }
5726 # --------------------------------------------------
5727 # Suppport for gettext (translations)
5728 # By default, $datadir is ${prefix}/share
5729 # --------------------------------------------------
5730 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5731 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5732 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5733 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 cat >conftest.make <<\_ACEOF
5739 @echo '@@@%%%=$(MAKE)=@@@%%%'
5741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5742 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5744 eval ac_cv_prog_make_${ac_make}_set=yes;;
5746 eval ac_cv_prog_make_${ac_make}_set=no;;
5750 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5751 { echo "$as_me:$LINENO: result: yes" >&5
5752 echo "${ECHO_T}yes" >&6; }
5755 { echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6; }
5757 SET_MAKE="MAKE=${MAKE-make}"
5763 if test -n "$ac_aux_dir"; then
5764 case "$ac_aux_dir" in
5765 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5766 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5769 if test -z "$MKINSTALLDIRS"; then
5770 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5775 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5776 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5777 # Check whether --enable-nls was given.
5778 if test "${enable_nls+set}" = set; then
5779 enableval=$enable_nls; USE_NLS=$enableval
5784 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5785 echo "${ECHO_T}$USE_NLS" >&6; }
5792 # Prepare PATH_SEPARATOR.
5793 # The user is always right.
5794 if test "${PATH_SEPARATOR+set}" != set; then
5795 echo "#! /bin/sh" >conf$$.sh
5796 echo "exit 0" >>conf$$.sh
5798 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5806 # Find out how to test for executable files. Don't use a zero-byte file,
5807 # as systems may use methods other than mode bits to determine executability.
5808 cat >conf$$.file <<_ASEOF
5812 chmod +x conf$$.file
5813 if test -x conf$$.file >/dev/null 2>&1; then
5814 ac_executable_p="test -x"
5816 ac_executable_p="test -f"
5820 # Extract the first word of "msgfmt", so it can be a program name with args.
5821 set dummy msgfmt; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_path_MSGFMT+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5832 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5833 for ac_dir in $PATH; do
5835 test -z "$ac_dir" && ac_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5838 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5839 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5840 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5841 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5848 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5852 MSGFMT="$ac_cv_path_MSGFMT"
5853 if test "$MSGFMT" != ":"; then
5854 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5855 echo "${ECHO_T}$MSGFMT" >&6; }
5857 { echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6; }
5861 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5862 set dummy gmsgfmt; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5892 GMSGFMT=$ac_cv_path_GMSGFMT
5893 if test -n "$GMSGFMT"; then
5894 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5895 echo "${ECHO_T}$GMSGFMT" >&6; }
5897 { echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6; }
5904 # Prepare PATH_SEPARATOR.
5905 # The user is always right.
5906 if test "${PATH_SEPARATOR+set}" != set; then
5907 echo "#! /bin/sh" >conf$$.sh
5908 echo "exit 0" >>conf$$.sh
5910 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5918 # Find out how to test for executable files. Don't use a zero-byte file,
5919 # as systems may use methods other than mode bits to determine executability.
5920 cat >conf$$.file <<_ASEOF
5924 chmod +x conf$$.file
5925 if test -x conf$$.file >/dev/null 2>&1; then
5926 ac_executable_p="test -x"
5928 ac_executable_p="test -f"
5932 # Extract the first word of "xgettext", so it can be a program name with args.
5933 set dummy xgettext; ac_word=$2
5934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5936 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5944 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5945 for ac_dir in $PATH; do
5947 test -z "$ac_dir" && ac_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5950 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5951 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5952 (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
5953 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5960 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5964 XGETTEXT="$ac_cv_path_XGETTEXT"
5965 if test "$XGETTEXT" != ":"; then
5966 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5967 echo "${ECHO_T}$XGETTEXT" >&6; }
5969 { echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6; }
5976 # Prepare PATH_SEPARATOR.
5977 # The user is always right.
5978 if test "${PATH_SEPARATOR+set}" != set; then
5979 echo "#! /bin/sh" >conf$$.sh
5980 echo "exit 0" >>conf$$.sh
5982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5990 # Find out how to test for executable files. Don't use a zero-byte file,
5991 # as systems may use methods other than mode bits to determine executability.
5992 cat >conf$$.file <<_ASEOF
5996 chmod +x conf$$.file
5997 if test -x conf$$.file >/dev/null 2>&1; then
5998 ac_executable_p="test -x"
6000 ac_executable_p="test -f"
6004 # Extract the first word of "msgmerge", so it can be a program name with args.
6005 set dummy msgmerge; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6016 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6017 for ac_dir in $PATH; do
6019 test -z "$ac_dir" && ac_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6022 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6023 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6024 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6031 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6035 MSGMERGE="$ac_cv_path_MSGMERGE"
6036 if test "$MSGMERGE" != ":"; then
6037 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6038 echo "${ECHO_T}$MSGMERGE" >&6; }
6040 { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6045 if test "$GMSGFMT" != ":"; then
6046 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6047 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6050 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6051 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6052 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6057 if test "$XGETTEXT" != ":"; then
6058 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6059 (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
6062 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6063 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6069 ac_config_commands="$ac_config_commands default-1"
6073 if test "X$prefix" = "XNONE"; then
6074 acl_final_prefix="$ac_default_prefix"
6076 acl_final_prefix="$prefix"
6078 if test "X$exec_prefix" = "XNONE"; then
6079 acl_final_exec_prefix='${prefix}'
6081 acl_final_exec_prefix="$exec_prefix"
6083 acl_save_prefix="$prefix"
6084 prefix="$acl_final_prefix"
6085 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6086 prefix="$acl_save_prefix"
6089 # Check whether --with-gnu-ld was given.
6090 if test "${with_gnu_ld+set}" = set; then
6091 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6096 # Prepare PATH_SEPARATOR.
6097 # The user is always right.
6098 if test "${PATH_SEPARATOR+set}" != set; then
6099 echo "#! /bin/sh" >conf$$.sh
6100 echo "exit 0" >>conf$$.sh
6102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6110 if test "$GCC" = yes; then
6111 # Check if gcc -print-prog-name=ld gives a path.
6112 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6113 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6116 # gcc leaves a trailing carriage return which upsets mingw
6117 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6119 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6122 # Accept absolute paths.
6123 [\\/]* | [A-Za-z]:[\\/]*)
6124 re_direlt='/[^/][^/]*/\.\./'
6125 # Canonicalize the path of ld
6126 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6127 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6128 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6130 test -z "$LD" && LD="$ac_prog"
6133 # If it fails, then pretend we aren't using GCC.
6137 # If it is relative, then search for the first ld in PATH.
6141 elif test "$with_gnu_ld" = yes; then
6142 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6143 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6145 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6146 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6148 if test "${acl_cv_path_LD+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 if test -z "$LD"; then
6152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6153 for ac_dir in $PATH; do
6154 test -z "$ac_dir" && ac_dir=.
6155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6156 acl_cv_path_LD="$ac_dir/$ac_prog"
6157 # Check to see if the program is GNU ld. I'd rather use --version,
6158 # but apparently some GNU ld's only accept -v.
6159 # Break only if it was the GNU/non-GNU ld that we prefer.
6160 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6161 *GNU* | *'with BFD'*)
6162 test "$with_gnu_ld" != no && break ;;
6164 test "$with_gnu_ld" != yes && break ;;
6170 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6174 LD="$acl_cv_path_LD"
6175 if test -n "$LD"; then
6176 { echo "$as_me:$LINENO: result: $LD" >&5
6177 echo "${ECHO_T}$LD" >&6; }
6179 { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6182 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6183 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6184 { (exit 1); exit 1; }; }
6185 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6186 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6187 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6191 case `$LD -v 2>&1 </dev/null` in
6192 *GNU* | *'with BFD'*)
6193 acl_cv_prog_gnu_ld=yes ;;
6195 acl_cv_prog_gnu_ld=no ;;
6198 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6199 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6200 with_gnu_ld=$acl_cv_prog_gnu_ld
6205 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6206 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6207 if test "${acl_cv_rpath+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6212 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6218 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6219 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6221 libext="$acl_cv_libext"
6222 shlibext="$acl_cv_shlibext"
6223 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6224 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6225 hardcode_direct="$acl_cv_hardcode_direct"
6226 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6227 # Check whether --enable-rpath was given.
6228 if test "${enable_rpath+set}" = set; then
6229 enableval=$enable_rpath; :
6243 acl_save_prefix="$prefix"
6244 prefix="$acl_final_prefix"
6245 acl_save_exec_prefix="$exec_prefix"
6246 exec_prefix="$acl_final_exec_prefix"
6248 eval additional_includedir=\"$includedir\"
6249 eval additional_libdir=\"$libdir\"
6251 exec_prefix="$acl_save_exec_prefix"
6252 prefix="$acl_save_prefix"
6255 # Check whether --with-libiconv-prefix was given.
6256 if test "${with_libiconv_prefix+set}" = set; then
6257 withval=$with_libiconv_prefix;
6258 if test "X$withval" = "Xno"; then
6261 if test "X$withval" = "X"; then
6263 acl_save_prefix="$prefix"
6264 prefix="$acl_final_prefix"
6265 acl_save_exec_prefix="$exec_prefix"
6266 exec_prefix="$acl_final_exec_prefix"
6268 eval additional_includedir=\"$includedir\"
6269 eval additional_libdir=\"$libdir\"
6271 exec_prefix="$acl_save_exec_prefix"
6272 prefix="$acl_save_prefix"
6275 additional_includedir="$withval/include"
6276 additional_libdir="$withval/lib"
6287 names_already_handled=
6288 names_next_round='iconv '
6289 while test -n "$names_next_round"; do
6290 names_this_round="$names_next_round"
6292 for name in $names_this_round; do
6294 for n in $names_already_handled; do
6295 if test "$n" = "$name"; then
6300 if test -z "$already_handled"; then
6301 names_already_handled="$names_already_handled $name"
6302 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6303 eval value=\"\$HAVE_LIB$uppername\"
6304 if test -n "$value"; then
6305 if test "$value" = yes; then
6306 eval value=\"\$LIB$uppername\"
6307 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6308 eval value=\"\$LTLIB$uppername\"
6309 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6318 if test $use_additional = yes; then
6319 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6320 found_dir="$additional_libdir"
6321 found_so="$additional_libdir/lib$name.$shlibext"
6322 if test -f "$additional_libdir/lib$name.la"; then
6323 found_la="$additional_libdir/lib$name.la"
6326 if test -f "$additional_libdir/lib$name.$libext"; then
6327 found_dir="$additional_libdir"
6328 found_a="$additional_libdir/lib$name.$libext"
6329 if test -f "$additional_libdir/lib$name.la"; then
6330 found_la="$additional_libdir/lib$name.la"
6335 if test "X$found_dir" = "X"; then
6336 for x in $LDFLAGS $LTLIBICONV; do
6338 acl_save_prefix="$prefix"
6339 prefix="$acl_final_prefix"
6340 acl_save_exec_prefix="$exec_prefix"
6341 exec_prefix="$acl_final_exec_prefix"
6343 exec_prefix="$acl_save_exec_prefix"
6344 prefix="$acl_save_prefix"
6348 dir=`echo "X$x" | sed -e 's/^X-L//'`
6349 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6351 found_so="$dir/lib$name.$shlibext"
6352 if test -f "$dir/lib$name.la"; then
6353 found_la="$dir/lib$name.la"
6356 if test -f "$dir/lib$name.$libext"; then
6358 found_a="$dir/lib$name.$libext"
6359 if test -f "$dir/lib$name.la"; then
6360 found_la="$dir/lib$name.la"
6366 if test "X$found_dir" != "X"; then
6371 if test "X$found_dir" != "X"; then
6372 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6373 if test "X$found_so" != "X"; then
6374 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6375 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6378 for x in $ltrpathdirs; do
6379 if test "X$x" = "X$found_dir"; then
6384 if test -z "$haveit"; then
6385 ltrpathdirs="$ltrpathdirs $found_dir"
6387 if test "$hardcode_direct" = yes; then
6388 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6390 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6391 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6393 for x in $rpathdirs; do
6394 if test "X$x" = "X$found_dir"; then
6399 if test -z "$haveit"; then
6400 rpathdirs="$rpathdirs $found_dir"
6404 for x in $LDFLAGS $LIBICONV; do
6406 acl_save_prefix="$prefix"
6407 prefix="$acl_final_prefix"
6408 acl_save_exec_prefix="$exec_prefix"
6409 exec_prefix="$acl_final_exec_prefix"
6411 exec_prefix="$acl_save_exec_prefix"
6412 prefix="$acl_save_prefix"
6414 if test "X$x" = "X-L$found_dir"; then
6419 if test -z "$haveit"; then
6420 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6422 if test "$hardcode_minus_L" != no; then
6423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6425 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6431 if test "X$found_a" != "X"; then
6432 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6434 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6437 additional_includedir=
6438 case "$found_dir" in
6440 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6441 additional_includedir="$basedir/include"
6444 if test "X$additional_includedir" != "X"; then
6445 if test "X$additional_includedir" != "X/usr/include"; then
6447 if test "X$additional_includedir" = "X/usr/local/include"; then
6448 if test -n "$GCC"; then
6450 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6454 if test -z "$haveit"; then
6455 for x in $CPPFLAGS $INCICONV; do
6457 acl_save_prefix="$prefix"
6458 prefix="$acl_final_prefix"
6459 acl_save_exec_prefix="$exec_prefix"
6460 exec_prefix="$acl_final_exec_prefix"
6462 exec_prefix="$acl_save_exec_prefix"
6463 prefix="$acl_save_prefix"
6465 if test "X$x" = "X-I$additional_includedir"; then
6470 if test -z "$haveit"; then
6471 if test -d "$additional_includedir"; then
6472 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6478 if test -n "$found_la"; then
6479 save_libdir="$libdir"
6481 */* | *\\*) . "$found_la" ;;
6482 *) . "./$found_la" ;;
6484 libdir="$save_libdir"
6485 for dep in $dependency_libs; do
6488 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6489 if test "X$additional_libdir" != "X/usr/lib"; then
6491 if test "X$additional_libdir" = "X/usr/local/lib"; then
6492 if test -n "$GCC"; then
6494 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6498 if test -z "$haveit"; then
6500 for x in $LDFLAGS $LIBICONV; do
6502 acl_save_prefix="$prefix"
6503 prefix="$acl_final_prefix"
6504 acl_save_exec_prefix="$exec_prefix"
6505 exec_prefix="$acl_final_exec_prefix"
6507 exec_prefix="$acl_save_exec_prefix"
6508 prefix="$acl_save_prefix"
6510 if test "X$x" = "X-L$additional_libdir"; then
6515 if test -z "$haveit"; then
6516 if test -d "$additional_libdir"; then
6517 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6521 for x in $LDFLAGS $LTLIBICONV; do
6523 acl_save_prefix="$prefix"
6524 prefix="$acl_final_prefix"
6525 acl_save_exec_prefix="$exec_prefix"
6526 exec_prefix="$acl_final_exec_prefix"
6528 exec_prefix="$acl_save_exec_prefix"
6529 prefix="$acl_save_prefix"
6531 if test "X$x" = "X-L$additional_libdir"; then
6536 if test -z "$haveit"; then
6537 if test -d "$additional_libdir"; then
6538 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6545 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6546 if test "$enable_rpath" != no; then
6548 for x in $rpathdirs; do
6549 if test "X$x" = "X$dir"; then
6554 if test -z "$haveit"; then
6555 rpathdirs="$rpathdirs $dir"
6558 for x in $ltrpathdirs; do
6559 if test "X$x" = "X$dir"; then
6564 if test -z "$haveit"; then
6565 ltrpathdirs="$ltrpathdirs $dir"
6570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6576 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6577 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6583 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6584 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6590 if test "X$rpathdirs" != "X"; then
6591 if test -n "$hardcode_libdir_separator"; then
6593 for found_dir in $rpathdirs; do
6594 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6596 acl_save_libdir="$libdir"
6598 eval flag=\"$hardcode_libdir_flag_spec\"
6599 libdir="$acl_save_libdir"
6600 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6602 for found_dir in $rpathdirs; do
6603 acl_save_libdir="$libdir"
6605 eval flag=\"$hardcode_libdir_flag_spec\"
6606 libdir="$acl_save_libdir"
6607 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6611 if test "X$ltrpathdirs" != "X"; then
6612 for found_dir in $ltrpathdirs; do
6613 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6634 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6635 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6636 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 gt_save_CPPFLAGS="$CPPFLAGS"
6640 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6641 gt_save_LIBS="$LIBS"
6642 LIBS="$LIBS -framework CoreFoundation"
6643 cat >conftest.$ac_ext <<_ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 #include <CFPreferences.h>
6653 CFPreferencesCopyAppValue(NULL, NULL)
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (ac_try="$ac_link"
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_link") 2>conftest.er1
6667 grep -v '^ *+' conftest.er1 >conftest.err
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } && {
6672 test -z "$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6674 } && test -s conftest$ac_exeext &&
6675 $as_test_x conftest$ac_exeext; then
6676 gt_cv_func_CFPreferencesCopyAppValue=yes
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 gt_cv_func_CFPreferencesCopyAppValue=no
6684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6685 conftest$ac_exeext conftest.$ac_ext
6686 CPPFLAGS="$gt_save_CPPFLAGS"
6687 LIBS="$gt_save_LIBS"
6689 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6690 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6691 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6698 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6699 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6700 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 gt_save_CPPFLAGS="$CPPFLAGS"
6704 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6705 gt_save_LIBS="$LIBS"
6706 LIBS="$LIBS -framework CoreFoundation"
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <CFLocale.h>
6717 CFLocaleCopyCurrent();
6722 rm -f conftest.$ac_objext conftest$ac_exeext
6723 if { (ac_try="$ac_link"
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_link") 2>conftest.er1
6731 grep -v '^ *+' conftest.er1 >conftest.err
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest$ac_exeext &&
6739 $as_test_x conftest$ac_exeext; then
6740 gt_cv_func_CFLocaleCopyCurrent=yes
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 gt_cv_func_CFLocaleCopyCurrent=no
6748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6749 conftest$ac_exeext conftest.$ac_ext
6750 CPPFLAGS="$gt_save_CPPFLAGS"
6751 LIBS="$gt_save_LIBS"
6753 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6754 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6755 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6757 cat >>confdefs.h <<\_ACEOF
6758 #define HAVE_CFLOCALECOPYCURRENT 1
6763 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6764 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6770 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6771 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6772 # Check whether --enable-nls was given.
6773 if test "${enable_nls+set}" = set; then
6774 enableval=$enable_nls; USE_NLS=$enableval
6779 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6780 echo "${ECHO_T}$USE_NLS" >&6; }
6789 if test "$USE_NLS" = "yes"; then
6790 gt_use_preinstalled_gnugettext=no
6797 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6798 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6799 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 #include <libintl.h>
6809 extern int _nl_msg_cat_cntr;
6810 extern int *_nl_domain_bindings;
6814 bindtextdomain ("", "");
6815 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6820 rm -f conftest.$ac_objext conftest$ac_exeext
6821 if { (ac_try="$ac_link"
6823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824 *) ac_try_echo=$ac_try;;
6826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6827 (eval "$ac_link") 2>conftest.er1
6829 grep -v '^ *+' conftest.er1 >conftest.err
6831 cat conftest.err >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } && {
6834 test -z "$ac_c_werror_flag" ||
6835 test ! -s conftest.err
6836 } && test -s conftest$ac_exeext &&
6837 $as_test_x conftest$ac_exeext; then
6838 gt_cv_func_gnugettext1_libc=yes
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6843 gt_cv_func_gnugettext1_libc=no
6846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6847 conftest$ac_exeext conftest.$ac_ext
6849 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6850 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6852 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6858 am_save_CPPFLAGS="$CPPFLAGS"
6860 for element in $INCICONV; do
6862 for x in $CPPFLAGS; do
6864 acl_save_prefix="$prefix"
6865 prefix="$acl_final_prefix"
6866 acl_save_exec_prefix="$exec_prefix"
6867 exec_prefix="$acl_final_exec_prefix"
6869 exec_prefix="$acl_save_exec_prefix"
6870 prefix="$acl_save_prefix"
6872 if test "X$x" = "X$element"; then
6877 if test -z "$haveit"; then
6878 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6883 { echo "$as_me:$LINENO: checking for iconv" >&5
6884 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6885 if test "${am_cv_func_iconv+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 am_cv_func_iconv="no, consider installing GNU libiconv"
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6902 iconv_t cd = iconv_open("","");
6903 iconv(cd,NULL,NULL,NULL,NULL);
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>conftest.er1
6918 grep -v '^ *+' conftest.er1 >conftest.err
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && {
6923 test -z "$ac_c_werror_flag" ||
6924 test ! -s conftest.err
6925 } && test -s conftest$ac_exeext &&
6926 $as_test_x conftest$ac_exeext; then
6927 am_cv_func_iconv=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6936 conftest$ac_exeext conftest.$ac_ext
6937 if test "$am_cv_func_iconv" != yes; then
6938 am_save_LIBS="$LIBS"
6939 LIBS="$LIBS $LIBICONV"
6940 cat >conftest.$ac_ext <<_ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6951 iconv_t cd = iconv_open("","");
6952 iconv(cd,NULL,NULL,NULL,NULL);
6958 rm -f conftest.$ac_objext conftest$ac_exeext
6959 if { (ac_try="$ac_link"
6961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962 *) ac_try_echo=$ac_try;;
6964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6965 (eval "$ac_link") 2>conftest.er1
6967 grep -v '^ *+' conftest.er1 >conftest.err
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } && {
6972 test -z "$ac_c_werror_flag" ||
6973 test ! -s conftest.err
6974 } && test -s conftest$ac_exeext &&
6975 $as_test_x conftest$ac_exeext; then
6977 am_cv_func_iconv=yes
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6986 conftest$ac_exeext conftest.$ac_ext
6987 LIBS="$am_save_LIBS"
6991 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6992 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6993 if test "$am_cv_func_iconv" = yes; then
6995 cat >>confdefs.h <<\_ACEOF
6996 #define HAVE_ICONV 1
7000 if test "$am_cv_lib_iconv" = yes; then
7001 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7002 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7003 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7004 echo "${ECHO_T}$LIBICONV" >&6; }
7006 CPPFLAGS="$am_save_CPPFLAGS"
7018 acl_save_prefix="$prefix"
7019 prefix="$acl_final_prefix"
7020 acl_save_exec_prefix="$exec_prefix"
7021 exec_prefix="$acl_final_exec_prefix"
7023 eval additional_includedir=\"$includedir\"
7024 eval additional_libdir=\"$libdir\"
7026 exec_prefix="$acl_save_exec_prefix"
7027 prefix="$acl_save_prefix"
7030 # Check whether --with-libintl-prefix was given.
7031 if test "${with_libintl_prefix+set}" = set; then
7032 withval=$with_libintl_prefix;
7033 if test "X$withval" = "Xno"; then
7036 if test "X$withval" = "X"; then
7038 acl_save_prefix="$prefix"
7039 prefix="$acl_final_prefix"
7040 acl_save_exec_prefix="$exec_prefix"
7041 exec_prefix="$acl_final_exec_prefix"
7043 eval additional_includedir=\"$includedir\"
7044 eval additional_libdir=\"$libdir\"
7046 exec_prefix="$acl_save_exec_prefix"
7047 prefix="$acl_save_prefix"
7050 additional_includedir="$withval/include"
7051 additional_libdir="$withval/lib"
7062 names_already_handled=
7063 names_next_round='intl '
7064 while test -n "$names_next_round"; do
7065 names_this_round="$names_next_round"
7067 for name in $names_this_round; do
7069 for n in $names_already_handled; do
7070 if test "$n" = "$name"; then
7075 if test -z "$already_handled"; then
7076 names_already_handled="$names_already_handled $name"
7077 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7078 eval value=\"\$HAVE_LIB$uppername\"
7079 if test -n "$value"; then
7080 if test "$value" = yes; then
7081 eval value=\"\$LIB$uppername\"
7082 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7083 eval value=\"\$LTLIB$uppername\"
7084 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7093 if test $use_additional = yes; then
7094 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7095 found_dir="$additional_libdir"
7096 found_so="$additional_libdir/lib$name.$shlibext"
7097 if test -f "$additional_libdir/lib$name.la"; then
7098 found_la="$additional_libdir/lib$name.la"
7101 if test -f "$additional_libdir/lib$name.$libext"; then
7102 found_dir="$additional_libdir"
7103 found_a="$additional_libdir/lib$name.$libext"
7104 if test -f "$additional_libdir/lib$name.la"; then
7105 found_la="$additional_libdir/lib$name.la"
7110 if test "X$found_dir" = "X"; then
7111 for x in $LDFLAGS $LTLIBINTL; do
7113 acl_save_prefix="$prefix"
7114 prefix="$acl_final_prefix"
7115 acl_save_exec_prefix="$exec_prefix"
7116 exec_prefix="$acl_final_exec_prefix"
7118 exec_prefix="$acl_save_exec_prefix"
7119 prefix="$acl_save_prefix"
7123 dir=`echo "X$x" | sed -e 's/^X-L//'`
7124 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7126 found_so="$dir/lib$name.$shlibext"
7127 if test -f "$dir/lib$name.la"; then
7128 found_la="$dir/lib$name.la"
7131 if test -f "$dir/lib$name.$libext"; then
7133 found_a="$dir/lib$name.$libext"
7134 if test -f "$dir/lib$name.la"; then
7135 found_la="$dir/lib$name.la"
7141 if test "X$found_dir" != "X"; then
7146 if test "X$found_dir" != "X"; then
7147 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7148 if test "X$found_so" != "X"; then
7149 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7150 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7153 for x in $ltrpathdirs; do
7154 if test "X$x" = "X$found_dir"; then
7159 if test -z "$haveit"; then
7160 ltrpathdirs="$ltrpathdirs $found_dir"
7162 if test "$hardcode_direct" = yes; then
7163 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7165 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7166 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7168 for x in $rpathdirs; do
7169 if test "X$x" = "X$found_dir"; then
7174 if test -z "$haveit"; then
7175 rpathdirs="$rpathdirs $found_dir"
7179 for x in $LDFLAGS $LIBINTL; do
7181 acl_save_prefix="$prefix"
7182 prefix="$acl_final_prefix"
7183 acl_save_exec_prefix="$exec_prefix"
7184 exec_prefix="$acl_final_exec_prefix"
7186 exec_prefix="$acl_save_exec_prefix"
7187 prefix="$acl_save_prefix"
7189 if test "X$x" = "X-L$found_dir"; then
7194 if test -z "$haveit"; then
7195 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7197 if test "$hardcode_minus_L" != no; then
7198 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7200 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7206 if test "X$found_a" != "X"; then
7207 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7209 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7212 additional_includedir=
7213 case "$found_dir" in
7215 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7216 additional_includedir="$basedir/include"
7219 if test "X$additional_includedir" != "X"; then
7220 if test "X$additional_includedir" != "X/usr/include"; then
7222 if test "X$additional_includedir" = "X/usr/local/include"; then
7223 if test -n "$GCC"; then
7225 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7229 if test -z "$haveit"; then
7230 for x in $CPPFLAGS $INCINTL; do
7232 acl_save_prefix="$prefix"
7233 prefix="$acl_final_prefix"
7234 acl_save_exec_prefix="$exec_prefix"
7235 exec_prefix="$acl_final_exec_prefix"
7237 exec_prefix="$acl_save_exec_prefix"
7238 prefix="$acl_save_prefix"
7240 if test "X$x" = "X-I$additional_includedir"; then
7245 if test -z "$haveit"; then
7246 if test -d "$additional_includedir"; then
7247 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7253 if test -n "$found_la"; then
7254 save_libdir="$libdir"
7256 */* | *\\*) . "$found_la" ;;
7257 *) . "./$found_la" ;;
7259 libdir="$save_libdir"
7260 for dep in $dependency_libs; do
7263 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7264 if test "X$additional_libdir" != "X/usr/lib"; then
7266 if test "X$additional_libdir" = "X/usr/local/lib"; then
7267 if test -n "$GCC"; then
7269 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7273 if test -z "$haveit"; then
7275 for x in $LDFLAGS $LIBINTL; do
7277 acl_save_prefix="$prefix"
7278 prefix="$acl_final_prefix"
7279 acl_save_exec_prefix="$exec_prefix"
7280 exec_prefix="$acl_final_exec_prefix"
7282 exec_prefix="$acl_save_exec_prefix"
7283 prefix="$acl_save_prefix"
7285 if test "X$x" = "X-L$additional_libdir"; then
7290 if test -z "$haveit"; then
7291 if test -d "$additional_libdir"; then
7292 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7296 for x in $LDFLAGS $LTLIBINTL; do
7298 acl_save_prefix="$prefix"
7299 prefix="$acl_final_prefix"
7300 acl_save_exec_prefix="$exec_prefix"
7301 exec_prefix="$acl_final_exec_prefix"
7303 exec_prefix="$acl_save_exec_prefix"
7304 prefix="$acl_save_prefix"
7306 if test "X$x" = "X-L$additional_libdir"; then
7311 if test -z "$haveit"; then
7312 if test -d "$additional_libdir"; then
7313 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7320 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7321 if test "$enable_rpath" != no; then
7323 for x in $rpathdirs; do
7324 if test "X$x" = "X$dir"; then
7329 if test -z "$haveit"; then
7330 rpathdirs="$rpathdirs $dir"
7333 for x in $ltrpathdirs; do
7334 if test "X$x" = "X$dir"; then
7339 if test -z "$haveit"; then
7340 ltrpathdirs="$ltrpathdirs $dir"
7345 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7348 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7351 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7352 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7358 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7359 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7365 if test "X$rpathdirs" != "X"; then
7366 if test -n "$hardcode_libdir_separator"; then
7368 for found_dir in $rpathdirs; do
7369 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7371 acl_save_libdir="$libdir"
7373 eval flag=\"$hardcode_libdir_flag_spec\"
7374 libdir="$acl_save_libdir"
7375 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7377 for found_dir in $rpathdirs; do
7378 acl_save_libdir="$libdir"
7380 eval flag=\"$hardcode_libdir_flag_spec\"
7381 libdir="$acl_save_libdir"
7382 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7386 if test "X$ltrpathdirs" != "X"; then
7387 for found_dir in $ltrpathdirs; do
7388 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7392 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7393 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7394 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 gt_save_CPPFLAGS="$CPPFLAGS"
7398 CPPFLAGS="$CPPFLAGS $INCINTL"
7399 gt_save_LIBS="$LIBS"
7400 LIBS="$LIBS $LIBINTL"
7401 cat >conftest.$ac_ext <<_ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 #include <libintl.h>
7408 extern int _nl_msg_cat_cntr;
7413 const char *_nl_expand_alias (const char *);
7417 bindtextdomain ("", "");
7418 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7423 rm -f conftest.$ac_objext conftest$ac_exeext
7424 if { (ac_try="$ac_link"
7426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427 *) ac_try_echo=$ac_try;;
7429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430 (eval "$ac_link") 2>conftest.er1
7432 grep -v '^ *+' conftest.er1 >conftest.err
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && {
7437 test -z "$ac_c_werror_flag" ||
7438 test ! -s conftest.err
7439 } && test -s conftest$ac_exeext &&
7440 $as_test_x conftest$ac_exeext; then
7441 gt_cv_func_gnugettext1_libintl=yes
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7446 gt_cv_func_gnugettext1_libintl=no
7449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7450 conftest$ac_exeext conftest.$ac_ext
7451 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7452 LIBS="$LIBS $LIBICONV"
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #include <libintl.h>
7460 extern int _nl_msg_cat_cntr;
7465 const char *_nl_expand_alias (const char *);
7469 bindtextdomain ("", "");
7470 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7475 rm -f conftest.$ac_objext conftest$ac_exeext
7476 if { (ac_try="$ac_link"
7478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479 *) ac_try_echo=$ac_try;;
7481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7482 (eval "$ac_link") 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_c_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest$ac_exeext &&
7492 $as_test_x conftest$ac_exeext; then
7493 LIBINTL="$LIBINTL $LIBICONV"
7494 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7495 gt_cv_func_gnugettext1_libintl=yes
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7505 conftest$ac_exeext conftest.$ac_ext
7507 CPPFLAGS="$gt_save_CPPFLAGS"
7508 LIBS="$gt_save_LIBS"
7510 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7511 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7514 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7515 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7516 && test "$PACKAGE" != gettext-runtime \
7517 && test "$PACKAGE" != gettext-tools; }; then
7518 gt_use_preinstalled_gnugettext=yes
7527 if test -n "$INTL_MACOSX_LIBS"; then
7528 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7529 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7530 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7531 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7535 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7536 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7538 cat >>confdefs.h <<\_ACEOF
7539 #define ENABLE_NLS 1
7547 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7548 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7549 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7550 echo "${ECHO_T}$USE_NLS" >&6; }
7551 if test "$USE_NLS" = "yes"; then
7552 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7553 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7554 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7555 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7556 gt_source="external libintl"
7561 gt_source="included intl directory"
7563 { echo "$as_me:$LINENO: result: $gt_source" >&5
7564 echo "${ECHO_T}$gt_source" >&6; }
7567 if test "$USE_NLS" = "yes"; then
7569 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7570 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7571 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7572 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7573 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7574 echo "${ECHO_T}$LIBINTL" >&6; }
7576 for element in $INCINTL; do
7578 for x in $CPPFLAGS; do
7580 acl_save_prefix="$prefix"
7581 prefix="$acl_final_prefix"
7582 acl_save_exec_prefix="$exec_prefix"
7583 exec_prefix="$acl_final_exec_prefix"
7585 exec_prefix="$acl_save_exec_prefix"
7586 prefix="$acl_save_prefix"
7588 if test "X$x" = "X$element"; then
7593 if test -z "$haveit"; then
7594 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7601 cat >>confdefs.h <<\_ACEOF
7602 #define HAVE_GETTEXT 1
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_DCGETTEXT 1
7624 if test x${prefix} = xNONE ; then
7625 if test `eval echo ${datadir}` = NONE/share ; then
7630 # ------------------------------------------------------------------
7631 # If the user has not set --prefix, we set our default to nothing.
7632 # In this case, if the user has not set --sysconfdir, we set it
7633 # to the package default of /etc/bacula. If either --prefix or
7634 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7635 # ------------------------------------------------------------------
7636 if test x${prefix} = xNONE ; then
7637 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7638 sysconfdir=/etc/bacula
7642 sysconfdir=`eval echo ${sysconfdir}`
7643 datadir=`eval echo ${datadir}`
7644 localedir=`eval echo ${datadir}/locale`
7645 cat >>confdefs.h <<_ACEOF
7646 #define LOCALEDIR "$localedir"
7649 cat >>confdefs.h <<_ACEOF
7650 #define SYSCONFDIR "$sysconfdir"
7654 # -------------------------------------------------------------------------
7655 # If the user has not set --exec-prefix, we default to ${prefix}
7656 # -------------------------------------------------------------------------
7657 if test x${exec_prefix} = xNONE ; then
7658 exec_prefix=${prefix}
7661 # ------------------------------------------------------------------
7662 # If the user has not set --sbindir, we set our default as /sbin
7663 # ------------------------------------------------------------------
7664 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7665 sbindir=${exec_prefix}/sbin
7667 sbindir=`eval echo ${sbindir}`
7670 # -------------------------------------------------------------------------
7671 # If the user has not set --mandir, we default to /usr/share/man
7672 # -------------------------------------------------------------------------
7673 if test x$mandir = x'${prefix}/man' ; then
7674 mandir=/usr/share/man
7678 for ac_prog in msgfmt
7680 # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_path_MSGFMT+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 MSGFMT=$ac_cv_path_MSGFMT
7711 if test -n "$MSGFMT"; then
7712 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7713 echo "${ECHO_T}$MSGFMT" >&6; }
7715 { echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6; }
7720 test -n "$MSGFMT" && break
7722 test -n "$MSGFMT" || MSGFMT="no"
7724 if test "$MSGFMT" = "no"
7726 echo 'msgfmt program not found, disabling NLS !'
7728 USE_INCLUDED_LIBINTL=no
7731 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7732 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7733 if test "${ac_cv_gnu_library_2+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 cat >conftest.$ac_ext <<_ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7743 #include <features.h>
7744 #ifdef __GNU_LIBRARY__
7745 #if (__GLIBC__ >= 2)
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7753 ac_cv_gnu_library_2=yes
7755 ac_cv_gnu_library_2=no
7762 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7763 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7765 GLIBC2="$ac_cv_gnu_library_2"
7769 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7770 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7771 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 ac_check_lib_save_LIBS=$LIBS
7775 LIBS="-lcposix $LIBS"
7776 cat >conftest.$ac_ext <<_ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7783 /* Override any GCC internal prototype to avoid an error.
7784 Use char because int might match the return type of a GCC
7785 builtin and then its argument prototype would still apply. */
7798 rm -f conftest.$ac_objext conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_link") 2>conftest.er1
7807 grep -v '^ *+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && {
7812 test -z "$ac_c_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest$ac_exeext &&
7815 $as_test_x conftest$ac_exeext; then
7816 ac_cv_lib_cposix_strerror=yes
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ac_cv_lib_cposix_strerror=no
7824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7825 conftest$ac_exeext conftest.$ac_ext
7826 LIBS=$ac_check_lib_save_LIBS
7828 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7829 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7830 if test $ac_cv_lib_cposix_strerror = yes; then
7831 LIBS="$LIBS -lcposix"
7836 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7837 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7838 if test "${ac_cv_header_stdc+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_header_stdc=yes
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 ac_cv_header_stdc=no
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 if test $ac_cv_header_stdc = yes; then
7888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7889 cat >conftest.$ac_ext <<_ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899 $EGREP "memchr" >/dev/null 2>&1; then
7902 ac_cv_header_stdc=no
7908 if test $ac_cv_header_stdc = yes; then
7909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7910 cat >conftest.$ac_ext <<_ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7920 $EGREP "free" >/dev/null 2>&1; then
7923 ac_cv_header_stdc=no
7929 if test $ac_cv_header_stdc = yes; then
7930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7931 if test "$cross_compiling" = yes; then
7934 cat >conftest.$ac_ext <<_ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7942 #if ((' ' & 0x0FF) == 0x020)
7943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7946 # define ISLOWER(c) \
7947 (('a' <= (c) && (c) <= 'i') \
7948 || ('j' <= (c) && (c) <= 'r') \
7949 || ('s' <= (c) && (c) <= 'z'))
7950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7958 for (i = 0; i < 256; i++)
7959 if (XOR (islower (i), ISLOWER (i))
7960 || toupper (i) != TOUPPER (i))
7965 rm -f conftest$ac_exeext
7966 if { (ac_try="$ac_link"
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_link") 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7987 echo "$as_me: program exited with status $ac_status" >&5
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7992 ac_cv_header_stdc=no
7994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8000 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8001 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8002 if test $ac_cv_header_stdc = yes; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define STDC_HEADERS 1
8010 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8011 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8012 if test "${ac_cv_c_const+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8025 /* FIXME: Include the comments suggested by Paul. */
8027 /* Ultrix mips cc rejects this. */
8028 typedef int charset[2];
8030 /* SunOS 4.1.1 cc rejects this. */
8031 char const *const *pcpcc;
8033 /* NEC SVR4.0.2 mips cc rejects this. */
8034 struct point {int x, y;};
8035 static struct point const zero = {0,0};
8036 /* AIX XL C 1.02.0.0 rejects this.
8037 It does not let you subtract one const X* pointer from another in
8038 an arm of an if-expression whose if-part is not a constant
8040 const char *g = "string";
8041 pcpcc = &g + (g ? g-g : 0);
8042 /* HPUX 7.0 cc rejects these. */
8044 ppc = (char**) pcpcc;
8045 pcpcc = (char const *const *) ppc;
8046 { /* SCO 3.2v4 cc rejects this. */
8048 char const *s = 0 ? (char *) 0 : (char const *) 0;
8053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8055 const int *foo = &x[0];
8058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8059 typedef const int *iptr;
8063 { /* AIX XL C 1.02.0.0 rejects this saying
8064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8065 struct s { int j; const int *ap[3]; };
8066 struct s *b; b->j = 5;
8068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8072 return !cs[0] && !zero.x;
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8088 grep -v '^ *+' conftest.er1 >conftest.err
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } && {
8093 test -z "$ac_c_werror_flag" ||
8094 test ! -s conftest.err
8095 } && test -s conftest.$ac_objext; then
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8107 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8108 if test $ac_cv_c_const = no; then
8110 cat >>confdefs.h <<\_ACEOF
8117 { echo "$as_me:$LINENO: checking for signed" >&5
8118 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8119 if test "${bh_cv_c_signed+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8137 rm -f conftest.$ac_objext
8138 if { (ac_try="$ac_compile"
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_compile") 2>conftest.er1
8146 grep -v '^ *+' conftest.er1 >conftest.err
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && {
8151 test -z "$ac_c_werror_flag" ||
8152 test ! -s conftest.err
8153 } && test -s conftest.$ac_objext; then
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8165 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8166 if test $bh_cv_c_signed = no; then
8168 cat >>confdefs.h <<\_ACEOF
8174 { echo "$as_me:$LINENO: checking for inline" >&5
8175 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8176 if test "${ac_cv_c_inline+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 for ac_kw in inline __inline__ __inline; do
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8189 static $ac_kw foo_t static_foo () {return 0; }
8190 $ac_kw foo_t foo () {return 0; }
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.$ac_objext; then
8211 ac_cv_c_inline=$ac_kw
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 test "$ac_cv_c_inline" != no && break
8224 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8225 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8228 case $ac_cv_c_inline in
8231 case $ac_cv_c_inline in
8233 *) ac_val=$ac_cv_c_inline;;
8235 cat >>confdefs.h <<_ACEOF
8237 #define inline $ac_val
8243 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8253 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8254 inttypes.h stdint.h unistd.h
8256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 cat >conftest.$ac_ext <<_ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 $ac_includes_default
8270 #include <$ac_header>
8272 rm -f conftest.$ac_objext
8273 if { (ac_try="$ac_compile"
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_compile") 2>conftest.er1
8281 grep -v '^ *+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && {
8286 test -z "$ac_c_werror_flag" ||
8287 test ! -s conftest.err
8288 } && test -s conftest.$ac_objext; then
8289 eval "$as_ac_Header=yes"
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 eval "$as_ac_Header=no"
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 ac_res=`eval echo '${'$as_ac_Header'}'`
8300 { echo "$as_me:$LINENO: result: $ac_res" >&5
8301 echo "${ECHO_T}$ac_res" >&6; }
8302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8303 cat >>confdefs.h <<_ACEOF
8304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8312 { echo "$as_me:$LINENO: checking for off_t" >&5
8313 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8314 if test "${ac_cv_type_off_t+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 cat >conftest.$ac_ext <<_ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 $ac_includes_default
8324 typedef off_t ac__type_new_;
8328 if ((ac__type_new_ *) 0)
8330 if (sizeof (ac__type_new_))
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_compile") 2>conftest.er1
8345 grep -v '^ *+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } && {
8350 test -z "$ac_c_werror_flag" ||
8351 test ! -s conftest.err
8352 } && test -s conftest.$ac_objext; then
8353 ac_cv_type_off_t=yes
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8364 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8365 if test $ac_cv_type_off_t = yes; then
8369 cat >>confdefs.h <<_ACEOF
8370 #define off_t long int
8375 { echo "$as_me:$LINENO: checking for size_t" >&5
8376 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8377 if test "${ac_cv_type_size_t+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8387 typedef size_t ac__type_new_;
8391 if ((ac__type_new_ *) 0)
8393 if (sizeof (ac__type_new_))
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8408 grep -v '^ *+' conftest.er1 >conftest.err
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && {
8413 test -z "$ac_c_werror_flag" ||
8414 test ! -s conftest.err
8415 } && test -s conftest.$ac_objext; then
8416 ac_cv_type_size_t=yes
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 ac_cv_type_size_t=no
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8427 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8428 if test $ac_cv_type_size_t = yes; then
8432 cat >>confdefs.h <<_ACEOF
8433 #define size_t unsigned int
8439 { echo "$as_me:$LINENO: checking for long long" >&5
8440 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8441 if test "${ac_cv_type_long_long+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 cat >conftest.$ac_ext <<_ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 long long ll = 1LL; int i = 63;
8454 long long llmax = (long long) -1;
8455 return ll << i | ll >> i | llmax / ll | llmax % ll;
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (ac_try="$ac_link"
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_link") 2>conftest.er1
8469 grep -v '^ *+' conftest.er1 >conftest.err
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } && {
8474 test -z "$ac_c_werror_flag" ||
8475 test ! -s conftest.err
8476 } && test -s conftest$ac_exeext &&
8477 $as_test_x conftest$ac_exeext; then
8478 ac_cv_type_long_long=yes
8480 echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8483 ac_cv_type_long_long=no
8486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8487 conftest$ac_exeext conftest.$ac_ext
8489 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8490 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8491 if test $ac_cv_type_long_long = yes; then
8493 cat >>confdefs.h <<\_ACEOF
8494 #define HAVE_LONG_LONG 1
8500 { echo "$as_me:$LINENO: checking for long double" >&5
8501 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8502 if test "${gt_cv_c_long_double+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 if test "$GCC" = yes; then
8506 gt_cv_c_long_double=yes
8508 cat >conftest.$ac_ext <<_ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8515 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8516 long double foo = 0.0;
8517 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8518 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8528 rm -f conftest.$ac_objext
8529 if { (ac_try="$ac_compile"
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_compile") 2>conftest.er1
8537 grep -v '^ *+' conftest.er1 >conftest.err
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest.$ac_objext; then
8545 gt_cv_c_long_double=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 gt_cv_c_long_double=no
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8557 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8558 if test $gt_cv_c_long_double = yes; then
8560 cat >>confdefs.h <<\_ACEOF
8561 #define HAVE_LONG_DOUBLE 1
8567 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8568 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8569 if test "${gt_cv_c_wchar_t+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 cat >conftest.$ac_ext <<_ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8579 wchar_t foo = (wchar_t)'\0';
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1 >conftest.err
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8616 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8617 if test $gt_cv_c_wchar_t = yes; then
8619 cat >>confdefs.h <<\_ACEOF
8620 #define HAVE_WCHAR_T 1
8626 { echo "$as_me:$LINENO: checking for wint_t" >&5
8627 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8628 if test "${gt_cv_c_wint_t+set}" = set; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8638 wint_t foo = (wchar_t)'\0';
8647 rm -f conftest.$ac_objext
8648 if { (ac_try="$ac_compile"
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_compile") 2>conftest.er1
8656 grep -v '^ *+' conftest.er1 >conftest.err
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } && {
8661 test -z "$ac_c_werror_flag" ||
8662 test ! -s conftest.err
8663 } && test -s conftest.$ac_objext; then
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8675 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8676 if test $gt_cv_c_wint_t = yes; then
8678 cat >>confdefs.h <<\_ACEOF
8679 #define HAVE_WINT_T 1
8685 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8686 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8687 if test "${gl_cv_header_inttypes_h+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 #include <sys/types.h>
8697 #include <inttypes.h>
8701 uintmax_t i = (uintmax_t) -1;
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.$ac_objext; then
8723 gl_cv_header_inttypes_h=yes
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 gl_cv_header_inttypes_h=no
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8734 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8735 if test $gl_cv_header_inttypes_h = yes; then
8737 cat >>confdefs.h <<_ACEOF
8738 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8744 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8745 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8746 if test "${gl_cv_header_stdint_h+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 #include <sys/types.h>
8760 uintmax_t i = (uintmax_t) -1;
8765 rm -f conftest.$ac_objext
8766 if { (ac_try="$ac_compile"
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_compile") 2>conftest.er1
8774 grep -v '^ *+' conftest.er1 >conftest.err
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } && {
8779 test -z "$ac_c_werror_flag" ||
8780 test ! -s conftest.err
8781 } && test -s conftest.$ac_objext; then
8782 gl_cv_header_stdint_h=yes
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 gl_cv_header_stdint_h=no
8790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8792 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8793 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8794 if test $gl_cv_header_stdint_h = yes; then
8796 cat >>confdefs.h <<_ACEOF
8797 #define HAVE_STDINT_H_WITH_UINTMAX 1
8805 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8806 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8807 if test "${gt_cv_c_intmax_t+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 cat >conftest.$ac_ext <<_ACEOF
8813 cat confdefs.h >>conftest.$ac_ext
8814 cat >>conftest.$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8819 #if HAVE_STDINT_H_WITH_UINTMAX
8822 #if HAVE_INTTYPES_H_WITH_UINTMAX
8823 #include <inttypes.h>
8834 rm -f conftest.$ac_objext
8835 if { (ac_try="$ac_compile"
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_compile") 2>conftest.er1
8843 grep -v '^ *+' conftest.er1 >conftest.err
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } && {
8848 test -z "$ac_c_werror_flag" ||
8849 test ! -s conftest.err
8850 } && test -s conftest.$ac_objext; then
8851 gt_cv_c_intmax_t=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8862 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8863 if test $gt_cv_c_intmax_t = yes; then
8865 cat >>confdefs.h <<\_ACEOF
8866 #define HAVE_INTMAX_T 1
8873 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8874 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8875 if test "${gt_cv_func_printf_posix+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 if test "$cross_compiling" = yes; then
8881 cat >conftest.$ac_ext <<_ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8888 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8894 $EGREP "notposix" >/dev/null 2>&1; then
8895 gt_cv_func_printf_posix="guessing no"
8897 gt_cv_func_printf_posix="guessing yes"
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8912 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8913 dollar expansion (possibly an autoconf bug). */
8914 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8915 static char buf[100];
8918 sprintf (buf, format, 33, 55);
8919 return (strcmp (buf, "55 33") != 0);
8922 rm -f conftest$ac_exeext
8923 if { (ac_try="$ac_link"
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929 (eval "$ac_link") 2>&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8933 { (case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938 (eval "$ac_try") 2>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 gt_cv_func_printf_posix=yes
8944 echo "$as_me: program exited with status $ac_status" >&5
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8949 gt_cv_func_printf_posix=no
8951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8957 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8958 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8959 case $gt_cv_func_printf_posix in
8962 cat >>confdefs.h <<\_ACEOF
8963 #define HAVE_POSIX_PRINTF 1
8969 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8970 # for constant arguments. Useless!
8971 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8972 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8973 if test "${ac_cv_working_alloca_h+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 cat >conftest.$ac_ext <<_ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8986 char *p = (char *) alloca (2 * sizeof (int));
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (ac_try="$ac_link"
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_link") 2>conftest.er1
9001 grep -v '^ *+' conftest.er1 >conftest.err
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } && {
9006 test -z "$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 } && test -s conftest$ac_exeext &&
9009 $as_test_x conftest$ac_exeext; then
9010 ac_cv_working_alloca_h=yes
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 ac_cv_working_alloca_h=no
9018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9019 conftest$ac_exeext conftest.$ac_ext
9021 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9022 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9023 if test $ac_cv_working_alloca_h = yes; then
9025 cat >>confdefs.h <<\_ACEOF
9026 #define HAVE_ALLOCA_H 1
9031 { echo "$as_me:$LINENO: checking for alloca" >&5
9032 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9033 if test "${ac_cv_func_alloca_works+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 cat >conftest.$ac_ext <<_ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9043 # define alloca __builtin_alloca
9046 # include <malloc.h>
9047 # define alloca _alloca
9049 # ifdef HAVE_ALLOCA_H
9050 # include <alloca.h>
9055 # ifndef alloca /* predefined by HP cc +Olibcalls */
9066 char *p = (char *) alloca (1);
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_link") 2>conftest.er1
9081 grep -v '^ *+' conftest.er1 >conftest.err
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest$ac_exeext &&
9089 $as_test_x conftest$ac_exeext; then
9090 ac_cv_func_alloca_works=yes
9092 echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9095 ac_cv_func_alloca_works=no
9098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9099 conftest$ac_exeext conftest.$ac_ext
9101 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9102 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9104 if test $ac_cv_func_alloca_works = yes; then
9106 cat >>confdefs.h <<\_ACEOF
9107 #define HAVE_ALLOCA 1
9111 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9112 # that cause trouble. Some versions do not even contain alloca or
9113 # contain a buggy version. If you still want to use their alloca,
9114 # use ar to extract alloca.o from them instead of compiling alloca.c.
9116 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9118 cat >>confdefs.h <<\_ACEOF
9123 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9124 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9125 if test "${ac_cv_os_cray+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 cat >conftest.$ac_ext <<_ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134 #if defined CRAY && ! defined CRAY2
9141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9142 $EGREP "webecray" >/dev/null 2>&1; then
9150 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9151 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9152 if test $ac_cv_os_cray = yes; then
9153 for ac_func in _getb67 GETB67 getb67; do
9154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 cat >conftest.$ac_ext <<_ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9168 #define $ac_func innocuous_$ac_func
9170 /* System header to define __stub macros and hopefully few prototypes,
9171 which can conflict with char $ac_func (); below.
9172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9173 <limits.h> exists even on freestanding compilers. */
9176 # include <limits.h>
9178 # include <assert.h>
9183 /* Override any GCC internal prototype to avoid an error.
9184 Use char because int might match the return type of a GCC
9185 builtin and then its argument prototype would still apply. */
9190 /* The GNU C library defines this for functions which it implements
9191 to always fail with ENOSYS. Some functions are actually named
9192 something starting with __ and the normal name is an alias. */
9193 #if defined __stub_$ac_func || defined __stub___$ac_func
9205 rm -f conftest.$ac_objext conftest$ac_exeext
9206 if { (ac_try="$ac_link"
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_link") 2>conftest.er1
9214 grep -v '^ *+' conftest.er1 >conftest.err
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } && {
9219 test -z "$ac_c_werror_flag" ||
9220 test ! -s conftest.err
9221 } && test -s conftest$ac_exeext &&
9222 $as_test_x conftest$ac_exeext; then
9223 eval "$as_ac_var=yes"
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 eval "$as_ac_var=no"
9231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9232 conftest$ac_exeext conftest.$ac_ext
9234 ac_res=`eval echo '${'$as_ac_var'}'`
9235 { echo "$as_me:$LINENO: result: $ac_res" >&5
9236 echo "${ECHO_T}$ac_res" >&6; }
9237 if test `eval echo '${'$as_ac_var'}'` = yes; then
9239 cat >>confdefs.h <<_ACEOF
9240 #define CRAY_STACKSEG_END $ac_func
9249 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9250 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9251 if test "${ac_cv_c_stack_direction+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 if test "$cross_compiling" = yes; then
9255 ac_cv_c_stack_direction=0
9257 cat >conftest.$ac_ext <<_ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 $ac_includes_default
9265 find_stack_direction ()
9267 static char *addr = 0;
9272 return find_stack_direction ();
9275 return (&dummy > addr) ? 1 : -1;
9281 return find_stack_direction () < 0;
9284 rm -f conftest$ac_exeext
9285 if { (ac_try="$ac_link"
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_link") 2>&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9295 { (case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_try") 2>&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_c_stack_direction=1
9306 echo "$as_me: program exited with status $ac_status" >&5
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9311 ac_cv_c_stack_direction=-1
9313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9318 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9319 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9321 cat >>confdefs.h <<_ACEOF
9322 #define STACK_DIRECTION $ac_cv_c_stack_direction
9330 for ac_header in stdlib.h unistd.h
9332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 ac_res=`eval echo '${'$as_ac_Header'}'`
9340 { echo "$as_me:$LINENO: result: $ac_res" >&5
9341 echo "${ECHO_T}$ac_res" >&6; }
9343 # Is the header compilable?
9344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9346 cat >conftest.$ac_ext <<_ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 $ac_includes_default
9353 #include <$ac_header>
9355 rm -f conftest.$ac_objext
9356 if { (ac_try="$ac_compile"
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_compile") 2>conftest.er1
9364 grep -v '^ *+' conftest.er1 >conftest.err
9366 cat conftest.err >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } && {
9369 test -z "$ac_c_werror_flag" ||
9370 test ! -s conftest.err
9371 } && test -s conftest.$ac_objext; then
9372 ac_header_compiler=yes
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 ac_header_compiler=no
9380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9382 echo "${ECHO_T}$ac_header_compiler" >&6; }
9384 # Is the header present?
9385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9387 cat >conftest.$ac_ext <<_ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9393 #include <$ac_header>
9395 if { (ac_try="$ac_cpp conftest.$ac_ext"
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9403 grep -v '^ *+' conftest.er1 >conftest.err
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } >/dev/null && {
9408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9411 ac_header_preproc=yes
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_header_preproc=no
9419 rm -f conftest.err conftest.$ac_ext
9420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9421 echo "${ECHO_T}$ac_header_preproc" >&6; }
9423 # So? What about this header?
9424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9430 ac_header_preproc=yes
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 eval "$as_ac_Header=\$ac_header_preproc"
9455 ac_res=`eval echo '${'$as_ac_Header'}'`
9456 { echo "$as_me:$LINENO: result: $ac_res" >&5
9457 echo "${ECHO_T}$ac_res" >&6; }
9460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9461 cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9470 for ac_func in getpagesize
9472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 cat >conftest.$ac_ext <<_ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9486 #define $ac_func innocuous_$ac_func
9488 /* System header to define __stub macros and hopefully few prototypes,
9489 which can conflict with char $ac_func (); below.
9490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9491 <limits.h> exists even on freestanding compilers. */
9494 # include <limits.h>
9496 # include <assert.h>
9501 /* Override any GCC internal prototype to avoid an error.
9502 Use char because int might match the return type of a GCC
9503 builtin and then its argument prototype would still apply. */
9508 /* The GNU C library defines this for functions which it implements
9509 to always fail with ENOSYS. Some functions are actually named
9510 something starting with __ and the normal name is an alias. */
9511 #if defined __stub_$ac_func || defined __stub___$ac_func
9523 rm -f conftest.$ac_objext conftest$ac_exeext
9524 if { (ac_try="$ac_link"
9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527 *) ac_try_echo=$ac_try;;
9529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9530 (eval "$ac_link") 2>conftest.er1
9532 grep -v '^ *+' conftest.er1 >conftest.err
9534 cat conftest.err >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } && {
9537 test -z "$ac_c_werror_flag" ||
9538 test ! -s conftest.err
9539 } && test -s conftest$ac_exeext &&
9540 $as_test_x conftest$ac_exeext; then
9541 eval "$as_ac_var=yes"
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 eval "$as_ac_var=no"
9549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9550 conftest$ac_exeext conftest.$ac_ext
9552 ac_res=`eval echo '${'$as_ac_var'}'`
9553 { echo "$as_me:$LINENO: result: $ac_res" >&5
9554 echo "${ECHO_T}$ac_res" >&6; }
9555 if test `eval echo '${'$as_ac_var'}'` = yes; then
9556 cat >>confdefs.h <<_ACEOF
9557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9563 { echo "$as_me:$LINENO: checking for working mmap" >&5
9564 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9565 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 if test "$cross_compiling" = yes; then
9569 ac_cv_func_mmap_fixed_mapped=no
9571 cat >conftest.$ac_ext <<_ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 $ac_includes_default
9578 /* malloc might have been renamed as rpl_malloc. */
9581 /* Thanks to Mike Haertel and Jim Avera for this test.
9582 Here is a matrix of mmap possibilities:
9583 mmap private not fixed
9584 mmap private fixed at somewhere currently unmapped
9585 mmap private fixed at somewhere already mapped
9586 mmap shared not fixed
9587 mmap shared fixed at somewhere currently unmapped
9588 mmap shared fixed at somewhere already mapped
9589 For private mappings, we should verify that changes cannot be read()
9590 back from the file, nor mmap's back from the file at a different
9591 address. (There have been systems where private was not correctly
9592 implemented like the infamous i386 svr4.0, and systems where the
9593 VM page cache was not coherent with the file system buffer cache
9594 like early versions of FreeBSD and possibly contemporary NetBSD.)
9595 For shared mappings, we should conversely verify that changes get
9596 propagated back to all the places they're supposed to be.
9598 Grep wants private fixed already mapped.
9599 The main things grep needs to know about mmap are:
9600 * does it exist and is it safe to write into the mmap'd area
9601 * how to use it (BSD variants) */
9604 #include <sys/mman.h>
9606 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9610 /* This mess was copied from the GNU getpagesize.h. */
9611 #ifndef HAVE_GETPAGESIZE
9612 /* Assume that all systems that can run configure have sys/param.h. */
9613 # ifndef HAVE_SYS_PARAM_H
9614 # define HAVE_SYS_PARAM_H 1
9617 # ifdef _SC_PAGESIZE
9618 # define getpagesize() sysconf(_SC_PAGESIZE)
9619 # else /* no _SC_PAGESIZE */
9620 # ifdef HAVE_SYS_PARAM_H
9621 # include <sys/param.h>
9622 # ifdef EXEC_PAGESIZE
9623 # define getpagesize() EXEC_PAGESIZE
9624 # else /* no EXEC_PAGESIZE */
9626 # define getpagesize() NBPG * CLSIZE
9629 # endif /* no CLSIZE */
9630 # else /* no NBPG */
9632 # define getpagesize() NBPC
9633 # else /* no NBPC */
9635 # define getpagesize() PAGESIZE
9636 # endif /* PAGESIZE */
9637 # endif /* no NBPC */
9638 # endif /* no NBPG */
9639 # endif /* no EXEC_PAGESIZE */
9640 # else /* no HAVE_SYS_PARAM_H */
9641 # define getpagesize() 8192 /* punt totally */
9642 # endif /* no HAVE_SYS_PARAM_H */
9643 # endif /* no _SC_PAGESIZE */
9645 #endif /* no HAVE_GETPAGESIZE */
9650 char *data, *data2, *data3;
9654 pagesize = getpagesize ();
9656 /* First, make a file with some known garbage in it. */
9657 data = (char *) malloc (pagesize);
9660 for (i = 0; i < pagesize; ++i)
9661 *(data + i) = rand ();
9663 fd = creat ("conftest.mmap", 0600);
9666 if (write (fd, data, pagesize) != pagesize)
9670 /* Next, try to mmap the file at a fixed address which already has
9671 something else allocated at it. If we can, also make sure that
9672 we see the same garbage. */
9673 fd = open ("conftest.mmap", O_RDWR);
9676 data2 = (char *) malloc (2 * pagesize);
9679 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9680 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9681 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9683 for (i = 0; i < pagesize; ++i)
9684 if (*(data + i) != *(data2 + i))
9687 /* Finally, make sure that changes to the mapped area do not
9688 percolate back to the file as seen by read(). (This is a bug on
9689 some variants of i386 svr4.0.) */
9690 for (i = 0; i < pagesize; ++i)
9691 *(data2 + i) = *(data2 + i) + 1;
9692 data3 = (char *) malloc (pagesize);
9695 if (read (fd, data3, pagesize) != pagesize)
9697 for (i = 0; i < pagesize; ++i)
9698 if (*(data + i) != *(data3 + i))
9704 rm -f conftest$ac_exeext
9705 if { (ac_try="$ac_link"
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_link") 2>&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9715 { (case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_try") 2>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 ac_cv_func_mmap_fixed_mapped=yes
9726 echo "$as_me: program exited with status $ac_status" >&5
9727 echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_func_mmap_fixed_mapped=no
9733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9738 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9739 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9740 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9742 cat >>confdefs.h <<\_ACEOF
9750 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9751 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9752 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9762 #include <features.h>
9763 #ifdef __GNU_LIBRARY__
9764 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9771 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9772 ac_cv_gnu_library_2_1=yes
9774 ac_cv_gnu_library_2_1=no
9781 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9782 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9784 GLIBC21="$ac_cv_gnu_library_2_1"
9789 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9790 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9791 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 if test "$cross_compiling" = yes; then
9797 # Guess based on the CPU.
9799 alpha* | i3456786 | m68k | s390*)
9800 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9802 gt_cv_int_divbyzero_sigfpe="guessing no";;
9806 cat >conftest.$ac_ext <<_ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9818 sigfpe_handler (int sig)
9820 sigfpe_handler (sig) int sig;
9823 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9824 exit (sig != SIGFPE);
9834 signal (SIGFPE, sigfpe_handler);
9835 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9836 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9837 signal (SIGTRAP, sigfpe_handler);
9839 /* Linux/SPARC yields signal SIGILL. */
9840 #if defined (__sparc__) && defined (__linux__)
9841 signal (SIGILL, sigfpe_handler);
9850 rm -f conftest$ac_exeext
9851 if { (ac_try="$ac_link"
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_link") 2>&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9861 { (case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_try") 2>&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 gt_cv_int_divbyzero_sigfpe=yes
9872 echo "$as_me: program exited with status $ac_status" >&5
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9877 gt_cv_int_divbyzero_sigfpe=no
9879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9885 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9886 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9887 case "$gt_cv_int_divbyzero_sigfpe" in
9892 cat >>confdefs.h <<_ACEOF
9893 #define INTDIV0_RAISES_SIGFPE $value
9898 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9899 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9900 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 unsigned long long ull = 1ULL; int i = 63;
9913 unsigned long long ullmax = (unsigned long long) -1;
9914 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (ac_try="$ac_link"
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_link") 2>conftest.er1
9928 grep -v '^ *+' conftest.er1 >conftest.err
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest$ac_exeext &&
9936 $as_test_x conftest$ac_exeext; then
9937 ac_cv_type_unsigned_long_long=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_type_unsigned_long_long=no
9945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9946 conftest$ac_exeext conftest.$ac_ext
9948 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9949 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9950 if test $ac_cv_type_unsigned_long_long = yes; then
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_UNSIGNED_LONG_LONG 1
9961 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9963 test $ac_cv_type_unsigned_long_long = yes \
9964 && ac_type='unsigned long long' \
9965 || ac_type='unsigned long'
9967 cat >>confdefs.h <<_ACEOF
9968 #define uintmax_t $ac_type
9973 cat >>confdefs.h <<\_ACEOF
9974 #define HAVE_UINTMAX_T 1
9980 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9981 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9982 if test "${gt_cv_header_inttypes_h+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 cat >conftest.$ac_ext <<_ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 #include <sys/types.h>
9993 #include <inttypes.h>
10002 rm -f conftest.$ac_objext
10003 if { (ac_try="$ac_compile"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_compile") 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest.$ac_objext; then
10019 gt_cv_header_inttypes_h=yes
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10024 gt_cv_header_inttypes_h=no
10027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10031 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10032 if test $gt_cv_header_inttypes_h = yes; then
10034 cat >>confdefs.h <<_ACEOF
10035 #define HAVE_INTTYPES_H 1
10042 if test $gt_cv_header_inttypes_h = yes; then
10043 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10044 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10045 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 cat >conftest.$ac_ext <<_ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10055 #include <inttypes.h>
10068 rm -f conftest.$ac_objext
10069 if { (ac_try="$ac_compile"
10070 case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_compile") 2>conftest.er1
10077 grep -v '^ *+' conftest.er1 >conftest.err
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } && {
10082 test -z "$ac_c_werror_flag" ||
10083 test ! -s conftest.err
10084 } && test -s conftest.$ac_objext; then
10085 gt_cv_inttypes_pri_broken=no
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 gt_cv_inttypes_pri_broken=yes
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10097 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10099 if test "$gt_cv_inttypes_pri_broken" = yes; then
10101 cat >>confdefs.h <<_ACEOF
10102 #define PRI_MACROS_BROKEN 1
10109 for ac_header in stdint.h
10111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 ac_res=`eval echo '${'$as_ac_Header'}'`
10119 { echo "$as_me:$LINENO: result: $ac_res" >&5
10120 echo "${ECHO_T}$ac_res" >&6; }
10122 # Is the header compilable?
10123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 $ac_includes_default
10132 #include <$ac_header>
10134 rm -f conftest.$ac_objext
10135 if { (ac_try="$ac_compile"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_compile") 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest.$ac_objext; then
10151 ac_header_compiler=yes
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 ac_header_compiler=no
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10161 echo "${ECHO_T}$ac_header_compiler" >&6; }
10163 # Is the header present?
10164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 #include <$ac_header>
10174 if { (ac_try="$ac_cpp conftest.$ac_ext"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10182 grep -v '^ *+' conftest.er1 >conftest.err
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } >/dev/null && {
10187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10188 test ! -s conftest.err
10190 ac_header_preproc=yes
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10195 ac_header_preproc=no
10198 rm -f conftest.err conftest.$ac_ext
10199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10200 echo "${ECHO_T}$ac_header_preproc" >&6; }
10202 # So? What about this header?
10203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10209 ac_header_preproc=yes
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 eval "$as_ac_Header=\$ac_header_preproc"
10234 ac_res=`eval echo '${'$as_ac_Header'}'`
10235 { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10240 cat >>confdefs.h <<_ACEOF
10241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10248 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10249 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10251 cat >conftest.$ac_ext <<_ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10258 #include <limits.h>
10260 #include <stdint.h>
10267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10268 $EGREP "Found it" >/dev/null 2>&1; then
10273 if test -z "$result"; then
10274 if test "$cross_compiling" = yes; then
10275 # Depending upon the size, compute the lo and hi bounds.
10276 cat >conftest.$ac_ext <<_ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 #include <stddef.h>
10286 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10293 rm -f conftest.$ac_objext
10294 if { (ac_try="$ac_compile"
10295 case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_compile") 2>conftest.er1
10302 grep -v '^ *+' conftest.er1 >conftest.err
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && {
10307 test -z "$ac_c_werror_flag" ||
10308 test ! -s conftest.err
10309 } && test -s conftest.$ac_objext; then
10312 cat >conftest.$ac_ext <<_ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10318 #include <stddef.h>
10322 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10329 rm -f conftest.$ac_objext
10330 if { (ac_try="$ac_compile"
10331 case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_compile") 2>conftest.er1
10338 grep -v '^ *+' conftest.er1 >conftest.err
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && {
10343 test -z "$ac_c_werror_flag" ||
10344 test ! -s conftest.err
10345 } && test -s conftest.$ac_objext; then
10346 ac_hi=$ac_mid; break
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ac_lo=`expr $ac_mid + 1`
10352 if test $ac_lo -le $ac_mid; then
10356 ac_mid=`expr 2 '*' $ac_mid + 1`
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 #include <stddef.h>
10375 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10382 rm -f conftest.$ac_objext
10383 if { (ac_try="$ac_compile"
10384 case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_compile") 2>conftest.er1
10391 grep -v '^ *+' conftest.er1 >conftest.err
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && {
10396 test -z "$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10398 } && test -s conftest.$ac_objext; then
10401 cat >conftest.$ac_ext <<_ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 #include <stddef.h>
10411 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10418 rm -f conftest.$ac_objext
10419 if { (ac_try="$ac_compile"
10420 case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_compile") 2>conftest.er1
10427 grep -v '^ *+' conftest.er1 >conftest.err
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && {
10432 test -z "$ac_c_werror_flag" ||
10433 test ! -s conftest.err
10434 } && test -s conftest.$ac_objext; then
10435 ac_lo=$ac_mid; break
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 ac_hi=`expr '(' $ac_mid ')' - 1`
10441 if test $ac_mid -le $ac_hi; then
10445 ac_mid=`expr 2 '*' $ac_mid`
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10461 # Binary search between lo and hi bounds.
10462 while test "x$ac_lo" != "x$ac_hi"; do
10463 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10464 cat >conftest.$ac_ext <<_ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10470 #include <stddef.h>
10474 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10481 rm -f conftest.$ac_objext
10482 if { (ac_try="$ac_compile"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_compile") 2>conftest.er1
10490 grep -v '^ *+' conftest.er1 >conftest.err
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest.$ac_objext; then
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 ac_lo=`expr '(' $ac_mid ')' + 1`
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10509 ?*) res_hi=$ac_lo;;
10513 cat >conftest.$ac_ext <<_ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519 #include <stddef.h>
10520 static long int longval () { return ~(size_t)0 / 10; }
10521 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10523 #include <stdlib.h>
10528 FILE *f = fopen ("conftest.val", "w");
10531 if ((~(size_t)0 / 10) < 0)
10533 long int i = longval ();
10534 if (i != (~(size_t)0 / 10))
10536 fprintf (f, "%ld\n", i);
10540 unsigned long int i = ulongval ();
10541 if (i != (~(size_t)0 / 10))
10543 fprintf (f, "%lu\n", i);
10545 return ferror (f) || fclose (f) != 0;
10551 rm -f conftest$ac_exeext
10552 if { (ac_try="$ac_link"
10553 case "(($ac_try" in
10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555 *) ac_try_echo=$ac_try;;
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558 (eval "$ac_link") 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10562 { (case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_try") 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; }; then
10571 res_hi=`cat conftest.val`
10573 echo "$as_me: program exited with status $ac_status" >&5
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 ( exit $ac_status )
10580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10584 if test "$cross_compiling" = yes; then
10585 # Depending upon the size, compute the lo and hi bounds.
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 #include <stddef.h>
10596 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10603 rm -f conftest.$ac_objext
10604 if { (ac_try="$ac_compile"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_compile") 2>conftest.er1
10612 grep -v '^ *+' conftest.er1 >conftest.err
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && {
10617 test -z "$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 } && test -s conftest.$ac_objext; then
10622 cat >conftest.$ac_ext <<_ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10628 #include <stddef.h>
10632 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10639 rm -f conftest.$ac_objext
10640 if { (ac_try="$ac_compile"
10641 case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_compile") 2>conftest.er1
10648 grep -v '^ *+' conftest.er1 >conftest.err
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } && {
10653 test -z "$ac_c_werror_flag" ||
10654 test ! -s conftest.err
10655 } && test -s conftest.$ac_objext; then
10656 ac_hi=$ac_mid; break
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_lo=`expr $ac_mid + 1`
10662 if test $ac_lo -le $ac_mid; then
10666 ac_mid=`expr 2 '*' $ac_mid + 1`
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 cat >conftest.$ac_ext <<_ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 #include <stddef.h>
10685 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10692 rm -f conftest.$ac_objext
10693 if { (ac_try="$ac_compile"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_compile") 2>conftest.er1
10701 grep -v '^ *+' conftest.er1 >conftest.err
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest.$ac_objext; then
10711 cat >conftest.$ac_ext <<_ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <stddef.h>
10721 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_compile") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest.$ac_objext; then
10745 ac_lo=$ac_mid; break
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ac_hi=`expr '(' $ac_mid ')' - 1`
10751 if test $ac_mid -le $ac_hi; then
10755 ac_mid=`expr 2 '*' $ac_mid`
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771 # Binary search between lo and hi bounds.
10772 while test "x$ac_lo" != "x$ac_hi"; do
10773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10774 cat >conftest.$ac_ext <<_ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 #include <stddef.h>
10784 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10791 rm -f conftest.$ac_objext
10792 if { (ac_try="$ac_compile"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_compile") 2>conftest.er1
10800 grep -v '^ *+' conftest.er1 >conftest.err
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } && {
10805 test -z "$ac_c_werror_flag" ||
10806 test ! -s conftest.err
10807 } && test -s conftest.$ac_objext; then
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_lo=`expr '(' $ac_mid ')' + 1`
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 ?*) res_lo=$ac_lo;;
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 #include <stddef.h>
10830 static long int longval () { return ~(size_t)0 % 10; }
10831 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10833 #include <stdlib.h>
10838 FILE *f = fopen ("conftest.val", "w");
10841 if ((~(size_t)0 % 10) < 0)
10843 long int i = longval ();
10844 if (i != (~(size_t)0 % 10))
10846 fprintf (f, "%ld\n", i);
10850 unsigned long int i = ulongval ();
10851 if (i != (~(size_t)0 % 10))
10853 fprintf (f, "%lu\n", i);
10855 return ferror (f) || fclose (f) != 0;
10861 rm -f conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_link") 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10872 { (case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_try") 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 res_lo=`cat conftest.val`
10883 echo "$as_me: program exited with status $ac_status" >&5
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10887 ( exit $ac_status )
10890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10894 if test "$cross_compiling" = yes; then
10895 # Depending upon the size, compute the lo and hi bounds.
10896 cat >conftest.$ac_ext <<_ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 #include <stddef.h>
10906 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10913 rm -f conftest.$ac_objext
10914 if { (ac_try="$ac_compile"
10915 case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_compile") 2>conftest.er1
10922 grep -v '^ *+' conftest.er1 >conftest.err
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && {
10927 test -z "$ac_c_werror_flag" ||
10928 test ! -s conftest.err
10929 } && test -s conftest.$ac_objext; then
10932 cat >conftest.$ac_ext <<_ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 #include <stddef.h>
10942 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10949 rm -f conftest.$ac_objext
10950 if { (ac_try="$ac_compile"
10951 case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_compile") 2>conftest.er1
10958 grep -v '^ *+' conftest.er1 >conftest.err
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } && {
10963 test -z "$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 } && test -s conftest.$ac_objext; then
10966 ac_hi=$ac_mid; break
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_lo=`expr $ac_mid + 1`
10972 if test $ac_lo -le $ac_mid; then
10976 ac_mid=`expr 2 '*' $ac_mid + 1`
10979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 cat >conftest.$ac_ext <<_ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991 #include <stddef.h>
10995 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11002 rm -f conftest.$ac_objext
11003 if { (ac_try="$ac_compile"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_compile") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && {
11016 test -z "$ac_c_werror_flag" ||
11017 test ! -s conftest.err
11018 } && test -s conftest.$ac_objext; then
11021 cat >conftest.$ac_ext <<_ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 #include <stddef.h>
11031 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11038 rm -f conftest.$ac_objext
11039 if { (ac_try="$ac_compile"
11040 case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_compile") 2>conftest.er1
11047 grep -v '^ *+' conftest.er1 >conftest.err
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && {
11052 test -z "$ac_c_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest.$ac_objext; then
11055 ac_lo=$ac_mid; break
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 ac_hi=`expr '(' $ac_mid ')' - 1`
11061 if test $ac_mid -le $ac_hi; then
11065 ac_mid=`expr 2 '*' $ac_mid`
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 # Binary search between lo and hi bounds.
11082 while test "x$ac_lo" != "x$ac_hi"; do
11083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11084 cat >conftest.$ac_ext <<_ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 #include <stddef.h>
11094 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11101 rm -f conftest.$ac_objext
11102 if { (ac_try="$ac_compile"
11103 case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_compile") 2>conftest.er1
11110 grep -v '^ *+' conftest.er1 >conftest.err
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest.$ac_objext; then
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ac_lo=`expr '(' $ac_mid ')' + 1`
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11129 ?*) fits_in_uint=$ac_lo;;
11133 cat >conftest.$ac_ext <<_ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 #include <stddef.h>
11140 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11141 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11143 #include <stdlib.h>
11148 FILE *f = fopen ("conftest.val", "w");
11151 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11153 long int i = longval ();
11154 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11156 fprintf (f, "%ld\n", i);
11160 unsigned long int i = ulongval ();
11161 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11163 fprintf (f, "%lu\n", i);
11165 return ferror (f) || fclose (f) != 0;
11171 rm -f conftest$ac_exeext
11172 if { (ac_try="$ac_link"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_link") 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 fits_in_uint=`cat conftest.val`
11193 echo "$as_me: program exited with status $ac_status" >&5
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ( exit $ac_status )
11200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11204 if test "$fits_in_uint" = 1; then
11205 cat >conftest.$ac_ext <<_ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <stddef.h>
11213 extern unsigned long foo;
11223 rm -f conftest.$ac_objext
11224 if { (ac_try="$ac_compile"
11225 case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_compile") 2>conftest.er1
11232 grep -v '^ *+' conftest.er1 >conftest.err
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest.$ac_objext; then
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11250 if test -z "$result"; then
11251 if test "$fits_in_uint" = 1; then
11252 result="$res_hi$res_lo"U
11254 result="$res_hi$res_lo"UL
11257 result='~(size_t)0'
11260 { echo "$as_me:$LINENO: result: $result" >&5
11261 echo "${ECHO_T}$result" >&6; }
11262 if test "$result" != yes; then
11264 cat >>confdefs.h <<_ACEOF
11265 #define SIZE_MAX $result
11274 for ac_header in stdint.h
11276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 ac_res=`eval echo '${'$as_ac_Header'}'`
11284 { echo "$as_me:$LINENO: result: $ac_res" >&5
11285 echo "${ECHO_T}$ac_res" >&6; }
11287 # Is the header compilable?
11288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11290 cat >conftest.$ac_ext <<_ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 $ac_includes_default
11297 #include <$ac_header>
11299 rm -f conftest.$ac_objext
11300 if { (ac_try="$ac_compile"
11301 case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_compile") 2>conftest.er1
11308 grep -v '^ *+' conftest.er1 >conftest.err
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && {
11313 test -z "$ac_c_werror_flag" ||
11314 test ! -s conftest.err
11315 } && test -s conftest.$ac_objext; then
11316 ac_header_compiler=yes
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 ac_header_compiler=no
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11326 echo "${ECHO_T}$ac_header_compiler" >&6; }
11328 # Is the header present?
11329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11331 cat >conftest.$ac_ext <<_ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 #include <$ac_header>
11339 if { (ac_try="$ac_cpp conftest.$ac_ext"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11347 grep -v '^ *+' conftest.er1 >conftest.err
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } >/dev/null && {
11352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11355 ac_header_preproc=yes
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_header_preproc=no
11363 rm -f conftest.err conftest.$ac_ext
11364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11365 echo "${ECHO_T}$ac_header_preproc" >&6; }
11367 # So? What about this header?
11368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11374 ac_header_preproc=yes
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 eval "$as_ac_Header=\$ac_header_preproc"
11399 ac_res=`eval echo '${'$as_ac_Header'}'`
11400 { echo "$as_me:$LINENO: result: $ac_res" >&5
11401 echo "${ECHO_T}$ac_res" >&6; }
11404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11405 cat >>confdefs.h <<_ACEOF
11406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11420 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11421 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11422 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 $ac_includes_default
11432 typedef ptrdiff_t ac__type_new_;
11436 if ((ac__type_new_ *) 0)
11438 if (sizeof (ac__type_new_))
11444 rm -f conftest.$ac_objext
11445 if { (ac_try="$ac_compile"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_compile") 2>conftest.er1
11453 grep -v '^ *+' conftest.er1 >conftest.err
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && {
11458 test -z "$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 } && test -s conftest.$ac_objext; then
11461 ac_cv_type_ptrdiff_t=yes
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 ac_cv_type_ptrdiff_t=no
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11472 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11473 if test $ac_cv_type_ptrdiff_t = yes; then
11477 cat >>confdefs.h <<\_ACEOF
11478 #define ptrdiff_t long
11494 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11495 stdlib.h string.h unistd.h sys/param.h
11497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11508 # Is the header compilable?
11509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <$ac_header>
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_compile") 2>conftest.er1
11529 grep -v '^ *+' conftest.er1 >conftest.err
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } && {
11534 test -z "$ac_c_werror_flag" ||
11535 test ! -s conftest.err
11536 } && test -s conftest.$ac_objext; then
11537 ac_header_compiler=yes
11539 echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11542 ac_header_compiler=no
11545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11547 echo "${ECHO_T}$ac_header_compiler" >&6; }
11549 # Is the header present?
11550 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11552 cat >conftest.$ac_ext <<_ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11558 #include <$ac_header>
11560 if { (ac_try="$ac_cpp conftest.$ac_ext"
11561 case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11568 grep -v '^ *+' conftest.er1 >conftest.err
11570 cat conftest.err >&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } >/dev/null && {
11573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11574 test ! -s conftest.err
11576 ac_header_preproc=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_header_preproc=no
11584 rm -f conftest.err conftest.$ac_ext
11585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11586 echo "${ECHO_T}$ac_header_preproc" >&6; }
11588 # So? What about this header?
11589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11595 ac_header_preproc=yes
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 eval "$as_ac_Header=\$ac_header_preproc"
11620 ac_res=`eval echo '${'$as_ac_Header'}'`
11621 { echo "$as_me:$LINENO: result: $ac_res" >&5
11622 echo "${ECHO_T}$ac_res" >&6; }
11625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11626 cat >>confdefs.h <<_ACEOF
11627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11657 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11658 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11659 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 cat >conftest.$ac_ext <<_ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11676 #define $ac_func innocuous_$ac_func
11678 /* System header to define __stub macros and hopefully few prototypes,
11679 which can conflict with char $ac_func (); below.
11680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11681 <limits.h> exists even on freestanding compilers. */
11684 # include <limits.h>
11686 # include <assert.h>
11691 /* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11698 /* The GNU C library defines this for functions which it implements
11699 to always fail with ENOSYS. Some functions are actually named
11700 something starting with __ and the normal name is an alias. */
11701 #if defined __stub_$ac_func || defined __stub___$ac_func
11708 return $ac_func ();
11713 rm -f conftest.$ac_objext conftest$ac_exeext
11714 if { (ac_try="$ac_link"
11715 case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_link") 2>conftest.er1
11722 grep -v '^ *+' conftest.er1 >conftest.err
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest$ac_exeext &&
11730 $as_test_x conftest$ac_exeext; then
11731 eval "$as_ac_var=yes"
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 eval "$as_ac_var=no"
11739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11740 conftest$ac_exeext conftest.$ac_ext
11742 ac_res=`eval echo '${'$as_ac_var'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11745 if test `eval echo '${'$as_ac_var'}'` = yes; then
11746 cat >>confdefs.h <<_ACEOF
11747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11756 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11757 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 cat >conftest.$ac_ext <<_ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11772 char *p = (char *) _snprintf;
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11788 grep -v '^ *+' conftest.er1 >conftest.err
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && {
11793 test -z "$ac_c_werror_flag" ||
11794 test ! -s conftest.err
11795 } && test -s conftest.$ac_objext; then
11796 ac_cv_have_decl__snprintf=yes
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 ac_cv_have_decl__snprintf=no
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11807 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11808 if test $ac_cv_have_decl__snprintf = yes; then
11814 cat >>confdefs.h <<_ACEOF
11815 #define HAVE_DECL__SNPRINTF $gt_value
11820 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11821 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11822 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 cat >conftest.$ac_ext <<_ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11837 char *p = (char *) _snwprintf;
11844 rm -f conftest.$ac_objext
11845 if { (ac_try="$ac_compile"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_compile") 2>conftest.er1
11853 grep -v '^ *+' conftest.er1 >conftest.err
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest.$ac_objext; then
11861 ac_cv_have_decl__snwprintf=yes
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_cv_have_decl__snwprintf=no
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11872 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11873 if test $ac_cv_have_decl__snwprintf = yes; then
11879 cat >>confdefs.h <<_ACEOF
11880 #define HAVE_DECL__SNWPRINTF $gt_value
11886 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11887 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11888 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11902 #ifndef feof_unlocked
11903 char *p = (char *) feof_unlocked;
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11927 ac_cv_have_decl_feof_unlocked=yes
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_cv_have_decl_feof_unlocked=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11938 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11939 if test $ac_cv_have_decl_feof_unlocked = yes; then
11945 cat >>confdefs.h <<_ACEOF
11946 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11951 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11952 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11953 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 cat >conftest.$ac_ext <<_ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11967 #ifndef fgets_unlocked
11968 char *p = (char *) fgets_unlocked;
11975 rm -f conftest.$ac_objext
11976 if { (ac_try="$ac_compile"
11977 case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_compile") 2>conftest.er1
11984 grep -v '^ *+' conftest.er1 >conftest.err
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } && {
11989 test -z "$ac_c_werror_flag" ||
11990 test ! -s conftest.err
11991 } && test -s conftest.$ac_objext; then
11992 ac_cv_have_decl_fgets_unlocked=yes
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 ac_cv_have_decl_fgets_unlocked=no
12000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12003 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12004 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12010 cat >>confdefs.h <<_ACEOF
12011 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12016 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12017 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12018 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 cat >conftest.$ac_ext <<_ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12032 #ifndef getc_unlocked
12033 char *p = (char *) getc_unlocked;
12040 rm -f conftest.$ac_objext
12041 if { (ac_try="$ac_compile"
12042 case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_compile") 2>conftest.er1
12049 grep -v '^ *+' conftest.er1 >conftest.err
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && {
12054 test -z "$ac_c_werror_flag" ||
12055 test ! -s conftest.err
12056 } && test -s conftest.$ac_objext; then
12057 ac_cv_have_decl_getc_unlocked=yes
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 ac_cv_have_decl_getc_unlocked=no
12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12068 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12069 if test $ac_cv_have_decl_getc_unlocked = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12081 case $gt_cv_func_printf_posix in
12082 *yes) HAVE_POSIX_PRINTF=1 ;;
12083 *) HAVE_POSIX_PRINTF=0 ;;
12086 if test "$ac_cv_func_asprintf" = yes; then
12092 if test "$ac_cv_func_snprintf" = yes; then
12098 if test "$ac_cv_func_wprintf" = yes; then
12110 am_save_CPPFLAGS="$CPPFLAGS"
12112 for element in $INCICONV; do
12114 for x in $CPPFLAGS; do
12116 acl_save_prefix="$prefix"
12117 prefix="$acl_final_prefix"
12118 acl_save_exec_prefix="$exec_prefix"
12119 exec_prefix="$acl_final_exec_prefix"
12121 exec_prefix="$acl_save_exec_prefix"
12122 prefix="$acl_save_prefix"
12124 if test "X$x" = "X$element"; then
12129 if test -z "$haveit"; then
12130 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12135 { echo "$as_me:$LINENO: checking for iconv" >&5
12136 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12137 if test "${am_cv_func_iconv+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 am_cv_func_iconv="no, consider installing GNU libiconv"
12143 cat >conftest.$ac_ext <<_ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149 #include <stdlib.h>
12154 iconv_t cd = iconv_open("","");
12155 iconv(cd,NULL,NULL,NULL,NULL);
12161 rm -f conftest.$ac_objext conftest$ac_exeext
12162 if { (ac_try="$ac_link"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_link") 2>conftest.er1
12170 grep -v '^ *+' conftest.er1 >conftest.err
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } && {
12175 test -z "$ac_c_werror_flag" ||
12176 test ! -s conftest.err
12177 } && test -s conftest$ac_exeext &&
12178 $as_test_x conftest$ac_exeext; then
12179 am_cv_func_iconv=yes
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12188 conftest$ac_exeext conftest.$ac_ext
12189 if test "$am_cv_func_iconv" != yes; then
12190 am_save_LIBS="$LIBS"
12191 LIBS="$LIBS $LIBICONV"
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 #include <stdlib.h>
12203 iconv_t cd = iconv_open("","");
12204 iconv(cd,NULL,NULL,NULL,NULL);
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_link") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest$ac_exeext &&
12227 $as_test_x conftest$ac_exeext; then
12228 am_cv_lib_iconv=yes
12229 am_cv_func_iconv=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS="$am_save_LIBS"
12243 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12244 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12245 if test "$am_cv_func_iconv" = yes; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define HAVE_ICONV 1
12252 if test "$am_cv_lib_iconv" = yes; then
12253 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12254 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12255 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12256 echo "${ECHO_T}$LIBICONV" >&6; }
12258 CPPFLAGS="$am_save_CPPFLAGS"
12265 if test "$am_cv_func_iconv" = yes; then
12266 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12267 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12268 if test "${am_cv_proto_iconv+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 cat >conftest.$ac_ext <<_ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12279 #include <stdlib.h>
12285 #if defined(__STDC__) || defined(__cplusplus)
12286 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12299 rm -f conftest.$ac_objext
12300 if { (ac_try="$ac_compile"
12301 case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_compile") 2>conftest.er1
12308 grep -v '^ *+' conftest.er1 >conftest.err
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } && {
12313 test -z "$ac_c_werror_flag" ||
12314 test ! -s conftest.err
12315 } && test -s conftest.$ac_objext; then
12316 am_cv_proto_iconv_arg1=""
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12321 am_cv_proto_iconv_arg1="const"
12324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325 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);"
12328 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12329 { echo "$as_me:$LINENO: result: ${ac_t:-
12330 }$am_cv_proto_iconv" >&5
12331 echo "${ECHO_T}${ac_t:-
12332 }$am_cv_proto_iconv" >&6; }
12334 cat >>confdefs.h <<_ACEOF
12335 #define ICONV_CONST $am_cv_proto_iconv_arg1
12341 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12342 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12343 if test "${am_cv_langinfo_codeset+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include <langinfo.h>
12356 char* cs = nl_langinfo(CODESET);
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (ac_try="$ac_link"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_link") 2>conftest.er1
12370 grep -v '^ *+' conftest.er1 >conftest.err
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest$ac_exeext &&
12378 $as_test_x conftest$ac_exeext; then
12379 am_cv_langinfo_codeset=yes
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 am_cv_langinfo_codeset=no
12387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12388 conftest$ac_exeext conftest.$ac_ext
12391 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12392 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12393 if test $am_cv_langinfo_codeset = yes; then
12395 cat >>confdefs.h <<\_ACEOF
12396 #define HAVE_LANGINFO_CODESET 1
12401 if test $ac_cv_header_locale_h = yes; then
12403 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12404 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12405 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 #include <locale.h>
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_link") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest$ac_exeext &&
12440 $as_test_x conftest$ac_exeext; then
12441 gt_cv_val_LC_MESSAGES=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 gt_cv_val_LC_MESSAGES=no
12449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12450 conftest$ac_exeext conftest.$ac_ext
12452 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12453 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12454 if test $gt_cv_val_LC_MESSAGES = yes; then
12456 cat >>confdefs.h <<\_ACEOF
12457 #define HAVE_LC_MESSAGES 1
12464 if test -n "$INTL_MACOSX_LIBS"; then
12465 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12468 for ac_prog in bison
12470 # Extract the first word of "$ac_prog", so it can be a program name with args.
12471 set dummy $ac_prog; ac_word=$2
12472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12474 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 if test -n "$INTLBISON"; then
12478 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487 ac_cv_prog_INTLBISON="$ac_prog"
12488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 INTLBISON=$ac_cv_prog_INTLBISON
12498 if test -n "$INTLBISON"; then
12499 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12500 echo "${ECHO_T}$INTLBISON" >&6; }
12502 { echo "$as_me:$LINENO: result: no" >&5
12503 echo "${ECHO_T}no" >&6; }
12507 test -n "$INTLBISON" && break
12510 if test -z "$INTLBISON"; then
12513 { echo "$as_me:$LINENO: checking version of bison" >&5
12514 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12515 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12516 case $ac_prog_version in
12517 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12518 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12519 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12520 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12522 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12523 echo "${ECHO_T}$ac_prog_version" >&6; }
12525 if test $ac_verc_fail = yes; then
12544 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12545 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12546 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 gt_save_CPPFLAGS="$CPPFLAGS"
12550 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12551 gt_save_LIBS="$LIBS"
12552 LIBS="$LIBS -framework CoreFoundation"
12553 cat >conftest.$ac_ext <<_ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 #include <CFPreferences.h>
12563 CFPreferencesCopyAppValue(NULL, NULL)
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (ac_try="$ac_link"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_link") 2>conftest.er1
12577 grep -v '^ *+' conftest.er1 >conftest.err
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest$ac_exeext &&
12585 $as_test_x conftest$ac_exeext; then
12586 gt_cv_func_CFPreferencesCopyAppValue=yes
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12591 gt_cv_func_CFPreferencesCopyAppValue=no
12594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12595 conftest$ac_exeext conftest.$ac_ext
12596 CPPFLAGS="$gt_save_CPPFLAGS"
12597 LIBS="$gt_save_LIBS"
12599 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12600 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12601 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12603 cat >>confdefs.h <<\_ACEOF
12604 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12608 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12609 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12610 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 gt_save_CPPFLAGS="$CPPFLAGS"
12614 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12615 gt_save_LIBS="$LIBS"
12616 LIBS="$LIBS -framework CoreFoundation"
12617 cat >conftest.$ac_ext <<_ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 #include <CFLocale.h>
12627 CFLocaleCopyCurrent();
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_link") 2>conftest.er1
12641 grep -v '^ *+' conftest.er1 >conftest.err
12643 cat conftest.err >&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } && {
12646 test -z "$ac_c_werror_flag" ||
12647 test ! -s conftest.err
12648 } && test -s conftest$ac_exeext &&
12649 $as_test_x conftest$ac_exeext; then
12650 gt_cv_func_CFLocaleCopyCurrent=yes
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 gt_cv_func_CFLocaleCopyCurrent=no
12658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12659 conftest$ac_exeext conftest.$ac_ext
12660 CPPFLAGS="$gt_save_CPPFLAGS"
12661 LIBS="$gt_save_LIBS"
12663 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12664 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12665 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12667 cat >>confdefs.h <<\_ACEOF
12668 #define HAVE_CFLOCALECOPYCURRENT 1
12673 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12674 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12680 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12681 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12682 # Check whether --enable-nls was given.
12683 if test "${enable_nls+set}" = set; then
12684 enableval=$enable_nls; USE_NLS=$enableval
12689 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12690 echo "${ECHO_T}$USE_NLS" >&6; }
12695 BUILD_INCLUDED_LIBINTL=no
12696 USE_INCLUDED_LIBINTL=no
12702 if test "$USE_NLS" = "yes"; then
12703 gt_use_preinstalled_gnugettext=no
12705 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12706 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12708 # Check whether --with-included-gettext was given.
12709 if test "${with_included_gettext+set}" = set; then
12710 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12712 nls_cv_force_use_gnu_gettext=no
12715 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12716 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12718 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12719 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12726 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12727 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12728 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 cat >conftest.$ac_ext <<_ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 #include <libintl.h>
12738 extern int _nl_msg_cat_cntr;
12739 extern int *_nl_domain_bindings;
12743 bindtextdomain ("", "");
12744 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_link") 2>conftest.er1
12758 grep -v '^ *+' conftest.er1 >conftest.err
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } && {
12763 test -z "$ac_c_werror_flag" ||
12764 test ! -s conftest.err
12765 } && test -s conftest$ac_exeext &&
12766 $as_test_x conftest$ac_exeext; then
12767 gt_cv_func_gnugettext1_libc=yes
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12772 gt_cv_func_gnugettext1_libc=no
12775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12776 conftest$ac_exeext conftest.$ac_ext
12778 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12779 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12781 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12787 acl_save_prefix="$prefix"
12788 prefix="$acl_final_prefix"
12789 acl_save_exec_prefix="$exec_prefix"
12790 exec_prefix="$acl_final_exec_prefix"
12792 eval additional_includedir=\"$includedir\"
12793 eval additional_libdir=\"$libdir\"
12795 exec_prefix="$acl_save_exec_prefix"
12796 prefix="$acl_save_prefix"
12799 # Check whether --with-libintl-prefix was given.
12800 if test "${with_libintl_prefix+set}" = set; then
12801 withval=$with_libintl_prefix;
12802 if test "X$withval" = "Xno"; then
12805 if test "X$withval" = "X"; then
12807 acl_save_prefix="$prefix"
12808 prefix="$acl_final_prefix"
12809 acl_save_exec_prefix="$exec_prefix"
12810 exec_prefix="$acl_final_exec_prefix"
12812 eval additional_includedir=\"$includedir\"
12813 eval additional_libdir=\"$libdir\"
12815 exec_prefix="$acl_save_exec_prefix"
12816 prefix="$acl_save_prefix"
12819 additional_includedir="$withval/include"
12820 additional_libdir="$withval/lib"
12831 names_already_handled=
12832 names_next_round='intl '
12833 while test -n "$names_next_round"; do
12834 names_this_round="$names_next_round"
12836 for name in $names_this_round; do
12838 for n in $names_already_handled; do
12839 if test "$n" = "$name"; then
12840 already_handled=yes
12844 if test -z "$already_handled"; then
12845 names_already_handled="$names_already_handled $name"
12846 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12847 eval value=\"\$HAVE_LIB$uppername\"
12848 if test -n "$value"; then
12849 if test "$value" = yes; then
12850 eval value=\"\$LIB$uppername\"
12851 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12852 eval value=\"\$LTLIB$uppername\"
12853 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12862 if test $use_additional = yes; then
12863 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12864 found_dir="$additional_libdir"
12865 found_so="$additional_libdir/lib$name.$shlibext"
12866 if test -f "$additional_libdir/lib$name.la"; then
12867 found_la="$additional_libdir/lib$name.la"
12870 if test -f "$additional_libdir/lib$name.$libext"; then
12871 found_dir="$additional_libdir"
12872 found_a="$additional_libdir/lib$name.$libext"
12873 if test -f "$additional_libdir/lib$name.la"; then
12874 found_la="$additional_libdir/lib$name.la"
12879 if test "X$found_dir" = "X"; then
12880 for x in $LDFLAGS $LTLIBINTL; do
12882 acl_save_prefix="$prefix"
12883 prefix="$acl_final_prefix"
12884 acl_save_exec_prefix="$exec_prefix"
12885 exec_prefix="$acl_final_exec_prefix"
12887 exec_prefix="$acl_save_exec_prefix"
12888 prefix="$acl_save_prefix"
12892 dir=`echo "X$x" | sed -e 's/^X-L//'`
12893 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12895 found_so="$dir/lib$name.$shlibext"
12896 if test -f "$dir/lib$name.la"; then
12897 found_la="$dir/lib$name.la"
12900 if test -f "$dir/lib$name.$libext"; then
12902 found_a="$dir/lib$name.$libext"
12903 if test -f "$dir/lib$name.la"; then
12904 found_la="$dir/lib$name.la"
12910 if test "X$found_dir" != "X"; then
12915 if test "X$found_dir" != "X"; then
12916 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12917 if test "X$found_so" != "X"; then
12918 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12919 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12922 for x in $ltrpathdirs; do
12923 if test "X$x" = "X$found_dir"; then
12928 if test -z "$haveit"; then
12929 ltrpathdirs="$ltrpathdirs $found_dir"
12931 if test "$hardcode_direct" = yes; then
12932 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12934 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12935 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12937 for x in $rpathdirs; do
12938 if test "X$x" = "X$found_dir"; then
12943 if test -z "$haveit"; then
12944 rpathdirs="$rpathdirs $found_dir"
12948 for x in $LDFLAGS $LIBINTL; do
12950 acl_save_prefix="$prefix"
12951 prefix="$acl_final_prefix"
12952 acl_save_exec_prefix="$exec_prefix"
12953 exec_prefix="$acl_final_exec_prefix"
12955 exec_prefix="$acl_save_exec_prefix"
12956 prefix="$acl_save_prefix"
12958 if test "X$x" = "X-L$found_dir"; then
12963 if test -z "$haveit"; then
12964 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12966 if test "$hardcode_minus_L" != no; then
12967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12969 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12975 if test "X$found_a" != "X"; then
12976 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12978 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12981 additional_includedir=
12982 case "$found_dir" in
12984 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12985 additional_includedir="$basedir/include"
12988 if test "X$additional_includedir" != "X"; then
12989 if test "X$additional_includedir" != "X/usr/include"; then
12991 if test "X$additional_includedir" = "X/usr/local/include"; then
12992 if test -n "$GCC"; then
12994 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12998 if test -z "$haveit"; then
12999 for x in $CPPFLAGS $INCINTL; do
13001 acl_save_prefix="$prefix"
13002 prefix="$acl_final_prefix"
13003 acl_save_exec_prefix="$exec_prefix"
13004 exec_prefix="$acl_final_exec_prefix"
13006 exec_prefix="$acl_save_exec_prefix"
13007 prefix="$acl_save_prefix"
13009 if test "X$x" = "X-I$additional_includedir"; then
13014 if test -z "$haveit"; then
13015 if test -d "$additional_includedir"; then
13016 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13022 if test -n "$found_la"; then
13023 save_libdir="$libdir"
13024 case "$found_la" in
13025 */* | *\\*) . "$found_la" ;;
13026 *) . "./$found_la" ;;
13028 libdir="$save_libdir"
13029 for dep in $dependency_libs; do
13032 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13033 if test "X$additional_libdir" != "X/usr/lib"; then
13035 if test "X$additional_libdir" = "X/usr/local/lib"; then
13036 if test -n "$GCC"; then
13038 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13042 if test -z "$haveit"; then
13044 for x in $LDFLAGS $LIBINTL; do
13046 acl_save_prefix="$prefix"
13047 prefix="$acl_final_prefix"
13048 acl_save_exec_prefix="$exec_prefix"
13049 exec_prefix="$acl_final_exec_prefix"
13051 exec_prefix="$acl_save_exec_prefix"
13052 prefix="$acl_save_prefix"
13054 if test "X$x" = "X-L$additional_libdir"; then
13059 if test -z "$haveit"; then
13060 if test -d "$additional_libdir"; then
13061 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13065 for x in $LDFLAGS $LTLIBINTL; do
13067 acl_save_prefix="$prefix"
13068 prefix="$acl_final_prefix"
13069 acl_save_exec_prefix="$exec_prefix"
13070 exec_prefix="$acl_final_exec_prefix"
13072 exec_prefix="$acl_save_exec_prefix"
13073 prefix="$acl_save_prefix"
13075 if test "X$x" = "X-L$additional_libdir"; then
13080 if test -z "$haveit"; then
13081 if test -d "$additional_libdir"; then
13082 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13089 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13090 if test "$enable_rpath" != no; then
13092 for x in $rpathdirs; do
13093 if test "X$x" = "X$dir"; then
13098 if test -z "$haveit"; then
13099 rpathdirs="$rpathdirs $dir"
13102 for x in $ltrpathdirs; do
13103 if test "X$x" = "X$dir"; then
13108 if test -z "$haveit"; then
13109 ltrpathdirs="$ltrpathdirs $dir"
13114 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13117 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13120 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13121 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13127 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13128 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13134 if test "X$rpathdirs" != "X"; then
13135 if test -n "$hardcode_libdir_separator"; then
13137 for found_dir in $rpathdirs; do
13138 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13140 acl_save_libdir="$libdir"
13142 eval flag=\"$hardcode_libdir_flag_spec\"
13143 libdir="$acl_save_libdir"
13144 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13146 for found_dir in $rpathdirs; do
13147 acl_save_libdir="$libdir"
13148 libdir="$found_dir"
13149 eval flag=\"$hardcode_libdir_flag_spec\"
13150 libdir="$acl_save_libdir"
13151 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13155 if test "X$ltrpathdirs" != "X"; then
13156 for found_dir in $ltrpathdirs; do
13157 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13161 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13162 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13163 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 gt_save_CPPFLAGS="$CPPFLAGS"
13167 CPPFLAGS="$CPPFLAGS $INCINTL"
13168 gt_save_LIBS="$LIBS"
13169 LIBS="$LIBS $LIBINTL"
13170 cat >conftest.$ac_ext <<_ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13176 #include <libintl.h>
13177 extern int _nl_msg_cat_cntr;
13182 const char *_nl_expand_alias (const char *);
13186 bindtextdomain ("", "");
13187 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13192 rm -f conftest.$ac_objext conftest$ac_exeext
13193 if { (ac_try="$ac_link"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_link") 2>conftest.er1
13201 grep -v '^ *+' conftest.er1 >conftest.err
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } && {
13206 test -z "$ac_c_werror_flag" ||
13207 test ! -s conftest.err
13208 } && test -s conftest$ac_exeext &&
13209 $as_test_x conftest$ac_exeext; then
13210 gt_cv_func_gnugettext1_libintl=yes
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13215 gt_cv_func_gnugettext1_libintl=no
13218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13219 conftest$ac_exeext conftest.$ac_ext
13220 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13221 LIBS="$LIBS $LIBICONV"
13222 cat >conftest.$ac_ext <<_ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 #include <libintl.h>
13229 extern int _nl_msg_cat_cntr;
13234 const char *_nl_expand_alias (const char *);
13238 bindtextdomain ("", "");
13239 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13244 rm -f conftest.$ac_objext conftest$ac_exeext
13245 if { (ac_try="$ac_link"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_link") 2>conftest.er1
13253 grep -v '^ *+' conftest.er1 >conftest.err
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest$ac_exeext &&
13261 $as_test_x conftest$ac_exeext; then
13262 LIBINTL="$LIBINTL $LIBICONV"
13263 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13264 gt_cv_func_gnugettext1_libintl=yes
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13274 conftest$ac_exeext conftest.$ac_ext
13276 CPPFLAGS="$gt_save_CPPFLAGS"
13277 LIBS="$gt_save_LIBS"
13279 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13280 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13283 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13284 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13285 && test "$PACKAGE" != gettext-runtime \
13286 && test "$PACKAGE" != gettext-tools; }; then
13287 gt_use_preinstalled_gnugettext=yes
13295 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13296 nls_cv_use_gnu_gettext=yes
13300 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13301 BUILD_INCLUDED_LIBINTL=yes
13302 USE_INCLUDED_LIBINTL=yes
13303 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13304 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13305 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13309 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13310 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13315 if test -n "$INTL_MACOSX_LIBS"; then
13316 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13317 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13318 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13319 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13323 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13324 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13326 cat >>confdefs.h <<\_ACEOF
13327 #define ENABLE_NLS 1
13335 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13336 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13337 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13338 echo "${ECHO_T}$USE_NLS" >&6; }
13339 if test "$USE_NLS" = "yes"; then
13340 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13341 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13342 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13343 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13344 gt_source="external libintl"
13349 gt_source="included intl directory"
13351 { echo "$as_me:$LINENO: result: $gt_source" >&5
13352 echo "${ECHO_T}$gt_source" >&6; }
13355 if test "$USE_NLS" = "yes"; then
13357 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13358 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13359 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13360 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13361 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13362 echo "${ECHO_T}$LIBINTL" >&6; }
13364 for element in $INCINTL; do
13366 for x in $CPPFLAGS; do
13368 acl_save_prefix="$prefix"
13369 prefix="$acl_final_prefix"
13370 acl_save_exec_prefix="$exec_prefix"
13371 exec_prefix="$acl_final_exec_prefix"
13373 exec_prefix="$acl_save_exec_prefix"
13374 prefix="$acl_save_prefix"
13376 if test "X$x" = "X$element"; then
13381 if test -z "$haveit"; then
13382 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13389 cat >>confdefs.h <<\_ACEOF
13390 #define HAVE_GETTEXT 1
13394 cat >>confdefs.h <<\_ACEOF
13395 #define HAVE_DCGETTEXT 1
13404 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13405 BUILD_INCLUDED_LIBINTL=yes
13412 nls_cv_header_intl=
13413 nls_cv_header_libgt=
13425 if test "$USE_INCLUDED_LIBINTL" = yes; then
13426 INTLOBJS="\$(GETTOBJS)"
13430 INTL_LIBTOOL_SUFFIX_PREFIX=
13434 INTLLIBS="$LIBINTL"
13446 support_postgresql=no
13448 support_smartalloc=yes
13449 support_readline=yes
13453 support_wx_console=no
13459 support_static_tools=no
13460 support_static_fd=no
13461 support_static_sd=no
13462 support_static_dir=no
13463 support_static_cons=no
13465 build_client_only=no
13473 # -------------------------------------------
13474 # Berkeley DB (default off)
13475 # -------------------------------------------
13477 # Check whether --enable-libdb was given.
13478 if test "${enable_libdb+set}" = set; then
13479 enableval=$enable_libdb; if test x$enableval = xno; then
13485 if test x$support_libdb = xyes; then
13490 # Add --with-bdb-dir option to configure.
13492 # Check whether --with-bdb-dir was given.
13493 if test "${with_bdb_dir+set}" = set; then
13494 withval=$with_bdb_dir;
13498 # Check if --with-bdb-dir was specified.
13499 if test "x$with_bdb_dir" = "x" ; then
13500 # No option specified, so just search the system.
13502 ax_path_bdb_no_options_ok=no
13504 # Values to add to environment to use Berkeley DB.
13510 # Check cross compilation here.
13511 if test "x$cross_compiling" = "xyes" ; then
13512 # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
13513 # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
13514 # and extracts the version number from it.
13515 { echo "$as_me:$LINENO: checking for db.h" >&5
13516 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13518 ax_path_bdb_no_options_HEADER_VERSION=''
13519 cat >conftest.$ac_ext <<_ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13528 AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
13532 if { (ac_try="$ac_cpp conftest.$ac_ext"
13533 case "(($ac_try" in
13534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13535 *) ac_try_echo=$ac_try;;
13537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13540 grep -v '^ *+' conftest.er1 >conftest.err
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } >/dev/null && {
13545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13546 test ! -s conftest.err
13549 # Extract version from preprocessor output.
13550 ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
13551 | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13560 rm -f conftest.err conftest.$ac_ext
13562 if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
13563 { echo "$as_me:$LINENO: result: no" >&5
13564 echo "${ECHO_T}no" >&6; }
13566 { echo "$as_me:$LINENO: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
13567 echo "${ECHO_T}$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
13569 # Check that version is high enough.
13571 for ac_prog in gawk mawk nawk awk
13573 # Extract the first word of "$ac_prog", so it can be a program name with args.
13574 set dummy $ac_prog; ac_word=$2
13575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13577 if test "${ac_cv_prog_AWK+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 if test -n "$AWK"; then
13581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH
13587 test -z "$as_dir" && as_dir=.
13588 for ac_exec_ext in '' $ac_executable_extensions; do
13589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13590 ac_cv_prog_AWK="$ac_prog"
13591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13600 AWK=$ac_cv_prog_AWK
13601 if test -n "$AWK"; then
13602 { echo "$as_me:$LINENO: result: $AWK" >&5
13603 echo "${ECHO_T}$AWK" >&6; }
13605 { echo "$as_me:$LINENO: result: no" >&5
13606 echo "${ECHO_T}no" >&6; }
13610 test -n "$AWK" && break
13614 # Used to indicate true or false condition
13615 ax_compare_version=false
13617 # Convert the two version strings to be compared into a format that
13618 # allows a simple string comparison. The end result is that a version
13619 # string of the form 1.12.5-r617 will be converted to the form
13620 # 0001001200050617. In other words, each number is zero padded to four
13621 # digits, and non digits are removed.
13623 ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13624 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13625 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13626 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13630 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13631 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13632 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13633 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13637 ax_compare_version=`echo "x$ax_compare_version_A
13638 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"`
13642 if test "$ax_compare_version" = "true" ; then
13644 # get major and minor version numbers
13645 ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
13646 ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
13648 ax_path_bdb_no_options_save_LIBS="$LIBS"
13650 # Check that we can link with the library.
13651 { echo "$as_me:$LINENO: checking for library containing db_version" >&5
13652 echo $ECHO_N "checking for library containing db_version... $ECHO_C" >&6; }
13653 if test "${ac_cv_search_db_version+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 ac_func_search_save_LIBS=$LIBS
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13664 /* Override any GCC internal prototype to avoid an error.
13665 Use char because int might match the return type of a GCC
13666 builtin and then its argument prototype would still apply. */
13670 char db_version ();
13674 return db_version ();
13679 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
13680 if test -z "$ac_lib"; then
13681 ac_res="none required"
13684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13686 rm -f conftest.$ac_objext conftest$ac_exeext
13687 if { (ac_try="$ac_link"
13688 case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_link") 2>conftest.er1
13695 grep -v '^ *+' conftest.er1 >conftest.err
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && {
13700 test -z "$ac_c_werror_flag" ||
13701 test ! -s conftest.err
13702 } && test -s conftest$ac_exeext &&
13703 $as_test_x conftest$ac_exeext; then
13704 ac_cv_search_db_version=$ac_res
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13714 if test "${ac_cv_search_db_version+set}" = set; then
13718 if test "${ac_cv_search_db_version+set}" = set; then
13721 ac_cv_search_db_version=no
13723 rm conftest.$ac_ext
13724 LIBS=$ac_func_search_save_LIBS
13726 { echo "$as_me:$LINENO: result: $ac_cv_search_db_version" >&5
13727 echo "${ECHO_T}$ac_cv_search_db_version" >&6; }
13728 ac_res=$ac_cv_search_db_version
13729 if test "$ac_res" != no; then
13730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13732 # Sucessfully found library.
13733 ax_path_bdb_no_options_ok=yes
13734 BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
13736 # Extract library from LIBS
13737 ax_path_bdb_no_options_LEN=` \
13738 echo "x$ax_path_bdb_no_options_save_LIBS" \
13739 | awk '{print(length)}'`
13740 BDB_LIBS=`echo "x$LIBS " \
13741 | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
13746 LIBS="$ax_path_bdb_no_options_save_LIBS"
13754 # Not cross compiling.
13755 # Check version of Berkeley DB in the current environment.
13757 ax_path_bdb_env_get_version_ok=no
13759 ax_path_bdb_env_get_version_VERSION=''
13760 ax_path_bdb_env_get_version_LIBS=''
13763 # Indicate status of checking for Berkeley DB library.
13764 { echo "$as_me:$LINENO: checking for db.h" >&5
13765 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13767 # Compile and run a program that determines the Berkeley DB version
13768 # in the header file db.h.
13769 ax_path_bdb_env_get_version_HEADER_VERSION=''
13770 if test "$cross_compiling" = yes; then
13771 { echo "$as_me:$LINENO: result: no" >&5
13772 echo "${ECHO_T}no" >&6; }
13774 cat >conftest.$ac_ext <<_ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13784 int main(int argc,char **argv)
13788 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
13794 rm -f conftest$ac_exeext
13795 if { (ac_try="$ac_link"
13796 case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_link") 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13815 # Program compiled and ran, so get version by adding an argument.
13816 ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
13817 { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
13818 echo "${ECHO_T}$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
13821 echo "$as_me: program exited with status $ac_status" >&5
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13825 ( exit $ac_status )
13826 { echo "$as_me:$LINENO: result: no" >&5
13827 echo "${ECHO_T}no" >&6; }
13829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13834 # Have header version, so try to find corresponding library.
13835 # Looks for library names in the order:
13836 # nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
13837 # and stops when it finds the first one that matches the version
13838 # of the header file.
13839 if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
13840 { echo "$as_me:$LINENO: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
13841 echo $ECHO_N "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... $ECHO_C" >&6; }
13844 # get major and minor version numbers
13845 ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
13846 ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
13848 # see if it is already specified in LIBS
13849 ax_path_bdb_env_get_version_TEST_LIBNAME=''
13851 ax_path_bdb_env_confirm_lib_ok=no
13853 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
13854 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
13856 # Compile and run a program that compares the version defined in
13857 # the header file with a version defined in the library function
13859 if test "$cross_compiling" = yes; then
13860 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13861 See \`config.log' for more details." >&5
13862 echo "$as_me: error: cannot run test program while cross compiling
13863 See \`config.log' for more details." >&2;}
13864 { (exit 1); exit 1; }; }
13866 cat >conftest.$ac_ext <<_ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13876 int main(int argc,char **argv)
13878 int major,minor,patch;
13880 db_version(&major,&minor,&patch);
13882 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
13883 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
13884 DB_VERSION_PATCH == patch)
13892 rm -f conftest$ac_exeext
13893 if { (ac_try="$ac_link"
13894 case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_link") 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13903 { (case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_try") 2>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13913 # Program compiled and ran, so get version by giving an argument,
13914 # which will tell the program to print the output.
13915 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
13917 # If the versions all match up, indicate success.
13919 for ac_prog in gawk mawk nawk awk
13921 # Extract the first word of "$ac_prog", so it can be a program name with args.
13922 set dummy $ac_prog; ac_word=$2
13923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13925 if test "${ac_cv_prog_AWK+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 if test -n "$AWK"; then
13929 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13932 for as_dir in $PATH
13935 test -z "$as_dir" && as_dir=.
13936 for ac_exec_ext in '' $ac_executable_extensions; do
13937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13938 ac_cv_prog_AWK="$ac_prog"
13939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 AWK=$ac_cv_prog_AWK
13949 if test -n "$AWK"; then
13950 { echo "$as_me:$LINENO: result: $AWK" >&5
13951 echo "${ECHO_T}$AWK" >&6; }
13953 { echo "$as_me:$LINENO: result: no" >&5
13954 echo "${ECHO_T}no" >&6; }
13958 test -n "$AWK" && break
13962 # Used to indicate true or false condition
13963 ax_compare_version=false
13965 # Convert the two version strings to be compared into a format that
13966 # allows a simple string comparison. The end result is that a version
13967 # string of the form 1.12.5-r617 will be converted to the form
13968 # 0001001200050617. In other words, each number is zero padded to four
13969 # digits, and non digits are removed.
13971 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13972 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13973 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13974 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13978 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13979 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13980 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13981 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13987 # Pad zeros at end of numbers to make same length.
13988 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
13989 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
13990 ax_compare_version_A="$ax_compare_version_tmp_A"
13992 # Check for equality or inequality as necessary.
13994 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
13999 if test "$ax_compare_version" = "true" ; then
14001 ax_path_bdb_env_confirm_lib_ok=yes
14007 echo "$as_me: program exited with status $ac_status" >&5
14008 echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14017 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14021 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14023 ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
14025 ax_path_bdb_env_confirm_lib_ok=no
14027 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14028 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14030 # Compile and run a program that compares the version defined in
14031 # the header file with a version defined in the library function
14033 if test "$cross_compiling" = yes; then
14034 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14035 See \`config.log' for more details." >&5
14036 echo "$as_me: error: cannot run test program while cross compiling
14037 See \`config.log' for more details." >&2;}
14038 { (exit 1); exit 1; }; }
14040 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14050 int main(int argc,char **argv)
14052 int major,minor,patch;
14054 db_version(&major,&minor,&patch);
14056 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14057 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14058 DB_VERSION_PATCH == patch)
14066 rm -f conftest$ac_exeext
14067 if { (ac_try="$ac_link"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_link") 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14077 { (case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_try") 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14087 # Program compiled and ran, so get version by giving an argument,
14088 # which will tell the program to print the output.
14089 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14091 # If the versions all match up, indicate success.
14093 for ac_prog in gawk mawk nawk awk
14095 # Extract the first word of "$ac_prog", so it can be a program name with args.
14096 set dummy $ac_prog; ac_word=$2
14097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14099 if test "${ac_cv_prog_AWK+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 if test -n "$AWK"; then
14103 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112 ac_cv_prog_AWK="$ac_prog"
14113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14122 AWK=$ac_cv_prog_AWK
14123 if test -n "$AWK"; then
14124 { echo "$as_me:$LINENO: result: $AWK" >&5
14125 echo "${ECHO_T}$AWK" >&6; }
14127 { echo "$as_me:$LINENO: result: no" >&5
14128 echo "${ECHO_T}no" >&6; }
14132 test -n "$AWK" && break
14136 # Used to indicate true or false condition
14137 ax_compare_version=false
14139 # Convert the two version strings to be compared into a format that
14140 # allows a simple string comparison. The end result is that a version
14141 # string of the form 1.12.5-r617 will be converted to the form
14142 # 0001001200050617. In other words, each number is zero padded to four
14143 # digits, and non digits are removed.
14145 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14146 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14147 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14148 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14152 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14153 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14154 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14155 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14161 # Pad zeros at end of numbers to make same length.
14162 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14163 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14164 ax_compare_version_A="$ax_compare_version_tmp_A"
14166 # Check for equality or inequality as necessary.
14168 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14173 if test "$ax_compare_version" = "true" ; then
14175 ax_path_bdb_env_confirm_lib_ok=yes
14181 echo "$as_me: program exited with status $ac_status" >&5
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14191 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14196 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14197 # try format "db-X.Y"
14198 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
14200 ax_path_bdb_env_confirm_lib_ok=no
14202 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14203 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14205 # Compile and run a program that compares the version defined in
14206 # the header file with a version defined in the library function
14208 if test "$cross_compiling" = yes; then
14209 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14210 See \`config.log' for more details." >&5
14211 echo "$as_me: error: cannot run test program while cross compiling
14212 See \`config.log' for more details." >&2;}
14213 { (exit 1); exit 1; }; }
14215 cat >conftest.$ac_ext <<_ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14225 int main(int argc,char **argv)
14227 int major,minor,patch;
14229 db_version(&major,&minor,&patch);
14231 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14232 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14233 DB_VERSION_PATCH == patch)
14241 rm -f conftest$ac_exeext
14242 if { (ac_try="$ac_link"
14243 case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_link") 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14262 # Program compiled and ran, so get version by giving an argument,
14263 # which will tell the program to print the output.
14264 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14266 # If the versions all match up, indicate success.
14268 for ac_prog in gawk mawk nawk awk
14270 # Extract the first word of "$ac_prog", so it can be a program name with args.
14271 set dummy $ac_prog; ac_word=$2
14272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14274 if test "${ac_cv_prog_AWK+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 if test -n "$AWK"; then
14278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281 for as_dir in $PATH
14284 test -z "$as_dir" && as_dir=.
14285 for ac_exec_ext in '' $ac_executable_extensions; do
14286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14287 ac_cv_prog_AWK="$ac_prog"
14288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14297 AWK=$ac_cv_prog_AWK
14298 if test -n "$AWK"; then
14299 { echo "$as_me:$LINENO: result: $AWK" >&5
14300 echo "${ECHO_T}$AWK" >&6; }
14302 { echo "$as_me:$LINENO: result: no" >&5
14303 echo "${ECHO_T}no" >&6; }
14307 test -n "$AWK" && break
14311 # Used to indicate true or false condition
14312 ax_compare_version=false
14314 # Convert the two version strings to be compared into a format that
14315 # allows a simple string comparison. The end result is that a version
14316 # string of the form 1.12.5-r617 will be converted to the form
14317 # 0001001200050617. In other words, each number is zero padded to four
14318 # digits, and non digits are removed.
14320 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14321 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14322 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14323 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14327 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14328 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14329 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14330 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14336 # Pad zeros at end of numbers to make same length.
14337 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14338 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14339 ax_compare_version_A="$ax_compare_version_tmp_A"
14341 # Check for equality or inequality as necessary.
14343 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14348 if test "$ax_compare_version" = "true" ; then
14350 ax_path_bdb_env_confirm_lib_ok=yes
14356 echo "$as_me: program exited with status $ac_status" >&5
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14366 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14371 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14372 # try format "dbX.Y"
14373 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
14375 ax_path_bdb_env_confirm_lib_ok=no
14377 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14378 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14380 # Compile and run a program that compares the version defined in
14381 # the header file with a version defined in the library function
14383 if test "$cross_compiling" = yes; then
14384 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14385 See \`config.log' for more details." >&5
14386 echo "$as_me: error: cannot run test program while cross compiling
14387 See \`config.log' for more details." >&2;}
14388 { (exit 1); exit 1; }; }
14390 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14400 int main(int argc,char **argv)
14402 int major,minor,patch;
14404 db_version(&major,&minor,&patch);
14406 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14407 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14408 DB_VERSION_PATCH == patch)
14416 rm -f conftest$ac_exeext
14417 if { (ac_try="$ac_link"
14418 case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_link") 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14427 { (case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_try") 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14437 # Program compiled and ran, so get version by giving an argument,
14438 # which will tell the program to print the output.
14439 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14441 # If the versions all match up, indicate success.
14443 for ac_prog in gawk mawk nawk awk
14445 # Extract the first word of "$ac_prog", so it can be a program name with args.
14446 set dummy $ac_prog; ac_word=$2
14447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14449 if test "${ac_cv_prog_AWK+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 if test -n "$AWK"; then
14453 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456 for as_dir in $PATH
14459 test -z "$as_dir" && as_dir=.
14460 for ac_exec_ext in '' $ac_executable_extensions; do
14461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14462 ac_cv_prog_AWK="$ac_prog"
14463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14472 AWK=$ac_cv_prog_AWK
14473 if test -n "$AWK"; then
14474 { echo "$as_me:$LINENO: result: $AWK" >&5
14475 echo "${ECHO_T}$AWK" >&6; }
14477 { echo "$as_me:$LINENO: result: no" >&5
14478 echo "${ECHO_T}no" >&6; }
14482 test -n "$AWK" && break
14486 # Used to indicate true or false condition
14487 ax_compare_version=false
14489 # Convert the two version strings to be compared into a format that
14490 # allows a simple string comparison. The end result is that a version
14491 # string of the form 1.12.5-r617 will be converted to the form
14492 # 0001001200050617. In other words, each number is zero padded to four
14493 # digits, and non digits are removed.
14495 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14496 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14497 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14498 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14502 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14503 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14504 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14505 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14511 # Pad zeros at end of numbers to make same length.
14512 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14513 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14514 ax_compare_version_A="$ax_compare_version_tmp_A"
14516 # Check for equality or inequality as necessary.
14518 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14523 if test "$ax_compare_version" = "true" ; then
14525 ax_path_bdb_env_confirm_lib_ok=yes
14531 echo "$as_me: program exited with status $ac_status" >&5
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14541 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14546 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14547 # try format "dbXY"
14548 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
14550 ax_path_bdb_env_confirm_lib_ok=no
14552 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14553 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14555 # Compile and run a program that compares the version defined in
14556 # the header file with a version defined in the library function
14558 if test "$cross_compiling" = yes; then
14559 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14560 See \`config.log' for more details." >&5
14561 echo "$as_me: error: cannot run test program while cross compiling
14562 See \`config.log' for more details." >&2;}
14563 { (exit 1); exit 1; }; }
14565 cat >conftest.$ac_ext <<_ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14575 int main(int argc,char **argv)
14577 int major,minor,patch;
14579 db_version(&major,&minor,&patch);
14581 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14582 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14583 DB_VERSION_PATCH == patch)
14591 rm -f conftest$ac_exeext
14592 if { (ac_try="$ac_link"
14593 case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_link") 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14602 { (case "(($ac_try" in
14603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607 (eval "$ac_try") 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14612 # Program compiled and ran, so get version by giving an argument,
14613 # which will tell the program to print the output.
14614 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14616 # If the versions all match up, indicate success.
14618 for ac_prog in gawk mawk nawk awk
14620 # Extract the first word of "$ac_prog", so it can be a program name with args.
14621 set dummy $ac_prog; ac_word=$2
14622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14624 if test "${ac_cv_prog_AWK+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 if test -n "$AWK"; then
14628 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14637 ac_cv_prog_AWK="$ac_prog"
14638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14647 AWK=$ac_cv_prog_AWK
14648 if test -n "$AWK"; then
14649 { echo "$as_me:$LINENO: result: $AWK" >&5
14650 echo "${ECHO_T}$AWK" >&6; }
14652 { echo "$as_me:$LINENO: result: no" >&5
14653 echo "${ECHO_T}no" >&6; }
14657 test -n "$AWK" && break
14661 # Used to indicate true or false condition
14662 ax_compare_version=false
14664 # Convert the two version strings to be compared into a format that
14665 # allows a simple string comparison. The end result is that a version
14666 # string of the form 1.12.5-r617 will be converted to the form
14667 # 0001001200050617. In other words, each number is zero padded to four
14668 # digits, and non digits are removed.
14670 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14671 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14672 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14673 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14677 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14678 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14679 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14680 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14686 # Pad zeros at end of numbers to make same length.
14687 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14688 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14689 ax_compare_version_A="$ax_compare_version_tmp_A"
14691 # Check for equality or inequality as necessary.
14693 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14698 if test "$ax_compare_version" = "true" ; then
14700 ax_path_bdb_env_confirm_lib_ok=yes
14706 echo "$as_me: program exited with status $ac_status" >&5
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14716 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14721 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14722 # try format "db-X"
14723 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
14725 ax_path_bdb_env_confirm_lib_ok=no
14727 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14728 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14730 # Compile and run a program that compares the version defined in
14731 # the header file with a version defined in the library function
14733 if test "$cross_compiling" = yes; then
14734 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14735 See \`config.log' for more details." >&5
14736 echo "$as_me: error: cannot run test program while cross compiling
14737 See \`config.log' for more details." >&2;}
14738 { (exit 1); exit 1; }; }
14740 cat >conftest.$ac_ext <<_ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14750 int main(int argc,char **argv)
14752 int major,minor,patch;
14754 db_version(&major,&minor,&patch);
14756 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14757 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14758 DB_VERSION_PATCH == patch)
14766 rm -f conftest$ac_exeext
14767 if { (ac_try="$ac_link"
14768 case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_link") 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14777 { (case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782 (eval "$ac_try") 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14787 # Program compiled and ran, so get version by giving an argument,
14788 # which will tell the program to print the output.
14789 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14791 # If the versions all match up, indicate success.
14793 for ac_prog in gawk mawk nawk awk
14795 # Extract the first word of "$ac_prog", so it can be a program name with args.
14796 set dummy $ac_prog; ac_word=$2
14797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14799 if test "${ac_cv_prog_AWK+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 if test -n "$AWK"; then
14803 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806 for as_dir in $PATH
14809 test -z "$as_dir" && as_dir=.
14810 for ac_exec_ext in '' $ac_executable_extensions; do
14811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14812 ac_cv_prog_AWK="$ac_prog"
14813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14822 AWK=$ac_cv_prog_AWK
14823 if test -n "$AWK"; then
14824 { echo "$as_me:$LINENO: result: $AWK" >&5
14825 echo "${ECHO_T}$AWK" >&6; }
14827 { echo "$as_me:$LINENO: result: no" >&5
14828 echo "${ECHO_T}no" >&6; }
14832 test -n "$AWK" && break
14836 # Used to indicate true or false condition
14837 ax_compare_version=false
14839 # Convert the two version strings to be compared into a format that
14840 # allows a simple string comparison. The end result is that a version
14841 # string of the form 1.12.5-r617 will be converted to the form
14842 # 0001001200050617. In other words, each number is zero padded to four
14843 # digits, and non digits are removed.
14845 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14846 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14847 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14848 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14852 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14853 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14854 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14855 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14861 # Pad zeros at end of numbers to make same length.
14862 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14863 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14864 ax_compare_version_A="$ax_compare_version_tmp_A"
14866 # Check for equality or inequality as necessary.
14868 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14873 if test "$ax_compare_version" = "true" ; then
14875 ax_path_bdb_env_confirm_lib_ok=yes
14881 echo "$as_me: program exited with status $ac_status" >&5
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14891 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14896 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14898 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
14900 ax_path_bdb_env_confirm_lib_ok=no
14902 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14903 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14905 # Compile and run a program that compares the version defined in
14906 # the header file with a version defined in the library function
14908 if test "$cross_compiling" = yes; then
14909 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14910 See \`config.log' for more details." >&5
14911 echo "$as_me: error: cannot run test program while cross compiling
14912 See \`config.log' for more details." >&2;}
14913 { (exit 1); exit 1; }; }
14915 cat >conftest.$ac_ext <<_ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14925 int main(int argc,char **argv)
14927 int major,minor,patch;
14929 db_version(&major,&minor,&patch);
14931 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14932 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14933 DB_VERSION_PATCH == patch)
14941 rm -f conftest$ac_exeext
14942 if { (ac_try="$ac_link"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_link") 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14952 { (case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_try") 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14962 # Program compiled and ran, so get version by giving an argument,
14963 # which will tell the program to print the output.
14964 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14966 # If the versions all match up, indicate success.
14968 for ac_prog in gawk mawk nawk awk
14970 # Extract the first word of "$ac_prog", so it can be a program name with args.
14971 set dummy $ac_prog; ac_word=$2
14972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14974 if test "${ac_cv_prog_AWK+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 if test -n "$AWK"; then
14978 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14981 for as_dir in $PATH
14984 test -z "$as_dir" && as_dir=.
14985 for ac_exec_ext in '' $ac_executable_extensions; do
14986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14987 ac_cv_prog_AWK="$ac_prog"
14988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14997 AWK=$ac_cv_prog_AWK
14998 if test -n "$AWK"; then
14999 { echo "$as_me:$LINENO: result: $AWK" >&5
15000 echo "${ECHO_T}$AWK" >&6; }
15002 { echo "$as_me:$LINENO: result: no" >&5
15003 echo "${ECHO_T}no" >&6; }
15007 test -n "$AWK" && break
15011 # Used to indicate true or false condition
15012 ax_compare_version=false
15014 # Convert the two version strings to be compared into a format that
15015 # allows a simple string comparison. The end result is that a version
15016 # string of the form 1.12.5-r617 will be converted to the form
15017 # 0001001200050617. In other words, each number is zero padded to four
15018 # digits, and non digits are removed.
15020 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15021 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15022 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15023 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15027 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15028 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15029 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15030 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15036 # Pad zeros at end of numbers to make same length.
15037 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
15038 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
15039 ax_compare_version_A="$ax_compare_version_tmp_A"
15041 # Check for equality or inequality as necessary.
15043 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
15048 if test "$ax_compare_version" = "true" ; then
15050 ax_path_bdb_env_confirm_lib_ok=yes
15056 echo "$as_me: program exited with status $ac_status" >&5
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15066 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
15071 if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
15072 if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
15073 { echo "$as_me:$LINENO: result: none required" >&5
15074 echo "${ECHO_T}none required" >&6; }
15076 { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
15077 echo "${ECHO_T}$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
15079 ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
15080 ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
15081 ax_path_bdb_env_get_version_ok=yes
15083 { echo "$as_me:$LINENO: result: no" >&5
15084 echo "${ECHO_T}no" >&6; }
15090 if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
15093 for ac_prog in gawk mawk nawk awk
15095 # Extract the first word of "$ac_prog", so it can be a program name with args.
15096 set dummy $ac_prog; ac_word=$2
15097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15099 if test "${ac_cv_prog_AWK+set}" = set; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 if test -n "$AWK"; then
15103 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15106 for as_dir in $PATH
15109 test -z "$as_dir" && as_dir=.
15110 for ac_exec_ext in '' $ac_executable_extensions; do
15111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15112 ac_cv_prog_AWK="$ac_prog"
15113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15122 AWK=$ac_cv_prog_AWK
15123 if test -n "$AWK"; then
15124 { echo "$as_me:$LINENO: result: $AWK" >&5
15125 echo "${ECHO_T}$AWK" >&6; }
15127 { echo "$as_me:$LINENO: result: no" >&5
15128 echo "${ECHO_T}no" >&6; }
15132 test -n "$AWK" && break
15136 # Used to indicate true or false condition
15137 ax_compare_version=false
15139 # Convert the two version strings to be compared into a format that
15140 # allows a simple string comparison. The end result is that a version
15141 # string of the form 1.12.5-r617 will be converted to the form
15142 # 0001001200050617. In other words, each number is zero padded to four
15143 # digits, and non digits are removed.
15145 ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15146 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15147 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15148 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15152 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15153 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15154 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15155 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15159 ax_compare_version=`echo "x$ax_compare_version_A
15160 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"`
15164 if test "$ax_compare_version" = "true" ; then
15166 # Found acceptable version in current environment.
15167 ax_path_bdb_no_options_ok=yes
15168 BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
15169 BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
15178 # Determine if we need to search /usr/local/BerkeleyDB*
15179 ax_path_bdb_no_options_DONE=no
15180 if test "xHIGHEST" = "xENVONLY" ; then
15181 ax_path_bdb_no_options_DONE=yes
15182 elif test "xHIGHEST" = "xENVFIRST" ; then
15183 ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
15186 if test "$ax_path_bdb_no_options_DONE" = "no" ; then
15187 # Check for highest in /usr/local/BerkeleyDB*
15189 ax_path_bdb_path_find_highest_ok=no
15191 ax_path_bdb_path_find_highest_VERSION=''
15193 ax_path_bdb_path_find_highest_DIR=''
15195 # find highest verison in default install directory for Berkeley DB
15197 for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
15200 ax_path_bdb_path_get_version_ok=no
15202 # Indicate status of checking for Berkeley DB header.
15203 { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
15204 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... $ECHO_C" >&6; }
15205 ax_path_bdb_path_get_version_got_header=no
15206 test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
15207 { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_got_header" >&5
15208 echo "${ECHO_T}$ax_path_bdb_path_get_version_got_header" >&6; }
15210 # Indicate status of checking for Berkeley DB library.
15211 { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
15212 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... $ECHO_C" >&6; }
15214 ax_path_bdb_path_get_version_VERSION=''
15216 if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
15217 test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
15218 ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
15219 CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
15221 ax_path_bdb_path_get_version_save_LIBS="$LIBS"
15224 ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
15225 LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
15227 # Compile and run a program that compares the version defined in
15228 # the header file with a version defined in the library function
15230 if test "$cross_compiling" = yes; then
15231 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15232 See \`config.log' for more details." >&5
15233 echo "$as_me: error: cannot run test program while cross compiling
15234 See \`config.log' for more details." >&2;}
15235 { (exit 1); exit 1; }; }
15237 cat >conftest.$ac_ext <<_ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15247 int main(int argc,char **argv)
15249 int major,minor,patch;
15251 db_version(&major,&minor,&patch);
15253 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15254 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
15255 DB_VERSION_PATCH == patch)
15263 rm -f conftest$ac_exeext
15264 if { (ac_try="$ac_link"
15265 case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_link") 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15274 { (case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_try") 2>&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; }; then
15284 # Program compiled and ran, so get version by adding argument.
15285 ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
15286 ax_path_bdb_path_get_version_ok=yes
15289 echo "$as_me: program exited with status $ac_status" >&5
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15299 CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
15300 LIBS="$ax_path_bdb_path_get_version_save_LIBS"
15301 LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
15304 if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
15305 { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_VERSION" >&5
15306 echo "${ECHO_T}$ax_path_bdb_path_get_version_VERSION" >&6; }
15309 for ac_prog in gawk mawk nawk awk
15311 # Extract the first word of "$ac_prog", so it can be a program name with args.
15312 set dummy $ac_prog; ac_word=$2
15313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15315 if test "${ac_cv_prog_AWK+set}" = set; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 if test -n "$AWK"; then
15319 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322 for as_dir in $PATH
15325 test -z "$as_dir" && as_dir=.
15326 for ac_exec_ext in '' $ac_executable_extensions; do
15327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15328 ac_cv_prog_AWK="$ac_prog"
15329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15338 AWK=$ac_cv_prog_AWK
15339 if test -n "$AWK"; then
15340 { echo "$as_me:$LINENO: result: $AWK" >&5
15341 echo "${ECHO_T}$AWK" >&6; }
15343 { echo "$as_me:$LINENO: result: no" >&5
15344 echo "${ECHO_T}no" >&6; }
15348 test -n "$AWK" && break
15352 # Used to indicate true or false condition
15353 ax_compare_version=false
15355 # Convert the two version strings to be compared into a format that
15356 # allows a simple string comparison. The end result is that a version
15357 # string of the form 1.12.5-r617 will be converted to the form
15358 # 0001001200050617. In other words, each number is zero padded to four
15359 # digits, and non digits are removed.
15361 ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15362 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15363 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15364 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15368 ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15369 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15370 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15371 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15375 ax_compare_version=`echo "x$ax_compare_version_A
15376 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
15380 if test "$ax_compare_version" = "true" ; then
15382 ax_path_bdb_path_find_highest_ok=yes
15383 ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
15384 ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
15390 { echo "$as_me:$LINENO: result: no" >&5
15391 echo "${ECHO_T}no" >&6; }
15397 if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
15399 if test "$ax_path_bdb_no_options_ok" = "yes" ; then
15400 # If we already have an acceptable version use this if higher.
15402 for ac_prog in gawk mawk nawk awk
15404 # Extract the first word of "$ac_prog", so it can be a program name with args.
15405 set dummy $ac_prog; ac_word=$2
15406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15408 if test "${ac_cv_prog_AWK+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 if test -n "$AWK"; then
15412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15415 for as_dir in $PATH
15418 test -z "$as_dir" && as_dir=.
15419 for ac_exec_ext in '' $ac_executable_extensions; do
15420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15421 ac_cv_prog_AWK="$ac_prog"
15422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15431 AWK=$ac_cv_prog_AWK
15432 if test -n "$AWK"; then
15433 { echo "$as_me:$LINENO: result: $AWK" >&5
15434 echo "${ECHO_T}$AWK" >&6; }
15436 { echo "$as_me:$LINENO: result: no" >&5
15437 echo "${ECHO_T}no" >&6; }
15441 test -n "$AWK" && break
15445 # Used to indicate true or false condition
15446 ax_compare_version=false
15448 # Convert the two version strings to be compared into a format that
15449 # allows a simple string comparison. The end result is that a version
15450 # string of the form 1.12.5-r617 will be converted to the form
15451 # 0001001200050617. In other words, each number is zero padded to four
15452 # digits, and non digits are removed.
15454 ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15455 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15456 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15457 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15461 ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15462 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15463 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15464 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15468 ax_compare_version=`echo "x$ax_compare_version_A
15469 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
15473 if test "$ax_compare_version" = "true" ; then
15478 # Since we didn't have an acceptable version check if this one is.
15480 for ac_prog in gawk mawk nawk awk
15482 # Extract the first word of "$ac_prog", so it can be a program name with args.
15483 set dummy $ac_prog; ac_word=$2
15484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15486 if test "${ac_cv_prog_AWK+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 if test -n "$AWK"; then
15490 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15493 for as_dir in $PATH
15496 test -z "$as_dir" && as_dir=.
15497 for ac_exec_ext in '' $ac_executable_extensions; do
15498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15499 ac_cv_prog_AWK="$ac_prog"
15500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15509 AWK=$ac_cv_prog_AWK
15510 if test -n "$AWK"; then
15511 { echo "$as_me:$LINENO: result: $AWK" >&5
15512 echo "${ECHO_T}$AWK" >&6; }
15514 { echo "$as_me:$LINENO: result: no" >&5
15515 echo "${ECHO_T}no" >&6; }
15519 test -n "$AWK" && break
15523 # Used to indicate true or false condition
15524 ax_compare_version=false
15526 # Convert the two version strings to be compared into a format that
15527 # allows a simple string comparison. The end result is that a version
15528 # string of the form 1.12.5-r617 will be converted to the form
15529 # 0001001200050617. In other words, each number is zero padded to four
15530 # digits, and non digits are removed.
15532 ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15533 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15534 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15535 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15539 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15540 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15541 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15542 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15546 ax_compare_version=`echo "x$ax_compare_version_A
15547 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"`
15551 if test "$ax_compare_version" = "true" ; then
15561 if test "$ax_compare_version" = "true" ; then
15562 ax_path_bdb_no_options_ok=yes
15564 if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
15565 BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
15566 BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
15568 BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
15573 if test "$ax_path_bdb_no_options_ok" = "yes" ; then
15574 { echo "$as_me:$LINENO: using Berkeley DB version $BDB_VERSION" >&5
15575 echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
15577 cat >>confdefs.h <<\_ACEOF
15578 #define HAVE_DB_H 1
15585 { echo "$as_me:$LINENO: no Berkeley DB version 3 or higher found" >&5
15586 echo "$as_me: no Berkeley DB version 3 or higher found" >&6;}
15590 # Set --with-bdb-dir option.
15591 ax_path_bdb_INC="$with_bdb_dir/include"
15592 ax_path_bdb_LIB="$with_bdb_dir/lib"
15594 ax_path_bdb_save_CPPFLAGS="$CPPFLAGS"
15595 CPPFLAGS="-I$ax_path_bdb_INC $CPPFLAGS"
15597 ax_path_bdb_save_LDFLAGS=$LDFLAGS
15598 LDFLAGS="-L$ax_path_bdb_LIB $LDFLAGS"
15600 # Check for specific header file db.h
15601 { echo "$as_me:$LINENO: checking db.h presence in $ax_path_bdb_INC" >&5
15602 echo $ECHO_N "checking db.h presence in $ax_path_bdb_INC... $ECHO_C" >&6; }
15603 if test -f "$ax_path_bdb_INC/db.h" ; then
15604 { echo "$as_me:$LINENO: result: yes" >&5
15605 echo "${ECHO_T}yes" >&6; }
15606 # Check for library
15608 ax_path_bdb_no_options_ok=no
15610 # Values to add to environment to use Berkeley DB.
15616 # Check cross compilation here.
15617 if test "x$cross_compiling" = "xyes" ; then
15618 # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
15619 # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
15620 # and extracts the version number from it.
15621 { echo "$as_me:$LINENO: checking for db.h" >&5
15622 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
15624 ax_path_bdb_no_options_HEADER_VERSION=''
15625 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15634 AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
15638 if { (ac_try="$ac_cpp conftest.$ac_ext"
15639 case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15646 grep -v '^ *+' conftest.er1 >conftest.err
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } >/dev/null && {
15651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15652 test ! -s conftest.err
15655 # Extract version from preprocessor output.
15656 ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
15657 | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15666 rm -f conftest.err conftest.$ac_ext
15668 if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
15669 { echo "$as_me:$LINENO: result: no" >&5
15670 echo "${ECHO_T}no" >&6; }
15672 { echo "$as_me:$LINENO: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
15673 echo "${ECHO_T}$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
15675 # Check that version is high enough.
15677 for ac_prog in gawk mawk nawk awk
15679 # Extract the first word of "$ac_prog", so it can be a program name with args.
15680 set dummy $ac_prog; ac_word=$2
15681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15683 if test "${ac_cv_prog_AWK+set}" = set; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15686 if test -n "$AWK"; then
15687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15690 for as_dir in $PATH
15693 test -z "$as_dir" && as_dir=.
15694 for ac_exec_ext in '' $ac_executable_extensions; do
15695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15696 ac_cv_prog_AWK="$ac_prog"
15697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15706 AWK=$ac_cv_prog_AWK
15707 if test -n "$AWK"; then
15708 { echo "$as_me:$LINENO: result: $AWK" >&5
15709 echo "${ECHO_T}$AWK" >&6; }
15711 { echo "$as_me:$LINENO: result: no" >&5
15712 echo "${ECHO_T}no" >&6; }
15716 test -n "$AWK" && break
15720 # Used to indicate true or false condition
15721 ax_compare_version=false
15723 # Convert the two version strings to be compared into a format that
15724 # allows a simple string comparison. The end result is that a version
15725 # string of the form 1.12.5-r617 will be converted to the form
15726 # 0001001200050617. In other words, each number is zero padded to four
15727 # digits, and non digits are removed.
15729 ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15730 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15731 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15732 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15736 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15737 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15738 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15739 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15743 ax_compare_version=`echo "x$ax_compare_version_A
15744 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"`
15748 if test "$ax_compare_version" = "true" ; then
15750 # get major and minor version numbers
15751 ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
15752 ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
15754 ax_path_bdb_no_options_save_LIBS="$LIBS"
15756 # Check that we can link with the library.
15757 { echo "$as_me:$LINENO: checking for library containing db_version" >&5
15758 echo $ECHO_N "checking for library containing db_version... $ECHO_C" >&6; }
15759 if test "${ac_cv_search_db_version+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 ac_func_search_save_LIBS=$LIBS
15763 cat >conftest.$ac_ext <<_ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15770 /* Override any GCC internal prototype to avoid an error.
15771 Use char because int might match the return type of a GCC
15772 builtin and then its argument prototype would still apply. */
15776 char db_version ();
15780 return db_version ();
15785 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
15786 if test -z "$ac_lib"; then
15787 ac_res="none required"
15790 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (ac_try="$ac_link"
15794 case "(($ac_try" in
15795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796 *) ac_try_echo=$ac_try;;
15798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15799 (eval "$ac_link") 2>conftest.er1
15801 grep -v '^ *+' conftest.er1 >conftest.err
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } && {
15806 test -z "$ac_c_werror_flag" ||
15807 test ! -s conftest.err
15808 } && test -s conftest$ac_exeext &&
15809 $as_test_x conftest$ac_exeext; then
15810 ac_cv_search_db_version=$ac_res
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15820 if test "${ac_cv_search_db_version+set}" = set; then
15824 if test "${ac_cv_search_db_version+set}" = set; then
15827 ac_cv_search_db_version=no
15829 rm conftest.$ac_ext
15830 LIBS=$ac_func_search_save_LIBS
15832 { echo "$as_me:$LINENO: result: $ac_cv_search_db_version" >&5
15833 echo "${ECHO_T}$ac_cv_search_db_version" >&6; }
15834 ac_res=$ac_cv_search_db_version
15835 if test "$ac_res" != no; then
15836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15838 # Sucessfully found library.
15839 ax_path_bdb_no_options_ok=yes
15840 BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
15842 # Extract library from LIBS
15843 ax_path_bdb_no_options_LEN=` \
15844 echo "x$ax_path_bdb_no_options_save_LIBS" \
15845 | awk '{print(length)}'`
15846 BDB_LIBS=`echo "x$LIBS " \
15847 | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
15852 LIBS="$ax_path_bdb_no_options_save_LIBS"
15860 # Not cross compiling.
15861 # Check version of Berkeley DB in the current environment.
15863 ax_path_bdb_env_get_version_ok=no
15865 ax_path_bdb_env_get_version_VERSION=''
15866 ax_path_bdb_env_get_version_LIBS=''
15869 # Indicate status of checking for Berkeley DB library.
15870 { echo "$as_me:$LINENO: checking for db.h" >&5
15871 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
15873 # Compile and run a program that determines the Berkeley DB version
15874 # in the header file db.h.
15875 ax_path_bdb_env_get_version_HEADER_VERSION=''
15876 if test "$cross_compiling" = yes; then
15877 { echo "$as_me:$LINENO: result: no" >&5
15878 echo "${ECHO_T}no" >&6; }
15880 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15890 int main(int argc,char **argv)
15894 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15900 rm -f conftest$ac_exeext
15901 if { (ac_try="$ac_link"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_link") 2>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15911 { (case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_try") 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15921 # Program compiled and ran, so get version by adding an argument.
15922 ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
15923 { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
15924 echo "${ECHO_T}$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
15927 echo "$as_me: program exited with status $ac_status" >&5
15928 echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15931 ( exit $ac_status )
15932 { echo "$as_me:$LINENO: result: no" >&5
15933 echo "${ECHO_T}no" >&6; }
15935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15940 # Have header version, so try to find corresponding library.
15941 # Looks for library names in the order:
15942 # nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
15943 # and stops when it finds the first one that matches the version
15944 # of the header file.
15945 if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
15946 { echo "$as_me:$LINENO: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
15947 echo $ECHO_N "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... $ECHO_C" >&6; }
15950 # get major and minor version numbers
15951 ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
15952 ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
15954 # see if it is already specified in LIBS
15955 ax_path_bdb_env_get_version_TEST_LIBNAME=''
15957 ax_path_bdb_env_confirm_lib_ok=no
15959 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
15960 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
15962 # Compile and run a program that compares the version defined in
15963 # the header file with a version defined in the library function
15965 if test "$cross_compiling" = yes; then
15966 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15967 See \`config.log' for more details." >&5
15968 echo "$as_me: error: cannot run test program while cross compiling
15969 See \`config.log' for more details." >&2;}
15970 { (exit 1); exit 1; }; }
15972 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15982 int main(int argc,char **argv)
15984 int major,minor,patch;
15986 db_version(&major,&minor,&patch);
15988 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15989 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
15990 DB_VERSION_PATCH == patch)
15998 rm -f conftest$ac_exeext
15999 if { (ac_try="$ac_link"
16000 case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_link") 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16009 { (case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_try") 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16019 # Program compiled and ran, so get version by giving an argument,
16020 # which will tell the program to print the output.
16021 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16023 # If the versions all match up, indicate success.
16025 for ac_prog in gawk mawk nawk awk
16027 # Extract the first word of "$ac_prog", so it can be a program name with args.
16028 set dummy $ac_prog; ac_word=$2
16029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16031 if test "${ac_cv_prog_AWK+set}" = set; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 if test -n "$AWK"; then
16035 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16038 for as_dir in $PATH
16041 test -z "$as_dir" && as_dir=.
16042 for ac_exec_ext in '' $ac_executable_extensions; do
16043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16044 ac_cv_prog_AWK="$ac_prog"
16045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16054 AWK=$ac_cv_prog_AWK
16055 if test -n "$AWK"; then
16056 { echo "$as_me:$LINENO: result: $AWK" >&5
16057 echo "${ECHO_T}$AWK" >&6; }
16059 { echo "$as_me:$LINENO: result: no" >&5
16060 echo "${ECHO_T}no" >&6; }
16064 test -n "$AWK" && break
16068 # Used to indicate true or false condition
16069 ax_compare_version=false
16071 # Convert the two version strings to be compared into a format that
16072 # allows a simple string comparison. The end result is that a version
16073 # string of the form 1.12.5-r617 will be converted to the form
16074 # 0001001200050617. In other words, each number is zero padded to four
16075 # digits, and non digits are removed.
16077 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16078 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16079 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16080 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16084 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16085 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16086 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16087 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16093 # Pad zeros at end of numbers to make same length.
16094 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16095 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16096 ax_compare_version_A="$ax_compare_version_tmp_A"
16098 # Check for equality or inequality as necessary.
16100 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16105 if test "$ax_compare_version" = "true" ; then
16107 ax_path_bdb_env_confirm_lib_ok=yes
16113 echo "$as_me: program exited with status $ac_status" >&5
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16123 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16127 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16129 ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
16131 ax_path_bdb_env_confirm_lib_ok=no
16133 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16134 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16136 # Compile and run a program that compares the version defined in
16137 # the header file with a version defined in the library function
16139 if test "$cross_compiling" = yes; then
16140 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16141 See \`config.log' for more details." >&5
16142 echo "$as_me: error: cannot run test program while cross compiling
16143 See \`config.log' for more details." >&2;}
16144 { (exit 1); exit 1; }; }
16146 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16156 int main(int argc,char **argv)
16158 int major,minor,patch;
16160 db_version(&major,&minor,&patch);
16162 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16163 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16164 DB_VERSION_PATCH == patch)
16172 rm -f conftest$ac_exeext
16173 if { (ac_try="$ac_link"
16174 case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_link") 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16183 { (case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188 (eval "$ac_try") 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; }; then
16193 # Program compiled and ran, so get version by giving an argument,
16194 # which will tell the program to print the output.
16195 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16197 # If the versions all match up, indicate success.
16199 for ac_prog in gawk mawk nawk awk
16201 # Extract the first word of "$ac_prog", so it can be a program name with args.
16202 set dummy $ac_prog; ac_word=$2
16203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16205 if test "${ac_cv_prog_AWK+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 if test -n "$AWK"; then
16209 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16212 for as_dir in $PATH
16215 test -z "$as_dir" && as_dir=.
16216 for ac_exec_ext in '' $ac_executable_extensions; do
16217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16218 ac_cv_prog_AWK="$ac_prog"
16219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16228 AWK=$ac_cv_prog_AWK
16229 if test -n "$AWK"; then
16230 { echo "$as_me:$LINENO: result: $AWK" >&5
16231 echo "${ECHO_T}$AWK" >&6; }
16233 { echo "$as_me:$LINENO: result: no" >&5
16234 echo "${ECHO_T}no" >&6; }
16238 test -n "$AWK" && break
16242 # Used to indicate true or false condition
16243 ax_compare_version=false
16245 # Convert the two version strings to be compared into a format that
16246 # allows a simple string comparison. The end result is that a version
16247 # string of the form 1.12.5-r617 will be converted to the form
16248 # 0001001200050617. In other words, each number is zero padded to four
16249 # digits, and non digits are removed.
16251 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16252 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16253 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16254 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16258 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16259 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16260 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16261 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16267 # Pad zeros at end of numbers to make same length.
16268 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16269 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16270 ax_compare_version_A="$ax_compare_version_tmp_A"
16272 # Check for equality or inequality as necessary.
16274 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16279 if test "$ax_compare_version" = "true" ; then
16281 ax_path_bdb_env_confirm_lib_ok=yes
16287 echo "$as_me: program exited with status $ac_status" >&5
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16297 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16302 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16303 # try format "db-X.Y"
16304 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
16306 ax_path_bdb_env_confirm_lib_ok=no
16308 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16309 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16311 # Compile and run a program that compares the version defined in
16312 # the header file with a version defined in the library function
16314 if test "$cross_compiling" = yes; then
16315 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16316 See \`config.log' for more details." >&5
16317 echo "$as_me: error: cannot run test program while cross compiling
16318 See \`config.log' for more details." >&2;}
16319 { (exit 1); exit 1; }; }
16321 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16331 int main(int argc,char **argv)
16333 int major,minor,patch;
16335 db_version(&major,&minor,&patch);
16337 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16338 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16339 DB_VERSION_PATCH == patch)
16347 rm -f conftest$ac_exeext
16348 if { (ac_try="$ac_link"
16349 case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_link") 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16358 { (case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_try") 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16368 # Program compiled and ran, so get version by giving an argument,
16369 # which will tell the program to print the output.
16370 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16372 # If the versions all match up, indicate success.
16374 for ac_prog in gawk mawk nawk awk
16376 # Extract the first word of "$ac_prog", so it can be a program name with args.
16377 set dummy $ac_prog; ac_word=$2
16378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16380 if test "${ac_cv_prog_AWK+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 if test -n "$AWK"; then
16384 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16387 for as_dir in $PATH
16390 test -z "$as_dir" && as_dir=.
16391 for ac_exec_ext in '' $ac_executable_extensions; do
16392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16393 ac_cv_prog_AWK="$ac_prog"
16394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16403 AWK=$ac_cv_prog_AWK
16404 if test -n "$AWK"; then
16405 { echo "$as_me:$LINENO: result: $AWK" >&5
16406 echo "${ECHO_T}$AWK" >&6; }
16408 { echo "$as_me:$LINENO: result: no" >&5
16409 echo "${ECHO_T}no" >&6; }
16413 test -n "$AWK" && break
16417 # Used to indicate true or false condition
16418 ax_compare_version=false
16420 # Convert the two version strings to be compared into a format that
16421 # allows a simple string comparison. The end result is that a version
16422 # string of the form 1.12.5-r617 will be converted to the form
16423 # 0001001200050617. In other words, each number is zero padded to four
16424 # digits, and non digits are removed.
16426 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16427 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16428 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16429 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16433 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16434 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16435 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16436 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16442 # Pad zeros at end of numbers to make same length.
16443 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16444 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16445 ax_compare_version_A="$ax_compare_version_tmp_A"
16447 # Check for equality or inequality as necessary.
16449 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16454 if test "$ax_compare_version" = "true" ; then
16456 ax_path_bdb_env_confirm_lib_ok=yes
16462 echo "$as_me: program exited with status $ac_status" >&5
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16472 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16477 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16478 # try format "dbX.Y"
16479 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
16481 ax_path_bdb_env_confirm_lib_ok=no
16483 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16484 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16486 # Compile and run a program that compares the version defined in
16487 # the header file with a version defined in the library function
16489 if test "$cross_compiling" = yes; then
16490 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16491 See \`config.log' for more details." >&5
16492 echo "$as_me: error: cannot run test program while cross compiling
16493 See \`config.log' for more details." >&2;}
16494 { (exit 1); exit 1; }; }
16496 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16506 int main(int argc,char **argv)
16508 int major,minor,patch;
16510 db_version(&major,&minor,&patch);
16512 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16513 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16514 DB_VERSION_PATCH == patch)
16522 rm -f conftest$ac_exeext
16523 if { (ac_try="$ac_link"
16524 case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_link") 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16533 { (case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_try") 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16543 # Program compiled and ran, so get version by giving an argument,
16544 # which will tell the program to print the output.
16545 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16547 # If the versions all match up, indicate success.
16549 for ac_prog in gawk mawk nawk awk
16551 # Extract the first word of "$ac_prog", so it can be a program name with args.
16552 set dummy $ac_prog; ac_word=$2
16553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16555 if test "${ac_cv_prog_AWK+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 if test -n "$AWK"; then
16559 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16562 for as_dir in $PATH
16565 test -z "$as_dir" && as_dir=.
16566 for ac_exec_ext in '' $ac_executable_extensions; do
16567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16568 ac_cv_prog_AWK="$ac_prog"
16569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16578 AWK=$ac_cv_prog_AWK
16579 if test -n "$AWK"; then
16580 { echo "$as_me:$LINENO: result: $AWK" >&5
16581 echo "${ECHO_T}$AWK" >&6; }
16583 { echo "$as_me:$LINENO: result: no" >&5
16584 echo "${ECHO_T}no" >&6; }
16588 test -n "$AWK" && break
16592 # Used to indicate true or false condition
16593 ax_compare_version=false
16595 # Convert the two version strings to be compared into a format that
16596 # allows a simple string comparison. The end result is that a version
16597 # string of the form 1.12.5-r617 will be converted to the form
16598 # 0001001200050617. In other words, each number is zero padded to four
16599 # digits, and non digits are removed.
16601 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16602 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16603 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16604 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16608 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16609 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16610 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16611 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16617 # Pad zeros at end of numbers to make same length.
16618 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16619 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16620 ax_compare_version_A="$ax_compare_version_tmp_A"
16622 # Check for equality or inequality as necessary.
16624 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16629 if test "$ax_compare_version" = "true" ; then
16631 ax_path_bdb_env_confirm_lib_ok=yes
16637 echo "$as_me: program exited with status $ac_status" >&5
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16647 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16652 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16653 # try format "dbXY"
16654 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
16656 ax_path_bdb_env_confirm_lib_ok=no
16658 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16659 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16661 # Compile and run a program that compares the version defined in
16662 # the header file with a version defined in the library function
16664 if test "$cross_compiling" = yes; then
16665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16666 See \`config.log' for more details." >&5
16667 echo "$as_me: error: cannot run test program while cross compiling
16668 See \`config.log' for more details." >&2;}
16669 { (exit 1); exit 1; }; }
16671 cat >conftest.$ac_ext <<_ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16681 int main(int argc,char **argv)
16683 int major,minor,patch;
16685 db_version(&major,&minor,&patch);
16687 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16688 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16689 DB_VERSION_PATCH == patch)
16697 rm -f conftest$ac_exeext
16698 if { (ac_try="$ac_link"
16699 case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_link") 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16708 { (case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_try") 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16718 # Program compiled and ran, so get version by giving an argument,
16719 # which will tell the program to print the output.
16720 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16722 # If the versions all match up, indicate success.
16724 for ac_prog in gawk mawk nawk awk
16726 # Extract the first word of "$ac_prog", so it can be a program name with args.
16727 set dummy $ac_prog; ac_word=$2
16728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16730 if test "${ac_cv_prog_AWK+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 if test -n "$AWK"; then
16734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16737 for as_dir in $PATH
16740 test -z "$as_dir" && as_dir=.
16741 for ac_exec_ext in '' $ac_executable_extensions; do
16742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16743 ac_cv_prog_AWK="$ac_prog"
16744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16753 AWK=$ac_cv_prog_AWK
16754 if test -n "$AWK"; then
16755 { echo "$as_me:$LINENO: result: $AWK" >&5
16756 echo "${ECHO_T}$AWK" >&6; }
16758 { echo "$as_me:$LINENO: result: no" >&5
16759 echo "${ECHO_T}no" >&6; }
16763 test -n "$AWK" && break
16767 # Used to indicate true or false condition
16768 ax_compare_version=false
16770 # Convert the two version strings to be compared into a format that
16771 # allows a simple string comparison. The end result is that a version
16772 # string of the form 1.12.5-r617 will be converted to the form
16773 # 0001001200050617. In other words, each number is zero padded to four
16774 # digits, and non digits are removed.
16776 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16777 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16778 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16779 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16783 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16784 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16785 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16786 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16792 # Pad zeros at end of numbers to make same length.
16793 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16794 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16795 ax_compare_version_A="$ax_compare_version_tmp_A"
16797 # Check for equality or inequality as necessary.
16799 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16804 if test "$ax_compare_version" = "true" ; then
16806 ax_path_bdb_env_confirm_lib_ok=yes
16812 echo "$as_me: program exited with status $ac_status" >&5
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16822 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16827 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16828 # try format "db-X"
16829 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
16831 ax_path_bdb_env_confirm_lib_ok=no
16833 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16834 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16836 # Compile and run a program that compares the version defined in
16837 # the header file with a version defined in the library function
16839 if test "$cross_compiling" = yes; then
16840 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16841 See \`config.log' for more details." >&5
16842 echo "$as_me: error: cannot run test program while cross compiling
16843 See \`config.log' for more details." >&2;}
16844 { (exit 1); exit 1; }; }
16846 cat >conftest.$ac_ext <<_ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16856 int main(int argc,char **argv)
16858 int major,minor,patch;
16860 db_version(&major,&minor,&patch);
16862 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16863 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16864 DB_VERSION_PATCH == patch)
16872 rm -f conftest$ac_exeext
16873 if { (ac_try="$ac_link"
16874 case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_link") 2>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16883 { (case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_try") 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16893 # Program compiled and ran, so get version by giving an argument,
16894 # which will tell the program to print the output.
16895 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16897 # If the versions all match up, indicate success.
16899 for ac_prog in gawk mawk nawk awk
16901 # Extract the first word of "$ac_prog", so it can be a program name with args.
16902 set dummy $ac_prog; ac_word=$2
16903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16905 if test "${ac_cv_prog_AWK+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 if test -n "$AWK"; then
16909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $PATH
16915 test -z "$as_dir" && as_dir=.
16916 for ac_exec_ext in '' $ac_executable_extensions; do
16917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16918 ac_cv_prog_AWK="$ac_prog"
16919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16928 AWK=$ac_cv_prog_AWK
16929 if test -n "$AWK"; then
16930 { echo "$as_me:$LINENO: result: $AWK" >&5
16931 echo "${ECHO_T}$AWK" >&6; }
16933 { echo "$as_me:$LINENO: result: no" >&5
16934 echo "${ECHO_T}no" >&6; }
16938 test -n "$AWK" && break
16942 # Used to indicate true or false condition
16943 ax_compare_version=false
16945 # Convert the two version strings to be compared into a format that
16946 # allows a simple string comparison. The end result is that a version
16947 # string of the form 1.12.5-r617 will be converted to the form
16948 # 0001001200050617. In other words, each number is zero padded to four
16949 # digits, and non digits are removed.
16951 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16952 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16953 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16954 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16958 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16959 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16960 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16961 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16967 # Pad zeros at end of numbers to make same length.
16968 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16969 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16970 ax_compare_version_A="$ax_compare_version_tmp_A"
16972 # Check for equality or inequality as necessary.
16974 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16979 if test "$ax_compare_version" = "true" ; then
16981 ax_path_bdb_env_confirm_lib_ok=yes
16987 echo "$as_me: program exited with status $ac_status" >&5
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16997 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
17002 if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
17004 ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
17006 ax_path_bdb_env_confirm_lib_ok=no
17008 ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
17009 LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
17011 # Compile and run a program that compares the version defined in
17012 # the header file with a version defined in the library function
17014 if test "$cross_compiling" = yes; then
17015 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17016 See \`config.log' for more details." >&5
17017 echo "$as_me: error: cannot run test program while cross compiling
17018 See \`config.log' for more details." >&2;}
17019 { (exit 1); exit 1; }; }
17021 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17031 int main(int argc,char **argv)
17033 int major,minor,patch;
17035 db_version(&major,&minor,&patch);
17037 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
17038 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
17039 DB_VERSION_PATCH == patch)
17047 rm -f conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_link") 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17068 # Program compiled and ran, so get version by giving an argument,
17069 # which will tell the program to print the output.
17070 ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
17072 # If the versions all match up, indicate success.
17074 for ac_prog in gawk mawk nawk awk
17076 # Extract the first word of "$ac_prog", so it can be a program name with args.
17077 set dummy $ac_prog; ac_word=$2
17078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17080 if test "${ac_cv_prog_AWK+set}" = set; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 if test -n "$AWK"; then
17084 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17087 for as_dir in $PATH
17090 test -z "$as_dir" && as_dir=.
17091 for ac_exec_ext in '' $ac_executable_extensions; do
17092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17093 ac_cv_prog_AWK="$ac_prog"
17094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17103 AWK=$ac_cv_prog_AWK
17104 if test -n "$AWK"; then
17105 { echo "$as_me:$LINENO: result: $AWK" >&5
17106 echo "${ECHO_T}$AWK" >&6; }
17108 { echo "$as_me:$LINENO: result: no" >&5
17109 echo "${ECHO_T}no" >&6; }
17113 test -n "$AWK" && break
17117 # Used to indicate true or false condition
17118 ax_compare_version=false
17120 # Convert the two version strings to be compared into a format that
17121 # allows a simple string comparison. The end result is that a version
17122 # string of the form 1.12.5-r617 will be converted to the form
17123 # 0001001200050617. In other words, each number is zero padded to four
17124 # digits, and non digits are removed.
17126 ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17127 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17128 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17129 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17133 ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17134 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17135 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17136 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17142 # Pad zeros at end of numbers to make same length.
17143 ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
17144 ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
17145 ax_compare_version_A="$ax_compare_version_tmp_A"
17147 # Check for equality or inequality as necessary.
17149 test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
17154 if test "$ax_compare_version" = "true" ; then
17156 ax_path_bdb_env_confirm_lib_ok=yes
17162 echo "$as_me: program exited with status $ac_status" >&5
17163 echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17172 LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
17177 if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
17178 if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
17179 { echo "$as_me:$LINENO: result: none required" >&5
17180 echo "${ECHO_T}none required" >&6; }
17182 { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
17183 echo "${ECHO_T}$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
17185 ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
17186 ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
17187 ax_path_bdb_env_get_version_ok=yes
17189 { echo "$as_me:$LINENO: result: no" >&5
17190 echo "${ECHO_T}no" >&6; }
17196 if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
17199 for ac_prog in gawk mawk nawk awk
17201 # Extract the first word of "$ac_prog", so it can be a program name with args.
17202 set dummy $ac_prog; ac_word=$2
17203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17205 if test "${ac_cv_prog_AWK+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 if test -n "$AWK"; then
17209 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17212 for as_dir in $PATH
17215 test -z "$as_dir" && as_dir=.
17216 for ac_exec_ext in '' $ac_executable_extensions; do
17217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17218 ac_cv_prog_AWK="$ac_prog"
17219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17228 AWK=$ac_cv_prog_AWK
17229 if test -n "$AWK"; then
17230 { echo "$as_me:$LINENO: result: $AWK" >&5
17231 echo "${ECHO_T}$AWK" >&6; }
17233 { echo "$as_me:$LINENO: result: no" >&5
17234 echo "${ECHO_T}no" >&6; }
17238 test -n "$AWK" && break
17242 # Used to indicate true or false condition
17243 ax_compare_version=false
17245 # Convert the two version strings to be compared into a format that
17246 # allows a simple string comparison. The end result is that a version
17247 # string of the form 1.12.5-r617 will be converted to the form
17248 # 0001001200050617. In other words, each number is zero padded to four
17249 # digits, and non digits are removed.
17251 ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17252 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17253 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17254 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17258 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17259 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17260 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17261 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17265 ax_compare_version=`echo "x$ax_compare_version_A
17266 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"`
17270 if test "$ax_compare_version" = "true" ; then
17272 # Found acceptable version in current environment.
17273 ax_path_bdb_no_options_ok=yes
17274 BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
17275 BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
17284 # Determine if we need to search /usr/local/BerkeleyDB*
17285 ax_path_bdb_no_options_DONE=no
17286 if test "xENVONLY" = "xENVONLY" ; then
17287 ax_path_bdb_no_options_DONE=yes
17288 elif test "xENVONLY" = "xENVFIRST" ; then
17289 ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
17292 if test "$ax_path_bdb_no_options_DONE" = "no" ; then
17293 # Check for highest in /usr/local/BerkeleyDB*
17295 ax_path_bdb_path_find_highest_ok=no
17297 ax_path_bdb_path_find_highest_VERSION=''
17299 ax_path_bdb_path_find_highest_DIR=''
17301 # find highest verison in default install directory for Berkeley DB
17303 for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
17306 ax_path_bdb_path_get_version_ok=no
17308 # Indicate status of checking for Berkeley DB header.
17309 { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
17310 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... $ECHO_C" >&6; }
17311 ax_path_bdb_path_get_version_got_header=no
17312 test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
17313 { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_got_header" >&5
17314 echo "${ECHO_T}$ax_path_bdb_path_get_version_got_header" >&6; }
17316 # Indicate status of checking for Berkeley DB library.
17317 { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
17318 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... $ECHO_C" >&6; }
17320 ax_path_bdb_path_get_version_VERSION=''
17322 if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
17323 test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
17324 ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
17325 CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
17327 ax_path_bdb_path_get_version_save_LIBS="$LIBS"
17330 ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
17331 LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
17333 # Compile and run a program that compares the version defined in
17334 # the header file with a version defined in the library function
17336 if test "$cross_compiling" = yes; then
17337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17338 See \`config.log' for more details." >&5
17339 echo "$as_me: error: cannot run test program while cross compiling
17340 See \`config.log' for more details." >&2;}
17341 { (exit 1); exit 1; }; }
17343 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17353 int main(int argc,char **argv)
17355 int major,minor,patch;
17357 db_version(&major,&minor,&patch);
17359 printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
17360 if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
17361 DB_VERSION_PATCH == patch)
17369 rm -f conftest$ac_exeext
17370 if { (ac_try="$ac_link"
17371 case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_link") 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17380 { (case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_try") 2>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; }; then
17390 # Program compiled and ran, so get version by adding argument.
17391 ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
17392 ax_path_bdb_path_get_version_ok=yes
17395 echo "$as_me: program exited with status $ac_status" >&5
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17405 CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
17406 LIBS="$ax_path_bdb_path_get_version_save_LIBS"
17407 LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
17410 if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
17411 { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_VERSION" >&5
17412 echo "${ECHO_T}$ax_path_bdb_path_get_version_VERSION" >&6; }
17415 for ac_prog in gawk mawk nawk awk
17417 # Extract the first word of "$ac_prog", so it can be a program name with args.
17418 set dummy $ac_prog; ac_word=$2
17419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17421 if test "${ac_cv_prog_AWK+set}" = set; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 if test -n "$AWK"; then
17425 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17428 for as_dir in $PATH
17431 test -z "$as_dir" && as_dir=.
17432 for ac_exec_ext in '' $ac_executable_extensions; do
17433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17434 ac_cv_prog_AWK="$ac_prog"
17435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17444 AWK=$ac_cv_prog_AWK
17445 if test -n "$AWK"; then
17446 { echo "$as_me:$LINENO: result: $AWK" >&5
17447 echo "${ECHO_T}$AWK" >&6; }
17449 { echo "$as_me:$LINENO: result: no" >&5
17450 echo "${ECHO_T}no" >&6; }
17454 test -n "$AWK" && break
17458 # Used to indicate true or false condition
17459 ax_compare_version=false
17461 # Convert the two version strings to be compared into a format that
17462 # allows a simple string comparison. The end result is that a version
17463 # string of the form 1.12.5-r617 will be converted to the form
17464 # 0001001200050617. In other words, each number is zero padded to four
17465 # digits, and non digits are removed.
17467 ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17468 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17469 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17470 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17474 ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17475 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17476 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17477 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17481 ax_compare_version=`echo "x$ax_compare_version_A
17482 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
17486 if test "$ax_compare_version" = "true" ; then
17488 ax_path_bdb_path_find_highest_ok=yes
17489 ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
17490 ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
17496 { echo "$as_me:$LINENO: result: no" >&5
17497 echo "${ECHO_T}no" >&6; }
17503 if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
17505 if test "$ax_path_bdb_no_options_ok" = "yes" ; then
17506 # If we already have an acceptable version use this if higher.
17508 for ac_prog in gawk mawk nawk awk
17510 # Extract the first word of "$ac_prog", so it can be a program name with args.
17511 set dummy $ac_prog; ac_word=$2
17512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17514 if test "${ac_cv_prog_AWK+set}" = set; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 if test -n "$AWK"; then
17518 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17521 for as_dir in $PATH
17524 test -z "$as_dir" && as_dir=.
17525 for ac_exec_ext in '' $ac_executable_extensions; do
17526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17527 ac_cv_prog_AWK="$ac_prog"
17528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17537 AWK=$ac_cv_prog_AWK
17538 if test -n "$AWK"; then
17539 { echo "$as_me:$LINENO: result: $AWK" >&5
17540 echo "${ECHO_T}$AWK" >&6; }
17542 { echo "$as_me:$LINENO: result: no" >&5
17543 echo "${ECHO_T}no" >&6; }
17547 test -n "$AWK" && break
17551 # Used to indicate true or false condition
17552 ax_compare_version=false
17554 # Convert the two version strings to be compared into a format that
17555 # allows a simple string comparison. The end result is that a version
17556 # string of the form 1.12.5-r617 will be converted to the form
17557 # 0001001200050617. In other words, each number is zero padded to four
17558 # digits, and non digits are removed.
17560 ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17561 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17562 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17563 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17567 ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17568 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17569 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17570 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17574 ax_compare_version=`echo "x$ax_compare_version_A
17575 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
17579 if test "$ax_compare_version" = "true" ; then
17584 # Since we didn't have an acceptable version check if this one is.
17586 for ac_prog in gawk mawk nawk awk
17588 # Extract the first word of "$ac_prog", so it can be a program name with args.
17589 set dummy $ac_prog; ac_word=$2
17590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17592 if test "${ac_cv_prog_AWK+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17595 if test -n "$AWK"; then
17596 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17599 for as_dir in $PATH
17602 test -z "$as_dir" && as_dir=.
17603 for ac_exec_ext in '' $ac_executable_extensions; do
17604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17605 ac_cv_prog_AWK="$ac_prog"
17606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17615 AWK=$ac_cv_prog_AWK
17616 if test -n "$AWK"; then
17617 { echo "$as_me:$LINENO: result: $AWK" >&5
17618 echo "${ECHO_T}$AWK" >&6; }
17620 { echo "$as_me:$LINENO: result: no" >&5
17621 echo "${ECHO_T}no" >&6; }
17625 test -n "$AWK" && break
17629 # Used to indicate true or false condition
17630 ax_compare_version=false
17632 # Convert the two version strings to be compared into a format that
17633 # allows a simple string comparison. The end result is that a version
17634 # string of the form 1.12.5-r617 will be converted to the form
17635 # 0001001200050617. In other words, each number is zero padded to four
17636 # digits, and non digits are removed.
17638 ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17639 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17640 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17641 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17645 ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17646 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17647 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17648 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17652 ax_compare_version=`echo "x$ax_compare_version_A
17653 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"`
17657 if test "$ax_compare_version" = "true" ; then
17667 if test "$ax_compare_version" = "true" ; then
17668 ax_path_bdb_no_options_ok=yes
17670 if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
17671 BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
17672 BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
17674 BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
17679 if test "$ax_path_bdb_no_options_ok" = "yes" ; then
17680 { echo "$as_me:$LINENO: using Berkeley DB version $BDB_VERSION" >&5
17681 echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
17683 cat >>confdefs.h <<\_ACEOF
17684 #define HAVE_DB_H 1
17689 BDB_CPPFLAGS="-I$ax_path_bdb_INC"
17690 BDB_LDFLAGS="-L$ax_path_bdb_LIB"
17693 { echo "$as_me:$LINENO: no Berkeley DB version 3 or higher found" >&5
17694 echo "$as_me: no Berkeley DB version 3 or higher found" >&6;}
17698 { echo "$as_me:$LINENO: result: no" >&5
17699 echo "${ECHO_T}no" >&6; }
17700 { echo "$as_me:$LINENO: no usable Berkeley DB not found" >&5
17701 echo "$as_me: no usable Berkeley DB not found" >&6;}
17704 CPPFLAGS="$ax_path_bdb_save_CPPFLAGS"
17705 LDFLAGS="$ax_path_bdb_save_LDFLAGS"
17709 if test "$ax_path_bdb_ok" = "yes" ; then
17718 if test x$support_libdb = xyes; then
17720 cat >>confdefs.h <<\_ACEOF
17728 # -------------------------------------------
17729 # gnome (default off)
17730 # -------------------------------------------
17731 # Check whether --enable-gnome was given.
17732 if test "${enable_gnome+set}" = set; then
17733 enableval=$enable_gnome; if test x$enableval = xyes; then
17740 if test x$support_gnome = xyes; then
17741 abc=`$PKGCONFIG --exists libgnomeui-2.0`
17743 if test $pkg = 0; then
17744 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
17745 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
17746 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
17747 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
17752 GNOME_DIR=src/gnome2-console
17753 gnome_version="Version 2.x"
17755 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
17756 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
17757 { (exit 1); exit 1; }; }
17762 # -------------------------------------------
17763 # bat (default off)
17764 # -------------------------------------------
17765 # Check whether --enable-bat was given.
17766 if test "${enable_bat+set}" = set; then
17767 enableval=$enable_bat; if test x$enableval = xyes; then
17769 cat >>confdefs.h <<\_ACEOF
17779 if test x$support_bat = xyes; then
17780 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
17782 if test $pkg = 0; then
17783 BAT_DIR=src/qt-console
17785 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
17786 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
17787 { (exit 1); exit 1; }; }
17792 # If bat is enabled, we need the qwt library
17799 if test x$support_bat = xyes; then
17800 { echo "$as_me:$LINENO: checking for qwt support" >&5
17801 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
17803 # Check whether --with-qwt was given.
17804 if test "${with_qwt+set}" = set; then
17806 case "$with_qwt" in
17811 if test -f ${with_qwt}/include/qwt.h; then
17812 QWT_INC="${with_qwt}/include"
17813 QWT_LDFLAGS="-L${with_qwt}/lib"
17824 # Search in standard places, or --with-qwt not specified
17826 if test $no_qwt = no; then
17827 if test x$QWT_INC = x; then
17828 for root in /usr /usr/local; do
17829 for ver in qwt qwt5 qwt-qt4; do
17830 if test -f ${root}/include/${ver}/qwt.h; then
17831 QWT_INC="${root}/include/${ver}"
17832 if test -d ${root}/lib64/; then
17833 QWT_LDFLAGS="-L${root}/lib64"
17835 QWT_LDFLAGS="-L${root}/lib"
17846 if test x$QWT_INC = x; then
17847 { echo "$as_me:$LINENO: result: no" >&5
17848 echo "${ECHO_T}no" >&6; }
17851 cat >>confdefs.h <<\_ACEOF
17855 { echo "$as_me:$LINENO: result: yes" >&5
17856 echo "${ECHO_T}yes" >&6; }
17867 # -------------------------------------------
17868 # bwx-console (default off)
17869 # -------------------------------------------
17870 # Check whether --enable-bwx-console was given.
17871 if test "${enable_bwx_console+set}" = set; then
17872 enableval=$enable_bwx_console; if test x$enableval = xyes; then
17873 support_wx_console=yes
17879 if test x$support_wx_console = xyes; then
17880 abc=`$WXCONFIG $WXFLAGS --cppflags`
17882 if test $pkg = 0; then
17883 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
17884 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
17885 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
17889 WX_DIR=src/wx-console
17892 echo "wx-config program not found. bwx-console disabled."
17894 support_wx_console=no
17900 # -------------------------------------------
17901 # tray-monitor (default off)
17902 # -------------------------------------------
17903 # Check whether --enable-tray-monitor was given.
17904 if test "${enable_tray_monitor+set}" = set; then
17905 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
17906 support_tray_monitor=yes
17912 if test x$support_tray_monitor = xyes; then
17913 abc=`$PKGCONFIG --exists gtk+-2.0`
17915 if test $pkg = 0; then
17916 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
17917 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
17920 TRAY_MONITOR_DIR=src/tray-monitor
17921 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
17923 if test $pkg = 0; then
17925 cat >>confdefs.h <<\_ACEOF
17926 #define HAVE_GTK_2_4 1
17934 # -------------------------------------------
17935 # smartalloc (default off)
17936 # -------------------------------------------
17937 # Check whether --enable-smartalloc was given.
17938 if test "${enable_smartalloc+set}" = set; then
17939 enableval=$enable_smartalloc; if test x$enableval = xno; then
17940 support_smartalloc=no
17945 if test x$support_smartalloc = xyes; then
17947 cat >>confdefs.h <<\_ACEOF
17948 #define SMARTALLOC 1
17953 # -------------------------------------------
17954 # static-tools (default off)
17955 # -------------------------------------------
17956 # Check whether --enable-static-tools was given.
17957 if test "${enable_static_tools+set}" = set; then
17958 enableval=$enable_static_tools; if test x$enableval = xyes; then
17959 support_static_tools=yes
17965 if test x$support_static_tools = xyes; then
17966 TTOOL_LDFLAGS="-static"
17970 # -------------------------------------------
17971 # static-fd (default off)
17972 # -------------------------------------------
17973 # Check whether --enable-static-fd was given.
17974 if test "${enable_static_fd+set}" = set; then
17975 enableval=$enable_static_fd; if test x$enableval = xyes; then
17976 support_static_fd=yes
17982 if test x$support_static_fd = xyes; then
17983 STATIC_FD="static-bacula-fd"
17987 # -------------------------------------------
17988 # static-sd (default off)
17989 # -------------------------------------------
17990 # Check whether --enable-static-sd was given.
17991 if test "${enable_static_sd+set}" = set; then
17992 enableval=$enable_static_sd; if test x$enableval = xyes; then
17993 support_static_sd=yes
17999 if test x$support_static_sd = xyes; then
18000 STATIC_SD="static-bacula-sd"
18004 # -------------------------------------------
18005 # static-dir (default off)
18006 # -------------------------------------------
18007 # Check whether --enable-static-dir was given.
18008 if test "${enable_static_dir+set}" = set; then
18009 enableval=$enable_static_dir; if test x$enableval = xyes; then
18010 support_static_dir=yes
18016 if test x$support_static_dir = xyes; then
18017 STATIC_DIR="static-bacula-dir"
18021 # -------------------------------------------
18022 # static-cons (default off)
18023 # -------------------------------------------
18024 # Check whether --enable-static-cons was given.
18025 if test "${enable_static_cons+set}" = set; then
18026 enableval=$enable_static_cons; if test x$enableval = xyes; then
18027 support_static_cons=yes
18035 if test x$support_static_cons = xyes; then
18036 STATIC_CONS="static-bconsole"
18037 STATIC_GNOME_CONS="static-bgnome-console"
18038 STATIC_WX_CONS="static-bwx-console"
18044 # -------------------------------------------
18045 # client_only (default off)
18046 # -------------------------------------------
18047 # Check whether --enable-client-only was given.
18048 if test "${enable_client_only+set}" = set; then
18049 enableval=$enable_client_only; if test x$enableval = xyes; then
18050 build_client_only=yes
18056 if test x$build_client_only = xno; then
18063 # -------------------------------------------
18064 # director (default on)
18065 # -------------------------------------------
18066 # Check whether --enable-build-dird was given.
18067 if test "${enable_build_dird+set}" = set; then
18068 enableval=$enable_build_dird; if test x$enableval = xno; then
18073 if test x$build_dird = xyes; then
18074 DIRD_DIR="src/dird"
18075 DIR_TOOLS="DIRTOOLS"
18078 DIR_TOOLS="NODIRTOOLS"
18083 # -------------------------------------------
18084 # stored (default on)
18085 # -------------------------------------------
18086 # Check whether --enable-build-stored was given.
18087 if test "${enable_build_stored+set}" = set; then
18088 enableval=$enable_build_stored; if test x$enableval = xno; then
18093 if test x$build_stored = xyes; then
18094 STORED_DIR="src/stored"
18100 # ---------------------------------------------------
18101 # Check for conio (Bacula readline substitute)(
18102 # ---------------------------------------------------
18103 # this allows you to turn it completely off
18104 # Check whether --enable-conio was given.
18105 if test "${enable_conio+set}" = set; then
18106 enableval=$enable_conio; if test x$enableval = xno; then
18114 # ---------------------------------------------------
18115 # Check for IPv6 support
18116 # ---------------------------------------------------
18117 # this allows you to turn it completely off
18119 # Check whether --enable-ipv6 was given.
18120 if test "${enable_ipv6+set}" = set; then
18121 enableval=$enable_ipv6; if test x$enableval = xno; then
18128 if test x$support_ipv6 = xyes; then
18129 cat >conftest.$ac_ext <<_ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18135 #include <sys/types.h>
18136 #include <sys/socket.h>
18137 #include <netinet/in.h>
18141 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (ac_try="$ac_link"
18148 case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_link") 2>conftest.er1
18155 grep -v '^ *+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } && {
18160 test -z "$ac_c_werror_flag" ||
18161 test ! -s conftest.err
18162 } && test -s conftest$ac_exeext &&
18163 $as_test_x conftest$ac_exeext; then
18166 echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18173 conftest$ac_exeext conftest.$ac_ext
18176 if test x$support_ipv6 = xyes; then
18178 cat >>confdefs.h <<\_ACEOF
18179 #define HAVE_IPV6 1
18187 if test x$support_conio = xyes; then
18188 if test "${ac_cv_header_termcap_h+set}" = set; then
18189 { echo "$as_me:$LINENO: checking for termcap.h" >&5
18190 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
18191 if test "${ac_cv_header_termcap_h+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18194 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
18195 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
18197 # Is the header compilable?
18198 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
18199 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 $ac_includes_default
18207 #include <termcap.h>
18209 rm -f conftest.$ac_objext
18210 if { (ac_try="$ac_compile"
18211 case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_compile") 2>conftest.er1
18218 grep -v '^ *+' conftest.er1 >conftest.err
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } && {
18223 test -z "$ac_c_werror_flag" ||
18224 test ! -s conftest.err
18225 } && test -s conftest.$ac_objext; then
18226 ac_header_compiler=yes
18228 echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18231 ac_header_compiler=no
18234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18236 echo "${ECHO_T}$ac_header_compiler" >&6; }
18238 # Is the header present?
18239 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
18240 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
18241 cat >conftest.$ac_ext <<_ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h. */
18247 #include <termcap.h>
18249 if { (ac_try="$ac_cpp conftest.$ac_ext"
18250 case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18257 grep -v '^ *+' conftest.er1 >conftest.err
18259 cat conftest.err >&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } >/dev/null && {
18262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18265 ac_header_preproc=yes
18267 echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18270 ac_header_preproc=no
18273 rm -f conftest.err conftest.$ac_ext
18274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18275 echo "${ECHO_T}$ac_header_preproc" >&6; }
18277 # So? What about this header?
18278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18280 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
18281 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18282 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
18283 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
18284 ac_header_preproc=yes
18287 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
18288 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
18289 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
18290 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
18291 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
18292 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
18293 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
18294 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
18295 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
18296 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
18297 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
18298 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
18302 { echo "$as_me:$LINENO: checking for termcap.h" >&5
18303 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
18304 if test "${ac_cv_header_termcap_h+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 ac_cv_header_termcap_h=$ac_header_preproc
18309 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
18310 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
18313 if test $ac_cv_header_termcap_h = yes; then
18314 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
18315 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
18316 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18319 ac_check_lib_save_LIBS=$LIBS
18320 LIBS="-ltermcap $LIBS"
18321 cat >conftest.$ac_ext <<_ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18328 /* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18343 rm -f conftest.$ac_objext conftest$ac_exeext
18344 if { (ac_try="$ac_link"
18345 case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_link") 2>conftest.er1
18352 grep -v '^ *+' conftest.er1 >conftest.err
18354 cat conftest.err >&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } && {
18357 test -z "$ac_c_werror_flag" ||
18358 test ! -s conftest.err
18359 } && test -s conftest$ac_exeext &&
18360 $as_test_x conftest$ac_exeext; then
18361 ac_cv_lib_termcap_tgetent=yes
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 ac_cv_lib_termcap_tgetent=no
18369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18370 conftest$ac_exeext conftest.$ac_ext
18371 LIBS=$ac_check_lib_save_LIBS
18373 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
18374 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
18375 if test $ac_cv_lib_termcap_tgetent = yes; then
18376 CONS_LIBS="-ltermcap"
18380 support_readline=no
18382 cat >>confdefs.h <<\_ACEOF
18383 #define HAVE_CONIO 1
18388 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
18389 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
18390 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 ac_check_lib_save_LIBS=$LIBS
18394 LIBS="-lncurses $LIBS"
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 /* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (ac_try="$ac_link"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_link") 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest$ac_exeext &&
18434 $as_test_x conftest$ac_exeext; then
18435 ac_cv_lib_ncurses_tgetent=yes
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 ac_cv_lib_ncurses_tgetent=no
18443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18444 conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_check_lib_save_LIBS
18447 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
18448 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
18449 if test $ac_cv_lib_ncurses_tgetent = yes; then
18450 CONS_LIBS="-lncurses"
18454 support_readline=no
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_CONIO 1
18470 for ac_header in curses.h
18472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 ac_res=`eval echo '${'$as_ac_Header'}'`
18480 { echo "$as_me:$LINENO: result: $ac_res" >&5
18481 echo "${ECHO_T}$ac_res" >&6; }
18483 # Is the header compilable?
18484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18486 cat >conftest.$ac_ext <<_ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18492 $ac_includes_default
18493 #include <$ac_header>
18495 rm -f conftest.$ac_objext
18496 if { (ac_try="$ac_compile"
18497 case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_compile") 2>conftest.er1
18504 grep -v '^ *+' conftest.er1 >conftest.err
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest.$ac_objext; then
18512 ac_header_compiler=yes
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18517 ac_header_compiler=no
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18522 echo "${ECHO_T}$ac_header_compiler" >&6; }
18524 # Is the header present?
18525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18527 cat >conftest.$ac_ext <<_ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 #include <$ac_header>
18535 if { (ac_try="$ac_cpp conftest.$ac_ext"
18536 case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } >/dev/null && {
18548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18549 test ! -s conftest.err
18551 ac_header_preproc=yes
18553 echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18556 ac_header_preproc=no
18559 rm -f conftest.err conftest.$ac_ext
18560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18561 echo "${ECHO_T}$ac_header_preproc" >&6; }
18563 # So? What about this header?
18564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18570 ac_header_preproc=yes
18573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 eval "$as_ac_Header=\$ac_header_preproc"
18595 ac_res=`eval echo '${'$as_ac_Header'}'`
18596 { echo "$as_me:$LINENO: result: $ac_res" >&5
18597 echo "${ECHO_T}$ac_res" >&6; }
18600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18601 cat >>confdefs.h <<_ACEOF
18602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18609 { echo "$as_me:$LINENO: checking for term.h" >&5
18610 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
18611 if test "${ac_cv_header_term_h+set}" = set; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18614 cat >conftest.$ac_ext <<_ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h. */
18621 #include <curses.h>
18627 rm -f conftest.$ac_objext
18628 if { (ac_try="$ac_compile"
18629 case "(($ac_try" in
18630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631 *) ac_try_echo=$ac_try;;
18633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634 (eval "$ac_compile") 2>conftest.er1
18636 grep -v '^ *+' conftest.er1 >conftest.err
18638 cat conftest.err >&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); } && {
18641 test -z "$ac_c_werror_flag" ||
18642 test ! -s conftest.err
18643 } && test -s conftest.$ac_objext; then
18644 ac_cv_header_term_h=yes
18646 echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ac_cv_header_term_h=no
18652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18654 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
18655 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
18656 if test $ac_cv_header_term_h = yes; then
18657 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
18658 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
18659 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 ac_check_lib_save_LIBS=$LIBS
18663 LIBS="-lcurses $LIBS"
18664 cat >conftest.$ac_ext <<_ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18671 /* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
18686 rm -f conftest.$ac_objext conftest$ac_exeext
18687 if { (ac_try="$ac_link"
18688 case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_link") 2>conftest.er1
18695 grep -v '^ *+' conftest.er1 >conftest.err
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest$ac_exeext &&
18703 $as_test_x conftest$ac_exeext; then
18704 ac_cv_lib_curses_tgetent=yes
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18709 ac_cv_lib_curses_tgetent=no
18712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18713 conftest$ac_exeext conftest.$ac_ext
18714 LIBS=$ac_check_lib_save_LIBS
18716 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
18717 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
18718 if test $ac_cv_lib_curses_tgetent = yes; then
18719 CONS_LIBS="-lcurses"
18723 support_readline=no
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE_CONIO 1
18734 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
18745 # ---------------------------------------------------
18746 # Check for readline support/directory (default off)
18747 # ---------------------------------------------------
18748 # this allows you to turn it completely off
18749 # Check whether --enable-readline was given.
18750 if test "${enable_readline+set}" = set; then
18751 enableval=$enable_readline; if test x$enableval = xno; then
18752 support_readline=no
18759 if test x$support_readline = xyes; then
18761 # Check whether --with-readline was given.
18762 if test "${with_readline+set}" = set; then
18763 withval=$with_readline;
18764 case "$with_readline" in
18767 if test -f ${with_readline}/readline.h; then
18768 CONS_INC="-I${with_readline}"
18769 CONS_LDFLAGS="-L$with_readline"
18770 elif test -f ${with_readline}/include/readline/readline.h; then
18771 CONS_INC="-I${with_readline}/include/readline"
18772 CONS_LDFLAGS="-L${with_readline}/lib"
18773 with_readline="${with_readline}/include/readline"
18775 with_readline="/usr/include/readline"
18777 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
18778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18779 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
18780 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
18781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 ac_res=`eval echo '${'$as_ac_Header'}'`
18785 { echo "$as_me:$LINENO: result: $ac_res" >&5
18786 echo "${ECHO_T}$ac_res" >&6; }
18788 # Is the header compilable?
18789 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
18790 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
18791 cat >conftest.$ac_ext <<_ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18797 $ac_includes_default
18798 #include <${with_readline}/readline.h>
18800 rm -f conftest.$ac_objext
18801 if { (ac_try="$ac_compile"
18802 case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_compile") 2>conftest.er1
18809 grep -v '^ *+' conftest.er1 >conftest.err
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } && {
18814 test -z "$ac_c_werror_flag" ||
18815 test ! -s conftest.err
18816 } && test -s conftest.$ac_objext; then
18817 ac_header_compiler=yes
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 ac_header_compiler=no
18825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18827 echo "${ECHO_T}$ac_header_compiler" >&6; }
18829 # Is the header present?
18830 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
18831 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <${with_readline}/readline.h>
18840 if { (ac_try="$ac_cpp conftest.$ac_ext"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } >/dev/null && {
18853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18856 ac_header_preproc=yes
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_header_preproc=no
18864 rm -f conftest.err conftest.$ac_ext
18865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18866 echo "${ECHO_T}$ac_header_preproc" >&6; }
18868 # So? What about this header?
18869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18871 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
18872 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
18874 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
18875 ac_header_preproc=yes
18878 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
18879 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
18881 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
18882 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
18883 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
18885 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
18887 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
18888 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
18889 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
18893 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
18894 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
18895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 eval "$as_ac_Header=\$ac_header_preproc"
18900 ac_res=`eval echo '${'$as_ac_Header'}'`
18901 { echo "$as_me:$LINENO: result: $ac_res" >&5
18902 echo "${ECHO_T}$ac_res" >&6; }
18905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18907 cat >>confdefs.h <<\_ACEOF
18908 #define HAVE_READLINE 1
18911 CONS_LIBS="-lreadline -lhistory -ltermcap"
18916 echo "readline.h not found. readline turned off ..."
18928 # check for standard readline library
18929 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
18930 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
18931 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
18932 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
18936 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
18938 # Is the header compilable?
18939 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
18940 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
18941 cat >conftest.$ac_ext <<_ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 $ac_includes_default
18948 #include </usr/include/readline/readline.h>
18950 rm -f conftest.$ac_objext
18951 if { (ac_try="$ac_compile"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_compile") 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest.$ac_objext; then
18967 ac_header_compiler=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_header_compiler=no
18975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18977 echo "${ECHO_T}$ac_header_compiler" >&6; }
18979 # Is the header present?
18980 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
18981 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
18982 cat >conftest.$ac_ext <<_ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18988 #include </usr/include/readline/readline.h>
18990 if { (ac_try="$ac_cpp conftest.$ac_ext"
18991 case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18998 grep -v '^ *+' conftest.er1 >conftest.err
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } >/dev/null && {
19003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19004 test ! -s conftest.err
19006 ac_header_preproc=yes
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 ac_header_preproc=no
19014 rm -f conftest.err conftest.$ac_ext
19015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19016 echo "${ECHO_T}$ac_header_preproc" >&6; }
19018 # So? What about this header?
19019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19021 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19022 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
19024 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
19025 ac_header_preproc=yes
19028 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
19029 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
19031 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
19032 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
19033 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
19034 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
19035 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
19037 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
19039 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
19043 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
19044 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
19045 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
19050 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
19051 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
19054 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
19056 cat >>confdefs.h <<\_ACEOF
19057 #define HAVE_READLINE 1
19061 CONS_INC="-I/usr/include/readline"
19062 CONS_LIBS="-lreadline -ltermcap"
19066 # Did not find standard library, so try Bacula's default
19067 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
19068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19069 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
19070 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
19071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 ac_res=`eval echo '${'$as_ac_Header'}'`
19075 { echo "$as_me:$LINENO: result: $ac_res" >&5
19076 echo "${ECHO_T}$ac_res" >&6; }
19078 # Is the header compilable?
19079 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
19080 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 $ac_includes_default
19088 #include <${TOP_DIR}/depkgs/readline/readline.h>
19090 rm -f conftest.$ac_objext
19091 if { (ac_try="$ac_compile"
19092 case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097 (eval "$ac_compile") 2>conftest.er1
19099 grep -v '^ *+' conftest.er1 >conftest.err
19101 cat conftest.err >&5
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); } && {
19104 test -z "$ac_c_werror_flag" ||
19105 test ! -s conftest.err
19106 } && test -s conftest.$ac_objext; then
19107 ac_header_compiler=yes
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19112 ac_header_compiler=no
19115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19117 echo "${ECHO_T}$ac_header_compiler" >&6; }
19119 # Is the header present?
19120 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
19121 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
19122 cat >conftest.$ac_ext <<_ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h. */
19128 #include <${TOP_DIR}/depkgs/readline/readline.h>
19130 if { (ac_try="$ac_cpp conftest.$ac_ext"
19131 case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19138 grep -v '^ *+' conftest.er1 >conftest.err
19140 cat conftest.err >&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } >/dev/null && {
19143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19144 test ! -s conftest.err
19146 ac_header_preproc=yes
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19151 ac_header_preproc=no
19154 rm -f conftest.err conftest.$ac_ext
19155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19156 echo "${ECHO_T}$ac_header_preproc" >&6; }
19158 # So? What about this header?
19159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19161 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19162 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
19164 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
19165 ac_header_preproc=yes
19168 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
19169 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
19170 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
19171 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
19173 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
19175 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
19176 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
19177 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
19178 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
19179 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
19183 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
19184 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
19185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 eval "$as_ac_Header=\$ac_header_preproc"
19190 ac_res=`eval echo '${'$as_ac_Header'}'`
19191 { echo "$as_me:$LINENO: result: $ac_res" >&5
19192 echo "${ECHO_T}$ac_res" >&6; }
19195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19197 cat >>confdefs.h <<\_ACEOF
19198 #define HAVE_READLINE 1
19202 CONS_INC="-I${TOP_DIR}/depkgs/readline"
19203 CONS_LIBS="-lreadline -lhistory -ltermcap"
19204 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
19205 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
19209 echo "readline.h not found. readline turned off ..."
19236 # Minimal stuff for readline Makefile configuration
19239 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19240 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
19241 if test "${ac_cv_header_stat_broken+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 cat >conftest.$ac_ext <<_ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 #include <sys/types.h>
19251 #include <sys/stat.h>
19253 #if defined S_ISBLK && defined S_IFDIR
19254 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19257 #if defined S_ISBLK && defined S_IFCHR
19258 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19261 #if defined S_ISLNK && defined S_IFREG
19262 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19265 #if defined S_ISSOCK && defined S_IFREG
19266 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19270 rm -f conftest.$ac_objext
19271 if { (ac_try="$ac_compile"
19272 case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_compile") 2>conftest.er1
19279 grep -v '^ *+' conftest.er1 >conftest.err
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } && {
19284 test -z "$ac_c_werror_flag" ||
19285 test ! -s conftest.err
19286 } && test -s conftest.$ac_objext; then
19287 ac_cv_header_stat_broken=no
19289 echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19292 ac_cv_header_stat_broken=yes
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19297 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19298 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
19299 if test $ac_cv_header_stat_broken = yes; then
19301 cat >>confdefs.h <<\_ACEOF
19302 #define STAT_MACROS_BROKEN 1
19312 ac_header_dirent=no
19313 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19314 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19315 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19316 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
19320 cat >conftest.$ac_ext <<_ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19326 #include <sys/types.h>
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest.$ac_objext; then
19355 eval "$as_ac_Header=yes"
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 eval "$as_ac_Header=no"
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 ac_res=`eval echo '${'$as_ac_Header'}'`
19366 { echo "$as_me:$LINENO: result: $ac_res" >&5
19367 echo "${ECHO_T}$ac_res" >&6; }
19368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19369 cat >>confdefs.h <<_ACEOF
19370 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19373 ac_header_dirent=$ac_hdr; break
19377 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19378 if test $ac_header_dirent = dirent.h; then
19379 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19380 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19381 if test "${ac_cv_search_opendir+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19384 ac_func_search_save_LIBS=$LIBS
19385 cat >conftest.$ac_ext <<_ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19392 /* Override any GCC internal prototype to avoid an error.
19393 Use char because int might match the return type of a GCC
19394 builtin and then its argument prototype would still apply. */
19407 for ac_lib in '' dir; do
19408 if test -z "$ac_lib"; then
19409 ac_res="none required"
19412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>conftest.er1
19423 grep -v '^ *+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } && {
19428 test -z "$ac_c_werror_flag" ||
19429 test ! -s conftest.err
19430 } && test -s conftest$ac_exeext &&
19431 $as_test_x conftest$ac_exeext; then
19432 ac_cv_search_opendir=$ac_res
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19442 if test "${ac_cv_search_opendir+set}" = set; then
19446 if test "${ac_cv_search_opendir+set}" = set; then
19449 ac_cv_search_opendir=no
19451 rm conftest.$ac_ext
19452 LIBS=$ac_func_search_save_LIBS
19454 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19455 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19456 ac_res=$ac_cv_search_opendir
19457 if test "$ac_res" != no; then
19458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19463 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19464 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19465 if test "${ac_cv_search_opendir+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 ac_func_search_save_LIBS=$LIBS
19469 cat >conftest.$ac_ext <<_ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19476 /* Override any GCC internal prototype to avoid an error.
19477 Use char because int might match the return type of a GCC
19478 builtin and then its argument prototype would still apply. */
19491 for ac_lib in '' x; do
19492 if test -z "$ac_lib"; then
19493 ac_res="none required"
19496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19498 rm -f conftest.$ac_objext conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && {
19512 test -z "$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19514 } && test -s conftest$ac_exeext &&
19515 $as_test_x conftest$ac_exeext; then
19516 ac_cv_search_opendir=$ac_res
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526 if test "${ac_cv_search_opendir+set}" = set; then
19530 if test "${ac_cv_search_opendir+set}" = set; then
19533 ac_cv_search_opendir=no
19535 rm conftest.$ac_ext
19536 LIBS=$ac_func_search_save_LIBS
19538 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19539 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19540 ac_res=$ac_cv_search_opendir
19541 if test "$ac_res" != no; then
19542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19555 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
19557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19563 cat >conftest.$ac_ext <<_ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h. */
19569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19571 #define $ac_func innocuous_$ac_func
19573 /* System header to define __stub macros and hopefully few prototypes,
19574 which can conflict with char $ac_func (); below.
19575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19576 <limits.h> exists even on freestanding compilers. */
19579 # include <limits.h>
19581 # include <assert.h>
19586 /* Override any GCC internal prototype to avoid an error.
19587 Use char because int might match the return type of a GCC
19588 builtin and then its argument prototype would still apply. */
19593 /* The GNU C library defines this for functions which it implements
19594 to always fail with ENOSYS. Some functions are actually named
19595 something starting with __ and the normal name is an alias. */
19596 #if defined __stub_$ac_func || defined __stub___$ac_func
19603 return $ac_func ();
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (ac_try="$ac_link"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_link") 2>conftest.er1
19617 grep -v '^ *+' conftest.er1 >conftest.err
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest$ac_exeext &&
19625 $as_test_x conftest$ac_exeext; then
19626 eval "$as_ac_var=yes"
19628 echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19631 eval "$as_ac_var=no"
19634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19635 conftest$ac_exeext conftest.$ac_ext
19637 ac_res=`eval echo '${'$as_ac_var'}'`
19638 { echo "$as_me:$LINENO: result: $ac_res" >&5
19639 echo "${ECHO_T}$ac_res" >&6; }
19640 if test `eval echo '${'$as_ac_var'}'` = yes; then
19641 cat >>confdefs.h <<_ACEOF
19642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19650 for ac_func in nanosleep nl_langinfo
19652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 cat >conftest.$ac_ext <<_ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19666 #define $ac_func innocuous_$ac_func
19668 /* System header to define __stub macros and hopefully few prototypes,
19669 which can conflict with char $ac_func (); below.
19670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19671 <limits.h> exists even on freestanding compilers. */
19674 # include <limits.h>
19676 # include <assert.h>
19681 /* Override any GCC internal prototype to avoid an error.
19682 Use char because int might match the return type of a GCC
19683 builtin and then its argument prototype would still apply. */
19688 /* The GNU C library defines this for functions which it implements
19689 to always fail with ENOSYS. Some functions are actually named
19690 something starting with __ and the normal name is an alias. */
19691 #if defined __stub_$ac_func || defined __stub___$ac_func
19698 return $ac_func ();
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (ac_try="$ac_link"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_link") 2>conftest.er1
19712 grep -v '^ *+' conftest.er1 >conftest.err
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } && {
19717 test -z "$ac_c_werror_flag" ||
19718 test ! -s conftest.err
19719 } && test -s conftest$ac_exeext &&
19720 $as_test_x conftest$ac_exeext; then
19721 eval "$as_ac_var=yes"
19723 echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19726 eval "$as_ac_var=no"
19729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19730 conftest$ac_exeext conftest.$ac_ext
19732 ac_res=`eval echo '${'$as_ac_var'}'`
19733 { echo "$as_me:$LINENO: result: $ac_res" >&5
19734 echo "${ECHO_T}$ac_res" >&6; }
19735 if test `eval echo '${'$as_ac_var'}'` = yes; then
19736 cat >>confdefs.h <<_ACEOF
19737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19744 for ac_header in varargs.h
19746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 ac_res=`eval echo '${'$as_ac_Header'}'`
19754 { echo "$as_me:$LINENO: result: $ac_res" >&5
19755 echo "${ECHO_T}$ac_res" >&6; }
19757 # Is the header compilable?
19758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19760 cat >conftest.$ac_ext <<_ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19766 $ac_includes_default
19767 #include <$ac_header>
19769 rm -f conftest.$ac_objext
19770 if { (ac_try="$ac_compile"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_compile") 2>conftest.er1
19778 grep -v '^ *+' conftest.er1 >conftest.err
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest.$ac_objext; then
19786 ac_header_compiler=yes
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 ac_header_compiler=no
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19796 echo "${ECHO_T}$ac_header_compiler" >&6; }
19798 # Is the header present?
19799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19801 cat >conftest.$ac_ext <<_ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 #include <$ac_header>
19809 if { (ac_try="$ac_cpp conftest.$ac_ext"
19810 case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19817 grep -v '^ *+' conftest.er1 >conftest.err
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } >/dev/null && {
19822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19823 test ! -s conftest.err
19825 ac_header_preproc=yes
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ac_header_preproc=no
19833 rm -f conftest.err conftest.$ac_ext
19834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19835 echo "${ECHO_T}$ac_header_preproc" >&6; }
19837 # So? What about this header?
19838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19844 ac_header_preproc=yes
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 eval "$as_ac_Header=\$ac_header_preproc"
19869 ac_res=`eval echo '${'$as_ac_Header'}'`
19870 { echo "$as_me:$LINENO: result: $ac_res" >&5
19871 echo "${ECHO_T}$ac_res" >&6; }
19874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19875 cat >>confdefs.h <<_ACEOF
19876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19884 # End of readline/conio stuff
19885 # -----------------------------------------------------------------------
19887 # -----------------------------------------------------------------------
19888 # Check for Python support
19890 { echo "$as_me:$LINENO: checking for Python support" >&5
19891 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
19893 # Check whether --with-python was given.
19894 if test "${with_python+set}" = set; then
19895 withval=$with_python;
19898 if test "$withval" != "no"; then
19899 if test "$withval" = "yes"; then
19900 for python_root in /usr /usr/local /usr/sfw; do
19901 for ver in python2.2 python2.3 python2.4 python2.5; do
19902 if test -f $python_root/include/${ver}/Python.h; then
19903 PYTHON_INCDIR=-I$python_root/include/${ver}
19904 if test -d $python_root/lib64/${ver}/config; then
19905 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
19907 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
19913 if test x$PYTHON_INCDIR = x; then
19914 if test -f $prefix/include/Python.h; then
19915 PYTHON_INCDIR=-I$prefix/include
19916 if test -d $prefix/lib64/config; then
19917 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
19919 PYTHON_LIBS="-L$prefix/lib/config -lpython"
19922 { echo "$as_me:$LINENO: result: no" >&5
19923 echo "${ECHO_T}no" >&6; }
19924 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
19925 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
19926 { (exit 1); exit 1; }; }
19930 if test -f $withval/Python.h; then
19931 PYTHON_INCDIR=-I$withval
19932 PYTHON_LIBS="-L$withval/config -lpython"
19933 elif test -f $withval/include/Python.h; then
19934 PYTHON_INCDIR=-I$withval/include
19935 if test -d $withval/lib64/config; then
19936 PYTHON_LIBS="-L$withval/lib64/config -lpython"
19938 PYTHON_LIBS="-L$withval/lib/config -lpython"
19940 elif test -f $withval/include/python/Python.h; then
19941 PYTHON_INCDIR=-I$withval/include/python
19942 if test -d $withval/lib64/python/config; then
19943 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
19945 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
19948 { echo "$as_me:$LINENO: result: no" >&5
19949 echo "${ECHO_T}no" >&6; }
19950 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
19951 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
19952 { (exit 1); exit 1; }; }
19955 cat >>confdefs.h <<\_ACEOF
19956 #define HAVE_PYTHON 1
19959 { echo "$as_me:$LINENO: result: yes" >&5
19960 echo "${ECHO_T}yes" >&6; }
19962 { echo "$as_me:$LINENO: checking for more Python libs" >&5
19963 echo "$as_me: checking for more Python libs" >&6;}
19964 saved_LIBS="$LIBS"; LIBS=
19965 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
19966 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
19967 if test "${ac_cv_search_shm_open+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 ac_func_search_save_LIBS=$LIBS
19971 cat >conftest.$ac_ext <<_ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19978 /* Override any GCC internal prototype to avoid an error.
19979 Use char because int might match the return type of a GCC
19980 builtin and then its argument prototype would still apply. */
19988 return shm_open ();
19993 for ac_lib in '' rt; do
19994 if test -z "$ac_lib"; then
19995 ac_res="none required"
19998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20000 rm -f conftest.$ac_objext conftest$ac_exeext
20001 if { (ac_try="$ac_link"
20002 case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_link") 2>conftest.er1
20009 grep -v '^ *+' conftest.er1 >conftest.err
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest$ac_exeext &&
20017 $as_test_x conftest$ac_exeext; then
20018 ac_cv_search_shm_open=$ac_res
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20028 if test "${ac_cv_search_shm_open+set}" = set; then
20032 if test "${ac_cv_search_shm_open+set}" = set; then
20035 ac_cv_search_shm_open=no
20037 rm conftest.$ac_ext
20038 LIBS=$ac_func_search_save_LIBS
20040 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
20041 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
20042 ac_res=$ac_cv_search_shm_open
20043 if test "$ac_res" != no; then
20044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20049 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
20050 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
20051 if test "${ac_cv_lib_util_openpty+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 ac_check_lib_save_LIBS=$LIBS
20055 LIBS="-lutil $LIBS"
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20063 /* Override any GCC internal prototype to avoid an error.
20064 Use char because int might match the return type of a GCC
20065 builtin and then its argument prototype would still apply. */
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_link") 2>conftest.er1
20087 grep -v '^ *+' conftest.er1 >conftest.err
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && {
20092 test -z "$ac_c_werror_flag" ||
20093 test ! -s conftest.err
20094 } && test -s conftest$ac_exeext &&
20095 $as_test_x conftest$ac_exeext; then
20096 ac_cv_lib_util_openpty=yes
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_cv_lib_util_openpty=no
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105 conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20108 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
20109 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
20110 if test $ac_cv_lib_util_openpty = yes; then
20111 cat >>confdefs.h <<_ACEOF
20112 #define HAVE_LIBUTIL 1
20115 LIBS="-lutil $LIBS"
20119 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
20122 { echo "$as_me:$LINENO: result: no" >&5
20123 echo "${ECHO_T}no" >&6; }
20128 { echo "$as_me:$LINENO: result: no" >&5
20129 echo "${ECHO_T}no" >&6; }
20137 # Find where sockets are (especially for Solaris)
20138 # Do this before the TCP Wrappers test since tcp wrappers
20139 # uses the socket library and some linkers are stupid.
20141 { echo "$as_me:$LINENO: checking for socket" >&5
20142 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
20143 if test "${ac_cv_func_socket+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20154 #define socket innocuous_socket
20156 /* System header to define __stub macros and hopefully few prototypes,
20157 which can conflict with char socket (); below.
20158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20159 <limits.h> exists even on freestanding compilers. */
20162 # include <limits.h>
20164 # include <assert.h>
20169 /* Override any GCC internal prototype to avoid an error.
20170 Use char because int might match the return type of a GCC
20171 builtin and then its argument prototype would still apply. */
20176 /* The GNU C library defines this for functions which it implements
20177 to always fail with ENOSYS. Some functions are actually named
20178 something starting with __ and the normal name is an alias. */
20179 #if defined __stub_socket || defined __stub___socket
20191 rm -f conftest.$ac_objext conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_link") 2>conftest.er1
20200 grep -v '^ *+' conftest.er1 >conftest.err
20202 cat conftest.err >&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } && {
20205 test -z "$ac_c_werror_flag" ||
20206 test ! -s conftest.err
20207 } && test -s conftest$ac_exeext &&
20208 $as_test_x conftest$ac_exeext; then
20209 ac_cv_func_socket=yes
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 ac_cv_func_socket=no
20217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20218 conftest$ac_exeext conftest.$ac_ext
20220 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20221 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
20222 if test $ac_cv_func_socket = yes; then
20223 { echo "$as_me:$LINENO: result: using libc's socket" >&5
20224 echo "${ECHO_T}using libc's socket" >&6; }
20227 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
20228 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
20229 if test "${ac_cv_lib_xnet_socket+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20232 ac_check_lib_save_LIBS=$LIBS
20233 LIBS="-lxnet $LIBS"
20234 cat >conftest.$ac_ext <<_ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20241 /* Override any GCC internal prototype to avoid an error.
20242 Use char because int might match the return type of a GCC
20243 builtin and then its argument prototype would still apply. */
20256 rm -f conftest.$ac_objext conftest$ac_exeext
20257 if { (ac_try="$ac_link"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_link") 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && {
20270 test -z "$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20272 } && test -s conftest$ac_exeext &&
20273 $as_test_x conftest$ac_exeext; then
20274 ac_cv_lib_xnet_socket=yes
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20279 ac_cv_lib_xnet_socket=no
20282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20283 conftest$ac_exeext conftest.$ac_ext
20284 LIBS=$ac_check_lib_save_LIBS
20286 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
20287 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
20288 if test $ac_cv_lib_xnet_socket = yes; then
20289 cat >>confdefs.h <<_ACEOF
20290 #define HAVE_LIBXNET 1
20293 LIBS="-lxnet $LIBS"
20298 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20299 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
20300 if test "${ac_cv_lib_socket_socket+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 ac_check_lib_save_LIBS=$LIBS
20304 LIBS="-lsocket $LIBS"
20305 cat >conftest.$ac_ext <<_ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20312 /* Override any GCC internal prototype to avoid an error.
20313 Use char because int might match the return type of a GCC
20314 builtin and then its argument prototype would still apply. */
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (ac_try="$ac_link"
20329 case "(($ac_try" in
20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331 *) ac_try_echo=$ac_try;;
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334 (eval "$ac_link") 2>conftest.er1
20336 grep -v '^ *+' conftest.er1 >conftest.err
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } && {
20341 test -z "$ac_c_werror_flag" ||
20342 test ! -s conftest.err
20343 } && test -s conftest$ac_exeext &&
20344 $as_test_x conftest$ac_exeext; then
20345 ac_cv_lib_socket_socket=yes
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ac_cv_lib_socket_socket=no
20353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20354 conftest$ac_exeext conftest.$ac_ext
20355 LIBS=$ac_check_lib_save_LIBS
20357 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20358 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
20359 if test $ac_cv_lib_socket_socket = yes; then
20360 cat >>confdefs.h <<_ACEOF
20361 #define HAVE_LIBSOCKET 1
20364 LIBS="-lsocket $LIBS"
20369 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
20370 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
20371 if test "${ac_cv_lib_inet_socket+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 ac_check_lib_save_LIBS=$LIBS
20375 LIBS="-linet $LIBS"
20376 cat >conftest.$ac_ext <<_ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20383 /* Override any GCC internal prototype to avoid an error.
20384 Use char because int might match the return type of a GCC
20385 builtin and then its argument prototype would still apply. */
20398 rm -f conftest.$ac_objext conftest$ac_exeext
20399 if { (ac_try="$ac_link"
20400 case "(($ac_try" in
20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402 *) ac_try_echo=$ac_try;;
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405 (eval "$ac_link") 2>conftest.er1
20407 grep -v '^ *+' conftest.er1 >conftest.err
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && {
20412 test -z "$ac_c_werror_flag" ||
20413 test ! -s conftest.err
20414 } && test -s conftest$ac_exeext &&
20415 $as_test_x conftest$ac_exeext; then
20416 ac_cv_lib_inet_socket=yes
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 ac_cv_lib_inet_socket=no
20424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20425 conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20428 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
20429 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
20430 if test $ac_cv_lib_inet_socket = yes; then
20431 cat >>confdefs.h <<_ACEOF
20432 #define HAVE_LIBINET 1
20435 LIBS="-linet $LIBS"
20443 # -----------------------------------------------------------
20444 # Check whether user wants TCP wrappers support (default off)
20445 # -----------------------------------------------------------
20449 # Check whether --with-tcp-wrappers was given.
20450 if test "${with_tcp_wrappers+set}" = set; then
20451 withval=$with_tcp_wrappers;
20452 if test "x$withval" != "xno" ; then
20454 LIBS="$saved_LIBS -lwrap"
20455 { echo "$as_me:$LINENO: checking for libwrap" >&5
20456 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
20457 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
20458 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
20459 if test "${ac_cv_search_nanosleep+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 ac_func_search_save_LIBS=$LIBS
20463 cat >conftest.$ac_ext <<_ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20470 /* Override any GCC internal prototype to avoid an error.
20471 Use char because int might match the return type of a GCC
20472 builtin and then its argument prototype would still apply. */
20480 return nanosleep ();
20485 for ac_lib in '' rt; do
20486 if test -z "$ac_lib"; then
20487 ac_res="none required"
20490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20492 rm -f conftest.$ac_objext conftest$ac_exeext
20493 if { (ac_try="$ac_link"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_link") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest$ac_exeext &&
20509 $as_test_x conftest$ac_exeext; then
20510 ac_cv_search_nanosleep=$ac_res
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20520 if test "${ac_cv_search_nanosleep+set}" = set; then
20524 if test "${ac_cv_search_nanosleep+set}" = set; then
20527 ac_cv_search_nanosleep=no
20529 rm conftest.$ac_ext
20530 LIBS=$ac_func_search_save_LIBS
20532 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
20533 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
20534 ac_res=$ac_cv_search_nanosleep
20535 if test "$ac_res" != no; then
20536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20540 cat >conftest.$ac_ext <<_ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20546 #include <sys/types.h>
20548 int deny_severity = 0;
20549 int allow_severity = 0;
20550 struct request_info *req;
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest$ac_exeext &&
20576 $as_test_x conftest$ac_exeext; then
20578 { echo "$as_me:$LINENO: result: yes" >&5
20579 echo "${ECHO_T}yes" >&6; }
20581 cat >>confdefs.h <<\_ACEOF
20582 #define HAVE_LIBWRAP 1
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20594 LIBS="$saved_LIBS -lwrap -lnsl"
20595 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
20596 cat >conftest.$ac_ext <<_ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 #include <sys/types.h>
20604 int deny_severity = 0;
20605 int allow_severity = 0;
20606 struct request_info *req;
20615 rm -f conftest.$ac_objext conftest$ac_exeext
20616 if { (ac_try="$ac_link"
20617 case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_link") 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } && {
20629 test -z "$ac_c_werror_flag" ||
20630 test ! -s conftest.err
20631 } && test -s conftest$ac_exeext &&
20632 $as_test_x conftest$ac_exeext; then
20634 { echo "$as_me:$LINENO: result: yes" >&5
20635 echo "${ECHO_T}yes" >&6; }
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_LIBWRAP 1
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
20650 echo "$as_me: error: *** libwrap missing" >&2;}
20651 { (exit 1); exit 1; }; }
20655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20656 conftest$ac_exeext conftest.$ac_ext
20660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20661 conftest$ac_exeext conftest.$ac_ext
20668 # -----------------------------------------------------------
20669 # Check whether OpenSSL is available
20670 # -----------------------------------------------------------
20671 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
20672 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
20674 # Check whether --with-openssl was given.
20675 if test "${with_openssl+set}" = set; then
20676 withval=$with_openssl; with_openssl_directory=${withval}
20680 if test "x$with_openssl_directory" != "x"; then
20681 OPENSSL_LIBS="-lssl -lcrypto"
20684 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
20685 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
20686 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
20689 saved_LIBS="${LIBS}"
20690 saved_CFLAGS="${CFLAGS}"
20691 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
20692 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 #include <openssl/ssl.h>
20704 CRYPTO_set_id_callback(NULL);
20709 rm -f conftest.$ac_objext conftest$ac_exeext
20710 if { (ac_try="$ac_link"
20711 case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_link") 2>conftest.er1
20718 grep -v '^ *+' conftest.er1 >conftest.err
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } && {
20723 test -z "$ac_c_werror_flag" ||
20724 test ! -s conftest.err
20725 } && test -s conftest$ac_exeext &&
20726 $as_test_x conftest$ac_exeext; then
20729 support_crypto="yes"
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20740 conftest$ac_exeext conftest.$ac_ext
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #include <openssl/evp.h>
20757 rm -f conftest.$ac_objext conftest$ac_exeext
20758 if { (ac_try="$ac_link"
20759 case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_link") 2>conftest.er1
20766 grep -v '^ *+' conftest.er1 >conftest.err
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && {
20771 test -z "$ac_c_werror_flag" ||
20772 test ! -s conftest.err
20773 } && test -s conftest$ac_exeext &&
20774 $as_test_x conftest$ac_exeext; then
20775 ac_cv_openssl_sha2="yes"
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 ac_cv_openssl_sha2="no"
20784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20785 conftest$ac_exeext conftest.$ac_ext
20787 # Solaris disables greater than 128+ bit encryption in their OpenSSL
20788 # implementation, presumably for export reasons. If 192bit AES
20789 # is available, we assume that we're running with a 'non-export'
20791 cat >conftest.$ac_ext <<_ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20797 #include <openssl/evp.h>
20806 rm -f conftest.$ac_objext conftest$ac_exeext
20807 if { (ac_try="$ac_link"
20808 case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_link") 2>conftest.er1
20815 grep -v '^ *+' conftest.er1 >conftest.err
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest$ac_exeext &&
20823 $as_test_x conftest$ac_exeext; then
20824 ac_cv_openssl_export="no"
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 ac_cv_openssl_export="yes"
20833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20834 conftest$ac_exeext conftest.$ac_ext
20836 LIBS="${saved_LIBS}"
20837 CFLAGS="${saved_CFLAGS}"
20839 if test "$support_tls" = "yes"; then
20841 cat >>confdefs.h <<\_ACEOF
20842 #define HAVE_OPENSSL 1
20846 cat >>confdefs.h <<\_ACEOF
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_CRYPTO 1
20857 if test "$ac_cv_openssl_sha2" = "yes"; then
20859 cat >>confdefs.h <<\_ACEOF
20860 #define HAVE_SHA2 1
20865 if test "$ac_cv_openssl_export" = "yes"; then
20867 cat >>confdefs.h <<\_ACEOF
20868 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
20874 support_crypto="no"
20879 { echo "$as_me:$LINENO: result: $support_tls" >&5
20880 echo "${ECHO_T}$support_tls" >&6; }
20885 # -----------------------------------------------------------
20886 # dlopen is needed for plugins
20887 # -----------------------------------------------------------
20888 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
20889 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
20890 if test "${ac_cv_search_dlopen+set}" = set; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 ac_func_search_save_LIBS=$LIBS
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20901 /* Override any GCC internal prototype to avoid an error.
20902 Use char because int might match the return type of a GCC
20903 builtin and then its argument prototype would still apply. */
20916 for ac_lib in '' dl; do
20917 if test -z "$ac_lib"; then
20918 ac_res="none required"
20921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20923 rm -f conftest.$ac_objext conftest$ac_exeext
20924 if { (ac_try="$ac_link"
20925 case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_link") 2>conftest.er1
20932 grep -v '^ *+' conftest.er1 >conftest.err
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest$ac_exeext &&
20940 $as_test_x conftest$ac_exeext; then
20941 ac_cv_search_dlopen=$ac_res
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20951 if test "${ac_cv_search_dlopen+set}" = set; then
20955 if test "${ac_cv_search_dlopen+set}" = set; then
20958 ac_cv_search_dlopen=no
20960 rm conftest.$ac_ext
20961 LIBS=$ac_func_search_save_LIBS
20963 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
20964 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
20965 ac_res=$ac_cv_search_dlopen
20966 if test "$ac_res" != no; then
20967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20972 # ------------------------------------------
20973 # Where to place working dir
20974 # ------------------------------------------
20975 working_dir=`eval echo ${prefix}/var/bacula/working`
20977 # Check whether --with-working-dir was given.
20978 if test "${with_working_dir+set}" = set; then
20979 withval=$with_working_dir;
20980 if test "x$withval" != "xno" ; then
20981 working_dir=$withval
20990 # ------------------------------------------------------------------
20991 # If the user has not set archivedir, we set our default as /tmp
20992 # ------------------------------------------------------------------
20995 # Check whether --with-archivedir was given.
20996 if test "${with_archivedir+set}" = set; then
20997 withval=$with_archivedir;
20998 if test "x$withval" != "xno" ; then
20999 archivedir=$withval
21010 # ------------------------------------------
21011 # Where to place scriptdir (script files)
21012 # ------------------------------------------
21013 scriptdir=`eval echo ${sysconfdir}`
21015 # Check whether --with-scriptdir was given.
21016 if test "${with_scriptdir+set}" = set; then
21017 withval=$with_scriptdir;
21018 if test "x$withval" != "xno" ; then
21029 # ------------------------------------------
21030 # Where to place plugindir (script files)
21031 # ------------------------------------------
21032 plugindir=`eval echo ${sysconfdir}`
21034 # Check whether --with-plugindir was given.
21035 if test "${with_plugindir+set}" = set; then
21036 withval=$with_plugindir;
21037 if test "x$withval" != "xno" ; then
21048 # ------------------------------------------
21049 # Where to send dump email
21050 # ------------------------------------------
21051 dump_email=root@localhost
21053 # Check whether --with-dump-email was given.
21054 if test "${with_dump_email+set}" = set; then
21055 withval=$with_dump_email;
21056 if test "x$withval" != "xno" ; then
21057 dump_email=$withval
21066 # ------------------------------------------
21067 # Where to send job email
21068 # ------------------------------------------
21069 job_email=root@localhost
21071 # Check whether --with-job-email was given.
21072 if test "${with_job_email+set}" = set; then
21073 withval=$with_job_email;
21074 if test "x$withval" != "xno" ; then
21084 # ------------------------------------------
21085 # Where to find smtp host
21086 # ------------------------------------------
21087 smtp_host=localhost
21089 # Check whether --with-smtp_host was given.
21090 if test "${with_smtp_host+set}" = set; then
21091 withval=$with_smtp_host;
21092 if test "x$withval" != "xno" ; then
21103 # ------------------------------------
21104 # Where to place pid files
21105 # ------------------------------------
21108 # Check whether --with-pid-dir was given.
21109 if test "${with_pid_dir+set}" = set; then
21110 withval=$with_pid_dir;
21111 if test "x$withval" != "xno" ; then
21119 cat >>confdefs.h <<_ACEOF
21120 #define _PATH_BACULA_PIDDIR "$piddir"
21126 # ------------------------------------
21127 # Where to place subsys "lock file"
21128 # ------------------------------------
21129 subsysdir=/var/run/subsys
21130 if test -d /var/run/subsys; then
21131 subsysdir=/var/run/subsys
21132 elif test -d /var/lock/subsys; then
21133 subsysdir=/var/lock/subsys
21135 subsysdir=/var/run/subsys
21138 # Check whether --with-subsys-dir was given.
21139 if test "${with_subsys_dir+set}" = set; then
21140 withval=$with_subsys_dir;
21141 if test "x$withval" != "xno" ; then
21153 # ------------------------------------
21154 # Where to start assigning ports
21155 # ------------------------------------
21158 # Check whether --with-baseport was given.
21159 if test "${with_baseport+set}" = set; then
21160 withval=$with_baseport;
21161 if test "x$withval" != "xno" ; then
21170 dir_port=`expr $baseport`
21171 fd_port=`expr $baseport + 1`
21172 sd_port=`expr $fd_port + 1`
21179 # ------------------------------------------
21180 # Generate passwords
21181 # ------------------------------------------
21184 # Check whether --with-dir-password was given.
21185 if test "${with_dir_password+set}" = set; then
21186 withval=$with_dir_password;
21187 if test "x$withval" != "xno" ; then
21188 dir_password=$withval
21195 if test "x$dir_password" = "x" ; then
21196 if test "x$OPENSSL" = "xnone" ; then
21197 key=`autoconf/randpass 33`
21199 key=`openssl rand -base64 33`
21206 # Check whether --with-fd-password was given.
21207 if test "${with_fd_password+set}" = set; then
21208 withval=$with_fd_password;
21209 if test "x$withval" != "xno" ; then
21210 fd_password=$withval
21217 if test "x$fd_password" = "x" ; then
21218 if test "x$OPENSSL" = "xnone" ; then
21219 key=`autoconf/randpass 37`
21221 key=`openssl rand -base64 33`
21228 # Check whether --with-sd-password was given.
21229 if test "${with_sd_password+set}" = set; then
21230 withval=$with_sd_password;
21231 if test "x$withval" != "xno" ; then
21232 sd_password=$withval
21239 if test "x$sd_password" = "x" ; then
21240 if test "x$OPENSSL" = "xnone" ; then
21241 key=`autoconf/randpass 41`
21243 key=`openssl rand -base64 33`
21250 # Check whether --with-mon-dir-password was given.
21251 if test "${with_mon_dir_password+set}" = set; then
21252 withval=$with_mon_dir_password;
21253 if test "x$withval" != "xno" ; then
21254 mon_dir_password=$withval
21261 if test "x$mon_dir_password" = "x" ; then
21262 if test "x$OPENSSL" = "xnone" ; then
21263 key=`autoconf/randpass 33`
21265 key=`openssl rand -base64 33`
21267 mon_dir_password=$key
21272 # Check whether --with-mon-fd-password was given.
21273 if test "${with_mon_fd_password+set}" = set; then
21274 withval=$with_mon_fd_password;
21275 if test "x$withval" != "xno" ; then
21276 mon_fd_password=$withval
21283 if test "x$mon_fd_password" = "x" ; then
21284 if test "x$OPENSSL" = "xnone" ; then
21285 key=`autoconf/randpass 37`
21287 key=`openssl rand -base64 33`
21289 mon_fd_password=$key
21294 # Check whether --with-mon-sd-password was given.
21295 if test "${with_mon_sd_password+set}" = set; then
21296 withval=$with_mon_sd_password;
21297 if test "x$withval" != "xno" ; then
21298 mon_sd_password=$withval
21305 if test "x$mon_sd_password" = "x" ; then
21306 if test "x$OPENSSL" = "xnone" ; then
21307 key=`autoconf/randpass 41`
21309 key=`openssl rand -base64 33`
21311 mon_sd_password=$key
21322 # Pickup any database name
21326 # Check whether --with-db_name was given.
21327 if test "${with_db_name+set}" = set; then
21328 withval=$with_db_name;
21329 if test "x$withval" != "x" ; then
21340 # Check whether --with-db_user was given.
21341 if test "${with_db_user+set}" = set; then
21342 withval=$with_db_user;
21343 if test "x$withval" != "x" ; then
21354 # Check whether --with-db_password was given.
21355 if test "${with_db_password+set}" = set; then
21356 withval=$with_db_password;
21357 if test "x$withval" != "x" ; then
21358 db_password=$withval
21367 # Pickup a database port
21371 # Check whether --with-db_port was given.
21372 if test "${with_db_port+set}" = set; then
21373 withval=$with_db_port;
21374 if test "x$withval" != "x" ; then
21384 # Handle users and groups for each daemon
21388 # Check whether --with-dir_user was given.
21389 if test "${with_dir_user+set}" = set; then
21390 withval=$with_dir_user;
21391 if test "x$withval" != "x" ; then
21401 # Check whether --with-dir_group was given.
21402 if test "${with_dir_group+set}" = set; then
21403 withval=$with_dir_group;
21404 if test "x$withval" != "x" ; then
21414 # Check whether --with-sd_user was given.
21415 if test "${with_sd_user+set}" = set; then
21416 withval=$with_sd_user;
21417 if test "x$withval" != "x" ; then
21427 # Check whether --with-sd_group was given.
21428 if test "${with_sd_group+set}" = set; then
21429 withval=$with_sd_group;
21430 if test "x$withval" != "x" ; then
21440 # Check whether --with-fd_user was given.
21441 if test "${with_fd_user+set}" = set; then
21442 withval=$with_fd_user;
21443 if test "x$withval" != "x" ; then
21453 # Check whether --with-fd_group was given.
21454 if test "${with_fd_group+set}" = set; then
21455 withval=$with_fd_group;
21456 if test "x$withval" != "x" ; then
21472 # allow setting default executable permissions
21476 # Check whether --with-sbin-perm was given.
21477 if test "${with_sbin_perm+set}" = set; then
21478 withval=$with_sbin_perm;
21479 if test "x$withval" != "x" ; then
21489 # ------------------------------------------------
21490 # Bacula check for various SQL database engines
21491 # ------------------------------------------------
21495 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
21496 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
21498 # Check whether --with-postgresql was given.
21499 if test "${with_postgresql+set}" = set; then
21500 withval=$with_postgresql;
21501 if test "$withval" != "no"; then
21502 if test "$db_found" = "yes"; then
21503 { echo "$as_me:$LINENO: result: error" >&5
21504 echo "${ECHO_T}error" >&6; }
21505 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
21506 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
21507 { (exit 1); exit 1; }; };
21509 if test "$withval" = "yes"; then
21510 PG_CONFIG=`which pg_config`
21511 if test -n "$PG_CONFIG";then
21512 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
21513 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
21514 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
21515 elif test -f /usr/local/include/libpq-fe.h; then
21516 POSTGRESQL_INCDIR=/usr/local/include
21517 if test -d /usr/local/lib64; then
21518 POSTGRESQL_LIBDIR=/usr/local/lib64
21520 POSTGRESQL_LIBDIR=/usr/local/lib
21522 POSTGRESQL_BINDIR=/usr/local/bin
21523 elif test -f /usr/include/libpq-fe.h; then
21524 POSTGRESQL_INCDIR=/usr/include
21525 if test -d /usr/lib64; then
21526 POSTGRESQL_LIBDIR=/usr/lib64
21528 POSTGRESQL_LIBDIR=/usr/lib
21530 POSTGRESQL_BINDIR=/usr/bin
21531 elif test -f /usr/include/pgsql/libpq-fe.h; then
21532 POSTGRESQL_INCDIR=/usr/include/pgsql
21533 if test -d /usr/lib64/pgsql; then
21534 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
21536 POSTGRESQL_LIBDIR=/usr/lib/pgsql
21538 POSTGRESQL_BINDIR=/usr/bin
21539 elif test -f /usr/include/postgresql/libpq-fe.h; then
21540 POSTGRESQL_INCDIR=/usr/include/postgresql
21541 if test -d /usr/lib64/postgresql; then
21542 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
21544 POSTGRESQL_LIBDIR=/usr/lib/postgresql
21546 POSTGRESQL_BINDIR=/usr/bin
21548 { echo "$as_me:$LINENO: result: no" >&5
21549 echo "${ECHO_T}no" >&6; }
21550 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
21551 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
21552 { (exit 1); exit 1; }; }
21554 elif test -f $withval/include/libpq-fe.h; then
21555 POSTGRESQL_INCDIR=$withval/include
21556 POSTGRESQL_LIBDIR=$withval/lib
21557 POSTGRESQL_BINDIR=$withval/bin
21558 elif test -f $withval/include/postgresql/libpq-fe.h; then
21559 POSTGRESQL_INCDIR=$withval/include/postgresql
21560 if test -d $withval/lib64; then
21561 POSTGRESQL_LIBDIR=$withval/lib64
21563 POSTGRESQL_LIBDIR=$withval/lib
21565 POSTGRESQL_BINDIR=$withval/bin
21567 { echo "$as_me:$LINENO: result: no" >&5
21568 echo "${ECHO_T}no" >&6; }
21569 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
21570 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
21571 { (exit 1); exit 1; }; }
21573 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
21574 { echo "$as_me:$LINENO: checking for crypt" >&5
21575 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
21576 if test "${ac_cv_func_crypt+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
21586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21587 #define crypt innocuous_crypt
21589 /* System header to define __stub macros and hopefully few prototypes,
21590 which can conflict with char crypt (); below.
21591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21592 <limits.h> exists even on freestanding compilers. */
21595 # include <limits.h>
21597 # include <assert.h>
21602 /* Override any GCC internal prototype to avoid an error.
21603 Use char because int might match the return type of a GCC
21604 builtin and then its argument prototype would still apply. */
21609 /* The GNU C library defines this for functions which it implements
21610 to always fail with ENOSYS. Some functions are actually named
21611 something starting with __ and the normal name is an alias. */
21612 #if defined __stub_crypt || defined __stub___crypt
21624 rm -f conftest.$ac_objext conftest$ac_exeext
21625 if { (ac_try="$ac_link"
21626 case "(($ac_try" in
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_link") 2>conftest.er1
21633 grep -v '^ *+' conftest.er1 >conftest.err
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && {
21638 test -z "$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21640 } && test -s conftest$ac_exeext &&
21641 $as_test_x conftest$ac_exeext; then
21642 ac_cv_func_crypt=yes
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21647 ac_cv_func_crypt=no
21650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21651 conftest$ac_exeext conftest.$ac_ext
21653 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
21654 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
21655 if test $ac_cv_func_crypt = yes; then
21658 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21659 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21660 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 ac_check_lib_save_LIBS=$LIBS
21664 LIBS="-lcrypt $LIBS"
21665 cat >conftest.$ac_ext <<_ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21672 /* Override any GCC internal prototype to avoid an error.
21673 Use char because int might match the return type of a GCC
21674 builtin and then its argument prototype would still apply. */
21687 rm -f conftest.$ac_objext conftest$ac_exeext
21688 if { (ac_try="$ac_link"
21689 case "(($ac_try" in
21690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694 (eval "$ac_link") 2>conftest.er1
21696 grep -v '^ *+' conftest.er1 >conftest.err
21698 cat conftest.err >&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest$ac_exeext &&
21704 $as_test_x conftest$ac_exeext; then
21705 ac_cv_lib_crypt_crypt=yes
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 ac_cv_lib_crypt_crypt=no
21713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21714 conftest$ac_exeext conftest.$ac_ext
21715 LIBS=$ac_check_lib_save_LIBS
21717 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21718 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21719 if test $ac_cv_lib_crypt_crypt = yes; then
21720 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
21725 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
21726 SQL_LFLAGS=$POSTGRESQL_LFLAGS
21727 SQL_BINDIR=$POSTGRESQL_BINDIR
21728 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
21730 cat >>confdefs.h <<\_ACEOF
21731 #define HAVE_POSTGRESQL 1
21734 { echo "$as_me:$LINENO: result: yes" >&5
21735 echo "${ECHO_T}yes" >&6; }
21737 support_postgresql=yes
21741 { echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6; }
21747 { echo "$as_me:$LINENO: result: no" >&5
21748 echo "${ECHO_T}no" >&6; }
21760 { echo "$as_me:$LINENO: checking for MySQL support" >&5
21761 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
21763 # Check whether --with-mysql was given.
21764 if test "${with_mysql+set}" = set; then
21765 withval=$with_mysql;
21766 if test "$withval" != "no"; then
21767 if test "$withval" = "yes"; then
21768 if test -f /usr/local/mysql/include/mysql/mysql.h; then
21769 MYSQL_INCDIR=/usr/local/mysql/include/mysql
21770 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
21771 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
21772 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
21774 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
21776 MYSQL_BINDIR=/usr/local/mysql/bin
21777 elif test -f /usr/include/mysql/mysql.h; then
21778 MYSQL_INCDIR=/usr/include/mysql
21779 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
21780 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
21781 MYSQL_LIBDIR=/usr/lib64/mysql
21782 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
21783 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
21784 MYSQL_LIBDIR=/usr/lib/mysql
21786 MYSQL_LIBDIR=/usr/lib
21788 MYSQL_BINDIR=/usr/bin
21789 elif test -f /usr/include/mysql.h; then
21790 MYSQL_INCDIR=/usr/include
21791 if test -f /usr/lib64/libmysqlclient_r.a \
21792 -o -f /usr/lib64/libmysqlclient_r.so; then
21793 MYSQL_LIBDIR=/usr/lib64
21795 MYSQL_LIBDIR=/usr/lib
21797 MYSQL_BINDIR=/usr/bin
21798 elif test -f /usr/local/include/mysql/mysql.h; then
21799 MYSQL_INCDIR=/usr/local/include/mysql
21800 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
21801 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
21802 MYSQL_LIBDIR=/usr/local/lib64/mysql
21804 MYSQL_LIBDIR=/usr/local/lib/mysql
21806 MYSQL_BINDIR=/usr/local/bin
21807 elif test -f /usr/local/include/mysql.h; then
21808 MYSQL_INCDIR=/usr/local/include
21809 if test -f /usr/local/lib64/libmysqlclient_r.a \
21810 -o -f /usr/local/lib64/libmysqlclient_r.so; then
21811 MYSQL_LIBDIR=/usr/local/lib64
21813 MYSQL_LIBDIR=/usr/local/lib
21815 MYSQL_BINDIR=/usr/local/bin
21817 { echo "$as_me:$LINENO: result: no" >&5
21818 echo "${ECHO_T}no" >&6; }
21819 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
21820 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
21821 { (exit 1); exit 1; }; }
21824 if test -f $withval/include/mysql/mysql.h; then
21825 MYSQL_INCDIR=$withval/include/mysql
21826 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
21827 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
21828 MYSQL_LIBDIR=$withval/lib64/mysql
21830 MYSQL_LIBDIR=$withval/lib/mysql
21832 if test -f $withval/lib/libmysqlclient_r.so; then
21833 MYSQL_LIBDIR=$withval/lib
21836 MYSQL_BINDIR=$withval/bin
21837 elif test -f $withval/include/mysql.h; then
21838 MYSQL_INCDIR=$withval/include
21839 if test -f $withval/lib64/libmysqlclient_r.a \
21840 -o -f $withval/lib64/libmysqlclient_r.so; then
21841 MYSQL_LIBDIR=$withval/lib64
21843 MYSQL_LIBDIR=$withval/lib
21845 MYSQL_BINDIR=$withval/bin
21847 { echo "$as_me:$LINENO: result: no" >&5
21848 echo "${ECHO_T}no" >&6; }
21849 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
21850 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
21851 { (exit 1); exit 1; }; }
21854 SQL_INCLUDE=-I$MYSQL_INCDIR
21855 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
21856 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
21857 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
21858 cat >>confdefs.h <<\_ACEOF
21859 #define HAVE_THREAD_SAFE_MYSQL 1
21863 SQL_BINDIR=$MYSQL_BINDIR
21864 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
21866 cat >>confdefs.h <<\_ACEOF
21867 #define HAVE_MYSQL 1
21870 { echo "$as_me:$LINENO: result: yes" >&5
21871 echo "${ECHO_T}yes" >&6; }
21878 { echo "$as_me:$LINENO: result: no" >&5
21879 echo "${ECHO_T}no" >&6; }
21887 # Check whether --with-embedded-mysql was given.
21888 if test "${with_embedded_mysql+set}" = set; then
21889 withval=$with_embedded_mysql;
21890 if test "$withval" != "no"; then
21891 if test "$withval" = "yes"; then
21892 if test -f /usr/local/mysql/include/mysql/mysql.h; then
21893 MYSQL_INCDIR=/usr/local/mysql/include/mysql
21894 if test -d /usr/local/mysql/lib64/mysql; then
21895 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
21897 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
21899 MYSQL_BINDIR=/usr/local/mysql/bin
21900 elif test -f /usr/include/mysql/mysql.h; then
21901 MYSQL_INCDIR=/usr/include/mysql
21902 if test -d /usr/lib64/mysql; then
21903 MYSQL_LIBDIR=/usr/lib64/mysql
21905 MYSQL_LIBDIR=/usr/lib/mysql
21907 MYSQL_BINDIR=/usr/bin
21908 elif test -f /usr/include/mysql.h; then
21909 MYSQL_INCDIR=/usr/include
21910 if test -d /usr/lib64; then
21911 MYSQL_LIBDIR=/usr/lib64
21913 MYSQL_LIBDIR=/usr/lib
21915 MYSQL_BINDIR=/usr/bin
21916 elif test -f /usr/local/include/mysql/mysql.h; then
21917 MYSQL_INCDIR=/usr/local/include/mysql
21918 if test -d /usr/local/lib64/mysql; then
21919 MYSQL_LIBDIR=/usr/local/lib64/mysql
21921 MYSQL_LIBDIR=/usr/local/lib/mysql
21923 MYSQL_BINDIR=/usr/local/bin
21924 elif test -f /usr/local/include/mysql.h; then
21925 MYSQL_INCDIR=/usr/local/include
21926 if test -d /usr/local/lib64; then
21927 MYSQL_LIBDIR=/usr/local/lib64
21929 MYSQL_LIBDIR=/usr/local/lib
21931 MYSQL_BINDIR=/usr/local/bin
21933 { echo "$as_me:$LINENO: result: no" >&5
21934 echo "${ECHO_T}no" >&6; }
21935 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
21936 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
21937 { (exit 1); exit 1; }; }
21940 if test -f $withval/include/mysql/mysql.h; then
21941 MYSQL_INCDIR=$withval/include/mysql
21942 if test -d $withval/lib64/mysql; then
21943 MYSQL_LIBDIR=$withval/lib64/mysql
21945 MYSQL_LIBDIR=$withval/lib/mysql
21947 MYSQL_BINDIR=$withval/bin
21948 elif test -f $withval/include/mysql.h; then
21949 MYSQL_INCDIR=$withval/include
21950 if test -d $withval/lib64; then
21951 MYSQL_LIBDIR=$withval/lib64
21953 MYSQL_LIBDIR=$withval/lib
21955 MYSQL_BINDIR=$withval/bin
21957 { echo "$as_me:$LINENO: result: no" >&5
21958 echo "${ECHO_T}no" >&6; }
21959 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
21960 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
21961 { (exit 1); exit 1; }; }
21964 SQL_INCLUDE=-I$MYSQL_INCDIR
21965 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
21966 SQL_BINDIR=$MYSQL_BINDIR
21967 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
21969 cat >>confdefs.h <<\_ACEOF
21970 #define HAVE_MYSQL 1
21973 cat >>confdefs.h <<\_ACEOF
21974 #define HAVE_EMBEDDED_MYSQL 1
21977 { echo "$as_me:$LINENO: result: yes" >&5
21978 echo "${ECHO_T}yes" >&6; }
21985 { echo "$as_me:$LINENO: result: no" >&5
21986 echo "${ECHO_T}no" >&6; }
22002 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
22003 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
22005 # Check whether --with-sqlite3 was given.
22006 if test "${with_sqlite3+set}" = set; then
22007 withval=$with_sqlite3;
22008 if test "$withval" != "no"; then
22009 if test "$withval" = "yes"; then
22010 if test -f /usr/local/include/sqlite3.h; then
22011 SQLITE_INCDIR=/usr/local/include
22012 if test -d /usr/local/lib64; then
22013 SQLITE_LIBDIR=/usr/local/lib64
22015 SQLITE_LIBDIR=/usr/local/lib
22017 SQLITE_BINDIR=/usr/local/bin
22018 elif test -f /usr/include/sqlite3.h; then
22019 SQLITE_INCDIR=/usr/include
22020 if test -d /usr/lib64; then
22021 SQLITE_LIBDIR=/usr/lib64
22023 SQLITE_LIBDIR=/usr/lib
22025 SQLITE_BINDIR=/usr/bin
22026 elif test -f $prefix/include/sqlite3.h; then
22027 SQLITE_INCDIR=$prefix/include
22028 if test -d $prefix/lib64; then
22029 SQLITE_LIBDIR=$prefix/lib64
22031 SQLITE_LIBDIR=$prefix/lib
22033 SQLITE_BINDIR=$prefix/bin
22035 { echo "$as_me:$LINENO: result: no" >&5
22036 echo "${ECHO_T}no" >&6; }
22037 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
22038 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
22039 { (exit 1); exit 1; }; }
22042 if test -f $withval/sqlite3.h; then
22043 SQLITE_INCDIR=$withval
22044 SQLITE_LIBDIR=$withval
22045 SQLITE_BINDIR=$withval
22046 elif test -f $withval/include/sqlite3.h; then
22047 SQLITE_INCDIR=$withval/include
22048 if test -d $withval/lib64; then
22049 SQLITE_LIBDIR=$withval/lib64
22051 SQLITE_LIBDIR=$withval/lib
22053 SQLITE_BINDIR=$withval/bin
22055 { echo "$as_me:$LINENO: result: no" >&5
22056 echo "${ECHO_T}no" >&6; }
22057 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
22058 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
22059 { (exit 1); exit 1; }; }
22062 SQL_INCLUDE=-I$SQLITE_INCDIR
22063 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
22064 SQL_BINDIR=$SQLITE_BINDIR
22065 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
22067 cat >>confdefs.h <<\_ACEOF
22068 #define HAVE_SQLITE3 1
22071 { echo "$as_me:$LINENO: result: yes" >&5
22072 echo "${ECHO_T}yes" >&6; }
22074 support_sqlite3=yes
22079 { echo "$as_me:$LINENO: result: no" >&5
22080 echo "${ECHO_T}no" >&6; }
22085 { echo "$as_me:$LINENO: result: no" >&5
22086 echo "${ECHO_T}no" >&6; }
22098 { echo "$as_me:$LINENO: checking for SQLite support" >&5
22099 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
22101 # Check whether --with-sqlite was given.
22102 if test "${with_sqlite+set}" = set; then
22103 withval=$with_sqlite;
22104 if test "$withval" != "no"; then
22105 if test "$withval" = "yes"; then
22106 if test -f /usr/local/include/sqlite.h; then
22107 SQLITE_INCDIR=/usr/local/include
22108 if test -d /usr/local/lib64; then
22109 SQLITE_LIBDIR=/usr/local/lib64
22111 SQLITE_LIBDIR=/usr/local/lib
22113 SQLITE_BINDIR=/usr/local/bin
22114 elif test -f /usr/include/sqlite.h; then
22115 SQLITE_INCDIR=/usr/include
22116 if test -d /usr/lib64; then
22117 SQLITE_LIBDIR=/usr/lib64
22119 SQLITE_LIBDIR=/usr/lib
22121 SQLITE_BINDIR=/usr/bin
22122 elif test -f $prefix/include/sqlite.h; then
22123 SQLITE_INCDIR=$prefix/include
22124 if test -d $prefix/lib64; then
22125 SQLITE_LIBDIR=$prefix/lib64
22127 SQLITE_LIBDIR=$prefix/lib
22129 SQLITE_BINDIR=$prefix/bin
22131 { echo "$as_me:$LINENO: result: no" >&5
22132 echo "${ECHO_T}no" >&6; }
22133 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
22134 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
22135 { (exit 1); exit 1; }; }
22138 if test -f $withval/sqlite.h; then
22139 SQLITE_INCDIR=$withval
22140 SQLITE_LIBDIR=$withval
22141 SQLITE_BINDIR=$withval
22142 elif test -f $withval/include/sqlite.h; then
22143 SQLITE_INCDIR=$withval/include
22144 if test -d $withval/lib64; then
22145 SQLITE_LIBDIR=$withval/lib64
22147 SQLITE_LIBDIR=$withval/lib
22149 SQLITE_BINDIR=$withval/bin
22151 { echo "$as_me:$LINENO: result: no" >&5
22152 echo "${ECHO_T}no" >&6; }
22153 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
22154 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
22155 { (exit 1); exit 1; }; }
22158 SQL_INCLUDE=-I$SQLITE_INCDIR
22159 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
22160 SQL_BINDIR=$SQLITE_BINDIR
22161 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_SQLITE 1
22167 { echo "$as_me:$LINENO: result: yes" >&5
22168 echo "${ECHO_T}yes" >&6; }
22175 { echo "$as_me:$LINENO: result: no" >&5
22176 echo "${ECHO_T}no" >&6; }
22181 { echo "$as_me:$LINENO: result: no" >&5
22182 echo "${ECHO_T}no" >&6; }
22194 { echo "$as_me:$LINENO: checking for DBI support" >&5
22195 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
22197 # Check whether --with-dbi was given.
22198 if test "${with_dbi+set}" = set; then
22200 if test "$withval" != "no"; then
22201 if test "$withval" = "yes"; then
22202 if test -f /usr/local/include/dbi/dbi.h; then
22203 DBI_INCDIR=/usr/local/dbi/include
22204 if test -d /usr/local/lib64; then
22205 DBI_LIBDIR=/usr/local/lib64
22207 DBI_LIBDIR=/usr/local/lib
22209 DBI_BINDIR=/usr/local/bin
22210 elif test -f /usr/include/dbi/dbi.h; then
22211 DBI_INCDIR=/usr/include
22212 if test -d /usr/lib64; then
22213 DBI_LIBDIR=/usr/lib64
22215 DBI_LIBDIR=/usr/lib
22217 DBI_BINDIR=/usr/bin
22218 elif test -f $prefix/include/dbi/dbi.h; then
22219 DBI_INCDIR=$prefix/include
22220 if test -d $prefix/lib64; then
22221 DBI_LIBDIR=$prefix/lib64
22223 DBI_LIBDIR=$prefix/lib
22225 DBI_BINDIR=$prefix/bin
22227 { echo "$as_me:$LINENO: result: no" >&5
22228 echo "${ECHO_T}no" >&6; }
22229 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
22230 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
22231 { (exit 1); exit 1; }; }
22233 if test -d /usr/local/lib/dbd; then
22234 DRIVERDIR=/usr/local/lib/dbd
22235 if test -d /usr/local/lib64/dbd; then
22236 DRIVERDIR=/usr/local/lib64/dbd
22238 DRIVERDIR=/usr/local/lib/dbd
22240 elif test -d /usr/lib/dbd; then
22241 DRIVERDIR=/usr/lib/dbd
22242 if test -d /usr/lib64/dbd; then
22243 DRIVERDIR=/usr/lib64/dbd
22245 DRIVERDIR=/usr/lib/dbd
22247 elif test -d $prefix/lib/dbd; then
22248 if test -d $prefix/lib64/dbd; then
22249 DRIVERDIR=$prefix/lib64/dbd
22251 DRIVERDIR=$prefix/lib/dbd
22254 { echo "$as_me:$LINENO: result: no" >&5
22255 echo "${ECHO_T}no" >&6; }
22256 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
22257 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
22258 { (exit 1); exit 1; }; }
22261 if test -f $withval/dbi.h; then
22262 DBI_INCDIR=$withval
22263 DBI_LIBDIR=$withval
22264 DBI_BINDIR=$withval
22265 elif test -f $withval/include/dbi/dbi.h; then
22266 DBI_INCDIR=$withval/include
22267 if test -d $withval/lib64; then
22268 DBI_LIBDIR=$withval/lib64
22270 DBI_LIBDIR=$withval/lib
22272 DBI_BINDIR=$withval/bin
22274 { echo "$as_me:$LINENO: result: no" >&5
22275 echo "${ECHO_T}no" >&6; }
22276 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
22277 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
22278 { (exit 1); exit 1; }; }
22280 if test -d $withval/dbd; then
22281 DRIVERDIR=$withval/dbd
22282 elif test -d $withval/lib/; then
22283 if test -d $withval/lib64/dbd; then
22284 DRIVERDIR=$withval/lib64/dbd
22286 DRIVERDIR=$withval/lib/dbd
22289 { echo "$as_me:$LINENO: result: no" >&5
22290 echo "${ECHO_T}no" >&6; }
22291 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
22292 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
22293 { (exit 1); exit 1; }; }
22296 SQL_INCLUDE=-I$DBI_INCDIR
22297 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
22298 SQL_BINDIR=$DBI_BINDIR
22299 SQL_LIB=$DBI_LIBDIR/libdbi.a
22300 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
22303 cat >>confdefs.h <<\_ACEOF
22307 { echo "$as_me:$LINENO: result: yes" >&5
22308 echo "${ECHO_T}yes" >&6; }
22316 { echo "$as_me:$LINENO: result: no" >&5
22317 echo "${ECHO_T}no" >&6; }
22322 { echo "$as_me:$LINENO: result: no" >&5
22323 echo "${ECHO_T}no" >&6; }
22338 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
22339 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
22341 # Check whether --with-dbi-driver was given.
22342 if test "${with_dbi_driver+set}" = set; then
22343 withval=$with_dbi_driver;
22344 if test "$withval" != "no"; then
22348 if test -f /usr/local/mysql/bin/mysql; then
22349 SQL_BINDIR=/usr/local/mysql/bin
22350 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22351 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22352 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
22354 SQL_LIBDIR=/usr/local/mysql/lib/mysql
22356 elif test -f /usr/bin/mysql; then
22357 SQL_BINDIR=/usr/bin
22358 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22359 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22360 SQL_LIBDIR=/usr/lib64/mysql
22361 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22362 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22363 SQL_LIBDIR=/usr/lib/mysql
22365 SQL_LIBDIR=/usr/lib
22367 elif test -f /usr/local/bin/mysql; then
22368 SQL_BINDIR=/usr/local/bin
22369 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22370 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22371 SQL_LIBDIR=/usr/local/lib64/mysql
22372 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
22373 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
22374 SQL_LIBDIR=/usr/local/lib/mysql
22376 SQL_LIBDIR=/usr/local/lib
22378 elif test -f $withval/bin/mysql; then
22379 SQL_BINDIR=$withval/bin
22380 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
22381 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
22382 SQL_LIBDIR=$withval/lib64/mysql
22383 elif test -f $withval/lib64/libmysqlclient_r.a \
22384 -o -f $withval/lib64/libmysqlclient_r.so; then
22385 SQL_LIBDIR=$withval/lib64
22386 elif test -f $withval/lib/libmysqlclient_r.a \
22387 -o -f $withval/lib/libmysqlclient_r.so; then
22388 SQL_LIBDIR=$withval/lib/
22390 SQL_LIBDIR=$withval/lib/mysql
22393 { echo "$as_me:$LINENO: result: no" >&5
22394 echo "${ECHO_T}no" >&6; }
22395 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
22396 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
22397 { (exit 1); exit 1; }; }
22399 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
22402 db_prog="postgresql"
22403 PG_CONFIG=`which pg_config`
22404 if test -n "$PG_CONFIG"; then
22405 SQL_BINDIR=`"$PG_CONFIG" --bindir`
22406 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
22407 elif test -f /usr/local/bin/psql; then
22408 SQL_BINDIR=/usr/local/bin
22409 if test -d /usr/local/lib64; then
22410 SQL_LIBDIR=/usr/local/lib64
22412 SQL_LIBDIR=/usr/local/lib
22414 elif test -f /usr/bin/psql; then
22415 SQL_BINDIR=/usr/local/bin
22416 if test -d /usr/lib64/postgresql; then
22417 SQL_LIBDIR=/usr/lib64/postgresql
22418 elif test -d /usr/lib/postgresql; then
22419 SQL_LIBDIR=/usr/lib/postgresql
22420 elif test -d /usr/lib64; then
22421 SQL_LIBDIR=/usr/lib64
22423 SQL_LIBDIR=/usr/lib
22425 elif test -f $withval/bin/psql; then
22426 SQL_BINDIR=$withval/bin
22427 if test -d $withval/lib64; then
22428 SQL_LIBDIR=$withval/lib64
22430 SQL_LIBDIR=$withval/lib
22433 { echo "$as_me:$LINENO: result: no" >&5
22434 echo "${ECHO_T}no" >&6; }
22435 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
22436 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
22437 { (exit 1); exit 1; }; }
22439 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
22443 if test -f /usr/local/bin/sqlite; then
22444 SQL_BINDIR=/usr/local/bin
22445 if test -d /usr/local/lib64; then
22446 SQL_LIBDIR=/usr/local/lib64
22448 SQL_LIBDIR=/usr/local/lib
22450 elif test -f /usr/bin/sqlite; then
22451 SQL_BINDIR=/usr/bin
22452 if test -d /usr/lib64; then
22453 SQL_LIBDIR=/usr/lib64
22455 SQL_LIBDIR=/usr/lib
22457 elif test -f $withval/bin/sqlite; then
22458 SQL_BINDIR=$withval/bin
22459 if test -d $withval/lib64; then
22460 SQL_LIBDIR=$withval/lib64
22462 SQL_LIBDIR=$withval/lib
22465 { echo "$as_me:$LINENO: result: no" >&5
22466 echo "${ECHO_T}no" >&6; }
22467 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
22468 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
22469 { (exit 1); exit 1; }; }
22471 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
22475 if test -f /usr/local/bin/sqlite3; then
22476 SQL_BINDIR=/usr/local/bin
22477 if test -d /usr/local/lib64; then
22478 SQL_LIBDIR=/usr/local/lib64
22480 SQL_LIBDIR=/usr/local/lib
22482 elif test -f /usr/bin/sqlite3; then
22483 SQL_BINDIR=/usr/bin
22484 if test -d /usr/lib64; then
22485 SQL_LIBDIR=/usr/lib64
22487 SQL_LIBDIR=/usr/lib
22489 elif test -f $withval/bin/sqlite3; then
22490 SQL_BINDIR=$withval/bin
22491 if test -d $withval/lib64; then
22492 SQL_LIBDIR=$withval/lib64
22494 SQL_LIBDIR=$withval/lib
22497 { echo "$as_me:$LINENO: result: no" >&5
22498 echo "${ECHO_T}no" >&6; }
22499 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
22500 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
22501 { (exit 1); exit 1; }; }
22503 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
22506 { echo "$as_me:$LINENO: result: no" >&5
22507 echo "${ECHO_T}no" >&6; }
22508 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
22509 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
22510 { (exit 1); exit 1; }; }
22514 { echo "$as_me:$LINENO: result: yes" >&5
22515 echo "${ECHO_T}yes" >&6; }
22518 { echo "$as_me:$LINENO: result: no" >&5
22519 echo "${ECHO_T}no" >&6; }
22524 { echo "$as_me:$LINENO: result: no" >&5
22525 echo "${ECHO_T}no" >&6; }
22538 # -------------------------------------------
22539 # enable batch attribute DB insert (default on)
22540 # -------------------------------------------
22541 support_batch_insert=no
22542 A=`nm $SQL_LIB | grep pthread_mutex_lock`
22544 if test $pkg = 0; then
22545 support_batch_insert=yes
22546 # Check whether --enable-batch-insert was given.
22547 if test "${enable_batch_insert+set}" = set; then
22548 enableval=$enable_batch_insert; if test x$enableval = xno; then
22549 support_batch_insert=no
22551 support_batch_insert=yes
22557 # Check if postgresql support batch mode
22558 if test x$DB_TYPE = xpostgresql; then
22559 A=`nm $SQL_LIB | grep PQputCopyData`
22561 if test $pkg != 0; then
22562 support_batch_insert=no
22566 if test x$DB_TYPE = xdbi; then
22570 # Check for batch insert
22571 if test $DB_PROG = postgresql; then
22572 A=`nm $DB_PROG_LIB | grep PQputCopyData`
22576 if test $DB_PROG = mysql; then
22577 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
22581 if test $DB_PROG = sqlite3; then
22582 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
22586 if test $pkg = 0; then
22587 # Check whether --enable-batch-insert was given.
22588 if test "${enable_batch_insert+set}" = set; then
22589 enableval=$enable_batch_insert; if test x$enableval = xno; then
22590 support_batch_insert=no
22592 support_batch_insert=yes
22598 # If dbi was not chosen, let the comment in file
22604 if test $support_batch_insert = yes ; then
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_BATCH_FILE_INSERT 1
22613 cat >>confdefs.h <<\_ACEOF
22614 #define PROTOTYPES 1
22618 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
22619 if test -z "$CCOPTS"; then
22620 CCOPTS='-g -O2 -Wall'
22628 largefile_support="no"
22630 # Check whether --enable-largefile was given.
22631 if test "${enable_largefile+set}" = set; then
22632 enableval=$enable_largefile;
22635 if test "$enable_largefile" != no; then
22636 if test -n "$ac_tool_prefix"; then
22637 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
22638 set dummy ${ac_tool_prefix}getconf; ac_word=$2
22639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22641 if test "${ac_cv_prog_GETCONF+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22644 if test -n "$GETCONF"; then
22645 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
22647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22648 for as_dir in $PATH
22651 test -z "$as_dir" && as_dir=.
22652 for ac_exec_ext in '' $ac_executable_extensions; do
22653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22654 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
22655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22664 GETCONF=$ac_cv_prog_GETCONF
22665 if test -n "$GETCONF"; then
22666 { echo "$as_me:$LINENO: result: $GETCONF" >&5
22667 echo "${ECHO_T}$GETCONF" >&6; }
22669 { echo "$as_me:$LINENO: result: no" >&5
22670 echo "${ECHO_T}no" >&6; }
22675 if test -z "$ac_cv_prog_GETCONF"; then
22676 ac_ct_GETCONF=$GETCONF
22677 # Extract the first word of "getconf", so it can be a program name with args.
22678 set dummy getconf; ac_word=$2
22679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22681 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
22682 echo $ECHO_N "(cached) $ECHO_C" >&6
22684 if test -n "$ac_ct_GETCONF"; then
22685 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
22687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22688 for as_dir in $PATH
22691 test -z "$as_dir" && as_dir=.
22692 for ac_exec_ext in '' $ac_executable_extensions; do
22693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22694 ac_cv_prog_ac_ct_GETCONF="getconf"
22695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22704 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
22705 if test -n "$ac_ct_GETCONF"; then
22706 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
22707 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
22709 { echo "$as_me:$LINENO: result: no" >&5
22710 echo "${ECHO_T}no" >&6; }
22713 if test "x$ac_ct_GETCONF" = x; then
22716 case $cross_compiling:$ac_tool_warned in
22718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22719 whose name does not start with the host triplet. If you think this
22720 configuration is useful to you, please write to autoconf@gnu.org." >&5
22721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22722 whose name does not start with the host triplet. If you think this
22723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22724 ac_tool_warned=yes ;;
22726 GETCONF=$ac_ct_GETCONF
22729 GETCONF="$ac_cv_prog_GETCONF"
22732 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
22733 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
22734 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22737 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
22738 ac_cv_sys_largefile_CFLAGS=no
22740 # IRIX 6.2 and later require cc -n32.
22741 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
22742 if test "$GCC" != yes; then
22743 ac_cv_sys_largefile_CFLAGS=-n32
22746 CC="$CC $ac_cv_sys_largefile_CFLAGS"
22747 cat >conftest.$ac_ext <<_ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22762 rm -f conftest.$ac_objext conftest$ac_exeext
22763 if { (ac_try="$ac_link"
22764 case "(($ac_try" in
22765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766 *) ac_try_echo=$ac_try;;
22768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22769 (eval "$ac_link") 2>conftest.er1
22771 grep -v '^ *+' conftest.er1 >conftest.err
22773 cat conftest.err >&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } && {
22776 test -z "$ac_c_werror_flag" ||
22777 test ! -s conftest.err
22778 } && test -s conftest$ac_exeext &&
22779 $as_test_x conftest$ac_exeext; then
22782 echo "$as_me: failed program was:" >&5
22783 sed 's/^/| /' conftest.$ac_ext >&5
22785 ac_cv_sys_largefile_CFLAGS=no
22788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22789 conftest$ac_exeext conftest.$ac_ext
22794 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
22795 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
22796 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
22797 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
22798 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
22802 ac_cv_sys_largefile_LDFLAGS=no
22806 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
22807 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
22808 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
22809 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
22810 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
22811 echo $ECHO_N "(cached) $ECHO_C" >&6
22813 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
22814 ac_cv_sys_largefile_LIBS=no
22818 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
22819 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
22821 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22824 -D_FILE_OFFSET_BITS=*) ;;
22825 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
22826 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
22831 case "$CPPFLAGS" in
22832 '') CPPFLAGS="$ac_flag" ;;
22833 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
22841 '') CFLAGS="$ac_flag" ;;
22842 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
22847 case "$ac_cv_sys_largefile_LDFLAGS" in
22851 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
22852 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
22855 case "$ac_cv_sys_largefile_LIBS" in
22859 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
22860 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
22863 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
22864 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
22865 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22868 ac_cv_sys_file_offset_bits=no
22869 ac_cv_sys_file_offset_bits=64
22870 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22872 -D_FILE_OFFSET_BITS)
22873 ac_cv_sys_file_offset_bits=1 ;;
22874 -D_FILE_OFFSET_BITS=*)
22875 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22880 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22881 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22882 if test "$ac_cv_sys_file_offset_bits" != no; then
22884 cat >>confdefs.h <<_ACEOF
22885 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22889 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
22890 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
22891 if test "${ac_cv_sys_largefile_source+set}" = set; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22894 ac_cv_sys_largefile_source=no
22895 ac_cv_sys_largefile_source=1
22896 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22898 -D_LARGEFILE_SOURCE)
22899 ac_cv_sys_largefile_source=1 ;;
22900 -D_LARGEFILE_SOURCE=*)
22901 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22906 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22907 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22908 if test "$ac_cv_sys_largefile_source" != no; then
22910 cat >>confdefs.h <<_ACEOF
22911 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22915 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
22916 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
22917 if test "${ac_cv_sys_large_files+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22920 ac_cv_sys_large_files=no
22921 ac_cv_sys_large_files=1
22922 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22925 ac_cv_sys_large_files=1 ;;
22927 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22932 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22933 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22934 if test "$ac_cv_sys_large_files" != no; then
22936 cat >>confdefs.h <<_ACEOF
22937 #define _LARGE_FILES $ac_cv_sys_large_files
22945 { echo "$as_me:$LINENO: checking for X" >&5
22946 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22949 # Check whether --with-x was given.
22950 if test "${with_x+set}" = set; then
22954 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22955 if test "x$with_x" = xno; then
22956 # The user explicitly disabled X.
22959 case $x_includes,$x_libraries in #(
22960 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22961 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22962 { (exit 1); exit 1; }; };; #(
22963 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22966 # One or both of the vars are not set, and there is no cached value.
22967 ac_x_includes=no ac_x_libraries=no
22968 rm -f -r conftest.dir
22969 if mkdir conftest.dir; then
22971 cat >Imakefile <<'_ACEOF'
22973 @echo incroot='${INCROOT}'
22975 @echo usrlibdir='${USRLIBDIR}'
22977 @echo libdir='${LIBDIR}'
22979 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22981 for ac_var in incroot usrlibdir libdir; do
22982 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22984 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22985 for ac_extension in a so sl; do
22986 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22987 test -f "$ac_im_libdir/libX11.$ac_extension"; then
22988 ac_im_usrlibdir=$ac_im_libdir; break
22991 # Screen out bogus values from the imake configuration. They are
22992 # bogus both because they are the default anyway, and because
22993 # using them would break gcc on systems where it needs fixed includes.
22994 case $ac_im_incroot in
22995 /usr/include) ac_x_includes= ;;
22996 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22998 case $ac_im_usrlibdir in
22999 /usr/lib | /lib) ;;
23000 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23004 rm -f -r conftest.dir
23007 # Standard set of common directories for X headers.
23008 # Check X11 before X11Rn because it is often a symlink to the current release.
23020 /usr/local/X11/include
23021 /usr/local/X11R6/include
23022 /usr/local/X11R5/include
23023 /usr/local/X11R4/include
23025 /usr/local/include/X11
23026 /usr/local/include/X11R6
23027 /usr/local/include/X11R5
23028 /usr/local/include/X11R4
23032 /usr/XFree86/include/X11
23036 /usr/unsupported/include
23037 /usr/athena/include
23038 /usr/local/x11r5/include
23039 /usr/lpp/Xamples/include
23041 /usr/openwin/include
23042 /usr/openwin/share/include'
23044 if test "$ac_x_includes" = no; then
23045 # Guess where to find include files, by looking for Xlib.h.
23046 # First, try using that file with no special directory specified.
23047 cat >conftest.$ac_ext <<_ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23053 #include <X11/Xlib.h>
23055 if { (ac_try="$ac_cpp conftest.$ac_ext"
23056 case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23063 grep -v '^ *+' conftest.er1 >conftest.err
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } >/dev/null && {
23068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23069 test ! -s conftest.err
23071 # We can compile using X headers with no special include directory.
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 for ac_dir in $ac_x_header_dirs; do
23078 if test -r "$ac_dir/X11/Xlib.h"; then
23079 ac_x_includes=$ac_dir
23085 rm -f conftest.err conftest.$ac_ext
23086 fi # $ac_x_includes = no
23088 if test "$ac_x_libraries" = no; then
23089 # Check for the libraries.
23090 # See if we find them without any special options.
23091 # Don't add to $LIBS permanently.
23094 cat >conftest.$ac_ext <<_ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23100 #include <X11/Xlib.h>
23109 rm -f conftest.$ac_objext conftest$ac_exeext
23110 if { (ac_try="$ac_link"
23111 case "(($ac_try" in
23112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23113 *) ac_try_echo=$ac_try;;
23115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23116 (eval "$ac_link") 2>conftest.er1
23118 grep -v '^ *+' conftest.er1 >conftest.err
23120 cat conftest.err >&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } && {
23123 test -z "$ac_c_werror_flag" ||
23124 test ! -s conftest.err
23125 } && test -s conftest$ac_exeext &&
23126 $as_test_x conftest$ac_exeext; then
23128 # We can link X programs with no special library path.
23131 echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23135 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23137 # Don't even attempt the hair of trying to link an X program!
23138 for ac_extension in a so sl; do
23139 if test -r "$ac_dir/libX11.$ac_extension"; then
23140 ac_x_libraries=$ac_dir
23147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23148 conftest$ac_exeext conftest.$ac_ext
23149 fi # $ac_x_libraries = no
23151 case $ac_x_includes,$ac_x_libraries in #(
23152 no,* | *,no | *\'*)
23153 # Didn't find X, or a directory has "'" in its name.
23154 ac_cv_have_x="have_x=no";; #(
23156 # Record where we found X for the cache.
23157 ac_cv_have_x="have_x=yes\
23158 ac_x_includes='$ac_x_includes'\
23159 ac_x_libraries='$ac_x_libraries'"
23165 eval "$ac_cv_have_x"
23168 if test "$have_x" != yes; then
23169 { echo "$as_me:$LINENO: result: $have_x" >&5
23170 echo "${ECHO_T}$have_x" >&6; }
23173 # If each of the values was on the command line, it overrides each guess.
23174 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23175 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23176 # Update the cache value to reflect the command line values.
23177 ac_cv_have_x="have_x=yes\
23178 ac_x_includes='$x_includes'\
23179 ac_x_libraries='$x_libraries'"
23180 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23181 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
23184 if test "$no_x" = yes; then
23185 # Not all programs may use this symbol, but it does not hurt to define it.
23187 cat >>confdefs.h <<\_ACEOF
23188 #define X_DISPLAY_MISSING 1
23191 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23193 if test -n "$x_includes"; then
23194 X_CFLAGS="$X_CFLAGS -I$x_includes"
23197 # It would also be nice to do this for all -L options, not just this one.
23198 if test -n "$x_libraries"; then
23199 X_LIBS="$X_LIBS -L$x_libraries"
23200 # For Solaris; some versions of Sun CC require a space after -R and
23201 # others require no space. Words are not sufficient . . . .
23202 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23203 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
23204 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23205 ac_xsave_c_werror_flag=$ac_c_werror_flag
23206 ac_c_werror_flag=yes
23207 cat >conftest.$ac_ext <<_ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23222 rm -f conftest.$ac_objext conftest$ac_exeext
23223 if { (ac_try="$ac_link"
23224 case "(($ac_try" in
23225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226 *) ac_try_echo=$ac_try;;
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229 (eval "$ac_link") 2>conftest.er1
23231 grep -v '^ *+' conftest.er1 >conftest.err
23233 cat conftest.err >&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest$ac_exeext &&
23239 $as_test_x conftest$ac_exeext; then
23240 { echo "$as_me:$LINENO: result: no" >&5
23241 echo "${ECHO_T}no" >&6; }
23242 X_LIBS="$X_LIBS -R$x_libraries"
23244 echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23247 LIBS="$ac_xsave_LIBS -R $x_libraries"
23248 cat >conftest.$ac_ext <<_ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23263 rm -f conftest.$ac_objext conftest$ac_exeext
23264 if { (ac_try="$ac_link"
23265 case "(($ac_try" in
23266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267 *) ac_try_echo=$ac_try;;
23269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23270 (eval "$ac_link") 2>conftest.er1
23272 grep -v '^ *+' conftest.er1 >conftest.err
23274 cat conftest.err >&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); } && {
23277 test -z "$ac_c_werror_flag" ||
23278 test ! -s conftest.err
23279 } && test -s conftest$ac_exeext &&
23280 $as_test_x conftest$ac_exeext; then
23281 { echo "$as_me:$LINENO: result: yes" >&5
23282 echo "${ECHO_T}yes" >&6; }
23283 X_LIBS="$X_LIBS -R $x_libraries"
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23288 { echo "$as_me:$LINENO: result: neither works" >&5
23289 echo "${ECHO_T}neither works" >&6; }
23292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23293 conftest$ac_exeext conftest.$ac_ext
23296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23297 conftest$ac_exeext conftest.$ac_ext
23298 ac_c_werror_flag=$ac_xsave_c_werror_flag
23299 LIBS=$ac_xsave_LIBS
23302 # Check for system-dependent libraries X programs must link with.
23303 # Do this before checking for the system-independent R6 libraries
23304 # (-lICE), since we may need -lsocket or whatever for X linking.
23306 if test "$ISC" = yes; then
23307 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23309 # Martyn Johnson says this is needed for Ultrix, if the X
23310 # libraries were built with DECnet support. And Karl Berry says
23311 # the Alpha needs dnet_stub (dnet does not exist).
23312 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23313 cat >conftest.$ac_ext <<_ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23320 /* Override any GCC internal prototype to avoid an error.
23321 Use char because int might match the return type of a GCC
23322 builtin and then its argument prototype would still apply. */
23326 char XOpenDisplay ();
23330 return XOpenDisplay ();
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342 (eval "$ac_link") 2>conftest.er1
23344 grep -v '^ *+' conftest.er1 >conftest.err
23346 cat conftest.err >&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } && {
23349 test -z "$ac_c_werror_flag" ||
23350 test ! -s conftest.err
23351 } && test -s conftest$ac_exeext &&
23352 $as_test_x conftest$ac_exeext; then
23355 echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23358 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23359 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23360 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23363 ac_check_lib_save_LIBS=$LIBS
23364 LIBS="-ldnet $LIBS"
23365 cat >conftest.$ac_ext <<_ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23372 /* Override any GCC internal prototype to avoid an error.
23373 Use char because int might match the return type of a GCC
23374 builtin and then its argument prototype would still apply. */
23382 return dnet_ntoa ();
23387 rm -f conftest.$ac_objext conftest$ac_exeext
23388 if { (ac_try="$ac_link"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394 (eval "$ac_link") 2>conftest.er1
23396 grep -v '^ *+' conftest.er1 >conftest.err
23398 cat conftest.err >&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } && {
23401 test -z "$ac_c_werror_flag" ||
23402 test ! -s conftest.err
23403 } && test -s conftest$ac_exeext &&
23404 $as_test_x conftest$ac_exeext; then
23405 ac_cv_lib_dnet_dnet_ntoa=yes
23407 echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23410 ac_cv_lib_dnet_dnet_ntoa=no
23413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23414 conftest$ac_exeext conftest.$ac_ext
23415 LIBS=$ac_check_lib_save_LIBS
23417 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23418 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23419 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23420 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23423 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23424 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23425 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23426 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23427 echo $ECHO_N "(cached) $ECHO_C" >&6
23429 ac_check_lib_save_LIBS=$LIBS
23430 LIBS="-ldnet_stub $LIBS"
23431 cat >conftest.$ac_ext <<_ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23438 /* Override any GCC internal prototype to avoid an error.
23439 Use char because int might match the return type of a GCC
23440 builtin and then its argument prototype would still apply. */
23448 return dnet_ntoa ();
23453 rm -f conftest.$ac_objext conftest$ac_exeext
23454 if { (ac_try="$ac_link"
23455 case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_link") 2>conftest.er1
23462 grep -v '^ *+' conftest.er1 >conftest.err
23464 cat conftest.err >&5
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); } && {
23467 test -z "$ac_c_werror_flag" ||
23468 test ! -s conftest.err
23469 } && test -s conftest$ac_exeext &&
23470 $as_test_x conftest$ac_exeext; then
23471 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_cv_lib_dnet_stub_dnet_ntoa=no
23479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23480 conftest$ac_exeext conftest.$ac_ext
23481 LIBS=$ac_check_lib_save_LIBS
23483 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23484 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23485 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23486 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23493 conftest$ac_exeext conftest.$ac_ext
23494 LIBS="$ac_xsave_LIBS"
23496 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23497 # to get the SysV transport functions.
23498 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23500 # The nsl library prevents programs from opening the X display
23501 # on Irix 5.2, according to T.E. Dickey.
23502 # The functions gethostbyname, getservbyname, and inet_addr are
23503 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23504 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23505 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23506 if test "${ac_cv_func_gethostbyname+set}" = set; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23509 cat >conftest.$ac_ext <<_ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h. */
23515 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23517 #define gethostbyname innocuous_gethostbyname
23519 /* System header to define __stub macros and hopefully few prototypes,
23520 which can conflict with char gethostbyname (); below.
23521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23522 <limits.h> exists even on freestanding compilers. */
23525 # include <limits.h>
23527 # include <assert.h>
23530 #undef gethostbyname
23532 /* Override any GCC internal prototype to avoid an error.
23533 Use char because int might match the return type of a GCC
23534 builtin and then its argument prototype would still apply. */
23538 char gethostbyname ();
23539 /* The GNU C library defines this for functions which it implements
23540 to always fail with ENOSYS. Some functions are actually named
23541 something starting with __ and the normal name is an alias. */
23542 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23549 return gethostbyname ();
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (ac_try="$ac_link"
23556 case "(($ac_try" in
23557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558 *) ac_try_echo=$ac_try;;
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561 (eval "$ac_link") 2>conftest.er1
23563 grep -v '^ *+' conftest.er1 >conftest.err
23565 cat conftest.err >&5
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); } && {
23568 test -z "$ac_c_werror_flag" ||
23569 test ! -s conftest.err
23570 } && test -s conftest$ac_exeext &&
23571 $as_test_x conftest$ac_exeext; then
23572 ac_cv_func_gethostbyname=yes
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23577 ac_cv_func_gethostbyname=no
23580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23581 conftest$ac_exeext conftest.$ac_ext
23583 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23584 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23586 if test $ac_cv_func_gethostbyname = no; then
23587 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23588 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23589 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23590 echo $ECHO_N "(cached) $ECHO_C" >&6
23592 ac_check_lib_save_LIBS=$LIBS
23594 cat >conftest.$ac_ext <<_ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h. */
23601 /* Override any GCC internal prototype to avoid an error.
23602 Use char because int might match the return type of a GCC
23603 builtin and then its argument prototype would still apply. */
23607 char gethostbyname ();
23611 return gethostbyname ();
23616 rm -f conftest.$ac_objext conftest$ac_exeext
23617 if { (ac_try="$ac_link"
23618 case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_link") 2>conftest.er1
23625 grep -v '^ *+' conftest.er1 >conftest.err
23627 cat conftest.err >&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } && {
23630 test -z "$ac_c_werror_flag" ||
23631 test ! -s conftest.err
23632 } && test -s conftest$ac_exeext &&
23633 $as_test_x conftest$ac_exeext; then
23634 ac_cv_lib_nsl_gethostbyname=yes
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 ac_cv_lib_nsl_gethostbyname=no
23642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23643 conftest$ac_exeext conftest.$ac_ext
23644 LIBS=$ac_check_lib_save_LIBS
23646 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23647 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23648 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23649 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23652 if test $ac_cv_lib_nsl_gethostbyname = no; then
23653 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23654 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23655 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23656 echo $ECHO_N "(cached) $ECHO_C" >&6
23658 ac_check_lib_save_LIBS=$LIBS
23660 cat >conftest.$ac_ext <<_ACEOF
23663 cat confdefs.h >>conftest.$ac_ext
23664 cat >>conftest.$ac_ext <<_ACEOF
23665 /* end confdefs.h. */
23667 /* Override any GCC internal prototype to avoid an error.
23668 Use char because int might match the return type of a GCC
23669 builtin and then its argument prototype would still apply. */
23673 char gethostbyname ();
23677 return gethostbyname ();
23682 rm -f conftest.$ac_objext conftest$ac_exeext
23683 if { (ac_try="$ac_link"
23684 case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23689 (eval "$ac_link") 2>conftest.er1
23691 grep -v '^ *+' conftest.er1 >conftest.err
23693 cat conftest.err >&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); } && {
23696 test -z "$ac_c_werror_flag" ||
23697 test ! -s conftest.err
23698 } && test -s conftest$ac_exeext &&
23699 $as_test_x conftest$ac_exeext; then
23700 ac_cv_lib_bsd_gethostbyname=yes
23702 echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23705 ac_cv_lib_bsd_gethostbyname=no
23708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23709 conftest$ac_exeext conftest.$ac_ext
23710 LIBS=$ac_check_lib_save_LIBS
23712 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23713 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23714 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23721 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23722 # socket/setsockopt and other routines are undefined under SCO ODT
23723 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23724 # on later versions), says Simon Leinen: it contains gethostby*
23725 # variants that don't use the name server (or something). -lsocket
23726 # must be given before -lnsl if both are needed. We assume that
23727 # if connect needs -lnsl, so does gethostbyname.
23728 { echo "$as_me:$LINENO: checking for connect" >&5
23729 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23730 if test "${ac_cv_func_connect+set}" = set; then
23731 echo $ECHO_N "(cached) $ECHO_C" >&6
23733 cat >conftest.$ac_ext <<_ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23741 #define connect innocuous_connect
23743 /* System header to define __stub macros and hopefully few prototypes,
23744 which can conflict with char connect (); below.
23745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23746 <limits.h> exists even on freestanding compilers. */
23749 # include <limits.h>
23751 # include <assert.h>
23756 /* Override any GCC internal prototype to avoid an error.
23757 Use char because int might match the return type of a GCC
23758 builtin and then its argument prototype would still apply. */
23763 /* The GNU C library defines this for functions which it implements
23764 to always fail with ENOSYS. Some functions are actually named
23765 something starting with __ and the normal name is an alias. */
23766 #if defined __stub_connect || defined __stub___connect
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_link") 2>conftest.er1
23787 grep -v '^ *+' conftest.er1 >conftest.err
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest$ac_exeext &&
23795 $as_test_x conftest$ac_exeext; then
23796 ac_cv_func_connect=yes
23798 echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23801 ac_cv_func_connect=no
23804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805 conftest$ac_exeext conftest.$ac_ext
23807 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23808 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23810 if test $ac_cv_func_connect = no; then
23811 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23812 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23813 if test "${ac_cv_lib_socket_connect+set}" = set; then
23814 echo $ECHO_N "(cached) $ECHO_C" >&6
23816 ac_check_lib_save_LIBS=$LIBS
23817 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23818 cat >conftest.$ac_ext <<_ACEOF
23821 cat confdefs.h >>conftest.$ac_ext
23822 cat >>conftest.$ac_ext <<_ACEOF
23823 /* end confdefs.h. */
23825 /* Override any GCC internal prototype to avoid an error.
23826 Use char because int might match the return type of a GCC
23827 builtin and then its argument prototype would still apply. */
23840 rm -f conftest.$ac_objext conftest$ac_exeext
23841 if { (ac_try="$ac_link"
23842 case "(($ac_try" in
23843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23844 *) ac_try_echo=$ac_try;;
23846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23847 (eval "$ac_link") 2>conftest.er1
23849 grep -v '^ *+' conftest.er1 >conftest.err
23851 cat conftest.err >&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } && {
23854 test -z "$ac_c_werror_flag" ||
23855 test ! -s conftest.err
23856 } && test -s conftest$ac_exeext &&
23857 $as_test_x conftest$ac_exeext; then
23858 ac_cv_lib_socket_connect=yes
23860 echo "$as_me: failed program was:" >&5
23861 sed 's/^/| /' conftest.$ac_ext >&5
23863 ac_cv_lib_socket_connect=no
23866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23867 conftest$ac_exeext conftest.$ac_ext
23868 LIBS=$ac_check_lib_save_LIBS
23870 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23871 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23872 if test $ac_cv_lib_socket_connect = yes; then
23873 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23878 # Guillermo Gomez says -lposix is necessary on A/UX.
23879 { echo "$as_me:$LINENO: checking for remove" >&5
23880 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23881 if test "${ac_cv_func_remove+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 cat >conftest.$ac_ext <<_ACEOF
23887 cat confdefs.h >>conftest.$ac_ext
23888 cat >>conftest.$ac_ext <<_ACEOF
23889 /* end confdefs.h. */
23890 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23892 #define remove innocuous_remove
23894 /* System header to define __stub macros and hopefully few prototypes,
23895 which can conflict with char remove (); below.
23896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23897 <limits.h> exists even on freestanding compilers. */
23900 # include <limits.h>
23902 # include <assert.h>
23907 /* Override any GCC internal prototype to avoid an error.
23908 Use char because int might match the return type of a GCC
23909 builtin and then its argument prototype would still apply. */
23914 /* The GNU C library defines this for functions which it implements
23915 to always fail with ENOSYS. Some functions are actually named
23916 something starting with __ and the normal name is an alias. */
23917 #if defined __stub_remove || defined __stub___remove
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_link") 2>conftest.er1
23938 grep -v '^ *+' conftest.er1 >conftest.err
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest$ac_exeext &&
23946 $as_test_x conftest$ac_exeext; then
23947 ac_cv_func_remove=yes
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ac_cv_func_remove=no
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956 conftest$ac_exeext conftest.$ac_ext
23958 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23959 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23961 if test $ac_cv_func_remove = no; then
23962 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23963 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23964 if test "${ac_cv_lib_posix_remove+set}" = set; then
23965 echo $ECHO_N "(cached) $ECHO_C" >&6
23967 ac_check_lib_save_LIBS=$LIBS
23968 LIBS="-lposix $LIBS"
23969 cat >conftest.$ac_ext <<_ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23976 /* Override any GCC internal prototype to avoid an error.
23977 Use char because int might match the return type of a GCC
23978 builtin and then its argument prototype would still apply. */
23991 rm -f conftest.$ac_objext conftest$ac_exeext
23992 if { (ac_try="$ac_link"
23993 case "(($ac_try" in
23994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995 *) ac_try_echo=$ac_try;;
23997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23998 (eval "$ac_link") 2>conftest.er1
24000 grep -v '^ *+' conftest.er1 >conftest.err
24002 cat conftest.err >&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } && {
24005 test -z "$ac_c_werror_flag" ||
24006 test ! -s conftest.err
24007 } && test -s conftest$ac_exeext &&
24008 $as_test_x conftest$ac_exeext; then
24009 ac_cv_lib_posix_remove=yes
24011 echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24014 ac_cv_lib_posix_remove=no
24017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24018 conftest$ac_exeext conftest.$ac_ext
24019 LIBS=$ac_check_lib_save_LIBS
24021 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24022 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
24023 if test $ac_cv_lib_posix_remove = yes; then
24024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24029 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24030 { echo "$as_me:$LINENO: checking for shmat" >&5
24031 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
24032 if test "${ac_cv_func_shmat+set}" = set; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24035 cat >conftest.$ac_ext <<_ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h. */
24041 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24043 #define shmat innocuous_shmat
24045 /* System header to define __stub macros and hopefully few prototypes,
24046 which can conflict with char shmat (); below.
24047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24048 <limits.h> exists even on freestanding compilers. */
24051 # include <limits.h>
24053 # include <assert.h>
24058 /* Override any GCC internal prototype to avoid an error.
24059 Use char because int might match the return type of a GCC
24060 builtin and then its argument prototype would still apply. */
24065 /* The GNU C library defines this for functions which it implements
24066 to always fail with ENOSYS. Some functions are actually named
24067 something starting with __ and the normal name is an alias. */
24068 #if defined __stub_shmat || defined __stub___shmat
24080 rm -f conftest.$ac_objext conftest$ac_exeext
24081 if { (ac_try="$ac_link"
24082 case "(($ac_try" in
24083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24084 *) ac_try_echo=$ac_try;;
24086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24087 (eval "$ac_link") 2>conftest.er1
24089 grep -v '^ *+' conftest.er1 >conftest.err
24091 cat conftest.err >&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); } && {
24094 test -z "$ac_c_werror_flag" ||
24095 test ! -s conftest.err
24096 } && test -s conftest$ac_exeext &&
24097 $as_test_x conftest$ac_exeext; then
24098 ac_cv_func_shmat=yes
24100 echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24103 ac_cv_func_shmat=no
24106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24107 conftest$ac_exeext conftest.$ac_ext
24109 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24110 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24112 if test $ac_cv_func_shmat = no; then
24113 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24114 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24115 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24116 echo $ECHO_N "(cached) $ECHO_C" >&6
24118 ac_check_lib_save_LIBS=$LIBS
24120 cat >conftest.$ac_ext <<_ACEOF
24123 cat confdefs.h >>conftest.$ac_ext
24124 cat >>conftest.$ac_ext <<_ACEOF
24125 /* end confdefs.h. */
24127 /* Override any GCC internal prototype to avoid an error.
24128 Use char because int might match the return type of a GCC
24129 builtin and then its argument prototype would still apply. */
24142 rm -f conftest.$ac_objext conftest$ac_exeext
24143 if { (ac_try="$ac_link"
24144 case "(($ac_try" in
24145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146 *) ac_try_echo=$ac_try;;
24148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149 (eval "$ac_link") 2>conftest.er1
24151 grep -v '^ *+' conftest.er1 >conftest.err
24153 cat conftest.err >&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); } && {
24156 test -z "$ac_c_werror_flag" ||
24157 test ! -s conftest.err
24158 } && test -s conftest$ac_exeext &&
24159 $as_test_x conftest$ac_exeext; then
24160 ac_cv_lib_ipc_shmat=yes
24162 echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24165 ac_cv_lib_ipc_shmat=no
24168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24169 conftest$ac_exeext conftest.$ac_ext
24170 LIBS=$ac_check_lib_save_LIBS
24172 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24173 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24174 if test $ac_cv_lib_ipc_shmat = yes; then
24175 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24181 # Check for libraries that X11R6 Xt/Xaw programs need.
24182 ac_save_LDFLAGS=$LDFLAGS
24183 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24184 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24185 # check for ICE first), but we must link in the order -lSM -lICE or
24186 # we get undefined symbols. So assume we have SM if we have ICE.
24187 # These have to be linked with before -lX11, unlike the other
24188 # libraries we check for below, so use a different variable.
24189 # John Interrante, Karl Berry
24190 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24191 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
24192 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24193 echo $ECHO_N "(cached) $ECHO_C" >&6
24195 ac_check_lib_save_LIBS=$LIBS
24196 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24197 cat >conftest.$ac_ext <<_ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h. */
24204 /* Override any GCC internal prototype to avoid an error.
24205 Use char because int might match the return type of a GCC
24206 builtin and then its argument prototype would still apply. */
24210 char IceConnectionNumber ();
24214 return IceConnectionNumber ();
24219 rm -f conftest.$ac_objext conftest$ac_exeext
24220 if { (ac_try="$ac_link"
24221 case "(($ac_try" in
24222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24223 *) ac_try_echo=$ac_try;;
24225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24226 (eval "$ac_link") 2>conftest.er1
24228 grep -v '^ *+' conftest.er1 >conftest.err
24230 cat conftest.err >&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } && {
24233 test -z "$ac_c_werror_flag" ||
24234 test ! -s conftest.err
24235 } && test -s conftest$ac_exeext &&
24236 $as_test_x conftest$ac_exeext; then
24237 ac_cv_lib_ICE_IceConnectionNumber=yes
24239 echo "$as_me: failed program was:" >&5
24240 sed 's/^/| /' conftest.$ac_ext >&5
24242 ac_cv_lib_ICE_IceConnectionNumber=no
24245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24246 conftest$ac_exeext conftest.$ac_ext
24247 LIBS=$ac_check_lib_save_LIBS
24249 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24250 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24251 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24252 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24255 LDFLAGS=$ac_save_LDFLAGS
24323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24328 echo $ECHO_N "(cached) $ECHO_C" >&6
24330 ac_res=`eval echo '${'$as_ac_Header'}'`
24331 { echo "$as_me:$LINENO: result: $ac_res" >&5
24332 echo "${ECHO_T}$ac_res" >&6; }
24334 # Is the header compilable?
24335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24337 cat >conftest.$ac_ext <<_ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h. */
24343 $ac_includes_default
24344 #include <$ac_header>
24346 rm -f conftest.$ac_objext
24347 if { (ac_try="$ac_compile"
24348 case "(($ac_try" in
24349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350 *) ac_try_echo=$ac_try;;
24352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_compile") 2>conftest.er1
24355 grep -v '^ *+' conftest.er1 >conftest.err
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } && {
24360 test -z "$ac_c_werror_flag" ||
24361 test ! -s conftest.err
24362 } && test -s conftest.$ac_objext; then
24363 ac_header_compiler=yes
24365 echo "$as_me: failed program was:" >&5
24366 sed 's/^/| /' conftest.$ac_ext >&5
24368 ac_header_compiler=no
24371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24373 echo "${ECHO_T}$ac_header_compiler" >&6; }
24375 # Is the header present?
24376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24378 cat >conftest.$ac_ext <<_ACEOF
24381 cat confdefs.h >>conftest.$ac_ext
24382 cat >>conftest.$ac_ext <<_ACEOF
24383 /* end confdefs.h. */
24384 #include <$ac_header>
24386 if { (ac_try="$ac_cpp conftest.$ac_ext"
24387 case "(($ac_try" in
24388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24389 *) ac_try_echo=$ac_try;;
24391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24394 grep -v '^ *+' conftest.er1 >conftest.err
24396 cat conftest.err >&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); } >/dev/null && {
24399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24400 test ! -s conftest.err
24402 ac_header_preproc=yes
24404 echo "$as_me: failed program was:" >&5
24405 sed 's/^/| /' conftest.$ac_ext >&5
24407 ac_header_preproc=no
24410 rm -f conftest.err conftest.$ac_ext
24411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24412 echo "${ECHO_T}$ac_header_preproc" >&6; }
24414 # So? What about this header?
24415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24421 ac_header_preproc=yes
24424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24442 echo $ECHO_N "(cached) $ECHO_C" >&6
24444 eval "$as_ac_Header=\$ac_header_preproc"
24446 ac_res=`eval echo '${'$as_ac_Header'}'`
24447 { echo "$as_me:$LINENO: result: $ac_res" >&5
24448 echo "${ECHO_T}$ac_res" >&6; }
24451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24452 cat >>confdefs.h <<_ACEOF
24453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24460 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24461 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24462 if test "${ac_cv_header_stdc+set}" = set; then
24463 echo $ECHO_N "(cached) $ECHO_C" >&6
24465 cat >conftest.$ac_ext <<_ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h. */
24471 #include <stdlib.h>
24472 #include <stdarg.h>
24473 #include <string.h>
24484 rm -f conftest.$ac_objext
24485 if { (ac_try="$ac_compile"
24486 case "(($ac_try" in
24487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488 *) ac_try_echo=$ac_try;;
24490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24491 (eval "$ac_compile") 2>conftest.er1
24493 grep -v '^ *+' conftest.er1 >conftest.err
24495 cat conftest.err >&5
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } && {
24498 test -z "$ac_c_werror_flag" ||
24499 test ! -s conftest.err
24500 } && test -s conftest.$ac_objext; then
24501 ac_cv_header_stdc=yes
24503 echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24506 ac_cv_header_stdc=no
24509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24511 if test $ac_cv_header_stdc = yes; then
24512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24513 cat >conftest.$ac_ext <<_ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h. */
24519 #include <string.h>
24522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24523 $EGREP "memchr" >/dev/null 2>&1; then
24526 ac_cv_header_stdc=no
24532 if test $ac_cv_header_stdc = yes; then
24533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24534 cat >conftest.$ac_ext <<_ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h. */
24540 #include <stdlib.h>
24543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24544 $EGREP "free" >/dev/null 2>&1; then
24547 ac_cv_header_stdc=no
24553 if test $ac_cv_header_stdc = yes; then
24554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24555 if test "$cross_compiling" = yes; then
24558 cat >conftest.$ac_ext <<_ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h. */
24565 #include <stdlib.h>
24566 #if ((' ' & 0x0FF) == 0x020)
24567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24570 # define ISLOWER(c) \
24571 (('a' <= (c) && (c) <= 'i') \
24572 || ('j' <= (c) && (c) <= 'r') \
24573 || ('s' <= (c) && (c) <= 'z'))
24574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24582 for (i = 0; i < 256; i++)
24583 if (XOR (islower (i), ISLOWER (i))
24584 || toupper (i) != TOUPPER (i))
24589 rm -f conftest$ac_exeext
24590 if { (ac_try="$ac_link"
24591 case "(($ac_try" in
24592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593 *) ac_try_echo=$ac_try;;
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596 (eval "$ac_link") 2>&5
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24600 { (case "(($ac_try" in
24601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602 *) ac_try_echo=$ac_try;;
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605 (eval "$ac_try") 2>&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); }; }; then
24611 echo "$as_me: program exited with status $ac_status" >&5
24612 echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24615 ( exit $ac_status )
24616 ac_cv_header_stdc=no
24618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24624 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24625 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
24626 if test $ac_cv_header_stdc = yes; then
24628 cat >>confdefs.h <<\_ACEOF
24629 #define STDC_HEADERS 1
24634 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24635 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
24636 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24639 cat >conftest.$ac_ext <<_ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645 #include <sys/types.h>
24649 return makedev(0, 0);
24654 rm -f conftest.$ac_objext conftest$ac_exeext
24655 if { (ac_try="$ac_link"
24656 case "(($ac_try" in
24657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658 *) ac_try_echo=$ac_try;;
24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661 (eval "$ac_link") 2>conftest.er1
24663 grep -v '^ *+' conftest.er1 >conftest.err
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } && {
24668 test -z "$ac_c_werror_flag" ||
24669 test ! -s conftest.err
24670 } && test -s conftest$ac_exeext &&
24671 $as_test_x conftest$ac_exeext; then
24672 ac_cv_header_sys_types_h_makedev=yes
24674 echo "$as_me: failed program was:" >&5
24675 sed 's/^/| /' conftest.$ac_ext >&5
24677 ac_cv_header_sys_types_h_makedev=no
24680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24681 conftest$ac_exeext conftest.$ac_ext
24684 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24685 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
24687 if test $ac_cv_header_sys_types_h_makedev = no; then
24688 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24689 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24690 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24691 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24692 echo $ECHO_N "(cached) $ECHO_C" >&6
24694 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24695 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24697 # Is the header compilable?
24698 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24699 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
24700 cat >conftest.$ac_ext <<_ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h. */
24706 $ac_includes_default
24707 #include <sys/mkdev.h>
24709 rm -f conftest.$ac_objext
24710 if { (ac_try="$ac_compile"
24711 case "(($ac_try" in
24712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713 *) ac_try_echo=$ac_try;;
24715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24716 (eval "$ac_compile") 2>conftest.er1
24718 grep -v '^ *+' conftest.er1 >conftest.err
24720 cat conftest.err >&5
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } && {
24723 test -z "$ac_c_werror_flag" ||
24724 test ! -s conftest.err
24725 } && test -s conftest.$ac_objext; then
24726 ac_header_compiler=yes
24728 echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24731 ac_header_compiler=no
24734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24736 echo "${ECHO_T}$ac_header_compiler" >&6; }
24738 # Is the header present?
24739 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24740 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
24741 cat >conftest.$ac_ext <<_ACEOF
24744 cat confdefs.h >>conftest.$ac_ext
24745 cat >>conftest.$ac_ext <<_ACEOF
24746 /* end confdefs.h. */
24747 #include <sys/mkdev.h>
24749 if { (ac_try="$ac_cpp conftest.$ac_ext"
24750 case "(($ac_try" in
24751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752 *) ac_try_echo=$ac_try;;
24754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24757 grep -v '^ *+' conftest.er1 >conftest.err
24759 cat conftest.err >&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); } >/dev/null && {
24762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24763 test ! -s conftest.err
24765 ac_header_preproc=yes
24767 echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24770 ac_header_preproc=no
24773 rm -f conftest.err conftest.$ac_ext
24774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24775 echo "${ECHO_T}$ac_header_preproc" >&6; }
24777 # So? What about this header?
24778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24780 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24781 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24782 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24783 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24784 ac_header_preproc=yes
24787 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24788 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24789 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
24790 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
24791 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24792 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24793 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
24794 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
24795 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24796 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24797 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24798 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24802 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24803 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24804 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24805 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 ac_cv_header_sys_mkdev_h=$ac_header_preproc
24809 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24810 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24813 if test $ac_cv_header_sys_mkdev_h = yes; then
24815 cat >>confdefs.h <<\_ACEOF
24816 #define MAJOR_IN_MKDEV 1
24823 if test $ac_cv_header_sys_mkdev_h = no; then
24824 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24825 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24826 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24827 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24828 echo $ECHO_N "(cached) $ECHO_C" >&6
24830 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24831 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24833 # Is the header compilable?
24834 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24835 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
24836 cat >conftest.$ac_ext <<_ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h. */
24842 $ac_includes_default
24843 #include <sys/sysmacros.h>
24845 rm -f conftest.$ac_objext
24846 if { (ac_try="$ac_compile"
24847 case "(($ac_try" in
24848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849 *) ac_try_echo=$ac_try;;
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852 (eval "$ac_compile") 2>conftest.er1
24854 grep -v '^ *+' conftest.er1 >conftest.err
24856 cat conftest.err >&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } && {
24859 test -z "$ac_c_werror_flag" ||
24860 test ! -s conftest.err
24861 } && test -s conftest.$ac_objext; then
24862 ac_header_compiler=yes
24864 echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24867 ac_header_compiler=no
24870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24872 echo "${ECHO_T}$ac_header_compiler" >&6; }
24874 # Is the header present?
24875 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24876 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
24877 cat >conftest.$ac_ext <<_ACEOF
24880 cat confdefs.h >>conftest.$ac_ext
24881 cat >>conftest.$ac_ext <<_ACEOF
24882 /* end confdefs.h. */
24883 #include <sys/sysmacros.h>
24885 if { (ac_try="$ac_cpp conftest.$ac_ext"
24886 case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24893 grep -v '^ *+' conftest.er1 >conftest.err
24895 cat conftest.err >&5
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } >/dev/null && {
24898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24899 test ! -s conftest.err
24901 ac_header_preproc=yes
24903 echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24906 ac_header_preproc=no
24909 rm -f conftest.err conftest.$ac_ext
24910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24911 echo "${ECHO_T}$ac_header_preproc" >&6; }
24913 # So? What about this header?
24914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24916 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24917 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24918 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24919 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24920 ac_header_preproc=yes
24923 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24924 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24925 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
24926 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
24927 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24928 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24929 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
24930 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
24931 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24932 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24933 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24934 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24938 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24939 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24940 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24941 echo $ECHO_N "(cached) $ECHO_C" >&6
24943 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24945 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24946 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24949 if test $ac_cv_header_sys_sysmacros_h = yes; then
24951 cat >>confdefs.h <<\_ACEOF
24952 #define MAJOR_IN_SYSMACROS 1
24966 ac_header_dirent=no
24967 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24968 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24969 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24970 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24972 echo $ECHO_N "(cached) $ECHO_C" >&6
24974 cat >conftest.$ac_ext <<_ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h. */
24980 #include <sys/types.h>
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_compile") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && {
25006 test -z "$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 } && test -s conftest.$ac_objext; then
25009 eval "$as_ac_Header=yes"
25011 echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 eval "$as_ac_Header=no"
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 ac_res=`eval echo '${'$as_ac_Header'}'`
25020 { echo "$as_me:$LINENO: result: $ac_res" >&5
25021 echo "${ECHO_T}$ac_res" >&6; }
25022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25023 cat >>confdefs.h <<_ACEOF
25024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25027 ac_header_dirent=$ac_hdr; break
25031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25032 if test $ac_header_dirent = dirent.h; then
25033 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25035 if test "${ac_cv_search_opendir+set}" = set; then
25036 echo $ECHO_N "(cached) $ECHO_C" >&6
25038 ac_func_search_save_LIBS=$LIBS
25039 cat >conftest.$ac_ext <<_ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h. */
25046 /* Override any GCC internal prototype to avoid an error.
25047 Use char because int might match the return type of a GCC
25048 builtin and then its argument prototype would still apply. */
25061 for ac_lib in '' dir; do
25062 if test -z "$ac_lib"; then
25063 ac_res="none required"
25066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25068 rm -f conftest.$ac_objext conftest$ac_exeext
25069 if { (ac_try="$ac_link"
25070 case "(($ac_try" in
25071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072 *) ac_try_echo=$ac_try;;
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075 (eval "$ac_link") 2>conftest.er1
25077 grep -v '^ *+' conftest.er1 >conftest.err
25079 cat conftest.err >&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); } && {
25082 test -z "$ac_c_werror_flag" ||
25083 test ! -s conftest.err
25084 } && test -s conftest$ac_exeext &&
25085 $as_test_x conftest$ac_exeext; then
25086 ac_cv_search_opendir=$ac_res
25088 echo "$as_me: failed program was:" >&5
25089 sed 's/^/| /' conftest.$ac_ext >&5
25094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25096 if test "${ac_cv_search_opendir+set}" = set; then
25100 if test "${ac_cv_search_opendir+set}" = set; then
25103 ac_cv_search_opendir=no
25105 rm conftest.$ac_ext
25106 LIBS=$ac_func_search_save_LIBS
25108 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25109 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25110 ac_res=$ac_cv_search_opendir
25111 if test "$ac_res" != no; then
25112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25119 if test "${ac_cv_search_opendir+set}" = set; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25122 ac_func_search_save_LIBS=$LIBS
25123 cat >conftest.$ac_ext <<_ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h. */
25130 /* Override any GCC internal prototype to avoid an error.
25131 Use char because int might match the return type of a GCC
25132 builtin and then its argument prototype would still apply. */
25145 for ac_lib in '' x; do
25146 if test -z "$ac_lib"; then
25147 ac_res="none required"
25150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25152 rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (ac_try="$ac_link"
25154 case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_link") 2>conftest.er1
25161 grep -v '^ *+' conftest.er1 >conftest.err
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest$ac_exeext &&
25169 $as_test_x conftest$ac_exeext; then
25170 ac_cv_search_opendir=$ac_res
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25180 if test "${ac_cv_search_opendir+set}" = set; then
25184 if test "${ac_cv_search_opendir+set}" = set; then
25187 ac_cv_search_opendir=no
25189 rm conftest.$ac_ext
25190 LIBS=$ac_func_search_save_LIBS
25192 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25193 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25194 ac_res=$ac_cv_search_opendir
25195 if test "$ac_res" != no; then
25196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25202 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25203 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25204 if test "${ac_cv_header_stat_broken+set}" = set; then
25205 echo $ECHO_N "(cached) $ECHO_C" >&6
25207 cat >conftest.$ac_ext <<_ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h. */
25213 #include <sys/types.h>
25214 #include <sys/stat.h>
25216 #if defined S_ISBLK && defined S_IFDIR
25217 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25220 #if defined S_ISBLK && defined S_IFCHR
25221 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25224 #if defined S_ISLNK && defined S_IFREG
25225 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25228 #if defined S_ISSOCK && defined S_IFREG
25229 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25233 rm -f conftest.$ac_objext
25234 if { (ac_try="$ac_compile"
25235 case "(($ac_try" in
25236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237 *) ac_try_echo=$ac_try;;
25239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240 (eval "$ac_compile") 2>conftest.er1
25242 grep -v '^ *+' conftest.er1 >conftest.err
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } && {
25247 test -z "$ac_c_werror_flag" ||
25248 test ! -s conftest.err
25249 } && test -s conftest.$ac_objext; then
25250 ac_cv_header_stat_broken=no
25252 echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25255 ac_cv_header_stat_broken=yes
25258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25260 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25261 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25262 if test $ac_cv_header_stat_broken = yes; then
25264 cat >>confdefs.h <<\_ACEOF
25265 #define STAT_MACROS_BROKEN 1
25270 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25271 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
25272 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25273 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 cat >conftest.$ac_ext <<_ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h. */
25281 #include <sys/types.h>
25282 #include <sys/wait.h>
25283 #ifndef WEXITSTATUS
25284 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25287 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25295 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25300 rm -f conftest.$ac_objext
25301 if { (ac_try="$ac_compile"
25302 case "(($ac_try" in
25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307 (eval "$ac_compile") 2>conftest.er1
25309 grep -v '^ *+' conftest.er1 >conftest.err
25311 cat conftest.err >&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } && {
25314 test -z "$ac_c_werror_flag" ||
25315 test ! -s conftest.err
25316 } && test -s conftest.$ac_objext; then
25317 ac_cv_header_sys_wait_h=yes
25319 echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25322 ac_cv_header_sys_wait_h=no
25325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25328 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
25329 if test $ac_cv_header_sys_wait_h = yes; then
25331 cat >>confdefs.h <<\_ACEOF
25332 #define HAVE_SYS_WAIT_H 1
25337 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25338 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25339 if test "${ac_cv_header_time+set}" = set; then
25340 echo $ECHO_N "(cached) $ECHO_C" >&6
25342 cat >conftest.$ac_ext <<_ACEOF
25345 cat confdefs.h >>conftest.$ac_ext
25346 cat >>conftest.$ac_ext <<_ACEOF
25347 /* end confdefs.h. */
25348 #include <sys/types.h>
25349 #include <sys/time.h>
25355 if ((struct tm *) 0)
25361 rm -f conftest.$ac_objext
25362 if { (ac_try="$ac_compile"
25363 case "(($ac_try" in
25364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25365 *) ac_try_echo=$ac_try;;
25367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25368 (eval "$ac_compile") 2>conftest.er1
25370 grep -v '^ *+' conftest.er1 >conftest.err
25372 cat conftest.err >&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } && {
25375 test -z "$ac_c_werror_flag" ||
25376 test ! -s conftest.err
25377 } && test -s conftest.$ac_objext; then
25378 ac_cv_header_time=yes
25380 echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25383 ac_cv_header_time=no
25386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25388 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25389 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25390 if test $ac_cv_header_time = yes; then
25392 cat >>confdefs.h <<\_ACEOF
25393 #define TIME_WITH_SYS_TIME 1
25398 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25399 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25400 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 cat >conftest.$ac_ext <<_ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h. */
25409 $ac_includes_default
25413 static struct stat ac_aggr;
25414 if (ac_aggr.st_blksize)
25420 rm -f conftest.$ac_objext
25421 if { (ac_try="$ac_compile"
25422 case "(($ac_try" in
25423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25424 *) ac_try_echo=$ac_try;;
25426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25427 (eval "$ac_compile") 2>conftest.er1
25429 grep -v '^ *+' conftest.er1 >conftest.err
25431 cat conftest.err >&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } && {
25434 test -z "$ac_c_werror_flag" ||
25435 test ! -s conftest.err
25436 } && test -s conftest.$ac_objext; then
25437 ac_cv_member_struct_stat_st_blksize=yes
25439 echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.$ac_ext >&5
25442 cat >conftest.$ac_ext <<_ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h. */
25448 $ac_includes_default
25452 static struct stat ac_aggr;
25453 if (sizeof ac_aggr.st_blksize)
25459 rm -f conftest.$ac_objext
25460 if { (ac_try="$ac_compile"
25461 case "(($ac_try" in
25462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25463 *) ac_try_echo=$ac_try;;
25465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25466 (eval "$ac_compile") 2>conftest.er1
25468 grep -v '^ *+' conftest.er1 >conftest.err
25470 cat conftest.err >&5
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); } && {
25473 test -z "$ac_c_werror_flag" ||
25474 test ! -s conftest.err
25475 } && test -s conftest.$ac_objext; then
25476 ac_cv_member_struct_stat_st_blksize=yes
25478 echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25481 ac_cv_member_struct_stat_st_blksize=no
25484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25489 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
25490 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
25491 if test $ac_cv_member_struct_stat_st_blksize = yes; then
25493 cat >>confdefs.h <<_ACEOF
25494 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25498 cat >>confdefs.h <<\_ACEOF
25499 #define HAVE_ST_BLKSIZE 1
25505 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25506 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25507 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25510 cat >conftest.$ac_ext <<_ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h. */
25516 $ac_includes_default
25520 static struct stat ac_aggr;
25521 if (ac_aggr.st_blocks)
25527 rm -f conftest.$ac_objext
25528 if { (ac_try="$ac_compile"
25529 case "(($ac_try" in
25530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25531 *) ac_try_echo=$ac_try;;
25533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25534 (eval "$ac_compile") 2>conftest.er1
25536 grep -v '^ *+' conftest.er1 >conftest.err
25538 cat conftest.err >&5
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); } && {
25541 test -z "$ac_c_werror_flag" ||
25542 test ! -s conftest.err
25543 } && test -s conftest.$ac_objext; then
25544 ac_cv_member_struct_stat_st_blocks=yes
25546 echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25549 cat >conftest.$ac_ext <<_ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h. */
25555 $ac_includes_default
25559 static struct stat ac_aggr;
25560 if (sizeof ac_aggr.st_blocks)
25566 rm -f conftest.$ac_objext
25567 if { (ac_try="$ac_compile"
25568 case "(($ac_try" in
25569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570 *) ac_try_echo=$ac_try;;
25572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25573 (eval "$ac_compile") 2>conftest.er1
25575 grep -v '^ *+' conftest.er1 >conftest.err
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } && {
25580 test -z "$ac_c_werror_flag" ||
25581 test ! -s conftest.err
25582 } && test -s conftest.$ac_objext; then
25583 ac_cv_member_struct_stat_st_blocks=yes
25585 echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25588 ac_cv_member_struct_stat_st_blocks=no
25591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25596 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25597 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25598 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25600 cat >>confdefs.h <<_ACEOF
25601 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25605 cat >>confdefs.h <<\_ACEOF
25606 #define HAVE_ST_BLOCKS 1
25610 case " $LIBOBJS " in
25611 *" fileblocks.$ac_objext "* ) ;;
25612 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25619 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25620 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25621 if test "${ac_cv_struct_tm+set}" = set; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
25624 cat >conftest.$ac_ext <<_ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h. */
25630 #include <sys/types.h>
25637 int *p = &tm.tm_sec;
25643 rm -f conftest.$ac_objext
25644 if { (ac_try="$ac_compile"
25645 case "(($ac_try" in
25646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25647 *) ac_try_echo=$ac_try;;
25649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25650 (eval "$ac_compile") 2>conftest.er1
25652 grep -v '^ *+' conftest.er1 >conftest.err
25654 cat conftest.err >&5
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } && {
25657 test -z "$ac_c_werror_flag" ||
25658 test ! -s conftest.err
25659 } && test -s conftest.$ac_objext; then
25660 ac_cv_struct_tm=time.h
25662 echo "$as_me: failed program was:" >&5
25663 sed 's/^/| /' conftest.$ac_ext >&5
25665 ac_cv_struct_tm=sys/time.h
25668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25670 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25671 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25672 if test $ac_cv_struct_tm = sys/time.h; then
25674 cat >>confdefs.h <<\_ACEOF
25675 #define TM_IN_SYS_TIME 1
25680 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25681 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
25682 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25683 echo $ECHO_N "(cached) $ECHO_C" >&6
25685 cat >conftest.$ac_ext <<_ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h. */
25691 #include <sys/types.h>
25692 #include <$ac_cv_struct_tm>
25698 static struct tm ac_aggr;
25699 if (ac_aggr.tm_zone)
25705 rm -f conftest.$ac_objext
25706 if { (ac_try="$ac_compile"
25707 case "(($ac_try" in
25708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709 *) ac_try_echo=$ac_try;;
25711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712 (eval "$ac_compile") 2>conftest.er1
25714 grep -v '^ *+' conftest.er1 >conftest.err
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } && {
25719 test -z "$ac_c_werror_flag" ||
25720 test ! -s conftest.err
25721 } && test -s conftest.$ac_objext; then
25722 ac_cv_member_struct_tm_tm_zone=yes
25724 echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25727 cat >conftest.$ac_ext <<_ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25733 #include <sys/types.h>
25734 #include <$ac_cv_struct_tm>
25740 static struct tm ac_aggr;
25741 if (sizeof ac_aggr.tm_zone)
25747 rm -f conftest.$ac_objext
25748 if { (ac_try="$ac_compile"
25749 case "(($ac_try" in
25750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751 *) ac_try_echo=$ac_try;;
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754 (eval "$ac_compile") 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } && {
25761 test -z "$ac_c_werror_flag" ||
25762 test ! -s conftest.err
25763 } && test -s conftest.$ac_objext; then
25764 ac_cv_member_struct_tm_tm_zone=yes
25766 echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25769 ac_cv_member_struct_tm_tm_zone=no
25772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25777 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25778 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25779 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25781 cat >>confdefs.h <<_ACEOF
25782 #define HAVE_STRUCT_TM_TM_ZONE 1
25788 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25790 cat >>confdefs.h <<\_ACEOF
25791 #define HAVE_TM_ZONE 1
25795 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25796 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
25797 if test "${ac_cv_have_decl_tzname+set}" = set; then
25798 echo $ECHO_N "(cached) $ECHO_C" >&6
25800 cat >conftest.$ac_ext <<_ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h. */
25819 rm -f conftest.$ac_objext
25820 if { (ac_try="$ac_compile"
25821 case "(($ac_try" in
25822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823 *) ac_try_echo=$ac_try;;
25825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25826 (eval "$ac_compile") 2>conftest.er1
25828 grep -v '^ *+' conftest.er1 >conftest.err
25830 cat conftest.err >&5
25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); } && {
25833 test -z "$ac_c_werror_flag" ||
25834 test ! -s conftest.err
25835 } && test -s conftest.$ac_objext; then
25836 ac_cv_have_decl_tzname=yes
25838 echo "$as_me: failed program was:" >&5
25839 sed 's/^/| /' conftest.$ac_ext >&5
25841 ac_cv_have_decl_tzname=no
25844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25846 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25847 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25848 if test $ac_cv_have_decl_tzname = yes; then
25850 cat >>confdefs.h <<_ACEOF
25851 #define HAVE_DECL_TZNAME 1
25856 cat >>confdefs.h <<_ACEOF
25857 #define HAVE_DECL_TZNAME 0
25864 { echo "$as_me:$LINENO: checking for tzname" >&5
25865 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
25866 if test "${ac_cv_var_tzname+set}" = set; then
25867 echo $ECHO_N "(cached) $ECHO_C" >&6
25869 cat >conftest.$ac_ext <<_ACEOF
25872 cat confdefs.h >>conftest.$ac_ext
25873 cat >>conftest.$ac_ext <<_ACEOF
25874 /* end confdefs.h. */
25876 #if !HAVE_DECL_TZNAME
25877 extern char *tzname[];
25883 return tzname[0][0];
25888 rm -f conftest.$ac_objext conftest$ac_exeext
25889 if { (ac_try="$ac_link"
25890 case "(($ac_try" in
25891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892 *) ac_try_echo=$ac_try;;
25894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25895 (eval "$ac_link") 2>conftest.er1
25897 grep -v '^ *+' conftest.er1 >conftest.err
25899 cat conftest.err >&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); } && {
25902 test -z "$ac_c_werror_flag" ||
25903 test ! -s conftest.err
25904 } && test -s conftest$ac_exeext &&
25905 $as_test_x conftest$ac_exeext; then
25906 ac_cv_var_tzname=yes
25908 echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25911 ac_cv_var_tzname=no
25914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25915 conftest$ac_exeext conftest.$ac_ext
25917 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25918 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25919 if test $ac_cv_var_tzname = yes; then
25921 cat >>confdefs.h <<\_ACEOF
25922 #define HAVE_TZNAME 1
25929 { echo "$as_me:$LINENO: checking for utime.h" >&5
25930 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
25931 if test "${ba_cv_header_utime_h+set}" = set; then
25932 echo $ECHO_N "(cached) $ECHO_C" >&6
25934 cat >conftest.$ac_ext <<_ACEOF
25937 cat confdefs.h >>conftest.$ac_ext
25938 cat >>conftest.$ac_ext <<_ACEOF
25939 /* end confdefs.h. */
25941 #include <sys/types.h>
25951 rm -f conftest.$ac_objext
25952 if { (ac_try="$ac_compile"
25953 case "(($ac_try" in
25954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955 *) ac_try_echo=$ac_try;;
25957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25958 (eval "$ac_compile") 2>conftest.er1
25960 grep -v '^ *+' conftest.er1 >conftest.err
25962 cat conftest.err >&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); } && {
25965 test -z "$ac_c_werror_flag" ||
25966 test ! -s conftest.err
25967 } && test -s conftest.$ac_objext; then
25968 ba_cv_header_utime_h=yes
25970 echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25973 ba_cv_header_utime_h=no
25976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25978 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
25979 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
25980 test $ba_cv_header_utime_h = yes &&
25981 cat >>confdefs.h <<\_ACEOF
25982 #define HAVE_UTIME_H 1
25986 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25987 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25988 if test "${ba_cv_header_socklen_t+set}" = set; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 cat >conftest.$ac_ext <<_ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25998 #include <sys/types.h>
25999 #include <sys/socket.h>
26008 rm -f conftest.$ac_objext
26009 if { (ac_try="$ac_compile"
26010 case "(($ac_try" in
26011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012 *) ac_try_echo=$ac_try;;
26014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26015 (eval "$ac_compile") 2>conftest.er1
26017 grep -v '^ *+' conftest.er1 >conftest.err
26019 cat conftest.err >&5
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); } && {
26022 test -z "$ac_c_werror_flag" ||
26023 test ! -s conftest.err
26024 } && test -s conftest.$ac_objext; then
26025 ba_cv_header_socklen_t=yes
26027 echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26030 ba_cv_header_socklen_t=no
26033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26035 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
26036 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
26037 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
26038 #define HAVE_SOCKLEN_T 1
26042 { echo "$as_me:$LINENO: checking for bigendian" >&5
26043 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
26044 if test "${ba_cv_bigendian+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26047 if test "$cross_compiling" = yes; then
26050 cat >conftest.$ac_ext <<_ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26056 main(){long a=1L; char *p=(char *)&a; exit(*p);}
26058 rm -f conftest$ac_exeext
26059 if { (ac_try="$ac_link"
26060 case "(($ac_try" in
26061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062 *) ac_try_echo=$ac_try;;
26064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26065 (eval "$ac_link") 2>&5
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26069 { (case "(($ac_try" in
26070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071 *) ac_try_echo=$ac_try;;
26073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26074 (eval "$ac_try") 2>&5
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; }; then
26078 ba_cv_bigendian=yes
26080 echo "$as_me: program exited with status $ac_status" >&5
26081 echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26084 ( exit $ac_status )
26087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26092 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
26093 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
26094 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
26095 #define HAVE_BIGENDIAN 1
26100 ac_cpp='$CXXCPP $CPPFLAGS'
26101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26106 { echo "$as_me:$LINENO: checking for typeof" >&5
26107 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
26108 if test "${ba_cv_have_typeof+set}" = set; then
26109 echo $ECHO_N "(cached) $ECHO_C" >&6
26111 if test "$cross_compiling" = yes; then
26112 ba_cv_have_typeof=no
26114 cat >conftest.$ac_ext <<_ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h. */
26120 main(){char *a = 0; a = (typeof a)a;}
26122 rm -f conftest$ac_exeext
26123 if { (ac_try="$ac_link"
26124 case "(($ac_try" in
26125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26126 *) ac_try_echo=$ac_try;;
26128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26129 (eval "$ac_link") 2>&5
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26133 { (case "(($ac_try" in
26134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26135 *) ac_try_echo=$ac_try;;
26137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26138 (eval "$ac_try") 2>&5
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); }; }; then
26142 ba_cv_have_typeof=yes
26144 echo "$as_me: program exited with status $ac_status" >&5
26145 echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26148 ( exit $ac_status )
26149 ba_cv_have_typeof=no
26151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26156 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
26157 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
26158 test $ba_cv_have_typeof = yes &&
26159 cat >>confdefs.h <<\_ACEOF
26160 #define HAVE_TYPEOF 1
26164 ac_cpp='$CPP $CPPFLAGS'
26165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26170 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26171 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
26172 if test "${ac_cv_c_const+set}" = set; then
26173 echo $ECHO_N "(cached) $ECHO_C" >&6
26175 cat >conftest.$ac_ext <<_ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h. */
26185 /* FIXME: Include the comments suggested by Paul. */
26186 #ifndef __cplusplus
26187 /* Ultrix mips cc rejects this. */
26188 typedef int charset[2];
26190 /* SunOS 4.1.1 cc rejects this. */
26191 char const *const *pcpcc;
26193 /* NEC SVR4.0.2 mips cc rejects this. */
26194 struct point {int x, y;};
26195 static struct point const zero = {0,0};
26196 /* AIX XL C 1.02.0.0 rejects this.
26197 It does not let you subtract one const X* pointer from another in
26198 an arm of an if-expression whose if-part is not a constant
26200 const char *g = "string";
26201 pcpcc = &g + (g ? g-g : 0);
26202 /* HPUX 7.0 cc rejects these. */
26204 ppc = (char**) pcpcc;
26205 pcpcc = (char const *const *) ppc;
26206 { /* SCO 3.2v4 cc rejects this. */
26208 char const *s = 0 ? (char *) 0 : (char const *) 0;
26213 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26214 int x[] = {25, 17};
26215 const int *foo = &x[0];
26218 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26219 typedef const int *iptr;
26223 { /* AIX XL C 1.02.0.0 rejects this saying
26224 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26225 struct s { int j; const int *ap[3]; };
26226 struct s *b; b->j = 5;
26228 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26229 const int foo = 10;
26230 if (!foo) return 0;
26232 return !cs[0] && !zero.x;
26239 rm -f conftest.$ac_objext
26240 if { (ac_try="$ac_compile"
26241 case "(($ac_try" in
26242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26243 *) ac_try_echo=$ac_try;;
26245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26246 (eval "$ac_compile") 2>conftest.er1
26248 grep -v '^ *+' conftest.er1 >conftest.err
26250 cat conftest.err >&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); } && {
26253 test -z "$ac_c_werror_flag" ||
26254 test ! -s conftest.err
26255 } && test -s conftest.$ac_objext; then
26258 echo "$as_me: failed program was:" >&5
26259 sed 's/^/| /' conftest.$ac_ext >&5
26264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26267 echo "${ECHO_T}$ac_cv_c_const" >&6; }
26268 if test $ac_cv_c_const = no; then
26270 cat >>confdefs.h <<\_ACEOF
26278 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
26279 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
26281 # The order of these tests is important.
26282 cat >conftest.$ac_ext <<_ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h. */
26288 #include <sys/statvfs.h>
26289 #include <sys/fstyp.h>
26291 if { (ac_try="$ac_cpp conftest.$ac_ext"
26292 case "(($ac_try" in
26293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294 *) ac_try_echo=$ac_try;;
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26299 grep -v '^ *+' conftest.er1 >conftest.err
26301 cat conftest.err >&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); } >/dev/null && {
26304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26305 test ! -s conftest.err
26307 cat >>confdefs.h <<\_ACEOF
26308 #define FSTYPE_STATVFS 1
26312 echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26318 rm -f conftest.err conftest.$ac_ext
26319 if test $fstype = no; then
26320 cat >conftest.$ac_ext <<_ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h. */
26326 #include <sys/statfs.h>
26327 #include <sys/fstyp.h>
26329 if { (ac_try="$ac_cpp conftest.$ac_ext"
26330 case "(($ac_try" in
26331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332 *) ac_try_echo=$ac_try;;
26334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26337 grep -v '^ *+' conftest.er1 >conftest.err
26339 cat conftest.err >&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); } >/dev/null && {
26342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26343 test ! -s conftest.err
26345 cat >>confdefs.h <<\_ACEOF
26346 #define FSTYPE_USG_STATFS 1
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26356 rm -f conftest.err conftest.$ac_ext
26358 if test $fstype = no; then
26359 cat >conftest.$ac_ext <<_ACEOF
26362 cat confdefs.h >>conftest.$ac_ext
26363 cat >>conftest.$ac_ext <<_ACEOF
26364 /* end confdefs.h. */
26365 #include <sys/statfs.h>
26366 #include <sys/vmount.h>
26368 if { (ac_try="$ac_cpp conftest.$ac_ext"
26369 case "(($ac_try" in
26370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26371 *) ac_try_echo=$ac_try;;
26373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26376 grep -v '^ *+' conftest.er1 >conftest.err
26378 cat conftest.err >&5
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); } >/dev/null && {
26381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26382 test ! -s conftest.err
26384 cat >>confdefs.h <<\_ACEOF
26385 #define FSTYPE_AIX_STATFS 1
26389 echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26395 rm -f conftest.err conftest.$ac_ext
26397 if test $fstype = no; then
26398 cat >conftest.$ac_ext <<_ACEOF
26401 cat confdefs.h >>conftest.$ac_ext
26402 cat >>conftest.$ac_ext <<_ACEOF
26403 /* end confdefs.h. */
26404 #include <mntent.h>
26406 if { (ac_try="$ac_cpp conftest.$ac_ext"
26407 case "(($ac_try" in
26408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26409 *) ac_try_echo=$ac_try;;
26411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26414 grep -v '^ *+' conftest.er1 >conftest.err
26416 cat conftest.err >&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } >/dev/null && {
26419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26420 test ! -s conftest.err
26422 cat >>confdefs.h <<\_ACEOF
26423 #define FSTYPE_MNTENT 1
26427 echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26433 rm -f conftest.err conftest.$ac_ext
26435 if test $fstype = no; then
26436 cat >conftest.$ac_ext <<_ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h. */
26442 #include <sys/mount.h>
26445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26446 $EGREP "f_type;" >/dev/null 2>&1; then
26447 cat >>confdefs.h <<\_ACEOF
26448 #define FSTYPE_STATFS 1
26455 if test $fstype = no; then
26456 cat >conftest.$ac_ext <<_ACEOF
26459 cat confdefs.h >>conftest.$ac_ext
26460 cat >>conftest.$ac_ext <<_ACEOF
26461 /* end confdefs.h. */
26462 #include <sys/mount.h>
26463 #include <sys/fs_types.h>
26465 if { (ac_try="$ac_cpp conftest.$ac_ext"
26466 case "(($ac_try" in
26467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26468 *) ac_try_echo=$ac_try;;
26470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26473 grep -v '^ *+' conftest.er1 >conftest.err
26475 cat conftest.err >&5
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); } >/dev/null && {
26478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26479 test ! -s conftest.err
26481 cat >>confdefs.h <<\_ACEOF
26482 #define FSTYPE_GETMNT 1
26486 echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26492 rm -f conftest.err conftest.$ac_ext
26494 { echo "$as_me:$LINENO: result: $fstype" >&5
26495 echo "${ECHO_T}$fstype" >&6; }
26497 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26498 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26499 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26500 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26501 echo $ECHO_N "(cached) $ECHO_C" >&6
26503 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26504 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26506 # Is the header compilable?
26507 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
26508 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
26509 cat >conftest.$ac_ext <<_ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h. */
26515 $ac_includes_default
26516 #include <sys/statvfs.h>
26518 rm -f conftest.$ac_objext
26519 if { (ac_try="$ac_compile"
26520 case "(($ac_try" in
26521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26522 *) ac_try_echo=$ac_try;;
26524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26525 (eval "$ac_compile") 2>conftest.er1
26527 grep -v '^ *+' conftest.er1 >conftest.err
26529 cat conftest.err >&5
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); } && {
26532 test -z "$ac_c_werror_flag" ||
26533 test ! -s conftest.err
26534 } && test -s conftest.$ac_objext; then
26535 ac_header_compiler=yes
26537 echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.$ac_ext >&5
26540 ac_header_compiler=no
26543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26545 echo "${ECHO_T}$ac_header_compiler" >&6; }
26547 # Is the header present?
26548 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
26549 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
26550 cat >conftest.$ac_ext <<_ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h. */
26556 #include <sys/statvfs.h>
26558 if { (ac_try="$ac_cpp conftest.$ac_ext"
26559 case "(($ac_try" in
26560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26561 *) ac_try_echo=$ac_try;;
26563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26566 grep -v '^ *+' conftest.er1 >conftest.err
26568 cat conftest.err >&5
26569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570 (exit $ac_status); } >/dev/null && {
26571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26572 test ! -s conftest.err
26574 ac_header_preproc=yes
26576 echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26579 ac_header_preproc=no
26582 rm -f conftest.err conftest.$ac_ext
26583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26584 echo "${ECHO_T}$ac_header_preproc" >&6; }
26586 # So? What about this header?
26587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26589 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26590 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26591 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
26592 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
26593 ac_header_preproc=yes
26596 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
26597 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
26598 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
26599 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
26600 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
26601 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
26602 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
26603 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
26605 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
26606 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
26607 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
26611 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26612 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26613 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26614 echo $ECHO_N "(cached) $ECHO_C" >&6
26616 ac_cv_header_sys_statvfs_h=$ac_header_preproc
26618 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26619 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26622 if test $ac_cv_header_sys_statvfs_h = yes; then
26624 cat >>confdefs.h <<\_ACEOF
26625 #define HAVE_SYS_STATVFS_H 1
26632 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26633 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26634 if test "${ac_cv_type_signal+set}" = set; then
26635 echo $ECHO_N "(cached) $ECHO_C" >&6
26637 cat >conftest.$ac_ext <<_ACEOF
26640 cat confdefs.h >>conftest.$ac_ext
26641 cat >>conftest.$ac_ext <<_ACEOF
26642 /* end confdefs.h. */
26643 #include <sys/types.h>
26644 #include <signal.h>
26649 return *(signal (0, 0)) (0) == 1;
26654 rm -f conftest.$ac_objext
26655 if { (ac_try="$ac_compile"
26656 case "(($ac_try" in
26657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658 *) ac_try_echo=$ac_try;;
26660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26661 (eval "$ac_compile") 2>conftest.er1
26663 grep -v '^ *+' conftest.er1 >conftest.err
26665 cat conftest.err >&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } && {
26668 test -z "$ac_c_werror_flag" ||
26669 test ! -s conftest.err
26670 } && test -s conftest.$ac_objext; then
26671 ac_cv_type_signal=int
26673 echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.$ac_ext >&5
26676 ac_cv_type_signal=void
26679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26681 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26682 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26684 cat >>confdefs.h <<_ACEOF
26685 #define RETSIGTYPE $ac_cv_type_signal
26690 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
26691 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
26692 if test "${bash_cv_signal_vintage+set}" = set; then
26693 echo $ECHO_N "(cached) $ECHO_C" >&6
26696 cat >conftest.$ac_ext <<_ACEOF
26699 cat confdefs.h >>conftest.$ac_ext
26700 cat >>conftest.$ac_ext <<_ACEOF
26701 /* end confdefs.h. */
26702 #include <signal.h>
26708 struct sigaction sa;
26709 sigemptyset(&ss); sigsuspend(&ss);
26710 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26711 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26717 rm -f conftest.$ac_objext conftest$ac_exeext
26718 if { (ac_try="$ac_link"
26719 case "(($ac_try" in
26720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26721 *) ac_try_echo=$ac_try;;
26723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26724 (eval "$ac_link") 2>conftest.er1
26726 grep -v '^ *+' conftest.er1 >conftest.err
26728 cat conftest.err >&5
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); } && {
26731 test -z "$ac_c_werror_flag" ||
26732 test ! -s conftest.err
26733 } && test -s conftest$ac_exeext &&
26734 $as_test_x conftest$ac_exeext; then
26735 bash_cv_signal_vintage="posix"
26737 echo "$as_me: failed program was:" >&5
26738 sed 's/^/| /' conftest.$ac_ext >&5
26741 cat >conftest.$ac_ext <<_ACEOF
26744 cat confdefs.h >>conftest.$ac_ext
26745 cat >>conftest.$ac_ext <<_ACEOF
26746 /* end confdefs.h. */
26747 #include <signal.h>
26752 int mask = sigmask(SIGINT);
26753 sigsetmask(mask); sigblock(mask); sigpause(mask);
26759 rm -f conftest.$ac_objext conftest$ac_exeext
26760 if { (ac_try="$ac_link"
26761 case "(($ac_try" in
26762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763 *) ac_try_echo=$ac_try;;
26765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766 (eval "$ac_link") 2>conftest.er1
26768 grep -v '^ *+' conftest.er1 >conftest.err
26770 cat conftest.err >&5
26771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772 (exit $ac_status); } && {
26773 test -z "$ac_c_werror_flag" ||
26774 test ! -s conftest.err
26775 } && test -s conftest$ac_exeext &&
26776 $as_test_x conftest$ac_exeext; then
26777 bash_cv_signal_vintage="4.2bsd"
26779 echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26783 cat >conftest.$ac_ext <<_ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h. */
26790 #include <signal.h>
26791 RETSIGTYPE foo() { }
26796 int mask = sigmask(SIGINT);
26797 sigset(SIGINT, foo); sigrelse(SIGINT);
26798 sighold(SIGINT); sigpause(SIGINT);
26804 rm -f conftest.$ac_objext conftest$ac_exeext
26805 if { (ac_try="$ac_link"
26806 case "(($ac_try" in
26807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26808 *) ac_try_echo=$ac_try;;
26810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26811 (eval "$ac_link") 2>conftest.er1
26813 grep -v '^ *+' conftest.er1 >conftest.err
26815 cat conftest.err >&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } && {
26818 test -z "$ac_c_werror_flag" ||
26819 test ! -s conftest.err
26820 } && test -s conftest$ac_exeext &&
26821 $as_test_x conftest$ac_exeext; then
26822 bash_cv_signal_vintage="svr3"
26824 echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26827 bash_cv_signal_vintage="v7"
26831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26832 conftest$ac_exeext conftest.$ac_ext
26836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26837 conftest$ac_exeext conftest.$ac_ext
26841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26842 conftest$ac_exeext conftest.$ac_ext
26846 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26847 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
26848 if test "$bash_cv_signal_vintage" = "posix"; then
26849 cat >>confdefs.h <<\_ACEOF
26850 #define HAVE_POSIX_SIGNALS 1
26853 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26854 cat >>confdefs.h <<\_ACEOF
26855 #define HAVE_BSD_SIGNALS 1
26858 elif test "$bash_cv_signal_vintage" = "svr3"; then
26859 cat >>confdefs.h <<\_ACEOF
26860 #define HAVE_USG_SIGHOLD 1
26865 { echo "$as_me:$LINENO: checking for mode_t" >&5
26866 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
26867 if test "${ac_cv_type_mode_t+set}" = set; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26870 cat >conftest.$ac_ext <<_ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h. */
26876 $ac_includes_default
26877 typedef mode_t ac__type_new_;
26881 if ((ac__type_new_ *) 0)
26883 if (sizeof (ac__type_new_))
26889 rm -f conftest.$ac_objext
26890 if { (ac_try="$ac_compile"
26891 case "(($ac_try" in
26892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26893 *) ac_try_echo=$ac_try;;
26895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26896 (eval "$ac_compile") 2>conftest.er1
26898 grep -v '^ *+' conftest.er1 >conftest.err
26900 cat conftest.err >&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } && {
26903 test -z "$ac_c_werror_flag" ||
26904 test ! -s conftest.err
26905 } && test -s conftest.$ac_objext; then
26906 ac_cv_type_mode_t=yes
26908 echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26911 ac_cv_type_mode_t=no
26914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26916 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26917 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
26918 if test $ac_cv_type_mode_t = yes; then
26922 cat >>confdefs.h <<_ACEOF
26928 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26929 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
26930 if test "${ac_cv_type_uid_t+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26933 cat >conftest.$ac_ext <<_ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h. */
26939 #include <sys/types.h>
26942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26943 $EGREP "uid_t" >/dev/null 2>&1; then
26944 ac_cv_type_uid_t=yes
26946 ac_cv_type_uid_t=no
26951 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26952 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
26953 if test $ac_cv_type_uid_t = no; then
26955 cat >>confdefs.h <<\_ACEOF
26960 cat >>confdefs.h <<\_ACEOF
26966 { echo "$as_me:$LINENO: checking for size_t" >&5
26967 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
26968 if test "${ac_cv_type_size_t+set}" = set; then
26969 echo $ECHO_N "(cached) $ECHO_C" >&6
26971 cat >conftest.$ac_ext <<_ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26977 $ac_includes_default
26978 typedef size_t ac__type_new_;
26982 if ((ac__type_new_ *) 0)
26984 if (sizeof (ac__type_new_))
26990 rm -f conftest.$ac_objext
26991 if { (ac_try="$ac_compile"
26992 case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997 (eval "$ac_compile") 2>conftest.er1
26999 grep -v '^ *+' conftest.er1 >conftest.err
27001 cat conftest.err >&5
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); } && {
27004 test -z "$ac_c_werror_flag" ||
27005 test ! -s conftest.err
27006 } && test -s conftest.$ac_objext; then
27007 ac_cv_type_size_t=yes
27009 echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27012 ac_cv_type_size_t=no
27015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27017 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27018 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27019 if test $ac_cv_type_size_t = yes; then
27023 cat >>confdefs.h <<_ACEOF
27024 #define size_t unsigned int
27029 { echo "$as_me:$LINENO: checking for pid_t" >&5
27030 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
27031 if test "${ac_cv_type_pid_t+set}" = set; then
27032 echo $ECHO_N "(cached) $ECHO_C" >&6
27034 cat >conftest.$ac_ext <<_ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h. */
27040 $ac_includes_default
27041 typedef pid_t ac__type_new_;
27045 if ((ac__type_new_ *) 0)
27047 if (sizeof (ac__type_new_))
27053 rm -f conftest.$ac_objext
27054 if { (ac_try="$ac_compile"
27055 case "(($ac_try" in
27056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057 *) ac_try_echo=$ac_try;;
27059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060 (eval "$ac_compile") 2>conftest.er1
27062 grep -v '^ *+' conftest.er1 >conftest.err
27064 cat conftest.err >&5
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); } && {
27067 test -z "$ac_c_werror_flag" ||
27068 test ! -s conftest.err
27069 } && test -s conftest.$ac_objext; then
27070 ac_cv_type_pid_t=yes
27072 echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27075 ac_cv_type_pid_t=no
27078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27080 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27081 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
27082 if test $ac_cv_type_pid_t = yes; then
27086 cat >>confdefs.h <<_ACEOF
27092 { echo "$as_me:$LINENO: checking for off_t" >&5
27093 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
27094 if test "${ac_cv_type_off_t+set}" = set; then
27095 echo $ECHO_N "(cached) $ECHO_C" >&6
27097 cat >conftest.$ac_ext <<_ACEOF
27100 cat confdefs.h >>conftest.$ac_ext
27101 cat >>conftest.$ac_ext <<_ACEOF
27102 /* end confdefs.h. */
27103 $ac_includes_default
27104 typedef off_t ac__type_new_;
27108 if ((ac__type_new_ *) 0)
27110 if (sizeof (ac__type_new_))
27116 rm -f conftest.$ac_objext
27117 if { (ac_try="$ac_compile"
27118 case "(($ac_try" in
27119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120 *) ac_try_echo=$ac_try;;
27122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123 (eval "$ac_compile") 2>conftest.er1
27125 grep -v '^ *+' conftest.er1 >conftest.err
27127 cat conftest.err >&5
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); } && {
27130 test -z "$ac_c_werror_flag" ||
27131 test ! -s conftest.err
27132 } && test -s conftest.$ac_objext; then
27133 ac_cv_type_off_t=yes
27135 echo "$as_me: failed program was:" >&5
27136 sed 's/^/| /' conftest.$ac_ext >&5
27138 ac_cv_type_off_t=no
27141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27143 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27144 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
27145 if test $ac_cv_type_off_t = yes; then
27149 cat >>confdefs.h <<_ACEOF
27150 #define off_t long int
27155 { echo "$as_me:$LINENO: checking for ino_t" >&5
27156 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
27157 if test "${ac_cv_type_ino_t+set}" = set; then
27158 echo $ECHO_N "(cached) $ECHO_C" >&6
27160 cat >conftest.$ac_ext <<_ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h. */
27166 $ac_includes_default
27167 typedef ino_t ac__type_new_;
27171 if ((ac__type_new_ *) 0)
27173 if (sizeof (ac__type_new_))
27179 rm -f conftest.$ac_objext
27180 if { (ac_try="$ac_compile"
27181 case "(($ac_try" in
27182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183 *) ac_try_echo=$ac_try;;
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186 (eval "$ac_compile") 2>conftest.er1
27188 grep -v '^ *+' conftest.er1 >conftest.err
27190 cat conftest.err >&5
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); } && {
27193 test -z "$ac_c_werror_flag" ||
27194 test ! -s conftest.err
27195 } && test -s conftest.$ac_objext; then
27196 ac_cv_type_ino_t=yes
27198 echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27201 ac_cv_type_ino_t=no
27204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27206 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
27207 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
27208 if test $ac_cv_type_ino_t = yes; then
27212 cat >>confdefs.h <<_ACEOF
27213 #define ino_t unsigned long
27218 { echo "$as_me:$LINENO: checking for dev_t" >&5
27219 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
27220 if test "${ac_cv_type_dev_t+set}" = set; then
27221 echo $ECHO_N "(cached) $ECHO_C" >&6
27223 cat >conftest.$ac_ext <<_ACEOF
27226 cat confdefs.h >>conftest.$ac_ext
27227 cat >>conftest.$ac_ext <<_ACEOF
27228 /* end confdefs.h. */
27229 $ac_includes_default
27230 typedef dev_t ac__type_new_;
27234 if ((ac__type_new_ *) 0)
27236 if (sizeof (ac__type_new_))
27242 rm -f conftest.$ac_objext
27243 if { (ac_try="$ac_compile"
27244 case "(($ac_try" in
27245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27246 *) ac_try_echo=$ac_try;;
27248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27249 (eval "$ac_compile") 2>conftest.er1
27251 grep -v '^ *+' conftest.er1 >conftest.err
27253 cat conftest.err >&5
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); } && {
27256 test -z "$ac_c_werror_flag" ||
27257 test ! -s conftest.err
27258 } && test -s conftest.$ac_objext; then
27259 ac_cv_type_dev_t=yes
27261 echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27264 ac_cv_type_dev_t=no
27267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27269 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
27270 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
27271 if test $ac_cv_type_dev_t = yes; then
27275 cat >>confdefs.h <<_ACEOF
27276 #define dev_t unsigned long
27281 { echo "$as_me:$LINENO: checking for daddr_t" >&5
27282 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
27283 if test "${ac_cv_type_daddr_t+set}" = set; then
27284 echo $ECHO_N "(cached) $ECHO_C" >&6
27286 cat >conftest.$ac_ext <<_ACEOF
27289 cat confdefs.h >>conftest.$ac_ext
27290 cat >>conftest.$ac_ext <<_ACEOF
27291 /* end confdefs.h. */
27292 $ac_includes_default
27293 typedef daddr_t ac__type_new_;
27297 if ((ac__type_new_ *) 0)
27299 if (sizeof (ac__type_new_))
27305 rm -f conftest.$ac_objext
27306 if { (ac_try="$ac_compile"
27307 case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_compile") 2>conftest.er1
27314 grep -v '^ *+' conftest.er1 >conftest.err
27316 cat conftest.err >&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); } && {
27319 test -z "$ac_c_werror_flag" ||
27320 test ! -s conftest.err
27321 } && test -s conftest.$ac_objext; then
27322 ac_cv_type_daddr_t=yes
27324 echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27327 ac_cv_type_daddr_t=no
27330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27332 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
27333 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
27334 if test $ac_cv_type_daddr_t = yes; then
27338 cat >>confdefs.h <<_ACEOF
27339 #define daddr_t long
27344 { echo "$as_me:$LINENO: checking for major_t" >&5
27345 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
27346 if test "${ac_cv_type_major_t+set}" = set; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27349 cat >conftest.$ac_ext <<_ACEOF
27352 cat confdefs.h >>conftest.$ac_ext
27353 cat >>conftest.$ac_ext <<_ACEOF
27354 /* end confdefs.h. */
27355 $ac_includes_default
27356 typedef major_t ac__type_new_;
27360 if ((ac__type_new_ *) 0)
27362 if (sizeof (ac__type_new_))
27368 rm -f conftest.$ac_objext
27369 if { (ac_try="$ac_compile"
27370 case "(($ac_try" in
27371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27372 *) ac_try_echo=$ac_try;;
27374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27375 (eval "$ac_compile") 2>conftest.er1
27377 grep -v '^ *+' conftest.er1 >conftest.err
27379 cat conftest.err >&5
27380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); } && {
27382 test -z "$ac_c_werror_flag" ||
27383 test ! -s conftest.err
27384 } && test -s conftest.$ac_objext; then
27385 ac_cv_type_major_t=yes
27387 echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27390 ac_cv_type_major_t=no
27393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27395 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
27396 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
27397 if test $ac_cv_type_major_t = yes; then
27401 cat >>confdefs.h <<_ACEOF
27402 #define major_t int
27407 { echo "$as_me:$LINENO: checking for minor_t" >&5
27408 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
27409 if test "${ac_cv_type_minor_t+set}" = set; then
27410 echo $ECHO_N "(cached) $ECHO_C" >&6
27412 cat >conftest.$ac_ext <<_ACEOF
27415 cat confdefs.h >>conftest.$ac_ext
27416 cat >>conftest.$ac_ext <<_ACEOF
27417 /* end confdefs.h. */
27418 $ac_includes_default
27419 typedef minor_t ac__type_new_;
27423 if ((ac__type_new_ *) 0)
27425 if (sizeof (ac__type_new_))
27431 rm -f conftest.$ac_objext
27432 if { (ac_try="$ac_compile"
27433 case "(($ac_try" in
27434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435 *) ac_try_echo=$ac_try;;
27437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438 (eval "$ac_compile") 2>conftest.er1
27440 grep -v '^ *+' conftest.er1 >conftest.err
27442 cat conftest.err >&5
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); } && {
27445 test -z "$ac_c_werror_flag" ||
27446 test ! -s conftest.err
27447 } && test -s conftest.$ac_objext; then
27448 ac_cv_type_minor_t=yes
27450 echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.$ac_ext >&5
27453 ac_cv_type_minor_t=no
27456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27458 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
27459 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
27460 if test $ac_cv_type_minor_t = yes; then
27464 cat >>confdefs.h <<_ACEOF
27465 #define minor_t int
27470 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27471 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27472 if test "${ac_cv_type_ssize_t+set}" = set; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27475 cat >conftest.$ac_ext <<_ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27481 $ac_includes_default
27482 typedef ssize_t ac__type_new_;
27486 if ((ac__type_new_ *) 0)
27488 if (sizeof (ac__type_new_))
27494 rm -f conftest.$ac_objext
27495 if { (ac_try="$ac_compile"
27496 case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_compile") 2>conftest.er1
27503 grep -v '^ *+' conftest.er1 >conftest.err
27505 cat conftest.err >&5
27506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); } && {
27508 test -z "$ac_c_werror_flag" ||
27509 test ! -s conftest.err
27510 } && test -s conftest.$ac_objext; then
27511 ac_cv_type_ssize_t=yes
27513 echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27516 ac_cv_type_ssize_t=no
27519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27521 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27522 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27523 if test $ac_cv_type_ssize_t = yes; then
27527 cat >>confdefs.h <<_ACEOF
27528 #define ssize_t int
27533 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27534 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
27535 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27538 cat >conftest.$ac_ext <<_ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h. */
27544 $ac_includes_default
27548 static struct stat ac_aggr;
27549 if (ac_aggr.st_blocks)
27555 rm -f conftest.$ac_objext
27556 if { (ac_try="$ac_compile"
27557 case "(($ac_try" in
27558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27559 *) ac_try_echo=$ac_try;;
27561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27562 (eval "$ac_compile") 2>conftest.er1
27564 grep -v '^ *+' conftest.er1 >conftest.err
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } && {
27569 test -z "$ac_c_werror_flag" ||
27570 test ! -s conftest.err
27571 } && test -s conftest.$ac_objext; then
27572 ac_cv_member_struct_stat_st_blocks=yes
27574 echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27577 cat >conftest.$ac_ext <<_ACEOF
27580 cat confdefs.h >>conftest.$ac_ext
27581 cat >>conftest.$ac_ext <<_ACEOF
27582 /* end confdefs.h. */
27583 $ac_includes_default
27587 static struct stat ac_aggr;
27588 if (sizeof ac_aggr.st_blocks)
27594 rm -f conftest.$ac_objext
27595 if { (ac_try="$ac_compile"
27596 case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_compile") 2>conftest.er1
27603 grep -v '^ *+' conftest.er1 >conftest.err
27605 cat conftest.err >&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); } && {
27608 test -z "$ac_c_werror_flag" ||
27609 test ! -s conftest.err
27610 } && test -s conftest.$ac_objext; then
27611 ac_cv_member_struct_stat_st_blocks=yes
27613 echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27616 ac_cv_member_struct_stat_st_blocks=no
27619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27624 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27625 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
27626 if test $ac_cv_member_struct_stat_st_blocks = yes; then
27628 cat >>confdefs.h <<_ACEOF
27629 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27633 cat >>confdefs.h <<\_ACEOF
27634 #define HAVE_ST_BLOCKS 1
27638 case " $LIBOBJS " in
27639 *" fileblocks.$ac_objext "* ) ;;
27640 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27647 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
27648 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
27649 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
27650 echo $ECHO_N "(cached) $ECHO_C" >&6
27652 cat >conftest.$ac_ext <<_ACEOF
27655 cat confdefs.h >>conftest.$ac_ext
27656 cat >>conftest.$ac_ext <<_ACEOF
27657 /* end confdefs.h. */
27658 $ac_includes_default
27662 static struct stat ac_aggr;
27663 if (ac_aggr.st_rdev)
27669 rm -f conftest.$ac_objext
27670 if { (ac_try="$ac_compile"
27671 case "(($ac_try" in
27672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673 *) ac_try_echo=$ac_try;;
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676 (eval "$ac_compile") 2>conftest.er1
27678 grep -v '^ *+' conftest.er1 >conftest.err
27680 cat conftest.err >&5
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); } && {
27683 test -z "$ac_c_werror_flag" ||
27684 test ! -s conftest.err
27685 } && test -s conftest.$ac_objext; then
27686 ac_cv_member_struct_stat_st_rdev=yes
27688 echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27691 cat >conftest.$ac_ext <<_ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h. */
27697 $ac_includes_default
27701 static struct stat ac_aggr;
27702 if (sizeof ac_aggr.st_rdev)
27708 rm -f conftest.$ac_objext
27709 if { (ac_try="$ac_compile"
27710 case "(($ac_try" in
27711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27712 *) ac_try_echo=$ac_try;;
27714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27715 (eval "$ac_compile") 2>conftest.er1
27717 grep -v '^ *+' conftest.er1 >conftest.err
27719 cat conftest.err >&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); } && {
27722 test -z "$ac_c_werror_flag" ||
27723 test ! -s conftest.err
27724 } && test -s conftest.$ac_objext; then
27725 ac_cv_member_struct_stat_st_rdev=yes
27727 echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27730 ac_cv_member_struct_stat_st_rdev=no
27733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27738 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
27739 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
27740 if test $ac_cv_member_struct_stat_st_rdev = yes; then
27742 cat >>confdefs.h <<_ACEOF
27743 #define HAVE_STRUCT_STAT_ST_RDEV 1
27747 cat >>confdefs.h <<\_ACEOF
27748 #define HAVE_ST_RDEV 1
27754 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27755 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
27756 if test "${ac_cv_struct_tm+set}" = set; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27759 cat >conftest.$ac_ext <<_ACEOF
27762 cat confdefs.h >>conftest.$ac_ext
27763 cat >>conftest.$ac_ext <<_ACEOF
27764 /* end confdefs.h. */
27765 #include <sys/types.h>
27772 int *p = &tm.tm_sec;
27778 rm -f conftest.$ac_objext
27779 if { (ac_try="$ac_compile"
27780 case "(($ac_try" in
27781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782 *) ac_try_echo=$ac_try;;
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785 (eval "$ac_compile") 2>conftest.er1
27787 grep -v '^ *+' conftest.er1 >conftest.err
27789 cat conftest.err >&5
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); } && {
27792 test -z "$ac_c_werror_flag" ||
27793 test ! -s conftest.err
27794 } && test -s conftest.$ac_objext; then
27795 ac_cv_struct_tm=time.h
27797 echo "$as_me: failed program was:" >&5
27798 sed 's/^/| /' conftest.$ac_ext >&5
27800 ac_cv_struct_tm=sys/time.h
27803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27805 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27806 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
27807 if test $ac_cv_struct_tm = sys/time.h; then
27809 cat >>confdefs.h <<\_ACEOF
27810 #define TM_IN_SYS_TIME 1
27815 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
27816 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
27817 if test "${ac_cv_c_const+set}" = set; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27820 cat >conftest.$ac_ext <<_ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h. */
27830 /* FIXME: Include the comments suggested by Paul. */
27831 #ifndef __cplusplus
27832 /* Ultrix mips cc rejects this. */
27833 typedef int charset[2];
27835 /* SunOS 4.1.1 cc rejects this. */
27836 char const *const *pcpcc;
27838 /* NEC SVR4.0.2 mips cc rejects this. */
27839 struct point {int x, y;};
27840 static struct point const zero = {0,0};
27841 /* AIX XL C 1.02.0.0 rejects this.
27842 It does not let you subtract one const X* pointer from another in
27843 an arm of an if-expression whose if-part is not a constant
27845 const char *g = "string";
27846 pcpcc = &g + (g ? g-g : 0);
27847 /* HPUX 7.0 cc rejects these. */
27849 ppc = (char**) pcpcc;
27850 pcpcc = (char const *const *) ppc;
27851 { /* SCO 3.2v4 cc rejects this. */
27853 char const *s = 0 ? (char *) 0 : (char const *) 0;
27858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27859 int x[] = {25, 17};
27860 const int *foo = &x[0];
27863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27864 typedef const int *iptr;
27868 { /* AIX XL C 1.02.0.0 rejects this saying
27869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27870 struct s { int j; const int *ap[3]; };
27871 struct s *b; b->j = 5;
27873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27874 const int foo = 10;
27875 if (!foo) return 0;
27877 return !cs[0] && !zero.x;
27884 rm -f conftest.$ac_objext
27885 if { (ac_try="$ac_compile"
27886 case "(($ac_try" in
27887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888 *) ac_try_echo=$ac_try;;
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891 (eval "$ac_compile") 2>conftest.er1
27893 grep -v '^ *+' conftest.er1 >conftest.err
27895 cat conftest.err >&5
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); } && {
27898 test -z "$ac_c_werror_flag" ||
27899 test ! -s conftest.err
27900 } && test -s conftest.$ac_objext; then
27903 echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27911 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27912 echo "${ECHO_T}$ac_cv_c_const" >&6; }
27913 if test $ac_cv_c_const = no; then
27915 cat >>confdefs.h <<\_ACEOF
27923 { echo "$as_me:$LINENO: checking for char" >&5
27924 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
27925 if test "${ac_cv_type_char+set}" = set; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27928 cat >conftest.$ac_ext <<_ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27934 $ac_includes_default
27935 typedef char ac__type_new_;
27939 if ((ac__type_new_ *) 0)
27941 if (sizeof (ac__type_new_))
27947 rm -f conftest.$ac_objext
27948 if { (ac_try="$ac_compile"
27949 case "(($ac_try" in
27950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951 *) ac_try_echo=$ac_try;;
27953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954 (eval "$ac_compile") 2>conftest.er1
27956 grep -v '^ *+' conftest.er1 >conftest.err
27958 cat conftest.err >&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } && {
27961 test -z "$ac_c_werror_flag" ||
27962 test ! -s conftest.err
27963 } && test -s conftest.$ac_objext; then
27964 ac_cv_type_char=yes
27966 echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27974 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
27975 echo "${ECHO_T}$ac_cv_type_char" >&6; }
27977 # The cast to long int works around a bug in the HP C Compiler
27978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27980 # This bug is HP SR number 8606223364.
27981 { echo "$as_me:$LINENO: checking size of char" >&5
27982 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
27983 if test "${ac_cv_sizeof_char+set}" = set; then
27984 echo $ECHO_N "(cached) $ECHO_C" >&6
27986 if test "$cross_compiling" = yes; then
27987 # Depending upon the size, compute the lo and hi bounds.
27988 cat >conftest.$ac_ext <<_ACEOF
27991 cat confdefs.h >>conftest.$ac_ext
27992 cat >>conftest.$ac_ext <<_ACEOF
27993 /* end confdefs.h. */
27994 $ac_includes_default
27995 typedef char ac__type_sizeof_;
27999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28006 rm -f conftest.$ac_objext
28007 if { (ac_try="$ac_compile"
28008 case "(($ac_try" in
28009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010 *) ac_try_echo=$ac_try;;
28012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28013 (eval "$ac_compile") 2>conftest.er1
28015 grep -v '^ *+' conftest.er1 >conftest.err
28017 cat conftest.err >&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); } && {
28020 test -z "$ac_c_werror_flag" ||
28021 test ! -s conftest.err
28022 } && test -s conftest.$ac_objext; then
28025 cat >conftest.$ac_ext <<_ACEOF
28028 cat confdefs.h >>conftest.$ac_ext
28029 cat >>conftest.$ac_ext <<_ACEOF
28030 /* end confdefs.h. */
28031 $ac_includes_default
28032 typedef char ac__type_sizeof_;
28036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28043 rm -f conftest.$ac_objext
28044 if { (ac_try="$ac_compile"
28045 case "(($ac_try" in
28046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047 *) ac_try_echo=$ac_try;;
28049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050 (eval "$ac_compile") 2>conftest.er1
28052 grep -v '^ *+' conftest.er1 >conftest.err
28054 cat conftest.err >&5
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); } && {
28057 test -z "$ac_c_werror_flag" ||
28058 test ! -s conftest.err
28059 } && test -s conftest.$ac_objext; then
28060 ac_hi=$ac_mid; break
28062 echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28065 ac_lo=`expr $ac_mid + 1`
28066 if test $ac_lo -le $ac_mid; then
28070 ac_mid=`expr 2 '*' $ac_mid + 1`
28073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28076 echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28079 cat >conftest.$ac_ext <<_ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h. */
28085 $ac_includes_default
28086 typedef char ac__type_sizeof_;
28090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28097 rm -f conftest.$ac_objext
28098 if { (ac_try="$ac_compile"
28099 case "(($ac_try" in
28100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28101 *) ac_try_echo=$ac_try;;
28103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28104 (eval "$ac_compile") 2>conftest.er1
28106 grep -v '^ *+' conftest.er1 >conftest.err
28108 cat conftest.err >&5
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); } && {
28111 test -z "$ac_c_werror_flag" ||
28112 test ! -s conftest.err
28113 } && test -s conftest.$ac_objext; then
28116 cat >conftest.$ac_ext <<_ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h. */
28122 $ac_includes_default
28123 typedef char ac__type_sizeof_;
28127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28134 rm -f conftest.$ac_objext
28135 if { (ac_try="$ac_compile"
28136 case "(($ac_try" in
28137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28138 *) ac_try_echo=$ac_try;;
28140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28141 (eval "$ac_compile") 2>conftest.er1
28143 grep -v '^ *+' conftest.er1 >conftest.err
28145 cat conftest.err >&5
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); } && {
28148 test -z "$ac_c_werror_flag" ||
28149 test ! -s conftest.err
28150 } && test -s conftest.$ac_objext; then
28151 ac_lo=$ac_mid; break
28153 echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28156 ac_hi=`expr '(' $ac_mid ')' - 1`
28157 if test $ac_mid -le $ac_hi; then
28161 ac_mid=`expr 2 '*' $ac_mid`
28164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28167 echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28177 # Binary search between lo and hi bounds.
28178 while test "x$ac_lo" != "x$ac_hi"; do
28179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28180 cat >conftest.$ac_ext <<_ACEOF
28183 cat confdefs.h >>conftest.$ac_ext
28184 cat >>conftest.$ac_ext <<_ACEOF
28185 /* end confdefs.h. */
28186 $ac_includes_default
28187 typedef char ac__type_sizeof_;
28191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28198 rm -f conftest.$ac_objext
28199 if { (ac_try="$ac_compile"
28200 case "(($ac_try" in
28201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28202 *) ac_try_echo=$ac_try;;
28204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28205 (eval "$ac_compile") 2>conftest.er1
28207 grep -v '^ *+' conftest.er1 >conftest.err
28209 cat conftest.err >&5
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); } && {
28212 test -z "$ac_c_werror_flag" ||
28213 test ! -s conftest.err
28214 } && test -s conftest.$ac_objext; then
28217 echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28220 ac_lo=`expr '(' $ac_mid ')' + 1`
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28226 ?*) ac_cv_sizeof_char=$ac_lo;;
28227 '') if test "$ac_cv_type_char" = yes; then
28228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28229 See \`config.log' for more details." >&5
28230 echo "$as_me: error: cannot compute sizeof (char)
28231 See \`config.log' for more details." >&2;}
28232 { (exit 77); exit 77; }; }
28234 ac_cv_sizeof_char=0
28238 cat >conftest.$ac_ext <<_ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h. */
28244 $ac_includes_default
28245 typedef char ac__type_sizeof_;
28246 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28247 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28249 #include <stdlib.h>
28254 FILE *f = fopen ("conftest.val", "w");
28257 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28259 long int i = longval ();
28260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28262 fprintf (f, "%ld\n", i);
28266 unsigned long int i = ulongval ();
28267 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28269 fprintf (f, "%lu\n", i);
28271 return ferror (f) || fclose (f) != 0;
28277 rm -f conftest$ac_exeext
28278 if { (ac_try="$ac_link"
28279 case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_link") 2>&5
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28288 { (case "(($ac_try" in
28289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290 *) ac_try_echo=$ac_try;;
28292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293 (eval "$ac_try") 2>&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
28297 ac_cv_sizeof_char=`cat conftest.val`
28299 echo "$as_me: program exited with status $ac_status" >&5
28300 echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28303 ( exit $ac_status )
28304 if test "$ac_cv_type_char" = yes; then
28305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28306 See \`config.log' for more details." >&5
28307 echo "$as_me: error: cannot compute sizeof (char)
28308 See \`config.log' for more details." >&2;}
28309 { (exit 77); exit 77; }; }
28311 ac_cv_sizeof_char=0
28314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28318 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
28319 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
28323 cat >>confdefs.h <<_ACEOF
28324 #define SIZEOF_CHAR $ac_cv_sizeof_char
28328 { echo "$as_me:$LINENO: checking for short int" >&5
28329 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
28330 if test "${ac_cv_type_short_int+set}" = set; then
28331 echo $ECHO_N "(cached) $ECHO_C" >&6
28333 cat >conftest.$ac_ext <<_ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h. */
28339 $ac_includes_default
28340 typedef short int ac__type_new_;
28344 if ((ac__type_new_ *) 0)
28346 if (sizeof (ac__type_new_))
28352 rm -f conftest.$ac_objext
28353 if { (ac_try="$ac_compile"
28354 case "(($ac_try" in
28355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28356 *) ac_try_echo=$ac_try;;
28358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28359 (eval "$ac_compile") 2>conftest.er1
28361 grep -v '^ *+' conftest.er1 >conftest.err
28363 cat conftest.err >&5
28364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); } && {
28366 test -z "$ac_c_werror_flag" ||
28367 test ! -s conftest.err
28368 } && test -s conftest.$ac_objext; then
28369 ac_cv_type_short_int=yes
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28374 ac_cv_type_short_int=no
28377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28379 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
28380 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
28382 # The cast to long int works around a bug in the HP C Compiler
28383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28385 # This bug is HP SR number 8606223364.
28386 { echo "$as_me:$LINENO: checking size of short int" >&5
28387 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
28388 if test "${ac_cv_sizeof_short_int+set}" = set; then
28389 echo $ECHO_N "(cached) $ECHO_C" >&6
28391 if test "$cross_compiling" = yes; then
28392 # Depending upon the size, compute the lo and hi bounds.
28393 cat >conftest.$ac_ext <<_ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h. */
28399 $ac_includes_default
28400 typedef short int ac__type_sizeof_;
28404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28411 rm -f conftest.$ac_objext
28412 if { (ac_try="$ac_compile"
28413 case "(($ac_try" in
28414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415 *) ac_try_echo=$ac_try;;
28417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418 (eval "$ac_compile") 2>conftest.er1
28420 grep -v '^ *+' conftest.er1 >conftest.err
28422 cat conftest.err >&5
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); } && {
28425 test -z "$ac_c_werror_flag" ||
28426 test ! -s conftest.err
28427 } && test -s conftest.$ac_objext; then
28430 cat >conftest.$ac_ext <<_ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h. */
28436 $ac_includes_default
28437 typedef short int ac__type_sizeof_;
28441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28448 rm -f conftest.$ac_objext
28449 if { (ac_try="$ac_compile"
28450 case "(($ac_try" in
28451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452 *) ac_try_echo=$ac_try;;
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455 (eval "$ac_compile") 2>conftest.er1
28457 grep -v '^ *+' conftest.er1 >conftest.err
28459 cat conftest.err >&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); } && {
28462 test -z "$ac_c_werror_flag" ||
28463 test ! -s conftest.err
28464 } && test -s conftest.$ac_objext; then
28465 ac_hi=$ac_mid; break
28467 echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28470 ac_lo=`expr $ac_mid + 1`
28471 if test $ac_lo -le $ac_mid; then
28475 ac_mid=`expr 2 '*' $ac_mid + 1`
28478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28481 echo "$as_me: failed program was:" >&5
28482 sed 's/^/| /' conftest.$ac_ext >&5
28484 cat >conftest.$ac_ext <<_ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h. */
28490 $ac_includes_default
28491 typedef short int ac__type_sizeof_;
28495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28502 rm -f conftest.$ac_objext
28503 if { (ac_try="$ac_compile"
28504 case "(($ac_try" in
28505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28506 *) ac_try_echo=$ac_try;;
28508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28509 (eval "$ac_compile") 2>conftest.er1
28511 grep -v '^ *+' conftest.er1 >conftest.err
28513 cat conftest.err >&5
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); } && {
28516 test -z "$ac_c_werror_flag" ||
28517 test ! -s conftest.err
28518 } && test -s conftest.$ac_objext; then
28521 cat >conftest.$ac_ext <<_ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28527 $ac_includes_default
28528 typedef short int ac__type_sizeof_;
28532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28539 rm -f conftest.$ac_objext
28540 if { (ac_try="$ac_compile"
28541 case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_compile") 2>conftest.er1
28548 grep -v '^ *+' conftest.er1 >conftest.err
28550 cat conftest.err >&5
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); } && {
28553 test -z "$ac_c_werror_flag" ||
28554 test ! -s conftest.err
28555 } && test -s conftest.$ac_objext; then
28556 ac_lo=$ac_mid; break
28558 echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28561 ac_hi=`expr '(' $ac_mid ')' - 1`
28562 if test $ac_mid -le $ac_hi; then
28566 ac_mid=`expr 2 '*' $ac_mid`
28569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28572 echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28582 # Binary search between lo and hi bounds.
28583 while test "x$ac_lo" != "x$ac_hi"; do
28584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28585 cat >conftest.$ac_ext <<_ACEOF
28588 cat confdefs.h >>conftest.$ac_ext
28589 cat >>conftest.$ac_ext <<_ACEOF
28590 /* end confdefs.h. */
28591 $ac_includes_default
28592 typedef short int ac__type_sizeof_;
28596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28603 rm -f conftest.$ac_objext
28604 if { (ac_try="$ac_compile"
28605 case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_compile") 2>conftest.er1
28612 grep -v '^ *+' conftest.er1 >conftest.err
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } && {
28617 test -z "$ac_c_werror_flag" ||
28618 test ! -s conftest.err
28619 } && test -s conftest.$ac_objext; then
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 ac_lo=`expr '(' $ac_mid ')' + 1`
28628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28631 ?*) ac_cv_sizeof_short_int=$ac_lo;;
28632 '') if test "$ac_cv_type_short_int" = yes; then
28633 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28634 See \`config.log' for more details." >&5
28635 echo "$as_me: error: cannot compute sizeof (short int)
28636 See \`config.log' for more details." >&2;}
28637 { (exit 77); exit 77; }; }
28639 ac_cv_sizeof_short_int=0
28643 cat >conftest.$ac_ext <<_ACEOF
28646 cat confdefs.h >>conftest.$ac_ext
28647 cat >>conftest.$ac_ext <<_ACEOF
28648 /* end confdefs.h. */
28649 $ac_includes_default
28650 typedef short int ac__type_sizeof_;
28651 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28652 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28654 #include <stdlib.h>
28659 FILE *f = fopen ("conftest.val", "w");
28662 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28664 long int i = longval ();
28665 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28667 fprintf (f, "%ld\n", i);
28671 unsigned long int i = ulongval ();
28672 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28674 fprintf (f, "%lu\n", i);
28676 return ferror (f) || fclose (f) != 0;
28682 rm -f conftest$ac_exeext
28683 if { (ac_try="$ac_link"
28684 case "(($ac_try" in
28685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28686 *) ac_try_echo=$ac_try;;
28688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28689 (eval "$ac_link") 2>&5
28691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28693 { (case "(($ac_try" in
28694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695 *) ac_try_echo=$ac_try;;
28697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28698 (eval "$ac_try") 2>&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); }; }; then
28702 ac_cv_sizeof_short_int=`cat conftest.val`
28704 echo "$as_me: program exited with status $ac_status" >&5
28705 echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28708 ( exit $ac_status )
28709 if test "$ac_cv_type_short_int" = yes; then
28710 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28711 See \`config.log' for more details." >&5
28712 echo "$as_me: error: cannot compute sizeof (short int)
28713 See \`config.log' for more details." >&2;}
28714 { (exit 77); exit 77; }; }
28716 ac_cv_sizeof_short_int=0
28719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28723 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
28724 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
28728 cat >>confdefs.h <<_ACEOF
28729 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
28733 { echo "$as_me:$LINENO: checking for int" >&5
28734 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28735 if test "${ac_cv_type_int+set}" = set; then
28736 echo $ECHO_N "(cached) $ECHO_C" >&6
28738 cat >conftest.$ac_ext <<_ACEOF
28741 cat confdefs.h >>conftest.$ac_ext
28742 cat >>conftest.$ac_ext <<_ACEOF
28743 /* end confdefs.h. */
28744 $ac_includes_default
28745 typedef int ac__type_new_;
28749 if ((ac__type_new_ *) 0)
28751 if (sizeof (ac__type_new_))
28757 rm -f conftest.$ac_objext
28758 if { (ac_try="$ac_compile"
28759 case "(($ac_try" in
28760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28761 *) ac_try_echo=$ac_try;;
28763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28764 (eval "$ac_compile") 2>conftest.er1
28766 grep -v '^ *+' conftest.er1 >conftest.err
28768 cat conftest.err >&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } && {
28771 test -z "$ac_c_werror_flag" ||
28772 test ! -s conftest.err
28773 } && test -s conftest.$ac_objext; then
28776 echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28784 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28785 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28787 # The cast to long int works around a bug in the HP C Compiler
28788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28790 # This bug is HP SR number 8606223364.
28791 { echo "$as_me:$LINENO: checking size of int" >&5
28792 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28793 if test "${ac_cv_sizeof_int+set}" = set; then
28794 echo $ECHO_N "(cached) $ECHO_C" >&6
28796 if test "$cross_compiling" = yes; then
28797 # Depending upon the size, compute the lo and hi bounds.
28798 cat >conftest.$ac_ext <<_ACEOF
28801 cat confdefs.h >>conftest.$ac_ext
28802 cat >>conftest.$ac_ext <<_ACEOF
28803 /* end confdefs.h. */
28804 $ac_includes_default
28805 typedef int ac__type_sizeof_;
28809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28816 rm -f conftest.$ac_objext
28817 if { (ac_try="$ac_compile"
28818 case "(($ac_try" in
28819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820 *) ac_try_echo=$ac_try;;
28822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823 (eval "$ac_compile") 2>conftest.er1
28825 grep -v '^ *+' conftest.er1 >conftest.err
28827 cat conftest.err >&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } && {
28830 test -z "$ac_c_werror_flag" ||
28831 test ! -s conftest.err
28832 } && test -s conftest.$ac_objext; then
28835 cat >conftest.$ac_ext <<_ACEOF
28838 cat confdefs.h >>conftest.$ac_ext
28839 cat >>conftest.$ac_ext <<_ACEOF
28840 /* end confdefs.h. */
28841 $ac_includes_default
28842 typedef int ac__type_sizeof_;
28846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28853 rm -f conftest.$ac_objext
28854 if { (ac_try="$ac_compile"
28855 case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860 (eval "$ac_compile") 2>conftest.er1
28862 grep -v '^ *+' conftest.er1 >conftest.err
28864 cat conftest.err >&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); } && {
28867 test -z "$ac_c_werror_flag" ||
28868 test ! -s conftest.err
28869 } && test -s conftest.$ac_objext; then
28870 ac_hi=$ac_mid; break
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28875 ac_lo=`expr $ac_mid + 1`
28876 if test $ac_lo -le $ac_mid; then
28880 ac_mid=`expr 2 '*' $ac_mid + 1`
28883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28886 echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28889 cat >conftest.$ac_ext <<_ACEOF
28892 cat confdefs.h >>conftest.$ac_ext
28893 cat >>conftest.$ac_ext <<_ACEOF
28894 /* end confdefs.h. */
28895 $ac_includes_default
28896 typedef int ac__type_sizeof_;
28900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28907 rm -f conftest.$ac_objext
28908 if { (ac_try="$ac_compile"
28909 case "(($ac_try" in
28910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911 *) ac_try_echo=$ac_try;;
28913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28914 (eval "$ac_compile") 2>conftest.er1
28916 grep -v '^ *+' conftest.er1 >conftest.err
28918 cat conftest.err >&5
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); } && {
28921 test -z "$ac_c_werror_flag" ||
28922 test ! -s conftest.err
28923 } && test -s conftest.$ac_objext; then
28926 cat >conftest.$ac_ext <<_ACEOF
28929 cat confdefs.h >>conftest.$ac_ext
28930 cat >>conftest.$ac_ext <<_ACEOF
28931 /* end confdefs.h. */
28932 $ac_includes_default
28933 typedef int ac__type_sizeof_;
28937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28944 rm -f conftest.$ac_objext
28945 if { (ac_try="$ac_compile"
28946 case "(($ac_try" in
28947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948 *) ac_try_echo=$ac_try;;
28950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951 (eval "$ac_compile") 2>conftest.er1
28953 grep -v '^ *+' conftest.er1 >conftest.err
28955 cat conftest.err >&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); } && {
28958 test -z "$ac_c_werror_flag" ||
28959 test ! -s conftest.err
28960 } && test -s conftest.$ac_objext; then
28961 ac_lo=$ac_mid; break
28963 echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28966 ac_hi=`expr '(' $ac_mid ')' - 1`
28967 if test $ac_mid -le $ac_hi; then
28971 ac_mid=`expr 2 '*' $ac_mid`
28974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28977 echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28987 # Binary search between lo and hi bounds.
28988 while test "x$ac_lo" != "x$ac_hi"; do
28989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28990 cat >conftest.$ac_ext <<_ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h. */
28996 $ac_includes_default
28997 typedef int ac__type_sizeof_;
29001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29008 rm -f conftest.$ac_objext
29009 if { (ac_try="$ac_compile"
29010 case "(($ac_try" in
29011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015 (eval "$ac_compile") 2>conftest.er1
29017 grep -v '^ *+' conftest.er1 >conftest.err
29019 cat conftest.err >&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); } && {
29022 test -z "$ac_c_werror_flag" ||
29023 test ! -s conftest.err
29024 } && test -s conftest.$ac_objext; then
29027 echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29030 ac_lo=`expr '(' $ac_mid ')' + 1`
29033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29036 ?*) ac_cv_sizeof_int=$ac_lo;;
29037 '') if test "$ac_cv_type_int" = yes; then
29038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29039 See \`config.log' for more details." >&5
29040 echo "$as_me: error: cannot compute sizeof (int)
29041 See \`config.log' for more details." >&2;}
29042 { (exit 77); exit 77; }; }
29048 cat >conftest.$ac_ext <<_ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h. */
29054 $ac_includes_default
29055 typedef int ac__type_sizeof_;
29056 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29057 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29059 #include <stdlib.h>
29064 FILE *f = fopen ("conftest.val", "w");
29067 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29069 long int i = longval ();
29070 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29072 fprintf (f, "%ld\n", i);
29076 unsigned long int i = ulongval ();
29077 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29079 fprintf (f, "%lu\n", i);
29081 return ferror (f) || fclose (f) != 0;
29087 rm -f conftest$ac_exeext
29088 if { (ac_try="$ac_link"
29089 case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_link") 2>&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29098 { (case "(($ac_try" in
29099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29100 *) ac_try_echo=$ac_try;;
29102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29103 (eval "$ac_try") 2>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; }; then
29107 ac_cv_sizeof_int=`cat conftest.val`
29109 echo "$as_me: program exited with status $ac_status" >&5
29110 echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29113 ( exit $ac_status )
29114 if test "$ac_cv_type_int" = yes; then
29115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29116 See \`config.log' for more details." >&5
29117 echo "$as_me: error: cannot compute sizeof (int)
29118 See \`config.log' for more details." >&2;}
29119 { (exit 77); exit 77; }; }
29124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29128 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29129 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29133 cat >>confdefs.h <<_ACEOF
29134 #define SIZEOF_INT $ac_cv_sizeof_int
29138 { echo "$as_me:$LINENO: checking for long int" >&5
29139 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
29140 if test "${ac_cv_type_long_int+set}" = set; then
29141 echo $ECHO_N "(cached) $ECHO_C" >&6
29143 cat >conftest.$ac_ext <<_ACEOF
29146 cat confdefs.h >>conftest.$ac_ext
29147 cat >>conftest.$ac_ext <<_ACEOF
29148 /* end confdefs.h. */
29149 $ac_includes_default
29150 typedef long int ac__type_new_;
29154 if ((ac__type_new_ *) 0)
29156 if (sizeof (ac__type_new_))
29162 rm -f conftest.$ac_objext
29163 if { (ac_try="$ac_compile"
29164 case "(($ac_try" in
29165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166 *) ac_try_echo=$ac_try;;
29168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29169 (eval "$ac_compile") 2>conftest.er1
29171 grep -v '^ *+' conftest.er1 >conftest.err
29173 cat conftest.err >&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } && {
29176 test -z "$ac_c_werror_flag" ||
29177 test ! -s conftest.err
29178 } && test -s conftest.$ac_objext; then
29179 ac_cv_type_long_int=yes
29181 echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29184 ac_cv_type_long_int=no
29187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29189 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
29190 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
29192 # The cast to long int works around a bug in the HP C Compiler
29193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29195 # This bug is HP SR number 8606223364.
29196 { echo "$as_me:$LINENO: checking size of long int" >&5
29197 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
29198 if test "${ac_cv_sizeof_long_int+set}" = set; then
29199 echo $ECHO_N "(cached) $ECHO_C" >&6
29201 if test "$cross_compiling" = yes; then
29202 # Depending upon the size, compute the lo and hi bounds.
29203 cat >conftest.$ac_ext <<_ACEOF
29206 cat confdefs.h >>conftest.$ac_ext
29207 cat >>conftest.$ac_ext <<_ACEOF
29208 /* end confdefs.h. */
29209 $ac_includes_default
29210 typedef long int ac__type_sizeof_;
29214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29221 rm -f conftest.$ac_objext
29222 if { (ac_try="$ac_compile"
29223 case "(($ac_try" in
29224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29225 *) ac_try_echo=$ac_try;;
29227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29228 (eval "$ac_compile") 2>conftest.er1
29230 grep -v '^ *+' conftest.er1 >conftest.err
29232 cat conftest.err >&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); } && {
29235 test -z "$ac_c_werror_flag" ||
29236 test ! -s conftest.err
29237 } && test -s conftest.$ac_objext; then
29240 cat >conftest.$ac_ext <<_ACEOF
29243 cat confdefs.h >>conftest.$ac_ext
29244 cat >>conftest.$ac_ext <<_ACEOF
29245 /* end confdefs.h. */
29246 $ac_includes_default
29247 typedef long int ac__type_sizeof_;
29251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29258 rm -f conftest.$ac_objext
29259 if { (ac_try="$ac_compile"
29260 case "(($ac_try" in
29261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29262 *) ac_try_echo=$ac_try;;
29264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29265 (eval "$ac_compile") 2>conftest.er1
29267 grep -v '^ *+' conftest.er1 >conftest.err
29269 cat conftest.err >&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } && {
29272 test -z "$ac_c_werror_flag" ||
29273 test ! -s conftest.err
29274 } && test -s conftest.$ac_objext; then
29275 ac_hi=$ac_mid; break
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 ac_lo=`expr $ac_mid + 1`
29281 if test $ac_lo -le $ac_mid; then
29285 ac_mid=`expr 2 '*' $ac_mid + 1`
29288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29291 echo "$as_me: failed program was:" >&5
29292 sed 's/^/| /' conftest.$ac_ext >&5
29294 cat >conftest.$ac_ext <<_ACEOF
29297 cat confdefs.h >>conftest.$ac_ext
29298 cat >>conftest.$ac_ext <<_ACEOF
29299 /* end confdefs.h. */
29300 $ac_includes_default
29301 typedef long int ac__type_sizeof_;
29305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29312 rm -f conftest.$ac_objext
29313 if { (ac_try="$ac_compile"
29314 case "(($ac_try" in
29315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316 *) ac_try_echo=$ac_try;;
29318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29319 (eval "$ac_compile") 2>conftest.er1
29321 grep -v '^ *+' conftest.er1 >conftest.err
29323 cat conftest.err >&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } && {
29326 test -z "$ac_c_werror_flag" ||
29327 test ! -s conftest.err
29328 } && test -s conftest.$ac_objext; then
29331 cat >conftest.$ac_ext <<_ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h. */
29337 $ac_includes_default
29338 typedef long int ac__type_sizeof_;
29342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29349 rm -f conftest.$ac_objext
29350 if { (ac_try="$ac_compile"
29351 case "(($ac_try" in
29352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353 *) ac_try_echo=$ac_try;;
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356 (eval "$ac_compile") 2>conftest.er1
29358 grep -v '^ *+' conftest.er1 >conftest.err
29360 cat conftest.err >&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); } && {
29363 test -z "$ac_c_werror_flag" ||
29364 test ! -s conftest.err
29365 } && test -s conftest.$ac_objext; then
29366 ac_lo=$ac_mid; break
29368 echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29371 ac_hi=`expr '(' $ac_mid ')' - 1`
29372 if test $ac_mid -le $ac_hi; then
29376 ac_mid=`expr 2 '*' $ac_mid`
29379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29382 echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29392 # Binary search between lo and hi bounds.
29393 while test "x$ac_lo" != "x$ac_hi"; do
29394 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29395 cat >conftest.$ac_ext <<_ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h. */
29401 $ac_includes_default
29402 typedef long int ac__type_sizeof_;
29406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29413 rm -f conftest.$ac_objext
29414 if { (ac_try="$ac_compile"
29415 case "(($ac_try" in
29416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417 *) ac_try_echo=$ac_try;;
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420 (eval "$ac_compile") 2>conftest.er1
29422 grep -v '^ *+' conftest.er1 >conftest.err
29424 cat conftest.err >&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } && {
29427 test -z "$ac_c_werror_flag" ||
29428 test ! -s conftest.err
29429 } && test -s conftest.$ac_objext; then
29432 echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29435 ac_lo=`expr '(' $ac_mid ')' + 1`
29438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29441 ?*) ac_cv_sizeof_long_int=$ac_lo;;
29442 '') if test "$ac_cv_type_long_int" = yes; then
29443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29444 See \`config.log' for more details." >&5
29445 echo "$as_me: error: cannot compute sizeof (long int)
29446 See \`config.log' for more details." >&2;}
29447 { (exit 77); exit 77; }; }
29449 ac_cv_sizeof_long_int=0
29453 cat >conftest.$ac_ext <<_ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h. */
29459 $ac_includes_default
29460 typedef long int ac__type_sizeof_;
29461 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29462 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29464 #include <stdlib.h>
29469 FILE *f = fopen ("conftest.val", "w");
29472 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29474 long int i = longval ();
29475 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29477 fprintf (f, "%ld\n", i);
29481 unsigned long int i = ulongval ();
29482 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29484 fprintf (f, "%lu\n", i);
29486 return ferror (f) || fclose (f) != 0;
29492 rm -f conftest$ac_exeext
29493 if { (ac_try="$ac_link"
29494 case "(($ac_try" in
29495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496 *) ac_try_echo=$ac_try;;
29498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499 (eval "$ac_link") 2>&5
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29503 { (case "(($ac_try" in
29504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505 *) ac_try_echo=$ac_try;;
29507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508 (eval "$ac_try") 2>&5
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; }; then
29512 ac_cv_sizeof_long_int=`cat conftest.val`
29514 echo "$as_me: program exited with status $ac_status" >&5
29515 echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29518 ( exit $ac_status )
29519 if test "$ac_cv_type_long_int" = yes; then
29520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29521 See \`config.log' for more details." >&5
29522 echo "$as_me: error: cannot compute sizeof (long int)
29523 See \`config.log' for more details." >&2;}
29524 { (exit 77); exit 77; }; }
29526 ac_cv_sizeof_long_int=0
29529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29533 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
29534 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
29538 cat >>confdefs.h <<_ACEOF
29539 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
29543 { echo "$as_me:$LINENO: checking for long long int" >&5
29544 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
29545 if test "${ac_cv_type_long_long_int+set}" = set; then
29546 echo $ECHO_N "(cached) $ECHO_C" >&6
29548 cat >conftest.$ac_ext <<_ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h. */
29554 $ac_includes_default
29555 typedef long long int ac__type_new_;
29559 if ((ac__type_new_ *) 0)
29561 if (sizeof (ac__type_new_))
29567 rm -f conftest.$ac_objext
29568 if { (ac_try="$ac_compile"
29569 case "(($ac_try" in
29570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571 *) ac_try_echo=$ac_try;;
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574 (eval "$ac_compile") 2>conftest.er1
29576 grep -v '^ *+' conftest.er1 >conftest.err
29578 cat conftest.err >&5
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); } && {
29581 test -z "$ac_c_werror_flag" ||
29582 test ! -s conftest.err
29583 } && test -s conftest.$ac_objext; then
29584 ac_cv_type_long_long_int=yes
29586 echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29589 ac_cv_type_long_long_int=no
29592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29594 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
29595 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
29597 # The cast to long int works around a bug in the HP C Compiler
29598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29600 # This bug is HP SR number 8606223364.
29601 { echo "$as_me:$LINENO: checking size of long long int" >&5
29602 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
29603 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
29604 echo $ECHO_N "(cached) $ECHO_C" >&6
29606 if test "$cross_compiling" = yes; then
29607 # Depending upon the size, compute the lo and hi bounds.
29608 cat >conftest.$ac_ext <<_ACEOF
29611 cat confdefs.h >>conftest.$ac_ext
29612 cat >>conftest.$ac_ext <<_ACEOF
29613 /* end confdefs.h. */
29614 $ac_includes_default
29615 typedef long long int ac__type_sizeof_;
29619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29626 rm -f conftest.$ac_objext
29627 if { (ac_try="$ac_compile"
29628 case "(($ac_try" in
29629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630 *) ac_try_echo=$ac_try;;
29632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29633 (eval "$ac_compile") 2>conftest.er1
29635 grep -v '^ *+' conftest.er1 >conftest.err
29637 cat conftest.err >&5
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); } && {
29640 test -z "$ac_c_werror_flag" ||
29641 test ! -s conftest.err
29642 } && test -s conftest.$ac_objext; then
29645 cat >conftest.$ac_ext <<_ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h. */
29651 $ac_includes_default
29652 typedef long long int ac__type_sizeof_;
29656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29663 rm -f conftest.$ac_objext
29664 if { (ac_try="$ac_compile"
29665 case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_compile") 2>conftest.er1
29672 grep -v '^ *+' conftest.er1 >conftest.err
29674 cat conftest.err >&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } && {
29677 test -z "$ac_c_werror_flag" ||
29678 test ! -s conftest.err
29679 } && test -s conftest.$ac_objext; then
29680 ac_hi=$ac_mid; break
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29685 ac_lo=`expr $ac_mid + 1`
29686 if test $ac_lo -le $ac_mid; then
29690 ac_mid=`expr 2 '*' $ac_mid + 1`
29693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29696 echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.$ac_ext >&5
29699 cat >conftest.$ac_ext <<_ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h. */
29705 $ac_includes_default
29706 typedef long long int ac__type_sizeof_;
29710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29717 rm -f conftest.$ac_objext
29718 if { (ac_try="$ac_compile"
29719 case "(($ac_try" in
29720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721 *) ac_try_echo=$ac_try;;
29723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724 (eval "$ac_compile") 2>conftest.er1
29726 grep -v '^ *+' conftest.er1 >conftest.err
29728 cat conftest.err >&5
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); } && {
29731 test -z "$ac_c_werror_flag" ||
29732 test ! -s conftest.err
29733 } && test -s conftest.$ac_objext; then
29736 cat >conftest.$ac_ext <<_ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h. */
29742 $ac_includes_default
29743 typedef long long int ac__type_sizeof_;
29747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29754 rm -f conftest.$ac_objext
29755 if { (ac_try="$ac_compile"
29756 case "(($ac_try" in
29757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758 *) ac_try_echo=$ac_try;;
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761 (eval "$ac_compile") 2>conftest.er1
29763 grep -v '^ *+' conftest.er1 >conftest.err
29765 cat conftest.err >&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } && {
29768 test -z "$ac_c_werror_flag" ||
29769 test ! -s conftest.err
29770 } && test -s conftest.$ac_objext; then
29771 ac_lo=$ac_mid; break
29773 echo "$as_me: failed program was:" >&5
29774 sed 's/^/| /' conftest.$ac_ext >&5
29776 ac_hi=`expr '(' $ac_mid ')' - 1`
29777 if test $ac_mid -le $ac_hi; then
29781 ac_mid=`expr 2 '*' $ac_mid`
29784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29787 echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29797 # Binary search between lo and hi bounds.
29798 while test "x$ac_lo" != "x$ac_hi"; do
29799 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29800 cat >conftest.$ac_ext <<_ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h. */
29806 $ac_includes_default
29807 typedef long long int ac__type_sizeof_;
29811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29818 rm -f conftest.$ac_objext
29819 if { (ac_try="$ac_compile"
29820 case "(($ac_try" in
29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822 *) ac_try_echo=$ac_try;;
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825 (eval "$ac_compile") 2>conftest.er1
29827 grep -v '^ *+' conftest.er1 >conftest.err
29829 cat conftest.err >&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); } && {
29832 test -z "$ac_c_werror_flag" ||
29833 test ! -s conftest.err
29834 } && test -s conftest.$ac_objext; then
29837 echo "$as_me: failed program was:" >&5
29838 sed 's/^/| /' conftest.$ac_ext >&5
29840 ac_lo=`expr '(' $ac_mid ')' + 1`
29843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29846 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
29847 '') if test "$ac_cv_type_long_long_int" = yes; then
29848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29849 See \`config.log' for more details." >&5
29850 echo "$as_me: error: cannot compute sizeof (long long int)
29851 See \`config.log' for more details." >&2;}
29852 { (exit 77); exit 77; }; }
29854 ac_cv_sizeof_long_long_int=0
29858 cat >conftest.$ac_ext <<_ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h. */
29864 $ac_includes_default
29865 typedef long long int ac__type_sizeof_;
29866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29869 #include <stdlib.h>
29874 FILE *f = fopen ("conftest.val", "w");
29877 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29879 long int i = longval ();
29880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29882 fprintf (f, "%ld\n", i);
29886 unsigned long int i = ulongval ();
29887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29889 fprintf (f, "%lu\n", i);
29891 return ferror (f) || fclose (f) != 0;
29897 rm -f conftest$ac_exeext
29898 if { (ac_try="$ac_link"
29899 case "(($ac_try" in
29900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901 *) ac_try_echo=$ac_try;;
29903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904 (eval "$ac_link") 2>&5
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29908 { (case "(($ac_try" in
29909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29910 *) ac_try_echo=$ac_try;;
29912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29913 (eval "$ac_try") 2>&5
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); }; }; then
29917 ac_cv_sizeof_long_long_int=`cat conftest.val`
29919 echo "$as_me: program exited with status $ac_status" >&5
29920 echo "$as_me: failed program was:" >&5
29921 sed 's/^/| /' conftest.$ac_ext >&5
29923 ( exit $ac_status )
29924 if test "$ac_cv_type_long_long_int" = yes; then
29925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29926 See \`config.log' for more details." >&5
29927 echo "$as_me: error: cannot compute sizeof (long long int)
29928 See \`config.log' for more details." >&2;}
29929 { (exit 77); exit 77; }; }
29931 ac_cv_sizeof_long_long_int=0
29934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29938 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
29939 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
29943 cat >>confdefs.h <<_ACEOF
29944 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
29948 { echo "$as_me:$LINENO: checking for int *" >&5
29949 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
29950 if test "${ac_cv_type_int_p+set}" = set; then
29951 echo $ECHO_N "(cached) $ECHO_C" >&6
29953 cat >conftest.$ac_ext <<_ACEOF
29956 cat confdefs.h >>conftest.$ac_ext
29957 cat >>conftest.$ac_ext <<_ACEOF
29958 /* end confdefs.h. */
29959 $ac_includes_default
29960 typedef int * ac__type_new_;
29964 if ((ac__type_new_ *) 0)
29966 if (sizeof (ac__type_new_))
29972 rm -f conftest.$ac_objext
29973 if { (ac_try="$ac_compile"
29974 case "(($ac_try" in
29975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976 *) ac_try_echo=$ac_try;;
29978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979 (eval "$ac_compile") 2>conftest.er1
29981 grep -v '^ *+' conftest.er1 >conftest.err
29983 cat conftest.err >&5
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); } && {
29986 test -z "$ac_c_werror_flag" ||
29987 test ! -s conftest.err
29988 } && test -s conftest.$ac_objext; then
29989 ac_cv_type_int_p=yes
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29994 ac_cv_type_int_p=no
29997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29999 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
30000 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
30002 # The cast to long int works around a bug in the HP C Compiler
30003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30005 # This bug is HP SR number 8606223364.
30006 { echo "$as_me:$LINENO: checking size of int *" >&5
30007 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
30008 if test "${ac_cv_sizeof_int_p+set}" = set; then
30009 echo $ECHO_N "(cached) $ECHO_C" >&6
30011 if test "$cross_compiling" = yes; then
30012 # Depending upon the size, compute the lo and hi bounds.
30013 cat >conftest.$ac_ext <<_ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h. */
30019 $ac_includes_default
30020 typedef int * ac__type_sizeof_;
30024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30031 rm -f conftest.$ac_objext
30032 if { (ac_try="$ac_compile"
30033 case "(($ac_try" in
30034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_compile") 2>conftest.er1
30040 grep -v '^ *+' conftest.er1 >conftest.err
30042 cat conftest.err >&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } && {
30045 test -z "$ac_c_werror_flag" ||
30046 test ! -s conftest.err
30047 } && test -s conftest.$ac_objext; then
30050 cat >conftest.$ac_ext <<_ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h. */
30056 $ac_includes_default
30057 typedef int * ac__type_sizeof_;
30061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30068 rm -f conftest.$ac_objext
30069 if { (ac_try="$ac_compile"
30070 case "(($ac_try" in
30071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072 *) ac_try_echo=$ac_try;;
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075 (eval "$ac_compile") 2>conftest.er1
30077 grep -v '^ *+' conftest.er1 >conftest.err
30079 cat conftest.err >&5
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); } && {
30082 test -z "$ac_c_werror_flag" ||
30083 test ! -s conftest.err
30084 } && test -s conftest.$ac_objext; then
30085 ac_hi=$ac_mid; break
30087 echo "$as_me: failed program was:" >&5
30088 sed 's/^/| /' conftest.$ac_ext >&5
30090 ac_lo=`expr $ac_mid + 1`
30091 if test $ac_lo -le $ac_mid; then
30095 ac_mid=`expr 2 '*' $ac_mid + 1`
30098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30101 echo "$as_me: failed program was:" >&5
30102 sed 's/^/| /' conftest.$ac_ext >&5
30104 cat >conftest.$ac_ext <<_ACEOF
30107 cat confdefs.h >>conftest.$ac_ext
30108 cat >>conftest.$ac_ext <<_ACEOF
30109 /* end confdefs.h. */
30110 $ac_includes_default
30111 typedef int * ac__type_sizeof_;
30115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30122 rm -f conftest.$ac_objext
30123 if { (ac_try="$ac_compile"
30124 case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_compile") 2>conftest.er1
30131 grep -v '^ *+' conftest.er1 >conftest.err
30133 cat conftest.err >&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); } && {
30136 test -z "$ac_c_werror_flag" ||
30137 test ! -s conftest.err
30138 } && test -s conftest.$ac_objext; then
30141 cat >conftest.$ac_ext <<_ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h. */
30147 $ac_includes_default
30148 typedef int * ac__type_sizeof_;
30152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30159 rm -f conftest.$ac_objext
30160 if { (ac_try="$ac_compile"
30161 case "(($ac_try" in
30162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163 *) ac_try_echo=$ac_try;;
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166 (eval "$ac_compile") 2>conftest.er1
30168 grep -v '^ *+' conftest.er1 >conftest.err
30170 cat conftest.err >&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); } && {
30173 test -z "$ac_c_werror_flag" ||
30174 test ! -s conftest.err
30175 } && test -s conftest.$ac_objext; then
30176 ac_lo=$ac_mid; break
30178 echo "$as_me: failed program was:" >&5
30179 sed 's/^/| /' conftest.$ac_ext >&5
30181 ac_hi=`expr '(' $ac_mid ')' - 1`
30182 if test $ac_mid -le $ac_hi; then
30186 ac_mid=`expr 2 '*' $ac_mid`
30189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30192 echo "$as_me: failed program was:" >&5
30193 sed 's/^/| /' conftest.$ac_ext >&5
30198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30202 # Binary search between lo and hi bounds.
30203 while test "x$ac_lo" != "x$ac_hi"; do
30204 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30205 cat >conftest.$ac_ext <<_ACEOF
30208 cat confdefs.h >>conftest.$ac_ext
30209 cat >>conftest.$ac_ext <<_ACEOF
30210 /* end confdefs.h. */
30211 $ac_includes_default
30212 typedef int * ac__type_sizeof_;
30216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30223 rm -f conftest.$ac_objext
30224 if { (ac_try="$ac_compile"
30225 case "(($ac_try" in
30226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30227 *) ac_try_echo=$ac_try;;
30229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30230 (eval "$ac_compile") 2>conftest.er1
30232 grep -v '^ *+' conftest.er1 >conftest.err
30234 cat conftest.err >&5
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); } && {
30237 test -z "$ac_c_werror_flag" ||
30238 test ! -s conftest.err
30239 } && test -s conftest.$ac_objext; then
30242 echo "$as_me: failed program was:" >&5
30243 sed 's/^/| /' conftest.$ac_ext >&5
30245 ac_lo=`expr '(' $ac_mid ')' + 1`
30248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30251 ?*) ac_cv_sizeof_int_p=$ac_lo;;
30252 '') if test "$ac_cv_type_int_p" = yes; then
30253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30254 See \`config.log' for more details." >&5
30255 echo "$as_me: error: cannot compute sizeof (int *)
30256 See \`config.log' for more details." >&2;}
30257 { (exit 77); exit 77; }; }
30259 ac_cv_sizeof_int_p=0
30263 cat >conftest.$ac_ext <<_ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h. */
30269 $ac_includes_default
30270 typedef int * ac__type_sizeof_;
30271 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30272 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30274 #include <stdlib.h>
30279 FILE *f = fopen ("conftest.val", "w");
30282 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30284 long int i = longval ();
30285 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30287 fprintf (f, "%ld\n", i);
30291 unsigned long int i = ulongval ();
30292 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30294 fprintf (f, "%lu\n", i);
30296 return ferror (f) || fclose (f) != 0;
30302 rm -f conftest$ac_exeext
30303 if { (ac_try="$ac_link"
30304 case "(($ac_try" in
30305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30306 *) ac_try_echo=$ac_try;;
30308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30309 (eval "$ac_link") 2>&5
30311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30313 { (case "(($ac_try" in
30314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30315 *) ac_try_echo=$ac_try;;
30317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30318 (eval "$ac_try") 2>&5
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; }; then
30322 ac_cv_sizeof_int_p=`cat conftest.val`
30324 echo "$as_me: program exited with status $ac_status" >&5
30325 echo "$as_me: failed program was:" >&5
30326 sed 's/^/| /' conftest.$ac_ext >&5
30328 ( exit $ac_status )
30329 if test "$ac_cv_type_int_p" = yes; then
30330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30331 See \`config.log' for more details." >&5
30332 echo "$as_me: error: cannot compute sizeof (int *)
30333 See \`config.log' for more details." >&2;}
30334 { (exit 77); exit 77; }; }
30336 ac_cv_sizeof_int_p=0
30339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30343 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
30344 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
30348 cat >>confdefs.h <<_ACEOF
30349 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
30354 # Check for sys/types.h types
30355 { echo "$as_me:$LINENO: checking for u_int type" >&5
30356 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
30357 if test "${ac_cv_have_u_int+set}" = set; then
30358 echo $ECHO_N "(cached) $ECHO_C" >&6
30361 cat >conftest.$ac_ext <<_ACEOF
30364 cat confdefs.h >>conftest.$ac_ext
30365 cat >>conftest.$ac_ext <<_ACEOF
30366 /* end confdefs.h. */
30367 #include <sys/types.h>
30376 rm -f conftest.$ac_objext
30377 if { (ac_try="$ac_compile"
30378 case "(($ac_try" in
30379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380 *) ac_try_echo=$ac_try;;
30382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383 (eval "$ac_compile") 2>conftest.er1
30385 grep -v '^ *+' conftest.er1 >conftest.err
30387 cat conftest.err >&5
30388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30389 (exit $ac_status); } && {
30390 test -z "$ac_c_werror_flag" ||
30391 test ! -s conftest.err
30392 } && test -s conftest.$ac_objext; then
30393 ac_cv_have_u_int="yes"
30395 echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30398 ac_cv_have_u_int="no"
30402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30405 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
30406 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
30407 if test "x$ac_cv_have_u_int" = "xyes" ; then
30408 cat >>confdefs.h <<\_ACEOF
30409 #define HAVE_U_INT 1
30415 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
30416 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
30417 if test "${ac_cv_have_intmax_t+set}" = set; then
30418 echo $ECHO_N "(cached) $ECHO_C" >&6
30421 cat >conftest.$ac_ext <<_ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h. */
30427 #include <sys/types.h>
30436 rm -f conftest.$ac_objext
30437 if { (ac_try="$ac_compile"
30438 case "(($ac_try" in
30439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30440 *) ac_try_echo=$ac_try;;
30442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30443 (eval "$ac_compile") 2>conftest.er1
30445 grep -v '^ *+' conftest.er1 >conftest.err
30447 cat conftest.err >&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); } && {
30450 test -z "$ac_c_werror_flag" ||
30451 test ! -s conftest.err
30452 } && test -s conftest.$ac_objext; then
30453 ac_cv_have_intmax_t="yes"
30455 echo "$as_me: failed program was:" >&5
30456 sed 's/^/| /' conftest.$ac_ext >&5
30459 cat >conftest.$ac_ext <<_ACEOF
30462 cat confdefs.h >>conftest.$ac_ext
30463 cat >>conftest.$ac_ext <<_ACEOF
30464 /* end confdefs.h. */
30465 #include <stdint.h>
30474 rm -f conftest.$ac_objext
30475 if { (ac_try="$ac_compile"
30476 case "(($ac_try" in
30477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478 *) ac_try_echo=$ac_try;;
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481 (eval "$ac_compile") 2>conftest.er1
30483 grep -v '^ *+' conftest.er1 >conftest.err
30485 cat conftest.err >&5
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); } && {
30488 test -z "$ac_c_werror_flag" ||
30489 test ! -s conftest.err
30490 } && test -s conftest.$ac_objext; then
30491 ac_cv_have_intmax_t="yes"
30493 echo "$as_me: failed program was:" >&5
30494 sed 's/^/| /' conftest.$ac_ext >&5
30496 ac_cv_have_intmax_t="no"
30500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30509 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
30510 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
30511 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
30512 cat >>confdefs.h <<\_ACEOF
30513 #define HAVE_INTMAX_T 1
30520 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
30521 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
30522 if test "${ac_cv_have_u_intmax_t+set}" = set; then
30523 echo $ECHO_N "(cached) $ECHO_C" >&6
30526 cat >conftest.$ac_ext <<_ACEOF
30529 cat confdefs.h >>conftest.$ac_ext
30530 cat >>conftest.$ac_ext <<_ACEOF
30531 /* end confdefs.h. */
30532 #include <sys/types.h>
30536 u_intmax_t a; a = 1;
30541 rm -f conftest.$ac_objext
30542 if { (ac_try="$ac_compile"
30543 case "(($ac_try" in
30544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30545 *) ac_try_echo=$ac_try;;
30547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30548 (eval "$ac_compile") 2>conftest.er1
30550 grep -v '^ *+' conftest.er1 >conftest.err
30552 cat conftest.err >&5
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); } && {
30555 test -z "$ac_c_werror_flag" ||
30556 test ! -s conftest.err
30557 } && test -s conftest.$ac_objext; then
30558 ac_cv_have_u_intmax_t="yes"
30560 echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30564 cat >conftest.$ac_ext <<_ACEOF
30567 cat confdefs.h >>conftest.$ac_ext
30568 cat >>conftest.$ac_ext <<_ACEOF
30569 /* end confdefs.h. */
30570 #include <stdint.h>
30574 u_intmax_t a; a = 1;
30579 rm -f conftest.$ac_objext
30580 if { (ac_try="$ac_compile"
30581 case "(($ac_try" in
30582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30583 *) ac_try_echo=$ac_try;;
30585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30586 (eval "$ac_compile") 2>conftest.er1
30588 grep -v '^ *+' conftest.er1 >conftest.err
30590 cat conftest.err >&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); } && {
30593 test -z "$ac_c_werror_flag" ||
30594 test ! -s conftest.err
30595 } && test -s conftest.$ac_objext; then
30596 ac_cv_have_u_intmax_t="yes"
30598 echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30601 ac_cv_have_u_intmax_t="no"
30605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30613 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
30614 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
30615 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
30616 cat >>confdefs.h <<\_ACEOF
30617 #define HAVE_U_INTMAX_T 1
30624 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
30625 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
30626 if test "${ac_cv_have_intxx_t+set}" = set; then
30627 echo $ECHO_N "(cached) $ECHO_C" >&6
30630 cat >conftest.$ac_ext <<_ACEOF
30633 cat confdefs.h >>conftest.$ac_ext
30634 cat >>conftest.$ac_ext <<_ACEOF
30635 /* end confdefs.h. */
30636 #include <sys/types.h>
30640 int8_t a; int16_t b; int32_t c; a = b = c = 1;
30645 rm -f conftest.$ac_objext
30646 if { (ac_try="$ac_compile"
30647 case "(($ac_try" in
30648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649 *) ac_try_echo=$ac_try;;
30651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652 (eval "$ac_compile") 2>conftest.er1
30654 grep -v '^ *+' conftest.er1 >conftest.err
30656 cat conftest.err >&5
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); } && {
30659 test -z "$ac_c_werror_flag" ||
30660 test ! -s conftest.err
30661 } && test -s conftest.$ac_objext; then
30662 ac_cv_have_intxx_t="yes"
30664 echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30667 ac_cv_have_intxx_t="no"
30671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30674 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
30675 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
30676 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
30677 cat >>confdefs.h <<\_ACEOF
30678 #define HAVE_INTXX_T 1
30684 { echo "$as_me:$LINENO: checking for int64_t type" >&5
30685 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
30686 if test "${ac_cv_have_int64_t+set}" = set; then
30687 echo $ECHO_N "(cached) $ECHO_C" >&6
30690 cat >conftest.$ac_ext <<_ACEOF
30693 cat confdefs.h >>conftest.$ac_ext
30694 cat >>conftest.$ac_ext <<_ACEOF
30695 /* end confdefs.h. */
30696 #include <sys/types.h>
30705 rm -f conftest.$ac_objext
30706 if { (ac_try="$ac_compile"
30707 case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_compile") 2>conftest.er1
30714 grep -v '^ *+' conftest.er1 >conftest.err
30716 cat conftest.err >&5
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); } && {
30719 test -z "$ac_c_werror_flag" ||
30720 test ! -s conftest.err
30721 } && test -s conftest.$ac_objext; then
30722 ac_cv_have_int64_t="yes"
30724 echo "$as_me: failed program was:" >&5
30725 sed 's/^/| /' conftest.$ac_ext >&5
30727 ac_cv_have_int64_t="no"
30731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30734 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
30735 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
30736 if test "x$ac_cv_have_int64_t" = "xyes" ; then
30737 cat >>confdefs.h <<\_ACEOF
30738 #define HAVE_INT64_T 1
30744 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
30745 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
30746 if test "${ac_cv_have_u_intxx_t+set}" = set; then
30747 echo $ECHO_N "(cached) $ECHO_C" >&6
30750 cat >conftest.$ac_ext <<_ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h. */
30756 #include <sys/types.h>
30760 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
30765 rm -f conftest.$ac_objext
30766 if { (ac_try="$ac_compile"
30767 case "(($ac_try" in
30768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769 *) ac_try_echo=$ac_try;;
30771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772 (eval "$ac_compile") 2>conftest.er1
30774 grep -v '^ *+' conftest.er1 >conftest.err
30776 cat conftest.err >&5
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); } && {
30779 test -z "$ac_c_werror_flag" ||
30780 test ! -s conftest.err
30781 } && test -s conftest.$ac_objext; then
30782 ac_cv_have_u_intxx_t="yes"
30784 echo "$as_me: failed program was:" >&5
30785 sed 's/^/| /' conftest.$ac_ext >&5
30787 ac_cv_have_u_intxx_t="no"
30791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30794 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
30795 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
30796 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
30797 cat >>confdefs.h <<\_ACEOF
30798 #define HAVE_U_INTXX_T 1
30804 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
30805 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
30806 if test "${ac_cv_have_u_int64_t+set}" = set; then
30807 echo $ECHO_N "(cached) $ECHO_C" >&6
30810 cat >conftest.$ac_ext <<_ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h. */
30816 #include <sys/types.h>
30820 u_int64_t a; a = 1;
30825 rm -f conftest.$ac_objext
30826 if { (ac_try="$ac_compile"
30827 case "(($ac_try" in
30828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30829 *) ac_try_echo=$ac_try;;
30831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30832 (eval "$ac_compile") 2>conftest.er1
30834 grep -v '^ *+' conftest.er1 >conftest.err
30836 cat conftest.err >&5
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); } && {
30839 test -z "$ac_c_werror_flag" ||
30840 test ! -s conftest.err
30841 } && test -s conftest.$ac_objext; then
30842 ac_cv_have_u_int64_t="yes"
30844 echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30847 ac_cv_have_u_int64_t="no"
30851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30854 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
30855 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
30856 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
30857 cat >>confdefs.h <<\_ACEOF
30858 #define HAVE_U_INT64_T 1
30864 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
30865 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30867 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
30868 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
30869 cat >conftest.$ac_ext <<_ACEOF
30872 cat confdefs.h >>conftest.$ac_ext
30873 cat >>conftest.$ac_ext <<_ACEOF
30874 /* end confdefs.h. */
30875 #include <sys/bitypes.h>
30879 int8_t a; int16_t b; int32_t c;
30880 u_int8_t e; u_int16_t f; u_int32_t g;
30881 a = b = c = e = f = g = 1;
30886 rm -f conftest.$ac_objext
30887 if { (ac_try="$ac_compile"
30888 case "(($ac_try" in
30889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890 *) ac_try_echo=$ac_try;;
30892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893 (eval "$ac_compile") 2>conftest.er1
30895 grep -v '^ *+' conftest.er1 >conftest.err
30897 cat conftest.err >&5
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); } && {
30900 test -z "$ac_c_werror_flag" ||
30901 test ! -s conftest.err
30902 } && test -s conftest.$ac_objext; then
30903 cat >>confdefs.h <<\_ACEOF
30904 #define HAVE_U_INTXX_T 1
30907 cat >>confdefs.h <<\_ACEOF
30908 #define HAVE_INTXX_T 1
30911 cat >>confdefs.h <<\_ACEOF
30912 #define HAVE_SYS_BITYPES_H 1
30915 { echo "$as_me:$LINENO: result: yes" >&5
30916 echo "${ECHO_T}yes" >&6; }
30918 echo "$as_me: failed program was:" >&5
30919 sed 's/^/| /' conftest.$ac_ext >&5
30921 { echo "$as_me:$LINENO: result: no" >&5
30922 echo "${ECHO_T}no" >&6; }
30926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30929 if test -z "$have_u_intxx_t" ; then
30930 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
30931 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
30932 if test "${ac_cv_have_uintxx_t+set}" = set; then
30933 echo $ECHO_N "(cached) $ECHO_C" >&6
30936 cat >conftest.$ac_ext <<_ACEOF
30939 cat confdefs.h >>conftest.$ac_ext
30940 cat >>conftest.$ac_ext <<_ACEOF
30941 /* end confdefs.h. */
30942 #include <sys/types.h>
30946 uint8_t a; uint16_t b;
30947 uint32_t c; a = b = c = 1;
30952 rm -f conftest.$ac_objext
30953 if { (ac_try="$ac_compile"
30954 case "(($ac_try" in
30955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956 *) ac_try_echo=$ac_try;;
30958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30959 (eval "$ac_compile") 2>conftest.er1
30961 grep -v '^ *+' conftest.er1 >conftest.err
30963 cat conftest.err >&5
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); } && {
30966 test -z "$ac_c_werror_flag" ||
30967 test ! -s conftest.err
30968 } && test -s conftest.$ac_objext; then
30969 ac_cv_have_uintxx_t="yes"
30971 echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30974 ac_cv_have_uintxx_t="no"
30978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30981 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
30982 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
30983 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
30984 cat >>confdefs.h <<\_ACEOF
30985 #define HAVE_UINTXX_T 1
30991 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
30992 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30994 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
30995 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
30996 cat >conftest.$ac_ext <<_ACEOF
30999 cat confdefs.h >>conftest.$ac_ext
31000 cat >>conftest.$ac_ext <<_ACEOF
31001 /* end confdefs.h. */
31002 #include <sys/bitypes.h>
31006 int64_t a; u_int64_t b;
31012 rm -f conftest.$ac_objext
31013 if { (ac_try="$ac_compile"
31014 case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_compile") 2>conftest.er1
31021 grep -v '^ *+' conftest.er1 >conftest.err
31023 cat conftest.err >&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); } && {
31026 test -z "$ac_c_werror_flag" ||
31027 test ! -s conftest.err
31028 } && test -s conftest.$ac_objext; then
31029 cat >>confdefs.h <<\_ACEOF
31030 #define HAVE_U_INT64_T 1
31033 cat >>confdefs.h <<\_ACEOF
31034 #define HAVE_INT64_T 1
31037 { echo "$as_me:$LINENO: result: yes" >&5
31038 echo "${ECHO_T}yes" >&6; }
31040 echo "$as_me: failed program was:" >&5
31041 sed 's/^/| /' conftest.$ac_ext >&5
31043 { echo "$as_me:$LINENO: result: no" >&5
31044 echo "${ECHO_T}no" >&6; }
31048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31051 if (test -z "$have_uintxx_t" && \
31052 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
31054 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
31055 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $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 #include <sys/bitypes.h>
31066 uint8_t a; uint16_t b;
31067 uint32_t c; a = b = c = 1;
31072 rm -f conftest.$ac_objext
31073 if { (ac_try="$ac_compile"
31074 case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_compile") 2>conftest.er1
31081 grep -v '^ *+' conftest.er1 >conftest.err
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); } && {
31086 test -z "$ac_c_werror_flag" ||
31087 test ! -s conftest.err
31088 } && test -s conftest.$ac_objext; then
31089 cat >>confdefs.h <<\_ACEOF
31090 #define HAVE_UINTXX_T 1
31093 { echo "$as_me:$LINENO: result: yes" >&5
31094 echo "${ECHO_T}yes" >&6; }
31096 echo "$as_me: failed program was:" >&5
31097 sed 's/^/| /' conftest.$ac_ext >&5
31099 { echo "$as_me:$LINENO: result: no" >&5
31100 echo "${ECHO_T}no" >&6; }
31104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31144 echo $ECHO_N "(cached) $ECHO_C" >&6
31146 cat >conftest.$ac_ext <<_ACEOF
31149 cat confdefs.h >>conftest.$ac_ext
31150 cat >>conftest.$ac_ext <<_ACEOF
31151 /* end confdefs.h. */
31152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31154 #define $ac_func innocuous_$ac_func
31156 /* System header to define __stub macros and hopefully few prototypes,
31157 which can conflict with char $ac_func (); below.
31158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31159 <limits.h> exists even on freestanding compilers. */
31162 # include <limits.h>
31164 # include <assert.h>
31169 /* Override any GCC internal prototype to avoid an error.
31170 Use char because int might match the return type of a GCC
31171 builtin and then its argument prototype would still apply. */
31176 /* The GNU C library defines this for functions which it implements
31177 to always fail with ENOSYS. Some functions are actually named
31178 something starting with __ and the normal name is an alias. */
31179 #if defined __stub_$ac_func || defined __stub___$ac_func
31186 return $ac_func ();
31191 rm -f conftest.$ac_objext conftest$ac_exeext
31192 if { (ac_try="$ac_link"
31193 case "(($ac_try" in
31194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31195 *) ac_try_echo=$ac_try;;
31197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31198 (eval "$ac_link") 2>conftest.er1
31200 grep -v '^ *+' conftest.er1 >conftest.err
31202 cat conftest.err >&5
31203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31204 (exit $ac_status); } && {
31205 test -z "$ac_c_werror_flag" ||
31206 test ! -s conftest.err
31207 } && test -s conftest$ac_exeext &&
31208 $as_test_x conftest$ac_exeext; then
31209 eval "$as_ac_var=yes"
31211 echo "$as_me: failed program was:" >&5
31212 sed 's/^/| /' conftest.$ac_ext >&5
31214 eval "$as_ac_var=no"
31217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31218 conftest$ac_exeext conftest.$ac_ext
31220 ac_res=`eval echo '${'$as_ac_var'}'`
31221 { echo "$as_me:$LINENO: result: $ac_res" >&5
31222 echo "${ECHO_T}$ac_res" >&6; }
31223 if test `eval echo '${'$as_ac_var'}'` = yes; then
31224 cat >>confdefs.h <<_ACEOF
31225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31229 echo 'configure: cannot find needed function.'; exit 1
31236 for ac_func in fchdir
31238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31242 echo $ECHO_N "(cached) $ECHO_C" >&6
31244 cat >conftest.$ac_ext <<_ACEOF
31247 cat confdefs.h >>conftest.$ac_ext
31248 cat >>conftest.$ac_ext <<_ACEOF
31249 /* end confdefs.h. */
31250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31252 #define $ac_func innocuous_$ac_func
31254 /* System header to define __stub macros and hopefully few prototypes,
31255 which can conflict with char $ac_func (); below.
31256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31257 <limits.h> exists even on freestanding compilers. */
31260 # include <limits.h>
31262 # include <assert.h>
31267 /* Override any GCC internal prototype to avoid an error.
31268 Use char because int might match the return type of a GCC
31269 builtin and then its argument prototype would still apply. */
31274 /* The GNU C library defines this for functions which it implements
31275 to always fail with ENOSYS. Some functions are actually named
31276 something starting with __ and the normal name is an alias. */
31277 #if defined __stub_$ac_func || defined __stub___$ac_func
31284 return $ac_func ();
31289 rm -f conftest.$ac_objext conftest$ac_exeext
31290 if { (ac_try="$ac_link"
31291 case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_link") 2>conftest.er1
31298 grep -v '^ *+' conftest.er1 >conftest.err
31300 cat conftest.err >&5
31301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302 (exit $ac_status); } && {
31303 test -z "$ac_c_werror_flag" ||
31304 test ! -s conftest.err
31305 } && test -s conftest$ac_exeext &&
31306 $as_test_x conftest$ac_exeext; then
31307 eval "$as_ac_var=yes"
31309 echo "$as_me: failed program was:" >&5
31310 sed 's/^/| /' conftest.$ac_ext >&5
31312 eval "$as_ac_var=no"
31315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31316 conftest$ac_exeext conftest.$ac_ext
31318 ac_res=`eval echo '${'$as_ac_var'}'`
31319 { echo "$as_me:$LINENO: result: $ac_res" >&5
31320 echo "${ECHO_T}$ac_res" >&6; }
31321 if test `eval echo '${'$as_ac_var'}'` = yes; then
31322 cat >>confdefs.h <<_ACEOF
31323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31325 cat >>confdefs.h <<\_ACEOF
31326 #define HAVE_FCHDIR 1
31333 for ac_func in strtoll
31335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31339 echo $ECHO_N "(cached) $ECHO_C" >&6
31341 cat >conftest.$ac_ext <<_ACEOF
31344 cat confdefs.h >>conftest.$ac_ext
31345 cat >>conftest.$ac_ext <<_ACEOF
31346 /* end confdefs.h. */
31347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31349 #define $ac_func innocuous_$ac_func
31351 /* System header to define __stub macros and hopefully few prototypes,
31352 which can conflict with char $ac_func (); below.
31353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31354 <limits.h> exists even on freestanding compilers. */
31357 # include <limits.h>
31359 # include <assert.h>
31364 /* Override any GCC internal prototype to avoid an error.
31365 Use char because int might match the return type of a GCC
31366 builtin and then its argument prototype would still apply. */
31371 /* The GNU C library defines this for functions which it implements
31372 to always fail with ENOSYS. Some functions are actually named
31373 something starting with __ and the normal name is an alias. */
31374 #if defined __stub_$ac_func || defined __stub___$ac_func
31381 return $ac_func ();
31386 rm -f conftest.$ac_objext conftest$ac_exeext
31387 if { (ac_try="$ac_link"
31388 case "(($ac_try" in
31389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390 *) ac_try_echo=$ac_try;;
31392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393 (eval "$ac_link") 2>conftest.er1
31395 grep -v '^ *+' conftest.er1 >conftest.err
31397 cat conftest.err >&5
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); } && {
31400 test -z "$ac_c_werror_flag" ||
31401 test ! -s conftest.err
31402 } && test -s conftest$ac_exeext &&
31403 $as_test_x conftest$ac_exeext; then
31404 eval "$as_ac_var=yes"
31406 echo "$as_me: failed program was:" >&5
31407 sed 's/^/| /' conftest.$ac_ext >&5
31409 eval "$as_ac_var=no"
31412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31413 conftest$ac_exeext conftest.$ac_ext
31415 ac_res=`eval echo '${'$as_ac_var'}'`
31416 { echo "$as_me:$LINENO: result: $ac_res" >&5
31417 echo "${ECHO_T}$ac_res" >&6; }
31418 if test `eval echo '${'$as_ac_var'}'` = yes; then
31419 cat >>confdefs.h <<_ACEOF
31420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31422 cat >>confdefs.h <<\_ACEOF
31423 #define HAVE_STRTOLL 1
31430 for ac_func in posix_fadvise
31432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31436 echo $ECHO_N "(cached) $ECHO_C" >&6
31438 cat >conftest.$ac_ext <<_ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h. */
31444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31446 #define $ac_func innocuous_$ac_func
31448 /* System header to define __stub macros and hopefully few prototypes,
31449 which can conflict with char $ac_func (); below.
31450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31451 <limits.h> exists even on freestanding compilers. */
31454 # include <limits.h>
31456 # include <assert.h>
31461 /* Override any GCC internal prototype to avoid an error.
31462 Use char because int might match the return type of a GCC
31463 builtin and then its argument prototype would still apply. */
31468 /* The GNU C library defines this for functions which it implements
31469 to always fail with ENOSYS. Some functions are actually named
31470 something starting with __ and the normal name is an alias. */
31471 #if defined __stub_$ac_func || defined __stub___$ac_func
31478 return $ac_func ();
31483 rm -f conftest.$ac_objext conftest$ac_exeext
31484 if { (ac_try="$ac_link"
31485 case "(($ac_try" in
31486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487 *) ac_try_echo=$ac_try;;
31489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31490 (eval "$ac_link") 2>conftest.er1
31492 grep -v '^ *+' conftest.er1 >conftest.err
31494 cat conftest.err >&5
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); } && {
31497 test -z "$ac_c_werror_flag" ||
31498 test ! -s conftest.err
31499 } && test -s conftest$ac_exeext &&
31500 $as_test_x conftest$ac_exeext; then
31501 eval "$as_ac_var=yes"
31503 echo "$as_me: failed program was:" >&5
31504 sed 's/^/| /' conftest.$ac_ext >&5
31506 eval "$as_ac_var=no"
31509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31510 conftest$ac_exeext conftest.$ac_ext
31512 ac_res=`eval echo '${'$as_ac_var'}'`
31513 { echo "$as_me:$LINENO: result: $ac_res" >&5
31514 echo "${ECHO_T}$ac_res" >&6; }
31515 if test `eval echo '${'$as_ac_var'}'` = yes; then
31516 cat >>confdefs.h <<_ACEOF
31517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31524 for ac_func in fdatasync
31526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31530 echo $ECHO_N "(cached) $ECHO_C" >&6
31532 cat >conftest.$ac_ext <<_ACEOF
31535 cat confdefs.h >>conftest.$ac_ext
31536 cat >>conftest.$ac_ext <<_ACEOF
31537 /* end confdefs.h. */
31538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31540 #define $ac_func innocuous_$ac_func
31542 /* System header to define __stub macros and hopefully few prototypes,
31543 which can conflict with char $ac_func (); below.
31544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31545 <limits.h> exists even on freestanding compilers. */
31548 # include <limits.h>
31550 # include <assert.h>
31555 /* Override any GCC internal prototype to avoid an error.
31556 Use char because int might match the return type of a GCC
31557 builtin and then its argument prototype would still apply. */
31562 /* The GNU C library defines this for functions which it implements
31563 to always fail with ENOSYS. Some functions are actually named
31564 something starting with __ and the normal name is an alias. */
31565 #if defined __stub_$ac_func || defined __stub___$ac_func
31572 return $ac_func ();
31577 rm -f conftest.$ac_objext conftest$ac_exeext
31578 if { (ac_try="$ac_link"
31579 case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_link") 2>conftest.er1
31586 grep -v '^ *+' conftest.er1 >conftest.err
31588 cat conftest.err >&5
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); } && {
31591 test -z "$ac_c_werror_flag" ||
31592 test ! -s conftest.err
31593 } && test -s conftest$ac_exeext &&
31594 $as_test_x conftest$ac_exeext; then
31595 eval "$as_ac_var=yes"
31597 echo "$as_me: failed program was:" >&5
31598 sed 's/^/| /' conftest.$ac_ext >&5
31600 eval "$as_ac_var=no"
31603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31604 conftest$ac_exeext conftest.$ac_ext
31606 ac_res=`eval echo '${'$as_ac_var'}'`
31607 { echo "$as_me:$LINENO: result: $ac_res" >&5
31608 echo "${ECHO_T}$ac_res" >&6; }
31609 if test `eval echo '${'$as_ac_var'}'` = yes; then
31610 cat >>confdefs.h <<_ACEOF
31611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31619 for ac_func in chflags
31621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31625 echo $ECHO_N "(cached) $ECHO_C" >&6
31627 cat >conftest.$ac_ext <<_ACEOF
31630 cat confdefs.h >>conftest.$ac_ext
31631 cat >>conftest.$ac_ext <<_ACEOF
31632 /* end confdefs.h. */
31633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31635 #define $ac_func innocuous_$ac_func
31637 /* System header to define __stub macros and hopefully few prototypes,
31638 which can conflict with char $ac_func (); below.
31639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31640 <limits.h> exists even on freestanding compilers. */
31643 # include <limits.h>
31645 # include <assert.h>
31650 /* Override any GCC internal prototype to avoid an error.
31651 Use char because int might match the return type of a GCC
31652 builtin and then its argument prototype would still apply. */
31657 /* The GNU C library defines this for functions which it implements
31658 to always fail with ENOSYS. Some functions are actually named
31659 something starting with __ and the normal name is an alias. */
31660 #if defined __stub_$ac_func || defined __stub___$ac_func
31667 return $ac_func ();
31672 rm -f conftest.$ac_objext conftest$ac_exeext
31673 if { (ac_try="$ac_link"
31674 case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_link") 2>conftest.er1
31681 grep -v '^ *+' conftest.er1 >conftest.err
31683 cat conftest.err >&5
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); } && {
31686 test -z "$ac_c_werror_flag" ||
31687 test ! -s conftest.err
31688 } && test -s conftest$ac_exeext &&
31689 $as_test_x conftest$ac_exeext; then
31690 eval "$as_ac_var=yes"
31692 echo "$as_me: failed program was:" >&5
31693 sed 's/^/| /' conftest.$ac_ext >&5
31695 eval "$as_ac_var=no"
31698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31699 conftest$ac_exeext conftest.$ac_ext
31701 ac_res=`eval echo '${'$as_ac_var'}'`
31702 { echo "$as_me:$LINENO: result: $ac_res" >&5
31703 echo "${ECHO_T}$ac_res" >&6; }
31704 if test `eval echo '${'$as_ac_var'}'` = yes; then
31705 cat >>confdefs.h <<_ACEOF
31706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31717 for ac_func in snprintf vsnprintf gethostid fseeko
31719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31723 echo $ECHO_N "(cached) $ECHO_C" >&6
31725 cat >conftest.$ac_ext <<_ACEOF
31728 cat confdefs.h >>conftest.$ac_ext
31729 cat >>conftest.$ac_ext <<_ACEOF
31730 /* end confdefs.h. */
31731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31733 #define $ac_func innocuous_$ac_func
31735 /* System header to define __stub macros and hopefully few prototypes,
31736 which can conflict with char $ac_func (); below.
31737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31738 <limits.h> exists even on freestanding compilers. */
31741 # include <limits.h>
31743 # include <assert.h>
31748 /* Override any GCC internal prototype to avoid an error.
31749 Use char because int might match the return type of a GCC
31750 builtin and then its argument prototype would still apply. */
31755 /* The GNU C library defines this for functions which it implements
31756 to always fail with ENOSYS. Some functions are actually named
31757 something starting with __ and the normal name is an alias. */
31758 #if defined __stub_$ac_func || defined __stub___$ac_func
31765 return $ac_func ();
31770 rm -f conftest.$ac_objext conftest$ac_exeext
31771 if { (ac_try="$ac_link"
31772 case "(($ac_try" in
31773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31774 *) ac_try_echo=$ac_try;;
31776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31777 (eval "$ac_link") 2>conftest.er1
31779 grep -v '^ *+' conftest.er1 >conftest.err
31781 cat conftest.err >&5
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); } && {
31784 test -z "$ac_c_werror_flag" ||
31785 test ! -s conftest.err
31786 } && test -s conftest$ac_exeext &&
31787 $as_test_x conftest$ac_exeext; then
31788 eval "$as_ac_var=yes"
31790 echo "$as_me: failed program was:" >&5
31791 sed 's/^/| /' conftest.$ac_ext >&5
31793 eval "$as_ac_var=no"
31796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31797 conftest$ac_exeext conftest.$ac_ext
31799 ac_res=`eval echo '${'$as_ac_var'}'`
31800 { echo "$as_me:$LINENO: result: $ac_res" >&5
31801 echo "${ECHO_T}$ac_res" >&6; }
31802 if test `eval echo '${'$as_ac_var'}'` = yes; then
31803 cat >>confdefs.h <<_ACEOF
31804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31811 { echo "$as_me:$LINENO: checking for va_copy" >&5
31812 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
31813 if test "${ba_cv_va_copy+set}" = set; then
31814 echo $ECHO_N "(cached) $ECHO_C" >&6
31816 cat >conftest.$ac_ext <<_ACEOF
31819 cat confdefs.h >>conftest.$ac_ext
31820 cat >>conftest.$ac_ext <<_ACEOF
31821 /* end confdefs.h. */
31823 #include <stdarg.h>
31824 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
31825 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
31830 call_use_va_copy(1,2,3)
31835 rm -f conftest.$ac_objext conftest$ac_exeext
31836 if { (ac_try="$ac_link"
31837 case "(($ac_try" in
31838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839 *) ac_try_echo=$ac_try;;
31841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842 (eval "$ac_link") 2>conftest.er1
31844 grep -v '^ *+' conftest.er1 >conftest.err
31846 cat conftest.err >&5
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); } && {
31849 test -z "$ac_c_werror_flag" ||
31850 test ! -s conftest.err
31851 } && test -s conftest$ac_exeext &&
31852 $as_test_x conftest$ac_exeext; then
31855 echo "$as_me: failed program was:" >&5
31856 sed 's/^/| /' conftest.$ac_ext >&5
31861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31862 conftest$ac_exeext conftest.$ac_ext
31864 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
31865 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
31866 test $ba_cv_va_copy = yes &&
31867 cat >>confdefs.h <<\_ACEOF
31868 #define HAVE_VA_COPY 1
31877 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
31879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31883 echo $ECHO_N "(cached) $ECHO_C" >&6
31885 cat >conftest.$ac_ext <<_ACEOF
31888 cat confdefs.h >>conftest.$ac_ext
31889 cat >>conftest.$ac_ext <<_ACEOF
31890 /* end confdefs.h. */
31891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31893 #define $ac_func innocuous_$ac_func
31895 /* System header to define __stub macros and hopefully few prototypes,
31896 which can conflict with char $ac_func (); below.
31897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31898 <limits.h> exists even on freestanding compilers. */
31901 # include <limits.h>
31903 # include <assert.h>
31908 /* Override any GCC internal prototype to avoid an error.
31909 Use char because int might match the return type of a GCC
31910 builtin and then its argument prototype would still apply. */
31915 /* The GNU C library defines this for functions which it implements
31916 to always fail with ENOSYS. Some functions are actually named
31917 something starting with __ and the normal name is an alias. */
31918 #if defined __stub_$ac_func || defined __stub___$ac_func
31925 return $ac_func ();
31930 rm -f conftest.$ac_objext conftest$ac_exeext
31931 if { (ac_try="$ac_link"
31932 case "(($ac_try" in
31933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934 *) ac_try_echo=$ac_try;;
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937 (eval "$ac_link") 2>conftest.er1
31939 grep -v '^ *+' conftest.er1 >conftest.err
31941 cat conftest.err >&5
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); } && {
31944 test -z "$ac_c_werror_flag" ||
31945 test ! -s conftest.err
31946 } && test -s conftest$ac_exeext &&
31947 $as_test_x conftest$ac_exeext; then
31948 eval "$as_ac_var=yes"
31950 echo "$as_me: failed program was:" >&5
31951 sed 's/^/| /' conftest.$ac_ext >&5
31953 eval "$as_ac_var=no"
31956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31957 conftest$ac_exeext conftest.$ac_ext
31959 ac_res=`eval echo '${'$as_ac_var'}'`
31960 { echo "$as_me:$LINENO: result: $ac_res" >&5
31961 echo "${ECHO_T}$ac_res" >&6; }
31962 if test `eval echo '${'$as_ac_var'}'` = yes; then
31963 cat >>confdefs.h <<_ACEOF
31964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31971 # If resolver functions are not in libc check for -lnsl or -lresolv.
31972 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
31973 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
31974 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
31975 echo $ECHO_N "(cached) $ECHO_C" >&6
31977 cat >conftest.$ac_ext <<_ACEOF
31980 cat confdefs.h >>conftest.$ac_ext
31981 cat >>conftest.$ac_ext <<_ACEOF
31982 /* end confdefs.h. */
31983 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
31984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31985 #define gethostbyname_r innocuous_gethostbyname_r
31987 /* System header to define __stub macros and hopefully few prototypes,
31988 which can conflict with char gethostbyname_r (); below.
31989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31990 <limits.h> exists even on freestanding compilers. */
31993 # include <limits.h>
31995 # include <assert.h>
31998 #undef gethostbyname_r
32000 /* Override any GCC internal prototype to avoid an error.
32001 Use char because int might match the return type of a GCC
32002 builtin and then its argument prototype would still apply. */
32006 char gethostbyname_r ();
32007 /* The GNU C library defines this for functions which it implements
32008 to always fail with ENOSYS. Some functions are actually named
32009 something starting with __ and the normal name is an alias. */
32010 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32017 return gethostbyname_r ();
32022 rm -f conftest.$ac_objext conftest$ac_exeext
32023 if { (ac_try="$ac_link"
32024 case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_link") 2>conftest.er1
32031 grep -v '^ *+' conftest.er1 >conftest.err
32033 cat conftest.err >&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); } && {
32036 test -z "$ac_c_werror_flag" ||
32037 test ! -s conftest.err
32038 } && test -s conftest$ac_exeext &&
32039 $as_test_x conftest$ac_exeext; then
32040 ac_cv_func_gethostbyname_r=yes
32042 echo "$as_me: failed program was:" >&5
32043 sed 's/^/| /' conftest.$ac_ext >&5
32045 ac_cv_func_gethostbyname_r=no
32048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32049 conftest$ac_exeext conftest.$ac_ext
32051 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
32052 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
32053 if test $ac_cv_func_gethostbyname_r = yes; then
32054 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
32055 echo "${ECHO_T}using libc's resolver" >&6; }
32058 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
32059 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
32060 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
32061 echo $ECHO_N "(cached) $ECHO_C" >&6
32063 ac_check_lib_save_LIBS=$LIBS
32065 cat >conftest.$ac_ext <<_ACEOF
32068 cat confdefs.h >>conftest.$ac_ext
32069 cat >>conftest.$ac_ext <<_ACEOF
32070 /* end confdefs.h. */
32072 /* Override any GCC internal prototype to avoid an error.
32073 Use char because int might match the return type of a GCC
32074 builtin and then its argument prototype would still apply. */
32078 char gethostbyname_r ();
32082 return gethostbyname_r ();
32087 rm -f conftest.$ac_objext conftest$ac_exeext
32088 if { (ac_try="$ac_link"
32089 case "(($ac_try" in
32090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_link") 2>conftest.er1
32096 grep -v '^ *+' conftest.er1 >conftest.err
32098 cat conftest.err >&5
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); } && {
32101 test -z "$ac_c_werror_flag" ||
32102 test ! -s conftest.err
32103 } && test -s conftest$ac_exeext &&
32104 $as_test_x conftest$ac_exeext; then
32105 ac_cv_lib_nsl_gethostbyname_r=yes
32107 echo "$as_me: failed program was:" >&5
32108 sed 's/^/| /' conftest.$ac_ext >&5
32110 ac_cv_lib_nsl_gethostbyname_r=no
32113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32114 conftest$ac_exeext conftest.$ac_ext
32115 LIBS=$ac_check_lib_save_LIBS
32117 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
32118 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
32119 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
32120 cat >>confdefs.h <<_ACEOF
32121 #define HAVE_LIBNSL 1
32129 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
32130 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
32131 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
32132 echo $ECHO_N "(cached) $ECHO_C" >&6
32134 ac_check_lib_save_LIBS=$LIBS
32135 LIBS="-lresolv $LIBS"
32136 cat >conftest.$ac_ext <<_ACEOF
32139 cat confdefs.h >>conftest.$ac_ext
32140 cat >>conftest.$ac_ext <<_ACEOF
32141 /* end confdefs.h. */
32143 /* Override any GCC internal prototype to avoid an error.
32144 Use char because int might match the return type of a GCC
32145 builtin and then its argument prototype would still apply. */
32149 char gethostbyname_r ();
32153 return gethostbyname_r ();
32158 rm -f conftest.$ac_objext conftest$ac_exeext
32159 if { (ac_try="$ac_link"
32160 case "(($ac_try" in
32161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32162 *) ac_try_echo=$ac_try;;
32164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32165 (eval "$ac_link") 2>conftest.er1
32167 grep -v '^ *+' conftest.er1 >conftest.err
32169 cat conftest.err >&5
32170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171 (exit $ac_status); } && {
32172 test -z "$ac_c_werror_flag" ||
32173 test ! -s conftest.err
32174 } && test -s conftest$ac_exeext &&
32175 $as_test_x conftest$ac_exeext; then
32176 ac_cv_lib_resolv_gethostbyname_r=yes
32178 echo "$as_me: failed program was:" >&5
32179 sed 's/^/| /' conftest.$ac_ext >&5
32181 ac_cv_lib_resolv_gethostbyname_r=no
32184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32185 conftest$ac_exeext conftest.$ac_ext
32186 LIBS=$ac_check_lib_save_LIBS
32188 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
32189 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
32190 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
32191 cat >>confdefs.h <<_ACEOF
32192 #define HAVE_LIBRESOLV 1
32195 LIBS="-lresolv $LIBS"
32205 for ac_func in inet_pton
32207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32211 echo $ECHO_N "(cached) $ECHO_C" >&6
32213 cat >conftest.$ac_ext <<_ACEOF
32216 cat confdefs.h >>conftest.$ac_ext
32217 cat >>conftest.$ac_ext <<_ACEOF
32218 /* end confdefs.h. */
32219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32221 #define $ac_func innocuous_$ac_func
32223 /* System header to define __stub macros and hopefully few prototypes,
32224 which can conflict with char $ac_func (); below.
32225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32226 <limits.h> exists even on freestanding compilers. */
32229 # include <limits.h>
32231 # include <assert.h>
32236 /* Override any GCC internal prototype to avoid an error.
32237 Use char because int might match the return type of a GCC
32238 builtin and then its argument prototype would still apply. */
32243 /* The GNU C library defines this for functions which it implements
32244 to always fail with ENOSYS. Some functions are actually named
32245 something starting with __ and the normal name is an alias. */
32246 #if defined __stub_$ac_func || defined __stub___$ac_func
32253 return $ac_func ();
32258 rm -f conftest.$ac_objext conftest$ac_exeext
32259 if { (ac_try="$ac_link"
32260 case "(($ac_try" in
32261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32262 *) ac_try_echo=$ac_try;;
32264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32265 (eval "$ac_link") 2>conftest.er1
32267 grep -v '^ *+' conftest.er1 >conftest.err
32269 cat conftest.err >&5
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); } && {
32272 test -z "$ac_c_werror_flag" ||
32273 test ! -s conftest.err
32274 } && test -s conftest$ac_exeext &&
32275 $as_test_x conftest$ac_exeext; then
32276 eval "$as_ac_var=yes"
32278 echo "$as_me: failed program was:" >&5
32279 sed 's/^/| /' conftest.$ac_ext >&5
32281 eval "$as_ac_var=no"
32284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32285 conftest$ac_exeext conftest.$ac_ext
32287 ac_res=`eval echo '${'$as_ac_var'}'`
32288 { echo "$as_me:$LINENO: result: $ac_res" >&5
32289 echo "${ECHO_T}$ac_res" >&6; }
32290 if test `eval echo '${'$as_ac_var'}'` = yes; then
32291 cat >>confdefs.h <<_ACEOF
32292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32294 cat >>confdefs.h <<\_ACEOF
32295 #define HAVE_INET_PTON 1
32302 for ac_func in inet_ntop
32304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32308 echo $ECHO_N "(cached) $ECHO_C" >&6
32310 cat >conftest.$ac_ext <<_ACEOF
32313 cat confdefs.h >>conftest.$ac_ext
32314 cat >>conftest.$ac_ext <<_ACEOF
32315 /* end confdefs.h. */
32316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32318 #define $ac_func innocuous_$ac_func
32320 /* System header to define __stub macros and hopefully few prototypes,
32321 which can conflict with char $ac_func (); below.
32322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32323 <limits.h> exists even on freestanding compilers. */
32326 # include <limits.h>
32328 # include <assert.h>
32333 /* Override any GCC internal prototype to avoid an error.
32334 Use char because int might match the return type of a GCC
32335 builtin and then its argument prototype would still apply. */
32340 /* The GNU C library defines this for functions which it implements
32341 to always fail with ENOSYS. Some functions are actually named
32342 something starting with __ and the normal name is an alias. */
32343 #if defined __stub_$ac_func || defined __stub___$ac_func
32350 return $ac_func ();
32355 rm -f conftest.$ac_objext conftest$ac_exeext
32356 if { (ac_try="$ac_link"
32357 case "(($ac_try" in
32358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359 *) ac_try_echo=$ac_try;;
32361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362 (eval "$ac_link") 2>conftest.er1
32364 grep -v '^ *+' conftest.er1 >conftest.err
32366 cat conftest.err >&5
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); } && {
32369 test -z "$ac_c_werror_flag" ||
32370 test ! -s conftest.err
32371 } && test -s conftest$ac_exeext &&
32372 $as_test_x conftest$ac_exeext; then
32373 eval "$as_ac_var=yes"
32375 echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32378 eval "$as_ac_var=no"
32381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32382 conftest$ac_exeext conftest.$ac_ext
32384 ac_res=`eval echo '${'$as_ac_var'}'`
32385 { echo "$as_me:$LINENO: result: $ac_res" >&5
32386 echo "${ECHO_T}$ac_res" >&6; }
32387 if test `eval echo '${'$as_ac_var'}'` = yes; then
32388 cat >>confdefs.h <<_ACEOF
32389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32391 cat >>confdefs.h <<\_ACEOF
32392 #define HAVE_INET_NTOP 1
32399 for ac_func in gethostbyname2
32401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32405 echo $ECHO_N "(cached) $ECHO_C" >&6
32407 cat >conftest.$ac_ext <<_ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h. */
32413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32415 #define $ac_func innocuous_$ac_func
32417 /* System header to define __stub macros and hopefully few prototypes,
32418 which can conflict with char $ac_func (); below.
32419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32420 <limits.h> exists even on freestanding compilers. */
32423 # include <limits.h>
32425 # include <assert.h>
32430 /* Override any GCC internal prototype to avoid an error.
32431 Use char because int might match the return type of a GCC
32432 builtin and then its argument prototype would still apply. */
32437 /* The GNU C library defines this for functions which it implements
32438 to always fail with ENOSYS. Some functions are actually named
32439 something starting with __ and the normal name is an alias. */
32440 #if defined __stub_$ac_func || defined __stub___$ac_func
32447 return $ac_func ();
32452 rm -f conftest.$ac_objext conftest$ac_exeext
32453 if { (ac_try="$ac_link"
32454 case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_link") 2>conftest.er1
32461 grep -v '^ *+' conftest.er1 >conftest.err
32463 cat conftest.err >&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } && {
32466 test -z "$ac_c_werror_flag" ||
32467 test ! -s conftest.err
32468 } && test -s conftest$ac_exeext &&
32469 $as_test_x conftest$ac_exeext; then
32470 eval "$as_ac_var=yes"
32472 echo "$as_me: failed program was:" >&5
32473 sed 's/^/| /' conftest.$ac_ext >&5
32475 eval "$as_ac_var=no"
32478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32479 conftest$ac_exeext conftest.$ac_ext
32481 ac_res=`eval echo '${'$as_ac_var'}'`
32482 { echo "$as_me:$LINENO: result: $ac_res" >&5
32483 echo "${ECHO_T}$ac_res" >&6; }
32484 if test `eval echo '${'$as_ac_var'}'` = yes; then
32485 cat >>confdefs.h <<_ACEOF
32486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32488 cat >>confdefs.h <<\_ACEOF
32489 #define HAVE_GETHOSTBYNAME2 1
32496 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
32497 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
32498 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
32499 echo $ECHO_N "(cached) $ECHO_C" >&6
32501 cat >conftest.$ac_ext <<_ACEOF
32504 cat confdefs.h >>conftest.$ac_ext
32505 cat >>conftest.$ac_ext <<_ACEOF
32506 /* end confdefs.h. */
32507 #include <sys/socket.h>
32511 struct sockaddr s; s.sa_len;
32516 rm -f conftest.$ac_objext
32517 if { (ac_try="$ac_compile"
32518 case "(($ac_try" in
32519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520 *) ac_try_echo=$ac_try;;
32522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523 (eval "$ac_compile") 2>conftest.er1
32525 grep -v '^ *+' conftest.er1 >conftest.err
32527 cat conftest.err >&5
32528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529 (exit $ac_status); } && {
32530 test -z "$ac_c_werror_flag" ||
32531 test ! -s conftest.err
32532 } && test -s conftest.$ac_objext; then
32533 ac_cv_struct_sockaddr_sa_len=yes
32535 echo "$as_me: failed program was:" >&5
32536 sed 's/^/| /' conftest.$ac_ext >&5
32538 ac_cv_struct_sockaddr_sa_len=no
32541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32543 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
32544 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
32546 if test $ac_cv_struct_sockaddr_sa_len = yes; then
32548 cat >>confdefs.h <<\_ACEOF
32549 #define HAVE_SA_LEN 1
32558 for ac_func in strftime
32560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32564 echo $ECHO_N "(cached) $ECHO_C" >&6
32566 cat >conftest.$ac_ext <<_ACEOF
32569 cat confdefs.h >>conftest.$ac_ext
32570 cat >>conftest.$ac_ext <<_ACEOF
32571 /* end confdefs.h. */
32572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32574 #define $ac_func innocuous_$ac_func
32576 /* System header to define __stub macros and hopefully few prototypes,
32577 which can conflict with char $ac_func (); below.
32578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32579 <limits.h> exists even on freestanding compilers. */
32582 # include <limits.h>
32584 # include <assert.h>
32589 /* Override any GCC internal prototype to avoid an error.
32590 Use char because int might match the return type of a GCC
32591 builtin and then its argument prototype would still apply. */
32596 /* The GNU C library defines this for functions which it implements
32597 to always fail with ENOSYS. Some functions are actually named
32598 something starting with __ and the normal name is an alias. */
32599 #if defined __stub_$ac_func || defined __stub___$ac_func
32606 return $ac_func ();
32611 rm -f conftest.$ac_objext conftest$ac_exeext
32612 if { (ac_try="$ac_link"
32613 case "(($ac_try" in
32614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615 *) ac_try_echo=$ac_try;;
32617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618 (eval "$ac_link") 2>conftest.er1
32620 grep -v '^ *+' conftest.er1 >conftest.err
32622 cat conftest.err >&5
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); } && {
32625 test -z "$ac_c_werror_flag" ||
32626 test ! -s conftest.err
32627 } && test -s conftest$ac_exeext &&
32628 $as_test_x conftest$ac_exeext; then
32629 eval "$as_ac_var=yes"
32631 echo "$as_me: failed program was:" >&5
32632 sed 's/^/| /' conftest.$ac_ext >&5
32634 eval "$as_ac_var=no"
32637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32638 conftest$ac_exeext conftest.$ac_ext
32640 ac_res=`eval echo '${'$as_ac_var'}'`
32641 { echo "$as_me:$LINENO: result: $ac_res" >&5
32642 echo "${ECHO_T}$ac_res" >&6; }
32643 if test `eval echo '${'$as_ac_var'}'` = yes; then
32644 cat >>confdefs.h <<_ACEOF
32645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32649 # strftime is in -lintl on SCO UNIX.
32650 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
32651 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
32652 if test "${ac_cv_lib_intl_strftime+set}" = set; then
32653 echo $ECHO_N "(cached) $ECHO_C" >&6
32655 ac_check_lib_save_LIBS=$LIBS
32656 LIBS="-lintl $LIBS"
32657 cat >conftest.$ac_ext <<_ACEOF
32660 cat confdefs.h >>conftest.$ac_ext
32661 cat >>conftest.$ac_ext <<_ACEOF
32662 /* end confdefs.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. */
32674 return strftime ();
32679 rm -f conftest.$ac_objext conftest$ac_exeext
32680 if { (ac_try="$ac_link"
32681 case "(($ac_try" in
32682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32683 *) ac_try_echo=$ac_try;;
32685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32686 (eval "$ac_link") 2>conftest.er1
32688 grep -v '^ *+' conftest.er1 >conftest.err
32690 cat conftest.err >&5
32691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); } && {
32693 test -z "$ac_c_werror_flag" ||
32694 test ! -s conftest.err
32695 } && test -s conftest$ac_exeext &&
32696 $as_test_x conftest$ac_exeext; then
32697 ac_cv_lib_intl_strftime=yes
32699 echo "$as_me: failed program was:" >&5
32700 sed 's/^/| /' conftest.$ac_ext >&5
32702 ac_cv_lib_intl_strftime=no
32705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32706 conftest$ac_exeext conftest.$ac_ext
32707 LIBS=$ac_check_lib_save_LIBS
32709 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
32710 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
32711 if test $ac_cv_lib_intl_strftime = yes; then
32712 cat >>confdefs.h <<\_ACEOF
32713 #define HAVE_STRFTIME 1
32716 LIBS="-lintl $LIBS"
32723 for ac_func in vprintf
32725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32729 echo $ECHO_N "(cached) $ECHO_C" >&6
32731 cat >conftest.$ac_ext <<_ACEOF
32734 cat confdefs.h >>conftest.$ac_ext
32735 cat >>conftest.$ac_ext <<_ACEOF
32736 /* end confdefs.h. */
32737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32739 #define $ac_func innocuous_$ac_func
32741 /* System header to define __stub macros and hopefully few prototypes,
32742 which can conflict with char $ac_func (); below.
32743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32744 <limits.h> exists even on freestanding compilers. */
32747 # include <limits.h>
32749 # include <assert.h>
32754 /* Override any GCC internal prototype to avoid an error.
32755 Use char because int might match the return type of a GCC
32756 builtin and then its argument prototype would still apply. */
32761 /* The GNU C library defines this for functions which it implements
32762 to always fail with ENOSYS. Some functions are actually named
32763 something starting with __ and the normal name is an alias. */
32764 #if defined __stub_$ac_func || defined __stub___$ac_func
32771 return $ac_func ();
32776 rm -f conftest.$ac_objext conftest$ac_exeext
32777 if { (ac_try="$ac_link"
32778 case "(($ac_try" in
32779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780 *) ac_try_echo=$ac_try;;
32782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783 (eval "$ac_link") 2>conftest.er1
32785 grep -v '^ *+' conftest.er1 >conftest.err
32787 cat conftest.err >&5
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); } && {
32790 test -z "$ac_c_werror_flag" ||
32791 test ! -s conftest.err
32792 } && test -s conftest$ac_exeext &&
32793 $as_test_x conftest$ac_exeext; then
32794 eval "$as_ac_var=yes"
32796 echo "$as_me: failed program was:" >&5
32797 sed 's/^/| /' conftest.$ac_ext >&5
32799 eval "$as_ac_var=no"
32802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32803 conftest$ac_exeext conftest.$ac_ext
32805 ac_res=`eval echo '${'$as_ac_var'}'`
32806 { echo "$as_me:$LINENO: result: $ac_res" >&5
32807 echo "${ECHO_T}$ac_res" >&6; }
32808 if test `eval echo '${'$as_ac_var'}'` = yes; then
32809 cat >>confdefs.h <<_ACEOF
32810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32813 { echo "$as_me:$LINENO: checking for _doprnt" >&5
32814 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
32815 if test "${ac_cv_func__doprnt+set}" = set; then
32816 echo $ECHO_N "(cached) $ECHO_C" >&6
32818 cat >conftest.$ac_ext <<_ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h. */
32824 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
32825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32826 #define _doprnt innocuous__doprnt
32828 /* System header to define __stub macros and hopefully few prototypes,
32829 which can conflict with char _doprnt (); below.
32830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32831 <limits.h> exists even on freestanding compilers. */
32834 # include <limits.h>
32836 # include <assert.h>
32841 /* Override any GCC internal prototype to avoid an error.
32842 Use char because int might match the return type of a GCC
32843 builtin and then its argument prototype would still apply. */
32848 /* The GNU C library defines this for functions which it implements
32849 to always fail with ENOSYS. Some functions are actually named
32850 something starting with __ and the normal name is an alias. */
32851 #if defined __stub__doprnt || defined __stub____doprnt
32863 rm -f conftest.$ac_objext conftest$ac_exeext
32864 if { (ac_try="$ac_link"
32865 case "(($ac_try" in
32866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32867 *) ac_try_echo=$ac_try;;
32869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32870 (eval "$ac_link") 2>conftest.er1
32872 grep -v '^ *+' conftest.er1 >conftest.err
32874 cat conftest.err >&5
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); } && {
32877 test -z "$ac_c_werror_flag" ||
32878 test ! -s conftest.err
32879 } && test -s conftest$ac_exeext &&
32880 $as_test_x conftest$ac_exeext; then
32881 ac_cv_func__doprnt=yes
32883 echo "$as_me: failed program was:" >&5
32884 sed 's/^/| /' conftest.$ac_ext >&5
32886 ac_cv_func__doprnt=no
32889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32890 conftest$ac_exeext conftest.$ac_ext
32892 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
32893 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
32894 if test $ac_cv_func__doprnt = yes; then
32896 cat >>confdefs.h <<\_ACEOF
32897 #define HAVE_DOPRNT 1
32906 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32907 # for constant arguments. Useless!
32908 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32909 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32910 if test "${ac_cv_working_alloca_h+set}" = set; then
32911 echo $ECHO_N "(cached) $ECHO_C" >&6
32913 cat >conftest.$ac_ext <<_ACEOF
32916 cat confdefs.h >>conftest.$ac_ext
32917 cat >>conftest.$ac_ext <<_ACEOF
32918 /* end confdefs.h. */
32919 #include <alloca.h>
32923 char *p = (char *) alloca (2 * sizeof (int));
32929 rm -f conftest.$ac_objext conftest$ac_exeext
32930 if { (ac_try="$ac_link"
32931 case "(($ac_try" in
32932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933 *) ac_try_echo=$ac_try;;
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936 (eval "$ac_link") 2>conftest.er1
32938 grep -v '^ *+' conftest.er1 >conftest.err
32940 cat conftest.err >&5
32941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942 (exit $ac_status); } && {
32943 test -z "$ac_c_werror_flag" ||
32944 test ! -s conftest.err
32945 } && test -s conftest$ac_exeext &&
32946 $as_test_x conftest$ac_exeext; then
32947 ac_cv_working_alloca_h=yes
32949 echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32952 ac_cv_working_alloca_h=no
32955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32956 conftest$ac_exeext conftest.$ac_ext
32958 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32959 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32960 if test $ac_cv_working_alloca_h = yes; then
32962 cat >>confdefs.h <<\_ACEOF
32963 #define HAVE_ALLOCA_H 1
32968 { echo "$as_me:$LINENO: checking for alloca" >&5
32969 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32970 if test "${ac_cv_func_alloca_works+set}" = set; then
32971 echo $ECHO_N "(cached) $ECHO_C" >&6
32973 cat >conftest.$ac_ext <<_ACEOF
32976 cat confdefs.h >>conftest.$ac_ext
32977 cat >>conftest.$ac_ext <<_ACEOF
32978 /* end confdefs.h. */
32980 # define alloca __builtin_alloca
32983 # include <malloc.h>
32984 # define alloca _alloca
32986 # ifdef HAVE_ALLOCA_H
32987 # include <alloca.h>
32992 # ifndef alloca /* predefined by HP cc +Olibcalls */
33003 char *p = (char *) alloca (1);
33009 rm -f conftest.$ac_objext conftest$ac_exeext
33010 if { (ac_try="$ac_link"
33011 case "(($ac_try" in
33012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33013 *) ac_try_echo=$ac_try;;
33015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33016 (eval "$ac_link") 2>conftest.er1
33018 grep -v '^ *+' conftest.er1 >conftest.err
33020 cat conftest.err >&5
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); } && {
33023 test -z "$ac_c_werror_flag" ||
33024 test ! -s conftest.err
33025 } && test -s conftest$ac_exeext &&
33026 $as_test_x conftest$ac_exeext; then
33027 ac_cv_func_alloca_works=yes
33029 echo "$as_me: failed program was:" >&5
33030 sed 's/^/| /' conftest.$ac_ext >&5
33032 ac_cv_func_alloca_works=no
33035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33036 conftest$ac_exeext conftest.$ac_ext
33038 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
33039 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
33041 if test $ac_cv_func_alloca_works = yes; then
33043 cat >>confdefs.h <<\_ACEOF
33044 #define HAVE_ALLOCA 1
33048 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
33049 # that cause trouble. Some versions do not even contain alloca or
33050 # contain a buggy version. If you still want to use their alloca,
33051 # use ar to extract alloca.o from them instead of compiling alloca.c.
33053 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
33055 cat >>confdefs.h <<\_ACEOF
33060 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
33061 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
33062 if test "${ac_cv_os_cray+set}" = set; then
33063 echo $ECHO_N "(cached) $ECHO_C" >&6
33065 cat >conftest.$ac_ext <<_ACEOF
33068 cat confdefs.h >>conftest.$ac_ext
33069 cat >>conftest.$ac_ext <<_ACEOF
33070 /* end confdefs.h. */
33071 #if defined CRAY && ! defined CRAY2
33078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33079 $EGREP "webecray" >/dev/null 2>&1; then
33087 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
33088 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
33089 if test $ac_cv_os_cray = yes; then
33090 for ac_func in _getb67 GETB67 getb67; do
33091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33095 echo $ECHO_N "(cached) $ECHO_C" >&6
33097 cat >conftest.$ac_ext <<_ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h. */
33103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33105 #define $ac_func innocuous_$ac_func
33107 /* System header to define __stub macros and hopefully few prototypes,
33108 which can conflict with char $ac_func (); below.
33109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33110 <limits.h> exists even on freestanding compilers. */
33113 # include <limits.h>
33115 # include <assert.h>
33120 /* Override any GCC internal prototype to avoid an error.
33121 Use char because int might match the return type of a GCC
33122 builtin and then its argument prototype would still apply. */
33127 /* The GNU C library defines this for functions which it implements
33128 to always fail with ENOSYS. Some functions are actually named
33129 something starting with __ and the normal name is an alias. */
33130 #if defined __stub_$ac_func || defined __stub___$ac_func
33137 return $ac_func ();
33142 rm -f conftest.$ac_objext conftest$ac_exeext
33143 if { (ac_try="$ac_link"
33144 case "(($ac_try" in
33145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146 *) ac_try_echo=$ac_try;;
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149 (eval "$ac_link") 2>conftest.er1
33151 grep -v '^ *+' conftest.er1 >conftest.err
33153 cat conftest.err >&5
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); } && {
33156 test -z "$ac_c_werror_flag" ||
33157 test ! -s conftest.err
33158 } && test -s conftest$ac_exeext &&
33159 $as_test_x conftest$ac_exeext; then
33160 eval "$as_ac_var=yes"
33162 echo "$as_me: failed program was:" >&5
33163 sed 's/^/| /' conftest.$ac_ext >&5
33165 eval "$as_ac_var=no"
33168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33169 conftest$ac_exeext conftest.$ac_ext
33171 ac_res=`eval echo '${'$as_ac_var'}'`
33172 { echo "$as_me:$LINENO: result: $ac_res" >&5
33173 echo "${ECHO_T}$ac_res" >&6; }
33174 if test `eval echo '${'$as_ac_var'}'` = yes; then
33176 cat >>confdefs.h <<_ACEOF
33177 #define CRAY_STACKSEG_END $ac_func
33186 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33187 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33188 if test "${ac_cv_c_stack_direction+set}" = set; then
33189 echo $ECHO_N "(cached) $ECHO_C" >&6
33191 if test "$cross_compiling" = yes; then
33192 ac_cv_c_stack_direction=0
33194 cat >conftest.$ac_ext <<_ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h. */
33200 $ac_includes_default
33202 find_stack_direction ()
33204 static char *addr = 0;
33209 return find_stack_direction ();
33212 return (&dummy > addr) ? 1 : -1;
33218 return find_stack_direction () < 0;
33221 rm -f conftest$ac_exeext
33222 if { (ac_try="$ac_link"
33223 case "(($ac_try" in
33224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33225 *) ac_try_echo=$ac_try;;
33227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33228 (eval "$ac_link") 2>&5
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33232 { (case "(($ac_try" in
33233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234 *) ac_try_echo=$ac_try;;
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237 (eval "$ac_try") 2>&5
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); }; }; then
33241 ac_cv_c_stack_direction=1
33243 echo "$as_me: program exited with status $ac_status" >&5
33244 echo "$as_me: failed program was:" >&5
33245 sed 's/^/| /' conftest.$ac_ext >&5
33247 ( exit $ac_status )
33248 ac_cv_c_stack_direction=-1
33250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33255 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33256 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33258 cat >>confdefs.h <<_ACEOF
33259 #define STACK_DIRECTION $ac_cv_c_stack_direction
33265 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
33266 # -lseq on Dynix/PTX, -lgen on Unixware.
33267 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
33268 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
33269 if test "${ac_cv_search_getmntent+set}" = set; then
33270 echo $ECHO_N "(cached) $ECHO_C" >&6
33272 ac_func_search_save_LIBS=$LIBS
33273 cat >conftest.$ac_ext <<_ACEOF
33276 cat confdefs.h >>conftest.$ac_ext
33277 cat >>conftest.$ac_ext <<_ACEOF
33278 /* end confdefs.h. */
33280 /* Override any GCC internal prototype to avoid an error.
33281 Use char because int might match the return type of a GCC
33282 builtin and then its argument prototype would still apply. */
33290 return getmntent ();
33295 for ac_lib in '' sun seq gen; do
33296 if test -z "$ac_lib"; then
33297 ac_res="none required"
33300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33302 rm -f conftest.$ac_objext conftest$ac_exeext
33303 if { (ac_try="$ac_link"
33304 case "(($ac_try" in
33305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33306 *) ac_try_echo=$ac_try;;
33308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309 (eval "$ac_link") 2>conftest.er1
33311 grep -v '^ *+' conftest.er1 >conftest.err
33313 cat conftest.err >&5
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); } && {
33316 test -z "$ac_c_werror_flag" ||
33317 test ! -s conftest.err
33318 } && test -s conftest$ac_exeext &&
33319 $as_test_x conftest$ac_exeext; then
33320 ac_cv_search_getmntent=$ac_res
33322 echo "$as_me: failed program was:" >&5
33323 sed 's/^/| /' conftest.$ac_ext >&5
33328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33330 if test "${ac_cv_search_getmntent+set}" = set; then
33334 if test "${ac_cv_search_getmntent+set}" = set; then
33337 ac_cv_search_getmntent=no
33339 rm conftest.$ac_ext
33340 LIBS=$ac_func_search_save_LIBS
33342 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
33343 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
33344 ac_res=$ac_cv_search_getmntent
33345 if test "$ac_res" != no; then
33346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33347 ac_cv_func_getmntent=yes
33349 cat >>confdefs.h <<\_ACEOF
33350 #define HAVE_GETMNTENT 1
33354 ac_cv_func_getmntent=no
33358 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
33359 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
33360 if test "${ac_cv_func_closedir_void+set}" = set; then
33361 echo $ECHO_N "(cached) $ECHO_C" >&6
33363 if test "$cross_compiling" = yes; then
33364 ac_cv_func_closedir_void=yes
33366 cat >conftest.$ac_ext <<_ACEOF
33369 cat confdefs.h >>conftest.$ac_ext
33370 cat >>conftest.$ac_ext <<_ACEOF
33371 /* end confdefs.h. */
33372 $ac_includes_default
33373 #include <$ac_header_dirent>
33374 #ifndef __cplusplus
33381 return closedir (opendir (".")) != 0;
33386 rm -f conftest$ac_exeext
33387 if { (ac_try="$ac_link"
33388 case "(($ac_try" in
33389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390 *) ac_try_echo=$ac_try;;
33392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393 (eval "$ac_link") 2>&5
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33397 { (case "(($ac_try" in
33398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33399 *) ac_try_echo=$ac_try;;
33401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33402 (eval "$ac_try") 2>&5
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); }; }; then
33406 ac_cv_func_closedir_void=no
33408 echo "$as_me: program exited with status $ac_status" >&5
33409 echo "$as_me: failed program was:" >&5
33410 sed 's/^/| /' conftest.$ac_ext >&5
33412 ( exit $ac_status )
33413 ac_cv_func_closedir_void=yes
33415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33420 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
33421 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
33422 if test $ac_cv_func_closedir_void = yes; then
33424 cat >>confdefs.h <<\_ACEOF
33425 #define CLOSEDIR_VOID 1
33430 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
33431 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
33432 if test "${ac_cv_func_setpgrp_void+set}" = set; then
33433 echo $ECHO_N "(cached) $ECHO_C" >&6
33435 if test "$cross_compiling" = yes; then
33436 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
33437 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
33438 { (exit 1); exit 1; }; }
33440 cat >conftest.$ac_ext <<_ACEOF
33443 cat confdefs.h >>conftest.$ac_ext
33444 cat >>conftest.$ac_ext <<_ACEOF
33445 /* end confdefs.h. */
33446 $ac_includes_default
33450 /* If this system has a BSD-style setpgrp which takes arguments,
33451 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
33452 exit successfully. */
33453 return setpgrp (1,1) != -1;
33458 rm -f conftest$ac_exeext
33459 if { (ac_try="$ac_link"
33460 case "(($ac_try" in
33461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33462 *) ac_try_echo=$ac_try;;
33464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33465 (eval "$ac_link") 2>&5
33467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33469 { (case "(($ac_try" in
33470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33471 *) ac_try_echo=$ac_try;;
33473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33474 (eval "$ac_try") 2>&5
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); }; }; then
33478 ac_cv_func_setpgrp_void=no
33480 echo "$as_me: program exited with status $ac_status" >&5
33481 echo "$as_me: failed program was:" >&5
33482 sed 's/^/| /' conftest.$ac_ext >&5
33484 ( exit $ac_status )
33485 ac_cv_func_setpgrp_void=yes
33487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33492 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
33493 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
33494 if test $ac_cv_func_setpgrp_void = yes; then
33496 cat >>confdefs.h <<\_ACEOF
33497 #define SETPGRP_VOID 1
33501 # AC_FUNC_FNMATCH dnl use local version
33504 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
33505 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
33506 if test "${ac_cv_lib_intl_gettext+set}" = set; then
33507 echo $ECHO_N "(cached) $ECHO_C" >&6
33509 ac_check_lib_save_LIBS=$LIBS
33510 LIBS="-lintl $LIBS"
33511 cat >conftest.$ac_ext <<_ACEOF
33514 cat confdefs.h >>conftest.$ac_ext
33515 cat >>conftest.$ac_ext <<_ACEOF
33516 /* end confdefs.h. */
33518 /* Override any GCC internal prototype to avoid an error.
33519 Use char because int might match the return type of a GCC
33520 builtin and then its argument prototype would still apply. */
33533 rm -f conftest.$ac_objext conftest$ac_exeext
33534 if { (ac_try="$ac_link"
33535 case "(($ac_try" in
33536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537 *) ac_try_echo=$ac_try;;
33539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540 (eval "$ac_link") 2>conftest.er1
33542 grep -v '^ *+' conftest.er1 >conftest.err
33544 cat conftest.err >&5
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); } && {
33547 test -z "$ac_c_werror_flag" ||
33548 test ! -s conftest.err
33549 } && test -s conftest$ac_exeext &&
33550 $as_test_x conftest$ac_exeext; then
33551 ac_cv_lib_intl_gettext=yes
33553 echo "$as_me: failed program was:" >&5
33554 sed 's/^/| /' conftest.$ac_ext >&5
33556 ac_cv_lib_intl_gettext=no
33559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33560 conftest$ac_exeext conftest.$ac_ext
33561 LIBS=$ac_check_lib_save_LIBS
33563 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
33564 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
33565 if test $ac_cv_lib_intl_gettext = yes; then
33566 LIBS="$LIBS -lintl"
33572 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
33573 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
33574 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
33575 echo $ECHO_N "(cached) $ECHO_C" >&6
33577 ac_check_lib_save_LIBS=$LIBS
33579 cat >conftest.$ac_ext <<_ACEOF
33582 cat confdefs.h >>conftest.$ac_ext
33583 cat >>conftest.$ac_ext <<_ACEOF
33584 /* end confdefs.h. */
33586 /* Override any GCC internal prototype to avoid an error.
33587 Use char because int might match the return type of a GCC
33588 builtin and then its argument prototype would still apply. */
33596 return getpwnam ();
33601 rm -f conftest.$ac_objext conftest$ac_exeext
33602 if { (ac_try="$ac_link"
33603 case "(($ac_try" in
33604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605 *) ac_try_echo=$ac_try;;
33607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608 (eval "$ac_link") 2>conftest.er1
33610 grep -v '^ *+' conftest.er1 >conftest.err
33612 cat conftest.err >&5
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); } && {
33615 test -z "$ac_c_werror_flag" ||
33616 test ! -s conftest.err
33617 } && test -s conftest$ac_exeext &&
33618 $as_test_x conftest$ac_exeext; then
33619 ac_cv_lib_sun_getpwnam=yes
33621 echo "$as_me: failed program was:" >&5
33622 sed 's/^/| /' conftest.$ac_ext >&5
33624 ac_cv_lib_sun_getpwnam=no
33627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33628 conftest$ac_exeext conftest.$ac_ext
33629 LIBS=$ac_check_lib_save_LIBS
33631 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
33632 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
33633 if test $ac_cv_lib_sun_getpwnam = yes; then
33634 cat >>confdefs.h <<_ACEOF
33635 #define HAVE_LIBSUN 1
33644 for ac_header in zlib.h
33646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33651 echo $ECHO_N "(cached) $ECHO_C" >&6
33653 ac_res=`eval echo '${'$as_ac_Header'}'`
33654 { echo "$as_me:$LINENO: result: $ac_res" >&5
33655 echo "${ECHO_T}$ac_res" >&6; }
33657 # Is the header compilable?
33658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33660 cat >conftest.$ac_ext <<_ACEOF
33663 cat confdefs.h >>conftest.$ac_ext
33664 cat >>conftest.$ac_ext <<_ACEOF
33665 /* end confdefs.h. */
33666 $ac_includes_default
33667 #include <$ac_header>
33669 rm -f conftest.$ac_objext
33670 if { (ac_try="$ac_compile"
33671 case "(($ac_try" in
33672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673 *) ac_try_echo=$ac_try;;
33675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676 (eval "$ac_compile") 2>conftest.er1
33678 grep -v '^ *+' conftest.er1 >conftest.err
33680 cat conftest.err >&5
33681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682 (exit $ac_status); } && {
33683 test -z "$ac_c_werror_flag" ||
33684 test ! -s conftest.err
33685 } && test -s conftest.$ac_objext; then
33686 ac_header_compiler=yes
33688 echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33691 ac_header_compiler=no
33694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33696 echo "${ECHO_T}$ac_header_compiler" >&6; }
33698 # Is the header present?
33699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33701 cat >conftest.$ac_ext <<_ACEOF
33704 cat confdefs.h >>conftest.$ac_ext
33705 cat >>conftest.$ac_ext <<_ACEOF
33706 /* end confdefs.h. */
33707 #include <$ac_header>
33709 if { (ac_try="$ac_cpp conftest.$ac_ext"
33710 case "(($ac_try" in
33711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33712 *) ac_try_echo=$ac_try;;
33714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33717 grep -v '^ *+' conftest.er1 >conftest.err
33719 cat conftest.err >&5
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); } >/dev/null && {
33722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33723 test ! -s conftest.err
33725 ac_header_preproc=yes
33727 echo "$as_me: failed program was:" >&5
33728 sed 's/^/| /' conftest.$ac_ext >&5
33730 ac_header_preproc=no
33733 rm -f conftest.err conftest.$ac_ext
33734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33735 echo "${ECHO_T}$ac_header_preproc" >&6; }
33737 # So? What about this header?
33738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33744 ac_header_preproc=yes
33747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33765 echo $ECHO_N "(cached) $ECHO_C" >&6
33767 eval "$as_ac_Header=\$ac_header_preproc"
33769 ac_res=`eval echo '${'$as_ac_Header'}'`
33770 { echo "$as_me:$LINENO: result: $ac_res" >&5
33771 echo "${ECHO_T}$ac_res" >&6; }
33774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33775 cat >>confdefs.h <<_ACEOF
33776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33783 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33784 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33785 if test "${ac_cv_lib_z_deflate+set}" = set; then
33786 echo $ECHO_N "(cached) $ECHO_C" >&6
33788 ac_check_lib_save_LIBS=$LIBS
33790 cat >conftest.$ac_ext <<_ACEOF
33793 cat confdefs.h >>conftest.$ac_ext
33794 cat >>conftest.$ac_ext <<_ACEOF
33795 /* end confdefs.h. */
33797 /* Override any GCC internal prototype to avoid an error.
33798 Use char because int might match the return type of a GCC
33799 builtin and then its argument prototype would still apply. */
33812 rm -f conftest.$ac_objext conftest$ac_exeext
33813 if { (ac_try="$ac_link"
33814 case "(($ac_try" in
33815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33816 *) ac_try_echo=$ac_try;;
33818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33819 (eval "$ac_link") 2>conftest.er1
33821 grep -v '^ *+' conftest.er1 >conftest.err
33823 cat conftest.err >&5
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); } && {
33826 test -z "$ac_c_werror_flag" ||
33827 test ! -s conftest.err
33828 } && test -s conftest$ac_exeext &&
33829 $as_test_x conftest$ac_exeext; then
33830 ac_cv_lib_z_deflate=yes
33832 echo "$as_me: failed program was:" >&5
33833 sed 's/^/| /' conftest.$ac_ext >&5
33835 ac_cv_lib_z_deflate=no
33838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33839 conftest$ac_exeext conftest.$ac_ext
33840 LIBS=$ac_check_lib_save_LIBS
33842 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33843 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33844 if test $ac_cv_lib_z_deflate = yes; then
33849 if test x$FDLIBS = x-lz; then
33850 cat >>confdefs.h <<\_ACEOF
33851 #define HAVE_LIBZ 1
33858 # Check for ACL libraries
33861 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33862 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33863 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33864 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33865 echo $ECHO_N "(cached) $ECHO_C" >&6
33867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33868 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33870 # Is the header compilable?
33871 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33872 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33873 cat >conftest.$ac_ext <<_ACEOF
33876 cat confdefs.h >>conftest.$ac_ext
33877 cat >>conftest.$ac_ext <<_ACEOF
33878 /* end confdefs.h. */
33879 $ac_includes_default
33880 #include <sys/acl.h>
33882 rm -f conftest.$ac_objext
33883 if { (ac_try="$ac_compile"
33884 case "(($ac_try" in
33885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886 *) ac_try_echo=$ac_try;;
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889 (eval "$ac_compile") 2>conftest.er1
33891 grep -v '^ *+' conftest.er1 >conftest.err
33893 cat conftest.err >&5
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); } && {
33896 test -z "$ac_c_werror_flag" ||
33897 test ! -s conftest.err
33898 } && test -s conftest.$ac_objext; then
33899 ac_header_compiler=yes
33901 echo "$as_me: failed program was:" >&5
33902 sed 's/^/| /' conftest.$ac_ext >&5
33904 ac_header_compiler=no
33907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33909 echo "${ECHO_T}$ac_header_compiler" >&6; }
33911 # Is the header present?
33912 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33913 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33914 cat >conftest.$ac_ext <<_ACEOF
33917 cat confdefs.h >>conftest.$ac_ext
33918 cat >>conftest.$ac_ext <<_ACEOF
33919 /* end confdefs.h. */
33920 #include <sys/acl.h>
33922 if { (ac_try="$ac_cpp conftest.$ac_ext"
33923 case "(($ac_try" in
33924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33925 *) ac_try_echo=$ac_try;;
33927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33930 grep -v '^ *+' conftest.er1 >conftest.err
33932 cat conftest.err >&5
33933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934 (exit $ac_status); } >/dev/null && {
33935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33936 test ! -s conftest.err
33938 ac_header_preproc=yes
33940 echo "$as_me: failed program was:" >&5
33941 sed 's/^/| /' conftest.$ac_ext >&5
33943 ac_header_preproc=no
33946 rm -f conftest.err conftest.$ac_ext
33947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33948 echo "${ECHO_T}$ac_header_preproc" >&6; }
33950 # So? What about this header?
33951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33953 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33954 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33955 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33956 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33957 ac_header_preproc=yes
33960 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33961 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33962 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
33963 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
33964 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33965 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33966 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
33967 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33968 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33969 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33970 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33971 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33975 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33976 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33977 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33978 echo $ECHO_N "(cached) $ECHO_C" >&6
33980 ac_cv_header_sys_acl_h=$ac_header_preproc
33982 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33983 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33988 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33989 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33990 if test "${ac_cv_func_acl_get_file+set}" = set; then
33991 echo $ECHO_N "(cached) $ECHO_C" >&6
33993 cat >conftest.$ac_ext <<_ACEOF
33996 cat confdefs.h >>conftest.$ac_ext
33997 cat >>conftest.$ac_ext <<_ACEOF
33998 /* end confdefs.h. */
33999 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
34000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34001 #define acl_get_file innocuous_acl_get_file
34003 /* System header to define __stub macros and hopefully few prototypes,
34004 which can conflict with char acl_get_file (); below.
34005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34006 <limits.h> exists even on freestanding compilers. */
34009 # include <limits.h>
34011 # include <assert.h>
34014 #undef acl_get_file
34016 /* Override any GCC internal prototype to avoid an error.
34017 Use char because int might match the return type of a GCC
34018 builtin and then its argument prototype would still apply. */
34022 char acl_get_file ();
34023 /* The GNU C library defines this for functions which it implements
34024 to always fail with ENOSYS. Some functions are actually named
34025 something starting with __ and the normal name is an alias. */
34026 #if defined __stub_acl_get_file || defined __stub___acl_get_file
34033 return acl_get_file ();
34038 rm -f conftest.$ac_objext conftest$ac_exeext
34039 if { (ac_try="$ac_link"
34040 case "(($ac_try" in
34041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34042 *) ac_try_echo=$ac_try;;
34044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34045 (eval "$ac_link") 2>conftest.er1
34047 grep -v '^ *+' conftest.er1 >conftest.err
34049 cat conftest.err >&5
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); } && {
34052 test -z "$ac_c_werror_flag" ||
34053 test ! -s conftest.err
34054 } && test -s conftest$ac_exeext &&
34055 $as_test_x conftest$ac_exeext; then
34056 ac_cv_func_acl_get_file=yes
34058 echo "$as_me: failed program was:" >&5
34059 sed 's/^/| /' conftest.$ac_ext >&5
34061 ac_cv_func_acl_get_file=no
34064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34065 conftest$ac_exeext conftest.$ac_ext
34067 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
34068 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
34069 if test $ac_cv_func_acl_get_file = yes; then
34072 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
34073 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
34074 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
34075 echo $ECHO_N "(cached) $ECHO_C" >&6
34077 ac_check_lib_save_LIBS=$LIBS
34079 cat >conftest.$ac_ext <<_ACEOF
34082 cat confdefs.h >>conftest.$ac_ext
34083 cat >>conftest.$ac_ext <<_ACEOF
34084 /* end confdefs.h. */
34086 /* Override any GCC internal prototype to avoid an error.
34087 Use char because int might match the return type of a GCC
34088 builtin and then its argument prototype would still apply. */
34092 char acl_get_file ();
34096 return acl_get_file ();
34101 rm -f conftest.$ac_objext conftest$ac_exeext
34102 if { (ac_try="$ac_link"
34103 case "(($ac_try" in
34104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34105 *) ac_try_echo=$ac_try;;
34107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34108 (eval "$ac_link") 2>conftest.er1
34110 grep -v '^ *+' conftest.er1 >conftest.err
34112 cat conftest.err >&5
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); } && {
34115 test -z "$ac_c_werror_flag" ||
34116 test ! -s conftest.err
34117 } && test -s conftest$ac_exeext &&
34118 $as_test_x conftest$ac_exeext; then
34119 ac_cv_lib_acl_acl_get_file=yes
34121 echo "$as_me: failed program was:" >&5
34122 sed 's/^/| /' conftest.$ac_ext >&5
34124 ac_cv_lib_acl_acl_get_file=no
34127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34128 conftest$ac_exeext conftest.$ac_ext
34129 LIBS=$ac_check_lib_save_LIBS
34131 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
34132 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
34133 if test $ac_cv_lib_acl_acl_get_file = yes; then
34134 have_acl=yes; FDLIBS="-lacl $FDLIBS"
34136 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
34137 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
34138 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
34139 echo $ECHO_N "(cached) $ECHO_C" >&6
34141 ac_check_lib_save_LIBS=$LIBS
34143 cat >conftest.$ac_ext <<_ACEOF
34146 cat confdefs.h >>conftest.$ac_ext
34147 cat >>conftest.$ac_ext <<_ACEOF
34148 /* end confdefs.h. */
34150 /* Override any GCC internal prototype to avoid an error.
34151 Use char because int might match the return type of a GCC
34152 builtin and then its argument prototype would still apply. */
34160 return acltotext ();
34165 rm -f conftest.$ac_objext conftest$ac_exeext
34166 if { (ac_try="$ac_link"
34167 case "(($ac_try" in
34168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34169 *) ac_try_echo=$ac_try;;
34171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34172 (eval "$ac_link") 2>conftest.er1
34174 grep -v '^ *+' conftest.er1 >conftest.err
34176 cat conftest.err >&5
34177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34178 (exit $ac_status); } && {
34179 test -z "$ac_c_werror_flag" ||
34180 test ! -s conftest.err
34181 } && test -s conftest$ac_exeext &&
34182 $as_test_x conftest$ac_exeext; then
34183 ac_cv_lib_sec_acltotext=yes
34185 echo "$as_me: failed program was:" >&5
34186 sed 's/^/| /' conftest.$ac_ext >&5
34188 ac_cv_lib_sec_acltotext=no
34191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34192 conftest$ac_exeext conftest.$ac_ext
34193 LIBS=$ac_check_lib_save_LIBS
34195 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
34196 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
34197 if test $ac_cv_lib_sec_acltotext = yes; then
34198 have_acl=yes; FDLIBS="-lsec $FDLIBS"
34207 if test $have_acl = yes; then
34208 cat >>confdefs.h <<\_ACEOF
34215 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
34216 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
34217 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
34218 echo $ECHO_N "(cached) $ECHO_C" >&6
34220 ac_check_lib_save_LIBS=$LIBS
34221 LIBS="-lpthread $LIBS"
34222 cat >conftest.$ac_ext <<_ACEOF
34225 cat confdefs.h >>conftest.$ac_ext
34226 cat >>conftest.$ac_ext <<_ACEOF
34227 /* end confdefs.h. */
34229 /* Override any GCC internal prototype to avoid an error.
34230 Use char because int might match the return type of a GCC
34231 builtin and then its argument prototype would still apply. */
34235 char pthread_create ();
34239 return pthread_create ();
34244 rm -f conftest.$ac_objext conftest$ac_exeext
34245 if { (ac_try="$ac_link"
34246 case "(($ac_try" in
34247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34248 *) ac_try_echo=$ac_try;;
34250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34251 (eval "$ac_link") 2>conftest.er1
34253 grep -v '^ *+' conftest.er1 >conftest.err
34255 cat conftest.err >&5
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); } && {
34258 test -z "$ac_c_werror_flag" ||
34259 test ! -s conftest.err
34260 } && test -s conftest$ac_exeext &&
34261 $as_test_x conftest$ac_exeext; then
34262 ac_cv_lib_pthread_pthread_create=yes
34264 echo "$as_me: failed program was:" >&5
34265 sed 's/^/| /' conftest.$ac_ext >&5
34267 ac_cv_lib_pthread_pthread_create=no
34270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34271 conftest$ac_exeext conftest.$ac_ext
34272 LIBS=$ac_check_lib_save_LIBS
34274 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
34275 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
34276 if test $ac_cv_lib_pthread_pthread_create = yes; then
34277 PTHREAD_LIB="-lpthread"
34279 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
34280 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
34281 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
34282 echo $ECHO_N "(cached) $ECHO_C" >&6
34284 ac_check_lib_save_LIBS=$LIBS
34285 LIBS="-lpthreads $LIBS"
34286 cat >conftest.$ac_ext <<_ACEOF
34289 cat confdefs.h >>conftest.$ac_ext
34290 cat >>conftest.$ac_ext <<_ACEOF
34291 /* end confdefs.h. */
34293 /* Override any GCC internal prototype to avoid an error.
34294 Use char because int might match the return type of a GCC
34295 builtin and then its argument prototype would still apply. */
34299 char pthread_create ();
34303 return pthread_create ();
34308 rm -f conftest.$ac_objext conftest$ac_exeext
34309 if { (ac_try="$ac_link"
34310 case "(($ac_try" in
34311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34312 *) ac_try_echo=$ac_try;;
34314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34315 (eval "$ac_link") 2>conftest.er1
34317 grep -v '^ *+' conftest.er1 >conftest.err
34319 cat conftest.err >&5
34320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 (exit $ac_status); } && {
34322 test -z "$ac_c_werror_flag" ||
34323 test ! -s conftest.err
34324 } && test -s conftest$ac_exeext &&
34325 $as_test_x conftest$ac_exeext; then
34326 ac_cv_lib_pthreads_pthread_create=yes
34328 echo "$as_me: failed program was:" >&5
34329 sed 's/^/| /' conftest.$ac_ext >&5
34331 ac_cv_lib_pthreads_pthread_create=no
34334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34335 conftest$ac_exeext conftest.$ac_ext
34336 LIBS=$ac_check_lib_save_LIBS
34338 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
34339 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
34340 if test $ac_cv_lib_pthreads_pthread_create = yes; then
34341 PTHREAD_LIB="-lpthreads"
34343 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
34344 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
34345 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
34346 echo $ECHO_N "(cached) $ECHO_C" >&6
34348 ac_check_lib_save_LIBS=$LIBS
34350 cat >conftest.$ac_ext <<_ACEOF
34353 cat confdefs.h >>conftest.$ac_ext
34354 cat >>conftest.$ac_ext <<_ACEOF
34355 /* end confdefs.h. */
34357 /* Override any GCC internal prototype to avoid an error.
34358 Use char because int might match the return type of a GCC
34359 builtin and then its argument prototype would still apply. */
34363 char pthread_create ();
34367 return pthread_create ();
34372 rm -f conftest.$ac_objext conftest$ac_exeext
34373 if { (ac_try="$ac_link"
34374 case "(($ac_try" in
34375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34376 *) ac_try_echo=$ac_try;;
34378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34379 (eval "$ac_link") 2>conftest.er1
34381 grep -v '^ *+' conftest.er1 >conftest.err
34383 cat conftest.err >&5
34384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385 (exit $ac_status); } && {
34386 test -z "$ac_c_werror_flag" ||
34387 test ! -s conftest.err
34388 } && test -s conftest$ac_exeext &&
34389 $as_test_x conftest$ac_exeext; then
34390 ac_cv_lib_c_r_pthread_create=yes
34392 echo "$as_me: failed program was:" >&5
34393 sed 's/^/| /' conftest.$ac_ext >&5
34395 ac_cv_lib_c_r_pthread_create=no
34398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34399 conftest$ac_exeext conftest.$ac_ext
34400 LIBS=$ac_check_lib_save_LIBS
34402 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
34403 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
34404 if test $ac_cv_lib_c_r_pthread_create = yes; then
34405 PTHREAD_LIB="-lc_r"
34407 { echo "$as_me:$LINENO: checking for pthread_create" >&5
34408 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
34409 if test "${ac_cv_func_pthread_create+set}" = set; then
34410 echo $ECHO_N "(cached) $ECHO_C" >&6
34412 cat >conftest.$ac_ext <<_ACEOF
34415 cat confdefs.h >>conftest.$ac_ext
34416 cat >>conftest.$ac_ext <<_ACEOF
34417 /* end confdefs.h. */
34418 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
34419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34420 #define pthread_create innocuous_pthread_create
34422 /* System header to define __stub macros and hopefully few prototypes,
34423 which can conflict with char pthread_create (); below.
34424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34425 <limits.h> exists even on freestanding compilers. */
34428 # include <limits.h>
34430 # include <assert.h>
34433 #undef pthread_create
34435 /* Override any GCC internal prototype to avoid an error.
34436 Use char because int might match the return type of a GCC
34437 builtin and then its argument prototype would still apply. */
34441 char pthread_create ();
34442 /* The GNU C library defines this for functions which it implements
34443 to always fail with ENOSYS. Some functions are actually named
34444 something starting with __ and the normal name is an alias. */
34445 #if defined __stub_pthread_create || defined __stub___pthread_create
34452 return pthread_create ();
34457 rm -f conftest.$ac_objext conftest$ac_exeext
34458 if { (ac_try="$ac_link"
34459 case "(($ac_try" in
34460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34461 *) ac_try_echo=$ac_try;;
34463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34464 (eval "$ac_link") 2>conftest.er1
34466 grep -v '^ *+' conftest.er1 >conftest.err
34468 cat conftest.err >&5
34469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470 (exit $ac_status); } && {
34471 test -z "$ac_c_werror_flag" ||
34472 test ! -s conftest.err
34473 } && test -s conftest$ac_exeext &&
34474 $as_test_x conftest$ac_exeext; then
34475 ac_cv_func_pthread_create=yes
34477 echo "$as_me: failed program was:" >&5
34478 sed 's/^/| /' conftest.$ac_ext >&5
34480 ac_cv_func_pthread_create=no
34483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34484 conftest$ac_exeext conftest.$ac_ext
34486 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
34487 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
34500 cat >>confdefs.h <<\_ACEOF
34506 CFLAGS=${CFLAGS--O}
34508 if test x$have_gcc = xyes ; then
34509 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34510 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34512 LDFLAGS=${LDFLAGS--O}
34513 DB_LIBS="${SQL_LFLAGS}"
34514 CPPFLAGS="$CPPFLAGS"
34542 # Finally we set appropriate distribution specific
34543 # variables and defaults
34545 # PFILES are platform specific files
34546 PFILES="platforms/Makefile"
34550 hostname=`uname -n | cut -d '.' -f 1`
34551 if test x${hostname} = x ; then
34552 hostname="localhost"
34554 case "$DISTNAME" in
34557 PSCMD="ps -e -o pid,comm"
34558 PFILES="${PFILES} \
34559 platforms/aix/Makefile"
34560 TAPEDRIVE="/dev/rmt0.1"
34564 PTHREAD_LIB="-lpthread -lexc"
34565 if test "${CC}" = "gcc" ; then
34572 TAPEDRIVE="/dev/nrmt0"
34575 DISTVER=`uname -a |awk '{print $3}'`
34576 TAPEDRIVE="/dev/nrmt0"
34577 PTHREAD_LIB="-pthread"
34578 CFLAGS="${CFLAGS} -pthread"
34579 PSCMD="ps -ax -o pid,command"
34582 PFILES="${PFILES} \
34583 platforms/bsdi/Makefile \
34584 platforms/bsdi/bacula-fd \
34585 platforms/bsdi/bacula-sd \
34586 platforms/bsdi/bacula-dir"
34587 largefile_support="yes"
34590 DISTVER=`uname -a |awk '{print $3}'`
34591 TAPEDRIVE="/dev/nrst0"
34593 WCFLAGS="-mwindows"
34594 WLDFLAGS="-mwindows"
34598 TAPEDRIVE="/dev/nst0"
34599 PSCMD="ps -e -o pid,command"
34601 PFILES="${PFILES} \
34602 platforms/darwin/Makefile"
34605 if `grep -q ubuntu /etc/apt/sources.list`; then
34608 DISTVER=`cat /etc/debian_version`
34609 if test -f /etc/lsb-release ; then
34611 if test "x$DISTRIB_ID" != "x" ; then
34612 DISTNAME=$DISTRIB_ID
34614 if test "x$DISTRIB_RELEASE" != "x" ; then
34615 DISTVER=$DISTRIB_RELEASE
34618 if test "$DISTNAME" = "Ubuntu" ; then
34621 TAPEDRIVE="/dev/nst0"
34622 PSCMD="ps -e -o pid,command"
34623 if test "$DISTNAME" = "ubuntu" ; then
34624 PFILES="${PFILES} \
34625 platforms/ubuntu/Makefile \
34626 platforms/ubuntu/bacula-fd \
34627 platforms/ubuntu/bacula-sd \
34628 platforms/ubuntu/bacula-dir"
34630 PFILES="${PFILES} \
34631 platforms/debian/Makefile \
34632 platforms/debian/bacula-fd \
34633 platforms/debian/bacula-sd \
34634 platforms/debian/bacula-dir"
34638 DISTVER=`uname -a |awk '{print $3}'`
34639 VER=`echo $DISTVER | cut -c 1`
34640 if test x$VER = x4 ; then
34641 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
34642 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34646 TAPEDRIVE="/dev/nrsa0"
34647 PSCMD="ps -ax -o pid,command"
34648 PFILES="${PFILES} \
34649 platforms/freebsd/Makefile \
34650 platforms/freebsd/bacula-fd \
34651 platforms/freebsd/bacula-sd \
34652 platforms/freebsd/bacula-dir"
34653 largefile_support="yes"
34656 PSCMD="UNIX95=1; ps -e -o pid,comm"
34657 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34659 TAPEDRIVE="/dev/rmt/0hnb"
34660 PTHREAD_LIB="-lpthread"
34661 cat >>confdefs.h <<\_ACEOF
34662 #define _INCLUDE_LONGLONG 1
34668 TAPEDRIVE="/dev/rmt/0cbn"
34669 PSCMD="ps -e -o pid,comm"
34670 PFILES="${PFILES} \
34671 platforms/irix/Makefile \
34672 platforms/irix/bacula-fd \
34673 platforms/irix/bacula-sd \
34674 platforms/irix/bacula-dir"
34677 DISTVER=`uname -a |awk '{print $3}'`
34680 TAPEDRIVE="/dev/nrst0"
34681 PSCMD="ps -ax -o pid,command"
34682 PTHREAD_LIB="-pthread"
34683 CFLAGS="${CFLAGS} -pthread"
34686 DISTVER=`uname -a |awk '{print $3}'`
34689 TAPEDRIVE="/dev/nrst0"
34690 PSCMD="ps -ax -o pid,command"
34691 PTHREAD_LIB="-pthread"
34692 CFLAGS="${CFLAGS} -pthread"
34693 PFILES="${PFILES} \
34694 platforms/openbsd/Makefile \
34695 platforms/openbsd/bacula-fd \
34696 platforms/openbsd/bacula-sd \
34697 platforms/openbsd/bacula-dir"
34700 if test -f /etc/whitebox-release ; then
34701 f=/etc/whitebox-release
34703 f=/etc/redhat-release
34705 if test `cat $f | grep release |\
34706 cut -f 3 -d ' '`x = "Enterprise"x ; then
34707 DISTVER="Enterprise "`cat $f | grep release |\
34710 DISTVER=`cat /etc/redhat-release | grep release |\
34713 TAPEDRIVE="/dev/nst0"
34714 PSCMD="ps -e -o pid,command"
34715 PFILES="${PFILES} \
34716 platforms/redhat/Makefile \
34717 platforms/redhat/bacula-fd \
34718 platforms/redhat/bacula-sd \
34719 platforms/redhat/bacula-dir \
34720 platforms/redhat/bacula.spec \
34724 DISTVER=`cat /etc/mandrake-release | grep release |\
34726 TAPEDRIVE="/dev/nst0"
34727 PSCMD="ps -e -o pid,command"
34728 PFILES="${PFILES} \
34729 platforms/mandrake/Makefile \
34730 platforms/mandrake/bacula-fd \
34731 platforms/mandrake/bacula-sd \
34732 platforms/mandrake/bacula-dir \
34733 platforms/mandrake/bacula.spec \
34737 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34738 TAPEDRIVE="/dev/nst0"
34739 PSCMD="ps -e -o pid,command"
34740 PFILES="${PFILES} \
34741 platforms/gentoo/Makefile \
34742 platforms/gentoo/bacula-init \
34743 platforms/gentoo/bacula-fd \
34744 platforms/gentoo/bacula-sd \
34745 platforms/gentoo/bacula-dir"
34748 DISTVER=`cat /etc/slackware-version`
34749 TAPEDRIVE="/dev/nst0"
34750 PSCMD="ps -e -o pid,command"
34751 PFILES="${PFILES} \
34752 platforms/slackware/Makefile \
34753 platforms/slackware/rc.bacula-fd \
34754 platforms/slackware/rc.bacula-sd \
34755 platforms/slackware/rc.bacula-dir\
34756 platforms/slackware/functions.bacula"
34760 TAPEDRIVE="/dev/rmt/0cbn"
34761 PSCMD="ps -e -o pid,comm"
34762 PFILES="${PFILES} \
34763 platforms/solaris/Makefile \
34764 platforms/solaris/bacula-fd \
34765 platforms/solaris/bacula-sd \
34766 platforms/solaris/bacula-dir"
34767 if test x$DISTVER = x5.6 ; then
34768 cat >>confdefs.h <<\_ACEOF
34769 #define HAVE_OLD_SOCKOPT 1
34773 LIBS="$LIBS -lresolv"
34776 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34778 TAPEDRIVE="/dev/nst0"
34779 PSCMD="ps -e -o pid,command"
34780 PFILES="${PFILES} \
34781 platforms/suse/Makefile \
34782 platforms/suse/bacula-fd \
34783 platforms/suse/bacula-sd \
34784 platforms/suse/bacula-dir \
34785 platforms/suse/bacula \
34786 platforms/suse/bacula.spec"
34791 TAPEDRIVE="/dev/nst0"
34792 PSCMD="ps -e -o pid,command"
34793 PFILES="${PFILES} \
34794 platforms/suse/Makefile \
34795 platforms/suse/bacula-fd \
34796 platforms/suse/bacula-sd \
34797 platforms/suse/bacula-dir"
34801 TAPEDRIVE="/dev/nst0"
34804 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34810 LIBS="$PTHREAD_LIB $LIBS"
34812 cat >>confdefs.h <<_ACEOF
34816 cat >>confdefs.h <<_ACEOF
34827 MCOMMON=./autoconf/Make.common
34830 if test "x${subsysdir}" = "x${sbindir}" ; then
34833 echo "You have set both --sbindir and --with-subsys-dir"
34834 echo " equal to: ${subsysdir} "
34835 echo "This is not permitted. Please reconfigure."
34837 echo "Aborting configuration ..."
34843 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 src/plugins/fd/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"
34845 ac_config_commands="$ac_config_commands default"
34847 cat >confcache <<\_ACEOF
34848 # This file is a shell script that caches the results of configure
34849 # tests run on this system so they can be shared between configure
34850 # scripts and configure runs, see configure's option --config-cache.
34851 # It is not useful on other systems. If it contains results you don't
34852 # want to keep, you may remove or edit it.
34854 # config.status only pays attention to the cache file if you give it
34855 # the --recheck option to rerun configure.
34857 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34858 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34859 # following values.
34863 # The following way of writing the cache mishandles newlines in values,
34864 # but we know of no workaround that is simple, portable, and efficient.
34865 # So, we kill variables containing newlines.
34866 # Ultrix sh set writes to stderr and can't be redirected directly,
34867 # and sets the high bit in the cache file unless we assign to the vars.
34869 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34870 eval ac_val=\$$ac_var
34874 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34875 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34878 _ | IFS | as_nl) ;; #(
34879 *) $as_unset $ac_var ;;
34885 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34886 *${as_nl}ac_space=\ *)
34887 # `set' does not quote correctly, so add quotes (double-quote
34888 # substitution turns \\\\ into \\, and sed turns \\ into \).
34891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34894 # `set' quotes correctly as required by POSIX, so do not add quotes.
34895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34904 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34908 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34909 if test -w "$cache_file"; then
34910 test "x$cache_file" != "x/dev/null" &&
34911 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34912 echo "$as_me: updating cache $cache_file" >&6;}
34913 cat confcache >$cache_file
34915 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34916 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34922 # Let make expand exec_prefix.
34923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34925 DEFS=-DHAVE_CONFIG_H
34929 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34930 # 1. Remove the extension, and $U if already installed.
34931 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34932 ac_i=`echo "$ac_i" | sed "$ac_script"`
34933 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34934 # will be set to the directory where LIBOBJS objects are built.
34935 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34936 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34938 LIBOBJS=$ac_libobjs
34940 LTLIBOBJS=$ac_ltlibobjs
34944 : ${CONFIG_STATUS=./config.status}
34945 ac_clean_files_save=$ac_clean_files
34946 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34947 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34948 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34949 cat >$CONFIG_STATUS <<_ACEOF
34951 # Generated by $as_me.
34952 # Run this file to recreate the current configuration.
34953 # Compiler output produced by configure, useful for debugging
34954 # configure, is in config.log if it exists.
34957 ac_cs_recheck=false
34959 SHELL=\${CONFIG_SHELL-$SHELL}
34962 cat >>$CONFIG_STATUS <<\_ACEOF
34963 ## --------------------- ##
34964 ## M4sh Initialization. ##
34965 ## --------------------- ##
34967 # Be more Bourne compatible
34968 DUALCASE=1; export DUALCASE # for MKS sh
34969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34972 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34973 # is contrary to our usage. Disable this feature.
34974 alias -g '${1+"$@"}'='"$@"'
34975 setopt NO_GLOB_SUBST
34977 case `(set -o) 2>/dev/null` in
34978 *posix*) set -o posix ;;
34987 # Avoid depending upon Character Ranges.
34988 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34989 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34990 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34991 as_cr_digits='0123456789'
34992 as_cr_alnum=$as_cr_Letters$as_cr_digits
34994 # The user is always right.
34995 if test "${PATH_SEPARATOR+set}" != set; then
34996 echo "#! /bin/sh" >conf$$.sh
34997 echo "exit 0" >>conf$$.sh
34999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35007 # Support unset when possible.
35008 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35016 # We need space, tab and new line, in precisely that order. Quoting is
35017 # there to prevent editors from complaining about space-tab.
35018 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35019 # splitting by setting IFS to empty value.)
35024 # Find who we are. Look in the path if we contain no directory separator.
35026 *[\\/]* ) as_myself=$0 ;;
35027 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35028 for as_dir in $PATH
35031 test -z "$as_dir" && as_dir=.
35032 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35038 # We did not find ourselves, most probably we were run as `sh COMMAND'
35039 # in which case we are not to be found in the path.
35040 if test "x$as_myself" = x; then
35043 if test ! -f "$as_myself"; then
35044 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35045 { (exit 1); exit 1; }
35048 # Work around bugs in pre-3.0 UWIN ksh.
35049 for as_var in ENV MAIL MAILPATH
35050 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35058 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35059 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35060 LC_TELEPHONE LC_TIME
35062 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35063 eval $as_var=C; export $as_var
35065 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35069 # Required to use basename.
35070 if expr a : '\(a\)' >/dev/null 2>&1 &&
35071 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35077 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35078 as_basename=basename
35084 # Name of the executable.
35085 as_me=`$as_basename -- "$0" ||
35086 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35087 X"$0" : 'X\(//\)$' \| \
35088 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35090 sed '/^.*\/\([^/][^/]*\)\/*$/{
35109 as_lineno_1=$LINENO
35110 as_lineno_2=$LINENO
35111 test "x$as_lineno_1" != "x$as_lineno_2" &&
35112 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35114 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35115 # uniformly replaced by the line number. The first 'sed' inserts a
35116 # line-number line after each line using $LINENO; the second 'sed'
35117 # does the real work. The second script uses 'N' to pair each
35118 # line-number line with the line containing $LINENO, and appends
35119 # trailing '-' during substitution so that $LINENO is not a special
35120 # case at line end.
35121 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35122 # scripts with optimization help from Paolo Bonzini. Blame Lee
35123 # E. McMahon (1931-1989) for sed's syntax. :-)
35135 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35138 ' >$as_me.lineno &&
35139 chmod +x "$as_me.lineno" ||
35140 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35141 { (exit 1); exit 1; }; }
35143 # Don't try to exec as it changes $[0], causing all sort of problems
35144 # (the dirname of $[0] is not the place where we might find the
35145 # original and so on. Autoconf is especially sensitive to this).
35146 . "./$as_me.lineno"
35147 # Exit status is that of the last command.
35152 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35158 ECHO_C= ECHO_N= ECHO_T=
35159 case `echo -n x` in
35161 case `echo 'x\c'` in
35162 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35169 if expr a : '\(a\)' >/dev/null 2>&1 &&
35170 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35176 rm -f conf$$ conf$$.exe conf$$.file
35177 if test -d conf$$.dir; then
35178 rm -f conf$$.dir/conf$$.file
35184 if ln -s conf$$.file conf$$ 2>/dev/null; then
35186 # ... but there are two gotchas:
35187 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35188 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35189 # In both cases, we have to default to `cp -p'.
35190 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35192 elif ln conf$$.file conf$$ 2>/dev/null; then
35197 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35198 rmdir conf$$.dir 2>/dev/null
35200 if mkdir -p . 2>/dev/null; then
35203 test -d ./-p && rmdir ./-p
35207 if test -x / >/dev/null 2>&1; then
35208 as_test_x='test -x'
35210 if ls -dL / >/dev/null 2>&1; then
35217 if test -d "$1"; then
35223 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35224 ???[sx]*):;;*)false;;esac;fi
35228 as_executable_p=$as_test_x
35230 # Sed expression to map a string onto a valid CPP name.
35231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35233 # Sed expression to map a string onto a valid variable name.
35234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35239 # Save the log message, to keep $[0] and so on meaningful, and to
35240 # report actual input values of CONFIG_FILES etc. instead of their
35241 # values after options handling.
35243 This file was extended by $as_me, which was
35244 generated by GNU Autoconf 2.61. Invocation command line was
35246 CONFIG_FILES = $CONFIG_FILES
35247 CONFIG_HEADERS = $CONFIG_HEADERS
35248 CONFIG_LINKS = $CONFIG_LINKS
35249 CONFIG_COMMANDS = $CONFIG_COMMANDS
35252 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35257 cat >>$CONFIG_STATUS <<_ACEOF
35258 # Files that config.status was made for.
35259 config_files="$ac_config_files"
35260 config_headers="$ac_config_headers"
35261 config_commands="$ac_config_commands"
35265 cat >>$CONFIG_STATUS <<\_ACEOF
35267 \`$as_me' instantiates files from templates according to the
35268 current configuration.
35270 Usage: $0 [OPTIONS] [FILE]...
35272 -h, --help print this help, then exit
35273 -V, --version print version number and configuration settings, then exit
35274 -q, --quiet do not print progress messages
35275 -d, --debug don't remove temporary files
35276 --recheck update $as_me by reconfiguring in the same conditions
35277 --file=FILE[:TEMPLATE]
35278 instantiate the configuration file FILE
35279 --header=FILE[:TEMPLATE]
35280 instantiate the configuration header FILE
35282 Configuration files:
35285 Configuration headers:
35288 Configuration commands:
35291 Report bugs to <bug-autoconf@gnu.org>."
35294 cat >>$CONFIG_STATUS <<_ACEOF
35297 configured by $0, generated by GNU Autoconf 2.61,
35298 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35300 Copyright (C) 2006 Free Software Foundation, Inc.
35301 This config.status script is free software; the Free Software Foundation
35302 gives unlimited permission to copy, distribute and modify it."
35309 cat >>$CONFIG_STATUS <<\_ACEOF
35310 # If no file are specified by the user, then we need to provide default
35311 # value. By we need to know if files were specified by the user.
35317 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35318 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35329 # Handling of the options.
35330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35332 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35333 echo "$ac_cs_version"; exit ;;
35334 --debug | --debu | --deb | --de | --d | -d )
35336 --file | --fil | --fi | --f )
35338 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35339 ac_need_defaults=false;;
35340 --header | --heade | --head | --hea )
35342 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35343 ac_need_defaults=false;;
35345 # Conflict between --help and --header
35346 { echo "$as_me: error: ambiguous option: $1
35347 Try \`$0 --help' for more information." >&2
35348 { (exit 1); exit 1; }; };;
35349 --help | --hel | -h )
35350 echo "$ac_cs_usage"; exit ;;
35351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35352 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35355 # This is an error.
35356 -*) { echo "$as_me: error: unrecognized option: $1
35357 Try \`$0 --help' for more information." >&2
35358 { (exit 1); exit 1; }; } ;;
35360 *) ac_config_targets="$ac_config_targets $1"
35361 ac_need_defaults=false ;;
35367 ac_configure_extra_args=
35369 if $ac_cs_silent; then
35371 ac_configure_extra_args="$ac_configure_extra_args --silent"
35375 cat >>$CONFIG_STATUS <<_ACEOF
35376 if \$ac_cs_recheck; then
35377 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35378 CONFIG_SHELL=$SHELL
35379 export CONFIG_SHELL
35380 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35384 cat >>$CONFIG_STATUS <<\_ACEOF
35388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35389 ## Running $as_me. ##
35395 cat >>$CONFIG_STATUS <<_ACEOF
35399 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35400 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
35402 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35403 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35404 LINGUAS="${LINGUAS-%UNSET%}"
35409 cat >>$CONFIG_STATUS <<\_ACEOF
35411 # Handling of arguments.
35412 for ac_config_target in $ac_config_targets
35414 case $ac_config_target in
35415 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
35416 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35417 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
35418 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35419 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
35420 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
35421 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
35422 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
35423 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
35424 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
35425 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
35426 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
35427 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
35428 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
35429 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
35430 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
35431 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
35432 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
35433 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
35434 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
35435 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
35436 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
35437 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
35438 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
35439 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
35440 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
35441 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
35442 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
35443 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
35444 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
35445 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
35446 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
35447 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
35448 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
35449 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
35450 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
35451 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
35452 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
35453 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
35454 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
35455 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35456 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
35457 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
35458 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
35459 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
35460 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
35461 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
35462 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
35463 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
35464 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
35465 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
35466 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
35467 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
35468 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
35469 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
35470 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
35471 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
35472 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
35473 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
35474 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
35475 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
35476 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
35477 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
35478 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
35479 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
35480 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
35481 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
35482 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
35483 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
35484 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
35485 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
35486 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
35487 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
35488 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
35489 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
35490 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
35491 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
35492 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
35493 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
35494 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
35495 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
35496 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
35497 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
35498 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
35499 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
35500 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
35501 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
35502 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
35503 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
35504 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
35505 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
35506 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
35507 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
35508 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
35509 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
35510 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
35511 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
35512 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
35513 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
35514 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
35515 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
35516 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
35517 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
35518 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
35519 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
35520 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
35521 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
35522 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
35523 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
35524 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
35525 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35527 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35528 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35529 { (exit 1); exit 1; }; };;
35534 # If the user did not use the arguments to specify the items to instantiate,
35535 # then the envvar interface is used. Set only those that are not.
35536 # We use the long form for the default assignment because of an extremely
35537 # bizarre bug on SunOS 4.1.3.
35538 if $ac_need_defaults; then
35539 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35540 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35544 # Have a temporary directory for convenience. Make it in the build tree
35545 # simply because there is no reason against having it here, and in addition,
35546 # creating and moving files from /tmp can sometimes cause problems.
35547 # Hook for its removal unless debugging.
35548 # Note that there is a small window in which the directory will not be cleaned:
35549 # after its creation but before its name has been assigned to `$tmp'.
35553 trap 'exit_status=$?
35554 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35556 trap '{ (exit 1); exit 1; }' 1 2 13 15
35558 # Create a (secure) tmp directory for tmp files.
35561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35562 test -n "$tmp" && test -d "$tmp"
35565 tmp=./conf$$-$RANDOM
35566 (umask 077 && mkdir "$tmp")
35569 echo "$me: cannot create a temporary directory in ." >&2
35570 { (exit 1); exit 1; }
35574 # Set up the sed scripts for CONFIG_FILES section.
35577 # No need to generate the scripts if there are no CONFIG_FILES.
35578 # This happens for instance when ./config.status config.h
35579 if test -n "$CONFIG_FILES"; then
35583 # Create sed commands to just substitute file output variables.
35585 # Remaining file output variables are in a fragment that also has non-file
35591 for ac_last_try in false false false false false :; do
35592 cat >conf$$subs.sed <<_ACEOF
35593 SHELL!$SHELL$ac_delim
35594 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35595 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35596 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35597 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35598 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35599 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35600 exec_prefix!$exec_prefix$ac_delim
35601 prefix!$prefix$ac_delim
35602 program_transform_name!$program_transform_name$ac_delim
35603 bindir!$bindir$ac_delim
35604 sbindir!$sbindir$ac_delim
35605 libexecdir!$libexecdir$ac_delim
35606 datarootdir!$datarootdir$ac_delim
35607 datadir!$datadir$ac_delim
35608 sysconfdir!$sysconfdir$ac_delim
35609 sharedstatedir!$sharedstatedir$ac_delim
35610 localstatedir!$localstatedir$ac_delim
35611 includedir!$includedir$ac_delim
35612 oldincludedir!$oldincludedir$ac_delim
35613 docdir!$docdir$ac_delim
35614 infodir!$infodir$ac_delim
35615 htmldir!$htmldir$ac_delim
35616 dvidir!$dvidir$ac_delim
35617 pdfdir!$pdfdir$ac_delim
35618 psdir!$psdir$ac_delim
35619 libdir!$libdir$ac_delim
35620 localedir!$localedir$ac_delim
35621 mandir!$mandir$ac_delim
35622 DEFS!$DEFS$ac_delim
35623 ECHO_C!$ECHO_C$ac_delim
35624 ECHO_N!$ECHO_N$ac_delim
35625 ECHO_T!$ECHO_T$ac_delim
35626 LIBS!$LIBS$ac_delim
35627 build_alias!$build_alias$ac_delim
35628 host_alias!$host_alias$ac_delim
35629 target_alias!$target_alias$ac_delim
35630 BUILD_DIR!$BUILD_DIR$ac_delim
35631 TOP_DIR!$TOP_DIR$ac_delim
35632 TRUEPRG!$TRUEPRG$ac_delim
35633 FALSEPRG!$FALSEPRG$ac_delim
35634 VERSION!$VERSION$ac_delim
35635 DATE!$DATE$ac_delim
35636 LSMDATE!$LSMDATE$ac_delim
35638 CFLAGS!$CFLAGS$ac_delim
35639 LDFLAGS!$LDFLAGS$ac_delim
35640 CPPFLAGS!$CPPFLAGS$ac_delim
35641 ac_ct_CC!$ac_ct_CC$ac_delim
35642 EXEEXT!$EXEEXT$ac_delim
35643 OBJEXT!$OBJEXT$ac_delim
35645 CXXFLAGS!$CXXFLAGS$ac_delim
35646 ac_ct_CXX!$ac_ct_CXX$ac_delim
35648 GREP!$GREP$ac_delim
35649 EGREP!$EGREP$ac_delim
35650 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35651 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35652 INSTALL_DATA!$INSTALL_DATA$ac_delim
35653 RANLIB!$RANLIB$ac_delim
35658 ECHO!$ECHO$ac_delim
35662 OPENSSL!$OPENSSL$ac_delim
35665 MKISOFS!$MKISOFS$ac_delim
35666 PYTHON!$PYTHON$ac_delim
35667 GROWISOFS!$GROWISOFS$ac_delim
35668 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35669 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35670 PKGCONFIG!$PKGCONFIG$ac_delim
35671 QMAKE!$QMAKE$ac_delim
35672 QMAKEQT4!$QMAKEQT4$ac_delim
35673 WXCONFIG!$WXCONFIG$ac_delim
35674 WXFLAGS!$WXFLAGS$ac_delim
35675 CDRECORD!$CDRECORD$ac_delim
35676 PIDOF!$PIDOF$ac_delim
35678 ARFLAGS!$ARFLAGS$ac_delim
35679 MAKE_SHELL!$MAKE_SHELL$ac_delim
35680 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35681 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35682 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35683 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35684 build!$build$ac_delim
35685 build_cpu!$build_cpu$ac_delim
35686 build_vendor!$build_vendor$ac_delim
35689 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35691 elif $ac_last_try; then
35692 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35693 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35694 { (exit 1); exit 1; }; }
35696 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35700 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35701 if test -n "$ac_eof"; then
35702 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35703 ac_eof=`expr $ac_eof + 1`
35706 cat >>$CONFIG_STATUS <<_ACEOF
35707 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35709 /^[ ]*@MCOMMON@[ ]*$/{
35715 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35716 s/^/s,@/; s/!/@,|#_!!_#|/
35719 s/'"$ac_delim"'$/,g/; t
35721 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35722 ' >>$CONFIG_STATUS <conf$$subs.sed
35723 rm -f conf$$subs.sed
35724 cat >>$CONFIG_STATUS <<_ACEOF
35730 for ac_last_try in false false false false false :; do
35731 cat >conf$$subs.sed <<_ACEOF
35732 build_os!$build_os$ac_delim
35733 host!$host$ac_delim
35734 host_cpu!$host_cpu$ac_delim
35735 host_vendor!$host_vendor$ac_delim
35736 host_os!$host_os$ac_delim
35737 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35738 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35739 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35740 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35741 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35742 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35743 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35744 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35745 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35746 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35747 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35748 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35749 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35750 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35751 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35752 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35753 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35754 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35755 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35756 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35757 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35758 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35759 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35760 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35761 SET_MAKE!$SET_MAKE$ac_delim
35762 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35763 USE_NLS!$USE_NLS$ac_delim
35764 MSGFMT!$MSGFMT$ac_delim
35765 GMSGFMT!$GMSGFMT$ac_delim
35766 XGETTEXT!$XGETTEXT$ac_delim
35767 MSGMERGE!$MSGMERGE$ac_delim
35768 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35769 LIBICONV!$LIBICONV$ac_delim
35770 LTLIBICONV!$LTLIBICONV$ac_delim
35771 INTLLIBS!$INTLLIBS$ac_delim
35772 LIBINTL!$LIBINTL$ac_delim
35773 LTLIBINTL!$LTLIBINTL$ac_delim
35774 POSUB!$POSUB$ac_delim
35775 GLIBC2!$GLIBC2$ac_delim
35776 ALLOCA!$ALLOCA$ac_delim
35777 GLIBC21!$GLIBC21$ac_delim
35778 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35779 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35780 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35781 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35782 INTLBISON!$INTLBISON$ac_delim
35783 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35784 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35785 CATOBJEXT!$CATOBJEXT$ac_delim
35786 DATADIRNAME!$DATADIRNAME$ac_delim
35787 INSTOBJEXT!$INSTOBJEXT$ac_delim
35788 GENCAT!$GENCAT$ac_delim
35789 INTLOBJS!$INTLOBJS$ac_delim
35790 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35791 BDB_CPPFLAGS!$BDB_CPPFLAGS$ac_delim
35792 BDB_LIBS!$BDB_LIBS$ac_delim
35793 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35794 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35795 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35796 GNOME_LIBS!$GNOME_LIBS$ac_delim
35797 GNOME_DIR!$GNOME_DIR$ac_delim
35798 BAT_DIR!$BAT_DIR$ac_delim
35799 QWT_INC!$QWT_INC$ac_delim
35800 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
35801 QWT_LIB!$QWT_LIB$ac_delim
35803 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35804 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35805 WX_DIR!$WX_DIR$ac_delim
35806 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35807 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35808 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35809 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35810 STATIC_FD!$STATIC_FD$ac_delim
35811 STATIC_SD!$STATIC_SD$ac_delim
35812 STATIC_DIR!$STATIC_DIR$ac_delim
35813 STATIC_CONS!$STATIC_CONS$ac_delim
35814 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35815 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35816 ALL_DIRS!$ALL_DIRS$ac_delim
35817 DIRD_DIR!$DIRD_DIR$ac_delim
35818 DIR_TOOLS!$DIR_TOOLS$ac_delim
35819 STORED_DIR!$STORED_DIR$ac_delim
35820 CONS_INC!$CONS_INC$ac_delim
35821 CONS_OBJ!$CONS_OBJ$ac_delim
35822 CONS_SRC!$CONS_SRC$ac_delim
35823 CONS_LIBS!$CONS_LIBS$ac_delim
35824 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35825 READLINE_SRC!$READLINE_SRC$ac_delim
35826 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35827 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35828 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35831 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35833 elif $ac_last_try; then
35834 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35835 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35836 { (exit 1); exit 1; }; }
35838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35842 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35843 if test -n "$ac_eof"; then
35844 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35845 ac_eof=`expr $ac_eof + 1`
35848 cat >>$CONFIG_STATUS <<_ACEOF
35849 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35853 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35854 s/^/s,@/; s/!/@,|#_!!_#|/
35857 s/'"$ac_delim"'$/,g/; t
35859 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35860 ' >>$CONFIG_STATUS <conf$$subs.sed
35861 rm -f conf$$subs.sed
35862 cat >>$CONFIG_STATUS <<_ACEOF
35868 for ac_last_try in false false false false false :; do
35869 cat >conf$$subs.sed <<_ACEOF
35870 OPENSSL_INC!$OPENSSL_INC$ac_delim
35871 working_dir!$working_dir$ac_delim
35872 archivedir!$archivedir$ac_delim
35873 scriptdir!$scriptdir$ac_delim
35874 plugindir!$plugindir$ac_delim
35875 dump_email!$dump_email$ac_delim
35876 job_email!$job_email$ac_delim
35877 smtp_host!$smtp_host$ac_delim
35878 piddir!$piddir$ac_delim
35879 subsysdir!$subsysdir$ac_delim
35880 baseport!$baseport$ac_delim
35881 dir_port!$dir_port$ac_delim
35882 fd_port!$fd_port$ac_delim
35883 sd_port!$sd_port$ac_delim
35884 dir_password!$dir_password$ac_delim
35885 fd_password!$fd_password$ac_delim
35886 sd_password!$sd_password$ac_delim
35887 mon_dir_password!$mon_dir_password$ac_delim
35888 mon_fd_password!$mon_fd_password$ac_delim
35889 mon_sd_password!$mon_sd_password$ac_delim
35890 db_name!$db_name$ac_delim
35891 db_user!$db_user$ac_delim
35892 db_password!$db_password$ac_delim
35893 db_port!$db_port$ac_delim
35894 dir_user!$dir_user$ac_delim
35895 dir_group!$dir_group$ac_delim
35896 sd_user!$sd_user$ac_delim
35897 sd_group!$sd_group$ac_delim
35898 fd_user!$fd_user$ac_delim
35899 fd_group!$fd_group$ac_delim
35900 SBINPERM!$SBINPERM$ac_delim
35901 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35902 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35903 SQL_BINDIR!$SQL_BINDIR$ac_delim
35904 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
35905 uncomment_dbi!$uncomment_dbi$ac_delim
35906 DB_PROG!$DB_PROG$ac_delim
35907 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
35908 cats!$cats$ac_delim
35909 DB_TYPE!$DB_TYPE$ac_delim
35910 GETCONF!$GETCONF$ac_delim
35911 XMKMF!$XMKMF$ac_delim
35912 X_CFLAGS!$X_CFLAGS$ac_delim
35913 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35914 X_LIBS!$X_LIBS$ac_delim
35915 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35916 LIBOBJS!$LIBOBJS$ac_delim
35917 FDLIBS!$FDLIBS$ac_delim
35918 DEBUG!$DEBUG$ac_delim
35919 DINCLUDE!$DINCLUDE$ac_delim
35920 DLIB!$DLIB$ac_delim
35921 DB_LIBS!$DB_LIBS$ac_delim
35922 WCFLAGS!$WCFLAGS$ac_delim
35923 WLDFLAGS!$WLDFLAGS$ac_delim
35924 WRAPLIBS!$WRAPLIBS$ac_delim
35925 OBJLIST!$OBJLIST$ac_delim
35926 hostname!$hostname$ac_delim
35927 TAPEDRIVE!$TAPEDRIVE$ac_delim
35928 PSCMD!$PSCMD$ac_delim
35929 WIN32!$WIN32$ac_delim
35930 MACOSX!$MACOSX$ac_delim
35931 DISTNAME!$DISTNAME$ac_delim
35932 DISTVER!$DISTVER$ac_delim
35933 LTLIBOBJS!$LTLIBOBJS$ac_delim
35936 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
35938 elif $ac_last_try; then
35939 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35940 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35941 { (exit 1); exit 1; }; }
35943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35947 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35948 if test -n "$ac_eof"; then
35949 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35950 ac_eof=`expr $ac_eof + 1`
35953 cat >>$CONFIG_STATUS <<_ACEOF
35954 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35958 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35959 s/^/s,@/; s/!/@,|#_!!_#|/
35962 s/'"$ac_delim"'$/,g/; t
35964 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35965 ' >>$CONFIG_STATUS <conf$$subs.sed
35966 rm -f conf$$subs.sed
35967 cat >>$CONFIG_STATUS <<_ACEOF
35974 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35975 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35976 # trailing colons and then remove the whole line if VPATH becomes empty
35977 # (actually we leave an empty line to preserve line numbers).
35978 if test "x$srcdir" = x.; then
35979 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35980 s/:*\$(srcdir):*/:/
35981 s/:*\${srcdir}:*/:/
35983 s/^\([^=]*=[ ]*\):*/\1/
35989 cat >>$CONFIG_STATUS <<\_ACEOF
35990 fi # test -n "$CONFIG_FILES"
35993 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35996 :[FHLC]) ac_mode=$ac_tag; continue;;
35998 case $ac_mode$ac_tag in
36000 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36001 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36002 { (exit 1); exit 1; }; };;
36003 :[FH]-) ac_tag=-:-;;
36004 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36021 -) ac_f="$tmp/stdin";;
36022 *) # Look for the file first in the build tree, then in the source tree
36023 # (if the path is not absolute). The absolute path cannot be DOS-style,
36024 # because $ac_f cannot contain `:'.
36028 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36030 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36031 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36032 { (exit 1); exit 1; }; };;
36034 ac_file_inputs="$ac_file_inputs $ac_f"
36037 # Let's still pretend it is `configure' which instantiates (i.e., don't
36038 # use $as_me), people would be surprised to read:
36039 # /* config.h. Generated by config.status. */
36040 configure_input="Generated from "`IFS=:
36041 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36042 if test x"$ac_file" != x-; then
36043 configure_input="$ac_file. $configure_input"
36044 { echo "$as_me:$LINENO: creating $ac_file" >&5
36045 echo "$as_me: creating $ac_file" >&6;}
36049 *:-:* | *:-) cat >"$tmp/stdin";;
36054 ac_dir=`$as_dirname -- "$ac_file" ||
36055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36056 X"$ac_file" : 'X\(//\)[^/]' \| \
36057 X"$ac_file" : 'X\(//\)$' \| \
36058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36064 /^X\(\/\/\)[^/].*/{
36079 -*) as_dir=./$as_dir;;
36081 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36085 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36086 *) as_qdir=$as_dir;;
36088 as_dirs="'$as_qdir' $as_dirs"
36089 as_dir=`$as_dirname -- "$as_dir" ||
36090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36091 X"$as_dir" : 'X\(//\)[^/]' \| \
36092 X"$as_dir" : 'X\(//\)$' \| \
36093 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36099 /^X\(\/\/\)[^/].*/{
36112 test -d "$as_dir" && break
36114 test -z "$as_dirs" || eval "mkdir $as_dirs"
36115 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36116 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36117 { (exit 1); exit 1; }; }; }
36121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36124 # A ".." for each directory in $ac_dir_suffix.
36125 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36126 case $ac_top_builddir_sub in
36127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36131 ac_abs_top_builddir=$ac_pwd
36132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36133 # for backward compatibility:
36134 ac_top_builddir=$ac_top_build_prefix
36137 .) # We are building in place.
36139 ac_top_srcdir=$ac_top_builddir_sub
36140 ac_abs_top_srcdir=$ac_pwd ;;
36141 [\\/]* | ?:[\\/]* ) # Absolute name.
36142 ac_srcdir=$srcdir$ac_dir_suffix;
36143 ac_top_srcdir=$srcdir
36144 ac_abs_top_srcdir=$srcdir ;;
36145 *) # Relative name.
36146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36147 ac_top_srcdir=$ac_top_build_prefix$srcdir
36148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36161 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36165 cat >>$CONFIG_STATUS <<\_ACEOF
36166 # If the template does not know about datarootdir, expand it.
36167 # FIXME: This hack should be removed a few years after 2.60.
36168 ac_datarootdir_hack=; ac_datarootdir_seen=
36170 case `sed -n '/datarootdir/ {
36179 ' $ac_file_inputs` in
36180 *datarootdir*) ac_datarootdir_seen=yes;;
36181 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36182 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36183 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36185 cat >>$CONFIG_STATUS <<_ACEOF
36186 ac_datarootdir_hack='
36187 s&@datadir@&$datadir&g
36188 s&@docdir@&$docdir&g
36189 s&@infodir@&$infodir&g
36190 s&@localedir@&$localedir&g
36191 s&@mandir@&$mandir&g
36192 s&\\\${datarootdir}&$datarootdir&g' ;;
36196 # Neutralize VPATH when `$srcdir' = `.'.
36197 # Shell code in configure.ac might set extrasub.
36198 # FIXME: do we really want to maintain this feature?
36199 cat >>$CONFIG_STATUS <<_ACEOF
36203 cat >>$CONFIG_STATUS <<\_ACEOF
36205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36206 s&@configure_input@&$configure_input&;t t
36207 s&@top_builddir@&$ac_top_builddir_sub&;t t
36208 s&@srcdir@&$ac_srcdir&;t t
36209 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36210 s&@top_srcdir@&$ac_top_srcdir&;t t
36211 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36212 s&@builddir@&$ac_builddir&;t t
36213 s&@abs_builddir@&$ac_abs_builddir&;t t
36214 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36215 s&@INSTALL@&$ac_INSTALL&;t t
36216 $ac_datarootdir_hack
36217 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
36219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36220 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36222 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36223 which seems to be undefined. Please make sure it is defined." >&5
36224 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36225 which seems to be undefined. Please make sure it is defined." >&2;}
36229 -) cat "$tmp/out"; rm -f "$tmp/out";;
36230 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36239 # Transform confdefs.h into a sed script `conftest.defines', that
36240 # substitutes the proper values into config.h.in to produce config.h.
36241 rm -f conftest.defines conftest.tail
36242 # First, append a space to every undef/define line, to ease matching.
36243 echo 's/$/ /' >conftest.defines
36244 # Then, protect against being on the right side of a sed subst, or in
36245 # an unquoted here document, in config.status. If some macros were
36246 # called several times there might be several #defines for the same
36247 # symbol, which is useless. But do not sort them, since the last
36248 # AC_DEFINE must be honored.
36249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36250 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36251 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36252 # PARAMS is the parameter list in the macro definition--in most cases, it's
36253 # just an empty string.
36254 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36255 ac_dB='\\)[ (].*,\\1define\\2'
36263 s/^[ ]*#[ ]*define[ ][ ]*//
36268 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36269 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36270 ' >>conftest.defines
36272 # Remove the space that was appended to ease matching.
36273 # Then replace #undef with comments. This is necessary, for
36274 # example, in the case of _POSIX_SOURCE, which is predefined and required
36275 # on some systems where configure will not decide to define it.
36276 # (The regexp can be short, since the line contains either #define or #undef.)
36278 s,^[ #]*u.*,/* & */,' >>conftest.defines
36280 # Break up conftest.defines:
36281 ac_max_sed_lines=50
36283 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36284 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36285 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36287 ac_in='$ac_file_inputs'
36288 ac_out='"$tmp/out1"'
36289 ac_nxt='"$tmp/out2"'
36293 # Write a here document:
36294 cat >>$CONFIG_STATUS <<_ACEOF
36295 # First, check the format of the line:
36296 cat >"\$tmp/defines.sed" <<\\CEOF
36297 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36298 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36302 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36304 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36305 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36306 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36307 grep . conftest.tail >/dev/null || break
36308 rm -f conftest.defines
36309 mv conftest.tail conftest.defines
36311 rm -f conftest.defines conftest.tail
36313 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36314 cat >>$CONFIG_STATUS <<\_ACEOF
36315 if test x"$ac_file" != x-; then
36316 echo "/* $configure_input */" >"$tmp/config.h"
36317 cat "$ac_result" >>"$tmp/config.h"
36318 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36319 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36320 echo "$as_me: $ac_file is unchanged" >&6;}
36323 mv "$tmp/config.h" $ac_file
36326 echo "/* $configure_input */"
36332 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36333 echo "$as_me: executing $ac_file commands" >&6;}
36338 case $ac_file$ac_mode in
36340 for ac_file in $CONFIG_FILES; do
36341 # Support "outfile[:infile[:infile...]]"
36343 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36345 # PO directories have a Makefile.in generated from Makefile.in.in.
36346 case "$ac_file" in */Makefile.in)
36347 # Adjust a relative srcdir.
36348 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36349 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
36350 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36351 # In autoconf-2.13 it is called $ac_given_srcdir.
36352 # In autoconf-2.50 it is called $srcdir.
36353 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36354 case "$ac_given_srcdir" in
36355 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36356 /*) top_srcdir="$ac_given_srcdir" ;;
36357 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36359 # Treat a directory as a PO directory if and only if it has a
36360 # POTFILES.in file. This allows packages to have multiple PO
36361 # directories under different names or in different locations.
36362 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36363 rm -f "$ac_dir/POTFILES"
36364 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36365 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36366 POMAKEFILEDEPS="POTFILES.in"
36367 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
36368 # on $ac_dir but don't depend on user-specified configuration
36370 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36371 # The LINGUAS file contains the set of available languages.
36372 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36373 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
36375 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36376 # Hide the ALL_LINGUAS assigment from automake.
36377 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36378 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36380 # The set of available languages was given in configure.in.
36381 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36384 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
36385 # Compute UPDATEPOFILES
36386 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
36387 # Compute DUMMYPOFILES
36388 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
36390 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
36391 case "$ac_given_srcdir" in
36393 *) srcdirpre='$(srcdir)/' ;;
36399 for lang in $ALL_LINGUAS; do
36400 POFILES="$POFILES $srcdirpre$lang.po"
36401 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36402 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36403 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36405 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36406 # environment variable.
36408 if test -n "$ALL_LINGUAS"; then
36409 for presentlang in $ALL_LINGUAS; do
36411 if test "%UNSET%" != "$LINGUAS"; then
36412 desiredlanguages="$LINGUAS"
36414 desiredlanguages="$ALL_LINGUAS"
36416 for desiredlang in $desiredlanguages; do
36417 # Use the presentlang catalog if desiredlang is
36418 # a. equal to presentlang, or
36419 # b. a variant of presentlang (because in this case,
36420 # presentlang can be used as a fallback for messages
36421 # which are not translated in the desiredlang catalog).
36422 case "$desiredlang" in
36423 "$presentlang"*) useit=yes;;
36426 if test $useit = yes; then
36427 INST_LINGUAS="$INST_LINGUAS $presentlang"
36432 if test -n "$INST_LINGUAS"; then
36433 for lang in $INST_LINGUAS; do
36434 CATALOGS="$CATALOGS $lang.gmo"
36437 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36438 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"
36439 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36440 if test -f "$f"; then
36442 *.orig | *.bak | *~) ;;
36443 *) cat "$f" >> "$ac_dir/Makefile" ;;
36458 { (exit 0); exit 0; }
36460 chmod +x $CONFIG_STATUS
36461 ac_clean_files=$ac_clean_files_save
36464 # configure is writing to config.log, and then calls config.status.
36465 # config.status does its own redirection, appending to config.log.
36466 # Unfortunately, on DOS this fails, as config.log is still kept open
36467 # by configure, so config.status won't be able to write to it; its
36468 # output is simply discarded. So we exec the FD to /dev/null,
36469 # effectively closing config.log, so it can be properly (re)opened and
36470 # appended to by config.status. When coming back to configure, we
36471 # need to make the FD available again.
36472 if test "$no_create" != yes; then
36474 ac_config_status_args=
36475 test "$silent" = yes &&
36476 ac_config_status_args="$ac_config_status_args --quiet"
36478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36481 # would make configure fail if this is the last instruction.
36482 $ac_cs_success || { (exit 1); exit 1; }
36486 if test "${support_bat}" = "yes" ; then
36487 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
36488 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
36494 if test "x$QMAKEQT4" != "xnone"; then
36499 chmod 755 install_conf_file build-depkgs-qt-console
36500 echo "Creating bat Makefile"
36506 echo "Doing make of dependencies"
36507 ${MAKE:-make} depend
36510 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
36511 chmod 755 dvd-handler dvd-simulator
36512 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
36516 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
36517 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
36521 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
36522 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
36524 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
36525 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
36527 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
36528 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
36530 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
36531 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
36533 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
36534 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
36536 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
36537 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
36539 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
36540 chmod 755 $c/sqlite
36543 chmod 755 src/win32/build-depkgs-mingw32
36547 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
36548 largefile_support="yes"
36552 # A whole lot of hand springs to get the compiler version.
36553 # This is because gcc changed the output in version 3.0
36555 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36556 if test "x${CCVERSION}" = "x" ; then
36557 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36559 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36560 if test x"${CXXVERSION}" = x ; then
36561 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36564 if test "x${subsysdir}" = "x${sbindir}" ; then
36567 echo "You have set --sbindir and --with-subsys-dir"
36568 echo " both equal to: ${subsysdir} "
36569 echo " This is not permitted. Please reconfigure."
36571 echo "Aborting configuration ..."
36577 if test "x${db_type}" = "xInternal" ; then
36580 echo "You have not specified either --enable-client-only or one of the"
36581 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
36582 echo " This is not permitted. Please reconfigure."
36584 echo "Aborting the configuration ..."
36591 Configuration on `date`:
36593 Host: $host -- ${DISTNAME} ${DISTVER}
36594 Bacula version: ${VERSION} (${DATE})
36595 Source code location: ${srcdir}
36596 Install binaries: ${sbindir}
36597 Install config files: ${sysconfdir}
36598 Scripts directory: ${scriptdir}
36599 Archive directory: ${archivedir}
36600 Working directory: ${working_dir}
36601 PID directory: ${piddir}
36602 Subsys directory: ${subsysdir}
36603 Man directory: ${mandir}
36604 Data directory: ${datadir}
36605 C Compiler: ${CC} ${CCVERSION}
36606 C++ Compiler: ${CXX} ${CXXVERSION}
36607 Compiler flags: ${WCFLAGS} ${CFLAGS}
36608 Linker flags: ${WLDFLAGS} ${LDFLAGS}
36610 Statically Linked Tools: ${support_static_tools}
36611 Statically Linked FD: ${support_static_fd}
36612 Statically Linked SD: ${support_static_sd}
36613 Statically Linked DIR: ${support_static_dir}
36614 Statically Linked CONS: ${support_static_cons}
36615 Database type: ${db_type}
36616 Database port: ${db_port}
36617 Database lib: ${DB_LIBS}
36618 Database name: ${db_name}
36619 Database user: ${db_user}
36621 Job Output Email: ${job_email}
36622 Traceback Email: ${dump_email}
36623 SMTP Host Address: ${smtp_host}
36625 Director Port: ${dir_port}
36626 File daemon Port: ${fd_port}
36627 Storage daemon Port: ${sd_port}
36629 Director User: ${dir_user}
36630 Director Group: ${dir_group}
36631 Storage Daemon User: ${sd_user}
36632 Storage DaemonGroup: ${sd_group}
36633 File Daemon User: ${fd_user}
36634 File Daemon Group: ${fd_group}
36636 SQL binaries Directory ${SQL_BINDIR}
36638 Large file support: $largefile_support
36639 Bacula conio support: ${got_conio} ${CONS_LIBS}
36640 readline support: ${got_readline} ${PRTREADLINE_SRC}
36641 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
36642 TLS support: ${support_tls}
36643 Encryption support: ${support_crypto}
36644 ZLIB support: ${have_zlib}
36645 enable-smartalloc: ${support_smartalloc}
36646 bat support: ${support_bat} ${QWT_LDFLAGS}
36647 enable-gnome: ${support_gnome} ${gnome_version}
36648 enable-bwx-console: ${support_wx_console} ${wx_version}
36649 enable-tray-monitor: ${support_tray_monitor}
36650 client-only: ${build_client_only}
36651 build-dird: ${build_dird}
36652 build-stored: ${build_stored}
36653 ACL support: ${have_acl}
36654 Python support: ${support_python} ${PYTHON_LIBS}
36655 Batch insert enabled: ${support_batch_insert}
36656 Berkeley DB support: ${support_libdb} ${BDB_LIBS}