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
22442 { echo "$as_me:$LINENO: result: no" >&5
22443 echo "${ECHO_T}no" >&6; }
22444 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
22445 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
22446 { (exit 1); exit 1; }; }
22450 { echo "$as_me:$LINENO: result: yes" >&5
22451 echo "${ECHO_T}yes" >&6; }
22454 { echo "$as_me:$LINENO: result: no" >&5
22455 echo "${ECHO_T}no" >&6; }
22460 { echo "$as_me:$LINENO: result: no" >&5
22461 echo "${ECHO_T}no" >&6; }
22474 # -------------------------------------------
22475 # enable batch attribute DB insert (default on)
22476 # -------------------------------------------
22477 support_batch_insert=no
22478 A=`nm $SQL_LIB | grep pthread_mutex_lock`
22480 if test $pkg = 0; then
22481 support_batch_insert=yes
22482 # Check whether --enable-batch-insert was given.
22483 if test "${enable_batch_insert+set}" = set; then
22484 enableval=$enable_batch_insert; if test x$enableval = xno; then
22485 support_batch_insert=no
22487 support_batch_insert=yes
22493 # Check if postgresql support batch mode
22494 if test x$DB_TYPE = xpostgresql; then
22495 A=`nm $SQL_LIB | grep PQputCopyData`
22497 if test $pkg != 0; then
22498 support_batch_insert=no
22502 if test x$DB_TYPE = xdbi; then
22506 # Check for batch insert
22507 if test $DB_PROG = postgresql; then
22508 A=`nm $DB_PROG_LIB | grep PQputCopyData`
22512 if test $DB_PROG = mysql; then
22513 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
22517 if test $pkg = 0; then
22518 # Check whether --enable-batch-insert was given.
22519 if test "${enable_batch_insert+set}" = set; then
22520 enableval=$enable_batch_insert; if test x$enableval = xno; then
22521 support_batch_insert=no
22523 support_batch_insert=yes
22529 # If dbi was not chosen, let the comment in file
22535 if test $support_batch_insert = yes ; then
22537 cat >>confdefs.h <<\_ACEOF
22538 #define HAVE_BATCH_FILE_INSERT 1
22544 cat >>confdefs.h <<\_ACEOF
22545 #define PROTOTYPES 1
22549 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
22550 if test -z "$CCOPTS"; then
22551 CCOPTS='-g -O2 -Wall'
22559 largefile_support="no"
22561 # Check whether --enable-largefile was given.
22562 if test "${enable_largefile+set}" = set; then
22563 enableval=$enable_largefile;
22566 if test "$enable_largefile" != no; then
22567 if test -n "$ac_tool_prefix"; then
22568 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
22569 set dummy ${ac_tool_prefix}getconf; ac_word=$2
22570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22572 if test "${ac_cv_prog_GETCONF+set}" = set; then
22573 echo $ECHO_N "(cached) $ECHO_C" >&6
22575 if test -n "$GETCONF"; then
22576 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
22578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22579 for as_dir in $PATH
22582 test -z "$as_dir" && as_dir=.
22583 for ac_exec_ext in '' $ac_executable_extensions; do
22584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22585 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
22586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22595 GETCONF=$ac_cv_prog_GETCONF
22596 if test -n "$GETCONF"; then
22597 { echo "$as_me:$LINENO: result: $GETCONF" >&5
22598 echo "${ECHO_T}$GETCONF" >&6; }
22600 { echo "$as_me:$LINENO: result: no" >&5
22601 echo "${ECHO_T}no" >&6; }
22606 if test -z "$ac_cv_prog_GETCONF"; then
22607 ac_ct_GETCONF=$GETCONF
22608 # Extract the first word of "getconf", so it can be a program name with args.
22609 set dummy getconf; ac_word=$2
22610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22612 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
22615 if test -n "$ac_ct_GETCONF"; then
22616 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
22618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22619 for as_dir in $PATH
22622 test -z "$as_dir" && as_dir=.
22623 for ac_exec_ext in '' $ac_executable_extensions; do
22624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22625 ac_cv_prog_ac_ct_GETCONF="getconf"
22626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22635 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
22636 if test -n "$ac_ct_GETCONF"; then
22637 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
22638 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
22640 { echo "$as_me:$LINENO: result: no" >&5
22641 echo "${ECHO_T}no" >&6; }
22644 if test "x$ac_ct_GETCONF" = x; then
22647 case $cross_compiling:$ac_tool_warned in
22649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22650 whose name does not start with the host triplet. If you think this
22651 configuration is useful to you, please write to autoconf@gnu.org." >&5
22652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22653 whose name does not start with the host triplet. If you think this
22654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22655 ac_tool_warned=yes ;;
22657 GETCONF=$ac_ct_GETCONF
22660 GETCONF="$ac_cv_prog_GETCONF"
22663 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
22664 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
22665 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
22666 echo $ECHO_N "(cached) $ECHO_C" >&6
22668 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
22669 ac_cv_sys_largefile_CFLAGS=no
22671 # IRIX 6.2 and later require cc -n32.
22672 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
22673 if test "$GCC" != yes; then
22674 ac_cv_sys_largefile_CFLAGS=-n32
22677 CC="$CC $ac_cv_sys_largefile_CFLAGS"
22678 cat >conftest.$ac_ext <<_ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22693 rm -f conftest.$ac_objext conftest$ac_exeext
22694 if { (ac_try="$ac_link"
22695 case "(($ac_try" in
22696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22697 *) ac_try_echo=$ac_try;;
22699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22700 (eval "$ac_link") 2>conftest.er1
22702 grep -v '^ *+' conftest.er1 >conftest.err
22704 cat conftest.err >&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } && {
22707 test -z "$ac_c_werror_flag" ||
22708 test ! -s conftest.err
22709 } && test -s conftest$ac_exeext &&
22710 $as_test_x conftest$ac_exeext; then
22713 echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22716 ac_cv_sys_largefile_CFLAGS=no
22719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22720 conftest$ac_exeext conftest.$ac_ext
22725 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
22726 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
22727 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
22728 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
22729 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22732 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
22733 ac_cv_sys_largefile_LDFLAGS=no
22737 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
22738 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
22739 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
22740 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
22741 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22744 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
22745 ac_cv_sys_largefile_LIBS=no
22749 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
22750 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
22752 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22755 -D_FILE_OFFSET_BITS=*) ;;
22756 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
22757 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
22762 case "$CPPFLAGS" in
22763 '') CPPFLAGS="$ac_flag" ;;
22764 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
22772 '') CFLAGS="$ac_flag" ;;
22773 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
22778 case "$ac_cv_sys_largefile_LDFLAGS" in
22782 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
22783 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
22786 case "$ac_cv_sys_largefile_LIBS" in
22790 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
22791 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
22794 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
22795 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
22796 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22797 echo $ECHO_N "(cached) $ECHO_C" >&6
22799 ac_cv_sys_file_offset_bits=no
22800 ac_cv_sys_file_offset_bits=64
22801 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22803 -D_FILE_OFFSET_BITS)
22804 ac_cv_sys_file_offset_bits=1 ;;
22805 -D_FILE_OFFSET_BITS=*)
22806 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22811 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22812 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22813 if test "$ac_cv_sys_file_offset_bits" != no; then
22815 cat >>confdefs.h <<_ACEOF
22816 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22820 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
22821 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
22822 if test "${ac_cv_sys_largefile_source+set}" = set; then
22823 echo $ECHO_N "(cached) $ECHO_C" >&6
22825 ac_cv_sys_largefile_source=no
22826 ac_cv_sys_largefile_source=1
22827 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22829 -D_LARGEFILE_SOURCE)
22830 ac_cv_sys_largefile_source=1 ;;
22831 -D_LARGEFILE_SOURCE=*)
22832 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22837 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22838 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22839 if test "$ac_cv_sys_largefile_source" != no; then
22841 cat >>confdefs.h <<_ACEOF
22842 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22846 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
22847 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
22848 if test "${ac_cv_sys_large_files+set}" = set; then
22849 echo $ECHO_N "(cached) $ECHO_C" >&6
22851 ac_cv_sys_large_files=no
22852 ac_cv_sys_large_files=1
22853 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22856 ac_cv_sys_large_files=1 ;;
22858 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22863 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22864 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22865 if test "$ac_cv_sys_large_files" != no; then
22867 cat >>confdefs.h <<_ACEOF
22868 #define _LARGE_FILES $ac_cv_sys_large_files
22876 { echo "$as_me:$LINENO: checking for X" >&5
22877 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22880 # Check whether --with-x was given.
22881 if test "${with_x+set}" = set; then
22885 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22886 if test "x$with_x" = xno; then
22887 # The user explicitly disabled X.
22890 case $x_includes,$x_libraries in #(
22891 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22892 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22893 { (exit 1); exit 1; }; };; #(
22894 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 # One or both of the vars are not set, and there is no cached value.
22898 ac_x_includes=no ac_x_libraries=no
22899 rm -f -r conftest.dir
22900 if mkdir conftest.dir; then
22902 cat >Imakefile <<'_ACEOF'
22904 @echo incroot='${INCROOT}'
22906 @echo usrlibdir='${USRLIBDIR}'
22908 @echo libdir='${LIBDIR}'
22910 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22912 for ac_var in incroot usrlibdir libdir; do
22913 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22915 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22916 for ac_extension in a so sl; do
22917 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22918 test -f "$ac_im_libdir/libX11.$ac_extension"; then
22919 ac_im_usrlibdir=$ac_im_libdir; break
22922 # Screen out bogus values from the imake configuration. They are
22923 # bogus both because they are the default anyway, and because
22924 # using them would break gcc on systems where it needs fixed includes.
22925 case $ac_im_incroot in
22926 /usr/include) ac_x_includes= ;;
22927 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22929 case $ac_im_usrlibdir in
22930 /usr/lib | /lib) ;;
22931 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22935 rm -f -r conftest.dir
22938 # Standard set of common directories for X headers.
22939 # Check X11 before X11Rn because it is often a symlink to the current release.
22951 /usr/local/X11/include
22952 /usr/local/X11R6/include
22953 /usr/local/X11R5/include
22954 /usr/local/X11R4/include
22956 /usr/local/include/X11
22957 /usr/local/include/X11R6
22958 /usr/local/include/X11R5
22959 /usr/local/include/X11R4
22963 /usr/XFree86/include/X11
22967 /usr/unsupported/include
22968 /usr/athena/include
22969 /usr/local/x11r5/include
22970 /usr/lpp/Xamples/include
22972 /usr/openwin/include
22973 /usr/openwin/share/include'
22975 if test "$ac_x_includes" = no; then
22976 # Guess where to find include files, by looking for Xlib.h.
22977 # First, try using that file with no special directory specified.
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 #include <X11/Xlib.h>
22986 if { (ac_try="$ac_cpp conftest.$ac_ext"
22987 case "(($ac_try" in
22988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22994 grep -v '^ *+' conftest.er1 >conftest.err
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } >/dev/null && {
22999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23000 test ! -s conftest.err
23002 # We can compile using X headers with no special include directory.
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 for ac_dir in $ac_x_header_dirs; do
23009 if test -r "$ac_dir/X11/Xlib.h"; then
23010 ac_x_includes=$ac_dir
23016 rm -f conftest.err conftest.$ac_ext
23017 fi # $ac_x_includes = no
23019 if test "$ac_x_libraries" = no; then
23020 # Check for the libraries.
23021 # See if we find them without any special options.
23022 # Don't add to $LIBS permanently.
23025 cat >conftest.$ac_ext <<_ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031 #include <X11/Xlib.h>
23040 rm -f conftest.$ac_objext conftest$ac_exeext
23041 if { (ac_try="$ac_link"
23042 case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23047 (eval "$ac_link") 2>conftest.er1
23049 grep -v '^ *+' conftest.er1 >conftest.err
23051 cat conftest.err >&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); } && {
23054 test -z "$ac_c_werror_flag" ||
23055 test ! -s conftest.err
23056 } && test -s conftest$ac_exeext &&
23057 $as_test_x conftest$ac_exeext; then
23059 # We can link X programs with no special library path.
23062 echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23066 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23068 # Don't even attempt the hair of trying to link an X program!
23069 for ac_extension in a so sl; do
23070 if test -r "$ac_dir/libX11.$ac_extension"; then
23071 ac_x_libraries=$ac_dir
23078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23079 conftest$ac_exeext conftest.$ac_ext
23080 fi # $ac_x_libraries = no
23082 case $ac_x_includes,$ac_x_libraries in #(
23083 no,* | *,no | *\'*)
23084 # Didn't find X, or a directory has "'" in its name.
23085 ac_cv_have_x="have_x=no";; #(
23087 # Record where we found X for the cache.
23088 ac_cv_have_x="have_x=yes\
23089 ac_x_includes='$ac_x_includes'\
23090 ac_x_libraries='$ac_x_libraries'"
23096 eval "$ac_cv_have_x"
23099 if test "$have_x" != yes; then
23100 { echo "$as_me:$LINENO: result: $have_x" >&5
23101 echo "${ECHO_T}$have_x" >&6; }
23104 # If each of the values was on the command line, it overrides each guess.
23105 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23106 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23107 # Update the cache value to reflect the command line values.
23108 ac_cv_have_x="have_x=yes\
23109 ac_x_includes='$x_includes'\
23110 ac_x_libraries='$x_libraries'"
23111 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23112 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
23115 if test "$no_x" = yes; then
23116 # Not all programs may use this symbol, but it does not hurt to define it.
23118 cat >>confdefs.h <<\_ACEOF
23119 #define X_DISPLAY_MISSING 1
23122 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23124 if test -n "$x_includes"; then
23125 X_CFLAGS="$X_CFLAGS -I$x_includes"
23128 # It would also be nice to do this for all -L options, not just this one.
23129 if test -n "$x_libraries"; then
23130 X_LIBS="$X_LIBS -L$x_libraries"
23131 # For Solaris; some versions of Sun CC require a space after -R and
23132 # others require no space. Words are not sufficient . . . .
23133 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23134 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
23135 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23136 ac_xsave_c_werror_flag=$ac_c_werror_flag
23137 ac_c_werror_flag=yes
23138 cat >conftest.$ac_ext <<_ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h. */
23153 rm -f conftest.$ac_objext conftest$ac_exeext
23154 if { (ac_try="$ac_link"
23155 case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_link") 2>conftest.er1
23162 grep -v '^ *+' conftest.er1 >conftest.err
23164 cat conftest.err >&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } && {
23167 test -z "$ac_c_werror_flag" ||
23168 test ! -s conftest.err
23169 } && test -s conftest$ac_exeext &&
23170 $as_test_x conftest$ac_exeext; then
23171 { echo "$as_me:$LINENO: result: no" >&5
23172 echo "${ECHO_T}no" >&6; }
23173 X_LIBS="$X_LIBS -R$x_libraries"
23175 echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23178 LIBS="$ac_xsave_LIBS -R $x_libraries"
23179 cat >conftest.$ac_ext <<_ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (ac_try="$ac_link"
23196 case "(($ac_try" in
23197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201 (eval "$ac_link") 2>conftest.er1
23203 grep -v '^ *+' conftest.er1 >conftest.err
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && {
23208 test -z "$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23210 } && test -s conftest$ac_exeext &&
23211 $as_test_x conftest$ac_exeext; then
23212 { echo "$as_me:$LINENO: result: yes" >&5
23213 echo "${ECHO_T}yes" >&6; }
23214 X_LIBS="$X_LIBS -R $x_libraries"
23216 echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23219 { echo "$as_me:$LINENO: result: neither works" >&5
23220 echo "${ECHO_T}neither works" >&6; }
23223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23224 conftest$ac_exeext conftest.$ac_ext
23227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23228 conftest$ac_exeext conftest.$ac_ext
23229 ac_c_werror_flag=$ac_xsave_c_werror_flag
23230 LIBS=$ac_xsave_LIBS
23233 # Check for system-dependent libraries X programs must link with.
23234 # Do this before checking for the system-independent R6 libraries
23235 # (-lICE), since we may need -lsocket or whatever for X linking.
23237 if test "$ISC" = yes; then
23238 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23240 # Martyn Johnson says this is needed for Ultrix, if the X
23241 # libraries were built with DECnet support. And Karl Berry says
23242 # the Alpha needs dnet_stub (dnet does not exist).
23243 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23244 cat >conftest.$ac_ext <<_ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23251 /* Override any GCC internal prototype to avoid an error.
23252 Use char because int might match the return type of a GCC
23253 builtin and then its argument prototype would still apply. */
23257 char XOpenDisplay ();
23261 return XOpenDisplay ();
23266 rm -f conftest.$ac_objext conftest$ac_exeext
23267 if { (ac_try="$ac_link"
23268 case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_link") 2>conftest.er1
23275 grep -v '^ *+' conftest.er1 >conftest.err
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } && {
23280 test -z "$ac_c_werror_flag" ||
23281 test ! -s conftest.err
23282 } && test -s conftest$ac_exeext &&
23283 $as_test_x conftest$ac_exeext; then
23286 echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23289 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23290 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23291 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23292 echo $ECHO_N "(cached) $ECHO_C" >&6
23294 ac_check_lib_save_LIBS=$LIBS
23295 LIBS="-ldnet $LIBS"
23296 cat >conftest.$ac_ext <<_ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23303 /* Override any GCC internal prototype to avoid an error.
23304 Use char because int might match the return type of a GCC
23305 builtin and then its argument prototype would still apply. */
23313 return dnet_ntoa ();
23318 rm -f conftest.$ac_objext conftest$ac_exeext
23319 if { (ac_try="$ac_link"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_link") 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest$ac_exeext &&
23335 $as_test_x conftest$ac_exeext; then
23336 ac_cv_lib_dnet_dnet_ntoa=yes
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23341 ac_cv_lib_dnet_dnet_ntoa=no
23344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23345 conftest$ac_exeext conftest.$ac_ext
23346 LIBS=$ac_check_lib_save_LIBS
23348 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23349 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23350 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23351 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23354 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23355 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23356 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23357 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23358 echo $ECHO_N "(cached) $ECHO_C" >&6
23360 ac_check_lib_save_LIBS=$LIBS
23361 LIBS="-ldnet_stub $LIBS"
23362 cat >conftest.$ac_ext <<_ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23369 /* Override any GCC internal prototype to avoid an error.
23370 Use char because int might match the return type of a GCC
23371 builtin and then its argument prototype would still apply. */
23379 return dnet_ntoa ();
23384 rm -f conftest.$ac_objext conftest$ac_exeext
23385 if { (ac_try="$ac_link"
23386 case "(($ac_try" in
23387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388 *) ac_try_echo=$ac_try;;
23390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23391 (eval "$ac_link") 2>conftest.er1
23393 grep -v '^ *+' conftest.er1 >conftest.err
23395 cat conftest.err >&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } && {
23398 test -z "$ac_c_werror_flag" ||
23399 test ! -s conftest.err
23400 } && test -s conftest$ac_exeext &&
23401 $as_test_x conftest$ac_exeext; then
23402 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ac_cv_lib_dnet_stub_dnet_ntoa=no
23410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23411 conftest$ac_exeext conftest.$ac_ext
23412 LIBS=$ac_check_lib_save_LIBS
23414 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23415 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23416 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23417 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23424 conftest$ac_exeext conftest.$ac_ext
23425 LIBS="$ac_xsave_LIBS"
23427 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23428 # to get the SysV transport functions.
23429 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23431 # The nsl library prevents programs from opening the X display
23432 # on Irix 5.2, according to T.E. Dickey.
23433 # The functions gethostbyname, getservbyname, and inet_addr are
23434 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23435 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23436 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23437 if test "${ac_cv_func_gethostbyname+set}" = set; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23440 cat >conftest.$ac_ext <<_ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23446 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23448 #define gethostbyname innocuous_gethostbyname
23450 /* System header to define __stub macros and hopefully few prototypes,
23451 which can conflict with char gethostbyname (); below.
23452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23453 <limits.h> exists even on freestanding compilers. */
23456 # include <limits.h>
23458 # include <assert.h>
23461 #undef gethostbyname
23463 /* Override any GCC internal prototype to avoid an error.
23464 Use char because int might match the return type of a GCC
23465 builtin and then its argument prototype would still apply. */
23469 char gethostbyname ();
23470 /* The GNU C library defines this for functions which it implements
23471 to always fail with ENOSYS. Some functions are actually named
23472 something starting with __ and the normal name is an alias. */
23473 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23480 return gethostbyname ();
23485 rm -f conftest.$ac_objext conftest$ac_exeext
23486 if { (ac_try="$ac_link"
23487 case "(($ac_try" in
23488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489 *) ac_try_echo=$ac_try;;
23491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23492 (eval "$ac_link") 2>conftest.er1
23494 grep -v '^ *+' conftest.er1 >conftest.err
23496 cat conftest.err >&5
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); } && {
23499 test -z "$ac_c_werror_flag" ||
23500 test ! -s conftest.err
23501 } && test -s conftest$ac_exeext &&
23502 $as_test_x conftest$ac_exeext; then
23503 ac_cv_func_gethostbyname=yes
23505 echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23508 ac_cv_func_gethostbyname=no
23511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23512 conftest$ac_exeext conftest.$ac_ext
23514 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23515 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23517 if test $ac_cv_func_gethostbyname = no; then
23518 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23519 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23520 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23521 echo $ECHO_N "(cached) $ECHO_C" >&6
23523 ac_check_lib_save_LIBS=$LIBS
23525 cat >conftest.$ac_ext <<_ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h. */
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 ();
23542 return gethostbyname ();
23547 rm -f conftest.$ac_objext conftest$ac_exeext
23548 if { (ac_try="$ac_link"
23549 case "(($ac_try" in
23550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551 *) ac_try_echo=$ac_try;;
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554 (eval "$ac_link") 2>conftest.er1
23556 grep -v '^ *+' conftest.er1 >conftest.err
23558 cat conftest.err >&5
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); } && {
23561 test -z "$ac_c_werror_flag" ||
23562 test ! -s conftest.err
23563 } && test -s conftest$ac_exeext &&
23564 $as_test_x conftest$ac_exeext; then
23565 ac_cv_lib_nsl_gethostbyname=yes
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23570 ac_cv_lib_nsl_gethostbyname=no
23573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23574 conftest$ac_exeext conftest.$ac_ext
23575 LIBS=$ac_check_lib_save_LIBS
23577 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23578 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23579 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23580 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23583 if test $ac_cv_lib_nsl_gethostbyname = no; then
23584 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23585 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23586 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23587 echo $ECHO_N "(cached) $ECHO_C" >&6
23589 ac_check_lib_save_LIBS=$LIBS
23591 cat >conftest.$ac_ext <<_ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23598 /* Override any GCC internal prototype to avoid an error.
23599 Use char because int might match the return type of a GCC
23600 builtin and then its argument prototype would still apply. */
23604 char gethostbyname ();
23608 return gethostbyname ();
23613 rm -f conftest.$ac_objext conftest$ac_exeext
23614 if { (ac_try="$ac_link"
23615 case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_link") 2>conftest.er1
23622 grep -v '^ *+' conftest.er1 >conftest.err
23624 cat conftest.err >&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } && {
23627 test -z "$ac_c_werror_flag" ||
23628 test ! -s conftest.err
23629 } && test -s conftest$ac_exeext &&
23630 $as_test_x conftest$ac_exeext; then
23631 ac_cv_lib_bsd_gethostbyname=yes
23633 echo "$as_me: failed program was:" >&5
23634 sed 's/^/| /' conftest.$ac_ext >&5
23636 ac_cv_lib_bsd_gethostbyname=no
23639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23640 conftest$ac_exeext conftest.$ac_ext
23641 LIBS=$ac_check_lib_save_LIBS
23643 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23644 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23645 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23646 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23652 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23653 # socket/setsockopt and other routines are undefined under SCO ODT
23654 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23655 # on later versions), says Simon Leinen: it contains gethostby*
23656 # variants that don't use the name server (or something). -lsocket
23657 # must be given before -lnsl if both are needed. We assume that
23658 # if connect needs -lnsl, so does gethostbyname.
23659 { echo "$as_me:$LINENO: checking for connect" >&5
23660 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23661 if test "${ac_cv_func_connect+set}" = set; then
23662 echo $ECHO_N "(cached) $ECHO_C" >&6
23664 cat >conftest.$ac_ext <<_ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h. */
23670 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23672 #define connect innocuous_connect
23674 /* System header to define __stub macros and hopefully few prototypes,
23675 which can conflict with char connect (); below.
23676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23677 <limits.h> exists even on freestanding compilers. */
23680 # include <limits.h>
23682 # include <assert.h>
23687 /* Override any GCC internal prototype to avoid an error.
23688 Use char because int might match the return type of a GCC
23689 builtin and then its argument prototype would still apply. */
23694 /* The GNU C library defines this for functions which it implements
23695 to always fail with ENOSYS. Some functions are actually named
23696 something starting with __ and the normal name is an alias. */
23697 #if defined __stub_connect || defined __stub___connect
23709 rm -f conftest.$ac_objext conftest$ac_exeext
23710 if { (ac_try="$ac_link"
23711 case "(($ac_try" in
23712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713 *) ac_try_echo=$ac_try;;
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716 (eval "$ac_link") 2>conftest.er1
23718 grep -v '^ *+' conftest.er1 >conftest.err
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } && {
23723 test -z "$ac_c_werror_flag" ||
23724 test ! -s conftest.err
23725 } && test -s conftest$ac_exeext &&
23726 $as_test_x conftest$ac_exeext; then
23727 ac_cv_func_connect=yes
23729 echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23732 ac_cv_func_connect=no
23735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23736 conftest$ac_exeext conftest.$ac_ext
23738 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23739 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23741 if test $ac_cv_func_connect = no; then
23742 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23743 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23744 if test "${ac_cv_lib_socket_connect+set}" = set; then
23745 echo $ECHO_N "(cached) $ECHO_C" >&6
23747 ac_check_lib_save_LIBS=$LIBS
23748 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23749 cat >conftest.$ac_ext <<_ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.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. */
23771 rm -f conftest.$ac_objext conftest$ac_exeext
23772 if { (ac_try="$ac_link"
23773 case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_link") 2>conftest.er1
23780 grep -v '^ *+' conftest.er1 >conftest.err
23782 cat conftest.err >&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } && {
23785 test -z "$ac_c_werror_flag" ||
23786 test ! -s conftest.err
23787 } && test -s conftest$ac_exeext &&
23788 $as_test_x conftest$ac_exeext; then
23789 ac_cv_lib_socket_connect=yes
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23794 ac_cv_lib_socket_connect=no
23797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23798 conftest$ac_exeext conftest.$ac_ext
23799 LIBS=$ac_check_lib_save_LIBS
23801 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23802 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23803 if test $ac_cv_lib_socket_connect = yes; then
23804 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23809 # Guillermo Gomez says -lposix is necessary on A/UX.
23810 { echo "$as_me:$LINENO: checking for remove" >&5
23811 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23812 if test "${ac_cv_func_remove+set}" = set; then
23813 echo $ECHO_N "(cached) $ECHO_C" >&6
23815 cat >conftest.$ac_ext <<_ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23821 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23823 #define remove innocuous_remove
23825 /* System header to define __stub macros and hopefully few prototypes,
23826 which can conflict with char remove (); below.
23827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23828 <limits.h> exists even on freestanding compilers. */
23831 # include <limits.h>
23833 # include <assert.h>
23838 /* Override any GCC internal prototype to avoid an error.
23839 Use char because int might match the return type of a GCC
23840 builtin and then its argument prototype would still apply. */
23845 /* The GNU C library defines this for functions which it implements
23846 to always fail with ENOSYS. Some functions are actually named
23847 something starting with __ and the normal name is an alias. */
23848 #if defined __stub_remove || defined __stub___remove
23860 rm -f conftest.$ac_objext conftest$ac_exeext
23861 if { (ac_try="$ac_link"
23862 case "(($ac_try" in
23863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864 *) ac_try_echo=$ac_try;;
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867 (eval "$ac_link") 2>conftest.er1
23869 grep -v '^ *+' conftest.er1 >conftest.err
23871 cat conftest.err >&5
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); } && {
23874 test -z "$ac_c_werror_flag" ||
23875 test ! -s conftest.err
23876 } && test -s conftest$ac_exeext &&
23877 $as_test_x conftest$ac_exeext; then
23878 ac_cv_func_remove=yes
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883 ac_cv_func_remove=no
23886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23887 conftest$ac_exeext conftest.$ac_ext
23889 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23890 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23892 if test $ac_cv_func_remove = no; then
23893 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23894 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23895 if test "${ac_cv_lib_posix_remove+set}" = set; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23898 ac_check_lib_save_LIBS=$LIBS
23899 LIBS="-lposix $LIBS"
23900 cat >conftest.$ac_ext <<_ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.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. */
23922 rm -f conftest.$ac_objext conftest$ac_exeext
23923 if { (ac_try="$ac_link"
23924 case "(($ac_try" in
23925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926 *) ac_try_echo=$ac_try;;
23928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23929 (eval "$ac_link") 2>conftest.er1
23931 grep -v '^ *+' conftest.er1 >conftest.err
23933 cat conftest.err >&5
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); } && {
23936 test -z "$ac_c_werror_flag" ||
23937 test ! -s conftest.err
23938 } && test -s conftest$ac_exeext &&
23939 $as_test_x conftest$ac_exeext; then
23940 ac_cv_lib_posix_remove=yes
23942 echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23945 ac_cv_lib_posix_remove=no
23948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23949 conftest$ac_exeext conftest.$ac_ext
23950 LIBS=$ac_check_lib_save_LIBS
23952 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23953 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
23954 if test $ac_cv_lib_posix_remove = yes; then
23955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23960 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23961 { echo "$as_me:$LINENO: checking for shmat" >&5
23962 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23963 if test "${ac_cv_func_shmat+set}" = set; then
23964 echo $ECHO_N "(cached) $ECHO_C" >&6
23966 cat >conftest.$ac_ext <<_ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h. */
23972 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23974 #define shmat innocuous_shmat
23976 /* System header to define __stub macros and hopefully few prototypes,
23977 which can conflict with char shmat (); below.
23978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23979 <limits.h> exists even on freestanding compilers. */
23982 # include <limits.h>
23984 # include <assert.h>
23989 /* Override any GCC internal prototype to avoid an error.
23990 Use char because int might match the return type of a GCC
23991 builtin and then its argument prototype would still apply. */
23996 /* The GNU C library defines this for functions which it implements
23997 to always fail with ENOSYS. Some functions are actually named
23998 something starting with __ and the normal name is an alias. */
23999 #if defined __stub_shmat || defined __stub___shmat
24011 rm -f conftest.$ac_objext conftest$ac_exeext
24012 if { (ac_try="$ac_link"
24013 case "(($ac_try" in
24014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24015 *) ac_try_echo=$ac_try;;
24017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24018 (eval "$ac_link") 2>conftest.er1
24020 grep -v '^ *+' conftest.er1 >conftest.err
24022 cat conftest.err >&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } && {
24025 test -z "$ac_c_werror_flag" ||
24026 test ! -s conftest.err
24027 } && test -s conftest$ac_exeext &&
24028 $as_test_x conftest$ac_exeext; then
24029 ac_cv_func_shmat=yes
24031 echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24034 ac_cv_func_shmat=no
24037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24038 conftest$ac_exeext conftest.$ac_ext
24040 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24041 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24043 if test $ac_cv_func_shmat = no; then
24044 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24045 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24046 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24049 ac_check_lib_save_LIBS=$LIBS
24051 cat >conftest.$ac_ext <<_ACEOF
24054 cat confdefs.h >>conftest.$ac_ext
24055 cat >>conftest.$ac_ext <<_ACEOF
24056 /* end confdefs.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. */
24073 rm -f conftest.$ac_objext conftest$ac_exeext
24074 if { (ac_try="$ac_link"
24075 case "(($ac_try" in
24076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077 *) ac_try_echo=$ac_try;;
24079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24080 (eval "$ac_link") 2>conftest.er1
24082 grep -v '^ *+' conftest.er1 >conftest.err
24084 cat conftest.err >&5
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); } && {
24087 test -z "$ac_c_werror_flag" ||
24088 test ! -s conftest.err
24089 } && test -s conftest$ac_exeext &&
24090 $as_test_x conftest$ac_exeext; then
24091 ac_cv_lib_ipc_shmat=yes
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24096 ac_cv_lib_ipc_shmat=no
24099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24100 conftest$ac_exeext conftest.$ac_ext
24101 LIBS=$ac_check_lib_save_LIBS
24103 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24104 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24105 if test $ac_cv_lib_ipc_shmat = yes; then
24106 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24112 # Check for libraries that X11R6 Xt/Xaw programs need.
24113 ac_save_LDFLAGS=$LDFLAGS
24114 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24115 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24116 # check for ICE first), but we must link in the order -lSM -lICE or
24117 # we get undefined symbols. So assume we have SM if we have ICE.
24118 # These have to be linked with before -lX11, unlike the other
24119 # libraries we check for below, so use a different variable.
24120 # John Interrante, Karl Berry
24121 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24122 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
24123 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24126 ac_check_lib_save_LIBS=$LIBS
24127 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24128 cat >conftest.$ac_ext <<_ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24135 /* Override any GCC internal prototype to avoid an error.
24136 Use char because int might match the return type of a GCC
24137 builtin and then its argument prototype would still apply. */
24141 char IceConnectionNumber ();
24145 return IceConnectionNumber ();
24150 rm -f conftest.$ac_objext conftest$ac_exeext
24151 if { (ac_try="$ac_link"
24152 case "(($ac_try" in
24153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24157 (eval "$ac_link") 2>conftest.er1
24159 grep -v '^ *+' conftest.er1 >conftest.err
24161 cat conftest.err >&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); } && {
24164 test -z "$ac_c_werror_flag" ||
24165 test ! -s conftest.err
24166 } && test -s conftest$ac_exeext &&
24167 $as_test_x conftest$ac_exeext; then
24168 ac_cv_lib_ICE_IceConnectionNumber=yes
24170 echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24173 ac_cv_lib_ICE_IceConnectionNumber=no
24176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24177 conftest$ac_exeext conftest.$ac_ext
24178 LIBS=$ac_check_lib_save_LIBS
24180 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24181 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24182 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24183 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24186 LDFLAGS=$ac_save_LDFLAGS
24254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24259 echo $ECHO_N "(cached) $ECHO_C" >&6
24261 ac_res=`eval echo '${'$as_ac_Header'}'`
24262 { echo "$as_me:$LINENO: result: $ac_res" >&5
24263 echo "${ECHO_T}$ac_res" >&6; }
24265 # Is the header compilable?
24266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24268 cat >conftest.$ac_ext <<_ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 $ac_includes_default
24275 #include <$ac_header>
24277 rm -f conftest.$ac_objext
24278 if { (ac_try="$ac_compile"
24279 case "(($ac_try" in
24280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281 *) ac_try_echo=$ac_try;;
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284 (eval "$ac_compile") 2>conftest.er1
24286 grep -v '^ *+' conftest.er1 >conftest.err
24288 cat conftest.err >&5
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } && {
24291 test -z "$ac_c_werror_flag" ||
24292 test ! -s conftest.err
24293 } && test -s conftest.$ac_objext; then
24294 ac_header_compiler=yes
24296 echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24299 ac_header_compiler=no
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24304 echo "${ECHO_T}$ac_header_compiler" >&6; }
24306 # Is the header present?
24307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24309 cat >conftest.$ac_ext <<_ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h. */
24315 #include <$ac_header>
24317 if { (ac_try="$ac_cpp conftest.$ac_ext"
24318 case "(($ac_try" in
24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320 *) ac_try_echo=$ac_try;;
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24325 grep -v '^ *+' conftest.er1 >conftest.err
24327 cat conftest.err >&5
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } >/dev/null && {
24330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24331 test ! -s conftest.err
24333 ac_header_preproc=yes
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24338 ac_header_preproc=no
24341 rm -f conftest.err conftest.$ac_ext
24342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24343 echo "${ECHO_T}$ac_header_preproc" >&6; }
24345 # So? What about this header?
24346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24352 ac_header_preproc=yes
24355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24373 echo $ECHO_N "(cached) $ECHO_C" >&6
24375 eval "$as_ac_Header=\$ac_header_preproc"
24377 ac_res=`eval echo '${'$as_ac_Header'}'`
24378 { echo "$as_me:$LINENO: result: $ac_res" >&5
24379 echo "${ECHO_T}$ac_res" >&6; }
24382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24383 cat >>confdefs.h <<_ACEOF
24384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24391 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24392 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24393 if test "${ac_cv_header_stdc+set}" = set; then
24394 echo $ECHO_N "(cached) $ECHO_C" >&6
24396 cat >conftest.$ac_ext <<_ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24402 #include <stdlib.h>
24403 #include <stdarg.h>
24404 #include <string.h>
24415 rm -f conftest.$ac_objext
24416 if { (ac_try="$ac_compile"
24417 case "(($ac_try" in
24418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419 *) ac_try_echo=$ac_try;;
24421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422 (eval "$ac_compile") 2>conftest.er1
24424 grep -v '^ *+' conftest.er1 >conftest.err
24426 cat conftest.err >&5
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } && {
24429 test -z "$ac_c_werror_flag" ||
24430 test ! -s conftest.err
24431 } && test -s conftest.$ac_objext; then
24432 ac_cv_header_stdc=yes
24434 echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24437 ac_cv_header_stdc=no
24440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24442 if test $ac_cv_header_stdc = yes; then
24443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24444 cat >conftest.$ac_ext <<_ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h. */
24450 #include <string.h>
24453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24454 $EGREP "memchr" >/dev/null 2>&1; then
24457 ac_cv_header_stdc=no
24463 if test $ac_cv_header_stdc = yes; then
24464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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>
24474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24475 $EGREP "free" >/dev/null 2>&1; then
24478 ac_cv_header_stdc=no
24484 if test $ac_cv_header_stdc = yes; then
24485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24486 if test "$cross_compiling" = yes; then
24489 cat >conftest.$ac_ext <<_ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h. */
24496 #include <stdlib.h>
24497 #if ((' ' & 0x0FF) == 0x020)
24498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24501 # define ISLOWER(c) \
24502 (('a' <= (c) && (c) <= 'i') \
24503 || ('j' <= (c) && (c) <= 'r') \
24504 || ('s' <= (c) && (c) <= 'z'))
24505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24513 for (i = 0; i < 256; i++)
24514 if (XOR (islower (i), ISLOWER (i))
24515 || toupper (i) != TOUPPER (i))
24520 rm -f conftest$ac_exeext
24521 if { (ac_try="$ac_link"
24522 case "(($ac_try" in
24523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24524 *) ac_try_echo=$ac_try;;
24526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24527 (eval "$ac_link") 2>&5
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24531 { (case "(($ac_try" in
24532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533 *) ac_try_echo=$ac_try;;
24535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24536 (eval "$ac_try") 2>&5
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); }; }; then
24542 echo "$as_me: program exited with status $ac_status" >&5
24543 echo "$as_me: failed program was:" >&5
24544 sed 's/^/| /' conftest.$ac_ext >&5
24546 ( exit $ac_status )
24547 ac_cv_header_stdc=no
24549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24555 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24556 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
24557 if test $ac_cv_header_stdc = yes; then
24559 cat >>confdefs.h <<\_ACEOF
24560 #define STDC_HEADERS 1
24565 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24566 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
24567 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24568 echo $ECHO_N "(cached) $ECHO_C" >&6
24570 cat >conftest.$ac_ext <<_ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24576 #include <sys/types.h>
24580 return makedev(0, 0);
24585 rm -f conftest.$ac_objext conftest$ac_exeext
24586 if { (ac_try="$ac_link"
24587 case "(($ac_try" in
24588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589 *) ac_try_echo=$ac_try;;
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592 (eval "$ac_link") 2>conftest.er1
24594 grep -v '^ *+' conftest.er1 >conftest.err
24596 cat conftest.err >&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); } && {
24599 test -z "$ac_c_werror_flag" ||
24600 test ! -s conftest.err
24601 } && test -s conftest$ac_exeext &&
24602 $as_test_x conftest$ac_exeext; then
24603 ac_cv_header_sys_types_h_makedev=yes
24605 echo "$as_me: failed program was:" >&5
24606 sed 's/^/| /' conftest.$ac_ext >&5
24608 ac_cv_header_sys_types_h_makedev=no
24611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24612 conftest$ac_exeext conftest.$ac_ext
24615 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24616 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
24618 if test $ac_cv_header_sys_types_h_makedev = no; then
24619 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24620 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24621 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24622 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24625 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24626 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24628 # Is the header compilable?
24629 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24630 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
24631 cat >conftest.$ac_ext <<_ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h. */
24637 $ac_includes_default
24638 #include <sys/mkdev.h>
24640 rm -f conftest.$ac_objext
24641 if { (ac_try="$ac_compile"
24642 case "(($ac_try" in
24643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644 *) ac_try_echo=$ac_try;;
24646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647 (eval "$ac_compile") 2>conftest.er1
24649 grep -v '^ *+' conftest.er1 >conftest.err
24651 cat conftest.err >&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } && {
24654 test -z "$ac_c_werror_flag" ||
24655 test ! -s conftest.err
24656 } && test -s conftest.$ac_objext; then
24657 ac_header_compiler=yes
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24662 ac_header_compiler=no
24665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24667 echo "${ECHO_T}$ac_header_compiler" >&6; }
24669 # Is the header present?
24670 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24671 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
24672 cat >conftest.$ac_ext <<_ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h. */
24678 #include <sys/mkdev.h>
24680 if { (ac_try="$ac_cpp conftest.$ac_ext"
24681 case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24688 grep -v '^ *+' conftest.er1 >conftest.err
24690 cat conftest.err >&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } >/dev/null && {
24693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24694 test ! -s conftest.err
24696 ac_header_preproc=yes
24698 echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24701 ac_header_preproc=no
24704 rm -f conftest.err conftest.$ac_ext
24705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24706 echo "${ECHO_T}$ac_header_preproc" >&6; }
24708 # So? What about this header?
24709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24711 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24712 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24713 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24714 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24715 ac_header_preproc=yes
24718 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24719 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24720 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
24721 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
24722 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24723 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24724 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
24725 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
24726 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24727 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24728 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24729 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24733 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24734 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24735 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24738 ac_cv_header_sys_mkdev_h=$ac_header_preproc
24740 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24741 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24744 if test $ac_cv_header_sys_mkdev_h = yes; then
24746 cat >>confdefs.h <<\_ACEOF
24747 #define MAJOR_IN_MKDEV 1
24754 if test $ac_cv_header_sys_mkdev_h = no; then
24755 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24756 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24757 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24758 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24759 echo $ECHO_N "(cached) $ECHO_C" >&6
24761 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24762 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24764 # Is the header compilable?
24765 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24766 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
24767 cat >conftest.$ac_ext <<_ACEOF
24770 cat confdefs.h >>conftest.$ac_ext
24771 cat >>conftest.$ac_ext <<_ACEOF
24772 /* end confdefs.h. */
24773 $ac_includes_default
24774 #include <sys/sysmacros.h>
24776 rm -f conftest.$ac_objext
24777 if { (ac_try="$ac_compile"
24778 case "(($ac_try" in
24779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780 *) ac_try_echo=$ac_try;;
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783 (eval "$ac_compile") 2>conftest.er1
24785 grep -v '^ *+' conftest.er1 >conftest.err
24787 cat conftest.err >&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } && {
24790 test -z "$ac_c_werror_flag" ||
24791 test ! -s conftest.err
24792 } && test -s conftest.$ac_objext; then
24793 ac_header_compiler=yes
24795 echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24798 ac_header_compiler=no
24801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24803 echo "${ECHO_T}$ac_header_compiler" >&6; }
24805 # Is the header present?
24806 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24807 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
24808 cat >conftest.$ac_ext <<_ACEOF
24811 cat confdefs.h >>conftest.$ac_ext
24812 cat >>conftest.$ac_ext <<_ACEOF
24813 /* end confdefs.h. */
24814 #include <sys/sysmacros.h>
24816 if { (ac_try="$ac_cpp conftest.$ac_ext"
24817 case "(($ac_try" in
24818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24819 *) ac_try_echo=$ac_try;;
24821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24824 grep -v '^ *+' conftest.er1 >conftest.err
24826 cat conftest.err >&5
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); } >/dev/null && {
24829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24830 test ! -s conftest.err
24832 ac_header_preproc=yes
24834 echo "$as_me: failed program was:" >&5
24835 sed 's/^/| /' conftest.$ac_ext >&5
24837 ac_header_preproc=no
24840 rm -f conftest.err conftest.$ac_ext
24841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24842 echo "${ECHO_T}$ac_header_preproc" >&6; }
24844 # So? What about this header?
24845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24847 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24848 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24849 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24850 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24851 ac_header_preproc=yes
24854 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24855 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24856 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
24857 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
24858 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24859 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24860 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
24861 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
24862 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24863 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24864 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24865 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24869 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24870 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24871 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24872 echo $ECHO_N "(cached) $ECHO_C" >&6
24874 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24876 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24877 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24880 if test $ac_cv_header_sys_sysmacros_h = yes; then
24882 cat >>confdefs.h <<\_ACEOF
24883 #define MAJOR_IN_SYSMACROS 1
24897 ac_header_dirent=no
24898 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24899 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24900 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24901 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24903 echo $ECHO_N "(cached) $ECHO_C" >&6
24905 cat >conftest.$ac_ext <<_ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h. */
24911 #include <sys/types.h>
24923 rm -f conftest.$ac_objext
24924 if { (ac_try="$ac_compile"
24925 case "(($ac_try" in
24926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24927 *) ac_try_echo=$ac_try;;
24929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24930 (eval "$ac_compile") 2>conftest.er1
24932 grep -v '^ *+' conftest.er1 >conftest.err
24934 cat conftest.err >&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } && {
24937 test -z "$ac_c_werror_flag" ||
24938 test ! -s conftest.err
24939 } && test -s conftest.$ac_objext; then
24940 eval "$as_ac_Header=yes"
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24945 eval "$as_ac_Header=no"
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24950 ac_res=`eval echo '${'$as_ac_Header'}'`
24951 { echo "$as_me:$LINENO: result: $ac_res" >&5
24952 echo "${ECHO_T}$ac_res" >&6; }
24953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24954 cat >>confdefs.h <<_ACEOF
24955 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24958 ac_header_dirent=$ac_hdr; break
24962 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24963 if test $ac_header_dirent = dirent.h; then
24964 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24965 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24966 if test "${ac_cv_search_opendir+set}" = set; then
24967 echo $ECHO_N "(cached) $ECHO_C" >&6
24969 ac_func_search_save_LIBS=$LIBS
24970 cat >conftest.$ac_ext <<_ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h. */
24977 /* Override any GCC internal prototype to avoid an error.
24978 Use char because int might match the return type of a GCC
24979 builtin and then its argument prototype would still apply. */
24992 for ac_lib in '' dir; do
24993 if test -z "$ac_lib"; then
24994 ac_res="none required"
24997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24999 rm -f conftest.$ac_objext conftest$ac_exeext
25000 if { (ac_try="$ac_link"
25001 case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_link") 2>conftest.er1
25008 grep -v '^ *+' conftest.er1 >conftest.err
25010 cat conftest.err >&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); } && {
25013 test -z "$ac_c_werror_flag" ||
25014 test ! -s conftest.err
25015 } && test -s conftest$ac_exeext &&
25016 $as_test_x conftest$ac_exeext; then
25017 ac_cv_search_opendir=$ac_res
25019 echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25027 if test "${ac_cv_search_opendir+set}" = set; then
25031 if test "${ac_cv_search_opendir+set}" = set; then
25034 ac_cv_search_opendir=no
25036 rm conftest.$ac_ext
25037 LIBS=$ac_func_search_save_LIBS
25039 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25040 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25041 ac_res=$ac_cv_search_opendir
25042 if test "$ac_res" != no; then
25043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25048 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25049 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25050 if test "${ac_cv_search_opendir+set}" = set; then
25051 echo $ECHO_N "(cached) $ECHO_C" >&6
25053 ac_func_search_save_LIBS=$LIBS
25054 cat >conftest.$ac_ext <<_ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h. */
25061 /* Override any GCC internal prototype to avoid an error.
25062 Use char because int might match the return type of a GCC
25063 builtin and then its argument prototype would still apply. */
25076 for ac_lib in '' x; do
25077 if test -z "$ac_lib"; then
25078 ac_res="none required"
25081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25083 rm -f conftest.$ac_objext conftest$ac_exeext
25084 if { (ac_try="$ac_link"
25085 case "(($ac_try" in
25086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087 *) ac_try_echo=$ac_try;;
25089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25090 (eval "$ac_link") 2>conftest.er1
25092 grep -v '^ *+' conftest.er1 >conftest.err
25094 cat conftest.err >&5
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); } && {
25097 test -z "$ac_c_werror_flag" ||
25098 test ! -s conftest.err
25099 } && test -s conftest$ac_exeext &&
25100 $as_test_x conftest$ac_exeext; then
25101 ac_cv_search_opendir=$ac_res
25103 echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25111 if test "${ac_cv_search_opendir+set}" = set; then
25115 if test "${ac_cv_search_opendir+set}" = set; then
25118 ac_cv_search_opendir=no
25120 rm conftest.$ac_ext
25121 LIBS=$ac_func_search_save_LIBS
25123 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25124 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25125 ac_res=$ac_cv_search_opendir
25126 if test "$ac_res" != no; then
25127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25133 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25134 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25135 if test "${ac_cv_header_stat_broken+set}" = set; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25138 cat >conftest.$ac_ext <<_ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h. */
25144 #include <sys/types.h>
25145 #include <sys/stat.h>
25147 #if defined S_ISBLK && defined S_IFDIR
25148 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25151 #if defined S_ISBLK && defined S_IFCHR
25152 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25155 #if defined S_ISLNK && defined S_IFREG
25156 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25159 #if defined S_ISSOCK && defined S_IFREG
25160 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25164 rm -f conftest.$ac_objext
25165 if { (ac_try="$ac_compile"
25166 case "(($ac_try" in
25167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168 *) ac_try_echo=$ac_try;;
25170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25171 (eval "$ac_compile") 2>conftest.er1
25173 grep -v '^ *+' conftest.er1 >conftest.err
25175 cat conftest.err >&5
25176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); } && {
25178 test -z "$ac_c_werror_flag" ||
25179 test ! -s conftest.err
25180 } && test -s conftest.$ac_objext; then
25181 ac_cv_header_stat_broken=no
25183 echo "$as_me: failed program was:" >&5
25184 sed 's/^/| /' conftest.$ac_ext >&5
25186 ac_cv_header_stat_broken=yes
25189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25191 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25192 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25193 if test $ac_cv_header_stat_broken = yes; then
25195 cat >>confdefs.h <<\_ACEOF
25196 #define STAT_MACROS_BROKEN 1
25201 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25202 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
25203 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25204 echo $ECHO_N "(cached) $ECHO_C" >&6
25206 cat >conftest.$ac_ext <<_ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25212 #include <sys/types.h>
25213 #include <sys/wait.h>
25214 #ifndef WEXITSTATUS
25215 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25218 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25226 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25231 rm -f conftest.$ac_objext
25232 if { (ac_try="$ac_compile"
25233 case "(($ac_try" in
25234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25235 *) ac_try_echo=$ac_try;;
25237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25238 (eval "$ac_compile") 2>conftest.er1
25240 grep -v '^ *+' conftest.er1 >conftest.err
25242 cat conftest.err >&5
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); } && {
25245 test -z "$ac_c_werror_flag" ||
25246 test ! -s conftest.err
25247 } && test -s conftest.$ac_objext; then
25248 ac_cv_header_sys_wait_h=yes
25250 echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.$ac_ext >&5
25253 ac_cv_header_sys_wait_h=no
25256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25259 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
25260 if test $ac_cv_header_sys_wait_h = yes; then
25262 cat >>confdefs.h <<\_ACEOF
25263 #define HAVE_SYS_WAIT_H 1
25268 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25269 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25270 if test "${ac_cv_header_time+set}" = set; then
25271 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 cat >conftest.$ac_ext <<_ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h. */
25279 #include <sys/types.h>
25280 #include <sys/time.h>
25286 if ((struct tm *) 0)
25292 rm -f conftest.$ac_objext
25293 if { (ac_try="$ac_compile"
25294 case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_compile") 2>conftest.er1
25301 grep -v '^ *+' conftest.er1 >conftest.err
25303 cat conftest.err >&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); } && {
25306 test -z "$ac_c_werror_flag" ||
25307 test ! -s conftest.err
25308 } && test -s conftest.$ac_objext; then
25309 ac_cv_header_time=yes
25311 echo "$as_me: failed program was:" >&5
25312 sed 's/^/| /' conftest.$ac_ext >&5
25314 ac_cv_header_time=no
25317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25319 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25320 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25321 if test $ac_cv_header_time = yes; then
25323 cat >>confdefs.h <<\_ACEOF
25324 #define TIME_WITH_SYS_TIME 1
25329 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25330 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25331 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25332 echo $ECHO_N "(cached) $ECHO_C" >&6
25334 cat >conftest.$ac_ext <<_ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h. */
25340 $ac_includes_default
25344 static struct stat ac_aggr;
25345 if (ac_aggr.st_blksize)
25351 rm -f conftest.$ac_objext
25352 if { (ac_try="$ac_compile"
25353 case "(($ac_try" in
25354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355 *) ac_try_echo=$ac_try;;
25357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25358 (eval "$ac_compile") 2>conftest.er1
25360 grep -v '^ *+' conftest.er1 >conftest.err
25362 cat conftest.err >&5
25363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); } && {
25365 test -z "$ac_c_werror_flag" ||
25366 test ! -s conftest.err
25367 } && test -s conftest.$ac_objext; then
25368 ac_cv_member_struct_stat_st_blksize=yes
25370 echo "$as_me: failed program was:" >&5
25371 sed 's/^/| /' conftest.$ac_ext >&5
25373 cat >conftest.$ac_ext <<_ACEOF
25376 cat confdefs.h >>conftest.$ac_ext
25377 cat >>conftest.$ac_ext <<_ACEOF
25378 /* end confdefs.h. */
25379 $ac_includes_default
25383 static struct stat ac_aggr;
25384 if (sizeof ac_aggr.st_blksize)
25390 rm -f conftest.$ac_objext
25391 if { (ac_try="$ac_compile"
25392 case "(($ac_try" in
25393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394 *) ac_try_echo=$ac_try;;
25396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397 (eval "$ac_compile") 2>conftest.er1
25399 grep -v '^ *+' conftest.er1 >conftest.err
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } && {
25404 test -z "$ac_c_werror_flag" ||
25405 test ! -s conftest.err
25406 } && test -s conftest.$ac_objext; then
25407 ac_cv_member_struct_stat_st_blksize=yes
25409 echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25412 ac_cv_member_struct_stat_st_blksize=no
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25420 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
25421 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
25422 if test $ac_cv_member_struct_stat_st_blksize = yes; then
25424 cat >>confdefs.h <<_ACEOF
25425 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25429 cat >>confdefs.h <<\_ACEOF
25430 #define HAVE_ST_BLKSIZE 1
25436 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25437 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25438 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25439 echo $ECHO_N "(cached) $ECHO_C" >&6
25441 cat >conftest.$ac_ext <<_ACEOF
25444 cat confdefs.h >>conftest.$ac_ext
25445 cat >>conftest.$ac_ext <<_ACEOF
25446 /* end confdefs.h. */
25447 $ac_includes_default
25451 static struct stat ac_aggr;
25452 if (ac_aggr.st_blocks)
25458 rm -f conftest.$ac_objext
25459 if { (ac_try="$ac_compile"
25460 case "(($ac_try" in
25461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462 *) ac_try_echo=$ac_try;;
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465 (eval "$ac_compile") 2>conftest.er1
25467 grep -v '^ *+' conftest.er1 >conftest.err
25469 cat conftest.err >&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } && {
25472 test -z "$ac_c_werror_flag" ||
25473 test ! -s conftest.err
25474 } && test -s conftest.$ac_objext; then
25475 ac_cv_member_struct_stat_st_blocks=yes
25477 echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25480 cat >conftest.$ac_ext <<_ACEOF
25483 cat confdefs.h >>conftest.$ac_ext
25484 cat >>conftest.$ac_ext <<_ACEOF
25485 /* end confdefs.h. */
25486 $ac_includes_default
25490 static struct stat ac_aggr;
25491 if (sizeof ac_aggr.st_blocks)
25497 rm -f conftest.$ac_objext
25498 if { (ac_try="$ac_compile"
25499 case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_compile") 2>conftest.er1
25506 grep -v '^ *+' conftest.er1 >conftest.err
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } && {
25511 test -z "$ac_c_werror_flag" ||
25512 test ! -s conftest.err
25513 } && test -s conftest.$ac_objext; then
25514 ac_cv_member_struct_stat_st_blocks=yes
25516 echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.$ac_ext >&5
25519 ac_cv_member_struct_stat_st_blocks=no
25522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25527 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25528 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25529 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25531 cat >>confdefs.h <<_ACEOF
25532 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25536 cat >>confdefs.h <<\_ACEOF
25537 #define HAVE_ST_BLOCKS 1
25541 case " $LIBOBJS " in
25542 *" fileblocks.$ac_objext "* ) ;;
25543 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25550 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25551 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25552 if test "${ac_cv_struct_tm+set}" = set; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25555 cat >conftest.$ac_ext <<_ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h. */
25561 #include <sys/types.h>
25568 int *p = &tm.tm_sec;
25574 rm -f conftest.$ac_objext
25575 if { (ac_try="$ac_compile"
25576 case "(($ac_try" in
25577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25578 *) ac_try_echo=$ac_try;;
25580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25581 (eval "$ac_compile") 2>conftest.er1
25583 grep -v '^ *+' conftest.er1 >conftest.err
25585 cat conftest.err >&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } && {
25588 test -z "$ac_c_werror_flag" ||
25589 test ! -s conftest.err
25590 } && test -s conftest.$ac_objext; then
25591 ac_cv_struct_tm=time.h
25593 echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.$ac_ext >&5
25596 ac_cv_struct_tm=sys/time.h
25599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25601 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25602 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25603 if test $ac_cv_struct_tm = sys/time.h; then
25605 cat >>confdefs.h <<\_ACEOF
25606 #define TM_IN_SYS_TIME 1
25611 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25612 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
25613 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25614 echo $ECHO_N "(cached) $ECHO_C" >&6
25616 cat >conftest.$ac_ext <<_ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25622 #include <sys/types.h>
25623 #include <$ac_cv_struct_tm>
25629 static struct tm ac_aggr;
25630 if (ac_aggr.tm_zone)
25636 rm -f conftest.$ac_objext
25637 if { (ac_try="$ac_compile"
25638 case "(($ac_try" in
25639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25643 (eval "$ac_compile") 2>conftest.er1
25645 grep -v '^ *+' conftest.er1 >conftest.err
25647 cat conftest.err >&5
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); } && {
25650 test -z "$ac_c_werror_flag" ||
25651 test ! -s conftest.err
25652 } && test -s conftest.$ac_objext; then
25653 ac_cv_member_struct_tm_tm_zone=yes
25655 echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25658 cat >conftest.$ac_ext <<_ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h. */
25664 #include <sys/types.h>
25665 #include <$ac_cv_struct_tm>
25671 static struct tm ac_aggr;
25672 if (sizeof ac_aggr.tm_zone)
25678 rm -f conftest.$ac_objext
25679 if { (ac_try="$ac_compile"
25680 case "(($ac_try" in
25681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25682 *) ac_try_echo=$ac_try;;
25684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25685 (eval "$ac_compile") 2>conftest.er1
25687 grep -v '^ *+' conftest.er1 >conftest.err
25689 cat conftest.err >&5
25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); } && {
25692 test -z "$ac_c_werror_flag" ||
25693 test ! -s conftest.err
25694 } && test -s conftest.$ac_objext; then
25695 ac_cv_member_struct_tm_tm_zone=yes
25697 echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25700 ac_cv_member_struct_tm_tm_zone=no
25703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25708 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25709 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25710 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25712 cat >>confdefs.h <<_ACEOF
25713 #define HAVE_STRUCT_TM_TM_ZONE 1
25719 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25721 cat >>confdefs.h <<\_ACEOF
25722 #define HAVE_TM_ZONE 1
25726 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25727 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
25728 if test "${ac_cv_have_decl_tzname+set}" = set; then
25729 echo $ECHO_N "(cached) $ECHO_C" >&6
25731 cat >conftest.$ac_ext <<_ACEOF
25734 cat confdefs.h >>conftest.$ac_ext
25735 cat >>conftest.$ac_ext <<_ACEOF
25736 /* end confdefs.h. */
25750 rm -f conftest.$ac_objext
25751 if { (ac_try="$ac_compile"
25752 case "(($ac_try" in
25753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25754 *) ac_try_echo=$ac_try;;
25756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25757 (eval "$ac_compile") 2>conftest.er1
25759 grep -v '^ *+' conftest.er1 >conftest.err
25761 cat conftest.err >&5
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); } && {
25764 test -z "$ac_c_werror_flag" ||
25765 test ! -s conftest.err
25766 } && test -s conftest.$ac_objext; then
25767 ac_cv_have_decl_tzname=yes
25769 echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25772 ac_cv_have_decl_tzname=no
25775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25777 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25778 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25779 if test $ac_cv_have_decl_tzname = yes; then
25781 cat >>confdefs.h <<_ACEOF
25782 #define HAVE_DECL_TZNAME 1
25787 cat >>confdefs.h <<_ACEOF
25788 #define HAVE_DECL_TZNAME 0
25795 { echo "$as_me:$LINENO: checking for tzname" >&5
25796 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
25797 if test "${ac_cv_var_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. */
25807 #if !HAVE_DECL_TZNAME
25808 extern char *tzname[];
25814 return tzname[0][0];
25819 rm -f conftest.$ac_objext conftest$ac_exeext
25820 if { (ac_try="$ac_link"
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_link") 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_exeext &&
25836 $as_test_x conftest$ac_exeext; then
25837 ac_cv_var_tzname=yes
25839 echo "$as_me: failed program was:" >&5
25840 sed 's/^/| /' conftest.$ac_ext >&5
25842 ac_cv_var_tzname=no
25845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25846 conftest$ac_exeext conftest.$ac_ext
25848 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25849 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25850 if test $ac_cv_var_tzname = yes; then
25852 cat >>confdefs.h <<\_ACEOF
25853 #define HAVE_TZNAME 1
25860 { echo "$as_me:$LINENO: checking for utime.h" >&5
25861 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
25862 if test "${ba_cv_header_utime_h+set}" = set; then
25863 echo $ECHO_N "(cached) $ECHO_C" >&6
25865 cat >conftest.$ac_ext <<_ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h. */
25872 #include <sys/types.h>
25882 rm -f conftest.$ac_objext
25883 if { (ac_try="$ac_compile"
25884 case "(($ac_try" in
25885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25886 *) ac_try_echo=$ac_try;;
25888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25889 (eval "$ac_compile") 2>conftest.er1
25891 grep -v '^ *+' conftest.er1 >conftest.err
25893 cat conftest.err >&5
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); } && {
25896 test -z "$ac_c_werror_flag" ||
25897 test ! -s conftest.err
25898 } && test -s conftest.$ac_objext; then
25899 ba_cv_header_utime_h=yes
25901 echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25904 ba_cv_header_utime_h=no
25907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25909 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
25910 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
25911 test $ba_cv_header_utime_h = yes &&
25912 cat >>confdefs.h <<\_ACEOF
25913 #define HAVE_UTIME_H 1
25917 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25918 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25919 if test "${ba_cv_header_socklen_t+set}" = set; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25922 cat >conftest.$ac_ext <<_ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25929 #include <sys/types.h>
25930 #include <sys/socket.h>
25939 rm -f conftest.$ac_objext
25940 if { (ac_try="$ac_compile"
25941 case "(($ac_try" in
25942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25943 *) ac_try_echo=$ac_try;;
25945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25946 (eval "$ac_compile") 2>conftest.er1
25948 grep -v '^ *+' conftest.er1 >conftest.err
25950 cat conftest.err >&5
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); } && {
25953 test -z "$ac_c_werror_flag" ||
25954 test ! -s conftest.err
25955 } && test -s conftest.$ac_objext; then
25956 ba_cv_header_socklen_t=yes
25958 echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25961 ba_cv_header_socklen_t=no
25964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25966 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
25967 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
25968 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
25969 #define HAVE_SOCKLEN_T 1
25973 { echo "$as_me:$LINENO: checking for bigendian" >&5
25974 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
25975 if test "${ba_cv_bigendian+set}" = set; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25978 if test "$cross_compiling" = yes; then
25981 cat >conftest.$ac_ext <<_ACEOF
25984 cat confdefs.h >>conftest.$ac_ext
25985 cat >>conftest.$ac_ext <<_ACEOF
25986 /* end confdefs.h. */
25987 main(){long a=1L; char *p=(char *)&a; exit(*p);}
25989 rm -f conftest$ac_exeext
25990 if { (ac_try="$ac_link"
25991 case "(($ac_try" in
25992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993 *) ac_try_echo=$ac_try;;
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996 (eval "$ac_link") 2>&5
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26000 { (case "(($ac_try" in
26001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002 *) ac_try_echo=$ac_try;;
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005 (eval "$ac_try") 2>&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); }; }; then
26009 ba_cv_bigendian=yes
26011 echo "$as_me: program exited with status $ac_status" >&5
26012 echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26015 ( exit $ac_status )
26018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26023 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
26024 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
26025 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
26026 #define HAVE_BIGENDIAN 1
26031 ac_cpp='$CXXCPP $CPPFLAGS'
26032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26037 { echo "$as_me:$LINENO: checking for typeof" >&5
26038 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
26039 if test "${ba_cv_have_typeof+set}" = set; then
26040 echo $ECHO_N "(cached) $ECHO_C" >&6
26042 if test "$cross_compiling" = yes; then
26043 ba_cv_have_typeof=no
26045 cat >conftest.$ac_ext <<_ACEOF
26048 cat confdefs.h >>conftest.$ac_ext
26049 cat >>conftest.$ac_ext <<_ACEOF
26050 /* end confdefs.h. */
26051 main(){char *a = 0; a = (typeof a)a;}
26053 rm -f conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_link") 2>&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26064 { (case "(($ac_try" in
26065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066 *) ac_try_echo=$ac_try;;
26068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26069 (eval "$ac_try") 2>&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 ba_cv_have_typeof=yes
26075 echo "$as_me: program exited with status $ac_status" >&5
26076 echo "$as_me: failed program was:" >&5
26077 sed 's/^/| /' conftest.$ac_ext >&5
26079 ( exit $ac_status )
26080 ba_cv_have_typeof=no
26082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26087 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
26088 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
26089 test $ba_cv_have_typeof = yes &&
26090 cat >>confdefs.h <<\_ACEOF
26091 #define HAVE_TYPEOF 1
26095 ac_cpp='$CPP $CPPFLAGS'
26096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26101 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26102 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
26103 if test "${ac_cv_c_const+set}" = set; then
26104 echo $ECHO_N "(cached) $ECHO_C" >&6
26106 cat >conftest.$ac_ext <<_ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h. */
26116 /* FIXME: Include the comments suggested by Paul. */
26117 #ifndef __cplusplus
26118 /* Ultrix mips cc rejects this. */
26119 typedef int charset[2];
26121 /* SunOS 4.1.1 cc rejects this. */
26122 char const *const *pcpcc;
26124 /* NEC SVR4.0.2 mips cc rejects this. */
26125 struct point {int x, y;};
26126 static struct point const zero = {0,0};
26127 /* AIX XL C 1.02.0.0 rejects this.
26128 It does not let you subtract one const X* pointer from another in
26129 an arm of an if-expression whose if-part is not a constant
26131 const char *g = "string";
26132 pcpcc = &g + (g ? g-g : 0);
26133 /* HPUX 7.0 cc rejects these. */
26135 ppc = (char**) pcpcc;
26136 pcpcc = (char const *const *) ppc;
26137 { /* SCO 3.2v4 cc rejects this. */
26139 char const *s = 0 ? (char *) 0 : (char const *) 0;
26144 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26145 int x[] = {25, 17};
26146 const int *foo = &x[0];
26149 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26150 typedef const int *iptr;
26154 { /* AIX XL C 1.02.0.0 rejects this saying
26155 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26156 struct s { int j; const int *ap[3]; };
26157 struct s *b; b->j = 5;
26159 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26160 const int foo = 10;
26161 if (!foo) return 0;
26163 return !cs[0] && !zero.x;
26170 rm -f conftest.$ac_objext
26171 if { (ac_try="$ac_compile"
26172 case "(($ac_try" in
26173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26174 *) ac_try_echo=$ac_try;;
26176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26177 (eval "$ac_compile") 2>conftest.er1
26179 grep -v '^ *+' conftest.er1 >conftest.err
26181 cat conftest.err >&5
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); } && {
26184 test -z "$ac_c_werror_flag" ||
26185 test ! -s conftest.err
26186 } && test -s conftest.$ac_objext; then
26189 echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26197 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26198 echo "${ECHO_T}$ac_cv_c_const" >&6; }
26199 if test $ac_cv_c_const = no; then
26201 cat >>confdefs.h <<\_ACEOF
26209 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
26210 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
26212 # The order of these tests is important.
26213 cat >conftest.$ac_ext <<_ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h. */
26219 #include <sys/statvfs.h>
26220 #include <sys/fstyp.h>
26222 if { (ac_try="$ac_cpp conftest.$ac_ext"
26223 case "(($ac_try" in
26224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225 *) ac_try_echo=$ac_try;;
26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26230 grep -v '^ *+' conftest.er1 >conftest.err
26232 cat conftest.err >&5
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); } >/dev/null && {
26235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26236 test ! -s conftest.err
26238 cat >>confdefs.h <<\_ACEOF
26239 #define FSTYPE_STATVFS 1
26243 echo "$as_me: failed program was:" >&5
26244 sed 's/^/| /' conftest.$ac_ext >&5
26249 rm -f conftest.err conftest.$ac_ext
26250 if test $fstype = no; then
26251 cat >conftest.$ac_ext <<_ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h. */
26257 #include <sys/statfs.h>
26258 #include <sys/fstyp.h>
26260 if { (ac_try="$ac_cpp conftest.$ac_ext"
26261 case "(($ac_try" in
26262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26263 *) ac_try_echo=$ac_try;;
26265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26268 grep -v '^ *+' conftest.er1 >conftest.err
26270 cat conftest.err >&5
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } >/dev/null && {
26273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26274 test ! -s conftest.err
26276 cat >>confdefs.h <<\_ACEOF
26277 #define FSTYPE_USG_STATFS 1
26281 echo "$as_me: failed program was:" >&5
26282 sed 's/^/| /' conftest.$ac_ext >&5
26287 rm -f conftest.err conftest.$ac_ext
26289 if test $fstype = no; then
26290 cat >conftest.$ac_ext <<_ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h. */
26296 #include <sys/statfs.h>
26297 #include <sys/vmount.h>
26299 if { (ac_try="$ac_cpp conftest.$ac_ext"
26300 case "(($ac_try" in
26301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302 *) ac_try_echo=$ac_try;;
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26307 grep -v '^ *+' conftest.er1 >conftest.err
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } >/dev/null && {
26312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26313 test ! -s conftest.err
26315 cat >>confdefs.h <<\_ACEOF
26316 #define FSTYPE_AIX_STATFS 1
26320 echo "$as_me: failed program was:" >&5
26321 sed 's/^/| /' conftest.$ac_ext >&5
26326 rm -f conftest.err conftest.$ac_ext
26328 if test $fstype = no; then
26329 cat >conftest.$ac_ext <<_ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h. */
26335 #include <mntent.h>
26337 if { (ac_try="$ac_cpp conftest.$ac_ext"
26338 case "(($ac_try" in
26339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26340 *) ac_try_echo=$ac_try;;
26342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26345 grep -v '^ *+' conftest.er1 >conftest.err
26347 cat conftest.err >&5
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); } >/dev/null && {
26350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26351 test ! -s conftest.err
26353 cat >>confdefs.h <<\_ACEOF
26354 #define FSTYPE_MNTENT 1
26358 echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26364 rm -f conftest.err conftest.$ac_ext
26366 if test $fstype = no; then
26367 cat >conftest.$ac_ext <<_ACEOF
26370 cat confdefs.h >>conftest.$ac_ext
26371 cat >>conftest.$ac_ext <<_ACEOF
26372 /* end confdefs.h. */
26373 #include <sys/mount.h>
26376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26377 $EGREP "f_type;" >/dev/null 2>&1; then
26378 cat >>confdefs.h <<\_ACEOF
26379 #define FSTYPE_STATFS 1
26386 if test $fstype = no; then
26387 cat >conftest.$ac_ext <<_ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h. */
26393 #include <sys/mount.h>
26394 #include <sys/fs_types.h>
26396 if { (ac_try="$ac_cpp conftest.$ac_ext"
26397 case "(($ac_try" in
26398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399 *) ac_try_echo=$ac_try;;
26401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26404 grep -v '^ *+' conftest.er1 >conftest.err
26406 cat conftest.err >&5
26407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); } >/dev/null && {
26409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26410 test ! -s conftest.err
26412 cat >>confdefs.h <<\_ACEOF
26413 #define FSTYPE_GETMNT 1
26417 echo "$as_me: failed program was:" >&5
26418 sed 's/^/| /' conftest.$ac_ext >&5
26423 rm -f conftest.err conftest.$ac_ext
26425 { echo "$as_me:$LINENO: result: $fstype" >&5
26426 echo "${ECHO_T}$fstype" >&6; }
26428 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26429 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26430 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26431 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26432 echo $ECHO_N "(cached) $ECHO_C" >&6
26434 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26435 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26437 # Is the header compilable?
26438 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
26439 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
26440 cat >conftest.$ac_ext <<_ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h. */
26446 $ac_includes_default
26447 #include <sys/statvfs.h>
26449 rm -f conftest.$ac_objext
26450 if { (ac_try="$ac_compile"
26451 case "(($ac_try" in
26452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453 *) ac_try_echo=$ac_try;;
26455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26456 (eval "$ac_compile") 2>conftest.er1
26458 grep -v '^ *+' conftest.er1 >conftest.err
26460 cat conftest.err >&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); } && {
26463 test -z "$ac_c_werror_flag" ||
26464 test ! -s conftest.err
26465 } && test -s conftest.$ac_objext; then
26466 ac_header_compiler=yes
26468 echo "$as_me: failed program was:" >&5
26469 sed 's/^/| /' conftest.$ac_ext >&5
26471 ac_header_compiler=no
26474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26476 echo "${ECHO_T}$ac_header_compiler" >&6; }
26478 # Is the header present?
26479 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
26480 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
26481 cat >conftest.$ac_ext <<_ACEOF
26484 cat confdefs.h >>conftest.$ac_ext
26485 cat >>conftest.$ac_ext <<_ACEOF
26486 /* end confdefs.h. */
26487 #include <sys/statvfs.h>
26489 if { (ac_try="$ac_cpp conftest.$ac_ext"
26490 case "(($ac_try" in
26491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492 *) ac_try_echo=$ac_try;;
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26497 grep -v '^ *+' conftest.er1 >conftest.err
26499 cat conftest.err >&5
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); } >/dev/null && {
26502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26503 test ! -s conftest.err
26505 ac_header_preproc=yes
26507 echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26510 ac_header_preproc=no
26513 rm -f conftest.err conftest.$ac_ext
26514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26515 echo "${ECHO_T}$ac_header_preproc" >&6; }
26517 # So? What about this header?
26518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26520 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26521 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26522 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
26523 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
26524 ac_header_preproc=yes
26527 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
26528 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
26529 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
26530 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
26531 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
26532 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
26533 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
26534 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
26535 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
26536 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
26537 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
26538 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
26542 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26543 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26544 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26545 echo $ECHO_N "(cached) $ECHO_C" >&6
26547 ac_cv_header_sys_statvfs_h=$ac_header_preproc
26549 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26550 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26553 if test $ac_cv_header_sys_statvfs_h = yes; then
26555 cat >>confdefs.h <<\_ACEOF
26556 #define HAVE_SYS_STATVFS_H 1
26563 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26564 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26565 if test "${ac_cv_type_signal+set}" = set; then
26566 echo $ECHO_N "(cached) $ECHO_C" >&6
26568 cat >conftest.$ac_ext <<_ACEOF
26571 cat confdefs.h >>conftest.$ac_ext
26572 cat >>conftest.$ac_ext <<_ACEOF
26573 /* end confdefs.h. */
26574 #include <sys/types.h>
26575 #include <signal.h>
26580 return *(signal (0, 0)) (0) == 1;
26585 rm -f conftest.$ac_objext
26586 if { (ac_try="$ac_compile"
26587 case "(($ac_try" in
26588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26589 *) ac_try_echo=$ac_try;;
26591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26592 (eval "$ac_compile") 2>conftest.er1
26594 grep -v '^ *+' conftest.er1 >conftest.err
26596 cat conftest.err >&5
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); } && {
26599 test -z "$ac_c_werror_flag" ||
26600 test ! -s conftest.err
26601 } && test -s conftest.$ac_objext; then
26602 ac_cv_type_signal=int
26604 echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26607 ac_cv_type_signal=void
26610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26612 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26613 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26615 cat >>confdefs.h <<_ACEOF
26616 #define RETSIGTYPE $ac_cv_type_signal
26621 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
26622 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
26623 if test "${bash_cv_signal_vintage+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26627 cat >conftest.$ac_ext <<_ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h. */
26633 #include <signal.h>
26639 struct sigaction sa;
26640 sigemptyset(&ss); sigsuspend(&ss);
26641 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26642 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26648 rm -f conftest.$ac_objext conftest$ac_exeext
26649 if { (ac_try="$ac_link"
26650 case "(($ac_try" in
26651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26652 *) ac_try_echo=$ac_try;;
26654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26655 (eval "$ac_link") 2>conftest.er1
26657 grep -v '^ *+' conftest.er1 >conftest.err
26659 cat conftest.err >&5
26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); } && {
26662 test -z "$ac_c_werror_flag" ||
26663 test ! -s conftest.err
26664 } && test -s conftest$ac_exeext &&
26665 $as_test_x conftest$ac_exeext; then
26666 bash_cv_signal_vintage="posix"
26668 echo "$as_me: failed program was:" >&5
26669 sed 's/^/| /' conftest.$ac_ext >&5
26672 cat >conftest.$ac_ext <<_ACEOF
26675 cat confdefs.h >>conftest.$ac_ext
26676 cat >>conftest.$ac_ext <<_ACEOF
26677 /* end confdefs.h. */
26678 #include <signal.h>
26683 int mask = sigmask(SIGINT);
26684 sigsetmask(mask); sigblock(mask); sigpause(mask);
26690 rm -f conftest.$ac_objext conftest$ac_exeext
26691 if { (ac_try="$ac_link"
26692 case "(($ac_try" in
26693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694 *) ac_try_echo=$ac_try;;
26696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26697 (eval "$ac_link") 2>conftest.er1
26699 grep -v '^ *+' conftest.er1 >conftest.err
26701 cat conftest.err >&5
26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); } && {
26704 test -z "$ac_c_werror_flag" ||
26705 test ! -s conftest.err
26706 } && test -s conftest$ac_exeext &&
26707 $as_test_x conftest$ac_exeext; then
26708 bash_cv_signal_vintage="4.2bsd"
26710 echo "$as_me: failed program was:" >&5
26711 sed 's/^/| /' conftest.$ac_ext >&5
26714 cat >conftest.$ac_ext <<_ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h. */
26721 #include <signal.h>
26722 RETSIGTYPE foo() { }
26727 int mask = sigmask(SIGINT);
26728 sigset(SIGINT, foo); sigrelse(SIGINT);
26729 sighold(SIGINT); sigpause(SIGINT);
26735 rm -f conftest.$ac_objext conftest$ac_exeext
26736 if { (ac_try="$ac_link"
26737 case "(($ac_try" in
26738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739 *) ac_try_echo=$ac_try;;
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742 (eval "$ac_link") 2>conftest.er1
26744 grep -v '^ *+' conftest.er1 >conftest.err
26746 cat conftest.err >&5
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); } && {
26749 test -z "$ac_c_werror_flag" ||
26750 test ! -s conftest.err
26751 } && test -s conftest$ac_exeext &&
26752 $as_test_x conftest$ac_exeext; then
26753 bash_cv_signal_vintage="svr3"
26755 echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26758 bash_cv_signal_vintage="v7"
26762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26763 conftest$ac_exeext conftest.$ac_ext
26767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26768 conftest$ac_exeext conftest.$ac_ext
26772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26773 conftest$ac_exeext conftest.$ac_ext
26777 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26778 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
26779 if test "$bash_cv_signal_vintage" = "posix"; then
26780 cat >>confdefs.h <<\_ACEOF
26781 #define HAVE_POSIX_SIGNALS 1
26784 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26785 cat >>confdefs.h <<\_ACEOF
26786 #define HAVE_BSD_SIGNALS 1
26789 elif test "$bash_cv_signal_vintage" = "svr3"; then
26790 cat >>confdefs.h <<\_ACEOF
26791 #define HAVE_USG_SIGHOLD 1
26796 { echo "$as_me:$LINENO: checking for mode_t" >&5
26797 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
26798 if test "${ac_cv_type_mode_t+set}" = set; then
26799 echo $ECHO_N "(cached) $ECHO_C" >&6
26801 cat >conftest.$ac_ext <<_ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h. */
26807 $ac_includes_default
26808 typedef mode_t ac__type_new_;
26812 if ((ac__type_new_ *) 0)
26814 if (sizeof (ac__type_new_))
26820 rm -f conftest.$ac_objext
26821 if { (ac_try="$ac_compile"
26822 case "(($ac_try" in
26823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824 *) ac_try_echo=$ac_try;;
26826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26827 (eval "$ac_compile") 2>conftest.er1
26829 grep -v '^ *+' conftest.er1 >conftest.err
26831 cat conftest.err >&5
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); } && {
26834 test -z "$ac_c_werror_flag" ||
26835 test ! -s conftest.err
26836 } && test -s conftest.$ac_objext; then
26837 ac_cv_type_mode_t=yes
26839 echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26842 ac_cv_type_mode_t=no
26845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26847 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26848 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
26849 if test $ac_cv_type_mode_t = yes; then
26853 cat >>confdefs.h <<_ACEOF
26859 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26860 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
26861 if test "${ac_cv_type_uid_t+set}" = set; then
26862 echo $ECHO_N "(cached) $ECHO_C" >&6
26864 cat >conftest.$ac_ext <<_ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h. */
26870 #include <sys/types.h>
26873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26874 $EGREP "uid_t" >/dev/null 2>&1; then
26875 ac_cv_type_uid_t=yes
26877 ac_cv_type_uid_t=no
26882 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26883 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
26884 if test $ac_cv_type_uid_t = no; then
26886 cat >>confdefs.h <<\_ACEOF
26891 cat >>confdefs.h <<\_ACEOF
26897 { echo "$as_me:$LINENO: checking for size_t" >&5
26898 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
26899 if test "${ac_cv_type_size_t+set}" = set; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26902 cat >conftest.$ac_ext <<_ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h. */
26908 $ac_includes_default
26909 typedef size_t ac__type_new_;
26913 if ((ac__type_new_ *) 0)
26915 if (sizeof (ac__type_new_))
26921 rm -f conftest.$ac_objext
26922 if { (ac_try="$ac_compile"
26923 case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_compile") 2>conftest.er1
26930 grep -v '^ *+' conftest.er1 >conftest.err
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } && {
26935 test -z "$ac_c_werror_flag" ||
26936 test ! -s conftest.err
26937 } && test -s conftest.$ac_objext; then
26938 ac_cv_type_size_t=yes
26940 echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26943 ac_cv_type_size_t=no
26946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26948 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26949 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
26950 if test $ac_cv_type_size_t = yes; then
26954 cat >>confdefs.h <<_ACEOF
26955 #define size_t unsigned int
26960 { echo "$as_me:$LINENO: checking for pid_t" >&5
26961 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
26962 if test "${ac_cv_type_pid_t+set}" = set; then
26963 echo $ECHO_N "(cached) $ECHO_C" >&6
26965 cat >conftest.$ac_ext <<_ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h. */
26971 $ac_includes_default
26972 typedef pid_t ac__type_new_;
26976 if ((ac__type_new_ *) 0)
26978 if (sizeof (ac__type_new_))
26984 rm -f conftest.$ac_objext
26985 if { (ac_try="$ac_compile"
26986 case "(($ac_try" in
26987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26988 *) ac_try_echo=$ac_try;;
26990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26991 (eval "$ac_compile") 2>conftest.er1
26993 grep -v '^ *+' conftest.er1 >conftest.err
26995 cat conftest.err >&5
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); } && {
26998 test -z "$ac_c_werror_flag" ||
26999 test ! -s conftest.err
27000 } && test -s conftest.$ac_objext; then
27001 ac_cv_type_pid_t=yes
27003 echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27006 ac_cv_type_pid_t=no
27009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27011 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27012 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
27013 if test $ac_cv_type_pid_t = yes; then
27017 cat >>confdefs.h <<_ACEOF
27023 { echo "$as_me:$LINENO: checking for off_t" >&5
27024 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
27025 if test "${ac_cv_type_off_t+set}" = set; then
27026 echo $ECHO_N "(cached) $ECHO_C" >&6
27028 cat >conftest.$ac_ext <<_ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h. */
27034 $ac_includes_default
27035 typedef off_t ac__type_new_;
27039 if ((ac__type_new_ *) 0)
27041 if (sizeof (ac__type_new_))
27047 rm -f conftest.$ac_objext
27048 if { (ac_try="$ac_compile"
27049 case "(($ac_try" in
27050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051 *) ac_try_echo=$ac_try;;
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054 (eval "$ac_compile") 2>conftest.er1
27056 grep -v '^ *+' conftest.er1 >conftest.err
27058 cat conftest.err >&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } && {
27061 test -z "$ac_c_werror_flag" ||
27062 test ! -s conftest.err
27063 } && test -s conftest.$ac_objext; then
27064 ac_cv_type_off_t=yes
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27069 ac_cv_type_off_t=no
27072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27074 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27075 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
27076 if test $ac_cv_type_off_t = yes; then
27080 cat >>confdefs.h <<_ACEOF
27081 #define off_t long int
27086 { echo "$as_me:$LINENO: checking for ino_t" >&5
27087 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
27088 if test "${ac_cv_type_ino_t+set}" = set; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27091 cat >conftest.$ac_ext <<_ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h. */
27097 $ac_includes_default
27098 typedef ino_t ac__type_new_;
27102 if ((ac__type_new_ *) 0)
27104 if (sizeof (ac__type_new_))
27110 rm -f conftest.$ac_objext
27111 if { (ac_try="$ac_compile"
27112 case "(($ac_try" in
27113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114 *) ac_try_echo=$ac_try;;
27116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27117 (eval "$ac_compile") 2>conftest.er1
27119 grep -v '^ *+' conftest.er1 >conftest.err
27121 cat conftest.err >&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } && {
27124 test -z "$ac_c_werror_flag" ||
27125 test ! -s conftest.err
27126 } && test -s conftest.$ac_objext; then
27127 ac_cv_type_ino_t=yes
27129 echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27132 ac_cv_type_ino_t=no
27135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27137 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
27138 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
27139 if test $ac_cv_type_ino_t = yes; then
27143 cat >>confdefs.h <<_ACEOF
27144 #define ino_t unsigned long
27149 { echo "$as_me:$LINENO: checking for dev_t" >&5
27150 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
27151 if test "${ac_cv_type_dev_t+set}" = set; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27154 cat >conftest.$ac_ext <<_ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h. */
27160 $ac_includes_default
27161 typedef dev_t ac__type_new_;
27165 if ((ac__type_new_ *) 0)
27167 if (sizeof (ac__type_new_))
27173 rm -f conftest.$ac_objext
27174 if { (ac_try="$ac_compile"
27175 case "(($ac_try" in
27176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27177 *) ac_try_echo=$ac_try;;
27179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27180 (eval "$ac_compile") 2>conftest.er1
27182 grep -v '^ *+' conftest.er1 >conftest.err
27184 cat conftest.err >&5
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); } && {
27187 test -z "$ac_c_werror_flag" ||
27188 test ! -s conftest.err
27189 } && test -s conftest.$ac_objext; then
27190 ac_cv_type_dev_t=yes
27192 echo "$as_me: failed program was:" >&5
27193 sed 's/^/| /' conftest.$ac_ext >&5
27195 ac_cv_type_dev_t=no
27198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27200 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
27201 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
27202 if test $ac_cv_type_dev_t = yes; then
27206 cat >>confdefs.h <<_ACEOF
27207 #define dev_t unsigned long
27212 { echo "$as_me:$LINENO: checking for daddr_t" >&5
27213 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
27214 if test "${ac_cv_type_daddr_t+set}" = set; then
27215 echo $ECHO_N "(cached) $ECHO_C" >&6
27217 cat >conftest.$ac_ext <<_ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h. */
27223 $ac_includes_default
27224 typedef daddr_t ac__type_new_;
27228 if ((ac__type_new_ *) 0)
27230 if (sizeof (ac__type_new_))
27236 rm -f conftest.$ac_objext
27237 if { (ac_try="$ac_compile"
27238 case "(($ac_try" in
27239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240 *) ac_try_echo=$ac_try;;
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243 (eval "$ac_compile") 2>conftest.er1
27245 grep -v '^ *+' conftest.er1 >conftest.err
27247 cat conftest.err >&5
27248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249 (exit $ac_status); } && {
27250 test -z "$ac_c_werror_flag" ||
27251 test ! -s conftest.err
27252 } && test -s conftest.$ac_objext; then
27253 ac_cv_type_daddr_t=yes
27255 echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27258 ac_cv_type_daddr_t=no
27261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27263 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
27264 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
27265 if test $ac_cv_type_daddr_t = yes; then
27269 cat >>confdefs.h <<_ACEOF
27270 #define daddr_t long
27275 { echo "$as_me:$LINENO: checking for major_t" >&5
27276 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
27277 if test "${ac_cv_type_major_t+set}" = set; then
27278 echo $ECHO_N "(cached) $ECHO_C" >&6
27280 cat >conftest.$ac_ext <<_ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h. */
27286 $ac_includes_default
27287 typedef major_t ac__type_new_;
27291 if ((ac__type_new_ *) 0)
27293 if (sizeof (ac__type_new_))
27299 rm -f conftest.$ac_objext
27300 if { (ac_try="$ac_compile"
27301 case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_compile") 2>conftest.er1
27308 grep -v '^ *+' conftest.er1 >conftest.err
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } && {
27313 test -z "$ac_c_werror_flag" ||
27314 test ! -s conftest.err
27315 } && test -s conftest.$ac_objext; then
27316 ac_cv_type_major_t=yes
27318 echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27321 ac_cv_type_major_t=no
27324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27326 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
27327 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
27328 if test $ac_cv_type_major_t = yes; then
27332 cat >>confdefs.h <<_ACEOF
27333 #define major_t int
27338 { echo "$as_me:$LINENO: checking for minor_t" >&5
27339 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
27340 if test "${ac_cv_type_minor_t+set}" = set; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27343 cat >conftest.$ac_ext <<_ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h. */
27349 $ac_includes_default
27350 typedef minor_t ac__type_new_;
27354 if ((ac__type_new_ *) 0)
27356 if (sizeof (ac__type_new_))
27362 rm -f conftest.$ac_objext
27363 if { (ac_try="$ac_compile"
27364 case "(($ac_try" in
27365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27366 *) ac_try_echo=$ac_try;;
27368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27369 (eval "$ac_compile") 2>conftest.er1
27371 grep -v '^ *+' conftest.er1 >conftest.err
27373 cat conftest.err >&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); } && {
27376 test -z "$ac_c_werror_flag" ||
27377 test ! -s conftest.err
27378 } && test -s conftest.$ac_objext; then
27379 ac_cv_type_minor_t=yes
27381 echo "$as_me: failed program was:" >&5
27382 sed 's/^/| /' conftest.$ac_ext >&5
27384 ac_cv_type_minor_t=no
27387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27389 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
27390 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
27391 if test $ac_cv_type_minor_t = yes; then
27395 cat >>confdefs.h <<_ACEOF
27396 #define minor_t int
27401 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27402 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27403 if test "${ac_cv_type_ssize_t+set}" = set; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27406 cat >conftest.$ac_ext <<_ACEOF
27409 cat confdefs.h >>conftest.$ac_ext
27410 cat >>conftest.$ac_ext <<_ACEOF
27411 /* end confdefs.h. */
27412 $ac_includes_default
27413 typedef ssize_t ac__type_new_;
27417 if ((ac__type_new_ *) 0)
27419 if (sizeof (ac__type_new_))
27425 rm -f conftest.$ac_objext
27426 if { (ac_try="$ac_compile"
27427 case "(($ac_try" in
27428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27429 *) ac_try_echo=$ac_try;;
27431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27432 (eval "$ac_compile") 2>conftest.er1
27434 grep -v '^ *+' conftest.er1 >conftest.err
27436 cat conftest.err >&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); } && {
27439 test -z "$ac_c_werror_flag" ||
27440 test ! -s conftest.err
27441 } && test -s conftest.$ac_objext; then
27442 ac_cv_type_ssize_t=yes
27444 echo "$as_me: failed program was:" >&5
27445 sed 's/^/| /' conftest.$ac_ext >&5
27447 ac_cv_type_ssize_t=no
27450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27452 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27453 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27454 if test $ac_cv_type_ssize_t = yes; then
27458 cat >>confdefs.h <<_ACEOF
27459 #define ssize_t int
27464 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27465 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
27466 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27467 echo $ECHO_N "(cached) $ECHO_C" >&6
27469 cat >conftest.$ac_ext <<_ACEOF
27472 cat confdefs.h >>conftest.$ac_ext
27473 cat >>conftest.$ac_ext <<_ACEOF
27474 /* end confdefs.h. */
27475 $ac_includes_default
27479 static struct stat ac_aggr;
27480 if (ac_aggr.st_blocks)
27486 rm -f conftest.$ac_objext
27487 if { (ac_try="$ac_compile"
27488 case "(($ac_try" in
27489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490 *) ac_try_echo=$ac_try;;
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493 (eval "$ac_compile") 2>conftest.er1
27495 grep -v '^ *+' conftest.er1 >conftest.err
27497 cat conftest.err >&5
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); } && {
27500 test -z "$ac_c_werror_flag" ||
27501 test ! -s conftest.err
27502 } && test -s conftest.$ac_objext; then
27503 ac_cv_member_struct_stat_st_blocks=yes
27505 echo "$as_me: failed program was:" >&5
27506 sed 's/^/| /' conftest.$ac_ext >&5
27508 cat >conftest.$ac_ext <<_ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h. */
27514 $ac_includes_default
27518 static struct stat ac_aggr;
27519 if (sizeof ac_aggr.st_blocks)
27525 rm -f conftest.$ac_objext
27526 if { (ac_try="$ac_compile"
27527 case "(($ac_try" in
27528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27529 *) ac_try_echo=$ac_try;;
27531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27532 (eval "$ac_compile") 2>conftest.er1
27534 grep -v '^ *+' conftest.er1 >conftest.err
27536 cat conftest.err >&5
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); } && {
27539 test -z "$ac_c_werror_flag" ||
27540 test ! -s conftest.err
27541 } && test -s conftest.$ac_objext; then
27542 ac_cv_member_struct_stat_st_blocks=yes
27544 echo "$as_me: failed program was:" >&5
27545 sed 's/^/| /' conftest.$ac_ext >&5
27547 ac_cv_member_struct_stat_st_blocks=no
27550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27555 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27556 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
27557 if test $ac_cv_member_struct_stat_st_blocks = yes; then
27559 cat >>confdefs.h <<_ACEOF
27560 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27564 cat >>confdefs.h <<\_ACEOF
27565 #define HAVE_ST_BLOCKS 1
27569 case " $LIBOBJS " in
27570 *" fileblocks.$ac_objext "* ) ;;
27571 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27578 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
27579 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
27580 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
27581 echo $ECHO_N "(cached) $ECHO_C" >&6
27583 cat >conftest.$ac_ext <<_ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h. */
27589 $ac_includes_default
27593 static struct stat ac_aggr;
27594 if (ac_aggr.st_rdev)
27600 rm -f conftest.$ac_objext
27601 if { (ac_try="$ac_compile"
27602 case "(($ac_try" in
27603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27604 *) ac_try_echo=$ac_try;;
27606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27607 (eval "$ac_compile") 2>conftest.er1
27609 grep -v '^ *+' conftest.er1 >conftest.err
27611 cat conftest.err >&5
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); } && {
27614 test -z "$ac_c_werror_flag" ||
27615 test ! -s conftest.err
27616 } && test -s conftest.$ac_objext; then
27617 ac_cv_member_struct_stat_st_rdev=yes
27619 echo "$as_me: failed program was:" >&5
27620 sed 's/^/| /' conftest.$ac_ext >&5
27622 cat >conftest.$ac_ext <<_ACEOF
27625 cat confdefs.h >>conftest.$ac_ext
27626 cat >>conftest.$ac_ext <<_ACEOF
27627 /* end confdefs.h. */
27628 $ac_includes_default
27632 static struct stat ac_aggr;
27633 if (sizeof ac_aggr.st_rdev)
27639 rm -f conftest.$ac_objext
27640 if { (ac_try="$ac_compile"
27641 case "(($ac_try" in
27642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643 *) ac_try_echo=$ac_try;;
27645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646 (eval "$ac_compile") 2>conftest.er1
27648 grep -v '^ *+' conftest.er1 >conftest.err
27650 cat conftest.err >&5
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652 (exit $ac_status); } && {
27653 test -z "$ac_c_werror_flag" ||
27654 test ! -s conftest.err
27655 } && test -s conftest.$ac_objext; then
27656 ac_cv_member_struct_stat_st_rdev=yes
27658 echo "$as_me: failed program was:" >&5
27659 sed 's/^/| /' conftest.$ac_ext >&5
27661 ac_cv_member_struct_stat_st_rdev=no
27664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27669 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
27670 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
27671 if test $ac_cv_member_struct_stat_st_rdev = yes; then
27673 cat >>confdefs.h <<_ACEOF
27674 #define HAVE_STRUCT_STAT_ST_RDEV 1
27678 cat >>confdefs.h <<\_ACEOF
27679 #define HAVE_ST_RDEV 1
27685 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27686 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
27687 if test "${ac_cv_struct_tm+set}" = set; then
27688 echo $ECHO_N "(cached) $ECHO_C" >&6
27690 cat >conftest.$ac_ext <<_ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h. */
27696 #include <sys/types.h>
27703 int *p = &tm.tm_sec;
27709 rm -f conftest.$ac_objext
27710 if { (ac_try="$ac_compile"
27711 case "(($ac_try" in
27712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713 *) ac_try_echo=$ac_try;;
27715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716 (eval "$ac_compile") 2>conftest.er1
27718 grep -v '^ *+' conftest.er1 >conftest.err
27720 cat conftest.err >&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); } && {
27723 test -z "$ac_c_werror_flag" ||
27724 test ! -s conftest.err
27725 } && test -s conftest.$ac_objext; then
27726 ac_cv_struct_tm=time.h
27728 echo "$as_me: failed program was:" >&5
27729 sed 's/^/| /' conftest.$ac_ext >&5
27731 ac_cv_struct_tm=sys/time.h
27734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27736 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27737 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
27738 if test $ac_cv_struct_tm = sys/time.h; then
27740 cat >>confdefs.h <<\_ACEOF
27741 #define TM_IN_SYS_TIME 1
27746 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
27747 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
27748 if test "${ac_cv_c_const+set}" = set; then
27749 echo $ECHO_N "(cached) $ECHO_C" >&6
27751 cat >conftest.$ac_ext <<_ACEOF
27754 cat confdefs.h >>conftest.$ac_ext
27755 cat >>conftest.$ac_ext <<_ACEOF
27756 /* end confdefs.h. */
27761 /* FIXME: Include the comments suggested by Paul. */
27762 #ifndef __cplusplus
27763 /* Ultrix mips cc rejects this. */
27764 typedef int charset[2];
27766 /* SunOS 4.1.1 cc rejects this. */
27767 char const *const *pcpcc;
27769 /* NEC SVR4.0.2 mips cc rejects this. */
27770 struct point {int x, y;};
27771 static struct point const zero = {0,0};
27772 /* AIX XL C 1.02.0.0 rejects this.
27773 It does not let you subtract one const X* pointer from another in
27774 an arm of an if-expression whose if-part is not a constant
27776 const char *g = "string";
27777 pcpcc = &g + (g ? g-g : 0);
27778 /* HPUX 7.0 cc rejects these. */
27780 ppc = (char**) pcpcc;
27781 pcpcc = (char const *const *) ppc;
27782 { /* SCO 3.2v4 cc rejects this. */
27784 char const *s = 0 ? (char *) 0 : (char const *) 0;
27789 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27790 int x[] = {25, 17};
27791 const int *foo = &x[0];
27794 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27795 typedef const int *iptr;
27799 { /* AIX XL C 1.02.0.0 rejects this saying
27800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27801 struct s { int j; const int *ap[3]; };
27802 struct s *b; b->j = 5;
27804 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27805 const int foo = 10;
27806 if (!foo) return 0;
27808 return !cs[0] && !zero.x;
27815 rm -f conftest.$ac_objext
27816 if { (ac_try="$ac_compile"
27817 case "(($ac_try" in
27818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27819 *) ac_try_echo=$ac_try;;
27821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27822 (eval "$ac_compile") 2>conftest.er1
27824 grep -v '^ *+' conftest.er1 >conftest.err
27826 cat conftest.err >&5
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); } && {
27829 test -z "$ac_c_werror_flag" ||
27830 test ! -s conftest.err
27831 } && test -s conftest.$ac_objext; then
27834 echo "$as_me: failed program was:" >&5
27835 sed 's/^/| /' conftest.$ac_ext >&5
27840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27842 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27843 echo "${ECHO_T}$ac_cv_c_const" >&6; }
27844 if test $ac_cv_c_const = no; then
27846 cat >>confdefs.h <<\_ACEOF
27854 { echo "$as_me:$LINENO: checking for char" >&5
27855 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
27856 if test "${ac_cv_type_char+set}" = set; then
27857 echo $ECHO_N "(cached) $ECHO_C" >&6
27859 cat >conftest.$ac_ext <<_ACEOF
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h. */
27865 $ac_includes_default
27866 typedef char ac__type_new_;
27870 if ((ac__type_new_ *) 0)
27872 if (sizeof (ac__type_new_))
27878 rm -f conftest.$ac_objext
27879 if { (ac_try="$ac_compile"
27880 case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_compile") 2>conftest.er1
27887 grep -v '^ *+' conftest.er1 >conftest.err
27889 cat conftest.err >&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); } && {
27892 test -z "$ac_c_werror_flag" ||
27893 test ! -s conftest.err
27894 } && test -s conftest.$ac_objext; then
27895 ac_cv_type_char=yes
27897 echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27905 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
27906 echo "${ECHO_T}$ac_cv_type_char" >&6; }
27908 # The cast to long int works around a bug in the HP C Compiler
27909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27911 # This bug is HP SR number 8606223364.
27912 { echo "$as_me:$LINENO: checking size of char" >&5
27913 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
27914 if test "${ac_cv_sizeof_char+set}" = set; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27917 if test "$cross_compiling" = yes; then
27918 # Depending upon the size, compute the lo and hi bounds.
27919 cat >conftest.$ac_ext <<_ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h. */
27925 $ac_includes_default
27926 typedef char ac__type_sizeof_;
27930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27937 rm -f conftest.$ac_objext
27938 if { (ac_try="$ac_compile"
27939 case "(($ac_try" in
27940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27941 *) ac_try_echo=$ac_try;;
27943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27944 (eval "$ac_compile") 2>conftest.er1
27946 grep -v '^ *+' conftest.er1 >conftest.err
27948 cat conftest.err >&5
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); } && {
27951 test -z "$ac_c_werror_flag" ||
27952 test ! -s conftest.err
27953 } && test -s conftest.$ac_objext; then
27956 cat >conftest.$ac_ext <<_ACEOF
27959 cat confdefs.h >>conftest.$ac_ext
27960 cat >>conftest.$ac_ext <<_ACEOF
27961 /* end confdefs.h. */
27962 $ac_includes_default
27963 typedef char ac__type_sizeof_;
27967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27974 rm -f conftest.$ac_objext
27975 if { (ac_try="$ac_compile"
27976 case "(($ac_try" in
27977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978 *) ac_try_echo=$ac_try;;
27980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981 (eval "$ac_compile") 2>conftest.er1
27983 grep -v '^ *+' conftest.er1 >conftest.err
27985 cat conftest.err >&5
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); } && {
27988 test -z "$ac_c_werror_flag" ||
27989 test ! -s conftest.err
27990 } && test -s conftest.$ac_objext; then
27991 ac_hi=$ac_mid; break
27993 echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27996 ac_lo=`expr $ac_mid + 1`
27997 if test $ac_lo -le $ac_mid; then
28001 ac_mid=`expr 2 '*' $ac_mid + 1`
28004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28007 echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28010 cat >conftest.$ac_ext <<_ACEOF
28013 cat confdefs.h >>conftest.$ac_ext
28014 cat >>conftest.$ac_ext <<_ACEOF
28015 /* end confdefs.h. */
28016 $ac_includes_default
28017 typedef char ac__type_sizeof_;
28021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28028 rm -f conftest.$ac_objext
28029 if { (ac_try="$ac_compile"
28030 case "(($ac_try" in
28031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032 *) ac_try_echo=$ac_try;;
28034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28035 (eval "$ac_compile") 2>conftest.er1
28037 grep -v '^ *+' conftest.er1 >conftest.err
28039 cat conftest.err >&5
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } && {
28042 test -z "$ac_c_werror_flag" ||
28043 test ! -s conftest.err
28044 } && test -s conftest.$ac_objext; then
28047 cat >conftest.$ac_ext <<_ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h. */
28053 $ac_includes_default
28054 typedef char ac__type_sizeof_;
28058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28065 rm -f conftest.$ac_objext
28066 if { (ac_try="$ac_compile"
28067 case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_compile") 2>conftest.er1
28074 grep -v '^ *+' conftest.er1 >conftest.err
28076 cat conftest.err >&5
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); } && {
28079 test -z "$ac_c_werror_flag" ||
28080 test ! -s conftest.err
28081 } && test -s conftest.$ac_objext; then
28082 ac_lo=$ac_mid; break
28084 echo "$as_me: failed program was:" >&5
28085 sed 's/^/| /' conftest.$ac_ext >&5
28087 ac_hi=`expr '(' $ac_mid ')' - 1`
28088 if test $ac_mid -le $ac_hi; then
28092 ac_mid=`expr 2 '*' $ac_mid`
28095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28098 echo "$as_me: failed program was:" >&5
28099 sed 's/^/| /' conftest.$ac_ext >&5
28104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28108 # Binary search between lo and hi bounds.
28109 while test "x$ac_lo" != "x$ac_hi"; do
28110 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28111 cat >conftest.$ac_ext <<_ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h. */
28117 $ac_includes_default
28118 typedef char ac__type_sizeof_;
28122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28129 rm -f conftest.$ac_objext
28130 if { (ac_try="$ac_compile"
28131 case "(($ac_try" in
28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133 *) ac_try_echo=$ac_try;;
28135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136 (eval "$ac_compile") 2>conftest.er1
28138 grep -v '^ *+' conftest.er1 >conftest.err
28140 cat conftest.err >&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } && {
28143 test -z "$ac_c_werror_flag" ||
28144 test ! -s conftest.err
28145 } && test -s conftest.$ac_objext; then
28148 echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28151 ac_lo=`expr '(' $ac_mid ')' + 1`
28154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28157 ?*) ac_cv_sizeof_char=$ac_lo;;
28158 '') if test "$ac_cv_type_char" = yes; then
28159 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28160 See \`config.log' for more details." >&5
28161 echo "$as_me: error: cannot compute sizeof (char)
28162 See \`config.log' for more details." >&2;}
28163 { (exit 77); exit 77; }; }
28165 ac_cv_sizeof_char=0
28169 cat >conftest.$ac_ext <<_ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h. */
28175 $ac_includes_default
28176 typedef char ac__type_sizeof_;
28177 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28178 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28180 #include <stdlib.h>
28185 FILE *f = fopen ("conftest.val", "w");
28188 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28190 long int i = longval ();
28191 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28193 fprintf (f, "%ld\n", i);
28197 unsigned long int i = ulongval ();
28198 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28200 fprintf (f, "%lu\n", i);
28202 return ferror (f) || fclose (f) != 0;
28208 rm -f conftest$ac_exeext
28209 if { (ac_try="$ac_link"
28210 case "(($ac_try" in
28211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212 *) ac_try_echo=$ac_try;;
28214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215 (eval "$ac_link") 2>&5
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28219 { (case "(($ac_try" in
28220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28221 *) ac_try_echo=$ac_try;;
28223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28224 (eval "$ac_try") 2>&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); }; }; then
28228 ac_cv_sizeof_char=`cat conftest.val`
28230 echo "$as_me: program exited with status $ac_status" >&5
28231 echo "$as_me: failed program was:" >&5
28232 sed 's/^/| /' conftest.$ac_ext >&5
28234 ( exit $ac_status )
28235 if test "$ac_cv_type_char" = yes; then
28236 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28237 See \`config.log' for more details." >&5
28238 echo "$as_me: error: cannot compute sizeof (char)
28239 See \`config.log' for more details." >&2;}
28240 { (exit 77); exit 77; }; }
28242 ac_cv_sizeof_char=0
28245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28249 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
28250 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
28254 cat >>confdefs.h <<_ACEOF
28255 #define SIZEOF_CHAR $ac_cv_sizeof_char
28259 { echo "$as_me:$LINENO: checking for short int" >&5
28260 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
28261 if test "${ac_cv_type_short_int+set}" = set; then
28262 echo $ECHO_N "(cached) $ECHO_C" >&6
28264 cat >conftest.$ac_ext <<_ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h. */
28270 $ac_includes_default
28271 typedef short int ac__type_new_;
28275 if ((ac__type_new_ *) 0)
28277 if (sizeof (ac__type_new_))
28283 rm -f conftest.$ac_objext
28284 if { (ac_try="$ac_compile"
28285 case "(($ac_try" in
28286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287 *) ac_try_echo=$ac_try;;
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290 (eval "$ac_compile") 2>conftest.er1
28292 grep -v '^ *+' conftest.er1 >conftest.err
28294 cat conftest.err >&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } && {
28297 test -z "$ac_c_werror_flag" ||
28298 test ! -s conftest.err
28299 } && test -s conftest.$ac_objext; then
28300 ac_cv_type_short_int=yes
28302 echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28305 ac_cv_type_short_int=no
28308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28310 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
28311 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
28313 # The cast to long int works around a bug in the HP C Compiler
28314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28316 # This bug is HP SR number 8606223364.
28317 { echo "$as_me:$LINENO: checking size of short int" >&5
28318 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
28319 if test "${ac_cv_sizeof_short_int+set}" = set; then
28320 echo $ECHO_N "(cached) $ECHO_C" >&6
28322 if test "$cross_compiling" = yes; then
28323 # Depending upon the size, compute the lo and hi bounds.
28324 cat >conftest.$ac_ext <<_ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h. */
28330 $ac_includes_default
28331 typedef short int ac__type_sizeof_;
28335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28342 rm -f conftest.$ac_objext
28343 if { (ac_try="$ac_compile"
28344 case "(($ac_try" in
28345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346 *) ac_try_echo=$ac_try;;
28348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349 (eval "$ac_compile") 2>conftest.er1
28351 grep -v '^ *+' conftest.er1 >conftest.err
28353 cat conftest.err >&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } && {
28356 test -z "$ac_c_werror_flag" ||
28357 test ! -s conftest.err
28358 } && test -s conftest.$ac_objext; then
28361 cat >conftest.$ac_ext <<_ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h. */
28367 $ac_includes_default
28368 typedef short int ac__type_sizeof_;
28372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28379 rm -f conftest.$ac_objext
28380 if { (ac_try="$ac_compile"
28381 case "(($ac_try" in
28382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383 *) ac_try_echo=$ac_try;;
28385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386 (eval "$ac_compile") 2>conftest.er1
28388 grep -v '^ *+' conftest.er1 >conftest.err
28390 cat conftest.err >&5
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); } && {
28393 test -z "$ac_c_werror_flag" ||
28394 test ! -s conftest.err
28395 } && test -s conftest.$ac_objext; then
28396 ac_hi=$ac_mid; break
28398 echo "$as_me: failed program was:" >&5
28399 sed 's/^/| /' conftest.$ac_ext >&5
28401 ac_lo=`expr $ac_mid + 1`
28402 if test $ac_lo -le $ac_mid; then
28406 ac_mid=`expr 2 '*' $ac_mid + 1`
28409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28412 echo "$as_me: failed program was:" >&5
28413 sed 's/^/| /' conftest.$ac_ext >&5
28415 cat >conftest.$ac_ext <<_ACEOF
28418 cat confdefs.h >>conftest.$ac_ext
28419 cat >>conftest.$ac_ext <<_ACEOF
28420 /* end confdefs.h. */
28421 $ac_includes_default
28422 typedef short int ac__type_sizeof_;
28426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28433 rm -f conftest.$ac_objext
28434 if { (ac_try="$ac_compile"
28435 case "(($ac_try" in
28436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437 *) ac_try_echo=$ac_try;;
28439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28440 (eval "$ac_compile") 2>conftest.er1
28442 grep -v '^ *+' conftest.er1 >conftest.err
28444 cat conftest.err >&5
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); } && {
28447 test -z "$ac_c_werror_flag" ||
28448 test ! -s conftest.err
28449 } && test -s conftest.$ac_objext; then
28452 cat >conftest.$ac_ext <<_ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h. */
28458 $ac_includes_default
28459 typedef short int ac__type_sizeof_;
28463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28470 rm -f conftest.$ac_objext
28471 if { (ac_try="$ac_compile"
28472 case "(($ac_try" in
28473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28474 *) ac_try_echo=$ac_try;;
28476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28477 (eval "$ac_compile") 2>conftest.er1
28479 grep -v '^ *+' conftest.er1 >conftest.err
28481 cat conftest.err >&5
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); } && {
28484 test -z "$ac_c_werror_flag" ||
28485 test ! -s conftest.err
28486 } && test -s conftest.$ac_objext; then
28487 ac_lo=$ac_mid; break
28489 echo "$as_me: failed program was:" >&5
28490 sed 's/^/| /' conftest.$ac_ext >&5
28492 ac_hi=`expr '(' $ac_mid ')' - 1`
28493 if test $ac_mid -le $ac_hi; then
28497 ac_mid=`expr 2 '*' $ac_mid`
28500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28503 echo "$as_me: failed program was:" >&5
28504 sed 's/^/| /' conftest.$ac_ext >&5
28509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28513 # Binary search between lo and hi bounds.
28514 while test "x$ac_lo" != "x$ac_hi"; do
28515 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28516 cat >conftest.$ac_ext <<_ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h. */
28522 $ac_includes_default
28523 typedef short int ac__type_sizeof_;
28527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28534 rm -f conftest.$ac_objext
28535 if { (ac_try="$ac_compile"
28536 case "(($ac_try" in
28537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28538 *) ac_try_echo=$ac_try;;
28540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28541 (eval "$ac_compile") 2>conftest.er1
28543 grep -v '^ *+' conftest.er1 >conftest.err
28545 cat conftest.err >&5
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } && {
28548 test -z "$ac_c_werror_flag" ||
28549 test ! -s conftest.err
28550 } && test -s conftest.$ac_objext; then
28553 echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28556 ac_lo=`expr '(' $ac_mid ')' + 1`
28559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562 ?*) ac_cv_sizeof_short_int=$ac_lo;;
28563 '') if test "$ac_cv_type_short_int" = yes; then
28564 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28565 See \`config.log' for more details." >&5
28566 echo "$as_me: error: cannot compute sizeof (short int)
28567 See \`config.log' for more details." >&2;}
28568 { (exit 77); exit 77; }; }
28570 ac_cv_sizeof_short_int=0
28574 cat >conftest.$ac_ext <<_ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h. */
28580 $ac_includes_default
28581 typedef short int ac__type_sizeof_;
28582 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28583 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28585 #include <stdlib.h>
28590 FILE *f = fopen ("conftest.val", "w");
28593 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28595 long int i = longval ();
28596 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28598 fprintf (f, "%ld\n", i);
28602 unsigned long int i = ulongval ();
28603 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28605 fprintf (f, "%lu\n", i);
28607 return ferror (f) || fclose (f) != 0;
28613 rm -f conftest$ac_exeext
28614 if { (ac_try="$ac_link"
28615 case "(($ac_try" in
28616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28617 *) ac_try_echo=$ac_try;;
28619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28620 (eval "$ac_link") 2>&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28624 { (case "(($ac_try" in
28625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28626 *) ac_try_echo=$ac_try;;
28628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28629 (eval "$ac_try") 2>&5
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; }; then
28633 ac_cv_sizeof_short_int=`cat conftest.val`
28635 echo "$as_me: program exited with status $ac_status" >&5
28636 echo "$as_me: failed program was:" >&5
28637 sed 's/^/| /' conftest.$ac_ext >&5
28639 ( exit $ac_status )
28640 if test "$ac_cv_type_short_int" = yes; then
28641 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28642 See \`config.log' for more details." >&5
28643 echo "$as_me: error: cannot compute sizeof (short int)
28644 See \`config.log' for more details." >&2;}
28645 { (exit 77); exit 77; }; }
28647 ac_cv_sizeof_short_int=0
28650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28654 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
28655 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
28659 cat >>confdefs.h <<_ACEOF
28660 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
28664 { echo "$as_me:$LINENO: checking for int" >&5
28665 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28666 if test "${ac_cv_type_int+set}" = set; then
28667 echo $ECHO_N "(cached) $ECHO_C" >&6
28669 cat >conftest.$ac_ext <<_ACEOF
28672 cat confdefs.h >>conftest.$ac_ext
28673 cat >>conftest.$ac_ext <<_ACEOF
28674 /* end confdefs.h. */
28675 $ac_includes_default
28676 typedef int ac__type_new_;
28680 if ((ac__type_new_ *) 0)
28682 if (sizeof (ac__type_new_))
28688 rm -f conftest.$ac_objext
28689 if { (ac_try="$ac_compile"
28690 case "(($ac_try" in
28691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692 *) ac_try_echo=$ac_try;;
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695 (eval "$ac_compile") 2>conftest.er1
28697 grep -v '^ *+' conftest.er1 >conftest.err
28699 cat conftest.err >&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); } && {
28702 test -z "$ac_c_werror_flag" ||
28703 test ! -s conftest.err
28704 } && test -s conftest.$ac_objext; then
28707 echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28715 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28716 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28718 # The cast to long int works around a bug in the HP C Compiler
28719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28721 # This bug is HP SR number 8606223364.
28722 { echo "$as_me:$LINENO: checking size of int" >&5
28723 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28724 if test "${ac_cv_sizeof_int+set}" = set; then
28725 echo $ECHO_N "(cached) $ECHO_C" >&6
28727 if test "$cross_compiling" = yes; then
28728 # Depending upon the size, compute the lo and hi bounds.
28729 cat >conftest.$ac_ext <<_ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h. */
28735 $ac_includes_default
28736 typedef int ac__type_sizeof_;
28740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28747 rm -f conftest.$ac_objext
28748 if { (ac_try="$ac_compile"
28749 case "(($ac_try" in
28750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28751 *) ac_try_echo=$ac_try;;
28753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28754 (eval "$ac_compile") 2>conftest.er1
28756 grep -v '^ *+' conftest.er1 >conftest.err
28758 cat conftest.err >&5
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); } && {
28761 test -z "$ac_c_werror_flag" ||
28762 test ! -s conftest.err
28763 } && test -s conftest.$ac_objext; then
28766 cat >conftest.$ac_ext <<_ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h. */
28772 $ac_includes_default
28773 typedef int ac__type_sizeof_;
28777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28784 rm -f conftest.$ac_objext
28785 if { (ac_try="$ac_compile"
28786 case "(($ac_try" in
28787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28788 *) ac_try_echo=$ac_try;;
28790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28791 (eval "$ac_compile") 2>conftest.er1
28793 grep -v '^ *+' conftest.er1 >conftest.err
28795 cat conftest.err >&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); } && {
28798 test -z "$ac_c_werror_flag" ||
28799 test ! -s conftest.err
28800 } && test -s conftest.$ac_objext; then
28801 ac_hi=$ac_mid; break
28803 echo "$as_me: failed program was:" >&5
28804 sed 's/^/| /' conftest.$ac_ext >&5
28806 ac_lo=`expr $ac_mid + 1`
28807 if test $ac_lo -le $ac_mid; then
28811 ac_mid=`expr 2 '*' $ac_mid + 1`
28814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28817 echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28820 cat >conftest.$ac_ext <<_ACEOF
28823 cat confdefs.h >>conftest.$ac_ext
28824 cat >>conftest.$ac_ext <<_ACEOF
28825 /* end confdefs.h. */
28826 $ac_includes_default
28827 typedef int ac__type_sizeof_;
28831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28838 rm -f conftest.$ac_objext
28839 if { (ac_try="$ac_compile"
28840 case "(($ac_try" in
28841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842 *) ac_try_echo=$ac_try;;
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845 (eval "$ac_compile") 2>conftest.er1
28847 grep -v '^ *+' conftest.er1 >conftest.err
28849 cat conftest.err >&5
28850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); } && {
28852 test -z "$ac_c_werror_flag" ||
28853 test ! -s conftest.err
28854 } && test -s conftest.$ac_objext; then
28857 cat >conftest.$ac_ext <<_ACEOF
28860 cat confdefs.h >>conftest.$ac_ext
28861 cat >>conftest.$ac_ext <<_ACEOF
28862 /* end confdefs.h. */
28863 $ac_includes_default
28864 typedef int ac__type_sizeof_;
28868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28875 rm -f conftest.$ac_objext
28876 if { (ac_try="$ac_compile"
28877 case "(($ac_try" in
28878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879 *) ac_try_echo=$ac_try;;
28881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28882 (eval "$ac_compile") 2>conftest.er1
28884 grep -v '^ *+' conftest.er1 >conftest.err
28886 cat conftest.err >&5
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); } && {
28889 test -z "$ac_c_werror_flag" ||
28890 test ! -s conftest.err
28891 } && test -s conftest.$ac_objext; then
28892 ac_lo=$ac_mid; break
28894 echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28897 ac_hi=`expr '(' $ac_mid ')' - 1`
28898 if test $ac_mid -le $ac_hi; then
28902 ac_mid=`expr 2 '*' $ac_mid`
28905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28908 echo "$as_me: failed program was:" >&5
28909 sed 's/^/| /' conftest.$ac_ext >&5
28914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28918 # Binary search between lo and hi bounds.
28919 while test "x$ac_lo" != "x$ac_hi"; do
28920 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28921 cat >conftest.$ac_ext <<_ACEOF
28924 cat confdefs.h >>conftest.$ac_ext
28925 cat >>conftest.$ac_ext <<_ACEOF
28926 /* end confdefs.h. */
28927 $ac_includes_default
28928 typedef int ac__type_sizeof_;
28932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28939 rm -f conftest.$ac_objext
28940 if { (ac_try="$ac_compile"
28941 case "(($ac_try" in
28942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943 *) ac_try_echo=$ac_try;;
28945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28946 (eval "$ac_compile") 2>conftest.er1
28948 grep -v '^ *+' conftest.er1 >conftest.err
28950 cat conftest.err >&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); } && {
28953 test -z "$ac_c_werror_flag" ||
28954 test ! -s conftest.err
28955 } && test -s conftest.$ac_objext; then
28958 echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28961 ac_lo=`expr '(' $ac_mid ')' + 1`
28964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28967 ?*) ac_cv_sizeof_int=$ac_lo;;
28968 '') if test "$ac_cv_type_int" = yes; then
28969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28970 See \`config.log' for more details." >&5
28971 echo "$as_me: error: cannot compute sizeof (int)
28972 See \`config.log' for more details." >&2;}
28973 { (exit 77); exit 77; }; }
28979 cat >conftest.$ac_ext <<_ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h. */
28985 $ac_includes_default
28986 typedef int ac__type_sizeof_;
28987 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28988 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28990 #include <stdlib.h>
28995 FILE *f = fopen ("conftest.val", "w");
28998 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29000 long int i = longval ();
29001 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29003 fprintf (f, "%ld\n", i);
29007 unsigned long int i = ulongval ();
29008 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29010 fprintf (f, "%lu\n", i);
29012 return ferror (f) || fclose (f) != 0;
29018 rm -f conftest$ac_exeext
29019 if { (ac_try="$ac_link"
29020 case "(($ac_try" in
29021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29022 *) ac_try_echo=$ac_try;;
29024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29025 (eval "$ac_link") 2>&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29029 { (case "(($ac_try" in
29030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29031 *) ac_try_echo=$ac_try;;
29033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29034 (eval "$ac_try") 2>&5
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); }; }; then
29038 ac_cv_sizeof_int=`cat conftest.val`
29040 echo "$as_me: program exited with status $ac_status" >&5
29041 echo "$as_me: failed program was:" >&5
29042 sed 's/^/| /' conftest.$ac_ext >&5
29044 ( exit $ac_status )
29045 if test "$ac_cv_type_int" = yes; then
29046 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29047 See \`config.log' for more details." >&5
29048 echo "$as_me: error: cannot compute sizeof (int)
29049 See \`config.log' for more details." >&2;}
29050 { (exit 77); exit 77; }; }
29055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29059 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29060 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29064 cat >>confdefs.h <<_ACEOF
29065 #define SIZEOF_INT $ac_cv_sizeof_int
29069 { echo "$as_me:$LINENO: checking for long int" >&5
29070 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
29071 if test "${ac_cv_type_long_int+set}" = set; then
29072 echo $ECHO_N "(cached) $ECHO_C" >&6
29074 cat >conftest.$ac_ext <<_ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h. */
29080 $ac_includes_default
29081 typedef long int ac__type_new_;
29085 if ((ac__type_new_ *) 0)
29087 if (sizeof (ac__type_new_))
29093 rm -f conftest.$ac_objext
29094 if { (ac_try="$ac_compile"
29095 case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_compile") 2>conftest.er1
29102 grep -v '^ *+' conftest.er1 >conftest.err
29104 cat conftest.err >&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } && {
29107 test -z "$ac_c_werror_flag" ||
29108 test ! -s conftest.err
29109 } && test -s conftest.$ac_objext; then
29110 ac_cv_type_long_int=yes
29112 echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29115 ac_cv_type_long_int=no
29118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29120 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
29121 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
29123 # The cast to long int works around a bug in the HP C Compiler
29124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29126 # This bug is HP SR number 8606223364.
29127 { echo "$as_me:$LINENO: checking size of long int" >&5
29128 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
29129 if test "${ac_cv_sizeof_long_int+set}" = set; then
29130 echo $ECHO_N "(cached) $ECHO_C" >&6
29132 if test "$cross_compiling" = yes; then
29133 # Depending upon the size, compute the lo and hi bounds.
29134 cat >conftest.$ac_ext <<_ACEOF
29137 cat confdefs.h >>conftest.$ac_ext
29138 cat >>conftest.$ac_ext <<_ACEOF
29139 /* end confdefs.h. */
29140 $ac_includes_default
29141 typedef long int ac__type_sizeof_;
29145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29152 rm -f conftest.$ac_objext
29153 if { (ac_try="$ac_compile"
29154 case "(($ac_try" in
29155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156 *) ac_try_echo=$ac_try;;
29158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29159 (eval "$ac_compile") 2>conftest.er1
29161 grep -v '^ *+' conftest.er1 >conftest.err
29163 cat conftest.err >&5
29164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165 (exit $ac_status); } && {
29166 test -z "$ac_c_werror_flag" ||
29167 test ! -s conftest.err
29168 } && test -s conftest.$ac_objext; then
29171 cat >conftest.$ac_ext <<_ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h. */
29177 $ac_includes_default
29178 typedef long int ac__type_sizeof_;
29182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29189 rm -f conftest.$ac_objext
29190 if { (ac_try="$ac_compile"
29191 case "(($ac_try" in
29192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29193 *) ac_try_echo=$ac_try;;
29195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29196 (eval "$ac_compile") 2>conftest.er1
29198 grep -v '^ *+' conftest.er1 >conftest.err
29200 cat conftest.err >&5
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); } && {
29203 test -z "$ac_c_werror_flag" ||
29204 test ! -s conftest.err
29205 } && test -s conftest.$ac_objext; then
29206 ac_hi=$ac_mid; break
29208 echo "$as_me: failed program was:" >&5
29209 sed 's/^/| /' conftest.$ac_ext >&5
29211 ac_lo=`expr $ac_mid + 1`
29212 if test $ac_lo -le $ac_mid; then
29216 ac_mid=`expr 2 '*' $ac_mid + 1`
29219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29222 echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29225 cat >conftest.$ac_ext <<_ACEOF
29228 cat confdefs.h >>conftest.$ac_ext
29229 cat >>conftest.$ac_ext <<_ACEOF
29230 /* end confdefs.h. */
29231 $ac_includes_default
29232 typedef long int ac__type_sizeof_;
29236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29243 rm -f conftest.$ac_objext
29244 if { (ac_try="$ac_compile"
29245 case "(($ac_try" in
29246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29247 *) ac_try_echo=$ac_try;;
29249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29250 (eval "$ac_compile") 2>conftest.er1
29252 grep -v '^ *+' conftest.er1 >conftest.err
29254 cat conftest.err >&5
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); } && {
29257 test -z "$ac_c_werror_flag" ||
29258 test ! -s conftest.err
29259 } && test -s conftest.$ac_objext; then
29262 cat >conftest.$ac_ext <<_ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h. */
29268 $ac_includes_default
29269 typedef long int ac__type_sizeof_;
29273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29280 rm -f conftest.$ac_objext
29281 if { (ac_try="$ac_compile"
29282 case "(($ac_try" in
29283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287 (eval "$ac_compile") 2>conftest.er1
29289 grep -v '^ *+' conftest.er1 >conftest.err
29291 cat conftest.err >&5
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); } && {
29294 test -z "$ac_c_werror_flag" ||
29295 test ! -s conftest.err
29296 } && test -s conftest.$ac_objext; then
29297 ac_lo=$ac_mid; break
29299 echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29302 ac_hi=`expr '(' $ac_mid ')' - 1`
29303 if test $ac_mid -le $ac_hi; then
29307 ac_mid=`expr 2 '*' $ac_mid`
29310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29313 echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29323 # Binary search between lo and hi bounds.
29324 while test "x$ac_lo" != "x$ac_hi"; do
29325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29326 cat >conftest.$ac_ext <<_ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h. */
29332 $ac_includes_default
29333 typedef long int ac__type_sizeof_;
29337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29344 rm -f conftest.$ac_objext
29345 if { (ac_try="$ac_compile"
29346 case "(($ac_try" in
29347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348 *) ac_try_echo=$ac_try;;
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351 (eval "$ac_compile") 2>conftest.er1
29353 grep -v '^ *+' conftest.er1 >conftest.err
29355 cat conftest.err >&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); } && {
29358 test -z "$ac_c_werror_flag" ||
29359 test ! -s conftest.err
29360 } && test -s conftest.$ac_objext; then
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29366 ac_lo=`expr '(' $ac_mid ')' + 1`
29369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29372 ?*) ac_cv_sizeof_long_int=$ac_lo;;
29373 '') if test "$ac_cv_type_long_int" = yes; then
29374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29375 See \`config.log' for more details." >&5
29376 echo "$as_me: error: cannot compute sizeof (long int)
29377 See \`config.log' for more details." >&2;}
29378 { (exit 77); exit 77; }; }
29380 ac_cv_sizeof_long_int=0
29384 cat >conftest.$ac_ext <<_ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h. */
29390 $ac_includes_default
29391 typedef long int ac__type_sizeof_;
29392 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29393 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29395 #include <stdlib.h>
29400 FILE *f = fopen ("conftest.val", "w");
29403 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29405 long int i = longval ();
29406 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29408 fprintf (f, "%ld\n", i);
29412 unsigned long int i = ulongval ();
29413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29415 fprintf (f, "%lu\n", i);
29417 return ferror (f) || fclose (f) != 0;
29423 rm -f conftest$ac_exeext
29424 if { (ac_try="$ac_link"
29425 case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_link") 2>&5
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29434 { (case "(($ac_try" in
29435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436 *) ac_try_echo=$ac_try;;
29438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29439 (eval "$ac_try") 2>&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; }; then
29443 ac_cv_sizeof_long_int=`cat conftest.val`
29445 echo "$as_me: program exited with status $ac_status" >&5
29446 echo "$as_me: failed program was:" >&5
29447 sed 's/^/| /' conftest.$ac_ext >&5
29449 ( exit $ac_status )
29450 if test "$ac_cv_type_long_int" = yes; then
29451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29452 See \`config.log' for more details." >&5
29453 echo "$as_me: error: cannot compute sizeof (long int)
29454 See \`config.log' for more details." >&2;}
29455 { (exit 77); exit 77; }; }
29457 ac_cv_sizeof_long_int=0
29460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29464 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
29465 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
29469 cat >>confdefs.h <<_ACEOF
29470 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
29474 { echo "$as_me:$LINENO: checking for long long int" >&5
29475 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
29476 if test "${ac_cv_type_long_long_int+set}" = set; then
29477 echo $ECHO_N "(cached) $ECHO_C" >&6
29479 cat >conftest.$ac_ext <<_ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h. */
29485 $ac_includes_default
29486 typedef long long int ac__type_new_;
29490 if ((ac__type_new_ *) 0)
29492 if (sizeof (ac__type_new_))
29498 rm -f conftest.$ac_objext
29499 if { (ac_try="$ac_compile"
29500 case "(($ac_try" in
29501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502 *) ac_try_echo=$ac_try;;
29504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29505 (eval "$ac_compile") 2>conftest.er1
29507 grep -v '^ *+' conftest.er1 >conftest.err
29509 cat conftest.err >&5
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); } && {
29512 test -z "$ac_c_werror_flag" ||
29513 test ! -s conftest.err
29514 } && test -s conftest.$ac_objext; then
29515 ac_cv_type_long_long_int=yes
29517 echo "$as_me: failed program was:" >&5
29518 sed 's/^/| /' conftest.$ac_ext >&5
29520 ac_cv_type_long_long_int=no
29523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29525 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
29526 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
29528 # The cast to long int works around a bug in the HP C Compiler
29529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29531 # This bug is HP SR number 8606223364.
29532 { echo "$as_me:$LINENO: checking size of long long int" >&5
29533 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
29534 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
29535 echo $ECHO_N "(cached) $ECHO_C" >&6
29537 if test "$cross_compiling" = yes; then
29538 # Depending upon the size, compute the lo and hi bounds.
29539 cat >conftest.$ac_ext <<_ACEOF
29542 cat confdefs.h >>conftest.$ac_ext
29543 cat >>conftest.$ac_ext <<_ACEOF
29544 /* end confdefs.h. */
29545 $ac_includes_default
29546 typedef long long int ac__type_sizeof_;
29550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29557 rm -f conftest.$ac_objext
29558 if { (ac_try="$ac_compile"
29559 case "(($ac_try" in
29560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29561 *) ac_try_echo=$ac_try;;
29563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29564 (eval "$ac_compile") 2>conftest.er1
29566 grep -v '^ *+' conftest.er1 >conftest.err
29568 cat conftest.err >&5
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); } && {
29571 test -z "$ac_c_werror_flag" ||
29572 test ! -s conftest.err
29573 } && test -s conftest.$ac_objext; then
29576 cat >conftest.$ac_ext <<_ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h. */
29582 $ac_includes_default
29583 typedef long long int ac__type_sizeof_;
29587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29594 rm -f conftest.$ac_objext
29595 if { (ac_try="$ac_compile"
29596 case "(($ac_try" in
29597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598 *) ac_try_echo=$ac_try;;
29600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601 (eval "$ac_compile") 2>conftest.er1
29603 grep -v '^ *+' conftest.er1 >conftest.err
29605 cat conftest.err >&5
29606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); } && {
29608 test -z "$ac_c_werror_flag" ||
29609 test ! -s conftest.err
29610 } && test -s conftest.$ac_objext; then
29611 ac_hi=$ac_mid; break
29613 echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29616 ac_lo=`expr $ac_mid + 1`
29617 if test $ac_lo -le $ac_mid; then
29621 ac_mid=`expr 2 '*' $ac_mid + 1`
29624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29627 echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29630 cat >conftest.$ac_ext <<_ACEOF
29633 cat confdefs.h >>conftest.$ac_ext
29634 cat >>conftest.$ac_ext <<_ACEOF
29635 /* end confdefs.h. */
29636 $ac_includes_default
29637 typedef long long int ac__type_sizeof_;
29641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29648 rm -f conftest.$ac_objext
29649 if { (ac_try="$ac_compile"
29650 case "(($ac_try" in
29651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652 *) ac_try_echo=$ac_try;;
29654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655 (eval "$ac_compile") 2>conftest.er1
29657 grep -v '^ *+' conftest.er1 >conftest.err
29659 cat conftest.err >&5
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); } && {
29662 test -z "$ac_c_werror_flag" ||
29663 test ! -s conftest.err
29664 } && test -s conftest.$ac_objext; then
29667 cat >conftest.$ac_ext <<_ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29673 $ac_includes_default
29674 typedef long long int ac__type_sizeof_;
29678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29685 rm -f conftest.$ac_objext
29686 if { (ac_try="$ac_compile"
29687 case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_compile") 2>conftest.er1
29694 grep -v '^ *+' conftest.er1 >conftest.err
29696 cat conftest.err >&5
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); } && {
29699 test -z "$ac_c_werror_flag" ||
29700 test ! -s conftest.err
29701 } && test -s conftest.$ac_objext; then
29702 ac_lo=$ac_mid; break
29704 echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29707 ac_hi=`expr '(' $ac_mid ')' - 1`
29708 if test $ac_mid -le $ac_hi; then
29712 ac_mid=`expr 2 '*' $ac_mid`
29715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29718 echo "$as_me: failed program was:" >&5
29719 sed 's/^/| /' conftest.$ac_ext >&5
29724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29728 # Binary search between lo and hi bounds.
29729 while test "x$ac_lo" != "x$ac_hi"; do
29730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29731 cat >conftest.$ac_ext <<_ACEOF
29734 cat confdefs.h >>conftest.$ac_ext
29735 cat >>conftest.$ac_ext <<_ACEOF
29736 /* end confdefs.h. */
29737 $ac_includes_default
29738 typedef long long int ac__type_sizeof_;
29742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29749 rm -f conftest.$ac_objext
29750 if { (ac_try="$ac_compile"
29751 case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_compile") 2>conftest.er1
29758 grep -v '^ *+' conftest.er1 >conftest.err
29760 cat conftest.err >&5
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); } && {
29763 test -z "$ac_c_werror_flag" ||
29764 test ! -s conftest.err
29765 } && test -s conftest.$ac_objext; then
29768 echo "$as_me: failed program was:" >&5
29769 sed 's/^/| /' conftest.$ac_ext >&5
29771 ac_lo=`expr '(' $ac_mid ')' + 1`
29774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29777 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
29778 '') if test "$ac_cv_type_long_long_int" = yes; then
29779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29780 See \`config.log' for more details." >&5
29781 echo "$as_me: error: cannot compute sizeof (long long int)
29782 See \`config.log' for more details." >&2;}
29783 { (exit 77); exit 77; }; }
29785 ac_cv_sizeof_long_long_int=0
29789 cat >conftest.$ac_ext <<_ACEOF
29792 cat confdefs.h >>conftest.$ac_ext
29793 cat >>conftest.$ac_ext <<_ACEOF
29794 /* end confdefs.h. */
29795 $ac_includes_default
29796 typedef long long int ac__type_sizeof_;
29797 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29798 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29800 #include <stdlib.h>
29805 FILE *f = fopen ("conftest.val", "w");
29808 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29810 long int i = longval ();
29811 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29813 fprintf (f, "%ld\n", i);
29817 unsigned long int i = ulongval ();
29818 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29820 fprintf (f, "%lu\n", i);
29822 return ferror (f) || fclose (f) != 0;
29828 rm -f conftest$ac_exeext
29829 if { (ac_try="$ac_link"
29830 case "(($ac_try" in
29831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832 *) ac_try_echo=$ac_try;;
29834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835 (eval "$ac_link") 2>&5
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29839 { (case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_try") 2>&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); }; }; then
29848 ac_cv_sizeof_long_long_int=`cat conftest.val`
29850 echo "$as_me: program exited with status $ac_status" >&5
29851 echo "$as_me: failed program was:" >&5
29852 sed 's/^/| /' conftest.$ac_ext >&5
29854 ( exit $ac_status )
29855 if test "$ac_cv_type_long_long_int" = yes; then
29856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29857 See \`config.log' for more details." >&5
29858 echo "$as_me: error: cannot compute sizeof (long long int)
29859 See \`config.log' for more details." >&2;}
29860 { (exit 77); exit 77; }; }
29862 ac_cv_sizeof_long_long_int=0
29865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29869 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
29870 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
29874 cat >>confdefs.h <<_ACEOF
29875 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
29879 { echo "$as_me:$LINENO: checking for int *" >&5
29880 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
29881 if test "${ac_cv_type_int_p+set}" = set; then
29882 echo $ECHO_N "(cached) $ECHO_C" >&6
29884 cat >conftest.$ac_ext <<_ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h. */
29890 $ac_includes_default
29891 typedef int * ac__type_new_;
29895 if ((ac__type_new_ *) 0)
29897 if (sizeof (ac__type_new_))
29903 rm -f conftest.$ac_objext
29904 if { (ac_try="$ac_compile"
29905 case "(($ac_try" in
29906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29907 *) ac_try_echo=$ac_try;;
29909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29910 (eval "$ac_compile") 2>conftest.er1
29912 grep -v '^ *+' conftest.er1 >conftest.err
29914 cat conftest.err >&5
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); } && {
29917 test -z "$ac_c_werror_flag" ||
29918 test ! -s conftest.err
29919 } && test -s conftest.$ac_objext; then
29920 ac_cv_type_int_p=yes
29922 echo "$as_me: failed program was:" >&5
29923 sed 's/^/| /' conftest.$ac_ext >&5
29925 ac_cv_type_int_p=no
29928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29930 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
29931 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
29933 # The cast to long int works around a bug in the HP C Compiler
29934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29936 # This bug is HP SR number 8606223364.
29937 { echo "$as_me:$LINENO: checking size of int *" >&5
29938 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
29939 if test "${ac_cv_sizeof_int_p+set}" = set; then
29940 echo $ECHO_N "(cached) $ECHO_C" >&6
29942 if test "$cross_compiling" = yes; then
29943 # Depending upon the size, compute the lo and hi bounds.
29944 cat >conftest.$ac_ext <<_ACEOF
29947 cat confdefs.h >>conftest.$ac_ext
29948 cat >>conftest.$ac_ext <<_ACEOF
29949 /* end confdefs.h. */
29950 $ac_includes_default
29951 typedef int * ac__type_sizeof_;
29955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29962 rm -f conftest.$ac_objext
29963 if { (ac_try="$ac_compile"
29964 case "(($ac_try" in
29965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29966 *) ac_try_echo=$ac_try;;
29968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29969 (eval "$ac_compile") 2>conftest.er1
29971 grep -v '^ *+' conftest.er1 >conftest.err
29973 cat conftest.err >&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); } && {
29976 test -z "$ac_c_werror_flag" ||
29977 test ! -s conftest.err
29978 } && test -s conftest.$ac_objext; then
29981 cat >conftest.$ac_ext <<_ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h. */
29987 $ac_includes_default
29988 typedef int * ac__type_sizeof_;
29992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29999 rm -f conftest.$ac_objext
30000 if { (ac_try="$ac_compile"
30001 case "(($ac_try" in
30002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003 *) ac_try_echo=$ac_try;;
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006 (eval "$ac_compile") 2>conftest.er1
30008 grep -v '^ *+' conftest.er1 >conftest.err
30010 cat conftest.err >&5
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); } && {
30013 test -z "$ac_c_werror_flag" ||
30014 test ! -s conftest.err
30015 } && test -s conftest.$ac_objext; then
30016 ac_hi=$ac_mid; break
30018 echo "$as_me: failed program was:" >&5
30019 sed 's/^/| /' conftest.$ac_ext >&5
30021 ac_lo=`expr $ac_mid + 1`
30022 if test $ac_lo -le $ac_mid; then
30026 ac_mid=`expr 2 '*' $ac_mid + 1`
30029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30032 echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30035 cat >conftest.$ac_ext <<_ACEOF
30038 cat confdefs.h >>conftest.$ac_ext
30039 cat >>conftest.$ac_ext <<_ACEOF
30040 /* end confdefs.h. */
30041 $ac_includes_default
30042 typedef int * ac__type_sizeof_;
30046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30053 rm -f conftest.$ac_objext
30054 if { (ac_try="$ac_compile"
30055 case "(($ac_try" in
30056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057 *) ac_try_echo=$ac_try;;
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_compile") 2>conftest.er1
30062 grep -v '^ *+' conftest.er1 >conftest.err
30064 cat conftest.err >&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); } && {
30067 test -z "$ac_c_werror_flag" ||
30068 test ! -s conftest.err
30069 } && test -s conftest.$ac_objext; then
30072 cat >conftest.$ac_ext <<_ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h. */
30078 $ac_includes_default
30079 typedef int * ac__type_sizeof_;
30083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30090 rm -f conftest.$ac_objext
30091 if { (ac_try="$ac_compile"
30092 case "(($ac_try" in
30093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094 *) ac_try_echo=$ac_try;;
30096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30097 (eval "$ac_compile") 2>conftest.er1
30099 grep -v '^ *+' conftest.er1 >conftest.err
30101 cat conftest.err >&5
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); } && {
30104 test -z "$ac_c_werror_flag" ||
30105 test ! -s conftest.err
30106 } && test -s conftest.$ac_objext; then
30107 ac_lo=$ac_mid; break
30109 echo "$as_me: failed program was:" >&5
30110 sed 's/^/| /' conftest.$ac_ext >&5
30112 ac_hi=`expr '(' $ac_mid ')' - 1`
30113 if test $ac_mid -le $ac_hi; then
30117 ac_mid=`expr 2 '*' $ac_mid`
30120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30123 echo "$as_me: failed program was:" >&5
30124 sed 's/^/| /' conftest.$ac_ext >&5
30129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30133 # Binary search between lo and hi bounds.
30134 while test "x$ac_lo" != "x$ac_hi"; do
30135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30136 cat >conftest.$ac_ext <<_ACEOF
30139 cat confdefs.h >>conftest.$ac_ext
30140 cat >>conftest.$ac_ext <<_ACEOF
30141 /* end confdefs.h. */
30142 $ac_includes_default
30143 typedef int * ac__type_sizeof_;
30147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30154 rm -f conftest.$ac_objext
30155 if { (ac_try="$ac_compile"
30156 case "(($ac_try" in
30157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30158 *) ac_try_echo=$ac_try;;
30160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30161 (eval "$ac_compile") 2>conftest.er1
30163 grep -v '^ *+' conftest.er1 >conftest.err
30165 cat conftest.err >&5
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); } && {
30168 test -z "$ac_c_werror_flag" ||
30169 test ! -s conftest.err
30170 } && test -s conftest.$ac_objext; then
30173 echo "$as_me: failed program was:" >&5
30174 sed 's/^/| /' conftest.$ac_ext >&5
30176 ac_lo=`expr '(' $ac_mid ')' + 1`
30179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30182 ?*) ac_cv_sizeof_int_p=$ac_lo;;
30183 '') if test "$ac_cv_type_int_p" = yes; then
30184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30185 See \`config.log' for more details." >&5
30186 echo "$as_me: error: cannot compute sizeof (int *)
30187 See \`config.log' for more details." >&2;}
30188 { (exit 77); exit 77; }; }
30190 ac_cv_sizeof_int_p=0
30194 cat >conftest.$ac_ext <<_ACEOF
30197 cat confdefs.h >>conftest.$ac_ext
30198 cat >>conftest.$ac_ext <<_ACEOF
30199 /* end confdefs.h. */
30200 $ac_includes_default
30201 typedef int * ac__type_sizeof_;
30202 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30203 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30205 #include <stdlib.h>
30210 FILE *f = fopen ("conftest.val", "w");
30213 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30215 long int i = longval ();
30216 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30218 fprintf (f, "%ld\n", i);
30222 unsigned long int i = ulongval ();
30223 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30225 fprintf (f, "%lu\n", i);
30227 return ferror (f) || fclose (f) != 0;
30233 rm -f conftest$ac_exeext
30234 if { (ac_try="$ac_link"
30235 case "(($ac_try" in
30236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30237 *) ac_try_echo=$ac_try;;
30239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30240 (eval "$ac_link") 2>&5
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30244 { (case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249 (eval "$ac_try") 2>&5
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252 (exit $ac_status); }; }; then
30253 ac_cv_sizeof_int_p=`cat conftest.val`
30255 echo "$as_me: program exited with status $ac_status" >&5
30256 echo "$as_me: failed program was:" >&5
30257 sed 's/^/| /' conftest.$ac_ext >&5
30259 ( exit $ac_status )
30260 if test "$ac_cv_type_int_p" = yes; then
30261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30262 See \`config.log' for more details." >&5
30263 echo "$as_me: error: cannot compute sizeof (int *)
30264 See \`config.log' for more details." >&2;}
30265 { (exit 77); exit 77; }; }
30267 ac_cv_sizeof_int_p=0
30270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30274 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
30275 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
30279 cat >>confdefs.h <<_ACEOF
30280 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
30285 # Check for sys/types.h types
30286 { echo "$as_me:$LINENO: checking for u_int type" >&5
30287 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
30288 if test "${ac_cv_have_u_int+set}" = set; then
30289 echo $ECHO_N "(cached) $ECHO_C" >&6
30292 cat >conftest.$ac_ext <<_ACEOF
30295 cat confdefs.h >>conftest.$ac_ext
30296 cat >>conftest.$ac_ext <<_ACEOF
30297 /* end confdefs.h. */
30298 #include <sys/types.h>
30307 rm -f conftest.$ac_objext
30308 if { (ac_try="$ac_compile"
30309 case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_compile") 2>conftest.er1
30316 grep -v '^ *+' conftest.er1 >conftest.err
30318 cat conftest.err >&5
30319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320 (exit $ac_status); } && {
30321 test -z "$ac_c_werror_flag" ||
30322 test ! -s conftest.err
30323 } && test -s conftest.$ac_objext; then
30324 ac_cv_have_u_int="yes"
30326 echo "$as_me: failed program was:" >&5
30327 sed 's/^/| /' conftest.$ac_ext >&5
30329 ac_cv_have_u_int="no"
30333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30336 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
30337 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
30338 if test "x$ac_cv_have_u_int" = "xyes" ; then
30339 cat >>confdefs.h <<\_ACEOF
30340 #define HAVE_U_INT 1
30346 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
30347 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
30348 if test "${ac_cv_have_intmax_t+set}" = set; then
30349 echo $ECHO_N "(cached) $ECHO_C" >&6
30352 cat >conftest.$ac_ext <<_ACEOF
30355 cat confdefs.h >>conftest.$ac_ext
30356 cat >>conftest.$ac_ext <<_ACEOF
30357 /* end confdefs.h. */
30358 #include <sys/types.h>
30367 rm -f conftest.$ac_objext
30368 if { (ac_try="$ac_compile"
30369 case "(($ac_try" in
30370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30371 *) ac_try_echo=$ac_try;;
30373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30374 (eval "$ac_compile") 2>conftest.er1
30376 grep -v '^ *+' conftest.er1 >conftest.err
30378 cat conftest.err >&5
30379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380 (exit $ac_status); } && {
30381 test -z "$ac_c_werror_flag" ||
30382 test ! -s conftest.err
30383 } && test -s conftest.$ac_objext; then
30384 ac_cv_have_intmax_t="yes"
30386 echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.$ac_ext >&5
30390 cat >conftest.$ac_ext <<_ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h. */
30396 #include <stdint.h>
30405 rm -f conftest.$ac_objext
30406 if { (ac_try="$ac_compile"
30407 case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412 (eval "$ac_compile") 2>conftest.er1
30414 grep -v '^ *+' conftest.er1 >conftest.err
30416 cat conftest.err >&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } && {
30419 test -z "$ac_c_werror_flag" ||
30420 test ! -s conftest.err
30421 } && test -s conftest.$ac_objext; then
30422 ac_cv_have_intmax_t="yes"
30424 echo "$as_me: failed program was:" >&5
30425 sed 's/^/| /' conftest.$ac_ext >&5
30427 ac_cv_have_intmax_t="no"
30431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30440 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
30441 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
30442 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
30443 cat >>confdefs.h <<\_ACEOF
30444 #define HAVE_INTMAX_T 1
30451 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
30452 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
30453 if test "${ac_cv_have_u_intmax_t+set}" = set; then
30454 echo $ECHO_N "(cached) $ECHO_C" >&6
30457 cat >conftest.$ac_ext <<_ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h. */
30463 #include <sys/types.h>
30467 u_intmax_t a; a = 1;
30472 rm -f conftest.$ac_objext
30473 if { (ac_try="$ac_compile"
30474 case "(($ac_try" in
30475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_compile") 2>conftest.er1
30481 grep -v '^ *+' conftest.er1 >conftest.err
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } && {
30486 test -z "$ac_c_werror_flag" ||
30487 test ! -s conftest.err
30488 } && test -s conftest.$ac_objext; then
30489 ac_cv_have_u_intmax_t="yes"
30491 echo "$as_me: failed program was:" >&5
30492 sed 's/^/| /' conftest.$ac_ext >&5
30495 cat >conftest.$ac_ext <<_ACEOF
30498 cat confdefs.h >>conftest.$ac_ext
30499 cat >>conftest.$ac_ext <<_ACEOF
30500 /* end confdefs.h. */
30501 #include <stdint.h>
30505 u_intmax_t a; a = 1;
30510 rm -f conftest.$ac_objext
30511 if { (ac_try="$ac_compile"
30512 case "(($ac_try" in
30513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514 *) ac_try_echo=$ac_try;;
30516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517 (eval "$ac_compile") 2>conftest.er1
30519 grep -v '^ *+' conftest.er1 >conftest.err
30521 cat conftest.err >&5
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); } && {
30524 test -z "$ac_c_werror_flag" ||
30525 test ! -s conftest.err
30526 } && test -s conftest.$ac_objext; then
30527 ac_cv_have_u_intmax_t="yes"
30529 echo "$as_me: failed program was:" >&5
30530 sed 's/^/| /' conftest.$ac_ext >&5
30532 ac_cv_have_u_intmax_t="no"
30536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30544 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
30545 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
30546 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
30547 cat >>confdefs.h <<\_ACEOF
30548 #define HAVE_U_INTMAX_T 1
30555 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
30556 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
30557 if test "${ac_cv_have_intxx_t+set}" = set; then
30558 echo $ECHO_N "(cached) $ECHO_C" >&6
30561 cat >conftest.$ac_ext <<_ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h. */
30567 #include <sys/types.h>
30571 int8_t a; int16_t b; int32_t c; a = b = c = 1;
30576 rm -f conftest.$ac_objext
30577 if { (ac_try="$ac_compile"
30578 case "(($ac_try" in
30579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30580 *) ac_try_echo=$ac_try;;
30582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30583 (eval "$ac_compile") 2>conftest.er1
30585 grep -v '^ *+' conftest.er1 >conftest.err
30587 cat conftest.err >&5
30588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589 (exit $ac_status); } && {
30590 test -z "$ac_c_werror_flag" ||
30591 test ! -s conftest.err
30592 } && test -s conftest.$ac_objext; then
30593 ac_cv_have_intxx_t="yes"
30595 echo "$as_me: failed program was:" >&5
30596 sed 's/^/| /' conftest.$ac_ext >&5
30598 ac_cv_have_intxx_t="no"
30602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30605 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
30606 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
30607 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
30608 cat >>confdefs.h <<\_ACEOF
30609 #define HAVE_INTXX_T 1
30615 { echo "$as_me:$LINENO: checking for int64_t type" >&5
30616 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
30617 if test "${ac_cv_have_int64_t+set}" = set; then
30618 echo $ECHO_N "(cached) $ECHO_C" >&6
30621 cat >conftest.$ac_ext <<_ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h. */
30627 #include <sys/types.h>
30636 rm -f conftest.$ac_objext
30637 if { (ac_try="$ac_compile"
30638 case "(($ac_try" in
30639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30640 *) ac_try_echo=$ac_try;;
30642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30643 (eval "$ac_compile") 2>conftest.er1
30645 grep -v '^ *+' conftest.er1 >conftest.err
30647 cat conftest.err >&5
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); } && {
30650 test -z "$ac_c_werror_flag" ||
30651 test ! -s conftest.err
30652 } && test -s conftest.$ac_objext; then
30653 ac_cv_have_int64_t="yes"
30655 echo "$as_me: failed program was:" >&5
30656 sed 's/^/| /' conftest.$ac_ext >&5
30658 ac_cv_have_int64_t="no"
30662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30665 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
30666 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
30667 if test "x$ac_cv_have_int64_t" = "xyes" ; then
30668 cat >>confdefs.h <<\_ACEOF
30669 #define HAVE_INT64_T 1
30675 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
30676 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
30677 if test "${ac_cv_have_u_intxx_t+set}" = set; then
30678 echo $ECHO_N "(cached) $ECHO_C" >&6
30681 cat >conftest.$ac_ext <<_ACEOF
30684 cat confdefs.h >>conftest.$ac_ext
30685 cat >>conftest.$ac_ext <<_ACEOF
30686 /* end confdefs.h. */
30687 #include <sys/types.h>
30691 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
30696 rm -f conftest.$ac_objext
30697 if { (ac_try="$ac_compile"
30698 case "(($ac_try" in
30699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30700 *) ac_try_echo=$ac_try;;
30702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30703 (eval "$ac_compile") 2>conftest.er1
30705 grep -v '^ *+' conftest.er1 >conftest.err
30707 cat conftest.err >&5
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); } && {
30710 test -z "$ac_c_werror_flag" ||
30711 test ! -s conftest.err
30712 } && test -s conftest.$ac_objext; then
30713 ac_cv_have_u_intxx_t="yes"
30715 echo "$as_me: failed program was:" >&5
30716 sed 's/^/| /' conftest.$ac_ext >&5
30718 ac_cv_have_u_intxx_t="no"
30722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30725 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
30726 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
30727 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
30728 cat >>confdefs.h <<\_ACEOF
30729 #define HAVE_U_INTXX_T 1
30735 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
30736 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
30737 if test "${ac_cv_have_u_int64_t+set}" = set; then
30738 echo $ECHO_N "(cached) $ECHO_C" >&6
30741 cat >conftest.$ac_ext <<_ACEOF
30744 cat confdefs.h >>conftest.$ac_ext
30745 cat >>conftest.$ac_ext <<_ACEOF
30746 /* end confdefs.h. */
30747 #include <sys/types.h>
30751 u_int64_t a; a = 1;
30756 rm -f conftest.$ac_objext
30757 if { (ac_try="$ac_compile"
30758 case "(($ac_try" in
30759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30760 *) ac_try_echo=$ac_try;;
30762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30763 (eval "$ac_compile") 2>conftest.er1
30765 grep -v '^ *+' conftest.er1 >conftest.err
30767 cat conftest.err >&5
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); } && {
30770 test -z "$ac_c_werror_flag" ||
30771 test ! -s conftest.err
30772 } && test -s conftest.$ac_objext; then
30773 ac_cv_have_u_int64_t="yes"
30775 echo "$as_me: failed program was:" >&5
30776 sed 's/^/| /' conftest.$ac_ext >&5
30778 ac_cv_have_u_int64_t="no"
30782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30785 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
30786 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
30787 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
30788 cat >>confdefs.h <<\_ACEOF
30789 #define HAVE_U_INT64_T 1
30795 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
30796 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30798 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
30799 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
30800 cat >conftest.$ac_ext <<_ACEOF
30803 cat confdefs.h >>conftest.$ac_ext
30804 cat >>conftest.$ac_ext <<_ACEOF
30805 /* end confdefs.h. */
30806 #include <sys/bitypes.h>
30810 int8_t a; int16_t b; int32_t c;
30811 u_int8_t e; u_int16_t f; u_int32_t g;
30812 a = b = c = e = f = g = 1;
30817 rm -f conftest.$ac_objext
30818 if { (ac_try="$ac_compile"
30819 case "(($ac_try" in
30820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821 *) ac_try_echo=$ac_try;;
30823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824 (eval "$ac_compile") 2>conftest.er1
30826 grep -v '^ *+' conftest.er1 >conftest.err
30828 cat conftest.err >&5
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); } && {
30831 test -z "$ac_c_werror_flag" ||
30832 test ! -s conftest.err
30833 } && test -s conftest.$ac_objext; then
30834 cat >>confdefs.h <<\_ACEOF
30835 #define HAVE_U_INTXX_T 1
30838 cat >>confdefs.h <<\_ACEOF
30839 #define HAVE_INTXX_T 1
30842 cat >>confdefs.h <<\_ACEOF
30843 #define HAVE_SYS_BITYPES_H 1
30846 { echo "$as_me:$LINENO: result: yes" >&5
30847 echo "${ECHO_T}yes" >&6; }
30849 echo "$as_me: failed program was:" >&5
30850 sed 's/^/| /' conftest.$ac_ext >&5
30852 { echo "$as_me:$LINENO: result: no" >&5
30853 echo "${ECHO_T}no" >&6; }
30857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30860 if test -z "$have_u_intxx_t" ; then
30861 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
30862 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
30863 if test "${ac_cv_have_uintxx_t+set}" = set; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30867 cat >conftest.$ac_ext <<_ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h. */
30873 #include <sys/types.h>
30877 uint8_t a; uint16_t b;
30878 uint32_t c; a = b = c = 1;
30883 rm -f conftest.$ac_objext
30884 if { (ac_try="$ac_compile"
30885 case "(($ac_try" in
30886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887 *) ac_try_echo=$ac_try;;
30889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890 (eval "$ac_compile") 2>conftest.er1
30892 grep -v '^ *+' conftest.er1 >conftest.err
30894 cat conftest.err >&5
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); } && {
30897 test -z "$ac_c_werror_flag" ||
30898 test ! -s conftest.err
30899 } && test -s conftest.$ac_objext; then
30900 ac_cv_have_uintxx_t="yes"
30902 echo "$as_me: failed program was:" >&5
30903 sed 's/^/| /' conftest.$ac_ext >&5
30905 ac_cv_have_uintxx_t="no"
30909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30912 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
30913 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
30914 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
30915 cat >>confdefs.h <<\_ACEOF
30916 #define HAVE_UINTXX_T 1
30922 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
30923 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30925 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
30926 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
30927 cat >conftest.$ac_ext <<_ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h. */
30933 #include <sys/bitypes.h>
30937 int64_t a; u_int64_t b;
30943 rm -f conftest.$ac_objext
30944 if { (ac_try="$ac_compile"
30945 case "(($ac_try" in
30946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30947 *) ac_try_echo=$ac_try;;
30949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30950 (eval "$ac_compile") 2>conftest.er1
30952 grep -v '^ *+' conftest.er1 >conftest.err
30954 cat conftest.err >&5
30955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30956 (exit $ac_status); } && {
30957 test -z "$ac_c_werror_flag" ||
30958 test ! -s conftest.err
30959 } && test -s conftest.$ac_objext; then
30960 cat >>confdefs.h <<\_ACEOF
30961 #define HAVE_U_INT64_T 1
30964 cat >>confdefs.h <<\_ACEOF
30965 #define HAVE_INT64_T 1
30968 { echo "$as_me:$LINENO: result: yes" >&5
30969 echo "${ECHO_T}yes" >&6; }
30971 echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30974 { echo "$as_me:$LINENO: result: no" >&5
30975 echo "${ECHO_T}no" >&6; }
30979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30982 if (test -z "$have_uintxx_t" && \
30983 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30985 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
30986 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
30987 cat >conftest.$ac_ext <<_ACEOF
30990 cat confdefs.h >>conftest.$ac_ext
30991 cat >>conftest.$ac_ext <<_ACEOF
30992 /* end confdefs.h. */
30993 #include <sys/bitypes.h>
30997 uint8_t a; uint16_t b;
30998 uint32_t c; a = b = c = 1;
31003 rm -f conftest.$ac_objext
31004 if { (ac_try="$ac_compile"
31005 case "(($ac_try" in
31006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007 *) ac_try_echo=$ac_try;;
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010 (eval "$ac_compile") 2>conftest.er1
31012 grep -v '^ *+' conftest.er1 >conftest.err
31014 cat conftest.err >&5
31015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016 (exit $ac_status); } && {
31017 test -z "$ac_c_werror_flag" ||
31018 test ! -s conftest.err
31019 } && test -s conftest.$ac_objext; then
31020 cat >>confdefs.h <<\_ACEOF
31021 #define HAVE_UINTXX_T 1
31024 { echo "$as_me:$LINENO: result: yes" >&5
31025 echo "${ECHO_T}yes" >&6; }
31027 echo "$as_me: failed program was:" >&5
31028 sed 's/^/| /' conftest.$ac_ext >&5
31030 { echo "$as_me:$LINENO: result: no" >&5
31031 echo "${ECHO_T}no" >&6; }
31035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31075 echo $ECHO_N "(cached) $ECHO_C" >&6
31077 cat >conftest.$ac_ext <<_ACEOF
31080 cat confdefs.h >>conftest.$ac_ext
31081 cat >>conftest.$ac_ext <<_ACEOF
31082 /* end confdefs.h. */
31083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31085 #define $ac_func innocuous_$ac_func
31087 /* System header to define __stub macros and hopefully few prototypes,
31088 which can conflict with char $ac_func (); below.
31089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31090 <limits.h> exists even on freestanding compilers. */
31093 # include <limits.h>
31095 # include <assert.h>
31100 /* Override any GCC internal prototype to avoid an error.
31101 Use char because int might match the return type of a GCC
31102 builtin and then its argument prototype would still apply. */
31107 /* The GNU C library defines this for functions which it implements
31108 to always fail with ENOSYS. Some functions are actually named
31109 something starting with __ and the normal name is an alias. */
31110 #if defined __stub_$ac_func || defined __stub___$ac_func
31117 return $ac_func ();
31122 rm -f conftest.$ac_objext conftest$ac_exeext
31123 if { (ac_try="$ac_link"
31124 case "(($ac_try" in
31125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31126 *) ac_try_echo=$ac_try;;
31128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31129 (eval "$ac_link") 2>conftest.er1
31131 grep -v '^ *+' conftest.er1 >conftest.err
31133 cat conftest.err >&5
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); } && {
31136 test -z "$ac_c_werror_flag" ||
31137 test ! -s conftest.err
31138 } && test -s conftest$ac_exeext &&
31139 $as_test_x conftest$ac_exeext; then
31140 eval "$as_ac_var=yes"
31142 echo "$as_me: failed program was:" >&5
31143 sed 's/^/| /' conftest.$ac_ext >&5
31145 eval "$as_ac_var=no"
31148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31149 conftest$ac_exeext conftest.$ac_ext
31151 ac_res=`eval echo '${'$as_ac_var'}'`
31152 { echo "$as_me:$LINENO: result: $ac_res" >&5
31153 echo "${ECHO_T}$ac_res" >&6; }
31154 if test `eval echo '${'$as_ac_var'}'` = yes; then
31155 cat >>confdefs.h <<_ACEOF
31156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31160 echo 'configure: cannot find needed function.'; exit 1
31167 for ac_func in fchdir
31169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31173 echo $ECHO_N "(cached) $ECHO_C" >&6
31175 cat >conftest.$ac_ext <<_ACEOF
31178 cat confdefs.h >>conftest.$ac_ext
31179 cat >>conftest.$ac_ext <<_ACEOF
31180 /* end confdefs.h. */
31181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31183 #define $ac_func innocuous_$ac_func
31185 /* System header to define __stub macros and hopefully few prototypes,
31186 which can conflict with char $ac_func (); below.
31187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31188 <limits.h> exists even on freestanding compilers. */
31191 # include <limits.h>
31193 # include <assert.h>
31198 /* Override any GCC internal prototype to avoid an error.
31199 Use char because int might match the return type of a GCC
31200 builtin and then its argument prototype would still apply. */
31205 /* The GNU C library defines this for functions which it implements
31206 to always fail with ENOSYS. Some functions are actually named
31207 something starting with __ and the normal name is an alias. */
31208 #if defined __stub_$ac_func || defined __stub___$ac_func
31215 return $ac_func ();
31220 rm -f conftest.$ac_objext conftest$ac_exeext
31221 if { (ac_try="$ac_link"
31222 case "(($ac_try" in
31223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224 *) ac_try_echo=$ac_try;;
31226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227 (eval "$ac_link") 2>conftest.er1
31229 grep -v '^ *+' conftest.er1 >conftest.err
31231 cat conftest.err >&5
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); } && {
31234 test -z "$ac_c_werror_flag" ||
31235 test ! -s conftest.err
31236 } && test -s conftest$ac_exeext &&
31237 $as_test_x conftest$ac_exeext; then
31238 eval "$as_ac_var=yes"
31240 echo "$as_me: failed program was:" >&5
31241 sed 's/^/| /' conftest.$ac_ext >&5
31243 eval "$as_ac_var=no"
31246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31247 conftest$ac_exeext conftest.$ac_ext
31249 ac_res=`eval echo '${'$as_ac_var'}'`
31250 { echo "$as_me:$LINENO: result: $ac_res" >&5
31251 echo "${ECHO_T}$ac_res" >&6; }
31252 if test `eval echo '${'$as_ac_var'}'` = yes; then
31253 cat >>confdefs.h <<_ACEOF
31254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31256 cat >>confdefs.h <<\_ACEOF
31257 #define HAVE_FCHDIR 1
31264 for ac_func in strtoll
31266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31270 echo $ECHO_N "(cached) $ECHO_C" >&6
31272 cat >conftest.$ac_ext <<_ACEOF
31275 cat confdefs.h >>conftest.$ac_ext
31276 cat >>conftest.$ac_ext <<_ACEOF
31277 /* end confdefs.h. */
31278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31280 #define $ac_func innocuous_$ac_func
31282 /* System header to define __stub macros and hopefully few prototypes,
31283 which can conflict with char $ac_func (); below.
31284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31285 <limits.h> exists even on freestanding compilers. */
31288 # include <limits.h>
31290 # include <assert.h>
31295 /* Override any GCC internal prototype to avoid an error.
31296 Use char because int might match the return type of a GCC
31297 builtin and then its argument prototype would still apply. */
31302 /* The GNU C library defines this for functions which it implements
31303 to always fail with ENOSYS. Some functions are actually named
31304 something starting with __ and the normal name is an alias. */
31305 #if defined __stub_$ac_func || defined __stub___$ac_func
31312 return $ac_func ();
31317 rm -f conftest.$ac_objext conftest$ac_exeext
31318 if { (ac_try="$ac_link"
31319 case "(($ac_try" in
31320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31321 *) ac_try_echo=$ac_try;;
31323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31324 (eval "$ac_link") 2>conftest.er1
31326 grep -v '^ *+' conftest.er1 >conftest.err
31328 cat conftest.err >&5
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } && {
31331 test -z "$ac_c_werror_flag" ||
31332 test ! -s conftest.err
31333 } && test -s conftest$ac_exeext &&
31334 $as_test_x conftest$ac_exeext; then
31335 eval "$as_ac_var=yes"
31337 echo "$as_me: failed program was:" >&5
31338 sed 's/^/| /' conftest.$ac_ext >&5
31340 eval "$as_ac_var=no"
31343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31344 conftest$ac_exeext conftest.$ac_ext
31346 ac_res=`eval echo '${'$as_ac_var'}'`
31347 { echo "$as_me:$LINENO: result: $ac_res" >&5
31348 echo "${ECHO_T}$ac_res" >&6; }
31349 if test `eval echo '${'$as_ac_var'}'` = yes; then
31350 cat >>confdefs.h <<_ACEOF
31351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31353 cat >>confdefs.h <<\_ACEOF
31354 #define HAVE_STRTOLL 1
31361 for ac_func in posix_fadvise
31363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31367 echo $ECHO_N "(cached) $ECHO_C" >&6
31369 cat >conftest.$ac_ext <<_ACEOF
31372 cat confdefs.h >>conftest.$ac_ext
31373 cat >>conftest.$ac_ext <<_ACEOF
31374 /* end confdefs.h. */
31375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31377 #define $ac_func innocuous_$ac_func
31379 /* System header to define __stub macros and hopefully few prototypes,
31380 which can conflict with char $ac_func (); below.
31381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31382 <limits.h> exists even on freestanding compilers. */
31385 # include <limits.h>
31387 # include <assert.h>
31392 /* Override any GCC internal prototype to avoid an error.
31393 Use char because int might match the return type of a GCC
31394 builtin and then its argument prototype would still apply. */
31399 /* The GNU C library defines this for functions which it implements
31400 to always fail with ENOSYS. Some functions are actually named
31401 something starting with __ and the normal name is an alias. */
31402 #if defined __stub_$ac_func || defined __stub___$ac_func
31409 return $ac_func ();
31414 rm -f conftest.$ac_objext conftest$ac_exeext
31415 if { (ac_try="$ac_link"
31416 case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_link") 2>conftest.er1
31423 grep -v '^ *+' conftest.er1 >conftest.err
31425 cat conftest.err >&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } && {
31428 test -z "$ac_c_werror_flag" ||
31429 test ! -s conftest.err
31430 } && test -s conftest$ac_exeext &&
31431 $as_test_x conftest$ac_exeext; then
31432 eval "$as_ac_var=yes"
31434 echo "$as_me: failed program was:" >&5
31435 sed 's/^/| /' conftest.$ac_ext >&5
31437 eval "$as_ac_var=no"
31440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31441 conftest$ac_exeext conftest.$ac_ext
31443 ac_res=`eval echo '${'$as_ac_var'}'`
31444 { echo "$as_me:$LINENO: result: $ac_res" >&5
31445 echo "${ECHO_T}$ac_res" >&6; }
31446 if test `eval echo '${'$as_ac_var'}'` = yes; then
31447 cat >>confdefs.h <<_ACEOF
31448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31455 for ac_func in fdatasync
31457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31461 echo $ECHO_N "(cached) $ECHO_C" >&6
31463 cat >conftest.$ac_ext <<_ACEOF
31466 cat confdefs.h >>conftest.$ac_ext
31467 cat >>conftest.$ac_ext <<_ACEOF
31468 /* end confdefs.h. */
31469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31471 #define $ac_func innocuous_$ac_func
31473 /* System header to define __stub macros and hopefully few prototypes,
31474 which can conflict with char $ac_func (); below.
31475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31476 <limits.h> exists even on freestanding compilers. */
31479 # include <limits.h>
31481 # include <assert.h>
31486 /* Override any GCC internal prototype to avoid an error.
31487 Use char because int might match the return type of a GCC
31488 builtin and then its argument prototype would still apply. */
31493 /* The GNU C library defines this for functions which it implements
31494 to always fail with ENOSYS. Some functions are actually named
31495 something starting with __ and the normal name is an alias. */
31496 #if defined __stub_$ac_func || defined __stub___$ac_func
31503 return $ac_func ();
31508 rm -f conftest.$ac_objext conftest$ac_exeext
31509 if { (ac_try="$ac_link"
31510 case "(($ac_try" in
31511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_link") 2>conftest.er1
31517 grep -v '^ *+' conftest.er1 >conftest.err
31519 cat conftest.err >&5
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); } && {
31522 test -z "$ac_c_werror_flag" ||
31523 test ! -s conftest.err
31524 } && test -s conftest$ac_exeext &&
31525 $as_test_x conftest$ac_exeext; then
31526 eval "$as_ac_var=yes"
31528 echo "$as_me: failed program was:" >&5
31529 sed 's/^/| /' conftest.$ac_ext >&5
31531 eval "$as_ac_var=no"
31534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31535 conftest$ac_exeext conftest.$ac_ext
31537 ac_res=`eval echo '${'$as_ac_var'}'`
31538 { echo "$as_me:$LINENO: result: $ac_res" >&5
31539 echo "${ECHO_T}$ac_res" >&6; }
31540 if test `eval echo '${'$as_ac_var'}'` = yes; then
31541 cat >>confdefs.h <<_ACEOF
31542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31550 for ac_func in chflags
31552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31556 echo $ECHO_N "(cached) $ECHO_C" >&6
31558 cat >conftest.$ac_ext <<_ACEOF
31561 cat confdefs.h >>conftest.$ac_ext
31562 cat >>conftest.$ac_ext <<_ACEOF
31563 /* end confdefs.h. */
31564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31566 #define $ac_func innocuous_$ac_func
31568 /* System header to define __stub macros and hopefully few prototypes,
31569 which can conflict with char $ac_func (); below.
31570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31571 <limits.h> exists even on freestanding compilers. */
31574 # include <limits.h>
31576 # include <assert.h>
31581 /* Override any GCC internal prototype to avoid an error.
31582 Use char because int might match the return type of a GCC
31583 builtin and then its argument prototype would still apply. */
31588 /* The GNU C library defines this for functions which it implements
31589 to always fail with ENOSYS. Some functions are actually named
31590 something starting with __ and the normal name is an alias. */
31591 #if defined __stub_$ac_func || defined __stub___$ac_func
31598 return $ac_func ();
31603 rm -f conftest.$ac_objext conftest$ac_exeext
31604 if { (ac_try="$ac_link"
31605 case "(($ac_try" in
31606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607 *) ac_try_echo=$ac_try;;
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610 (eval "$ac_link") 2>conftest.er1
31612 grep -v '^ *+' conftest.er1 >conftest.err
31614 cat conftest.err >&5
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); } && {
31617 test -z "$ac_c_werror_flag" ||
31618 test ! -s conftest.err
31619 } && test -s conftest$ac_exeext &&
31620 $as_test_x conftest$ac_exeext; then
31621 eval "$as_ac_var=yes"
31623 echo "$as_me: failed program was:" >&5
31624 sed 's/^/| /' conftest.$ac_ext >&5
31626 eval "$as_ac_var=no"
31629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31630 conftest$ac_exeext conftest.$ac_ext
31632 ac_res=`eval echo '${'$as_ac_var'}'`
31633 { echo "$as_me:$LINENO: result: $ac_res" >&5
31634 echo "${ECHO_T}$ac_res" >&6; }
31635 if test `eval echo '${'$as_ac_var'}'` = yes; then
31636 cat >>confdefs.h <<_ACEOF
31637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31648 for ac_func in snprintf vsnprintf gethostid fseeko
31650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31654 echo $ECHO_N "(cached) $ECHO_C" >&6
31656 cat >conftest.$ac_ext <<_ACEOF
31659 cat confdefs.h >>conftest.$ac_ext
31660 cat >>conftest.$ac_ext <<_ACEOF
31661 /* end confdefs.h. */
31662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31664 #define $ac_func innocuous_$ac_func
31666 /* System header to define __stub macros and hopefully few prototypes,
31667 which can conflict with char $ac_func (); below.
31668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31669 <limits.h> exists even on freestanding compilers. */
31672 # include <limits.h>
31674 # include <assert.h>
31679 /* Override any GCC internal prototype to avoid an error.
31680 Use char because int might match the return type of a GCC
31681 builtin and then its argument prototype would still apply. */
31686 /* The GNU C library defines this for functions which it implements
31687 to always fail with ENOSYS. Some functions are actually named
31688 something starting with __ and the normal name is an alias. */
31689 #if defined __stub_$ac_func || defined __stub___$ac_func
31696 return $ac_func ();
31701 rm -f conftest.$ac_objext conftest$ac_exeext
31702 if { (ac_try="$ac_link"
31703 case "(($ac_try" in
31704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705 *) ac_try_echo=$ac_try;;
31707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31708 (eval "$ac_link") 2>conftest.er1
31710 grep -v '^ *+' conftest.er1 >conftest.err
31712 cat conftest.err >&5
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); } && {
31715 test -z "$ac_c_werror_flag" ||
31716 test ! -s conftest.err
31717 } && test -s conftest$ac_exeext &&
31718 $as_test_x conftest$ac_exeext; then
31719 eval "$as_ac_var=yes"
31721 echo "$as_me: failed program was:" >&5
31722 sed 's/^/| /' conftest.$ac_ext >&5
31724 eval "$as_ac_var=no"
31727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31728 conftest$ac_exeext conftest.$ac_ext
31730 ac_res=`eval echo '${'$as_ac_var'}'`
31731 { echo "$as_me:$LINENO: result: $ac_res" >&5
31732 echo "${ECHO_T}$ac_res" >&6; }
31733 if test `eval echo '${'$as_ac_var'}'` = yes; then
31734 cat >>confdefs.h <<_ACEOF
31735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31742 { echo "$as_me:$LINENO: checking for va_copy" >&5
31743 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
31744 if test "${ba_cv_va_copy+set}" = set; then
31745 echo $ECHO_N "(cached) $ECHO_C" >&6
31747 cat >conftest.$ac_ext <<_ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h. */
31754 #include <stdarg.h>
31755 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
31756 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
31761 call_use_va_copy(1,2,3)
31766 rm -f conftest.$ac_objext conftest$ac_exeext
31767 if { (ac_try="$ac_link"
31768 case "(($ac_try" in
31769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31770 *) ac_try_echo=$ac_try;;
31772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31773 (eval "$ac_link") 2>conftest.er1
31775 grep -v '^ *+' conftest.er1 >conftest.err
31777 cat conftest.err >&5
31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779 (exit $ac_status); } && {
31780 test -z "$ac_c_werror_flag" ||
31781 test ! -s conftest.err
31782 } && test -s conftest$ac_exeext &&
31783 $as_test_x conftest$ac_exeext; then
31786 echo "$as_me: failed program was:" >&5
31787 sed 's/^/| /' conftest.$ac_ext >&5
31792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31793 conftest$ac_exeext conftest.$ac_ext
31795 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
31796 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
31797 test $ba_cv_va_copy = yes &&
31798 cat >>confdefs.h <<\_ACEOF
31799 #define HAVE_VA_COPY 1
31808 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
31810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31813 if { as_var=$as_ac_var; eval "test \"\${$as_var+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. */
31822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31824 #define $ac_func innocuous_$ac_func
31826 /* System header to define __stub macros and hopefully few prototypes,
31827 which can conflict with char $ac_func (); below.
31828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31829 <limits.h> exists even on freestanding compilers. */
31832 # include <limits.h>
31834 # include <assert.h>
31839 /* Override any GCC internal prototype to avoid an error.
31840 Use char because int might match the return type of a GCC
31841 builtin and then its argument prototype would still apply. */
31846 /* The GNU C library defines this for functions which it implements
31847 to always fail with ENOSYS. Some functions are actually named
31848 something starting with __ and the normal name is an alias. */
31849 #if defined __stub_$ac_func || defined __stub___$ac_func
31856 return $ac_func ();
31861 rm -f conftest.$ac_objext conftest$ac_exeext
31862 if { (ac_try="$ac_link"
31863 case "(($ac_try" in
31864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31865 *) ac_try_echo=$ac_try;;
31867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31868 (eval "$ac_link") 2>conftest.er1
31870 grep -v '^ *+' conftest.er1 >conftest.err
31872 cat conftest.err >&5
31873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874 (exit $ac_status); } && {
31875 test -z "$ac_c_werror_flag" ||
31876 test ! -s conftest.err
31877 } && test -s conftest$ac_exeext &&
31878 $as_test_x conftest$ac_exeext; then
31879 eval "$as_ac_var=yes"
31881 echo "$as_me: failed program was:" >&5
31882 sed 's/^/| /' conftest.$ac_ext >&5
31884 eval "$as_ac_var=no"
31887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31888 conftest$ac_exeext conftest.$ac_ext
31890 ac_res=`eval echo '${'$as_ac_var'}'`
31891 { echo "$as_me:$LINENO: result: $ac_res" >&5
31892 echo "${ECHO_T}$ac_res" >&6; }
31893 if test `eval echo '${'$as_ac_var'}'` = yes; then
31894 cat >>confdefs.h <<_ACEOF
31895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31902 # If resolver functions are not in libc check for -lnsl or -lresolv.
31903 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
31904 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
31905 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
31906 echo $ECHO_N "(cached) $ECHO_C" >&6
31908 cat >conftest.$ac_ext <<_ACEOF
31911 cat confdefs.h >>conftest.$ac_ext
31912 cat >>conftest.$ac_ext <<_ACEOF
31913 /* end confdefs.h. */
31914 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
31915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31916 #define gethostbyname_r innocuous_gethostbyname_r
31918 /* System header to define __stub macros and hopefully few prototypes,
31919 which can conflict with char gethostbyname_r (); below.
31920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31921 <limits.h> exists even on freestanding compilers. */
31924 # include <limits.h>
31926 # include <assert.h>
31929 #undef gethostbyname_r
31931 /* Override any GCC internal prototype to avoid an error.
31932 Use char because int might match the return type of a GCC
31933 builtin and then its argument prototype would still apply. */
31937 char gethostbyname_r ();
31938 /* The GNU C library defines this for functions which it implements
31939 to always fail with ENOSYS. Some functions are actually named
31940 something starting with __ and the normal name is an alias. */
31941 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31948 return gethostbyname_r ();
31953 rm -f conftest.$ac_objext conftest$ac_exeext
31954 if { (ac_try="$ac_link"
31955 case "(($ac_try" in
31956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957 *) ac_try_echo=$ac_try;;
31959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31960 (eval "$ac_link") 2>conftest.er1
31962 grep -v '^ *+' conftest.er1 >conftest.err
31964 cat conftest.err >&5
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } && {
31967 test -z "$ac_c_werror_flag" ||
31968 test ! -s conftest.err
31969 } && test -s conftest$ac_exeext &&
31970 $as_test_x conftest$ac_exeext; then
31971 ac_cv_func_gethostbyname_r=yes
31973 echo "$as_me: failed program was:" >&5
31974 sed 's/^/| /' conftest.$ac_ext >&5
31976 ac_cv_func_gethostbyname_r=no
31979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31980 conftest$ac_exeext conftest.$ac_ext
31982 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
31983 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
31984 if test $ac_cv_func_gethostbyname_r = yes; then
31985 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
31986 echo "${ECHO_T}using libc's resolver" >&6; }
31989 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
31990 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
31991 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
31992 echo $ECHO_N "(cached) $ECHO_C" >&6
31994 ac_check_lib_save_LIBS=$LIBS
31996 cat >conftest.$ac_ext <<_ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h. */
32003 /* Override any GCC internal prototype to avoid an error.
32004 Use char because int might match the return type of a GCC
32005 builtin and then its argument prototype would still apply. */
32009 char gethostbyname_r ();
32013 return gethostbyname_r ();
32018 rm -f conftest.$ac_objext conftest$ac_exeext
32019 if { (ac_try="$ac_link"
32020 case "(($ac_try" in
32021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022 *) ac_try_echo=$ac_try;;
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025 (eval "$ac_link") 2>conftest.er1
32027 grep -v '^ *+' conftest.er1 >conftest.err
32029 cat conftest.err >&5
32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031 (exit $ac_status); } && {
32032 test -z "$ac_c_werror_flag" ||
32033 test ! -s conftest.err
32034 } && test -s conftest$ac_exeext &&
32035 $as_test_x conftest$ac_exeext; then
32036 ac_cv_lib_nsl_gethostbyname_r=yes
32038 echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32041 ac_cv_lib_nsl_gethostbyname_r=no
32044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32045 conftest$ac_exeext conftest.$ac_ext
32046 LIBS=$ac_check_lib_save_LIBS
32048 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
32049 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
32050 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
32051 cat >>confdefs.h <<_ACEOF
32052 #define HAVE_LIBNSL 1
32060 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
32061 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
32062 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
32063 echo $ECHO_N "(cached) $ECHO_C" >&6
32065 ac_check_lib_save_LIBS=$LIBS
32066 LIBS="-lresolv $LIBS"
32067 cat >conftest.$ac_ext <<_ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h. */
32074 /* Override any GCC internal prototype to avoid an error.
32075 Use char because int might match the return type of a GCC
32076 builtin and then its argument prototype would still apply. */
32080 char gethostbyname_r ();
32084 return gethostbyname_r ();
32089 rm -f conftest.$ac_objext conftest$ac_exeext
32090 if { (ac_try="$ac_link"
32091 case "(($ac_try" in
32092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093 *) ac_try_echo=$ac_try;;
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096 (eval "$ac_link") 2>conftest.er1
32098 grep -v '^ *+' conftest.er1 >conftest.err
32100 cat conftest.err >&5
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } && {
32103 test -z "$ac_c_werror_flag" ||
32104 test ! -s conftest.err
32105 } && test -s conftest$ac_exeext &&
32106 $as_test_x conftest$ac_exeext; then
32107 ac_cv_lib_resolv_gethostbyname_r=yes
32109 echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32112 ac_cv_lib_resolv_gethostbyname_r=no
32115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32116 conftest$ac_exeext conftest.$ac_ext
32117 LIBS=$ac_check_lib_save_LIBS
32119 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
32120 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
32121 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
32122 cat >>confdefs.h <<_ACEOF
32123 #define HAVE_LIBRESOLV 1
32126 LIBS="-lresolv $LIBS"
32136 for ac_func in inet_pton
32138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32142 echo $ECHO_N "(cached) $ECHO_C" >&6
32144 cat >conftest.$ac_ext <<_ACEOF
32147 cat confdefs.h >>conftest.$ac_ext
32148 cat >>conftest.$ac_ext <<_ACEOF
32149 /* end confdefs.h. */
32150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32152 #define $ac_func innocuous_$ac_func
32154 /* System header to define __stub macros and hopefully few prototypes,
32155 which can conflict with char $ac_func (); below.
32156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32157 <limits.h> exists even on freestanding compilers. */
32160 # include <limits.h>
32162 # include <assert.h>
32167 /* Override any GCC internal prototype to avoid an error.
32168 Use char because int might match the return type of a GCC
32169 builtin and then its argument prototype would still apply. */
32174 /* The GNU C library defines this for functions which it implements
32175 to always fail with ENOSYS. Some functions are actually named
32176 something starting with __ and the normal name is an alias. */
32177 #if defined __stub_$ac_func || defined __stub___$ac_func
32184 return $ac_func ();
32189 rm -f conftest.$ac_objext conftest$ac_exeext
32190 if { (ac_try="$ac_link"
32191 case "(($ac_try" in
32192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32193 *) ac_try_echo=$ac_try;;
32195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32196 (eval "$ac_link") 2>conftest.er1
32198 grep -v '^ *+' conftest.er1 >conftest.err
32200 cat conftest.err >&5
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); } && {
32203 test -z "$ac_c_werror_flag" ||
32204 test ! -s conftest.err
32205 } && test -s conftest$ac_exeext &&
32206 $as_test_x conftest$ac_exeext; then
32207 eval "$as_ac_var=yes"
32209 echo "$as_me: failed program was:" >&5
32210 sed 's/^/| /' conftest.$ac_ext >&5
32212 eval "$as_ac_var=no"
32215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32216 conftest$ac_exeext conftest.$ac_ext
32218 ac_res=`eval echo '${'$as_ac_var'}'`
32219 { echo "$as_me:$LINENO: result: $ac_res" >&5
32220 echo "${ECHO_T}$ac_res" >&6; }
32221 if test `eval echo '${'$as_ac_var'}'` = yes; then
32222 cat >>confdefs.h <<_ACEOF
32223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32225 cat >>confdefs.h <<\_ACEOF
32226 #define HAVE_INET_PTON 1
32233 for ac_func in inet_ntop
32235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32239 echo $ECHO_N "(cached) $ECHO_C" >&6
32241 cat >conftest.$ac_ext <<_ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h. */
32247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32249 #define $ac_func innocuous_$ac_func
32251 /* System header to define __stub macros and hopefully few prototypes,
32252 which can conflict with char $ac_func (); below.
32253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32254 <limits.h> exists even on freestanding compilers. */
32257 # include <limits.h>
32259 # include <assert.h>
32264 /* Override any GCC internal prototype to avoid an error.
32265 Use char because int might match the return type of a GCC
32266 builtin and then its argument prototype would still apply. */
32271 /* The GNU C library defines this for functions which it implements
32272 to always fail with ENOSYS. Some functions are actually named
32273 something starting with __ and the normal name is an alias. */
32274 #if defined __stub_$ac_func || defined __stub___$ac_func
32281 return $ac_func ();
32286 rm -f conftest.$ac_objext conftest$ac_exeext
32287 if { (ac_try="$ac_link"
32288 case "(($ac_try" in
32289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290 *) ac_try_echo=$ac_try;;
32292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32293 (eval "$ac_link") 2>conftest.er1
32295 grep -v '^ *+' conftest.er1 >conftest.err
32297 cat conftest.err >&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); } && {
32300 test -z "$ac_c_werror_flag" ||
32301 test ! -s conftest.err
32302 } && test -s conftest$ac_exeext &&
32303 $as_test_x conftest$ac_exeext; then
32304 eval "$as_ac_var=yes"
32306 echo "$as_me: failed program was:" >&5
32307 sed 's/^/| /' conftest.$ac_ext >&5
32309 eval "$as_ac_var=no"
32312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32313 conftest$ac_exeext conftest.$ac_ext
32315 ac_res=`eval echo '${'$as_ac_var'}'`
32316 { echo "$as_me:$LINENO: result: $ac_res" >&5
32317 echo "${ECHO_T}$ac_res" >&6; }
32318 if test `eval echo '${'$as_ac_var'}'` = yes; then
32319 cat >>confdefs.h <<_ACEOF
32320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32322 cat >>confdefs.h <<\_ACEOF
32323 #define HAVE_INET_NTOP 1
32330 for ac_func in gethostbyname2
32332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32336 echo $ECHO_N "(cached) $ECHO_C" >&6
32338 cat >conftest.$ac_ext <<_ACEOF
32341 cat confdefs.h >>conftest.$ac_ext
32342 cat >>conftest.$ac_ext <<_ACEOF
32343 /* end confdefs.h. */
32344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32346 #define $ac_func innocuous_$ac_func
32348 /* System header to define __stub macros and hopefully few prototypes,
32349 which can conflict with char $ac_func (); below.
32350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32351 <limits.h> exists even on freestanding compilers. */
32354 # include <limits.h>
32356 # include <assert.h>
32361 /* Override any GCC internal prototype to avoid an error.
32362 Use char because int might match the return type of a GCC
32363 builtin and then its argument prototype would still apply. */
32368 /* The GNU C library defines this for functions which it implements
32369 to always fail with ENOSYS. Some functions are actually named
32370 something starting with __ and the normal name is an alias. */
32371 #if defined __stub_$ac_func || defined __stub___$ac_func
32378 return $ac_func ();
32383 rm -f conftest.$ac_objext conftest$ac_exeext
32384 if { (ac_try="$ac_link"
32385 case "(($ac_try" in
32386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32387 *) ac_try_echo=$ac_try;;
32389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32390 (eval "$ac_link") 2>conftest.er1
32392 grep -v '^ *+' conftest.er1 >conftest.err
32394 cat conftest.err >&5
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); } && {
32397 test -z "$ac_c_werror_flag" ||
32398 test ! -s conftest.err
32399 } && test -s conftest$ac_exeext &&
32400 $as_test_x conftest$ac_exeext; then
32401 eval "$as_ac_var=yes"
32403 echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32406 eval "$as_ac_var=no"
32409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32410 conftest$ac_exeext conftest.$ac_ext
32412 ac_res=`eval echo '${'$as_ac_var'}'`
32413 { echo "$as_me:$LINENO: result: $ac_res" >&5
32414 echo "${ECHO_T}$ac_res" >&6; }
32415 if test `eval echo '${'$as_ac_var'}'` = yes; then
32416 cat >>confdefs.h <<_ACEOF
32417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32419 cat >>confdefs.h <<\_ACEOF
32420 #define HAVE_GETHOSTBYNAME2 1
32427 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
32428 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
32429 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
32430 echo $ECHO_N "(cached) $ECHO_C" >&6
32432 cat >conftest.$ac_ext <<_ACEOF
32435 cat confdefs.h >>conftest.$ac_ext
32436 cat >>conftest.$ac_ext <<_ACEOF
32437 /* end confdefs.h. */
32438 #include <sys/socket.h>
32442 struct sockaddr s; s.sa_len;
32447 rm -f conftest.$ac_objext
32448 if { (ac_try="$ac_compile"
32449 case "(($ac_try" in
32450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32451 *) ac_try_echo=$ac_try;;
32453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32454 (eval "$ac_compile") 2>conftest.er1
32456 grep -v '^ *+' conftest.er1 >conftest.err
32458 cat conftest.err >&5
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); } && {
32461 test -z "$ac_c_werror_flag" ||
32462 test ! -s conftest.err
32463 } && test -s conftest.$ac_objext; then
32464 ac_cv_struct_sockaddr_sa_len=yes
32466 echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32469 ac_cv_struct_sockaddr_sa_len=no
32472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32474 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
32475 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
32477 if test $ac_cv_struct_sockaddr_sa_len = yes; then
32479 cat >>confdefs.h <<\_ACEOF
32480 #define HAVE_SA_LEN 1
32489 for ac_func in strftime
32491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32495 echo $ECHO_N "(cached) $ECHO_C" >&6
32497 cat >conftest.$ac_ext <<_ACEOF
32500 cat confdefs.h >>conftest.$ac_ext
32501 cat >>conftest.$ac_ext <<_ACEOF
32502 /* end confdefs.h. */
32503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32505 #define $ac_func innocuous_$ac_func
32507 /* System header to define __stub macros and hopefully few prototypes,
32508 which can conflict with char $ac_func (); below.
32509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32510 <limits.h> exists even on freestanding compilers. */
32513 # include <limits.h>
32515 # include <assert.h>
32520 /* Override any GCC internal prototype to avoid an error.
32521 Use char because int might match the return type of a GCC
32522 builtin and then its argument prototype would still apply. */
32527 /* The GNU C library defines this for functions which it implements
32528 to always fail with ENOSYS. Some functions are actually named
32529 something starting with __ and the normal name is an alias. */
32530 #if defined __stub_$ac_func || defined __stub___$ac_func
32537 return $ac_func ();
32542 rm -f conftest.$ac_objext conftest$ac_exeext
32543 if { (ac_try="$ac_link"
32544 case "(($ac_try" in
32545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32546 *) ac_try_echo=$ac_try;;
32548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32549 (eval "$ac_link") 2>conftest.er1
32551 grep -v '^ *+' conftest.er1 >conftest.err
32553 cat conftest.err >&5
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); } && {
32556 test -z "$ac_c_werror_flag" ||
32557 test ! -s conftest.err
32558 } && test -s conftest$ac_exeext &&
32559 $as_test_x conftest$ac_exeext; then
32560 eval "$as_ac_var=yes"
32562 echo "$as_me: failed program was:" >&5
32563 sed 's/^/| /' conftest.$ac_ext >&5
32565 eval "$as_ac_var=no"
32568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32569 conftest$ac_exeext conftest.$ac_ext
32571 ac_res=`eval echo '${'$as_ac_var'}'`
32572 { echo "$as_me:$LINENO: result: $ac_res" >&5
32573 echo "${ECHO_T}$ac_res" >&6; }
32574 if test `eval echo '${'$as_ac_var'}'` = yes; then
32575 cat >>confdefs.h <<_ACEOF
32576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32580 # strftime is in -lintl on SCO UNIX.
32581 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
32582 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
32583 if test "${ac_cv_lib_intl_strftime+set}" = set; then
32584 echo $ECHO_N "(cached) $ECHO_C" >&6
32586 ac_check_lib_save_LIBS=$LIBS
32587 LIBS="-lintl $LIBS"
32588 cat >conftest.$ac_ext <<_ACEOF
32591 cat confdefs.h >>conftest.$ac_ext
32592 cat >>conftest.$ac_ext <<_ACEOF
32593 /* end confdefs.h. */
32595 /* Override any GCC internal prototype to avoid an error.
32596 Use char because int might match the return type of a GCC
32597 builtin and then its argument prototype would still apply. */
32605 return strftime ();
32610 rm -f conftest.$ac_objext conftest$ac_exeext
32611 if { (ac_try="$ac_link"
32612 case "(($ac_try" in
32613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32614 *) ac_try_echo=$ac_try;;
32616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32617 (eval "$ac_link") 2>conftest.er1
32619 grep -v '^ *+' conftest.er1 >conftest.err
32621 cat conftest.err >&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); } && {
32624 test -z "$ac_c_werror_flag" ||
32625 test ! -s conftest.err
32626 } && test -s conftest$ac_exeext &&
32627 $as_test_x conftest$ac_exeext; then
32628 ac_cv_lib_intl_strftime=yes
32630 echo "$as_me: failed program was:" >&5
32631 sed 's/^/| /' conftest.$ac_ext >&5
32633 ac_cv_lib_intl_strftime=no
32636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32637 conftest$ac_exeext conftest.$ac_ext
32638 LIBS=$ac_check_lib_save_LIBS
32640 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
32641 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
32642 if test $ac_cv_lib_intl_strftime = yes; then
32643 cat >>confdefs.h <<\_ACEOF
32644 #define HAVE_STRFTIME 1
32647 LIBS="-lintl $LIBS"
32654 for ac_func in vprintf
32656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32660 echo $ECHO_N "(cached) $ECHO_C" >&6
32662 cat >conftest.$ac_ext <<_ACEOF
32665 cat confdefs.h >>conftest.$ac_ext
32666 cat >>conftest.$ac_ext <<_ACEOF
32667 /* end confdefs.h. */
32668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32670 #define $ac_func innocuous_$ac_func
32672 /* System header to define __stub macros and hopefully few prototypes,
32673 which can conflict with char $ac_func (); below.
32674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32675 <limits.h> exists even on freestanding compilers. */
32678 # include <limits.h>
32680 # include <assert.h>
32685 /* Override any GCC internal prototype to avoid an error.
32686 Use char because int might match the return type of a GCC
32687 builtin and then its argument prototype would still apply. */
32692 /* The GNU C library defines this for functions which it implements
32693 to always fail with ENOSYS. Some functions are actually named
32694 something starting with __ and the normal name is an alias. */
32695 #if defined __stub_$ac_func || defined __stub___$ac_func
32702 return $ac_func ();
32707 rm -f conftest.$ac_objext conftest$ac_exeext
32708 if { (ac_try="$ac_link"
32709 case "(($ac_try" in
32710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32711 *) ac_try_echo=$ac_try;;
32713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32714 (eval "$ac_link") 2>conftest.er1
32716 grep -v '^ *+' conftest.er1 >conftest.err
32718 cat conftest.err >&5
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); } && {
32721 test -z "$ac_c_werror_flag" ||
32722 test ! -s conftest.err
32723 } && test -s conftest$ac_exeext &&
32724 $as_test_x conftest$ac_exeext; then
32725 eval "$as_ac_var=yes"
32727 echo "$as_me: failed program was:" >&5
32728 sed 's/^/| /' conftest.$ac_ext >&5
32730 eval "$as_ac_var=no"
32733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32734 conftest$ac_exeext conftest.$ac_ext
32736 ac_res=`eval echo '${'$as_ac_var'}'`
32737 { echo "$as_me:$LINENO: result: $ac_res" >&5
32738 echo "${ECHO_T}$ac_res" >&6; }
32739 if test `eval echo '${'$as_ac_var'}'` = yes; then
32740 cat >>confdefs.h <<_ACEOF
32741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32744 { echo "$as_me:$LINENO: checking for _doprnt" >&5
32745 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
32746 if test "${ac_cv_func__doprnt+set}" = set; then
32747 echo $ECHO_N "(cached) $ECHO_C" >&6
32749 cat >conftest.$ac_ext <<_ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h. */
32755 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
32756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32757 #define _doprnt innocuous__doprnt
32759 /* System header to define __stub macros and hopefully few prototypes,
32760 which can conflict with char _doprnt (); below.
32761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32762 <limits.h> exists even on freestanding compilers. */
32765 # include <limits.h>
32767 # include <assert.h>
32772 /* Override any GCC internal prototype to avoid an error.
32773 Use char because int might match the return type of a GCC
32774 builtin and then its argument prototype would still apply. */
32779 /* The GNU C library defines this for functions which it implements
32780 to always fail with ENOSYS. Some functions are actually named
32781 something starting with __ and the normal name is an alias. */
32782 #if defined __stub__doprnt || defined __stub____doprnt
32794 rm -f conftest.$ac_objext conftest$ac_exeext
32795 if { (ac_try="$ac_link"
32796 case "(($ac_try" in
32797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798 *) ac_try_echo=$ac_try;;
32800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801 (eval "$ac_link") 2>conftest.er1
32803 grep -v '^ *+' conftest.er1 >conftest.err
32805 cat conftest.err >&5
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); } && {
32808 test -z "$ac_c_werror_flag" ||
32809 test ! -s conftest.err
32810 } && test -s conftest$ac_exeext &&
32811 $as_test_x conftest$ac_exeext; then
32812 ac_cv_func__doprnt=yes
32814 echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32817 ac_cv_func__doprnt=no
32820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32821 conftest$ac_exeext conftest.$ac_ext
32823 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
32824 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
32825 if test $ac_cv_func__doprnt = yes; then
32827 cat >>confdefs.h <<\_ACEOF
32828 #define HAVE_DOPRNT 1
32837 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32838 # for constant arguments. Useless!
32839 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32840 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32841 if test "${ac_cv_working_alloca_h+set}" = set; then
32842 echo $ECHO_N "(cached) $ECHO_C" >&6
32844 cat >conftest.$ac_ext <<_ACEOF
32847 cat confdefs.h >>conftest.$ac_ext
32848 cat >>conftest.$ac_ext <<_ACEOF
32849 /* end confdefs.h. */
32850 #include <alloca.h>
32854 char *p = (char *) alloca (2 * sizeof (int));
32860 rm -f conftest.$ac_objext conftest$ac_exeext
32861 if { (ac_try="$ac_link"
32862 case "(($ac_try" in
32863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32864 *) ac_try_echo=$ac_try;;
32866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32867 (eval "$ac_link") 2>conftest.er1
32869 grep -v '^ *+' conftest.er1 >conftest.err
32871 cat conftest.err >&5
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); } && {
32874 test -z "$ac_c_werror_flag" ||
32875 test ! -s conftest.err
32876 } && test -s conftest$ac_exeext &&
32877 $as_test_x conftest$ac_exeext; then
32878 ac_cv_working_alloca_h=yes
32880 echo "$as_me: failed program was:" >&5
32881 sed 's/^/| /' conftest.$ac_ext >&5
32883 ac_cv_working_alloca_h=no
32886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32887 conftest$ac_exeext conftest.$ac_ext
32889 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32890 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32891 if test $ac_cv_working_alloca_h = yes; then
32893 cat >>confdefs.h <<\_ACEOF
32894 #define HAVE_ALLOCA_H 1
32899 { echo "$as_me:$LINENO: checking for alloca" >&5
32900 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32901 if test "${ac_cv_func_alloca_works+set}" = set; then
32902 echo $ECHO_N "(cached) $ECHO_C" >&6
32904 cat >conftest.$ac_ext <<_ACEOF
32907 cat confdefs.h >>conftest.$ac_ext
32908 cat >>conftest.$ac_ext <<_ACEOF
32909 /* end confdefs.h. */
32911 # define alloca __builtin_alloca
32914 # include <malloc.h>
32915 # define alloca _alloca
32917 # ifdef HAVE_ALLOCA_H
32918 # include <alloca.h>
32923 # ifndef alloca /* predefined by HP cc +Olibcalls */
32934 char *p = (char *) alloca (1);
32940 rm -f conftest.$ac_objext conftest$ac_exeext
32941 if { (ac_try="$ac_link"
32942 case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_link") 2>conftest.er1
32949 grep -v '^ *+' conftest.er1 >conftest.err
32951 cat conftest.err >&5
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); } && {
32954 test -z "$ac_c_werror_flag" ||
32955 test ! -s conftest.err
32956 } && test -s conftest$ac_exeext &&
32957 $as_test_x conftest$ac_exeext; then
32958 ac_cv_func_alloca_works=yes
32960 echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32963 ac_cv_func_alloca_works=no
32966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32967 conftest$ac_exeext conftest.$ac_ext
32969 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32970 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32972 if test $ac_cv_func_alloca_works = yes; then
32974 cat >>confdefs.h <<\_ACEOF
32975 #define HAVE_ALLOCA 1
32979 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32980 # that cause trouble. Some versions do not even contain alloca or
32981 # contain a buggy version. If you still want to use their alloca,
32982 # use ar to extract alloca.o from them instead of compiling alloca.c.
32984 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32986 cat >>confdefs.h <<\_ACEOF
32991 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32992 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32993 if test "${ac_cv_os_cray+set}" = set; then
32994 echo $ECHO_N "(cached) $ECHO_C" >&6
32996 cat >conftest.$ac_ext <<_ACEOF
32999 cat confdefs.h >>conftest.$ac_ext
33000 cat >>conftest.$ac_ext <<_ACEOF
33001 /* end confdefs.h. */
33002 #if defined CRAY && ! defined CRAY2
33009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33010 $EGREP "webecray" >/dev/null 2>&1; then
33018 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
33019 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
33020 if test $ac_cv_os_cray = yes; then
33021 for ac_func in _getb67 GETB67 getb67; do
33022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33026 echo $ECHO_N "(cached) $ECHO_C" >&6
33028 cat >conftest.$ac_ext <<_ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h. */
33034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33036 #define $ac_func innocuous_$ac_func
33038 /* System header to define __stub macros and hopefully few prototypes,
33039 which can conflict with char $ac_func (); below.
33040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33041 <limits.h> exists even on freestanding compilers. */
33044 # include <limits.h>
33046 # include <assert.h>
33051 /* Override any GCC internal prototype to avoid an error.
33052 Use char because int might match the return type of a GCC
33053 builtin and then its argument prototype would still apply. */
33058 /* The GNU C library defines this for functions which it implements
33059 to always fail with ENOSYS. Some functions are actually named
33060 something starting with __ and the normal name is an alias. */
33061 #if defined __stub_$ac_func || defined __stub___$ac_func
33068 return $ac_func ();
33073 rm -f conftest.$ac_objext conftest$ac_exeext
33074 if { (ac_try="$ac_link"
33075 case "(($ac_try" in
33076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33077 *) ac_try_echo=$ac_try;;
33079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33080 (eval "$ac_link") 2>conftest.er1
33082 grep -v '^ *+' conftest.er1 >conftest.err
33084 cat conftest.err >&5
33085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33086 (exit $ac_status); } && {
33087 test -z "$ac_c_werror_flag" ||
33088 test ! -s conftest.err
33089 } && test -s conftest$ac_exeext &&
33090 $as_test_x conftest$ac_exeext; then
33091 eval "$as_ac_var=yes"
33093 echo "$as_me: failed program was:" >&5
33094 sed 's/^/| /' conftest.$ac_ext >&5
33096 eval "$as_ac_var=no"
33099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33100 conftest$ac_exeext conftest.$ac_ext
33102 ac_res=`eval echo '${'$as_ac_var'}'`
33103 { echo "$as_me:$LINENO: result: $ac_res" >&5
33104 echo "${ECHO_T}$ac_res" >&6; }
33105 if test `eval echo '${'$as_ac_var'}'` = yes; then
33107 cat >>confdefs.h <<_ACEOF
33108 #define CRAY_STACKSEG_END $ac_func
33117 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33118 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33119 if test "${ac_cv_c_stack_direction+set}" = set; then
33120 echo $ECHO_N "(cached) $ECHO_C" >&6
33122 if test "$cross_compiling" = yes; then
33123 ac_cv_c_stack_direction=0
33125 cat >conftest.$ac_ext <<_ACEOF
33128 cat confdefs.h >>conftest.$ac_ext
33129 cat >>conftest.$ac_ext <<_ACEOF
33130 /* end confdefs.h. */
33131 $ac_includes_default
33133 find_stack_direction ()
33135 static char *addr = 0;
33140 return find_stack_direction ();
33143 return (&dummy > addr) ? 1 : -1;
33149 return find_stack_direction () < 0;
33152 rm -f conftest$ac_exeext
33153 if { (ac_try="$ac_link"
33154 case "(($ac_try" in
33155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33156 *) ac_try_echo=$ac_try;;
33158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33159 (eval "$ac_link") 2>&5
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33163 { (case "(($ac_try" in
33164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165 *) ac_try_echo=$ac_try;;
33167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168 (eval "$ac_try") 2>&5
33170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171 (exit $ac_status); }; }; then
33172 ac_cv_c_stack_direction=1
33174 echo "$as_me: program exited with status $ac_status" >&5
33175 echo "$as_me: failed program was:" >&5
33176 sed 's/^/| /' conftest.$ac_ext >&5
33178 ( exit $ac_status )
33179 ac_cv_c_stack_direction=-1
33181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33186 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33187 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33189 cat >>confdefs.h <<_ACEOF
33190 #define STACK_DIRECTION $ac_cv_c_stack_direction
33196 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
33197 # -lseq on Dynix/PTX, -lgen on Unixware.
33198 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
33199 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
33200 if test "${ac_cv_search_getmntent+set}" = set; then
33201 echo $ECHO_N "(cached) $ECHO_C" >&6
33203 ac_func_search_save_LIBS=$LIBS
33204 cat >conftest.$ac_ext <<_ACEOF
33207 cat confdefs.h >>conftest.$ac_ext
33208 cat >>conftest.$ac_ext <<_ACEOF
33209 /* end confdefs.h. */
33211 /* Override any GCC internal prototype to avoid an error.
33212 Use char because int might match the return type of a GCC
33213 builtin and then its argument prototype would still apply. */
33221 return getmntent ();
33226 for ac_lib in '' sun seq gen; do
33227 if test -z "$ac_lib"; then
33228 ac_res="none required"
33231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33233 rm -f conftest.$ac_objext conftest$ac_exeext
33234 if { (ac_try="$ac_link"
33235 case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_link") 2>conftest.er1
33242 grep -v '^ *+' conftest.er1 >conftest.err
33244 cat conftest.err >&5
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } && {
33247 test -z "$ac_c_werror_flag" ||
33248 test ! -s conftest.err
33249 } && test -s conftest$ac_exeext &&
33250 $as_test_x conftest$ac_exeext; then
33251 ac_cv_search_getmntent=$ac_res
33253 echo "$as_me: failed program was:" >&5
33254 sed 's/^/| /' conftest.$ac_ext >&5
33259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33261 if test "${ac_cv_search_getmntent+set}" = set; then
33265 if test "${ac_cv_search_getmntent+set}" = set; then
33268 ac_cv_search_getmntent=no
33270 rm conftest.$ac_ext
33271 LIBS=$ac_func_search_save_LIBS
33273 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
33274 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
33275 ac_res=$ac_cv_search_getmntent
33276 if test "$ac_res" != no; then
33277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33278 ac_cv_func_getmntent=yes
33280 cat >>confdefs.h <<\_ACEOF
33281 #define HAVE_GETMNTENT 1
33285 ac_cv_func_getmntent=no
33289 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
33290 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
33291 if test "${ac_cv_func_closedir_void+set}" = set; then
33292 echo $ECHO_N "(cached) $ECHO_C" >&6
33294 if test "$cross_compiling" = yes; then
33295 ac_cv_func_closedir_void=yes
33297 cat >conftest.$ac_ext <<_ACEOF
33300 cat confdefs.h >>conftest.$ac_ext
33301 cat >>conftest.$ac_ext <<_ACEOF
33302 /* end confdefs.h. */
33303 $ac_includes_default
33304 #include <$ac_header_dirent>
33305 #ifndef __cplusplus
33312 return closedir (opendir (".")) != 0;
33317 rm -f conftest$ac_exeext
33318 if { (ac_try="$ac_link"
33319 case "(($ac_try" in
33320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33321 *) ac_try_echo=$ac_try;;
33323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33324 (eval "$ac_link") 2>&5
33326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33328 { (case "(($ac_try" in
33329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330 *) ac_try_echo=$ac_try;;
33332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333 (eval "$ac_try") 2>&5
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); }; }; then
33337 ac_cv_func_closedir_void=no
33339 echo "$as_me: program exited with status $ac_status" >&5
33340 echo "$as_me: failed program was:" >&5
33341 sed 's/^/| /' conftest.$ac_ext >&5
33343 ( exit $ac_status )
33344 ac_cv_func_closedir_void=yes
33346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33351 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
33352 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
33353 if test $ac_cv_func_closedir_void = yes; then
33355 cat >>confdefs.h <<\_ACEOF
33356 #define CLOSEDIR_VOID 1
33361 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
33362 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
33363 if test "${ac_cv_func_setpgrp_void+set}" = set; then
33364 echo $ECHO_N "(cached) $ECHO_C" >&6
33366 if test "$cross_compiling" = yes; then
33367 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
33368 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
33369 { (exit 1); exit 1; }; }
33371 cat >conftest.$ac_ext <<_ACEOF
33374 cat confdefs.h >>conftest.$ac_ext
33375 cat >>conftest.$ac_ext <<_ACEOF
33376 /* end confdefs.h. */
33377 $ac_includes_default
33381 /* If this system has a BSD-style setpgrp which takes arguments,
33382 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
33383 exit successfully. */
33384 return setpgrp (1,1) != -1;
33389 rm -f conftest$ac_exeext
33390 if { (ac_try="$ac_link"
33391 case "(($ac_try" in
33392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33393 *) ac_try_echo=$ac_try;;
33395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33396 (eval "$ac_link") 2>&5
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33400 { (case "(($ac_try" in
33401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402 *) ac_try_echo=$ac_try;;
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405 (eval "$ac_try") 2>&5
33407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408 (exit $ac_status); }; }; then
33409 ac_cv_func_setpgrp_void=no
33411 echo "$as_me: program exited with status $ac_status" >&5
33412 echo "$as_me: failed program was:" >&5
33413 sed 's/^/| /' conftest.$ac_ext >&5
33415 ( exit $ac_status )
33416 ac_cv_func_setpgrp_void=yes
33418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33423 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
33424 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
33425 if test $ac_cv_func_setpgrp_void = yes; then
33427 cat >>confdefs.h <<\_ACEOF
33428 #define SETPGRP_VOID 1
33432 # AC_FUNC_FNMATCH dnl use local version
33435 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
33436 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
33437 if test "${ac_cv_lib_intl_gettext+set}" = set; then
33438 echo $ECHO_N "(cached) $ECHO_C" >&6
33440 ac_check_lib_save_LIBS=$LIBS
33441 LIBS="-lintl $LIBS"
33442 cat >conftest.$ac_ext <<_ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h. */
33449 /* Override any GCC internal prototype to avoid an error.
33450 Use char because int might match the return type of a GCC
33451 builtin and then its argument prototype would still apply. */
33464 rm -f conftest.$ac_objext conftest$ac_exeext
33465 if { (ac_try="$ac_link"
33466 case "(($ac_try" in
33467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33468 *) ac_try_echo=$ac_try;;
33470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33471 (eval "$ac_link") 2>conftest.er1
33473 grep -v '^ *+' conftest.er1 >conftest.err
33475 cat conftest.err >&5
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); } && {
33478 test -z "$ac_c_werror_flag" ||
33479 test ! -s conftest.err
33480 } && test -s conftest$ac_exeext &&
33481 $as_test_x conftest$ac_exeext; then
33482 ac_cv_lib_intl_gettext=yes
33484 echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33487 ac_cv_lib_intl_gettext=no
33490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33491 conftest$ac_exeext conftest.$ac_ext
33492 LIBS=$ac_check_lib_save_LIBS
33494 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
33495 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
33496 if test $ac_cv_lib_intl_gettext = yes; then
33497 LIBS="$LIBS -lintl"
33503 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
33504 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
33505 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
33506 echo $ECHO_N "(cached) $ECHO_C" >&6
33508 ac_check_lib_save_LIBS=$LIBS
33510 cat >conftest.$ac_ext <<_ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h. */
33517 /* Override any GCC internal prototype to avoid an error.
33518 Use char because int might match the return type of a GCC
33519 builtin and then its argument prototype would still apply. */
33527 return getpwnam ();
33532 rm -f conftest.$ac_objext conftest$ac_exeext
33533 if { (ac_try="$ac_link"
33534 case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_link") 2>conftest.er1
33541 grep -v '^ *+' conftest.er1 >conftest.err
33543 cat conftest.err >&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); } && {
33546 test -z "$ac_c_werror_flag" ||
33547 test ! -s conftest.err
33548 } && test -s conftest$ac_exeext &&
33549 $as_test_x conftest$ac_exeext; then
33550 ac_cv_lib_sun_getpwnam=yes
33552 echo "$as_me: failed program was:" >&5
33553 sed 's/^/| /' conftest.$ac_ext >&5
33555 ac_cv_lib_sun_getpwnam=no
33558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33559 conftest$ac_exeext conftest.$ac_ext
33560 LIBS=$ac_check_lib_save_LIBS
33562 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
33563 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
33564 if test $ac_cv_lib_sun_getpwnam = yes; then
33565 cat >>confdefs.h <<_ACEOF
33566 #define HAVE_LIBSUN 1
33575 for ac_header in zlib.h
33577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33582 echo $ECHO_N "(cached) $ECHO_C" >&6
33584 ac_res=`eval echo '${'$as_ac_Header'}'`
33585 { echo "$as_me:$LINENO: result: $ac_res" >&5
33586 echo "${ECHO_T}$ac_res" >&6; }
33588 # Is the header compilable?
33589 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33591 cat >conftest.$ac_ext <<_ACEOF
33594 cat confdefs.h >>conftest.$ac_ext
33595 cat >>conftest.$ac_ext <<_ACEOF
33596 /* end confdefs.h. */
33597 $ac_includes_default
33598 #include <$ac_header>
33600 rm -f conftest.$ac_objext
33601 if { (ac_try="$ac_compile"
33602 case "(($ac_try" in
33603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33604 *) ac_try_echo=$ac_try;;
33606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33607 (eval "$ac_compile") 2>conftest.er1
33609 grep -v '^ *+' conftest.er1 >conftest.err
33611 cat conftest.err >&5
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); } && {
33614 test -z "$ac_c_werror_flag" ||
33615 test ! -s conftest.err
33616 } && test -s conftest.$ac_objext; then
33617 ac_header_compiler=yes
33619 echo "$as_me: failed program was:" >&5
33620 sed 's/^/| /' conftest.$ac_ext >&5
33622 ac_header_compiler=no
33625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33627 echo "${ECHO_T}$ac_header_compiler" >&6; }
33629 # Is the header present?
33630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33632 cat >conftest.$ac_ext <<_ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h. */
33638 #include <$ac_header>
33640 if { (ac_try="$ac_cpp conftest.$ac_ext"
33641 case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33648 grep -v '^ *+' conftest.er1 >conftest.err
33650 cat conftest.err >&5
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652 (exit $ac_status); } >/dev/null && {
33653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33654 test ! -s conftest.err
33656 ac_header_preproc=yes
33658 echo "$as_me: failed program was:" >&5
33659 sed 's/^/| /' conftest.$ac_ext >&5
33661 ac_header_preproc=no
33664 rm -f conftest.err conftest.$ac_ext
33665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33666 echo "${ECHO_T}$ac_header_preproc" >&6; }
33668 # So? What about this header?
33669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33675 ac_header_preproc=yes
33678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33696 echo $ECHO_N "(cached) $ECHO_C" >&6
33698 eval "$as_ac_Header=\$ac_header_preproc"
33700 ac_res=`eval echo '${'$as_ac_Header'}'`
33701 { echo "$as_me:$LINENO: result: $ac_res" >&5
33702 echo "${ECHO_T}$ac_res" >&6; }
33705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33706 cat >>confdefs.h <<_ACEOF
33707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33714 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33715 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33716 if test "${ac_cv_lib_z_deflate+set}" = set; then
33717 echo $ECHO_N "(cached) $ECHO_C" >&6
33719 ac_check_lib_save_LIBS=$LIBS
33721 cat >conftest.$ac_ext <<_ACEOF
33724 cat confdefs.h >>conftest.$ac_ext
33725 cat >>conftest.$ac_ext <<_ACEOF
33726 /* end confdefs.h. */
33728 /* Override any GCC internal prototype to avoid an error.
33729 Use char because int might match the return type of a GCC
33730 builtin and then its argument prototype would still apply. */
33743 rm -f conftest.$ac_objext conftest$ac_exeext
33744 if { (ac_try="$ac_link"
33745 case "(($ac_try" in
33746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33747 *) ac_try_echo=$ac_try;;
33749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33750 (eval "$ac_link") 2>conftest.er1
33752 grep -v '^ *+' conftest.er1 >conftest.err
33754 cat conftest.err >&5
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); } && {
33757 test -z "$ac_c_werror_flag" ||
33758 test ! -s conftest.err
33759 } && test -s conftest$ac_exeext &&
33760 $as_test_x conftest$ac_exeext; then
33761 ac_cv_lib_z_deflate=yes
33763 echo "$as_me: failed program was:" >&5
33764 sed 's/^/| /' conftest.$ac_ext >&5
33766 ac_cv_lib_z_deflate=no
33769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33770 conftest$ac_exeext conftest.$ac_ext
33771 LIBS=$ac_check_lib_save_LIBS
33773 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33774 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33775 if test $ac_cv_lib_z_deflate = yes; then
33780 if test x$FDLIBS = x-lz; then
33781 cat >>confdefs.h <<\_ACEOF
33782 #define HAVE_LIBZ 1
33789 # Check for ACL libraries
33792 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33793 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33794 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33795 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33796 echo $ECHO_N "(cached) $ECHO_C" >&6
33798 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33799 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33801 # Is the header compilable?
33802 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33803 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33804 cat >conftest.$ac_ext <<_ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h. */
33810 $ac_includes_default
33811 #include <sys/acl.h>
33813 rm -f conftest.$ac_objext
33814 if { (ac_try="$ac_compile"
33815 case "(($ac_try" in
33816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33817 *) ac_try_echo=$ac_try;;
33819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33820 (eval "$ac_compile") 2>conftest.er1
33822 grep -v '^ *+' conftest.er1 >conftest.err
33824 cat conftest.err >&5
33825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826 (exit $ac_status); } && {
33827 test -z "$ac_c_werror_flag" ||
33828 test ! -s conftest.err
33829 } && test -s conftest.$ac_objext; then
33830 ac_header_compiler=yes
33832 echo "$as_me: failed program was:" >&5
33833 sed 's/^/| /' conftest.$ac_ext >&5
33835 ac_header_compiler=no
33838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33840 echo "${ECHO_T}$ac_header_compiler" >&6; }
33842 # Is the header present?
33843 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33844 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33845 cat >conftest.$ac_ext <<_ACEOF
33848 cat confdefs.h >>conftest.$ac_ext
33849 cat >>conftest.$ac_ext <<_ACEOF
33850 /* end confdefs.h. */
33851 #include <sys/acl.h>
33853 if { (ac_try="$ac_cpp conftest.$ac_ext"
33854 case "(($ac_try" in
33855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33856 *) ac_try_echo=$ac_try;;
33858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33861 grep -v '^ *+' conftest.er1 >conftest.err
33863 cat conftest.err >&5
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); } >/dev/null && {
33866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33867 test ! -s conftest.err
33869 ac_header_preproc=yes
33871 echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33874 ac_header_preproc=no
33877 rm -f conftest.err conftest.$ac_ext
33878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33879 echo "${ECHO_T}$ac_header_preproc" >&6; }
33881 # So? What about this header?
33882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33884 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33885 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33886 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33887 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33888 ac_header_preproc=yes
33891 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33892 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33893 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
33894 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
33895 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33896 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33897 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
33898 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33899 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33900 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33901 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33902 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33906 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33907 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33908 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33909 echo $ECHO_N "(cached) $ECHO_C" >&6
33911 ac_cv_header_sys_acl_h=$ac_header_preproc
33913 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33914 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33919 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33920 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33921 if test "${ac_cv_func_acl_get_file+set}" = set; then
33922 echo $ECHO_N "(cached) $ECHO_C" >&6
33924 cat >conftest.$ac_ext <<_ACEOF
33927 cat confdefs.h >>conftest.$ac_ext
33928 cat >>conftest.$ac_ext <<_ACEOF
33929 /* end confdefs.h. */
33930 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33932 #define acl_get_file innocuous_acl_get_file
33934 /* System header to define __stub macros and hopefully few prototypes,
33935 which can conflict with char acl_get_file (); below.
33936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33937 <limits.h> exists even on freestanding compilers. */
33940 # include <limits.h>
33942 # include <assert.h>
33945 #undef acl_get_file
33947 /* Override any GCC internal prototype to avoid an error.
33948 Use char because int might match the return type of a GCC
33949 builtin and then its argument prototype would still apply. */
33953 char acl_get_file ();
33954 /* The GNU C library defines this for functions which it implements
33955 to always fail with ENOSYS. Some functions are actually named
33956 something starting with __ and the normal name is an alias. */
33957 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33964 return acl_get_file ();
33969 rm -f conftest.$ac_objext conftest$ac_exeext
33970 if { (ac_try="$ac_link"
33971 case "(($ac_try" in
33972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33973 *) ac_try_echo=$ac_try;;
33975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33976 (eval "$ac_link") 2>conftest.er1
33978 grep -v '^ *+' conftest.er1 >conftest.err
33980 cat conftest.err >&5
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); } && {
33983 test -z "$ac_c_werror_flag" ||
33984 test ! -s conftest.err
33985 } && test -s conftest$ac_exeext &&
33986 $as_test_x conftest$ac_exeext; then
33987 ac_cv_func_acl_get_file=yes
33989 echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33992 ac_cv_func_acl_get_file=no
33995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33996 conftest$ac_exeext conftest.$ac_ext
33998 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33999 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
34000 if test $ac_cv_func_acl_get_file = yes; then
34003 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
34004 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
34005 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
34006 echo $ECHO_N "(cached) $ECHO_C" >&6
34008 ac_check_lib_save_LIBS=$LIBS
34010 cat >conftest.$ac_ext <<_ACEOF
34013 cat confdefs.h >>conftest.$ac_ext
34014 cat >>conftest.$ac_ext <<_ACEOF
34015 /* end confdefs.h. */
34017 /* Override any GCC internal prototype to avoid an error.
34018 Use char because int might match the return type of a GCC
34019 builtin and then its argument prototype would still apply. */
34023 char acl_get_file ();
34027 return acl_get_file ();
34032 rm -f conftest.$ac_objext conftest$ac_exeext
34033 if { (ac_try="$ac_link"
34034 case "(($ac_try" in
34035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34036 *) ac_try_echo=$ac_try;;
34038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34039 (eval "$ac_link") 2>conftest.er1
34041 grep -v '^ *+' conftest.er1 >conftest.err
34043 cat conftest.err >&5
34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); } && {
34046 test -z "$ac_c_werror_flag" ||
34047 test ! -s conftest.err
34048 } && test -s conftest$ac_exeext &&
34049 $as_test_x conftest$ac_exeext; then
34050 ac_cv_lib_acl_acl_get_file=yes
34052 echo "$as_me: failed program was:" >&5
34053 sed 's/^/| /' conftest.$ac_ext >&5
34055 ac_cv_lib_acl_acl_get_file=no
34058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34059 conftest$ac_exeext conftest.$ac_ext
34060 LIBS=$ac_check_lib_save_LIBS
34062 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
34063 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
34064 if test $ac_cv_lib_acl_acl_get_file = yes; then
34065 have_acl=yes; FDLIBS="-lacl $FDLIBS"
34067 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
34068 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
34069 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
34070 echo $ECHO_N "(cached) $ECHO_C" >&6
34072 ac_check_lib_save_LIBS=$LIBS
34074 cat >conftest.$ac_ext <<_ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h. */
34081 /* Override any GCC internal prototype to avoid an error.
34082 Use char because int might match the return type of a GCC
34083 builtin and then its argument prototype would still apply. */
34091 return acltotext ();
34096 rm -f conftest.$ac_objext conftest$ac_exeext
34097 if { (ac_try="$ac_link"
34098 case "(($ac_try" in
34099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100 *) ac_try_echo=$ac_try;;
34102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103 (eval "$ac_link") 2>conftest.er1
34105 grep -v '^ *+' conftest.er1 >conftest.err
34107 cat conftest.err >&5
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); } && {
34110 test -z "$ac_c_werror_flag" ||
34111 test ! -s conftest.err
34112 } && test -s conftest$ac_exeext &&
34113 $as_test_x conftest$ac_exeext; then
34114 ac_cv_lib_sec_acltotext=yes
34116 echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34119 ac_cv_lib_sec_acltotext=no
34122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34123 conftest$ac_exeext conftest.$ac_ext
34124 LIBS=$ac_check_lib_save_LIBS
34126 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
34127 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
34128 if test $ac_cv_lib_sec_acltotext = yes; then
34129 have_acl=yes; FDLIBS="-lsec $FDLIBS"
34138 if test $have_acl = yes; then
34139 cat >>confdefs.h <<\_ACEOF
34146 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
34147 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
34148 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
34149 echo $ECHO_N "(cached) $ECHO_C" >&6
34151 ac_check_lib_save_LIBS=$LIBS
34152 LIBS="-lpthread $LIBS"
34153 cat >conftest.$ac_ext <<_ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h. */
34160 /* Override any GCC internal prototype to avoid an error.
34161 Use char because int might match the return type of a GCC
34162 builtin and then its argument prototype would still apply. */
34166 char pthread_create ();
34170 return pthread_create ();
34175 rm -f conftest.$ac_objext conftest$ac_exeext
34176 if { (ac_try="$ac_link"
34177 case "(($ac_try" in
34178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34179 *) ac_try_echo=$ac_try;;
34181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34182 (eval "$ac_link") 2>conftest.er1
34184 grep -v '^ *+' conftest.er1 >conftest.err
34186 cat conftest.err >&5
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188 (exit $ac_status); } && {
34189 test -z "$ac_c_werror_flag" ||
34190 test ! -s conftest.err
34191 } && test -s conftest$ac_exeext &&
34192 $as_test_x conftest$ac_exeext; then
34193 ac_cv_lib_pthread_pthread_create=yes
34195 echo "$as_me: failed program was:" >&5
34196 sed 's/^/| /' conftest.$ac_ext >&5
34198 ac_cv_lib_pthread_pthread_create=no
34201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34202 conftest$ac_exeext conftest.$ac_ext
34203 LIBS=$ac_check_lib_save_LIBS
34205 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
34206 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
34207 if test $ac_cv_lib_pthread_pthread_create = yes; then
34208 PTHREAD_LIB="-lpthread"
34210 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
34211 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
34212 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
34213 echo $ECHO_N "(cached) $ECHO_C" >&6
34215 ac_check_lib_save_LIBS=$LIBS
34216 LIBS="-lpthreads $LIBS"
34217 cat >conftest.$ac_ext <<_ACEOF
34220 cat confdefs.h >>conftest.$ac_ext
34221 cat >>conftest.$ac_ext <<_ACEOF
34222 /* end confdefs.h. */
34224 /* Override any GCC internal prototype to avoid an error.
34225 Use char because int might match the return type of a GCC
34226 builtin and then its argument prototype would still apply. */
34230 char pthread_create ();
34234 return pthread_create ();
34239 rm -f conftest.$ac_objext conftest$ac_exeext
34240 if { (ac_try="$ac_link"
34241 case "(($ac_try" in
34242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34243 *) ac_try_echo=$ac_try;;
34245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34246 (eval "$ac_link") 2>conftest.er1
34248 grep -v '^ *+' conftest.er1 >conftest.err
34250 cat conftest.err >&5
34251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252 (exit $ac_status); } && {
34253 test -z "$ac_c_werror_flag" ||
34254 test ! -s conftest.err
34255 } && test -s conftest$ac_exeext &&
34256 $as_test_x conftest$ac_exeext; then
34257 ac_cv_lib_pthreads_pthread_create=yes
34259 echo "$as_me: failed program was:" >&5
34260 sed 's/^/| /' conftest.$ac_ext >&5
34262 ac_cv_lib_pthreads_pthread_create=no
34265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34266 conftest$ac_exeext conftest.$ac_ext
34267 LIBS=$ac_check_lib_save_LIBS
34269 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
34270 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
34271 if test $ac_cv_lib_pthreads_pthread_create = yes; then
34272 PTHREAD_LIB="-lpthreads"
34274 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
34275 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
34276 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
34277 echo $ECHO_N "(cached) $ECHO_C" >&6
34279 ac_check_lib_save_LIBS=$LIBS
34281 cat >conftest.$ac_ext <<_ACEOF
34284 cat confdefs.h >>conftest.$ac_ext
34285 cat >>conftest.$ac_ext <<_ACEOF
34286 /* end confdefs.h. */
34288 /* Override any GCC internal prototype to avoid an error.
34289 Use char because int might match the return type of a GCC
34290 builtin and then its argument prototype would still apply. */
34294 char pthread_create ();
34298 return pthread_create ();
34303 rm -f conftest.$ac_objext conftest$ac_exeext
34304 if { (ac_try="$ac_link"
34305 case "(($ac_try" in
34306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34307 *) ac_try_echo=$ac_try;;
34309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34310 (eval "$ac_link") 2>conftest.er1
34312 grep -v '^ *+' conftest.er1 >conftest.err
34314 cat conftest.err >&5
34315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316 (exit $ac_status); } && {
34317 test -z "$ac_c_werror_flag" ||
34318 test ! -s conftest.err
34319 } && test -s conftest$ac_exeext &&
34320 $as_test_x conftest$ac_exeext; then
34321 ac_cv_lib_c_r_pthread_create=yes
34323 echo "$as_me: failed program was:" >&5
34324 sed 's/^/| /' conftest.$ac_ext >&5
34326 ac_cv_lib_c_r_pthread_create=no
34329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34330 conftest$ac_exeext conftest.$ac_ext
34331 LIBS=$ac_check_lib_save_LIBS
34333 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
34334 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
34335 if test $ac_cv_lib_c_r_pthread_create = yes; then
34336 PTHREAD_LIB="-lc_r"
34338 { echo "$as_me:$LINENO: checking for pthread_create" >&5
34339 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
34340 if test "${ac_cv_func_pthread_create+set}" = set; then
34341 echo $ECHO_N "(cached) $ECHO_C" >&6
34343 cat >conftest.$ac_ext <<_ACEOF
34346 cat confdefs.h >>conftest.$ac_ext
34347 cat >>conftest.$ac_ext <<_ACEOF
34348 /* end confdefs.h. */
34349 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
34350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34351 #define pthread_create innocuous_pthread_create
34353 /* System header to define __stub macros and hopefully few prototypes,
34354 which can conflict with char pthread_create (); below.
34355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34356 <limits.h> exists even on freestanding compilers. */
34359 # include <limits.h>
34361 # include <assert.h>
34364 #undef pthread_create
34366 /* Override any GCC internal prototype to avoid an error.
34367 Use char because int might match the return type of a GCC
34368 builtin and then its argument prototype would still apply. */
34372 char pthread_create ();
34373 /* The GNU C library defines this for functions which it implements
34374 to always fail with ENOSYS. Some functions are actually named
34375 something starting with __ and the normal name is an alias. */
34376 #if defined __stub_pthread_create || defined __stub___pthread_create
34383 return pthread_create ();
34388 rm -f conftest.$ac_objext conftest$ac_exeext
34389 if { (ac_try="$ac_link"
34390 case "(($ac_try" in
34391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34392 *) ac_try_echo=$ac_try;;
34394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34395 (eval "$ac_link") 2>conftest.er1
34397 grep -v '^ *+' conftest.er1 >conftest.err
34399 cat conftest.err >&5
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); } && {
34402 test -z "$ac_c_werror_flag" ||
34403 test ! -s conftest.err
34404 } && test -s conftest$ac_exeext &&
34405 $as_test_x conftest$ac_exeext; then
34406 ac_cv_func_pthread_create=yes
34408 echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34411 ac_cv_func_pthread_create=no
34414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34415 conftest$ac_exeext conftest.$ac_ext
34417 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
34418 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
34431 cat >>confdefs.h <<\_ACEOF
34437 CFLAGS=${CFLAGS--O}
34439 if test x$have_gcc = xyes ; then
34440 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34441 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34443 LDFLAGS=${LDFLAGS--O}
34444 DB_LIBS="${SQL_LFLAGS}"
34445 CPPFLAGS="$CPPFLAGS"
34473 # Finally we set appropriate distribution specific
34474 # variables and defaults
34476 # PFILES are platform specific files
34477 PFILES="platforms/Makefile"
34481 hostname=`uname -n | cut -d '.' -f 1`
34482 if test x${hostname} = x ; then
34483 hostname="localhost"
34485 case "$DISTNAME" in
34488 PSCMD="ps -e -o pid,comm"
34489 PFILES="${PFILES} \
34490 platforms/aix/Makefile"
34491 TAPEDRIVE="/dev/rmt0.1"
34495 PTHREAD_LIB="-lpthread -lexc"
34496 if test "${CC}" = "gcc" ; then
34503 TAPEDRIVE="/dev/nrmt0"
34506 DISTVER=`uname -a |awk '{print $3}'`
34507 TAPEDRIVE="/dev/nrmt0"
34508 PTHREAD_LIB="-pthread"
34509 CFLAGS="${CFLAGS} -pthread"
34510 PSCMD="ps -ax -o pid,command"
34513 PFILES="${PFILES} \
34514 platforms/bsdi/Makefile \
34515 platforms/bsdi/bacula-fd \
34516 platforms/bsdi/bacula-sd \
34517 platforms/bsdi/bacula-dir"
34518 largefile_support="yes"
34521 DISTVER=`uname -a |awk '{print $3}'`
34522 TAPEDRIVE="/dev/nrst0"
34524 WCFLAGS="-mwindows"
34525 WLDFLAGS="-mwindows"
34529 TAPEDRIVE="/dev/nst0"
34530 PSCMD="ps -e -o pid,command"
34532 PFILES="${PFILES} \
34533 platforms/darwin/Makefile"
34536 if `grep -q ubuntu /etc/apt/sources.list`; then
34539 DISTVER=`cat /etc/debian_version`
34540 if test -f /etc/lsb-release ; then
34542 if test "x$DISTRIB_ID" != "x" ; then
34543 DISTNAME=$DISTRIB_ID
34545 if test "x$DISTRIB_RELEASE" != "x" ; then
34546 DISTVER=$DISTRIB_RELEASE
34549 if test "$DISTNAME" = "Ubuntu" ; then
34552 TAPEDRIVE="/dev/nst0"
34553 PSCMD="ps -e -o pid,command"
34554 if test "$DISTNAME" = "ubuntu" ; then
34555 PFILES="${PFILES} \
34556 platforms/ubuntu/Makefile \
34557 platforms/ubuntu/bacula-fd \
34558 platforms/ubuntu/bacula-sd \
34559 platforms/ubuntu/bacula-dir"
34561 PFILES="${PFILES} \
34562 platforms/debian/Makefile \
34563 platforms/debian/bacula-fd \
34564 platforms/debian/bacula-sd \
34565 platforms/debian/bacula-dir"
34569 DISTVER=`uname -a |awk '{print $3}'`
34570 VER=`echo $DISTVER | cut -c 1`
34571 if test x$VER = x4 ; then
34572 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
34573 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34577 TAPEDRIVE="/dev/nrsa0"
34578 PSCMD="ps -ax -o pid,command"
34579 PFILES="${PFILES} \
34580 platforms/freebsd/Makefile \
34581 platforms/freebsd/bacula-fd \
34582 platforms/freebsd/bacula-sd \
34583 platforms/freebsd/bacula-dir"
34584 largefile_support="yes"
34587 PSCMD="UNIX95=1; ps -e -o pid,comm"
34588 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34590 TAPEDRIVE="/dev/rmt/0hnb"
34591 PTHREAD_LIB="-lpthread"
34592 cat >>confdefs.h <<\_ACEOF
34593 #define _INCLUDE_LONGLONG 1
34599 TAPEDRIVE="/dev/rmt/0cbn"
34600 PSCMD="ps -e -o pid,comm"
34601 PFILES="${PFILES} \
34602 platforms/irix/Makefile \
34603 platforms/irix/bacula-fd \
34604 platforms/irix/bacula-sd \
34605 platforms/irix/bacula-dir"
34608 DISTVER=`uname -a |awk '{print $3}'`
34611 TAPEDRIVE="/dev/nrst0"
34612 PSCMD="ps -ax -o pid,command"
34613 PTHREAD_LIB="-pthread"
34614 CFLAGS="${CFLAGS} -pthread"
34617 DISTVER=`uname -a |awk '{print $3}'`
34620 TAPEDRIVE="/dev/nrst0"
34621 PSCMD="ps -ax -o pid,command"
34622 PTHREAD_LIB="-pthread"
34623 CFLAGS="${CFLAGS} -pthread"
34624 PFILES="${PFILES} \
34625 platforms/openbsd/Makefile \
34626 platforms/openbsd/bacula-fd \
34627 platforms/openbsd/bacula-sd \
34628 platforms/openbsd/bacula-dir"
34631 if test -f /etc/whitebox-release ; then
34632 f=/etc/whitebox-release
34634 f=/etc/redhat-release
34636 if test `cat $f | grep release |\
34637 cut -f 3 -d ' '`x = "Enterprise"x ; then
34638 DISTVER="Enterprise "`cat $f | grep release |\
34641 DISTVER=`cat /etc/redhat-release | grep release |\
34644 TAPEDRIVE="/dev/nst0"
34645 PSCMD="ps -e -o pid,command"
34646 PFILES="${PFILES} \
34647 platforms/redhat/Makefile \
34648 platforms/redhat/bacula-fd \
34649 platforms/redhat/bacula-sd \
34650 platforms/redhat/bacula-dir \
34651 platforms/redhat/bacula.spec \
34655 DISTVER=`cat /etc/mandrake-release | grep release |\
34657 TAPEDRIVE="/dev/nst0"
34658 PSCMD="ps -e -o pid,command"
34659 PFILES="${PFILES} \
34660 platforms/mandrake/Makefile \
34661 platforms/mandrake/bacula-fd \
34662 platforms/mandrake/bacula-sd \
34663 platforms/mandrake/bacula-dir \
34664 platforms/mandrake/bacula.spec \
34668 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34669 TAPEDRIVE="/dev/nst0"
34670 PSCMD="ps -e -o pid,command"
34671 PFILES="${PFILES} \
34672 platforms/gentoo/Makefile \
34673 platforms/gentoo/bacula-init \
34674 platforms/gentoo/bacula-fd \
34675 platforms/gentoo/bacula-sd \
34676 platforms/gentoo/bacula-dir"
34679 DISTVER=`cat /etc/slackware-version`
34680 TAPEDRIVE="/dev/nst0"
34681 PSCMD="ps -e -o pid,command"
34682 PFILES="${PFILES} \
34683 platforms/slackware/Makefile \
34684 platforms/slackware/rc.bacula-fd \
34685 platforms/slackware/rc.bacula-sd \
34686 platforms/slackware/rc.bacula-dir\
34687 platforms/slackware/functions.bacula"
34691 TAPEDRIVE="/dev/rmt/0cbn"
34692 PSCMD="ps -e -o pid,comm"
34693 PFILES="${PFILES} \
34694 platforms/solaris/Makefile \
34695 platforms/solaris/bacula-fd \
34696 platforms/solaris/bacula-sd \
34697 platforms/solaris/bacula-dir"
34698 if test x$DISTVER = x5.6 ; then
34699 cat >>confdefs.h <<\_ACEOF
34700 #define HAVE_OLD_SOCKOPT 1
34704 LIBS="$LIBS -lresolv"
34707 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34709 TAPEDRIVE="/dev/nst0"
34710 PSCMD="ps -e -o pid,command"
34711 PFILES="${PFILES} \
34712 platforms/suse/Makefile \
34713 platforms/suse/bacula-fd \
34714 platforms/suse/bacula-sd \
34715 platforms/suse/bacula-dir \
34716 platforms/suse/bacula \
34717 platforms/suse/bacula.spec"
34722 TAPEDRIVE="/dev/nst0"
34723 PSCMD="ps -e -o pid,command"
34724 PFILES="${PFILES} \
34725 platforms/suse/Makefile \
34726 platforms/suse/bacula-fd \
34727 platforms/suse/bacula-sd \
34728 platforms/suse/bacula-dir"
34732 TAPEDRIVE="/dev/nst0"
34735 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34741 LIBS="$PTHREAD_LIB $LIBS"
34743 cat >>confdefs.h <<_ACEOF
34747 cat >>confdefs.h <<_ACEOF
34758 MCOMMON=./autoconf/Make.common
34761 if test "x${subsysdir}" = "x${sbindir}" ; then
34764 echo "You have set both --sbindir and --with-subsys-dir"
34765 echo " equal to: ${subsysdir} "
34766 echo "This is not permitted. Please reconfigure."
34768 echo "Aborting configuration ..."
34774 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"
34776 ac_config_commands="$ac_config_commands default"
34778 cat >confcache <<\_ACEOF
34779 # This file is a shell script that caches the results of configure
34780 # tests run on this system so they can be shared between configure
34781 # scripts and configure runs, see configure's option --config-cache.
34782 # It is not useful on other systems. If it contains results you don't
34783 # want to keep, you may remove or edit it.
34785 # config.status only pays attention to the cache file if you give it
34786 # the --recheck option to rerun configure.
34788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34790 # following values.
34794 # The following way of writing the cache mishandles newlines in values,
34795 # but we know of no workaround that is simple, portable, and efficient.
34796 # So, we kill variables containing newlines.
34797 # Ultrix sh set writes to stderr and can't be redirected directly,
34798 # and sets the high bit in the cache file unless we assign to the vars.
34800 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34801 eval ac_val=\$$ac_var
34805 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34806 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34809 _ | IFS | as_nl) ;; #(
34810 *) $as_unset $ac_var ;;
34816 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34817 *${as_nl}ac_space=\ *)
34818 # `set' does not quote correctly, so add quotes (double-quote
34819 # substitution turns \\\\ into \\, and sed turns \\ into \).
34822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34825 # `set' quotes correctly as required by POSIX, so do not add quotes.
34826 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34835 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34837 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34839 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34840 if test -w "$cache_file"; then
34841 test "x$cache_file" != "x/dev/null" &&
34842 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34843 echo "$as_me: updating cache $cache_file" >&6;}
34844 cat confcache >$cache_file
34846 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34847 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34852 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34853 # Let make expand exec_prefix.
34854 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34856 DEFS=-DHAVE_CONFIG_H
34860 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34861 # 1. Remove the extension, and $U if already installed.
34862 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34863 ac_i=`echo "$ac_i" | sed "$ac_script"`
34864 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34865 # will be set to the directory where LIBOBJS objects are built.
34866 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34867 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34869 LIBOBJS=$ac_libobjs
34871 LTLIBOBJS=$ac_ltlibobjs
34875 : ${CONFIG_STATUS=./config.status}
34876 ac_clean_files_save=$ac_clean_files
34877 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34878 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34879 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34880 cat >$CONFIG_STATUS <<_ACEOF
34882 # Generated by $as_me.
34883 # Run this file to recreate the current configuration.
34884 # Compiler output produced by configure, useful for debugging
34885 # configure, is in config.log if it exists.
34888 ac_cs_recheck=false
34890 SHELL=\${CONFIG_SHELL-$SHELL}
34893 cat >>$CONFIG_STATUS <<\_ACEOF
34894 ## --------------------- ##
34895 ## M4sh Initialization. ##
34896 ## --------------------- ##
34898 # Be more Bourne compatible
34899 DUALCASE=1; export DUALCASE # for MKS sh
34900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34903 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34904 # is contrary to our usage. Disable this feature.
34905 alias -g '${1+"$@"}'='"$@"'
34906 setopt NO_GLOB_SUBST
34908 case `(set -o) 2>/dev/null` in
34909 *posix*) set -o posix ;;
34918 # Avoid depending upon Character Ranges.
34919 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34920 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34921 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34922 as_cr_digits='0123456789'
34923 as_cr_alnum=$as_cr_Letters$as_cr_digits
34925 # The user is always right.
34926 if test "${PATH_SEPARATOR+set}" != set; then
34927 echo "#! /bin/sh" >conf$$.sh
34928 echo "exit 0" >>conf$$.sh
34930 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34938 # Support unset when possible.
34939 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34947 # We need space, tab and new line, in precisely that order. Quoting is
34948 # there to prevent editors from complaining about space-tab.
34949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34950 # splitting by setting IFS to empty value.)
34955 # Find who we are. Look in the path if we contain no directory separator.
34957 *[\\/]* ) as_myself=$0 ;;
34958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34959 for as_dir in $PATH
34962 test -z "$as_dir" && as_dir=.
34963 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34969 # We did not find ourselves, most probably we were run as `sh COMMAND'
34970 # in which case we are not to be found in the path.
34971 if test "x$as_myself" = x; then
34974 if test ! -f "$as_myself"; then
34975 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34976 { (exit 1); exit 1; }
34979 # Work around bugs in pre-3.0 UWIN ksh.
34980 for as_var in ENV MAIL MAILPATH
34981 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34989 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34990 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34991 LC_TELEPHONE LC_TIME
34993 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34994 eval $as_var=C; export $as_var
34996 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35000 # Required to use basename.
35001 if expr a : '\(a\)' >/dev/null 2>&1 &&
35002 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35008 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35009 as_basename=basename
35015 # Name of the executable.
35016 as_me=`$as_basename -- "$0" ||
35017 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35018 X"$0" : 'X\(//\)$' \| \
35019 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35021 sed '/^.*\/\([^/][^/]*\)\/*$/{
35040 as_lineno_1=$LINENO
35041 as_lineno_2=$LINENO
35042 test "x$as_lineno_1" != "x$as_lineno_2" &&
35043 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35045 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35046 # uniformly replaced by the line number. The first 'sed' inserts a
35047 # line-number line after each line using $LINENO; the second 'sed'
35048 # does the real work. The second script uses 'N' to pair each
35049 # line-number line with the line containing $LINENO, and appends
35050 # trailing '-' during substitution so that $LINENO is not a special
35051 # case at line end.
35052 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35053 # scripts with optimization help from Paolo Bonzini. Blame Lee
35054 # E. McMahon (1931-1989) for sed's syntax. :-)
35066 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35069 ' >$as_me.lineno &&
35070 chmod +x "$as_me.lineno" ||
35071 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35072 { (exit 1); exit 1; }; }
35074 # Don't try to exec as it changes $[0], causing all sort of problems
35075 # (the dirname of $[0] is not the place where we might find the
35076 # original and so on. Autoconf is especially sensitive to this).
35077 . "./$as_me.lineno"
35078 # Exit status is that of the last command.
35083 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35089 ECHO_C= ECHO_N= ECHO_T=
35090 case `echo -n x` in
35092 case `echo 'x\c'` in
35093 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35100 if expr a : '\(a\)' >/dev/null 2>&1 &&
35101 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35107 rm -f conf$$ conf$$.exe conf$$.file
35108 if test -d conf$$.dir; then
35109 rm -f conf$$.dir/conf$$.file
35115 if ln -s conf$$.file conf$$ 2>/dev/null; then
35117 # ... but there are two gotchas:
35118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35120 # In both cases, we have to default to `cp -p'.
35121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35123 elif ln conf$$.file conf$$ 2>/dev/null; then
35128 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35129 rmdir conf$$.dir 2>/dev/null
35131 if mkdir -p . 2>/dev/null; then
35134 test -d ./-p && rmdir ./-p
35138 if test -x / >/dev/null 2>&1; then
35139 as_test_x='test -x'
35141 if ls -dL / >/dev/null 2>&1; then
35148 if test -d "$1"; then
35154 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35155 ???[sx]*):;;*)false;;esac;fi
35159 as_executable_p=$as_test_x
35161 # Sed expression to map a string onto a valid CPP name.
35162 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35164 # Sed expression to map a string onto a valid variable name.
35165 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35170 # Save the log message, to keep $[0] and so on meaningful, and to
35171 # report actual input values of CONFIG_FILES etc. instead of their
35172 # values after options handling.
35174 This file was extended by $as_me, which was
35175 generated by GNU Autoconf 2.61. Invocation command line was
35177 CONFIG_FILES = $CONFIG_FILES
35178 CONFIG_HEADERS = $CONFIG_HEADERS
35179 CONFIG_LINKS = $CONFIG_LINKS
35180 CONFIG_COMMANDS = $CONFIG_COMMANDS
35183 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35188 cat >>$CONFIG_STATUS <<_ACEOF
35189 # Files that config.status was made for.
35190 config_files="$ac_config_files"
35191 config_headers="$ac_config_headers"
35192 config_commands="$ac_config_commands"
35196 cat >>$CONFIG_STATUS <<\_ACEOF
35198 \`$as_me' instantiates files from templates according to the
35199 current configuration.
35201 Usage: $0 [OPTIONS] [FILE]...
35203 -h, --help print this help, then exit
35204 -V, --version print version number and configuration settings, then exit
35205 -q, --quiet do not print progress messages
35206 -d, --debug don't remove temporary files
35207 --recheck update $as_me by reconfiguring in the same conditions
35208 --file=FILE[:TEMPLATE]
35209 instantiate the configuration file FILE
35210 --header=FILE[:TEMPLATE]
35211 instantiate the configuration header FILE
35213 Configuration files:
35216 Configuration headers:
35219 Configuration commands:
35222 Report bugs to <bug-autoconf@gnu.org>."
35225 cat >>$CONFIG_STATUS <<_ACEOF
35228 configured by $0, generated by GNU Autoconf 2.61,
35229 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35231 Copyright (C) 2006 Free Software Foundation, Inc.
35232 This config.status script is free software; the Free Software Foundation
35233 gives unlimited permission to copy, distribute and modify it."
35240 cat >>$CONFIG_STATUS <<\_ACEOF
35241 # If no file are specified by the user, then we need to provide default
35242 # value. By we need to know if files were specified by the user.
35248 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35260 # Handling of the options.
35261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35263 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35264 echo "$ac_cs_version"; exit ;;
35265 --debug | --debu | --deb | --de | --d | -d )
35267 --file | --fil | --fi | --f )
35269 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35270 ac_need_defaults=false;;
35271 --header | --heade | --head | --hea )
35273 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35274 ac_need_defaults=false;;
35276 # Conflict between --help and --header
35277 { echo "$as_me: error: ambiguous option: $1
35278 Try \`$0 --help' for more information." >&2
35279 { (exit 1); exit 1; }; };;
35280 --help | --hel | -h )
35281 echo "$ac_cs_usage"; exit ;;
35282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35283 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35286 # This is an error.
35287 -*) { echo "$as_me: error: unrecognized option: $1
35288 Try \`$0 --help' for more information." >&2
35289 { (exit 1); exit 1; }; } ;;
35291 *) ac_config_targets="$ac_config_targets $1"
35292 ac_need_defaults=false ;;
35298 ac_configure_extra_args=
35300 if $ac_cs_silent; then
35302 ac_configure_extra_args="$ac_configure_extra_args --silent"
35306 cat >>$CONFIG_STATUS <<_ACEOF
35307 if \$ac_cs_recheck; then
35308 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35309 CONFIG_SHELL=$SHELL
35310 export CONFIG_SHELL
35311 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35315 cat >>$CONFIG_STATUS <<\_ACEOF
35319 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35320 ## Running $as_me. ##
35326 cat >>$CONFIG_STATUS <<_ACEOF
35330 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35331 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
35333 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35334 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35335 LINGUAS="${LINGUAS-%UNSET%}"
35340 cat >>$CONFIG_STATUS <<\_ACEOF
35342 # Handling of arguments.
35343 for ac_config_target in $ac_config_targets
35345 case $ac_config_target in
35346 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
35347 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35348 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
35349 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35350 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
35351 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
35352 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
35353 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
35354 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
35355 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
35356 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
35357 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
35358 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
35359 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
35360 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
35361 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
35362 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
35363 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
35364 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
35365 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
35366 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
35367 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
35368 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
35369 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
35370 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
35371 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
35372 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
35373 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
35374 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
35375 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
35376 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
35377 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
35378 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
35379 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
35380 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
35381 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
35382 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
35383 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
35384 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
35385 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
35386 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35387 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
35388 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
35389 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
35390 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
35391 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
35392 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
35393 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
35394 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
35395 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
35396 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
35397 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
35398 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
35399 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
35400 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
35401 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
35402 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
35403 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
35404 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
35405 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
35406 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
35407 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
35408 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
35409 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
35410 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
35411 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
35412 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
35413 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
35414 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
35415 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
35416 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
35417 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
35418 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
35419 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
35420 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
35421 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
35422 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
35423 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
35424 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
35425 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
35426 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
35427 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
35428 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
35429 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
35430 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
35431 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
35432 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
35433 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
35434 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
35435 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
35436 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
35437 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
35438 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
35439 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
35440 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
35441 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
35442 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
35443 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
35444 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
35445 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
35446 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
35447 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
35448 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
35449 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
35450 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
35451 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
35452 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
35453 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
35454 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
35455 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
35456 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35458 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35459 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35460 { (exit 1); exit 1; }; };;
35465 # If the user did not use the arguments to specify the items to instantiate,
35466 # then the envvar interface is used. Set only those that are not.
35467 # We use the long form for the default assignment because of an extremely
35468 # bizarre bug on SunOS 4.1.3.
35469 if $ac_need_defaults; then
35470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35472 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35475 # Have a temporary directory for convenience. Make it in the build tree
35476 # simply because there is no reason against having it here, and in addition,
35477 # creating and moving files from /tmp can sometimes cause problems.
35478 # Hook for its removal unless debugging.
35479 # Note that there is a small window in which the directory will not be cleaned:
35480 # after its creation but before its name has been assigned to `$tmp'.
35484 trap 'exit_status=$?
35485 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35487 trap '{ (exit 1); exit 1; }' 1 2 13 15
35489 # Create a (secure) tmp directory for tmp files.
35492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35493 test -n "$tmp" && test -d "$tmp"
35496 tmp=./conf$$-$RANDOM
35497 (umask 077 && mkdir "$tmp")
35500 echo "$me: cannot create a temporary directory in ." >&2
35501 { (exit 1); exit 1; }
35505 # Set up the sed scripts for CONFIG_FILES section.
35508 # No need to generate the scripts if there are no CONFIG_FILES.
35509 # This happens for instance when ./config.status config.h
35510 if test -n "$CONFIG_FILES"; then
35514 # Create sed commands to just substitute file output variables.
35516 # Remaining file output variables are in a fragment that also has non-file
35522 for ac_last_try in false false false false false :; do
35523 cat >conf$$subs.sed <<_ACEOF
35524 SHELL!$SHELL$ac_delim
35525 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35526 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35527 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35528 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35529 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35530 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35531 exec_prefix!$exec_prefix$ac_delim
35532 prefix!$prefix$ac_delim
35533 program_transform_name!$program_transform_name$ac_delim
35534 bindir!$bindir$ac_delim
35535 sbindir!$sbindir$ac_delim
35536 libexecdir!$libexecdir$ac_delim
35537 datarootdir!$datarootdir$ac_delim
35538 datadir!$datadir$ac_delim
35539 sysconfdir!$sysconfdir$ac_delim
35540 sharedstatedir!$sharedstatedir$ac_delim
35541 localstatedir!$localstatedir$ac_delim
35542 includedir!$includedir$ac_delim
35543 oldincludedir!$oldincludedir$ac_delim
35544 docdir!$docdir$ac_delim
35545 infodir!$infodir$ac_delim
35546 htmldir!$htmldir$ac_delim
35547 dvidir!$dvidir$ac_delim
35548 pdfdir!$pdfdir$ac_delim
35549 psdir!$psdir$ac_delim
35550 libdir!$libdir$ac_delim
35551 localedir!$localedir$ac_delim
35552 mandir!$mandir$ac_delim
35553 DEFS!$DEFS$ac_delim
35554 ECHO_C!$ECHO_C$ac_delim
35555 ECHO_N!$ECHO_N$ac_delim
35556 ECHO_T!$ECHO_T$ac_delim
35557 LIBS!$LIBS$ac_delim
35558 build_alias!$build_alias$ac_delim
35559 host_alias!$host_alias$ac_delim
35560 target_alias!$target_alias$ac_delim
35561 BUILD_DIR!$BUILD_DIR$ac_delim
35562 TOP_DIR!$TOP_DIR$ac_delim
35563 TRUEPRG!$TRUEPRG$ac_delim
35564 FALSEPRG!$FALSEPRG$ac_delim
35565 VERSION!$VERSION$ac_delim
35566 DATE!$DATE$ac_delim
35567 LSMDATE!$LSMDATE$ac_delim
35569 CFLAGS!$CFLAGS$ac_delim
35570 LDFLAGS!$LDFLAGS$ac_delim
35571 CPPFLAGS!$CPPFLAGS$ac_delim
35572 ac_ct_CC!$ac_ct_CC$ac_delim
35573 EXEEXT!$EXEEXT$ac_delim
35574 OBJEXT!$OBJEXT$ac_delim
35576 CXXFLAGS!$CXXFLAGS$ac_delim
35577 ac_ct_CXX!$ac_ct_CXX$ac_delim
35579 GREP!$GREP$ac_delim
35580 EGREP!$EGREP$ac_delim
35581 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35582 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35583 INSTALL_DATA!$INSTALL_DATA$ac_delim
35584 RANLIB!$RANLIB$ac_delim
35589 ECHO!$ECHO$ac_delim
35593 OPENSSL!$OPENSSL$ac_delim
35596 MKISOFS!$MKISOFS$ac_delim
35597 PYTHON!$PYTHON$ac_delim
35598 GROWISOFS!$GROWISOFS$ac_delim
35599 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35600 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35601 PKGCONFIG!$PKGCONFIG$ac_delim
35602 QMAKE!$QMAKE$ac_delim
35603 QMAKEQT4!$QMAKEQT4$ac_delim
35604 WXCONFIG!$WXCONFIG$ac_delim
35605 WXFLAGS!$WXFLAGS$ac_delim
35606 CDRECORD!$CDRECORD$ac_delim
35607 PIDOF!$PIDOF$ac_delim
35609 ARFLAGS!$ARFLAGS$ac_delim
35610 MAKE_SHELL!$MAKE_SHELL$ac_delim
35611 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35612 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35613 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35614 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35615 build!$build$ac_delim
35616 build_cpu!$build_cpu$ac_delim
35617 build_vendor!$build_vendor$ac_delim
35620 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35622 elif $ac_last_try; then
35623 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35624 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35625 { (exit 1); exit 1; }; }
35627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35631 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35632 if test -n "$ac_eof"; then
35633 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35634 ac_eof=`expr $ac_eof + 1`
35637 cat >>$CONFIG_STATUS <<_ACEOF
35638 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35640 /^[ ]*@MCOMMON@[ ]*$/{
35646 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35647 s/^/s,@/; s/!/@,|#_!!_#|/
35650 s/'"$ac_delim"'$/,g/; t
35652 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35653 ' >>$CONFIG_STATUS <conf$$subs.sed
35654 rm -f conf$$subs.sed
35655 cat >>$CONFIG_STATUS <<_ACEOF
35661 for ac_last_try in false false false false false :; do
35662 cat >conf$$subs.sed <<_ACEOF
35663 build_os!$build_os$ac_delim
35664 host!$host$ac_delim
35665 host_cpu!$host_cpu$ac_delim
35666 host_vendor!$host_vendor$ac_delim
35667 host_os!$host_os$ac_delim
35668 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35669 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35670 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35671 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35672 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35673 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35674 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35675 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35676 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35677 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35678 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35679 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35680 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35681 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35682 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35683 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35684 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35685 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35686 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35687 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35688 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35689 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35690 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35691 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35692 SET_MAKE!$SET_MAKE$ac_delim
35693 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35694 USE_NLS!$USE_NLS$ac_delim
35695 MSGFMT!$MSGFMT$ac_delim
35696 GMSGFMT!$GMSGFMT$ac_delim
35697 XGETTEXT!$XGETTEXT$ac_delim
35698 MSGMERGE!$MSGMERGE$ac_delim
35699 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35700 LIBICONV!$LIBICONV$ac_delim
35701 LTLIBICONV!$LTLIBICONV$ac_delim
35702 INTLLIBS!$INTLLIBS$ac_delim
35703 LIBINTL!$LIBINTL$ac_delim
35704 LTLIBINTL!$LTLIBINTL$ac_delim
35705 POSUB!$POSUB$ac_delim
35706 GLIBC2!$GLIBC2$ac_delim
35707 ALLOCA!$ALLOCA$ac_delim
35708 GLIBC21!$GLIBC21$ac_delim
35709 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35710 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35711 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35712 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35713 INTLBISON!$INTLBISON$ac_delim
35714 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35715 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35716 CATOBJEXT!$CATOBJEXT$ac_delim
35717 DATADIRNAME!$DATADIRNAME$ac_delim
35718 INSTOBJEXT!$INSTOBJEXT$ac_delim
35719 GENCAT!$GENCAT$ac_delim
35720 INTLOBJS!$INTLOBJS$ac_delim
35721 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35722 BDB_CPPFLAGS!$BDB_CPPFLAGS$ac_delim
35723 BDB_LIBS!$BDB_LIBS$ac_delim
35724 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35725 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35726 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35727 GNOME_LIBS!$GNOME_LIBS$ac_delim
35728 GNOME_DIR!$GNOME_DIR$ac_delim
35729 BAT_DIR!$BAT_DIR$ac_delim
35730 QWT_INC!$QWT_INC$ac_delim
35731 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
35732 QWT_LIB!$QWT_LIB$ac_delim
35734 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35735 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35736 WX_DIR!$WX_DIR$ac_delim
35737 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35738 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35739 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35740 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35741 STATIC_FD!$STATIC_FD$ac_delim
35742 STATIC_SD!$STATIC_SD$ac_delim
35743 STATIC_DIR!$STATIC_DIR$ac_delim
35744 STATIC_CONS!$STATIC_CONS$ac_delim
35745 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35746 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35747 ALL_DIRS!$ALL_DIRS$ac_delim
35748 DIRD_DIR!$DIRD_DIR$ac_delim
35749 DIR_TOOLS!$DIR_TOOLS$ac_delim
35750 STORED_DIR!$STORED_DIR$ac_delim
35751 CONS_INC!$CONS_INC$ac_delim
35752 CONS_OBJ!$CONS_OBJ$ac_delim
35753 CONS_SRC!$CONS_SRC$ac_delim
35754 CONS_LIBS!$CONS_LIBS$ac_delim
35755 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35756 READLINE_SRC!$READLINE_SRC$ac_delim
35757 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35758 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35759 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35762 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35764 elif $ac_last_try; then
35765 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35766 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35767 { (exit 1); exit 1; }; }
35769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35773 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35774 if test -n "$ac_eof"; then
35775 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35776 ac_eof=`expr $ac_eof + 1`
35779 cat >>$CONFIG_STATUS <<_ACEOF
35780 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35784 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35785 s/^/s,@/; s/!/@,|#_!!_#|/
35788 s/'"$ac_delim"'$/,g/; t
35790 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35791 ' >>$CONFIG_STATUS <conf$$subs.sed
35792 rm -f conf$$subs.sed
35793 cat >>$CONFIG_STATUS <<_ACEOF
35799 for ac_last_try in false false false false false :; do
35800 cat >conf$$subs.sed <<_ACEOF
35801 OPENSSL_INC!$OPENSSL_INC$ac_delim
35802 working_dir!$working_dir$ac_delim
35803 archivedir!$archivedir$ac_delim
35804 scriptdir!$scriptdir$ac_delim
35805 plugindir!$plugindir$ac_delim
35806 dump_email!$dump_email$ac_delim
35807 job_email!$job_email$ac_delim
35808 smtp_host!$smtp_host$ac_delim
35809 piddir!$piddir$ac_delim
35810 subsysdir!$subsysdir$ac_delim
35811 baseport!$baseport$ac_delim
35812 dir_port!$dir_port$ac_delim
35813 fd_port!$fd_port$ac_delim
35814 sd_port!$sd_port$ac_delim
35815 dir_password!$dir_password$ac_delim
35816 fd_password!$fd_password$ac_delim
35817 sd_password!$sd_password$ac_delim
35818 mon_dir_password!$mon_dir_password$ac_delim
35819 mon_fd_password!$mon_fd_password$ac_delim
35820 mon_sd_password!$mon_sd_password$ac_delim
35821 db_name!$db_name$ac_delim
35822 db_user!$db_user$ac_delim
35823 db_password!$db_password$ac_delim
35824 db_port!$db_port$ac_delim
35825 dir_user!$dir_user$ac_delim
35826 dir_group!$dir_group$ac_delim
35827 sd_user!$sd_user$ac_delim
35828 sd_group!$sd_group$ac_delim
35829 fd_user!$fd_user$ac_delim
35830 fd_group!$fd_group$ac_delim
35831 SBINPERM!$SBINPERM$ac_delim
35832 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35833 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35834 SQL_BINDIR!$SQL_BINDIR$ac_delim
35835 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
35836 uncomment_dbi!$uncomment_dbi$ac_delim
35837 DB_PROG!$DB_PROG$ac_delim
35838 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
35839 cats!$cats$ac_delim
35840 DB_TYPE!$DB_TYPE$ac_delim
35841 GETCONF!$GETCONF$ac_delim
35842 XMKMF!$XMKMF$ac_delim
35843 X_CFLAGS!$X_CFLAGS$ac_delim
35844 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35845 X_LIBS!$X_LIBS$ac_delim
35846 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35847 LIBOBJS!$LIBOBJS$ac_delim
35848 FDLIBS!$FDLIBS$ac_delim
35849 DEBUG!$DEBUG$ac_delim
35850 DINCLUDE!$DINCLUDE$ac_delim
35851 DLIB!$DLIB$ac_delim
35852 DB_LIBS!$DB_LIBS$ac_delim
35853 WCFLAGS!$WCFLAGS$ac_delim
35854 WLDFLAGS!$WLDFLAGS$ac_delim
35855 WRAPLIBS!$WRAPLIBS$ac_delim
35856 OBJLIST!$OBJLIST$ac_delim
35857 hostname!$hostname$ac_delim
35858 TAPEDRIVE!$TAPEDRIVE$ac_delim
35859 PSCMD!$PSCMD$ac_delim
35860 WIN32!$WIN32$ac_delim
35861 MACOSX!$MACOSX$ac_delim
35862 DISTNAME!$DISTNAME$ac_delim
35863 DISTVER!$DISTVER$ac_delim
35864 LTLIBOBJS!$LTLIBOBJS$ac_delim
35867 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
35869 elif $ac_last_try; then
35870 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35871 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35872 { (exit 1); exit 1; }; }
35874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35878 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35879 if test -n "$ac_eof"; then
35880 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35881 ac_eof=`expr $ac_eof + 1`
35884 cat >>$CONFIG_STATUS <<_ACEOF
35885 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35889 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35890 s/^/s,@/; s/!/@,|#_!!_#|/
35893 s/'"$ac_delim"'$/,g/; t
35895 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35896 ' >>$CONFIG_STATUS <conf$$subs.sed
35897 rm -f conf$$subs.sed
35898 cat >>$CONFIG_STATUS <<_ACEOF
35905 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35907 # trailing colons and then remove the whole line if VPATH becomes empty
35908 # (actually we leave an empty line to preserve line numbers).
35909 if test "x$srcdir" = x.; then
35910 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35911 s/:*\$(srcdir):*/:/
35912 s/:*\${srcdir}:*/:/
35914 s/^\([^=]*=[ ]*\):*/\1/
35920 cat >>$CONFIG_STATUS <<\_ACEOF
35921 fi # test -n "$CONFIG_FILES"
35924 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35927 :[FHLC]) ac_mode=$ac_tag; continue;;
35929 case $ac_mode$ac_tag in
35931 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35932 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35933 { (exit 1); exit 1; }; };;
35934 :[FH]-) ac_tag=-:-;;
35935 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35952 -) ac_f="$tmp/stdin";;
35953 *) # Look for the file first in the build tree, then in the source tree
35954 # (if the path is not absolute). The absolute path cannot be DOS-style,
35955 # because $ac_f cannot contain `:'.
35959 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35961 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35962 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35963 { (exit 1); exit 1; }; };;
35965 ac_file_inputs="$ac_file_inputs $ac_f"
35968 # Let's still pretend it is `configure' which instantiates (i.e., don't
35969 # use $as_me), people would be surprised to read:
35970 # /* config.h. Generated by config.status. */
35971 configure_input="Generated from "`IFS=:
35972 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35973 if test x"$ac_file" != x-; then
35974 configure_input="$ac_file. $configure_input"
35975 { echo "$as_me:$LINENO: creating $ac_file" >&5
35976 echo "$as_me: creating $ac_file" >&6;}
35980 *:-:* | *:-) cat >"$tmp/stdin";;
35985 ac_dir=`$as_dirname -- "$ac_file" ||
35986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35987 X"$ac_file" : 'X\(//\)[^/]' \| \
35988 X"$ac_file" : 'X\(//\)$' \| \
35989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35995 /^X\(\/\/\)[^/].*/{
36010 -*) as_dir=./$as_dir;;
36012 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36016 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36017 *) as_qdir=$as_dir;;
36019 as_dirs="'$as_qdir' $as_dirs"
36020 as_dir=`$as_dirname -- "$as_dir" ||
36021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36022 X"$as_dir" : 'X\(//\)[^/]' \| \
36023 X"$as_dir" : 'X\(//\)$' \| \
36024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36030 /^X\(\/\/\)[^/].*/{
36043 test -d "$as_dir" && break
36045 test -z "$as_dirs" || eval "mkdir $as_dirs"
36046 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36047 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36048 { (exit 1); exit 1; }; }; }
36052 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36055 # A ".." for each directory in $ac_dir_suffix.
36056 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36057 case $ac_top_builddir_sub in
36058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36062 ac_abs_top_builddir=$ac_pwd
36063 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36064 # for backward compatibility:
36065 ac_top_builddir=$ac_top_build_prefix
36068 .) # We are building in place.
36070 ac_top_srcdir=$ac_top_builddir_sub
36071 ac_abs_top_srcdir=$ac_pwd ;;
36072 [\\/]* | ?:[\\/]* ) # Absolute name.
36073 ac_srcdir=$srcdir$ac_dir_suffix;
36074 ac_top_srcdir=$srcdir
36075 ac_abs_top_srcdir=$srcdir ;;
36076 *) # Relative name.
36077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36078 ac_top_srcdir=$ac_top_build_prefix$srcdir
36079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36081 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36091 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36092 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36096 cat >>$CONFIG_STATUS <<\_ACEOF
36097 # If the template does not know about datarootdir, expand it.
36098 # FIXME: This hack should be removed a few years after 2.60.
36099 ac_datarootdir_hack=; ac_datarootdir_seen=
36101 case `sed -n '/datarootdir/ {
36110 ' $ac_file_inputs` in
36111 *datarootdir*) ac_datarootdir_seen=yes;;
36112 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36113 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36114 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36116 cat >>$CONFIG_STATUS <<_ACEOF
36117 ac_datarootdir_hack='
36118 s&@datadir@&$datadir&g
36119 s&@docdir@&$docdir&g
36120 s&@infodir@&$infodir&g
36121 s&@localedir@&$localedir&g
36122 s&@mandir@&$mandir&g
36123 s&\\\${datarootdir}&$datarootdir&g' ;;
36127 # Neutralize VPATH when `$srcdir' = `.'.
36128 # Shell code in configure.ac might set extrasub.
36129 # FIXME: do we really want to maintain this feature?
36130 cat >>$CONFIG_STATUS <<_ACEOF
36134 cat >>$CONFIG_STATUS <<\_ACEOF
36136 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36137 s&@configure_input@&$configure_input&;t t
36138 s&@top_builddir@&$ac_top_builddir_sub&;t t
36139 s&@srcdir@&$ac_srcdir&;t t
36140 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36141 s&@top_srcdir@&$ac_top_srcdir&;t t
36142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36143 s&@builddir@&$ac_builddir&;t t
36144 s&@abs_builddir@&$ac_abs_builddir&;t t
36145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36146 s&@INSTALL@&$ac_INSTALL&;t t
36147 $ac_datarootdir_hack
36148 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
36150 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36151 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36152 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36153 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36154 which seems to be undefined. Please make sure it is defined." >&5
36155 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36156 which seems to be undefined. Please make sure it is defined." >&2;}
36160 -) cat "$tmp/out"; rm -f "$tmp/out";;
36161 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36170 # Transform confdefs.h into a sed script `conftest.defines', that
36171 # substitutes the proper values into config.h.in to produce config.h.
36172 rm -f conftest.defines conftest.tail
36173 # First, append a space to every undef/define line, to ease matching.
36174 echo 's/$/ /' >conftest.defines
36175 # Then, protect against being on the right side of a sed subst, or in
36176 # an unquoted here document, in config.status. If some macros were
36177 # called several times there might be several #defines for the same
36178 # symbol, which is useless. But do not sort them, since the last
36179 # AC_DEFINE must be honored.
36180 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36181 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36182 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36183 # PARAMS is the parameter list in the macro definition--in most cases, it's
36184 # just an empty string.
36185 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36186 ac_dB='\\)[ (].*,\\1define\\2'
36194 s/^[ ]*#[ ]*define[ ][ ]*//
36199 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36200 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36201 ' >>conftest.defines
36203 # Remove the space that was appended to ease matching.
36204 # Then replace #undef with comments. This is necessary, for
36205 # example, in the case of _POSIX_SOURCE, which is predefined and required
36206 # on some systems where configure will not decide to define it.
36207 # (The regexp can be short, since the line contains either #define or #undef.)
36209 s,^[ #]*u.*,/* & */,' >>conftest.defines
36211 # Break up conftest.defines:
36212 ac_max_sed_lines=50
36214 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36215 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36216 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36218 ac_in='$ac_file_inputs'
36219 ac_out='"$tmp/out1"'
36220 ac_nxt='"$tmp/out2"'
36224 # Write a here document:
36225 cat >>$CONFIG_STATUS <<_ACEOF
36226 # First, check the format of the line:
36227 cat >"\$tmp/defines.sed" <<\\CEOF
36228 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36229 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36233 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36235 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36236 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36237 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36238 grep . conftest.tail >/dev/null || break
36239 rm -f conftest.defines
36240 mv conftest.tail conftest.defines
36242 rm -f conftest.defines conftest.tail
36244 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36245 cat >>$CONFIG_STATUS <<\_ACEOF
36246 if test x"$ac_file" != x-; then
36247 echo "/* $configure_input */" >"$tmp/config.h"
36248 cat "$ac_result" >>"$tmp/config.h"
36249 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36250 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36251 echo "$as_me: $ac_file is unchanged" >&6;}
36254 mv "$tmp/config.h" $ac_file
36257 echo "/* $configure_input */"
36263 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36264 echo "$as_me: executing $ac_file commands" >&6;}
36269 case $ac_file$ac_mode in
36271 for ac_file in $CONFIG_FILES; do
36272 # Support "outfile[:infile[:infile...]]"
36274 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36276 # PO directories have a Makefile.in generated from Makefile.in.in.
36277 case "$ac_file" in */Makefile.in)
36278 # Adjust a relative srcdir.
36279 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36280 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
36281 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36282 # In autoconf-2.13 it is called $ac_given_srcdir.
36283 # In autoconf-2.50 it is called $srcdir.
36284 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36285 case "$ac_given_srcdir" in
36286 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36287 /*) top_srcdir="$ac_given_srcdir" ;;
36288 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36290 # Treat a directory as a PO directory if and only if it has a
36291 # POTFILES.in file. This allows packages to have multiple PO
36292 # directories under different names or in different locations.
36293 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36294 rm -f "$ac_dir/POTFILES"
36295 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36296 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36297 POMAKEFILEDEPS="POTFILES.in"
36298 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
36299 # on $ac_dir but don't depend on user-specified configuration
36301 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36302 # The LINGUAS file contains the set of available languages.
36303 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36304 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
36306 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36307 # Hide the ALL_LINGUAS assigment from automake.
36308 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36309 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36311 # The set of available languages was given in configure.in.
36312 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36315 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
36316 # Compute UPDATEPOFILES
36317 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
36318 # Compute DUMMYPOFILES
36319 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
36321 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
36322 case "$ac_given_srcdir" in
36324 *) srcdirpre='$(srcdir)/' ;;
36330 for lang in $ALL_LINGUAS; do
36331 POFILES="$POFILES $srcdirpre$lang.po"
36332 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36333 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36334 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36336 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36337 # environment variable.
36339 if test -n "$ALL_LINGUAS"; then
36340 for presentlang in $ALL_LINGUAS; do
36342 if test "%UNSET%" != "$LINGUAS"; then
36343 desiredlanguages="$LINGUAS"
36345 desiredlanguages="$ALL_LINGUAS"
36347 for desiredlang in $desiredlanguages; do
36348 # Use the presentlang catalog if desiredlang is
36349 # a. equal to presentlang, or
36350 # b. a variant of presentlang (because in this case,
36351 # presentlang can be used as a fallback for messages
36352 # which are not translated in the desiredlang catalog).
36353 case "$desiredlang" in
36354 "$presentlang"*) useit=yes;;
36357 if test $useit = yes; then
36358 INST_LINGUAS="$INST_LINGUAS $presentlang"
36363 if test -n "$INST_LINGUAS"; then
36364 for lang in $INST_LINGUAS; do
36365 CATALOGS="$CATALOGS $lang.gmo"
36368 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36369 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"
36370 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36371 if test -f "$f"; then
36373 *.orig | *.bak | *~) ;;
36374 *) cat "$f" >> "$ac_dir/Makefile" ;;
36389 { (exit 0); exit 0; }
36391 chmod +x $CONFIG_STATUS
36392 ac_clean_files=$ac_clean_files_save
36395 # configure is writing to config.log, and then calls config.status.
36396 # config.status does its own redirection, appending to config.log.
36397 # Unfortunately, on DOS this fails, as config.log is still kept open
36398 # by configure, so config.status won't be able to write to it; its
36399 # output is simply discarded. So we exec the FD to /dev/null,
36400 # effectively closing config.log, so it can be properly (re)opened and
36401 # appended to by config.status. When coming back to configure, we
36402 # need to make the FD available again.
36403 if test "$no_create" != yes; then
36405 ac_config_status_args=
36406 test "$silent" = yes &&
36407 ac_config_status_args="$ac_config_status_args --quiet"
36409 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36411 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36412 # would make configure fail if this is the last instruction.
36413 $ac_cs_success || { (exit 1); exit 1; }
36417 if test "${support_bat}" = "yes" ; then
36418 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
36419 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
36425 if test "x$QMAKEQT4" != "xnone"; then
36430 chmod 755 install_conf_file build-depkgs-qt-console
36431 echo "Creating bat Makefile"
36437 echo "Doing make of dependencies"
36438 ${MAKE:-make} depend
36441 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
36442 chmod 755 dvd-handler dvd-simulator
36443 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
36447 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
36448 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
36452 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
36453 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
36455 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
36456 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
36458 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
36459 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
36461 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
36462 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
36464 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
36465 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
36467 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
36468 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
36470 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
36471 chmod 755 $c/sqlite
36474 chmod 755 src/win32/build-depkgs-mingw32
36478 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
36479 largefile_support="yes"
36483 # A whole lot of hand springs to get the compiler version.
36484 # This is because gcc changed the output in version 3.0
36486 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36487 if test "x${CCVERSION}" = "x" ; then
36488 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36490 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36491 if test x"${CXXVERSION}" = x ; then
36492 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36495 if test "x${subsysdir}" = "x${sbindir}" ; then
36498 echo "You have set --sbindir and --with-subsys-dir"
36499 echo " both equal to: ${subsysdir} "
36500 echo " This is not permitted. Please reconfigure."
36502 echo "Aborting configuration ..."
36508 if test "x${db_type}" = "xInternal" ; then
36511 echo "You have not specified either --enable-client-only or one of the"
36512 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
36513 echo " This is not permitted. Please reconfigure."
36515 echo "Aborting the configuration ..."
36522 Configuration on `date`:
36524 Host: $host -- ${DISTNAME} ${DISTVER}
36525 Bacula version: ${VERSION} (${DATE})
36526 Source code location: ${srcdir}
36527 Install binaries: ${sbindir}
36528 Install config files: ${sysconfdir}
36529 Scripts directory: ${scriptdir}
36530 Archive directory: ${archivedir}
36531 Working directory: ${working_dir}
36532 PID directory: ${piddir}
36533 Subsys directory: ${subsysdir}
36534 Man directory: ${mandir}
36535 Data directory: ${datadir}
36536 C Compiler: ${CC} ${CCVERSION}
36537 C++ Compiler: ${CXX} ${CXXVERSION}
36538 Compiler flags: ${WCFLAGS} ${CFLAGS}
36539 Linker flags: ${WLDFLAGS} ${LDFLAGS}
36541 Statically Linked Tools: ${support_static_tools}
36542 Statically Linked FD: ${support_static_fd}
36543 Statically Linked SD: ${support_static_sd}
36544 Statically Linked DIR: ${support_static_dir}
36545 Statically Linked CONS: ${support_static_cons}
36546 Database type: ${db_type}
36547 Database port: ${db_port}
36548 Database lib: ${DB_LIBS}
36549 Database name: ${db_name}
36550 Database user: ${db_user}
36552 Job Output Email: ${job_email}
36553 Traceback Email: ${dump_email}
36554 SMTP Host Address: ${smtp_host}
36556 Director Port: ${dir_port}
36557 File daemon Port: ${fd_port}
36558 Storage daemon Port: ${sd_port}
36560 Director User: ${dir_user}
36561 Director Group: ${dir_group}
36562 Storage Daemon User: ${sd_user}
36563 Storage DaemonGroup: ${sd_group}
36564 File Daemon User: ${fd_user}
36565 File Daemon Group: ${fd_group}
36567 SQL binaries Directory ${SQL_BINDIR}
36569 Large file support: $largefile_support
36570 Bacula conio support: ${got_conio} ${CONS_LIBS}
36571 readline support: ${got_readline} ${PRTREADLINE_SRC}
36572 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
36573 TLS support: ${support_tls}
36574 Encryption support: ${support_crypto}
36575 ZLIB support: ${have_zlib}
36576 enable-smartalloc: ${support_smartalloc}
36577 bat support: ${support_bat} ${QWT_LDFLAGS}
36578 enable-gnome: ${support_gnome} ${gnome_version}
36579 enable-bwx-console: ${support_wx_console} ${wx_version}
36580 enable-tray-monitor: ${support_tray_monitor}
36581 client-only: ${build_client_only}
36582 build-dird: ${build_dird}
36583 build-stored: ${build_stored}
36584 ACL support: ${have_acl}
36585 Python support: ${support_python} ${PYTHON_LIBS}
36586 Batch insert enabled: ${support_batch_insert}
36587 Berkeley DB support: ${support_libdb} ${BDB_LIBS}