2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="src/version.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
709 HAVE_FREEBSD_OS_FALSE
713 HAVE_OPENBSD_OS_FALSE
744 BUILD_INCLUDED_LIBINTL
751 INTL_LIBTOOL_SUFFIX_PREFIX
763 TRAY_MONITOR_CPPFLAGS
842 ac_subst_files='MCOMMON'
843 ac_precious_vars='build_alias
859 # Initialize some variables set by options.
861 ac_init_version=false
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
871 program_transform_name=s,x,x,
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE}'
896 infodir='${datarootdir}/info'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
917 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
963 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
964 { (exit 1); exit 1; }; }
965 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
966 eval enable_$ac_feature=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 -enable-* | --enable-*)
979 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
982 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983 { (exit 1); exit 1; }; }
984 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
985 eval enable_$ac_feature=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1149 -site=* | --site=* | --sit=*)
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1176 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid package name: $ac_package" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_package=`echo $ac_package| sed 's/-/_/g'`
1182 eval with_$ac_package=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1188 { echo "$as_me: error: invalid package name: $ac_package" >&2
1189 { (exit 1); exit 1; }; }
1190 ac_package=`echo $ac_package | sed 's/-/_/g'`
1191 eval with_$ac_package=no ;;
1194 # Obsolete; use --with-x.
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) { echo "$as_me: error: unrecognized option: $ac_option
1212 Try \`$0 --help' for more information." >&2
1213 { (exit 1); exit 1; }; }
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1220 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1221 { (exit 1); exit 1; }; }
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 { echo "$as_me: error: missing argument to $ac_option" >&2
1239 { (exit 1); exit 1; }; }
1242 # Be sure to have absolute directory names.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1248 eval ac_val=\$$ac_var
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1254 { (exit 1); exit 1; }; }
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1262 target=$target_alias
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269 If a cross compiler is detected then cross compile mode will be used." >&2
1270 elif test "x$build_alias" != "x$host_alias"; then
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278 test "$silent" = yes && exec 6>/dev/null
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 { echo "$as_me: error: Working directory cannot be determined" >&2
1285 { (exit 1); exit 1; }; }
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 { echo "$as_me: error: pwd does not report name of working directory" >&2
1288 { (exit 1); exit 1; }; }
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$0" ||
1296 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$0" : 'X\(//\)[^/]' \| \
1298 X"$0" : 'X\(//\)$' \| \
1299 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1323 ac_srcdir_defaulted=no
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1328 { (exit 1); exit 1; }; }
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1333 { (exit 1); exit 1; }; }
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1359 \`configure' configures this package to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1417 --x-includes=DIR X include files are in DIR
1418 --x-libraries=DIR X library files are in DIR
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 if test -n "$ac_init_help"; then
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --disable-nls do not use Native Language Support
1434 --disable-rpath do not hardcode runtime library paths
1435 --enable-gnome enable build of bgnome-console GUI disabled
1436 --enable-bat enable build of bat Qt4 GUI disabled
1437 --enable-bwx-console enable build of wxWidgets console disabled
1438 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1439 --enable-smartalloc enable smartalloc debugging support disabled
1440 --enable-static-tools enable static tape tools disabled
1441 --enable-static-fd enable static File daemon disabled
1442 --enable-static-sd enable static Storage daemon disabled
1443 --enable-static-dir enable static Director disabled
1444 --enable-static-cons enable static Console disabled
1445 --enable-client-only build client (File daemon) only disabled
1446 --enable-build-dird enable building of dird (Director) enabled
1447 --enable-build-stored enable building of stored (Storage daemon) enabled
1448 --disable-conio disable conio support enabled
1450 --enable-ipv6 enable ipv6 support enabled
1452 --disable-readline disable readline support disable
1454 --enable-batch-insert enable the DB batch insert code disabled
1455 --disable-largefile omit support for large files
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-gnu-ld assume the C compiler uses GNU ld default=no
1461 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1462 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1463 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1464 --without-libintl-prefix don't search for libintl in includedir and libdir
1465 --with-included-gettext use the GNU gettext library included here
1466 --with-qwt[=DIR] specify qwt library directory
1467 --with-readline[=DIR] specify readline library directory
1469 --with-python[=DIR] Include Python support. DIR is the Python base
1470 install directory, default is to search through
1471 a number of common places for the Python files.
1472 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1473 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1474 --with-working-dir=PATH specify path of Bacula working directory
1475 --with-scriptdir=PATH specify path of Bacula scripts directory
1476 --with-dump-email=EMAIL dump email address
1477 --with-job-email=EMAIL job output email address
1478 --with-smtp-host=HOST SMTP mail host address
1479 --with-pid-dir=PATH specify location of Bacula pid files
1480 --with-subsys-dir=PATH specify location of Bacula subsys file
1481 --with-baseport=PORT specify base port address for daemons
1482 --with-dir-password=PASSWORD specify Director's password
1483 --with-fd-password=PASSWORD specify Client's password
1484 --with-sd-password=PASSWORD specify Storage daemon's password
1485 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1486 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1487 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1488 --with-db-name=DBNAME specify database name (default bacula)
1489 --with-db-user=UNAME specify database user (default bacula)
1490 --with-dir-user=USER specify user for Director daemon
1491 --with-dir-group=GROUP specify group for Director daemon
1492 --with-sd-user=USER specify user for Storage daemon
1493 --with-sd-group=GROUP specify group for Storage daemon
1494 --with-fd-user=USER specify user for File daemon
1495 --with-fd-group=GROUP specify group for File daemon
1496 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1497 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1498 base install directory, defaults to /usr/local/pgsql
1500 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1501 install directory, default is to search through
1502 a number of common places for the MySQL files.
1504 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1505 install directory, default is to search through
1506 a number of common places for the MySQL files.
1508 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1509 install directory, default is to search through
1510 a number of common places for the SQLite3 files.
1512 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1513 install directory, default is to search through
1514 a number of common places for the SQLite files.
1515 --with-x use the X Window System
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1524 CXX C++ compiler command
1525 CXXFLAGS C++ compiler flags
1527 WXCONFIG wx-config command. On some systems, you must set it to
1528 wx-config-2.6 to use wxWidgets 2.6.
1529 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1530 XMKMF Path to xmkmf, Makefile generator for X Window System
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" || continue
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1562 .) # We are building in place.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1586 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1596 generated by GNU Autoconf 2.60
1598 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1599 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1605 cat >config.log <<_ACEOF
1606 This file contains any messages produced by compilers while
1607 running configure, to aid debugging if configure makes a mistake.
1609 It was created by $as_me, which was
1610 generated by GNU Autoconf 2.60. Invocation command line was
1622 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1623 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1624 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1625 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1626 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1628 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1629 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1631 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1632 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1633 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1634 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1635 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1636 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1637 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 echo "PATH: $as_dir"
1662 # Keep a trace of the command line.
1663 # Strip out --no-create and --no-recursion so they do not pile up.
1664 # Strip out --silent because we don't want to record it for future runs.
1665 # Also quote any args containing shell meta-characters.
1666 # Make two passes to allow for proper duplicate-argument suppression.
1670 ac_must_keep_next=false
1676 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1678 | -silent | --silent | --silen | --sile | --sil)
1681 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1686 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1687 if test $ac_must_keep_next = true; then
1688 ac_must_keep_next=false # Got value, back to normal.
1691 *=* | --config-cache | -C | -disable-* | --disable-* \
1692 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1693 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1694 | -with-* | --with-* | -without-* | --without-* | --x)
1695 case "$ac_configure_args0 " in
1696 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699 -* ) ac_must_keep_next=true ;;
1702 ac_configure_args="$ac_configure_args '$ac_arg'"
1707 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1708 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1710 # When interrupted or exit'd, cleanup temporary files, and complete
1711 # config.log. We remove comments because anyway the quotes in there
1712 # would cause problems or look ugly.
1713 # WARNING: Use '\'' to represent an apostrophe within the trap.
1714 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1715 trap 'exit_status=$?
1716 # Save into config.log some information that might help in debugging.
1721 ## ---------------- ##
1722 ## Cache variables. ##
1723 ## ---------------- ##
1726 # The following way of writing the cache mishandles newlines in values,
1728 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1729 eval ac_val=\$$ac_var
1733 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1734 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1737 _ | IFS | as_nl) ;; #(
1738 *) $as_unset $ac_var ;;
1743 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1744 *${as_nl}ac_space=\ *)
1746 "s/'\''/'\''\\\\'\'''\''/g;
1747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 ## ----------------- ##
1759 ## Output variables. ##
1760 ## ----------------- ##
1763 for ac_var in $ac_subst_vars
1765 eval ac_val=\$$ac_var
1767 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 echo "$ac_var='\''$ac_val'\''"
1773 if test -n "$ac_subst_files"; then
1775 ## ------------------- ##
1776 ## File substitutions. ##
1777 ## ------------------- ##
1780 for ac_var in $ac_subst_files
1782 eval ac_val=\$$ac_var
1784 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 echo "$ac_var='\''$ac_val'\''"
1791 if test -s confdefs.h; then
1801 test "$ac_signal" != 0 &&
1802 echo "$as_me: caught signal $ac_signal"
1803 echo "$as_me: exit $exit_status"
1805 rm -f core *.core core.conftest.* &&
1806 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809 for ac_signal in 1 2 13 15; do
1810 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1815 rm -f -r conftest* confdefs.h
1817 # Predefined preprocessor variables.
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_NAME "$PACKAGE_NAME"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_STRING "$PACKAGE_STRING"
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1844 # Let the site file select an alternate cache file if it wants to.
1845 # Prefer explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847 set x "$CONFIG_SITE"
1848 elif test "x$prefix" != xNONE; then
1849 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1851 set x "$ac_default_prefix/share/config.site" \
1852 "$ac_default_prefix/etc/config.site"
1857 if test -r "$ac_site_file"; then
1858 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 echo "$as_me: loading cache $cache_file" >&6;}
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1877 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 echo "$as_me: creating cache $cache_file" >&6;}
1882 # Check that the precious variables saved in the cache have kept the same
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887 eval ac_new_set=\$ac_env_${ac_var}_set
1888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889 eval ac_new_val=\$ac_env_${ac_var}_value
1890 case $ac_old_set,$ac_new_set in
1892 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1896 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1901 if test "x$ac_old_val" != "x$ac_new_val"; then
1902 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1903 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1904 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1905 echo "$as_me: former value: $ac_old_val" >&2;}
1906 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1907 echo "$as_me: current value: $ac_new_val" >&2;}
1908 ac_cache_corrupted=:
1911 # Pass precious variables to config.status.
1912 if test "$ac_new_set" = set; then
1914 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 *) ac_arg=$ac_var=$ac_new_val ;;
1917 case " $ac_configure_args " in
1918 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1919 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1923 if $ac_cache_corrupted; then
1924 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1925 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1926 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1927 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1928 { (exit 1); exit 1; }; }
1948 ac_cpp='$CPP $CPPFLAGS'
1949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1962 if test -f "$ac_dir/install-sh"; then
1964 ac_install_sh="$ac_aux_dir/install-sh -c"
1966 elif test -f "$ac_dir/install.sh"; then
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1970 elif test -f "$ac_dir/shtool"; then
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1976 if test -z "$ac_aux_dir"; then
1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1979 { (exit 1); exit 1; }; }
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1991 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 TRUEPRG=$ac_cv_path_TRUEPRG
2030 if test -n "$TRUEPRG"; then
2031 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2032 echo "${ECHO_T}$TRUEPRG" >&6; }
2034 { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2039 test -n "$TRUEPRG" && break
2041 test -n "$TRUEPRG" || TRUEPRG=":"
2043 for ac_prog in false
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_FALSEPRG+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 ac_cv_path_FALSEPRG="$FALSEPRG" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 FALSEPRG=$ac_cv_path_FALSEPRG
2076 if test -n "$FALSEPRG"; then
2077 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2078 echo "${ECHO_T}$FALSEPRG" >&6; }
2080 { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2085 test -n "$FALSEPRG" && break
2087 test -n "$FALSEPRG" || FALSEPRG=":"
2092 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2093 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2094 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2095 echo "configuring for bacula $VERSION ($DATE)"
2100 ac_cpp='$CPP $CPPFLAGS'
2101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 if test -n "$ac_tool_prefix"; then
2105 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2122 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 if test -n "$CC"; then
2134 { echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6; }
2137 { echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6; }
2143 if test -z "$ac_cv_prog_CC"; then
2145 # Extract the first word of "gcc", so it can be a program name with args.
2146 set dummy gcc; ac_word=$2
2147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2149 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 if test -n "$ac_ct_CC"; then
2153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2162 ac_cv_prog_ac_ct_CC="gcc"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2175 echo "${ECHO_T}$ac_ct_CC" >&6; }
2177 { echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6; }
2181 if test "x$ac_ct_CC" = x; then
2184 case $cross_compiling:$ac_tool_warned in
2186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2187 whose name does not start with the host triplet. If you think this
2188 configuration is useful to you, please write to autoconf@gnu.org." >&5
2189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2190 whose name does not start with the host triplet. If you think this
2191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2192 ac_tool_warned=yes ;;
2200 if test -z "$CC"; then
2201 if test -n "$ac_tool_prefix"; then
2202 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2203 set dummy ${ac_tool_prefix}cc; ac_word=$2
2204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_CC="${ac_tool_prefix}cc"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 if test -n "$CC"; then
2231 { echo "$as_me:$LINENO: result: $CC" >&5
2232 echo "${ECHO_T}$CC" >&6; }
2234 { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2241 if test -z "$CC"; then
2242 # Extract the first word of "cc", so it can be a program name with args.
2243 set dummy cc; ac_word=$2
2244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2246 if test "${ac_cv_prog_CC+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 if test -n "$CC"; then
2250 ac_cv_prog_CC="$CC" # Let the user override the test.
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2261 ac_prog_rejected=yes
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 if test $ac_prog_rejected = yes; then
2273 # We found a bogon in the path, so make sure we never use it.
2274 set dummy $ac_cv_prog_CC
2276 if test $# != 0; then
2277 # We chose a different compiler from the bogus one.
2278 # However, it has the same basename, so the bogon will be chosen
2279 # first if we set CC to just the basename; use the full file name.
2281 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2287 if test -n "$CC"; then
2288 { echo "$as_me:$LINENO: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6; }
2291 { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2297 if test -z "$CC"; then
2298 if test -n "$ac_tool_prefix"; then
2299 for ac_prog in cl.exe
2301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_CC+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$CC"; then
2309 ac_cv_prog_CC="$CC" # Let the user override the test.
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2318 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 if test -n "$CC"; then
2330 { echo "$as_me:$LINENO: result: $CC" >&5
2331 echo "${ECHO_T}$CC" >&6; }
2333 { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2338 test -n "$CC" && break
2341 if test -z "$CC"; then
2343 for ac_prog in cl.exe
2345 # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy $ac_prog; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$ac_ct_CC"; then
2353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_CC="$ac_prog"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2373 if test -n "$ac_ct_CC"; then
2374 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2375 echo "${ECHO_T}$ac_ct_CC" >&6; }
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2382 test -n "$ac_ct_CC" && break
2385 if test "x$ac_ct_CC" = x; then
2388 case $cross_compiling:$ac_tool_warned in
2390 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet. If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&5
2393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet. If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2396 ac_tool_warned=yes ;;
2405 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&2;}
2409 { (exit 1); exit 1; }; }
2411 # Provide some information about the compiler.
2412 echo "$as_me:$LINENO: checking for C compiler version" >&5
2413 ac_compiler=`set X $ac_compile; echo $2`
2414 { (ac_try="$ac_compiler --version >&5"
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_compiler --version >&5") 2>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }
2424 { (ac_try="$ac_compiler -v >&5"
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_compiler -v >&5") 2>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }
2434 { (ac_try="$ac_compiler -V >&5"
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440 (eval "$ac_compiler -V >&5") 2>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }
2445 cat >conftest.$ac_ext <<_ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2460 ac_clean_files_save=$ac_clean_files
2461 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2462 # Try to create an executable without -o first, disregard a.out.
2463 # It will help us diagnose broken compilers, and finding out an intuition
2465 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2466 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2467 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2469 # List of possible output files, starting from the most likely.
2470 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2471 # only as a last resort. b.out is created by i960 compilers.
2472 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2474 # The IRIX 6 linker writes into existing files which may not be
2475 # executable, retaining their permissions. Remove them first so a
2476 # subsequent execution test works.
2478 for ac_file in $ac_files
2481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2482 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2487 if { (ac_try="$ac_link_default"
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_link_default") 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; then
2497 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2498 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2499 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2500 # so that the user can short-circuit this test for compilers unknown to
2502 for ac_file in $ac_files
2504 test -f "$ac_file" || continue
2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2509 # We found the default executable, but exeext='' is most
2513 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2515 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2517 # We set ac_cv_exeext here because the later test for it is not
2518 # safe: cross compilers may not add the suffix if given an `-o'
2519 # argument, so we may need to know it at that point already.
2520 # Even if this section looks crufty: it has the advantage of
2527 test "$ac_cv_exeext" = no && ac_cv_exeext=
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2533 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2534 See \`config.log' for more details." >&5
2535 echo "$as_me: error: C compiler cannot create executables
2536 See \`config.log' for more details." >&2;}
2537 { (exit 77); exit 77; }; }
2540 ac_exeext=$ac_cv_exeext
2541 { echo "$as_me:$LINENO: result: $ac_file" >&5
2542 echo "${ECHO_T}$ac_file" >&6; }
2544 # Check that the compiler produces executables we can run. If not, either
2545 # the compiler is broken, or we cross compile.
2546 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2547 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2548 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2549 # If not cross compiling, check that we can run a simple program.
2550 if test "$cross_compiling" != yes; then
2551 if { ac_try='./$ac_file'
2552 { (case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_try") 2>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2563 if test "$cross_compiling" = maybe; then
2566 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2567 If you meant to cross compile, use \`--host'.
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot run C compiled programs.
2570 If you meant to cross compile, use \`--host'.
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2576 { echo "$as_me:$LINENO: result: yes" >&5
2577 echo "${ECHO_T}yes" >&6; }
2579 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2580 ac_clean_files=$ac_clean_files_save
2581 # Check that the compiler produces executables we can run. If not, either
2582 # the compiler is broken, or we cross compile.
2583 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2584 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2585 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2586 echo "${ECHO_T}$cross_compiling" >&6; }
2588 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2589 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2590 if { (ac_try="$ac_link"
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_link") 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; then
2600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2601 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2602 # work properly (i.e., refer to `conftest.exe'), while it won't with
2604 for ac_file in conftest.exe conftest conftest.*; do
2605 test -f "$ac_file" || continue
2607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2614 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2617 See \`config.log' for more details." >&2;}
2618 { (exit 1); exit 1; }; }
2621 rm -f conftest$ac_cv_exeext
2622 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2623 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2625 rm -f conftest.$ac_ext
2626 EXEEXT=$ac_cv_exeext
2628 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2629 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2630 if test "${ac_cv_objext+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2648 rm -f conftest.o conftest.obj
2649 if { (ac_try="$ac_compile"
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compile") 2>&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; then
2659 for ac_file in conftest.o conftest.obj conftest.*; do
2660 test -f "$ac_file" || continue;
2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2663 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2671 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&2;}
2675 { (exit 1); exit 1; }; }
2678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2680 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2681 echo "${ECHO_T}$ac_cv_objext" >&6; }
2682 OBJEXT=$ac_cv_objext
2684 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2685 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2686 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 cat >conftest.$ac_ext <<_ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722 { (case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_try") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_try") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2753 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2758 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_cc_g+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 ac_save_c_werror_flag=$ac_c_werror_flag
2764 ac_c_werror_flag=yes
2767 cat >conftest.$ac_ext <<_ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2782 rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2797 { (case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_try") 2>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_try") 2>&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2837 rm -f conftest.$ac_objext
2838 if { (ac_try="$ac_compile"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compile") 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2852 { (case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_try") 2>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; } &&
2861 { ac_try='test -s conftest.$ac_objext'
2862 { (case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_try") 2>&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2876 ac_c_werror_flag=$ac_save_c_werror_flag
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2893 rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2908 { (case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_try") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_try") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942 ac_c_werror_flag=$ac_save_c_werror_flag
2944 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2945 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2946 if test "$ac_test_CFLAGS" = set; then
2947 CFLAGS=$ac_save_CFLAGS
2948 elif test $ac_cv_prog_cc_g = yes; then
2949 if test "$GCC" = yes; then
2955 if test "$GCC" = yes; then
2961 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2962 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_cc_c89+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 ac_cv_prog_cc_c89=no
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2976 #include <sys/types.h>
2977 #include <sys/stat.h>
2978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2979 struct buf { int x; };
2980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2981 static char *e (p, i)
2987 static char *f (char * (*g) (char **, int), char **p, ...)
2992 s = g (p, va_arg (v,int));
2997 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2998 function prototypes and stuff, but not '\xHH' hex character constants.
2999 These don't provoke an error unfortunately, instead are silently treated
3000 as 'x'. The following induces an error, until -std is added to get
3001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3002 array size at least. It's necessary to write '\x00'==0 to get something
3003 that's true only with -std. */
3004 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3006 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3007 inside strings and character constants. */
3009 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3011 int test (int i, double x);
3012 struct s1 {int (*f) (int a);};
3013 struct s2 {int (*f) (double a);};
3014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3020 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3025 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3026 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3028 CC="$ac_save_CC $ac_arg"
3029 rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } &&
3043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3044 { (case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_try") 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; } &&
3053 { ac_try='test -s conftest.$ac_objext'
3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_try") 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 ac_cv_prog_cc_c89=$ac_arg
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3071 rm -f core conftest.err conftest.$ac_objext
3072 test "x$ac_cv_prog_cc_c89" != "xno" && break
3074 rm -f conftest.$ac_ext
3079 case "x$ac_cv_prog_cc_c89" in
3081 { echo "$as_me:$LINENO: result: none needed" >&5
3082 echo "${ECHO_T}none needed" >&6; } ;;
3084 { echo "$as_me:$LINENO: result: unsupported" >&5
3085 echo "${ECHO_T}unsupported" >&6; } ;;
3087 CC="$CC $ac_cv_prog_cc_c89"
3088 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3089 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 ac_cpp='$CXXCPP $CPPFLAGS'
3101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3104 if test -z "$CXX"; then
3105 if test -n "$CCC"; then
3108 if test -n "$ac_tool_prefix"; then
3109 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3115 if test "${ac_cv_prog_CXX+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 if test -n "$CXX"; then
3119 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 if test -n "$CXX"; then
3140 { echo "$as_me:$LINENO: result: $CXX" >&5
3141 echo "${ECHO_T}$CXX" >&6; }
3143 { echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6; }
3148 test -n "$CXX" && break
3151 if test -z "$CXX"; then
3153 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3159 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 if test -n "$ac_ct_CXX"; then
3163 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 ac_cv_prog_ac_ct_CXX="$ac_prog"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3183 if test -n "$ac_ct_CXX"; then
3184 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3185 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3187 { echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6; }
3192 test -n "$ac_ct_CXX" && break
3195 if test "x$ac_ct_CXX" = x; then
3198 case $cross_compiling:$ac_tool_warned in
3200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3201 whose name does not start with the host triplet. If you think this
3202 configuration is useful to you, please write to autoconf@gnu.org." >&5
3203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3204 whose name does not start with the host triplet. If you think this
3205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3206 ac_tool_warned=yes ;;
3214 # Provide some information about the compiler.
3215 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3216 ac_compiler=`set X $ac_compile; echo $2`
3217 { (ac_try="$ac_compiler --version >&5"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compiler --version >&5") 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }
3227 { (ac_try="$ac_compiler -v >&5"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compiler -v >&5") 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }
3237 { (ac_try="$ac_compiler -V >&5"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compiler -V >&5") 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }
3248 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3249 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3250 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 cat >conftest.$ac_ext <<_ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3286 { (case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_try") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; } &&
3295 { ac_try='test -s conftest.$ac_objext'
3296 { (case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_try") 2>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3317 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3318 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3319 GXX=`test $ac_compiler_gnu = yes && echo yes`
3320 ac_test_CXXFLAGS=${CXXFLAGS+set}
3321 ac_save_CXXFLAGS=$CXXFLAGS
3322 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3323 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3324 if test "${ac_cv_prog_cxx_g+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3328 ac_cxx_werror_flag=yes
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_prog_cxx_g=yes
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_compile") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3416 { (case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_try") 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_try") 2>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3457 rm -f conftest.$ac_objext
3458 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3466 grep -v '^ *+' conftest.er1 >conftest.err
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_try") 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
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_cv_prog_cxx_g=yes
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3508 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3509 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3510 if test "$ac_test_CXXFLAGS" = set; then
3511 CXXFLAGS=$ac_save_CXXFLAGS
3512 elif test $ac_cv_prog_cxx_g = yes; then
3513 if test "$GXX" = yes; then
3519 if test "$GXX" = yes; then
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531 if test "x$CC" != xcc; then
3532 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3533 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3535 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3536 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3538 set dummy $CC; ac_cc=`echo $2 |
3539 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3540 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3558 # Make sure it works both with $CC and with simple cc.
3559 # We do the test twice because some compilers refuse to overwrite an
3560 # existing .o file with -o, though they will create one.
3561 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3563 if { (case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_try") 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } &&
3572 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_try") 2>&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); };
3582 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3583 if test "x$CC" != xcc; then
3584 # Test first that cc exists at all.
3585 if { ac_try='cc -c conftest.$ac_ext >&5'
3586 { (case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_try") 2>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3597 if { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_try") 2>&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_try") 2>&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); };
3619 # cc exists but doesn't like -o.
3620 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3625 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3627 rm -f core conftest*
3630 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3631 { echo "$as_me:$LINENO: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6; }
3634 { echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6; }
3637 cat >>confdefs.h <<\_ACEOF
3638 #define NO_MINUS_C_MINUS_O 1
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3649 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3650 # On Suns, sometimes $CPP names a directory.
3651 if test -n "$CPP" && test -d "$CPP"; then
3654 if test -z "$CPP"; then
3655 if test "${ac_cv_prog_CPP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 # Double quotes because CPP needs to be expanded
3659 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3662 for ac_c_preproc_warn_flag in '' yes
3664 # Use a header file that comes with gcc, so configuring glibc
3665 # with a fresh cross-compiler works.
3666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3667 # <limits.h> exists even on freestanding compilers.
3668 # On the NeXT, cc -E runs the code through the compiler's parser,
3669 # not just through cpp. "Syntax error" is here to catch this case.
3670 cat >conftest.$ac_ext <<_ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3677 # include <limits.h>
3679 # include <assert.h>
3683 if { (ac_try="$ac_cpp conftest.$ac_ext"
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3691 grep -v '^ *+' conftest.er1 >conftest.err
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } >/dev/null; then
3696 if test -s conftest.err; then
3697 ac_cpp_err=$ac_c_preproc_warn_flag
3698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3705 if test -z "$ac_cpp_err"; then
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 # Broken: fails on valid input.
3715 rm -f conftest.err conftest.$ac_ext
3717 # OK, works on sane cases. Now check whether nonexistent headers
3718 # can be detected and how.
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 #include <ac_nonexistent.h>
3727 if { (ac_try="$ac_cpp conftest.$ac_ext"
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3735 grep -v '^ *+' conftest.er1 >conftest.err
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } >/dev/null; then
3740 if test -s conftest.err; then
3741 ac_cpp_err=$ac_c_preproc_warn_flag
3742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3749 if test -z "$ac_cpp_err"; then
3750 # Broken: success on invalid input.
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 # Passes both tests.
3761 rm -f conftest.err conftest.$ac_ext
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then
3778 { echo "$as_me:$LINENO: result: $CPP" >&5
3779 echo "${ECHO_T}$CPP" >&6; }
3781 for ac_c_preproc_warn_flag in '' yes
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3796 # include <limits.h>
3798 # include <assert.h>
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810 grep -v '^ *+' conftest.er1 >conftest.err
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null; then
3815 if test -s conftest.err; then
3816 ac_cpp_err=$ac_c_preproc_warn_flag
3817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3824 if test -z "$ac_cpp_err"; then
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 # Broken: fails on valid input.
3834 rm -f conftest.err conftest.$ac_ext
3836 # OK, works on sane cases. Now check whether nonexistent headers
3837 # can be detected and how.
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3846 if { (ac_try="$ac_cpp conftest.$ac_ext"
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
3861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3868 if test -z "$ac_cpp_err"; then
3869 # Broken: success on invalid input.
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 # Passes both tests.
3880 rm -f conftest.err conftest.$ac_ext
3883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 rm -f conftest.err conftest.$ac_ext
3885 if $ac_preproc_ok; then
3888 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3889 See \`config.log' for more details." >&5
3890 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3891 See \`config.log' for more details." >&2;}
3892 { (exit 1); exit 1; }; }
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3903 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3904 if test "${ac_cv_path_GREP+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 # Extract the first word of "grep ggrep" to use in msg output
3908 if test -z "$GREP"; then
3909 set dummy grep ggrep; ac_prog_name=$2
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 ac_path_GREP_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in grep ggrep; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3923 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3924 # Check for GNU ac_path_GREP and select it if it is found.
3925 # Check for GNU $ac_path_GREP
3926 case `"$ac_path_GREP" --version 2>&1` in
3928 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3931 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 echo 'GREP' >> "conftest.nl"
3938 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 ac_count=`expr $ac_count + 1`
3941 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_GREP="$ac_path_GREP"
3944 ac_path_GREP_max=$ac_count
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3953 $ac_path_GREP_found && break 3
3963 GREP="$ac_cv_path_GREP"
3964 if test -z "$GREP"; then
3965 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3966 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3967 { (exit 1); exit 1; }; }
3971 ac_cv_path_GREP=$GREP
3976 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3977 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3978 GREP="$ac_cv_path_GREP"
3981 { echo "$as_me:$LINENO: checking for egrep" >&5
3982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_EGREP+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3987 then ac_cv_path_EGREP="$GREP -E"
3989 # Extract the first word of "egrep" to use in msg output
3990 if test -z "$EGREP"; then
3991 set dummy egrep; ac_prog_name=$2
3992 if test "${ac_cv_path_EGREP+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 ac_path_EGREP_found=false
3996 # Loop through the user's path and test for each of PROGNAME-LIST
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4001 test -z "$as_dir" && as_dir=.
4002 for ac_prog in egrep; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4005 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4006 # Check for GNU ac_path_EGREP and select it if it is found.
4007 # Check for GNU $ac_path_EGREP
4008 case `"$ac_path_EGREP" --version 2>&1` in
4010 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4013 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4016 cat "conftest.in" "conftest.in" >"conftest.tmp"
4017 mv "conftest.tmp" "conftest.in"
4018 cp "conftest.in" "conftest.nl"
4019 echo 'EGREP' >> "conftest.nl"
4020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022 ac_count=`expr $ac_count + 1`
4023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4024 # Best one so far, save it but keep looking for a better one
4025 ac_cv_path_EGREP="$ac_path_EGREP"
4026 ac_path_EGREP_max=$ac_count
4028 # 10*(2^10) chars as input seems more than enough
4029 test $ac_count -gt 10 && break
4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4035 $ac_path_EGREP_found && break 3
4045 EGREP="$ac_cv_path_EGREP"
4046 if test -z "$EGREP"; then
4047 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4048 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4049 { (exit 1); exit 1; }; }
4053 ac_cv_path_EGREP=$EGREP
4059 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4060 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4061 EGREP="$ac_cv_path_EGREP"
4064 if test $ac_cv_c_compiler_gnu = yes; then
4065 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4066 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4067 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 ac_pattern="Autoconf.*'x'"
4071 cat >conftest.$ac_ext <<_ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4082 ac_cv_prog_gcc_traditional=yes
4084 ac_cv_prog_gcc_traditional=no
4089 if test $ac_cv_prog_gcc_traditional = no; then
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4100 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4101 ac_cv_prog_gcc_traditional=yes
4107 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4108 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4109 if test $ac_cv_prog_gcc_traditional = yes; then
4110 CC="$CC -traditional"
4114 BASECC=`basename $CC`
4116 if test "x$BASECC" = xgcc; then
4117 cat >>confdefs.h <<\_ACEOF
4123 # Extract the first word of "$CXX", so it can be a program name with args.
4124 set dummy $CXX; ac_word=$2
4125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_CXX+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4155 if test -n "$CXX"; then
4156 { echo "$as_me:$LINENO: result: $CXX" >&5
4157 echo "${ECHO_T}$CXX" >&6; }
4159 { echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6; }
4164 if test ! -e $CXX; then
4165 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4166 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4167 { (exit 1); exit 1; }; }
4170 # Find a good install program. We prefer a C program (faster),
4171 # so one script is as good as another. But avoid the broken or
4172 # incompatible versions:
4173 # SysV /etc/install, /usr/sbin/install
4174 # SunOS /usr/etc/install
4175 # IRIX /sbin/install
4177 # AmigaOS /C/install, which installs bootblocks on floppy discs
4178 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4179 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4180 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4181 # OS/2's system install, which has a completely different semantic
4182 # ./install, which can be erroneously created by make from ./install.sh.
4183 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4184 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4185 if test -z "$INSTALL"; then
4186 if test "${ac_cv_path_install+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir=.
4194 # Account for people who put trailing slashes in PATH elements.
4196 ./ | .// | /cC/* | \
4197 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4198 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4201 # OSF1 and SCO ODT 3.0 have their own names for install.
4202 # Don't use installbsd from OSF since it installs stuff as root
4204 for ac_prog in ginstall scoinst install; do
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4207 if test $ac_prog = install &&
4208 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4209 # AIX install. It has an incompatible calling convention.
4211 elif test $ac_prog = install &&
4212 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4213 # program-specific install script used by HP pwplus--don't use.
4216 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4229 if test "${ac_cv_path_install+set}" = set; then
4230 INSTALL=$ac_cv_path_install
4232 # As a last resort, use the slow shell script. Don't cache a
4233 # value for INSTALL within a source directory, because that will
4234 # break other packages using the cache if that directory is
4235 # removed, or if the value is a relative name.
4236 INSTALL=$ac_install_sh
4239 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4240 echo "${ECHO_T}$INSTALL" >&6; }
4242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4243 # It thinks the first close brace ends the variable substitution.
4244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4246 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4248 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4250 if test -n "$ac_tool_prefix"; then
4251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_RANLIB+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test -n "$RANLIB"; then
4259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 RANLIB=$ac_cv_prog_RANLIB
4279 if test -n "$RANLIB"; then
4280 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4281 echo "${ECHO_T}$RANLIB" >&6; }
4283 { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4289 if test -z "$ac_cv_prog_RANLIB"; then
4290 ac_ct_RANLIB=$RANLIB
4291 # Extract the first word of "ranlib", so it can be a program name with args.
4292 set dummy ranlib; ac_word=$2
4293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4295 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 if test -n "$ac_ct_RANLIB"; then
4299 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4308 ac_cv_prog_ac_ct_RANLIB="ranlib"
4309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4319 if test -n "$ac_ct_RANLIB"; then
4320 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4321 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4323 { echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6; }
4327 if test "x$ac_ct_RANLIB" = x; then
4330 case $cross_compiling:$ac_tool_warned in
4332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4333 whose name does not start with the host triplet. If you think this
4334 configuration is useful to you, please write to autoconf@gnu.org." >&5
4335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4336 whose name does not start with the host triplet. If you think this
4337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4338 ac_tool_warned=yes ;;
4340 RANLIB=$ac_ct_RANLIB
4343 RANLIB="$ac_cv_prog_RANLIB"
4346 # Extract the first word of "mv", so it can be a program name with args.
4347 set dummy mv; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_path_MV+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4378 if test -n "$MV"; then
4379 { echo "$as_me:$LINENO: result: $MV" >&5
4380 echo "${ECHO_T}$MV" >&6; }
4382 { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4387 # Extract the first word of "rm", so it can be a program name with args.
4388 set dummy rm; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_RM+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4419 if test -n "$RM"; then
4420 { echo "$as_me:$LINENO: result: $RM" >&5
4421 echo "${ECHO_T}$RM" >&6; }
4423 { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4428 # Extract the first word of "cp", so it can be a program name with args.
4429 set dummy cp; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_CP+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4460 if test -n "$CP"; then
4461 { echo "$as_me:$LINENO: result: $CP" >&5
4462 echo "${ECHO_T}$CP" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 # Extract the first word of "sed", so it can be a program name with args.
4470 set dummy sed; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_SED+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4501 if test -n "$SED"; then
4502 { echo "$as_me:$LINENO: result: $SED" >&5
4503 echo "${ECHO_T}$SED" >&6; }
4505 { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4510 # Extract the first word of "echo", so it can be a program name with args.
4511 set dummy echo; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_ECHO+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4541 ECHO=$ac_cv_path_ECHO
4542 if test -n "$ECHO"; then
4543 { echo "$as_me:$LINENO: result: $ECHO" >&5
4544 echo "${ECHO_T}$ECHO" >&6; }
4546 { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4551 # Extract the first word of "cmp", so it can be a program name with args.
4552 set dummy cmp; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_CMP+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4583 if test -n "$CMP"; then
4584 { echo "$as_me:$LINENO: result: $CMP" >&5
4585 echo "${ECHO_T}$CMP" >&6; }
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4592 # Extract the first word of "tbl", so it can be a program name with args.
4593 set dummy tbl; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_TBL+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4624 if test -n "$TBL"; then
4625 { echo "$as_me:$LINENO: result: $TBL" >&5
4626 echo "${ECHO_T}$TBL" >&6; }
4628 { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4633 # Extract the first word of "ar", so it can be a program name with args.
4634 set dummy ar; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_path_AR+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4665 if test -n "$AR"; then
4666 { echo "$as_me:$LINENO: result: $AR" >&5
4667 echo "${ECHO_T}$AR" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4674 # Extract the first word of "openssl", so it can be a program name with args.
4675 set dummy openssl; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_path_OPENSSL+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4705 OPENSSL=$ac_cv_path_OPENSSL
4706 if test -n "$OPENSSL"; then
4707 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4708 echo "${ECHO_T}$OPENSSL" >&6; }
4710 { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4715 # Extract the first word of "mtx", so it can be a program name with args.
4716 set dummy mtx; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_MTX+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4747 if test -n "$MTX"; then
4748 { echo "$as_me:$LINENO: result: $MTX" >&5
4749 echo "${ECHO_T}$MTX" >&6; }
4751 { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4756 # Extract the first word of "dd", so it can be a program name with args.
4757 set dummy dd; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_DD+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4788 if test -n "$DD"; then
4789 { echo "$as_me:$LINENO: result: $DD" >&5
4790 echo "${ECHO_T}$DD" >&6; }
4792 { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4797 # Extract the first word of "mkisofs", so it can be a program name with args.
4798 set dummy mkisofs; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_path_MKISOFS+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4828 MKISOFS=$ac_cv_path_MKISOFS
4829 if test -n "$MKISOFS"; then
4830 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4831 echo "${ECHO_T}$MKISOFS" >&6; }
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4838 # Extract the first word of "python", so it can be a program name with args.
4839 set dummy python; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_PYTHON+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4869 PYTHON=$ac_cv_path_PYTHON
4870 if test -n "$PYTHON"; then
4871 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4872 echo "${ECHO_T}$PYTHON" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 # Extract the first word of "growisofs", so it can be a program name with args.
4880 set dummy growisofs; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4910 GROWISOFS=$ac_cv_path_GROWISOFS
4911 if test -n "$GROWISOFS"; then
4912 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4913 echo "${ECHO_T}$GROWISOFS" >&6; }
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4920 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4921 set dummy dvd+rw-mediainfo; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 case $DVDRWMEDIAINFO in
4929 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4951 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4952 if test -n "$DVDRWMEDIAINFO"; then
4953 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4954 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4961 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4962 set dummy dvd+rw-format; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 case $DVDRWFORMAT in
4970 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4992 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4993 if test -n "$DVDRWFORMAT"; then
4994 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4995 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5002 # Extract the first word of "pkg-config", so it can be a program name with args.
5003 set dummy pkg-config; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5033 PKGCONFIG=$ac_cv_path_PKGCONFIG
5034 if test -n "$PKGCONFIG"; then
5035 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5036 echo "${ECHO_T}$PKGCONFIG" >&6; }
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5044 if test "x$WXCONFIG" = x; then
5047 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5048 set dummy ${WXCONFIG}; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5078 WXCONFIG=$ac_cv_path_WXCONFIG
5079 if test -n "$WXCONFIG"; then
5080 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5081 echo "${ECHO_T}$WXCONFIG" >&6; }
5083 { echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6; }
5089 # Extract the first word of "cdrecord", so it can be a program name with args.
5090 set dummy cdrecord; ac_word=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_path_CDRECORD+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5120 CDRECORD=$ac_cv_path_CDRECORD
5121 if test -n "$CDRECORD"; then
5122 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5123 echo "${ECHO_T}$CDRECORD" >&6; }
5125 { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5130 # Extract the first word of "pidof", so it can be a program name with args.
5131 set dummy pidof; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_path_PIDOF+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5161 PIDOF=$ac_cv_path_PIDOF
5162 if test -n "$PIDOF"; then
5163 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5164 echo "${ECHO_T}$PIDOF" >&6; }
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5171 for ac_prog in gawk mawk nawk awk
5173 # Extract the first word of "$ac_prog", so it can be a program name with args.
5174 set dummy $ac_prog; ac_word=$2
5175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5177 if test "${ac_cv_prog_AWK+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 if test -n "$AWK"; then
5181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_prog_AWK="$ac_prog"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 if test -n "$AWK"; then
5202 { echo "$as_me:$LINENO: result: $AWK" >&5
5203 echo "${ECHO_T}$AWK" >&6; }
5205 { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5210 test -n "$AWK" && break
5213 # Some AWK programs fail, so test it and warn the user
5214 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5215 { if ((prog == $2) || (("(" prog ")") == $2) ||
5216 (("" prog "") == $2) ||
5217 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5219 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5220 The regex engine of $AWK is too broken to be used you
5221 might want to install GNU AWK.
5222 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5223 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5224 The regex engine of $AWK is too broken to be used you
5225 might want to install GNU AWK.
5226 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5227 { (exit 1); exit 1; }; }
5230 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5231 set dummy $THE_AWK; ac_word=$2
5232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5234 if test "${ac_cv_path_AWK+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5262 if test -n "$AWK"; then
5263 { echo "$as_me:$LINENO: result: $AWK" >&5
5264 echo "${ECHO_T}$AWK" >&6; }
5266 { echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6; }
5272 test -n "$ARFLAG" || ARFLAGS="cr"
5283 # Make sure we can run config.sub.
5284 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5285 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5286 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5287 { (exit 1); exit 1; }; }
5289 { echo "$as_me:$LINENO: checking build system type" >&5
5290 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5291 if test "${ac_cv_build+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 ac_build_alias=$build_alias
5295 test "x$ac_build_alias" = x &&
5296 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5297 test "x$ac_build_alias" = x &&
5298 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5299 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5300 { (exit 1); exit 1; }; }
5301 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5302 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5303 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5304 { (exit 1); exit 1; }; }
5307 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5308 echo "${ECHO_T}$ac_cv_build" >&6; }
5309 case $ac_cv_build in
5311 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5312 echo "$as_me: error: invalid value of canonical build" >&2;}
5313 { (exit 1); exit 1; }; };;
5316 ac_save_IFS=$IFS; IFS='-'
5322 # Remember, the first character of IFS is used to create $*,
5323 # except with old shells:
5326 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5330 { echo "$as_me:$LINENO: checking host system type" >&5
5331 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5332 if test "${ac_cv_host+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 if test "x$host_alias" = x; then
5336 ac_cv_host=$ac_cv_build
5338 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5339 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5340 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5341 { (exit 1); exit 1; }; }
5345 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5346 echo "${ECHO_T}$ac_cv_host" >&6; }
5349 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5350 echo "$as_me: error: invalid value of canonical host" >&2;}
5351 { (exit 1); exit 1; }; };;
5354 ac_save_IFS=$IFS; IFS='-'
5360 # Remember, the first character of IFS is used to create $*,
5361 # except with old shells:
5364 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5368 *cygwin* ) CYGWIN=yes;;
5372 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5378 HAVE_SUN_OS_FALSE='#'
5380 HAVE_SUN_OS_TRUE='#'
5383 cat >>confdefs.h <<\_ACEOF
5384 #define HAVE_SUN_OS 1
5392 HAVE_SUN_OS_FALSE='#'
5394 HAVE_SUN_OS_TRUE='#'
5399 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5405 HAVE_OSF1_OS_FALSE='#'
5407 HAVE_OSF1_OS_TRUE='#'
5410 cat >>confdefs.h <<\_ACEOF
5411 #define HAVE_OSF1_OS 1
5419 HAVE_OSF1_OS_FALSE='#'
5421 HAVE_OSF1_OS_TRUE='#'
5426 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5432 HAVE_AIX_OS_FALSE='#'
5434 HAVE_AIX_OS_TRUE='#'
5437 cat >>confdefs.h <<\_ACEOF
5438 #define HAVE_AIX_OS 1
5446 HAVE_AIX_OS_FALSE='#'
5448 HAVE_AIX_OS_TRUE='#'
5453 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5459 HAVE_HPUX_OS_FALSE='#'
5461 HAVE_HPUX_OS_TRUE='#'
5464 cat >>confdefs.h <<\_ACEOF
5465 #define HAVE_HPUX_OS 1
5473 HAVE_HPUX_OS_FALSE='#'
5475 HAVE_HPUX_OS_TRUE='#'
5480 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5486 HAVE_LINUX_OS_FALSE='#'
5488 HAVE_LINUX_OS_TRUE='#'
5489 HAVE_LINUX_OS_FALSE=
5491 cat >>confdefs.h <<\_ACEOF
5492 #define HAVE_LINUX_OS 1
5500 HAVE_LINUX_OS_FALSE='#'
5502 HAVE_LINUX_OS_TRUE='#'
5503 HAVE_LINUX_OS_FALSE=
5507 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5512 HAVE_FREEBSD_OS_TRUE=
5513 HAVE_FREEBSD_OS_FALSE='#'
5515 HAVE_FREEBSD_OS_TRUE='#'
5516 HAVE_FREEBSD_OS_FALSE=
5518 cat >>confdefs.h <<\_ACEOF
5519 #define HAVE_FREEBSD_OS 1
5526 HAVE_FREEBSD_OS_TRUE=
5527 HAVE_FREEBSD_OS_FALSE='#'
5529 HAVE_FREEBSD_OS_TRUE='#'
5530 HAVE_FREEBSD_OS_FALSE=
5534 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5539 HAVE_NETBSD_OS_TRUE=
5540 HAVE_NETBSD_OS_FALSE='#'
5542 HAVE_NETBSD_OS_TRUE='#'
5543 HAVE_NETBSD_OS_FALSE=
5545 cat >>confdefs.h <<\_ACEOF
5546 #define HAVE_NETBSD_OS 1
5553 HAVE_NETBSD_OS_TRUE=
5554 HAVE_NETBSD_OS_FALSE='#'
5556 HAVE_NETBSD_OS_TRUE='#'
5557 HAVE_NETBSD_OS_FALSE=
5561 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5566 HAVE_OPENBSD_OS_TRUE=
5567 HAVE_OPENBSD_OS_FALSE='#'
5569 HAVE_OPENBSD_OS_TRUE='#'
5570 HAVE_OPENBSD_OS_FALSE=
5572 cat >>confdefs.h <<\_ACEOF
5573 #define HAVE_OPENBSD_OS 1
5580 HAVE_OPENBSD_OS_TRUE=
5581 HAVE_OPENBSD_OS_FALSE='#'
5583 HAVE_OPENBSD_OS_TRUE='#'
5584 HAVE_OPENBSD_OS_FALSE=
5588 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5594 HAVE_BSDI_OS_FALSE='#'
5596 HAVE_BSDI_OS_TRUE='#'
5599 cat >>confdefs.h <<\_ACEOF
5600 #define HAVE_BSDI_OS 1
5608 HAVE_BSDI_OS_FALSE='#'
5610 HAVE_BSDI_OS_TRUE='#'
5615 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5621 HAVE_SGI_OS_FALSE='#'
5623 HAVE_SGI_OS_TRUE='#'
5626 cat >>confdefs.h <<\_ACEOF
5627 #define HAVE_SGI_OS 1
5635 HAVE_SGI_OS_FALSE='#'
5637 HAVE_SGI_OS_TRUE='#'
5642 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5648 HAVE_IRIX_OS_FALSE='#'
5650 HAVE_IRIX_OS_TRUE='#'
5653 cat >>confdefs.h <<\_ACEOF
5654 #define HAVE_IRIX_OS 1
5662 HAVE_IRIX_OS_FALSE='#'
5664 HAVE_IRIX_OS_TRUE='#'
5669 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5674 HAVE_DARWIN_OS_TRUE=
5675 HAVE_DARWIN_OS_FALSE='#'
5677 HAVE_DARWIN_OS_TRUE='#'
5678 HAVE_DARWIN_OS_FALSE=
5680 cat >>confdefs.h <<\_ACEOF
5681 #define HAVE_DARWIN_OS 1
5688 HAVE_DARWIN_OS_TRUE=
5689 HAVE_DARWIN_OS_FALSE='#'
5691 HAVE_DARWIN_OS_TRUE='#'
5692 HAVE_DARWIN_OS_FALSE=
5697 # -----------------------------------------------------------
5698 # ----------------------------------------------------------
5699 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5700 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5701 if test "x$DISTNAME" != "x"
5703 echo "distname set to $DISTNAME"
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5707 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5710 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5713 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5716 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5719 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5722 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5725 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5728 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5731 elif test -f /etc/SuSE-release
5734 elif test -d /etc/SuSEconfig
5737 elif test -f /etc/mandrake-release
5740 elif test -f /etc/whitebox-release
5743 elif test -f /etc/redhat-release
5746 elif test -f /etc/gentoo-release
5749 elif test -f /etc/debian_version
5752 elif test -f /etc/slackware-version
5755 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5758 elif test -f /etc/engarde-version
5761 elif test "$CYGWIN" = yes
5764 cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_CYGWIN 1
5771 { echo "$as_me:$LINENO: result: done" >&5
5772 echo "${ECHO_T}done" >&6; }
5775 # --------------------------------------------------
5776 # Suppport for gettext (translations)
5777 # By default, $datadir is ${prefix}/share
5778 # --------------------------------------------------
5779 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5781 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5782 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 cat >conftest.make <<\_ACEOF
5788 @echo '@@@%%%=$(MAKE)=@@@%%%'
5790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5791 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5793 eval ac_cv_prog_make_${ac_make}_set=yes;;
5795 eval ac_cv_prog_make_${ac_make}_set=no;;
5799 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5800 { echo "$as_me:$LINENO: result: yes" >&5
5801 echo "${ECHO_T}yes" >&6; }
5804 { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5806 SET_MAKE="MAKE=${MAKE-make}"
5812 if test -n "$ac_aux_dir"; then
5813 case "$ac_aux_dir" in
5814 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5815 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5818 if test -z "$MKINSTALLDIRS"; then
5819 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5824 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5825 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5826 # Check whether --enable-nls was given.
5827 if test "${enable_nls+set}" = set; then
5828 enableval=$enable_nls; USE_NLS=$enableval
5833 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5834 echo "${ECHO_T}$USE_NLS" >&6; }
5841 # Prepare PATH_SEPARATOR.
5842 # The user is always right.
5843 if test "${PATH_SEPARATOR+set}" != set; then
5844 echo "#! /bin/sh" >conf$$.sh
5845 echo "exit 0" >>conf$$.sh
5847 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5855 # Find out how to test for executable files. Don't use a zero-byte file,
5856 # as systems may use methods other than mode bits to determine executability.
5857 cat >conf$$.file <<_ASEOF
5861 chmod +x conf$$.file
5862 if test -x conf$$.file >/dev/null 2>&1; then
5863 ac_executable_p="test -x"
5865 ac_executable_p="test -f"
5869 # Extract the first word of "msgfmt", so it can be a program name with args.
5870 set dummy msgfmt; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_MSGFMT+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5881 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5882 for ac_dir in $PATH; do
5884 test -z "$ac_dir" && ac_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5887 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5888 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5889 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5890 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5897 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5901 MSGFMT="$ac_cv_path_MSGFMT"
5902 if test "$MSGFMT" != ":"; then
5903 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5904 echo "${ECHO_T}$MSGFMT" >&6; }
5906 { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5910 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5911 set dummy gmsgfmt; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5941 GMSGFMT=$ac_cv_path_GMSGFMT
5942 if test -n "$GMSGFMT"; then
5943 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5944 echo "${ECHO_T}$GMSGFMT" >&6; }
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5953 # Prepare PATH_SEPARATOR.
5954 # The user is always right.
5955 if test "${PATH_SEPARATOR+set}" != set; then
5956 echo "#! /bin/sh" >conf$$.sh
5957 echo "exit 0" >>conf$$.sh
5959 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5967 # Find out how to test for executable files. Don't use a zero-byte file,
5968 # as systems may use methods other than mode bits to determine executability.
5969 cat >conf$$.file <<_ASEOF
5973 chmod +x conf$$.file
5974 if test -x conf$$.file >/dev/null 2>&1; then
5975 ac_executable_p="test -x"
5977 ac_executable_p="test -f"
5981 # Extract the first word of "xgettext", so it can be a program name with args.
5982 set dummy xgettext; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5993 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5994 for ac_dir in $PATH; do
5996 test -z "$ac_dir" && ac_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5999 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6000 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6001 (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
6002 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6009 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6013 XGETTEXT="$ac_cv_path_XGETTEXT"
6014 if test "$XGETTEXT" != ":"; then
6015 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6016 echo "${ECHO_T}$XGETTEXT" >&6; }
6018 { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6025 # Prepare PATH_SEPARATOR.
6026 # The user is always right.
6027 if test "${PATH_SEPARATOR+set}" != set; then
6028 echo "#! /bin/sh" >conf$$.sh
6029 echo "exit 0" >>conf$$.sh
6031 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6039 # Find out how to test for executable files. Don't use a zero-byte file,
6040 # as systems may use methods other than mode bits to determine executability.
6041 cat >conf$$.file <<_ASEOF
6045 chmod +x conf$$.file
6046 if test -x conf$$.file >/dev/null 2>&1; then
6047 ac_executable_p="test -x"
6049 ac_executable_p="test -f"
6053 # Extract the first word of "msgmerge", so it can be a program name with args.
6054 set dummy msgmerge; ac_word=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6065 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6066 for ac_dir in $PATH; do
6068 test -z "$ac_dir" && ac_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6071 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6072 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6073 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6080 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6084 MSGMERGE="$ac_cv_path_MSGMERGE"
6085 if test "$MSGMERGE" != ":"; then
6086 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6087 echo "${ECHO_T}$MSGMERGE" >&6; }
6089 { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }
6094 if test "$GMSGFMT" != ":"; then
6095 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6096 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6099 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6100 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6101 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6106 if test "$XGETTEXT" != ":"; then
6107 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6108 (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
6111 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6112 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6118 ac_config_commands="$ac_config_commands default-1"
6122 if test "X$prefix" = "XNONE"; then
6123 acl_final_prefix="$ac_default_prefix"
6125 acl_final_prefix="$prefix"
6127 if test "X$exec_prefix" = "XNONE"; then
6128 acl_final_exec_prefix='${prefix}'
6130 acl_final_exec_prefix="$exec_prefix"
6132 acl_save_prefix="$prefix"
6133 prefix="$acl_final_prefix"
6134 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6135 prefix="$acl_save_prefix"
6138 # Check whether --with-gnu-ld was given.
6139 if test "${with_gnu_ld+set}" = set; then
6140 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6145 # Prepare PATH_SEPARATOR.
6146 # The user is always right.
6147 if test "${PATH_SEPARATOR+set}" != set; then
6148 echo "#! /bin/sh" >conf$$.sh
6149 echo "exit 0" >>conf$$.sh
6151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6159 if test "$GCC" = yes; then
6160 # Check if gcc -print-prog-name=ld gives a path.
6161 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6162 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6165 # gcc leaves a trailing carriage return which upsets mingw
6166 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6168 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6171 # Accept absolute paths.
6172 [\\/]* | [A-Za-z]:[\\/]*)
6173 re_direlt='/[^/][^/]*/\.\./'
6174 # Canonicalize the path of ld
6175 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6176 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6177 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6179 test -z "$LD" && LD="$ac_prog"
6182 # If it fails, then pretend we aren't using GCC.
6186 # If it is relative, then search for the first ld in PATH.
6190 elif test "$with_gnu_ld" = yes; then
6191 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6192 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6194 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6195 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6197 if test "${acl_cv_path_LD+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 if test -z "$LD"; then
6201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6202 for ac_dir in $PATH; do
6203 test -z "$ac_dir" && ac_dir=.
6204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6205 acl_cv_path_LD="$ac_dir/$ac_prog"
6206 # Check to see if the program is GNU ld. I'd rather use --version,
6207 # but apparently some GNU ld's only accept -v.
6208 # Break only if it was the GNU/non-GNU ld that we prefer.
6209 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6210 *GNU* | *'with BFD'*)
6211 test "$with_gnu_ld" != no && break ;;
6213 test "$with_gnu_ld" != yes && break ;;
6219 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6223 LD="$acl_cv_path_LD"
6224 if test -n "$LD"; then
6225 { echo "$as_me:$LINENO: result: $LD" >&5
6226 echo "${ECHO_T}$LD" >&6; }
6228 { echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6; }
6231 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6232 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6233 { (exit 1); exit 1; }; }
6234 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6235 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6236 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6240 case `$LD -v 2>&1 </dev/null` in
6241 *GNU* | *'with BFD'*)
6242 acl_cv_prog_gnu_ld=yes ;;
6244 acl_cv_prog_gnu_ld=no ;;
6247 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6248 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6249 with_gnu_ld=$acl_cv_prog_gnu_ld
6254 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6255 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6256 if test "${acl_cv_rpath+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6261 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6267 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6268 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6270 libext="$acl_cv_libext"
6271 shlibext="$acl_cv_shlibext"
6272 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6273 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6274 hardcode_direct="$acl_cv_hardcode_direct"
6275 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6276 # Check whether --enable-rpath was given.
6277 if test "${enable_rpath+set}" = set; then
6278 enableval=$enable_rpath; :
6292 acl_save_prefix="$prefix"
6293 prefix="$acl_final_prefix"
6294 acl_save_exec_prefix="$exec_prefix"
6295 exec_prefix="$acl_final_exec_prefix"
6297 eval additional_includedir=\"$includedir\"
6298 eval additional_libdir=\"$libdir\"
6300 exec_prefix="$acl_save_exec_prefix"
6301 prefix="$acl_save_prefix"
6304 # Check whether --with-libiconv-prefix was given.
6305 if test "${with_libiconv_prefix+set}" = set; then
6306 withval=$with_libiconv_prefix;
6307 if test "X$withval" = "Xno"; then
6310 if test "X$withval" = "X"; then
6312 acl_save_prefix="$prefix"
6313 prefix="$acl_final_prefix"
6314 acl_save_exec_prefix="$exec_prefix"
6315 exec_prefix="$acl_final_exec_prefix"
6317 eval additional_includedir=\"$includedir\"
6318 eval additional_libdir=\"$libdir\"
6320 exec_prefix="$acl_save_exec_prefix"
6321 prefix="$acl_save_prefix"
6324 additional_includedir="$withval/include"
6325 additional_libdir="$withval/lib"
6336 names_already_handled=
6337 names_next_round='iconv '
6338 while test -n "$names_next_round"; do
6339 names_this_round="$names_next_round"
6341 for name in $names_this_round; do
6343 for n in $names_already_handled; do
6344 if test "$n" = "$name"; then
6349 if test -z "$already_handled"; then
6350 names_already_handled="$names_already_handled $name"
6351 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6352 eval value=\"\$HAVE_LIB$uppername\"
6353 if test -n "$value"; then
6354 if test "$value" = yes; then
6355 eval value=\"\$LIB$uppername\"
6356 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6357 eval value=\"\$LTLIB$uppername\"
6358 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6367 if test $use_additional = yes; then
6368 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6369 found_dir="$additional_libdir"
6370 found_so="$additional_libdir/lib$name.$shlibext"
6371 if test -f "$additional_libdir/lib$name.la"; then
6372 found_la="$additional_libdir/lib$name.la"
6375 if test -f "$additional_libdir/lib$name.$libext"; then
6376 found_dir="$additional_libdir"
6377 found_a="$additional_libdir/lib$name.$libext"
6378 if test -f "$additional_libdir/lib$name.la"; then
6379 found_la="$additional_libdir/lib$name.la"
6384 if test "X$found_dir" = "X"; then
6385 for x in $LDFLAGS $LTLIBICONV; do
6387 acl_save_prefix="$prefix"
6388 prefix="$acl_final_prefix"
6389 acl_save_exec_prefix="$exec_prefix"
6390 exec_prefix="$acl_final_exec_prefix"
6392 exec_prefix="$acl_save_exec_prefix"
6393 prefix="$acl_save_prefix"
6397 dir=`echo "X$x" | sed -e 's/^X-L//'`
6398 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6400 found_so="$dir/lib$name.$shlibext"
6401 if test -f "$dir/lib$name.la"; then
6402 found_la="$dir/lib$name.la"
6405 if test -f "$dir/lib$name.$libext"; then
6407 found_a="$dir/lib$name.$libext"
6408 if test -f "$dir/lib$name.la"; then
6409 found_la="$dir/lib$name.la"
6415 if test "X$found_dir" != "X"; then
6420 if test "X$found_dir" != "X"; then
6421 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6422 if test "X$found_so" != "X"; then
6423 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6424 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6427 for x in $ltrpathdirs; do
6428 if test "X$x" = "X$found_dir"; then
6433 if test -z "$haveit"; then
6434 ltrpathdirs="$ltrpathdirs $found_dir"
6436 if test "$hardcode_direct" = yes; then
6437 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6439 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6442 for x in $rpathdirs; do
6443 if test "X$x" = "X$found_dir"; then
6448 if test -z "$haveit"; then
6449 rpathdirs="$rpathdirs $found_dir"
6453 for x in $LDFLAGS $LIBICONV; do
6455 acl_save_prefix="$prefix"
6456 prefix="$acl_final_prefix"
6457 acl_save_exec_prefix="$exec_prefix"
6458 exec_prefix="$acl_final_exec_prefix"
6460 exec_prefix="$acl_save_exec_prefix"
6461 prefix="$acl_save_prefix"
6463 if test "X$x" = "X-L$found_dir"; then
6468 if test -z "$haveit"; then
6469 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6471 if test "$hardcode_minus_L" != no; then
6472 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6474 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6480 if test "X$found_a" != "X"; then
6481 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6483 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6486 additional_includedir=
6487 case "$found_dir" in
6489 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6490 additional_includedir="$basedir/include"
6493 if test "X$additional_includedir" != "X"; then
6494 if test "X$additional_includedir" != "X/usr/include"; then
6496 if test "X$additional_includedir" = "X/usr/local/include"; then
6497 if test -n "$GCC"; then
6499 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6503 if test -z "$haveit"; then
6504 for x in $CPPFLAGS $INCICONV; do
6506 acl_save_prefix="$prefix"
6507 prefix="$acl_final_prefix"
6508 acl_save_exec_prefix="$exec_prefix"
6509 exec_prefix="$acl_final_exec_prefix"
6511 exec_prefix="$acl_save_exec_prefix"
6512 prefix="$acl_save_prefix"
6514 if test "X$x" = "X-I$additional_includedir"; then
6519 if test -z "$haveit"; then
6520 if test -d "$additional_includedir"; then
6521 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6527 if test -n "$found_la"; then
6528 save_libdir="$libdir"
6530 */* | *\\*) . "$found_la" ;;
6531 *) . "./$found_la" ;;
6533 libdir="$save_libdir"
6534 for dep in $dependency_libs; do
6537 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6538 if test "X$additional_libdir" != "X/usr/lib"; then
6540 if test "X$additional_libdir" = "X/usr/local/lib"; then
6541 if test -n "$GCC"; then
6543 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6547 if test -z "$haveit"; then
6549 for x in $LDFLAGS $LIBICONV; do
6551 acl_save_prefix="$prefix"
6552 prefix="$acl_final_prefix"
6553 acl_save_exec_prefix="$exec_prefix"
6554 exec_prefix="$acl_final_exec_prefix"
6556 exec_prefix="$acl_save_exec_prefix"
6557 prefix="$acl_save_prefix"
6559 if test "X$x" = "X-L$additional_libdir"; then
6564 if test -z "$haveit"; then
6565 if test -d "$additional_libdir"; then
6566 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6570 for x in $LDFLAGS $LTLIBICONV; do
6572 acl_save_prefix="$prefix"
6573 prefix="$acl_final_prefix"
6574 acl_save_exec_prefix="$exec_prefix"
6575 exec_prefix="$acl_final_exec_prefix"
6577 exec_prefix="$acl_save_exec_prefix"
6578 prefix="$acl_save_prefix"
6580 if test "X$x" = "X-L$additional_libdir"; then
6585 if test -z "$haveit"; then
6586 if test -d "$additional_libdir"; then
6587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6594 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6595 if test "$enable_rpath" != no; then
6597 for x in $rpathdirs; do
6598 if test "X$x" = "X$dir"; then
6603 if test -z "$haveit"; then
6604 rpathdirs="$rpathdirs $dir"
6607 for x in $ltrpathdirs; do
6608 if test "X$x" = "X$dir"; then
6613 if test -z "$haveit"; then
6614 ltrpathdirs="$ltrpathdirs $dir"
6619 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6622 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6625 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6632 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6639 if test "X$rpathdirs" != "X"; then
6640 if test -n "$hardcode_libdir_separator"; then
6642 for found_dir in $rpathdirs; do
6643 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6645 acl_save_libdir="$libdir"
6647 eval flag=\"$hardcode_libdir_flag_spec\"
6648 libdir="$acl_save_libdir"
6649 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6651 for found_dir in $rpathdirs; do
6652 acl_save_libdir="$libdir"
6654 eval flag=\"$hardcode_libdir_flag_spec\"
6655 libdir="$acl_save_libdir"
6656 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6660 if test "X$ltrpathdirs" != "X"; then
6661 for found_dir in $ltrpathdirs; do
6662 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6683 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6684 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6685 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 gt_save_CPPFLAGS="$CPPFLAGS"
6689 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6690 gt_save_LIBS="$LIBS"
6691 LIBS="$LIBS -framework CoreFoundation"
6692 cat >conftest.$ac_ext <<_ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <CFPreferences.h>
6702 CFPreferencesCopyAppValue(NULL, NULL)
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_link") 2>conftest.er1
6716 grep -v '^ *+' conftest.er1 >conftest.err
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6722 { (case "(($ac_try" in
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_try") 2>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; } &&
6731 { ac_try='test -s conftest$ac_exeext'
6732 { (case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_try") 2>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; }; then
6741 gt_cv_func_CFPreferencesCopyAppValue=yes
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6746 gt_cv_func_CFPreferencesCopyAppValue=no
6749 rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6751 CPPFLAGS="$gt_save_CPPFLAGS"
6752 LIBS="$gt_save_LIBS"
6754 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6755 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6756 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6763 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6764 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6765 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 gt_save_CPPFLAGS="$CPPFLAGS"
6769 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6770 gt_save_LIBS="$LIBS"
6771 LIBS="$LIBS -framework CoreFoundation"
6772 cat >conftest.$ac_ext <<_ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 #include <CFLocale.h>
6782 CFLocaleCopyCurrent();
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (ac_try="$ac_link"
6790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791 *) ac_try_echo=$ac_try;;
6793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6794 (eval "$ac_link") 2>conftest.er1
6796 grep -v '^ *+' conftest.er1 >conftest.err
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6802 { (case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_try") 2>&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; } &&
6811 { ac_try='test -s conftest$ac_exeext'
6812 { (case "(($ac_try" in
6813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817 (eval "$ac_try") 2>&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 gt_cv_func_CFLocaleCopyCurrent=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 gt_cv_func_CFLocaleCopyCurrent=no
6829 rm -f core conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
6831 CPPFLAGS="$gt_save_CPPFLAGS"
6832 LIBS="$gt_save_LIBS"
6834 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6835 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6836 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6838 cat >>confdefs.h <<\_ACEOF
6839 #define HAVE_CFLOCALECOPYCURRENT 1
6844 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6845 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6851 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6852 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6853 # Check whether --enable-nls was given.
6854 if test "${enable_nls+set}" = set; then
6855 enableval=$enable_nls; USE_NLS=$enableval
6860 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6861 echo "${ECHO_T}$USE_NLS" >&6; }
6870 if test "$USE_NLS" = "yes"; then
6871 gt_use_preinstalled_gnugettext=no
6878 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6879 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6880 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 cat >conftest.$ac_ext <<_ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 #include <libintl.h>
6890 extern int _nl_msg_cat_cntr;
6891 extern int *_nl_domain_bindings;
6895 bindtextdomain ("", "");
6896 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_link") 2>conftest.er1
6910 grep -v '^ *+' conftest.er1 >conftest.err
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } &&
6915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6916 { (case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_try") 2>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; } &&
6925 { ac_try='test -s conftest$ac_exeext'
6926 { (case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931 (eval "$ac_try") 2>&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 gt_cv_func_gnugettext1_libc=yes
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 gt_cv_func_gnugettext1_libc=no
6943 rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6946 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6947 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6949 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6955 am_save_CPPFLAGS="$CPPFLAGS"
6957 for element in $INCICONV; do
6959 for x in $CPPFLAGS; do
6961 acl_save_prefix="$prefix"
6962 prefix="$acl_final_prefix"
6963 acl_save_exec_prefix="$exec_prefix"
6964 exec_prefix="$acl_final_exec_prefix"
6966 exec_prefix="$acl_save_exec_prefix"
6967 prefix="$acl_save_prefix"
6969 if test "X$x" = "X$element"; then
6974 if test -z "$haveit"; then
6975 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6980 { echo "$as_me:$LINENO: checking for iconv" >&5
6981 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6982 if test "${am_cv_func_iconv+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 am_cv_func_iconv="no, consider installing GNU libiconv"
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6999 iconv_t cd = iconv_open("","");
7000 iconv(cd,NULL,NULL,NULL,NULL);
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_link") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7021 { (case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_try") 2>&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest$ac_exeext'
7031 { (case "(($ac_try" in
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036 (eval "$ac_try") 2>&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 am_cv_func_iconv=yes
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7048 rm -f core conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050 if test "$am_cv_func_iconv" != yes; then
7051 am_save_LIBS="$LIBS"
7052 LIBS="$LIBS $LIBICONV"
7053 cat >conftest.$ac_ext <<_ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7064 iconv_t cd = iconv_open("","");
7065 iconv(cd,NULL,NULL,NULL,NULL);
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (ac_try="$ac_link"
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_link") 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7086 { (case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_try") 2>&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7095 { ac_try='test -s conftest$ac_exeext'
7096 { (case "(($ac_try" in
7097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098 *) ac_try_echo=$ac_try;;
7100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101 (eval "$ac_try") 2>&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7106 am_cv_func_iconv=yes
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7114 rm -f core conftest.err conftest.$ac_objext \
7115 conftest$ac_exeext conftest.$ac_ext
7116 LIBS="$am_save_LIBS"
7120 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7121 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7122 if test "$am_cv_func_iconv" = yes; then
7124 cat >>confdefs.h <<\_ACEOF
7125 #define HAVE_ICONV 1
7129 if test "$am_cv_lib_iconv" = yes; then
7130 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7131 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7132 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7133 echo "${ECHO_T}$LIBICONV" >&6; }
7135 CPPFLAGS="$am_save_CPPFLAGS"
7147 acl_save_prefix="$prefix"
7148 prefix="$acl_final_prefix"
7149 acl_save_exec_prefix="$exec_prefix"
7150 exec_prefix="$acl_final_exec_prefix"
7152 eval additional_includedir=\"$includedir\"
7153 eval additional_libdir=\"$libdir\"
7155 exec_prefix="$acl_save_exec_prefix"
7156 prefix="$acl_save_prefix"
7159 # Check whether --with-libintl-prefix was given.
7160 if test "${with_libintl_prefix+set}" = set; then
7161 withval=$with_libintl_prefix;
7162 if test "X$withval" = "Xno"; then
7165 if test "X$withval" = "X"; then
7167 acl_save_prefix="$prefix"
7168 prefix="$acl_final_prefix"
7169 acl_save_exec_prefix="$exec_prefix"
7170 exec_prefix="$acl_final_exec_prefix"
7172 eval additional_includedir=\"$includedir\"
7173 eval additional_libdir=\"$libdir\"
7175 exec_prefix="$acl_save_exec_prefix"
7176 prefix="$acl_save_prefix"
7179 additional_includedir="$withval/include"
7180 additional_libdir="$withval/lib"
7191 names_already_handled=
7192 names_next_round='intl '
7193 while test -n "$names_next_round"; do
7194 names_this_round="$names_next_round"
7196 for name in $names_this_round; do
7198 for n in $names_already_handled; do
7199 if test "$n" = "$name"; then
7204 if test -z "$already_handled"; then
7205 names_already_handled="$names_already_handled $name"
7206 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7207 eval value=\"\$HAVE_LIB$uppername\"
7208 if test -n "$value"; then
7209 if test "$value" = yes; then
7210 eval value=\"\$LIB$uppername\"
7211 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7212 eval value=\"\$LTLIB$uppername\"
7213 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7222 if test $use_additional = yes; then
7223 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7224 found_dir="$additional_libdir"
7225 found_so="$additional_libdir/lib$name.$shlibext"
7226 if test -f "$additional_libdir/lib$name.la"; then
7227 found_la="$additional_libdir/lib$name.la"
7230 if test -f "$additional_libdir/lib$name.$libext"; then
7231 found_dir="$additional_libdir"
7232 found_a="$additional_libdir/lib$name.$libext"
7233 if test -f "$additional_libdir/lib$name.la"; then
7234 found_la="$additional_libdir/lib$name.la"
7239 if test "X$found_dir" = "X"; then
7240 for x in $LDFLAGS $LTLIBINTL; do
7242 acl_save_prefix="$prefix"
7243 prefix="$acl_final_prefix"
7244 acl_save_exec_prefix="$exec_prefix"
7245 exec_prefix="$acl_final_exec_prefix"
7247 exec_prefix="$acl_save_exec_prefix"
7248 prefix="$acl_save_prefix"
7252 dir=`echo "X$x" | sed -e 's/^X-L//'`
7253 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7255 found_so="$dir/lib$name.$shlibext"
7256 if test -f "$dir/lib$name.la"; then
7257 found_la="$dir/lib$name.la"
7260 if test -f "$dir/lib$name.$libext"; then
7262 found_a="$dir/lib$name.$libext"
7263 if test -f "$dir/lib$name.la"; then
7264 found_la="$dir/lib$name.la"
7270 if test "X$found_dir" != "X"; then
7275 if test "X$found_dir" != "X"; then
7276 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7277 if test "X$found_so" != "X"; then
7278 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7279 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7282 for x in $ltrpathdirs; do
7283 if test "X$x" = "X$found_dir"; then
7288 if test -z "$haveit"; then
7289 ltrpathdirs="$ltrpathdirs $found_dir"
7291 if test "$hardcode_direct" = yes; then
7292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7294 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7295 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7297 for x in $rpathdirs; do
7298 if test "X$x" = "X$found_dir"; then
7303 if test -z "$haveit"; then
7304 rpathdirs="$rpathdirs $found_dir"
7308 for x in $LDFLAGS $LIBINTL; do
7310 acl_save_prefix="$prefix"
7311 prefix="$acl_final_prefix"
7312 acl_save_exec_prefix="$exec_prefix"
7313 exec_prefix="$acl_final_exec_prefix"
7315 exec_prefix="$acl_save_exec_prefix"
7316 prefix="$acl_save_prefix"
7318 if test "X$x" = "X-L$found_dir"; then
7323 if test -z "$haveit"; then
7324 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7326 if test "$hardcode_minus_L" != no; then
7327 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7329 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7335 if test "X$found_a" != "X"; then
7336 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7338 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7341 additional_includedir=
7342 case "$found_dir" in
7344 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7345 additional_includedir="$basedir/include"
7348 if test "X$additional_includedir" != "X"; then
7349 if test "X$additional_includedir" != "X/usr/include"; then
7351 if test "X$additional_includedir" = "X/usr/local/include"; then
7352 if test -n "$GCC"; then
7354 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7358 if test -z "$haveit"; then
7359 for x in $CPPFLAGS $INCINTL; do
7361 acl_save_prefix="$prefix"
7362 prefix="$acl_final_prefix"
7363 acl_save_exec_prefix="$exec_prefix"
7364 exec_prefix="$acl_final_exec_prefix"
7366 exec_prefix="$acl_save_exec_prefix"
7367 prefix="$acl_save_prefix"
7369 if test "X$x" = "X-I$additional_includedir"; then
7374 if test -z "$haveit"; then
7375 if test -d "$additional_includedir"; then
7376 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7382 if test -n "$found_la"; then
7383 save_libdir="$libdir"
7385 */* | *\\*) . "$found_la" ;;
7386 *) . "./$found_la" ;;
7388 libdir="$save_libdir"
7389 for dep in $dependency_libs; do
7392 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7393 if test "X$additional_libdir" != "X/usr/lib"; then
7395 if test "X$additional_libdir" = "X/usr/local/lib"; then
7396 if test -n "$GCC"; then
7398 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7402 if test -z "$haveit"; then
7404 for x in $LDFLAGS $LIBINTL; do
7406 acl_save_prefix="$prefix"
7407 prefix="$acl_final_prefix"
7408 acl_save_exec_prefix="$exec_prefix"
7409 exec_prefix="$acl_final_exec_prefix"
7411 exec_prefix="$acl_save_exec_prefix"
7412 prefix="$acl_save_prefix"
7414 if test "X$x" = "X-L$additional_libdir"; then
7419 if test -z "$haveit"; then
7420 if test -d "$additional_libdir"; then
7421 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7425 for x in $LDFLAGS $LTLIBINTL; do
7427 acl_save_prefix="$prefix"
7428 prefix="$acl_final_prefix"
7429 acl_save_exec_prefix="$exec_prefix"
7430 exec_prefix="$acl_final_exec_prefix"
7432 exec_prefix="$acl_save_exec_prefix"
7433 prefix="$acl_save_prefix"
7435 if test "X$x" = "X-L$additional_libdir"; then
7440 if test -z "$haveit"; then
7441 if test -d "$additional_libdir"; then
7442 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7449 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7450 if test "$enable_rpath" != no; then
7452 for x in $rpathdirs; do
7453 if test "X$x" = "X$dir"; then
7458 if test -z "$haveit"; then
7459 rpathdirs="$rpathdirs $dir"
7462 for x in $ltrpathdirs; do
7463 if test "X$x" = "X$dir"; then
7468 if test -z "$haveit"; then
7469 ltrpathdirs="$ltrpathdirs $dir"
7474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7480 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7481 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7487 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7488 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7494 if test "X$rpathdirs" != "X"; then
7495 if test -n "$hardcode_libdir_separator"; then
7497 for found_dir in $rpathdirs; do
7498 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7500 acl_save_libdir="$libdir"
7502 eval flag=\"$hardcode_libdir_flag_spec\"
7503 libdir="$acl_save_libdir"
7504 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7506 for found_dir in $rpathdirs; do
7507 acl_save_libdir="$libdir"
7509 eval flag=\"$hardcode_libdir_flag_spec\"
7510 libdir="$acl_save_libdir"
7511 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7515 if test "X$ltrpathdirs" != "X"; then
7516 for found_dir in $ltrpathdirs; do
7517 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7521 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7522 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7523 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 gt_save_CPPFLAGS="$CPPFLAGS"
7527 CPPFLAGS="$CPPFLAGS $INCINTL"
7528 gt_save_LIBS="$LIBS"
7529 LIBS="$LIBS $LIBINTL"
7530 cat >conftest.$ac_ext <<_ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 #include <libintl.h>
7537 extern int _nl_msg_cat_cntr;
7542 const char *_nl_expand_alias (const char *);
7546 bindtextdomain ("", "");
7547 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (ac_try="$ac_link"
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_link") 2>conftest.er1
7561 grep -v '^ *+' conftest.er1 >conftest.err
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7567 { (case "(($ac_try" in
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_try") 2>&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try='test -s conftest$ac_exeext'
7577 { (case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_try") 2>&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 gt_cv_func_gnugettext1_libintl=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 gt_cv_func_gnugettext1_libintl=no
7594 rm -f core conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
7596 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7597 LIBS="$LIBS $LIBICONV"
7598 cat >conftest.$ac_ext <<_ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 #include <libintl.h>
7605 extern int _nl_msg_cat_cntr;
7610 const char *_nl_expand_alias (const char *);
7614 bindtextdomain ("", "");
7615 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_link") 2>conftest.er1
7629 grep -v '^ *+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635 { (case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_try") 2>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest$ac_exeext'
7645 { (case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_try") 2>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 LIBINTL="$LIBINTL $LIBICONV"
7655 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7656 gt_cv_func_gnugettext1_libintl=yes
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7665 rm -f core conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7668 CPPFLAGS="$gt_save_CPPFLAGS"
7669 LIBS="$gt_save_LIBS"
7671 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7672 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7675 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7676 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7677 && test "$PACKAGE" != gettext-runtime \
7678 && test "$PACKAGE" != gettext-tools; }; then
7679 gt_use_preinstalled_gnugettext=yes
7688 if test -n "$INTL_MACOSX_LIBS"; then
7689 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7690 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7691 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7692 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7696 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7697 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define ENABLE_NLS 1
7708 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7709 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7710 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7711 echo "${ECHO_T}$USE_NLS" >&6; }
7712 if test "$USE_NLS" = "yes"; then
7713 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7714 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7715 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7716 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7717 gt_source="external libintl"
7722 gt_source="included intl directory"
7724 { echo "$as_me:$LINENO: result: $gt_source" >&5
7725 echo "${ECHO_T}$gt_source" >&6; }
7728 if test "$USE_NLS" = "yes"; then
7730 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7731 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7732 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7733 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7734 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7735 echo "${ECHO_T}$LIBINTL" >&6; }
7737 for element in $INCINTL; do
7739 for x in $CPPFLAGS; do
7741 acl_save_prefix="$prefix"
7742 prefix="$acl_final_prefix"
7743 acl_save_exec_prefix="$exec_prefix"
7744 exec_prefix="$acl_final_exec_prefix"
7746 exec_prefix="$acl_save_exec_prefix"
7747 prefix="$acl_save_prefix"
7749 if test "X$x" = "X$element"; then
7754 if test -z "$haveit"; then
7755 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_GETTEXT 1
7767 cat >>confdefs.h <<\_ACEOF
7768 #define HAVE_DCGETTEXT 1
7785 if test x${prefix} = xNONE ; then
7786 if test `eval echo ${datadir}` = NONE/share ; then
7791 # ------------------------------------------------------------------
7792 # If the user has not set --prefix, we set our default to nothing.
7793 # In this case, if the user has not set --sysconfdir, we set it
7794 # to the package default of /etc/bacula. If either --prefix or
7795 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7796 # ------------------------------------------------------------------
7797 if test x${prefix} = xNONE ; then
7798 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7799 sysconfdir=/etc/bacula
7803 sysconfdir=`eval echo ${sysconfdir}`
7804 datadir=`eval echo ${datadir}`
7805 localedir=`eval echo ${datadir}/locale`
7806 cat >>confdefs.h <<_ACEOF
7807 #define LOCALEDIR "$localedir"
7810 cat >>confdefs.h <<_ACEOF
7811 #define SYSCONFDIR "$sysconfdir"
7815 # -------------------------------------------------------------------------
7816 # If the user has not set --exec-prefix, we default to ${prefix}
7817 # -------------------------------------------------------------------------
7818 if test x${exec_prefix} = xNONE ; then
7819 exec_prefix=${prefix}
7822 # ------------------------------------------------------------------
7823 # If the user has not set --sbindir, we set our default as /sbin
7824 # ------------------------------------------------------------------
7825 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7826 sbindir=${exec_prefix}/sbin
7828 sbindir=`eval echo ${sbindir}`
7830 # -------------------------------------------------------------------------
7831 # If the user has not set --mandir, we default to /usr/share/man
7832 # -------------------------------------------------------------------------
7833 if test x$mandir = x'${prefix}/man' ; then
7834 mandir=/usr/share/man
7838 # ------------------------------------------------------------------
7839 # All list of languages for which a translation exist. Each
7840 # language is separated by a space.
7841 # ------------------------------------------------------------------
7844 for ac_prog in msgfmt
7846 # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850 if test "${ac_cv_path_MSGFMT+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7865 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 MSGFMT=$ac_cv_path_MSGFMT
7877 if test -n "$MSGFMT"; then
7878 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7879 echo "${ECHO_T}$MSGFMT" >&6; }
7881 { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7886 test -n "$MSGFMT" && break
7888 test -n "$MSGFMT" || MSGFMT="no"
7890 if test "$MSGFMT" = "no"
7892 echo 'msgfmt program not found, disabling NLS !'
7894 USE_INCLUDED_LIBINTL=no
7897 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7898 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7899 if test "${ac_cv_gnu_library_2+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7909 #include <features.h>
7910 #ifdef __GNU_LIBRARY__
7911 #if (__GLIBC__ >= 2)
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7919 ac_cv_gnu_library_2=yes
7921 ac_cv_gnu_library_2=no
7928 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7929 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7931 GLIBC2="$ac_cv_gnu_library_2"
7935 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7936 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7937 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 ac_check_lib_save_LIBS=$LIBS
7941 LIBS="-lcposix $LIBS"
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7949 /* Override any GCC internal prototype to avoid an error.
7950 Use char because int might match the return type of a GCC
7951 builtin and then its argument prototype would still apply. */
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (ac_try="$ac_link"
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_link") 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7979 { (case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_try") 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; } &&
7988 { ac_try='test -s conftest$ac_exeext'
7989 { (case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_try") 2>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_cv_lib_cposix_strerror=yes
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 ac_cv_lib_cposix_strerror=no
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8008 LIBS=$ac_check_lib_save_LIBS
8010 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8011 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8012 if test $ac_cv_lib_cposix_strerror = yes; then
8013 LIBS="$LIBS -lcposix"
8018 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8019 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8020 if test "${ac_cv_header_stdc+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 cat >conftest.$ac_ext <<_ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8051 grep -v '^ *+' conftest.er1 >conftest.err
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8057 { (case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_try") 2>&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; } &&
8066 { ac_try='test -s conftest.$ac_objext'
8067 { (case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_try") 2>&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_header_stdc=yes
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_cv_header_stdc=no
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 if test $ac_cv_header_stdc = yes; then
8087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098 $EGREP "memchr" >/dev/null 2>&1; then
8101 ac_cv_header_stdc=no
8107 if test $ac_cv_header_stdc = yes; then
8108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119 $EGREP "free" >/dev/null 2>&1; then
8122 ac_cv_header_stdc=no
8128 if test $ac_cv_header_stdc = yes; then
8129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130 if test "$cross_compiling" = yes; then
8133 cat >conftest.$ac_ext <<_ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8141 #if ((' ' & 0x0FF) == 0x020)
8142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8145 # define ISLOWER(c) \
8146 (('a' <= (c) && (c) <= 'i') \
8147 || ('j' <= (c) && (c) <= 'r') \
8148 || ('s' <= (c) && (c) <= 'z'))
8149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8157 for (i = 0; i < 256; i++)
8158 if (XOR (islower (i), ISLOWER (i))
8159 || toupper (i) != TOUPPER (i))
8164 rm -f conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8175 { (case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_try") 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8186 echo "$as_me: program exited with status $ac_status" >&5
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8191 ac_cv_header_stdc=no
8193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8201 if test $ac_cv_header_stdc = yes; then
8203 cat >>confdefs.h <<\_ACEOF
8204 #define STDC_HEADERS 1
8209 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8210 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8211 if test "${ac_cv_c_const+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8224 /* FIXME: Include the comments suggested by Paul. */
8226 /* Ultrix mips cc rejects this. */
8227 typedef int charset[2];
8229 /* SunOS 4.1.1 cc rejects this. */
8230 char const *const *ccp;
8232 /* NEC SVR4.0.2 mips cc rejects this. */
8233 struct point {int x, y;};
8234 static struct point const zero = {0,0};
8235 /* AIX XL C 1.02.0.0 rejects this.
8236 It does not let you subtract one const X* pointer from another in
8237 an arm of an if-expression whose if-part is not a constant
8239 const char *g = "string";
8240 ccp = &g + (g ? g-g : 0);
8241 /* HPUX 7.0 cc rejects these. */
8244 ccp = (char const *const *) p;
8245 { /* SCO 3.2v4 cc rejects this. */
8247 char const *s = 0 ? (char *) 0 : (char const *) 0;
8252 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8254 const int *foo = &x[0];
8257 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8258 typedef const int *iptr;
8262 { /* AIX XL C 1.02.0.0 rejects this saying
8263 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8264 struct s { int j; const int *ap[3]; };
8265 struct s *b; b->j = 5;
8267 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8271 return !x[0] && !zero.x;
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_compile") 2>conftest.er1
8287 grep -v '^ *+' conftest.er1 >conftest.err
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try='test -s conftest.$ac_objext'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8314 echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8323 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8324 if test $ac_cv_c_const = no; then
8326 cat >>confdefs.h <<\_ACEOF
8333 { echo "$as_me:$LINENO: checking for signed" >&5
8334 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8335 if test "${bh_cv_c_signed+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_compile") 2>conftest.er1
8362 grep -v '^ *+' conftest.er1 >conftest.err
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; } &&
8377 { ac_try='test -s conftest.$ac_objext'
8378 { (case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_try") 2>&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8398 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8399 if test $bh_cv_c_signed = no; then
8401 cat >>confdefs.h <<\_ACEOF
8407 { echo "$as_me:$LINENO: checking for inline" >&5
8408 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8409 if test "${ac_cv_c_inline+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 for ac_kw in inline __inline__ __inline; do
8414 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8422 static $ac_kw foo_t static_foo () {return 0; }
8423 $ac_kw foo_t foo () {return 0; }
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442 { (case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_try") 2>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest.$ac_objext'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_try") 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_c_inline=$ac_kw
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 test "$ac_cv_c_inline" != no && break
8474 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8475 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8478 case $ac_cv_c_inline in
8481 case $ac_cv_c_inline in
8483 *) ac_val=$ac_cv_c_inline;;
8485 cat >>confdefs.h <<_ACEOF
8487 #define inline $ac_val
8493 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8503 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8504 inttypes.h stdint.h unistd.h
8506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 $ac_includes_default
8520 #include <$ac_header>
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_compile") 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_try") 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 eval "$as_ac_Header=yes"
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 eval "$as_ac_Header=no"
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 ac_res=`eval echo '${'$as_ac_Header'}'`
8567 { echo "$as_me:$LINENO: result: $ac_res" >&5
8568 echo "${ECHO_T}$ac_res" >&6; }
8569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8570 cat >>confdefs.h <<_ACEOF
8571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8579 { echo "$as_me:$LINENO: checking for off_t" >&5
8580 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8581 if test "${ac_cv_type_off_t+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 $ac_includes_default
8591 typedef off_t ac__type_new_;
8595 if ((ac__type_new_ *) 0)
8597 if (sizeof (ac__type_new_))
8603 rm -f conftest.$ac_objext
8604 if { (ac_try="$ac_compile"
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_compile") 2>conftest.er1
8612 grep -v '^ *+' conftest.er1 >conftest.err
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest.$ac_objext'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_type_off_t=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8648 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8649 if test $ac_cv_type_off_t = yes; then
8653 cat >>confdefs.h <<_ACEOF
8654 #define off_t long int
8659 { echo "$as_me:$LINENO: checking for size_t" >&5
8660 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8661 if test "${ac_cv_type_size_t+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 cat >conftest.$ac_ext <<_ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 $ac_includes_default
8671 typedef size_t ac__type_new_;
8675 if ((ac__type_new_ *) 0)
8677 if (sizeof (ac__type_new_))
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8698 { (case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_try") 2>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; } &&
8707 { ac_try='test -s conftest.$ac_objext'
8708 { (case "(($ac_try" in
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_try") 2>&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_type_size_t=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_cv_type_size_t=no
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8728 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8729 if test $ac_cv_type_size_t = yes; then
8733 cat >>confdefs.h <<_ACEOF
8734 #define size_t unsigned int
8740 { echo "$as_me:$LINENO: checking for long long" >&5
8741 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8742 if test "${ac_cv_type_long_long+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 long long ll = 1LL; int i = 63;
8755 long long llmax = (long long) -1;
8756 return ll << i | ll >> i | llmax / ll | llmax % ll;
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (ac_try="$ac_link"
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_link") 2>conftest.er1
8770 grep -v '^ *+' conftest.er1 >conftest.err
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } &&
8775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8776 { (case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_try") 2>&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; } &&
8785 { ac_try='test -s conftest$ac_exeext'
8786 { (case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_try") 2>&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_cv_type_long_long=yes
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_type_long_long=no
8803 rm -f core conftest.err conftest.$ac_objext \
8804 conftest$ac_exeext conftest.$ac_ext
8806 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8807 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8808 if test $ac_cv_type_long_long = yes; then
8810 cat >>confdefs.h <<\_ACEOF
8811 #define HAVE_LONG_LONG 1
8817 { echo "$as_me:$LINENO: checking for long double" >&5
8818 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8819 if test "${gt_cv_c_long_double+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 if test "$GCC" = yes; then
8823 gt_cv_c_long_double=yes
8825 cat >conftest.$ac_ext <<_ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8832 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8833 long double foo = 0.0;
8834 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8835 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_compile") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest.$ac_objext'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 gt_cv_c_long_double=yes
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 gt_cv_c_long_double=no
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8891 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8892 if test $gt_cv_c_long_double = yes; then
8894 cat >>confdefs.h <<\_ACEOF
8895 #define HAVE_LONG_DOUBLE 1
8901 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8902 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8903 if test "${gt_cv_c_wchar_t+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 wchar_t foo = (wchar_t)'\0';
8922 rm -f conftest.$ac_objext
8923 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8931 grep -v '^ *+' conftest.er1 >conftest.err
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8937 { (case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_try") 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest.$ac_objext'
8947 { (case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_try") 2>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8967 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8968 if test $gt_cv_c_wchar_t = yes; then
8970 cat >>confdefs.h <<\_ACEOF
8971 #define HAVE_WCHAR_T 1
8977 { echo "$as_me:$LINENO: checking for wint_t" >&5
8978 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8979 if test "${gt_cv_c_wint_t+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8989 wint_t foo = (wchar_t)'\0';
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
9007 grep -v '^ *+' conftest.er1 >conftest.err
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } &&
9012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; } &&
9022 { ac_try='test -s conftest.$ac_objext'
9023 { (case "(($ac_try" in
9024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025 *) ac_try_echo=$ac_try;;
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028 (eval "$ac_try") 2>&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9043 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9044 if test $gt_cv_c_wint_t = yes; then
9046 cat >>confdefs.h <<\_ACEOF
9047 #define HAVE_WINT_T 1
9053 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9054 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9055 if test "${gl_cv_header_inttypes_h+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 cat >conftest.$ac_ext <<_ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 #include <sys/types.h>
9065 #include <inttypes.h>
9069 uintmax_t i = (uintmax_t) -1;
9074 rm -f conftest.$ac_objext
9075 if { (ac_try="$ac_compile"
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9089 { (case "(($ac_try" in
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094 (eval "$ac_try") 2>&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; } &&
9098 { ac_try='test -s conftest.$ac_objext'
9099 { (case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_try") 2>&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 gl_cv_header_inttypes_h=yes
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 gl_cv_header_inttypes_h=no
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9119 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9120 if test $gl_cv_header_inttypes_h = yes; then
9122 cat >>confdefs.h <<_ACEOF
9123 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9129 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9130 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9131 if test "${gl_cv_header_stdint_h+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 #include <sys/types.h>
9145 uintmax_t i = (uintmax_t) -1;
9150 rm -f conftest.$ac_objext
9151 if { (ac_try="$ac_compile"
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157 (eval "$ac_compile") 2>conftest.er1
9159 grep -v '^ *+' conftest.er1 >conftest.err
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9165 { (case "(($ac_try" in
9166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167 *) ac_try_echo=$ac_try;;
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170 (eval "$ac_try") 2>&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; } &&
9174 { ac_try='test -s conftest.$ac_objext'
9175 { (case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_try") 2>&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 gl_cv_header_stdint_h=yes
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 gl_cv_header_stdint_h=no
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9195 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9196 if test $gl_cv_header_stdint_h = yes; then
9198 cat >>confdefs.h <<_ACEOF
9199 #define HAVE_STDINT_H_WITH_UINTMAX 1
9207 { echo "$as_me:$LINENO: checking for intmax_t" >&5
9208 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9209 if test "${gt_cv_c_intmax_t+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9221 #if HAVE_STDINT_H_WITH_UINTMAX
9224 #if HAVE_INTTYPES_H_WITH_UINTMAX
9225 #include <inttypes.h>
9236 rm -f conftest.$ac_objext
9237 if { (ac_try="$ac_compile"
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_compile") 2>conftest.er1
9245 grep -v '^ *+' conftest.er1 >conftest.err
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9251 { (case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_try") 2>&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest.$ac_objext'
9261 { (case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_try") 2>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 gt_cv_c_intmax_t=yes
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9281 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9282 if test $gt_cv_c_intmax_t = yes; then
9284 cat >>confdefs.h <<\_ACEOF
9285 #define HAVE_INTMAX_T 1
9292 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9293 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9294 if test "${gt_cv_func_printf_posix+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 if test "$cross_compiling" = yes; then
9300 cat >conftest.$ac_ext <<_ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9307 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9313 $EGREP "notposix" >/dev/null 2>&1; then
9314 gt_cv_func_printf_posix="guessing no"
9316 gt_cv_func_printf_posix="guessing yes"
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9331 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9332 dollar expansion (possibly an autoconf bug). */
9333 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9334 static char buf[100];
9337 sprintf (buf, format, 33, 55);
9338 return (strcmp (buf, "55 33") != 0);
9341 rm -f conftest$ac_exeext
9342 if { (ac_try="$ac_link"
9344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345 *) ac_try_echo=$ac_try;;
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_link") 2>&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9352 { (case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_try") 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 gt_cv_func_printf_posix=yes
9363 echo "$as_me: program exited with status $ac_status" >&5
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9368 gt_cv_func_printf_posix=no
9370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9376 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9377 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9378 case $gt_cv_func_printf_posix in
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_POSIX_PRINTF 1
9388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9389 # for constant arguments. Useless!
9390 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9391 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9392 if test "${ac_cv_working_alloca_h+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9405 char *p = (char *) alloca (2 * sizeof (int));
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (ac_try="$ac_link"
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418 (eval "$ac_link") 2>conftest.er1
9420 grep -v '^ *+' conftest.er1 >conftest.err
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9426 { (case "(($ac_try" in
9427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 (eval "$ac_try") 2>&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try='test -s conftest$ac_exeext'
9436 { (case "(($ac_try" in
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_try") 2>&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 ac_cv_working_alloca_h=yes
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_cv_working_alloca_h=no
9453 rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9456 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9457 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9458 if test $ac_cv_working_alloca_h = yes; then
9460 cat >>confdefs.h <<\_ACEOF
9461 #define HAVE_ALLOCA_H 1
9466 { echo "$as_me:$LINENO: checking for alloca" >&5
9467 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9468 if test "${ac_cv_func_alloca_works+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 cat >conftest.$ac_ext <<_ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9478 # define alloca __builtin_alloca
9481 # include <malloc.h>
9482 # define alloca _alloca
9485 # include <alloca.h>
9490 # ifndef alloca /* predefined by HP cc +Olibcalls */
9501 char *p = (char *) alloca (1);
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (ac_try="$ac_link"
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_link") 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9522 { (case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_try") 2>&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest$ac_exeext'
9532 { (case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_try") 2>&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_func_alloca_works=yes
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ac_cv_func_alloca_works=no
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9552 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9553 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9555 if test $ac_cv_func_alloca_works = yes; then
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_ALLOCA 1
9562 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9563 # that cause trouble. Some versions do not even contain alloca or
9564 # contain a buggy version. If you still want to use their alloca,
9565 # use ar to extract alloca.o from them instead of compiling alloca.c.
9567 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9569 cat >>confdefs.h <<\_ACEOF
9574 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9575 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9576 if test "${ac_cv_os_cray+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #if defined CRAY && ! defined CRAY2
9592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9593 $EGREP "webecray" >/dev/null 2>&1; then
9601 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9602 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9603 if test $ac_cv_os_cray = yes; then
9604 for ac_func in _getb67 GETB67 getb67; do
9605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 cat >conftest.$ac_ext <<_ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9619 #define $ac_func innocuous_$ac_func
9621 /* System header to define __stub macros and hopefully few prototypes,
9622 which can conflict with char $ac_func (); below.
9623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624 <limits.h> exists even on freestanding compilers. */
9627 # include <limits.h>
9629 # include <assert.h>
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9641 /* The GNU C library defines this for functions which it implements
9642 to always fail with ENOSYS. Some functions are actually named
9643 something starting with __ and the normal name is an alias. */
9644 #if defined __stub_$ac_func || defined __stub___$ac_func
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (ac_try="$ac_link"
9659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660 *) ac_try_echo=$ac_try;;
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_link") 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9671 { (case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_try") 2>&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest$ac_exeext'
9681 { (case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_try") 2>&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 eval "$as_ac_var=yes"
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 eval "$as_ac_var=no"
9698 rm -f core conftest.err conftest.$ac_objext \
9699 conftest$ac_exeext conftest.$ac_ext
9701 ac_res=`eval echo '${'$as_ac_var'}'`
9702 { echo "$as_me:$LINENO: result: $ac_res" >&5
9703 echo "${ECHO_T}$ac_res" >&6; }
9704 if test `eval echo '${'$as_ac_var'}'` = yes; then
9706 cat >>confdefs.h <<_ACEOF
9707 #define CRAY_STACKSEG_END $ac_func
9716 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9717 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9718 if test "${ac_cv_c_stack_direction+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 if test "$cross_compiling" = yes; then
9722 ac_cv_c_stack_direction=0
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 $ac_includes_default
9732 find_stack_direction ()
9734 static char *addr = 0;
9739 return find_stack_direction ();
9742 return (&dummy > addr) ? 1 : -1;
9748 return find_stack_direction () < 0;
9751 rm -f conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_link") 2>&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9762 { (case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_try") 2>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_c_stack_direction=1
9773 echo "$as_me: program exited with status $ac_status" >&5
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_c_stack_direction=-1
9780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9785 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9786 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9788 cat >>confdefs.h <<_ACEOF
9789 #define STACK_DIRECTION $ac_cv_c_stack_direction
9797 for ac_header in stdlib.h unistd.h
9799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 ac_res=`eval echo '${'$as_ac_Header'}'`
9807 { echo "$as_me:$LINENO: result: $ac_res" >&5
9808 echo "${ECHO_T}$ac_res" >&6; }
9810 # Is the header compilable?
9811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9819 $ac_includes_default
9820 #include <$ac_header>
9822 rm -f conftest.$ac_objext
9823 if { (ac_try="$ac_compile"
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_compile") 2>conftest.er1
9831 grep -v '^ *+' conftest.er1 >conftest.err
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest.$ac_objext'
9847 { (case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_try") 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_header_compiler=yes
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ac_header_compiler=no
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9866 echo "${ECHO_T}$ac_header_compiler" >&6; }
9868 # Is the header present?
9869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9871 cat >conftest.$ac_ext <<_ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 #include <$ac_header>
9879 if { (ac_try="$ac_cpp conftest.$ac_ext"
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } >/dev/null; then
9892 if test -s conftest.err; then
9893 ac_cpp_err=$ac_c_preproc_warn_flag
9894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9901 if test -z "$ac_cpp_err"; then
9902 ac_header_preproc=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_header_preproc=no
9910 rm -f conftest.err conftest.$ac_ext
9911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912 echo "${ECHO_T}$ac_header_preproc" >&6; }
9914 # So? What about this header?
9915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9921 ac_header_preproc=yes
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 eval "$as_ac_Header=\$ac_header_preproc"
9946 ac_res=`eval echo '${'$as_ac_Header'}'`
9947 { echo "$as_me:$LINENO: result: $ac_res" >&5
9948 echo "${ECHO_T}$ac_res" >&6; }
9951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9952 cat >>confdefs.h <<_ACEOF
9953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9961 for ac_func in getpagesize
9963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9977 #define $ac_func innocuous_$ac_func
9979 /* System header to define __stub macros and hopefully few prototypes,
9980 which can conflict with char $ac_func (); below.
9981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982 <limits.h> exists even on freestanding compilers. */
9985 # include <limits.h>
9987 # include <assert.h>
9992 /* Override any GCC internal prototype to avoid an error.
9993 Use char because int might match the return type of a GCC
9994 builtin and then its argument prototype would still apply. */
9999 /* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002 #if defined __stub_$ac_func || defined __stub___$ac_func
10009 return $ac_func ();
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>conftest.er1
10023 grep -v '^ *+' conftest.er1 >conftest.err
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10029 { (case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_try") 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_try") 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 eval "$as_ac_var=yes"
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10053 eval "$as_ac_var=no"
10056 rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10059 ac_res=`eval echo '${'$as_ac_var'}'`
10060 { echo "$as_me:$LINENO: result: $ac_res" >&5
10061 echo "${ECHO_T}$ac_res" >&6; }
10062 if test `eval echo '${'$as_ac_var'}'` = yes; then
10063 cat >>confdefs.h <<_ACEOF
10064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10070 { echo "$as_me:$LINENO: checking for working mmap" >&5
10071 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10072 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 if test "$cross_compiling" = yes; then
10076 ac_cv_func_mmap_fixed_mapped=no
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 /* malloc might have been renamed as rpl_malloc. */
10088 /* Thanks to Mike Haertel and Jim Avera for this test.
10089 Here is a matrix of mmap possibilities:
10090 mmap private not fixed
10091 mmap private fixed at somewhere currently unmapped
10092 mmap private fixed at somewhere already mapped
10093 mmap shared not fixed
10094 mmap shared fixed at somewhere currently unmapped
10095 mmap shared fixed at somewhere already mapped
10096 For private mappings, we should verify that changes cannot be read()
10097 back from the file, nor mmap's back from the file at a different
10098 address. (There have been systems where private was not correctly
10099 implemented like the infamous i386 svr4.0, and systems where the
10100 VM page cache was not coherent with the file system buffer cache
10101 like early versions of FreeBSD and possibly contemporary NetBSD.)
10102 For shared mappings, we should conversely verify that changes get
10103 propagated back to all the places they're supposed to be.
10105 Grep wants private fixed already mapped.
10106 The main things grep needs to know about mmap are:
10107 * does it exist and is it safe to write into the mmap'd area
10108 * how to use it (BSD variants) */
10111 #include <sys/mman.h>
10113 #if !STDC_HEADERS && !HAVE_STDLIB_H
10117 /* This mess was copied from the GNU getpagesize.h. */
10118 #if !HAVE_GETPAGESIZE
10119 /* Assume that all systems that can run configure have sys/param.h. */
10120 # if !HAVE_SYS_PARAM_H
10121 # define HAVE_SYS_PARAM_H 1
10124 # ifdef _SC_PAGESIZE
10125 # define getpagesize() sysconf(_SC_PAGESIZE)
10126 # else /* no _SC_PAGESIZE */
10127 # if HAVE_SYS_PARAM_H
10128 # include <sys/param.h>
10129 # ifdef EXEC_PAGESIZE
10130 # define getpagesize() EXEC_PAGESIZE
10131 # else /* no EXEC_PAGESIZE */
10133 # define getpagesize() NBPG * CLSIZE
10136 # endif /* no CLSIZE */
10137 # else /* no NBPG */
10139 # define getpagesize() NBPC
10140 # else /* no NBPC */
10142 # define getpagesize() PAGESIZE
10143 # endif /* PAGESIZE */
10144 # endif /* no NBPC */
10145 # endif /* no NBPG */
10146 # endif /* no EXEC_PAGESIZE */
10147 # else /* no HAVE_SYS_PARAM_H */
10148 # define getpagesize() 8192 /* punt totally */
10149 # endif /* no HAVE_SYS_PARAM_H */
10150 # endif /* no _SC_PAGESIZE */
10152 #endif /* no HAVE_GETPAGESIZE */
10157 char *data, *data2, *data3;
10161 pagesize = getpagesize ();
10163 /* First, make a file with some known garbage in it. */
10164 data = (char *) malloc (pagesize);
10167 for (i = 0; i < pagesize; ++i)
10168 *(data + i) = rand ();
10170 fd = creat ("conftest.mmap", 0600);
10173 if (write (fd, data, pagesize) != pagesize)
10177 /* Next, try to mmap the file at a fixed address which already has
10178 something else allocated at it. If we can, also make sure that
10179 we see the same garbage. */
10180 fd = open ("conftest.mmap", O_RDWR);
10183 data2 = (char *) malloc (2 * pagesize);
10186 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10187 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10188 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10190 for (i = 0; i < pagesize; ++i)
10191 if (*(data + i) != *(data2 + i))
10194 /* Finally, make sure that changes to the mapped area do not
10195 percolate back to the file as seen by read(). (This is a bug on
10196 some variants of i386 svr4.0.) */
10197 for (i = 0; i < pagesize; ++i)
10198 *(data2 + i) = *(data2 + i) + 1;
10199 data3 = (char *) malloc (pagesize);
10202 if (read (fd, data3, pagesize) != pagesize)
10204 for (i = 0; i < pagesize; ++i)
10205 if (*(data + i) != *(data3 + i))
10211 rm -f conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_link") 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10222 { (case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_try") 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ac_cv_func_mmap_fixed_mapped=yes
10233 echo "$as_me: program exited with status $ac_status" >&5
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ( exit $ac_status )
10238 ac_cv_func_mmap_fixed_mapped=no
10240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10245 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10246 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10247 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10249 cat >>confdefs.h <<\_ACEOF
10250 #define HAVE_MMAP 1
10254 rm -f conftest.mmap
10257 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10258 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10259 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 cat >conftest.$ac_ext <<_ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10269 #include <features.h>
10270 #ifdef __GNU_LIBRARY__
10271 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10278 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10279 ac_cv_gnu_library_2_1=yes
10281 ac_cv_gnu_library_2_1=no
10288 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10289 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10291 GLIBC21="$ac_cv_gnu_library_2_1"
10296 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10297 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10298 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 if test "$cross_compiling" = yes; then
10304 # Guess based on the CPU.
10305 case "$host_cpu" in
10306 alpha* | i3456786 | m68k | s390*)
10307 gt_cv_int_divbyzero_sigfpe="guessing yes";;
10309 gt_cv_int_divbyzero_sigfpe="guessing no";;
10313 cat >conftest.$ac_ext <<_ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10320 #include <stdlib.h>
10321 #include <signal.h>
10325 sigfpe_handler (int sig)
10327 sigfpe_handler (sig) int sig;
10330 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
10331 exit (sig != SIGFPE);
10341 signal (SIGFPE, sigfpe_handler);
10342 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
10343 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10344 signal (SIGTRAP, sigfpe_handler);
10346 /* Linux/SPARC yields signal SIGILL. */
10347 #if defined (__sparc__) && defined (__linux__)
10348 signal (SIGILL, sigfpe_handler);
10357 rm -f conftest$ac_exeext
10358 if { (ac_try="$ac_link"
10359 case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_link") 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10368 { (case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_try") 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 gt_cv_int_divbyzero_sigfpe=yes
10379 echo "$as_me: program exited with status $ac_status" >&5
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 ( exit $ac_status )
10384 gt_cv_int_divbyzero_sigfpe=no
10386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10392 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10393 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10394 case "$gt_cv_int_divbyzero_sigfpe" in
10399 cat >>confdefs.h <<_ACEOF
10400 #define INTDIV0_RAISES_SIGFPE $value
10405 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10406 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10407 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 cat >conftest.$ac_ext <<_ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 unsigned long long ull = 1ULL; int i = 63;
10420 unsigned long long ullmax = (unsigned long long) -1;
10421 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (ac_try="$ac_link"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_link") 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10441 { (case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_try") 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_try") 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 ac_cv_type_unsigned_long_long=yes
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 ac_cv_type_unsigned_long_long=no
10468 rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10471 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10472 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10473 if test $ac_cv_type_unsigned_long_long = yes; then
10475 cat >>confdefs.h <<\_ACEOF
10476 #define HAVE_UNSIGNED_LONG_LONG 1
10484 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10486 test $ac_cv_type_unsigned_long_long = yes \
10487 && ac_type='unsigned long long' \
10488 || ac_type='unsigned long'
10490 cat >>confdefs.h <<_ACEOF
10491 #define uintmax_t $ac_type
10496 cat >>confdefs.h <<\_ACEOF
10497 #define HAVE_UINTMAX_T 1
10503 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10504 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10505 if test "${gt_cv_header_inttypes_h+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 #include <sys/types.h>
10516 #include <inttypes.h>
10525 rm -f conftest.$ac_objext
10526 if { (ac_try="$ac_compile"
10527 case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_compile") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10540 { (case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_try") 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; } &&
10549 { ac_try='test -s conftest.$ac_objext'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 gt_cv_header_inttypes_h=yes
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 gt_cv_header_inttypes_h=no
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10571 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10572 if test $gt_cv_header_inttypes_h = yes; then
10574 cat >>confdefs.h <<_ACEOF
10575 #define HAVE_INTTYPES_H 1
10582 if test $gt_cv_header_inttypes_h = yes; then
10583 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10584 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10585 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 cat >conftest.$ac_ext <<_ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 #include <inttypes.h>
10608 rm -f conftest.$ac_objext
10609 if { (ac_try="$ac_compile"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_compile") 2>conftest.er1
10617 grep -v '^ *+' conftest.er1 >conftest.err
10619 cat conftest.err >&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } &&
10622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10623 { (case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_try") 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try='test -s conftest.$ac_objext'
10633 { (case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_try") 2>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 gt_cv_inttypes_pri_broken=no
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 gt_cv_inttypes_pri_broken=yes
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10654 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10656 if test "$gt_cv_inttypes_pri_broken" = yes; then
10658 cat >>confdefs.h <<_ACEOF
10659 #define PRI_MACROS_BROKEN 1
10666 for ac_header in stdint.h
10668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 ac_res=`eval echo '${'$as_ac_Header'}'`
10676 { echo "$as_me:$LINENO: result: $ac_res" >&5
10677 echo "${ECHO_T}$ac_res" >&6; }
10679 # Is the header compilable?
10680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 $ac_includes_default
10689 #include <$ac_header>
10691 rm -f conftest.$ac_objext
10692 if { (ac_try="$ac_compile"
10693 case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_compile") 2>conftest.er1
10700 grep -v '^ *+' conftest.er1 >conftest.err
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10706 { (case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_try") 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest.$ac_objext'
10716 { (case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_try") 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_header_compiler=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_header_compiler=no
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10735 echo "${ECHO_T}$ac_header_compiler" >&6; }
10737 # Is the header present?
10738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <$ac_header>
10748 if { (ac_try="$ac_cpp conftest.$ac_ext"
10749 case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10756 grep -v '^ *+' conftest.er1 >conftest.err
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } >/dev/null; then
10761 if test -s conftest.err; then
10762 ac_cpp_err=$ac_c_preproc_warn_flag
10763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10770 if test -z "$ac_cpp_err"; then
10771 ac_header_preproc=yes
10773 echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10776 ac_header_preproc=no
10779 rm -f conftest.err conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10781 echo "${ECHO_T}$ac_header_preproc" >&6; }
10783 # So? What about this header?
10784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10790 ac_header_preproc=yes
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 eval "$as_ac_Header=\$ac_header_preproc"
10815 ac_res=`eval echo '${'$as_ac_Header'}'`
10816 { echo "$as_me:$LINENO: result: $ac_res" >&5
10817 echo "${ECHO_T}$ac_res" >&6; }
10820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10821 cat >>confdefs.h <<_ACEOF
10822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10829 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10830 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10832 cat >conftest.$ac_ext <<_ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10839 #include <limits.h>
10841 #include <stdint.h>
10848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10849 $EGREP "Found it" >/dev/null 2>&1; then
10854 if test -z "$result"; then
10855 if test "$cross_compiling" = yes; then
10856 # Depending upon the size, compute the lo and hi bounds.
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 #include <stddef.h>
10867 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10874 rm -f conftest.$ac_objext
10875 if { (ac_try="$ac_compile"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_compile") 2>conftest.er1
10883 grep -v '^ *+' conftest.er1 >conftest.err
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10889 { (case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_try") 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; } &&
10898 { ac_try='test -s conftest.$ac_objext'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10910 cat >conftest.$ac_ext <<_ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 #include <stddef.h>
10920 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_compile") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_try") 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_hi=$ac_mid; break
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 ac_lo=`expr $ac_mid + 1`
10967 if test $ac_lo -le $ac_mid; then
10971 ac_mid=`expr 2 '*' $ac_mid + 1`
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 cat >conftest.$ac_ext <<_ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 #include <stddef.h>
10990 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10997 rm -f conftest.$ac_objext
10998 if { (ac_try="$ac_compile"
10999 case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_compile") 2>conftest.er1
11006 grep -v '^ *+' conftest.er1 >conftest.err
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012 { (case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_try") 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest.$ac_objext'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 #include <stddef.h>
11043 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_compile") 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065 { (case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_try") 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; } &&
11074 { ac_try='test -s conftest.$ac_objext'
11075 { (case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_try") 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
11084 ac_lo=$ac_mid; break
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ac_hi=`expr '(' $ac_mid ')' - 1`
11090 if test $ac_mid -le $ac_hi; then
11094 ac_mid=`expr 2 '*' $ac_mid`
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100 echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11110 # Binary search between lo and hi bounds.
11111 while test "x$ac_lo" != "x$ac_hi"; do
11112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11113 cat >conftest.$ac_ext <<_ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119 #include <stddef.h>
11123 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11130 rm -f conftest.$ac_objext
11131 if { (ac_try="$ac_compile"
11132 case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_compile") 2>conftest.er1
11139 grep -v '^ *+' conftest.er1 >conftest.err
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } &&
11144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11145 { (case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_try") 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest.$ac_objext'
11155 { (case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_try") 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; }; then
11166 echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11169 ac_lo=`expr '(' $ac_mid ')' + 1`
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 ?*) res_hi=$ac_lo;;
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 #include <stddef.h>
11186 static long int longval () { return ~(size_t)0 / 10; }
11187 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11189 #include <stdlib.h>
11194 FILE *f = fopen ("conftest.val", "w");
11197 if ((~(size_t)0 / 10) < 0)
11199 long int i = longval ();
11200 if (i != (~(size_t)0 / 10))
11202 fprintf (f, "%ld\n", i);
11206 unsigned long int i = ulongval ();
11207 if (i != (~(size_t)0 / 10))
11209 fprintf (f, "%lu\n", i);
11211 return ferror (f) || fclose (f) != 0;
11217 rm -f conftest$ac_exeext
11218 if { (ac_try="$ac_link"
11219 case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_link") 2>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11228 { (case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_try") 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 res_hi=`cat conftest.val`
11239 echo "$as_me: program exited with status $ac_status" >&5
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11243 ( exit $ac_status )
11246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11249 if test "$cross_compiling" = yes; then
11250 # Depending upon the size, compute the lo and hi bounds.
11251 cat >conftest.$ac_ext <<_ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 #include <stddef.h>
11261 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11268 rm -f conftest.$ac_objext
11269 if { (ac_try="$ac_compile"
11270 case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_compile") 2>conftest.er1
11277 grep -v '^ *+' conftest.er1 >conftest.err
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_try") 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11304 cat >conftest.$ac_ext <<_ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <stddef.h>
11314 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11321 rm -f conftest.$ac_objext
11322 if { (ac_try="$ac_compile"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_compile") 2>conftest.er1
11330 grep -v '^ *+' conftest.er1 >conftest.err
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11336 { (case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_try") 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest.$ac_objext'
11346 { (case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_try") 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_hi=$ac_mid; break
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_lo=`expr $ac_mid + 1`
11361 if test $ac_lo -le $ac_mid; then
11365 ac_mid=`expr 2 '*' $ac_mid + 1`
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 cat >conftest.$ac_ext <<_ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 #include <stddef.h>
11384 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11427 cat >conftest.$ac_ext <<_ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <stddef.h>
11437 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11459 { (case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_try") 2>&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; } &&
11468 { ac_try='test -s conftest.$ac_objext'
11469 { (case "(($ac_try" in
11470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471 *) ac_try_echo=$ac_try;;
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474 (eval "$ac_try") 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 ac_lo=$ac_mid; break
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 ac_hi=`expr '(' $ac_mid ')' - 1`
11484 if test $ac_mid -le $ac_hi; then
11488 ac_mid=`expr 2 '*' $ac_mid`
11491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 # Binary search between lo and hi bounds.
11505 while test "x$ac_lo" != "x$ac_hi"; do
11506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <stddef.h>
11517 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11524 rm -f conftest.$ac_objext
11525 if { (ac_try="$ac_compile"
11526 case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_compile") 2>conftest.er1
11533 grep -v '^ *+' conftest.er1 >conftest.err
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
11538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11539 { (case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_try") 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_try") 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11563 ac_lo=`expr '(' $ac_mid ')' + 1`
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 ?*) res_lo=$ac_lo;;
11573 cat >conftest.$ac_ext <<_ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 #include <stddef.h>
11580 static long int longval () { return ~(size_t)0 % 10; }
11581 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11583 #include <stdlib.h>
11588 FILE *f = fopen ("conftest.val", "w");
11591 if ((~(size_t)0 % 10) < 0)
11593 long int i = longval ();
11594 if (i != (~(size_t)0 % 10))
11596 fprintf (f, "%ld\n", i);
11600 unsigned long int i = ulongval ();
11601 if (i != (~(size_t)0 % 10))
11603 fprintf (f, "%lu\n", i);
11605 return ferror (f) || fclose (f) != 0;
11611 rm -f conftest$ac_exeext
11612 if { (ac_try="$ac_link"
11613 case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_link") 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 res_lo=`cat conftest.val`
11633 echo "$as_me: program exited with status $ac_status" >&5
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ( exit $ac_status )
11640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11643 if test "$cross_compiling" = yes; then
11644 # Depending upon the size, compute the lo and hi bounds.
11645 cat >conftest.$ac_ext <<_ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 #include <stddef.h>
11655 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11662 rm -f conftest.$ac_objext
11663 if { (ac_try="$ac_compile"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_compile") 2>conftest.er1
11671 grep -v '^ *+' conftest.er1 >conftest.err
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; } &&
11686 { ac_try='test -s conftest.$ac_objext'
11687 { (case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_try") 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11698 cat >conftest.$ac_ext <<_ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 #include <stddef.h>
11708 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11715 rm -f conftest.$ac_objext
11716 if { (ac_try="$ac_compile"
11717 case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_compile") 2>conftest.er1
11724 grep -v '^ *+' conftest.er1 >conftest.err
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11730 { (case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735 (eval "$ac_try") 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_try") 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 ac_hi=$ac_mid; break
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 ac_lo=`expr $ac_mid + 1`
11755 if test $ac_lo -le $ac_mid; then
11759 ac_mid=`expr 2 '*' $ac_mid + 1`
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 cat >conftest.$ac_ext <<_ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 #include <stddef.h>
11778 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_compile") 2>conftest.er1
11794 grep -v '^ *+' conftest.er1 >conftest.err
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11821 cat >conftest.$ac_ext <<_ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 #include <stddef.h>
11831 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11838 rm -f conftest.$ac_objext
11839 if { (ac_try="$ac_compile"
11840 case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11853 { (case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_try") 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_try") 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }; then
11872 ac_lo=$ac_mid; break
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ac_hi=`expr '(' $ac_mid ')' - 1`
11878 if test $ac_mid -le $ac_hi; then
11882 ac_mid=`expr 2 '*' $ac_mid`
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 # Binary search between lo and hi bounds.
11899 while test "x$ac_lo" != "x$ac_hi"; do
11900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 #include <stddef.h>
11911 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11918 rm -f conftest.$ac_objext
11919 if { (ac_try="$ac_compile"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_compile") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_lo=`expr '(' $ac_mid ')' + 1`
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963 ?*) fits_in_uint=$ac_lo;;
11967 cat >conftest.$ac_ext <<_ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <stddef.h>
11974 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11975 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11977 #include <stdlib.h>
11982 FILE *f = fopen ("conftest.val", "w");
11985 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11987 long int i = longval ();
11988 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11990 fprintf (f, "%ld\n", i);
11994 unsigned long int i = ulongval ();
11995 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11997 fprintf (f, "%lu\n", i);
11999 return ferror (f) || fclose (f) != 0;
12005 rm -f conftest$ac_exeext
12006 if { (ac_try="$ac_link"
12007 case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_link") 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 fits_in_uint=`cat conftest.val`
12027 echo "$as_me: program exited with status $ac_status" >&5
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ( exit $ac_status )
12034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12037 if test "$fits_in_uint" = 1; then
12038 cat >conftest.$ac_ext <<_ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12044 #include <stddef.h>
12046 extern unsigned long foo;
12056 rm -f conftest.$ac_objext
12057 if { (ac_try="$ac_compile"
12058 case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_compile") 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_try") 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest.$ac_objext'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 if test -z "$result"; then
12101 if test "$fits_in_uint" = 1; then
12102 result="$res_hi$res_lo"U
12104 result="$res_hi$res_lo"UL
12107 result='~(size_t)0'
12110 { echo "$as_me:$LINENO: result: $result" >&5
12111 echo "${ECHO_T}$result" >&6; }
12112 if test "$result" != yes; then
12114 cat >>confdefs.h <<_ACEOF
12115 #define SIZE_MAX $result
12124 for ac_header in stdint.h
12126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 ac_res=`eval echo '${'$as_ac_Header'}'`
12134 { echo "$as_me:$LINENO: result: $ac_res" >&5
12135 echo "${ECHO_T}$ac_res" >&6; }
12137 # Is the header compilable?
12138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 $ac_includes_default
12147 #include <$ac_header>
12149 rm -f conftest.$ac_objext
12150 if { (ac_try="$ac_compile"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_compile") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest.$ac_objext'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_header_compiler=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_header_compiler=no
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12193 echo "${ECHO_T}$ac_header_compiler" >&6; }
12195 # Is the header present?
12196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 #include <$ac_header>
12206 if { (ac_try="$ac_cpp conftest.$ac_ext"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12214 grep -v '^ *+' conftest.er1 >conftest.err
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } >/dev/null; then
12219 if test -s conftest.err; then
12220 ac_cpp_err=$ac_c_preproc_warn_flag
12221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12228 if test -z "$ac_cpp_err"; then
12229 ac_header_preproc=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_header_preproc=no
12237 rm -f conftest.err conftest.$ac_ext
12238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12239 echo "${ECHO_T}$ac_header_preproc" >&6; }
12241 # So? What about this header?
12242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12248 ac_header_preproc=yes
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 eval "$as_ac_Header=\$ac_header_preproc"
12273 ac_res=`eval echo '${'$as_ac_Header'}'`
12274 { echo "$as_me:$LINENO: result: $ac_res" >&5
12275 echo "${ECHO_T}$ac_res" >&6; }
12278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12294 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12295 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12296 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 cat >conftest.$ac_ext <<_ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 $ac_includes_default
12306 typedef ptrdiff_t ac__type_new_;
12310 if ((ac__type_new_ *) 0)
12312 if (sizeof (ac__type_new_))
12318 rm -f conftest.$ac_objext
12319 if { (ac_try="$ac_compile"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_compile") 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12333 { (case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_try") 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest.$ac_objext'
12343 { (case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_try") 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_type_ptrdiff_t=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_cv_type_ptrdiff_t=no
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12363 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12364 if test $ac_cv_type_ptrdiff_t = yes; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define ptrdiff_t long
12385 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12386 stdlib.h string.h unistd.h sys/param.h
12388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 ac_res=`eval echo '${'$as_ac_Header'}'`
12396 { echo "$as_me:$LINENO: result: $ac_res" >&5
12397 echo "${ECHO_T}$ac_res" >&6; }
12399 # Is the header compilable?
12400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 $ac_includes_default
12409 #include <$ac_header>
12411 rm -f conftest.$ac_objext
12412 if { (ac_try="$ac_compile"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_compile") 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest.$ac_objext'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_header_compiler=yes
12447 echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12450 ac_header_compiler=no
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455 echo "${ECHO_T}$ac_header_compiler" >&6; }
12457 # Is the header present?
12458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12460 cat >conftest.$ac_ext <<_ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 #include <$ac_header>
12468 if { (ac_try="$ac_cpp conftest.$ac_ext"
12469 case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12476 grep -v '^ *+' conftest.er1 >conftest.err
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } >/dev/null; then
12481 if test -s conftest.err; then
12482 ac_cpp_err=$ac_c_preproc_warn_flag
12483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12490 if test -z "$ac_cpp_err"; then
12491 ac_header_preproc=yes
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 ac_header_preproc=no
12499 rm -f conftest.err conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12501 echo "${ECHO_T}$ac_header_preproc" >&6; }
12503 # So? What about this header?
12504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12510 ac_header_preproc=yes
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 eval "$as_ac_Header=\$ac_header_preproc"
12535 ac_res=`eval echo '${'$as_ac_Header'}'`
12536 { echo "$as_me:$LINENO: result: $ac_res" >&5
12537 echo "${ECHO_T}$ac_res" >&6; }
12540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12541 cat >>confdefs.h <<_ACEOF
12542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12572 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12573 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12574 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12591 #define $ac_func innocuous_$ac_func
12593 /* System header to define __stub macros and hopefully few prototypes,
12594 which can conflict with char $ac_func (); below.
12595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12596 <limits.h> exists even on freestanding compilers. */
12599 # include <limits.h>
12601 # include <assert.h>
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12613 /* The GNU C library defines this for functions which it implements
12614 to always fail with ENOSYS. Some functions are actually named
12615 something starting with __ and the normal name is an alias. */
12616 #if defined __stub_$ac_func || defined __stub___$ac_func
12623 return $ac_func ();
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_link") 2>conftest.er1
12637 grep -v '^ *+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_try") 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 eval "$as_ac_var=yes"
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 eval "$as_ac_var=no"
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12673 ac_res=`eval echo '${'$as_ac_var'}'`
12674 { echo "$as_me:$LINENO: result: $ac_res" >&5
12675 echo "${ECHO_T}$ac_res" >&6; }
12676 if test `eval echo '${'$as_ac_var'}'` = yes; then
12677 cat >>confdefs.h <<_ACEOF
12678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12686 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12687 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12688 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 cat >conftest.$ac_ext <<_ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12703 char *p = (char *) _snprintf;
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_compile") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12725 { (case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_try") 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest.$ac_objext'
12735 { (case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 ac_cv_have_decl__snprintf=yes
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_cv_have_decl__snprintf=no
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12755 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12756 if test $ac_cv_have_decl__snprintf = yes; then
12762 cat >>confdefs.h <<_ACEOF
12763 #define HAVE_DECL__SNPRINTF $gt_value
12768 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12769 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12770 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 cat >conftest.$ac_ext <<_ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12785 char *p = (char *) _snwprintf;
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
12801 grep -v '^ *+' conftest.er1 >conftest.err
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } &&
12806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12807 { (case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812 (eval "$ac_try") 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest.$ac_objext'
12817 { (case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_try") 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_cv_have_decl__snwprintf=yes
12828 echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12831 ac_cv_have_decl__snwprintf=no
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12837 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12838 if test $ac_cv_have_decl__snwprintf = yes; then
12844 cat >>confdefs.h <<_ACEOF
12845 #define HAVE_DECL__SNWPRINTF $gt_value
12851 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12852 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12853 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 cat >conftest.$ac_ext <<_ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12867 #ifndef feof_unlocked
12868 char *p = (char *) feof_unlocked;
12875 rm -f conftest.$ac_objext
12876 if { (ac_try="$ac_compile"
12877 case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_compile") 2>conftest.er1
12884 grep -v '^ *+' conftest.er1 >conftest.err
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } &&
12889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12890 { (case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_try") 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; } &&
12899 { ac_try='test -s conftest.$ac_objext'
12900 { (case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_try") 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_cv_have_decl_feof_unlocked=yes
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 ac_cv_have_decl_feof_unlocked=no
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12920 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12921 if test $ac_cv_have_decl_feof_unlocked = yes; then
12927 cat >>confdefs.h <<_ACEOF
12928 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12933 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12934 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12935 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 cat >conftest.$ac_ext <<_ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12949 #ifndef fgets_unlocked
12950 char *p = (char *) fgets_unlocked;
12957 rm -f conftest.$ac_objext
12958 if { (ac_try="$ac_compile"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_compile") 2>conftest.er1
12966 grep -v '^ *+' conftest.er1 >conftest.err
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12972 { (case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_try") 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest.$ac_objext'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_have_decl_fgets_unlocked=yes
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12996 ac_cv_have_decl_fgets_unlocked=no
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
13002 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
13003 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13015 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13016 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13017 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 cat >conftest.$ac_ext <<_ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13031 #ifndef getc_unlocked
13032 char *p = (char *) getc_unlocked;
13039 rm -f conftest.$ac_objext
13040 if { (ac_try="$ac_compile"
13041 case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_compile") 2>conftest.er1
13048 grep -v '^ *+' conftest.er1 >conftest.err
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13054 { (case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_try") 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest.$ac_objext'
13064 { (case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_try") 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 ac_cv_have_decl_getc_unlocked=yes
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 ac_cv_have_decl_getc_unlocked=no
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13084 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13085 if test $ac_cv_have_decl_getc_unlocked = yes; then
13091 cat >>confdefs.h <<_ACEOF
13092 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13097 case $gt_cv_func_printf_posix in
13098 *yes) HAVE_POSIX_PRINTF=1 ;;
13099 *) HAVE_POSIX_PRINTF=0 ;;
13102 if test "$ac_cv_func_asprintf" = yes; then
13108 if test "$ac_cv_func_snprintf" = yes; then
13114 if test "$ac_cv_func_wprintf" = yes; then
13126 am_save_CPPFLAGS="$CPPFLAGS"
13128 for element in $INCICONV; do
13130 for x in $CPPFLAGS; do
13132 acl_save_prefix="$prefix"
13133 prefix="$acl_final_prefix"
13134 acl_save_exec_prefix="$exec_prefix"
13135 exec_prefix="$acl_final_exec_prefix"
13137 exec_prefix="$acl_save_exec_prefix"
13138 prefix="$acl_save_prefix"
13140 if test "X$x" = "X$element"; then
13145 if test -z "$haveit"; then
13146 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13151 { echo "$as_me:$LINENO: checking for iconv" >&5
13152 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13153 if test "${am_cv_func_iconv+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 am_cv_func_iconv="no, consider installing GNU libiconv"
13159 cat >conftest.$ac_ext <<_ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13165 #include <stdlib.h>
13170 iconv_t cd = iconv_open("","");
13171 iconv(cd,NULL,NULL,NULL,NULL);
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_link") 2>conftest.er1
13186 grep -v '^ *+' conftest.er1 >conftest.err
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13192 { (case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_try") 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; } &&
13201 { ac_try='test -s conftest$ac_exeext'
13202 { (case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_try") 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 am_cv_func_iconv=yes
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13219 rm -f core conftest.err conftest.$ac_objext \
13220 conftest$ac_exeext conftest.$ac_ext
13221 if test "$am_cv_func_iconv" != yes; then
13222 am_save_LIBS="$LIBS"
13223 LIBS="$LIBS $LIBICONV"
13224 cat >conftest.$ac_ext <<_ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 #include <stdlib.h>
13235 iconv_t cd = iconv_open("","");
13236 iconv(cd,NULL,NULL,NULL,NULL);
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_link") 2>conftest.er1
13251 grep -v '^ *+' conftest.er1 >conftest.err
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13257 { (case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_try") 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest$ac_exeext'
13267 { (case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_try") 2>&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 am_cv_lib_iconv=yes
13277 am_cv_func_iconv=yes
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13285 rm -f core conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS="$am_save_LIBS"
13291 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13292 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13293 if test "$am_cv_func_iconv" = yes; then
13295 cat >>confdefs.h <<\_ACEOF
13296 #define HAVE_ICONV 1
13300 if test "$am_cv_lib_iconv" = yes; then
13301 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13302 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13303 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13304 echo "${ECHO_T}$LIBICONV" >&6; }
13306 CPPFLAGS="$am_save_CPPFLAGS"
13313 if test "$am_cv_func_iconv" = yes; then
13314 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13315 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13316 if test "${am_cv_proto_iconv+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13320 cat >conftest.$ac_ext <<_ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13327 #include <stdlib.h>
13333 #if defined(__STDC__) || defined(__cplusplus)
13334 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13347 rm -f conftest.$ac_objext
13348 if { (ac_try="$ac_compile"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_compile") 2>conftest.er1
13356 grep -v '^ *+' conftest.er1 >conftest.err
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13362 { (case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367 (eval "$ac_try") 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } &&
13371 { ac_try='test -s conftest.$ac_objext'
13372 { (case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 am_cv_proto_iconv_arg1=""
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 am_cv_proto_iconv_arg1="const"
13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390 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);"
13393 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13394 { echo "$as_me:$LINENO: result: ${ac_t:-
13395 }$am_cv_proto_iconv" >&5
13396 echo "${ECHO_T}${ac_t:-
13397 }$am_cv_proto_iconv" >&6; }
13399 cat >>confdefs.h <<_ACEOF
13400 #define ICONV_CONST $am_cv_proto_iconv_arg1
13406 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13407 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13408 if test "${am_cv_langinfo_codeset+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 cat >conftest.$ac_ext <<_ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 #include <langinfo.h>
13421 char* cs = nl_langinfo(CODESET);
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (ac_try="$ac_link"
13428 case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_link") 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13441 { (case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_try") 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest$ac_exeext'
13451 { (case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_try") 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 am_cv_langinfo_codeset=yes
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 am_cv_langinfo_codeset=no
13468 rm -f core conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13472 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13473 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13474 if test $am_cv_langinfo_codeset = yes; then
13476 cat >>confdefs.h <<\_ACEOF
13477 #define HAVE_LANGINFO_CODESET 1
13482 if test $ac_cv_header_locale_h = yes; then
13484 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13485 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13486 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 cat >conftest.$ac_ext <<_ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 #include <locale.h>
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (ac_try="$ac_link"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_link") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13519 { (case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_try") 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest$ac_exeext'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 gt_cv_val_LC_MESSAGES=yes
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 gt_cv_val_LC_MESSAGES=no
13546 rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13549 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13550 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13551 if test $gt_cv_val_LC_MESSAGES = yes; then
13553 cat >>confdefs.h <<\_ACEOF
13554 #define HAVE_LC_MESSAGES 1
13561 if test -n "$INTL_MACOSX_LIBS"; then
13562 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13565 for ac_prog in bison
13567 # Extract the first word of "$ac_prog", so it can be a program name with args.
13568 set dummy $ac_prog; ac_word=$2
13569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13571 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 if test -n "$INTLBISON"; then
13575 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13584 ac_cv_prog_INTLBISON="$ac_prog"
13585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 INTLBISON=$ac_cv_prog_INTLBISON
13595 if test -n "$INTLBISON"; then
13596 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13597 echo "${ECHO_T}$INTLBISON" >&6; }
13599 { echo "$as_me:$LINENO: result: no" >&5
13600 echo "${ECHO_T}no" >&6; }
13604 test -n "$INTLBISON" && break
13607 if test -z "$INTLBISON"; then
13610 { echo "$as_me:$LINENO: checking version of bison" >&5
13611 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13612 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13613 case $ac_prog_version in
13614 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13615 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13616 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13617 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13619 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13620 echo "${ECHO_T}$ac_prog_version" >&6; }
13622 if test $ac_verc_fail = yes; then
13641 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13642 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13643 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 gt_save_CPPFLAGS="$CPPFLAGS"
13647 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13648 gt_save_LIBS="$LIBS"
13649 LIBS="$LIBS -framework CoreFoundation"
13650 cat >conftest.$ac_ext <<_ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13656 #include <CFPreferences.h>
13660 CFPreferencesCopyAppValue(NULL, NULL)
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (ac_try="$ac_link"
13667 case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_link") 2>conftest.er1
13674 grep -v '^ *+' conftest.er1 >conftest.err
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } &&
13679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13680 { (case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_try") 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
13689 { ac_try='test -s conftest$ac_exeext'
13690 { (case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_try") 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 gt_cv_func_CFPreferencesCopyAppValue=yes
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13704 gt_cv_func_CFPreferencesCopyAppValue=no
13707 rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 CPPFLAGS="$gt_save_CPPFLAGS"
13710 LIBS="$gt_save_LIBS"
13712 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13713 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13714 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13716 cat >>confdefs.h <<\_ACEOF
13717 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13721 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13722 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13723 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 gt_save_CPPFLAGS="$CPPFLAGS"
13727 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13728 gt_save_LIBS="$LIBS"
13729 LIBS="$LIBS -framework CoreFoundation"
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <CFLocale.h>
13740 CFLocaleCopyCurrent();
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (ac_try="$ac_link"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_link") 2>conftest.er1
13754 grep -v '^ *+' conftest.er1 >conftest.err
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } &&
13759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; } &&
13769 { ac_try='test -s conftest$ac_exeext'
13770 { (case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_try") 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 gt_cv_func_CFLocaleCopyCurrent=yes
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13784 gt_cv_func_CFLocaleCopyCurrent=no
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 CPPFLAGS="$gt_save_CPPFLAGS"
13790 LIBS="$gt_save_LIBS"
13792 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13793 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13794 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_CFLOCALECOPYCURRENT 1
13802 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13803 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13809 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13810 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13811 # Check whether --enable-nls was given.
13812 if test "${enable_nls+set}" = set; then
13813 enableval=$enable_nls; USE_NLS=$enableval
13818 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13819 echo "${ECHO_T}$USE_NLS" >&6; }
13824 BUILD_INCLUDED_LIBINTL=no
13825 USE_INCLUDED_LIBINTL=no
13831 if test "$USE_NLS" = "yes"; then
13832 gt_use_preinstalled_gnugettext=no
13834 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13835 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13837 # Check whether --with-included-gettext was given.
13838 if test "${with_included_gettext+set}" = set; then
13839 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13841 nls_cv_force_use_gnu_gettext=no
13844 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13845 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13847 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13848 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13855 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13856 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13857 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 cat >conftest.$ac_ext <<_ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #include <libintl.h>
13867 extern int _nl_msg_cat_cntr;
13868 extern int *_nl_domain_bindings;
13872 bindtextdomain ("", "");
13873 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (ac_try="$ac_link"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_link") 2>conftest.er1
13887 grep -v '^ *+' conftest.er1 >conftest.err
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s 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
13912 gt_cv_func_gnugettext1_libc=yes
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13917 gt_cv_func_gnugettext1_libc=no
13920 rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13923 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13924 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13926 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13932 acl_save_prefix="$prefix"
13933 prefix="$acl_final_prefix"
13934 acl_save_exec_prefix="$exec_prefix"
13935 exec_prefix="$acl_final_exec_prefix"
13937 eval additional_includedir=\"$includedir\"
13938 eval additional_libdir=\"$libdir\"
13940 exec_prefix="$acl_save_exec_prefix"
13941 prefix="$acl_save_prefix"
13944 # Check whether --with-libintl-prefix was given.
13945 if test "${with_libintl_prefix+set}" = set; then
13946 withval=$with_libintl_prefix;
13947 if test "X$withval" = "Xno"; then
13950 if test "X$withval" = "X"; then
13952 acl_save_prefix="$prefix"
13953 prefix="$acl_final_prefix"
13954 acl_save_exec_prefix="$exec_prefix"
13955 exec_prefix="$acl_final_exec_prefix"
13957 eval additional_includedir=\"$includedir\"
13958 eval additional_libdir=\"$libdir\"
13960 exec_prefix="$acl_save_exec_prefix"
13961 prefix="$acl_save_prefix"
13964 additional_includedir="$withval/include"
13965 additional_libdir="$withval/lib"
13976 names_already_handled=
13977 names_next_round='intl '
13978 while test -n "$names_next_round"; do
13979 names_this_round="$names_next_round"
13981 for name in $names_this_round; do
13983 for n in $names_already_handled; do
13984 if test "$n" = "$name"; then
13985 already_handled=yes
13989 if test -z "$already_handled"; then
13990 names_already_handled="$names_already_handled $name"
13991 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13992 eval value=\"\$HAVE_LIB$uppername\"
13993 if test -n "$value"; then
13994 if test "$value" = yes; then
13995 eval value=\"\$LIB$uppername\"
13996 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13997 eval value=\"\$LTLIB$uppername\"
13998 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14007 if test $use_additional = yes; then
14008 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14009 found_dir="$additional_libdir"
14010 found_so="$additional_libdir/lib$name.$shlibext"
14011 if test -f "$additional_libdir/lib$name.la"; then
14012 found_la="$additional_libdir/lib$name.la"
14015 if test -f "$additional_libdir/lib$name.$libext"; then
14016 found_dir="$additional_libdir"
14017 found_a="$additional_libdir/lib$name.$libext"
14018 if test -f "$additional_libdir/lib$name.la"; then
14019 found_la="$additional_libdir/lib$name.la"
14024 if test "X$found_dir" = "X"; then
14025 for x in $LDFLAGS $LTLIBINTL; do
14027 acl_save_prefix="$prefix"
14028 prefix="$acl_final_prefix"
14029 acl_save_exec_prefix="$exec_prefix"
14030 exec_prefix="$acl_final_exec_prefix"
14032 exec_prefix="$acl_save_exec_prefix"
14033 prefix="$acl_save_prefix"
14037 dir=`echo "X$x" | sed -e 's/^X-L//'`
14038 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14040 found_so="$dir/lib$name.$shlibext"
14041 if test -f "$dir/lib$name.la"; then
14042 found_la="$dir/lib$name.la"
14045 if test -f "$dir/lib$name.$libext"; then
14047 found_a="$dir/lib$name.$libext"
14048 if test -f "$dir/lib$name.la"; then
14049 found_la="$dir/lib$name.la"
14055 if test "X$found_dir" != "X"; then
14060 if test "X$found_dir" != "X"; then
14061 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14062 if test "X$found_so" != "X"; then
14063 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14064 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14067 for x in $ltrpathdirs; do
14068 if test "X$x" = "X$found_dir"; then
14073 if test -z "$haveit"; then
14074 ltrpathdirs="$ltrpathdirs $found_dir"
14076 if test "$hardcode_direct" = yes; then
14077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14079 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14080 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14082 for x in $rpathdirs; do
14083 if test "X$x" = "X$found_dir"; then
14088 if test -z "$haveit"; then
14089 rpathdirs="$rpathdirs $found_dir"
14093 for x in $LDFLAGS $LIBINTL; do
14095 acl_save_prefix="$prefix"
14096 prefix="$acl_final_prefix"
14097 acl_save_exec_prefix="$exec_prefix"
14098 exec_prefix="$acl_final_exec_prefix"
14100 exec_prefix="$acl_save_exec_prefix"
14101 prefix="$acl_save_prefix"
14103 if test "X$x" = "X-L$found_dir"; then
14108 if test -z "$haveit"; then
14109 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14111 if test "$hardcode_minus_L" != no; then
14112 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14114 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14120 if test "X$found_a" != "X"; then
14121 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14123 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14126 additional_includedir=
14127 case "$found_dir" in
14129 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14130 additional_includedir="$basedir/include"
14133 if test "X$additional_includedir" != "X"; then
14134 if test "X$additional_includedir" != "X/usr/include"; then
14136 if test "X$additional_includedir" = "X/usr/local/include"; then
14137 if test -n "$GCC"; then
14139 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14143 if test -z "$haveit"; then
14144 for x in $CPPFLAGS $INCINTL; do
14146 acl_save_prefix="$prefix"
14147 prefix="$acl_final_prefix"
14148 acl_save_exec_prefix="$exec_prefix"
14149 exec_prefix="$acl_final_exec_prefix"
14151 exec_prefix="$acl_save_exec_prefix"
14152 prefix="$acl_save_prefix"
14154 if test "X$x" = "X-I$additional_includedir"; then
14159 if test -z "$haveit"; then
14160 if test -d "$additional_includedir"; then
14161 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14167 if test -n "$found_la"; then
14168 save_libdir="$libdir"
14169 case "$found_la" in
14170 */* | *\\*) . "$found_la" ;;
14171 *) . "./$found_la" ;;
14173 libdir="$save_libdir"
14174 for dep in $dependency_libs; do
14177 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14178 if test "X$additional_libdir" != "X/usr/lib"; then
14180 if test "X$additional_libdir" = "X/usr/local/lib"; then
14181 if test -n "$GCC"; then
14183 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14187 if test -z "$haveit"; then
14189 for x in $LDFLAGS $LIBINTL; do
14191 acl_save_prefix="$prefix"
14192 prefix="$acl_final_prefix"
14193 acl_save_exec_prefix="$exec_prefix"
14194 exec_prefix="$acl_final_exec_prefix"
14196 exec_prefix="$acl_save_exec_prefix"
14197 prefix="$acl_save_prefix"
14199 if test "X$x" = "X-L$additional_libdir"; then
14204 if test -z "$haveit"; then
14205 if test -d "$additional_libdir"; then
14206 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14210 for x in $LDFLAGS $LTLIBINTL; do
14212 acl_save_prefix="$prefix"
14213 prefix="$acl_final_prefix"
14214 acl_save_exec_prefix="$exec_prefix"
14215 exec_prefix="$acl_final_exec_prefix"
14217 exec_prefix="$acl_save_exec_prefix"
14218 prefix="$acl_save_prefix"
14220 if test "X$x" = "X-L$additional_libdir"; then
14225 if test -z "$haveit"; then
14226 if test -d "$additional_libdir"; then
14227 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14234 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14235 if test "$enable_rpath" != no; then
14237 for x in $rpathdirs; do
14238 if test "X$x" = "X$dir"; then
14243 if test -z "$haveit"; then
14244 rpathdirs="$rpathdirs $dir"
14247 for x in $ltrpathdirs; do
14248 if test "X$x" = "X$dir"; then
14253 if test -z "$haveit"; then
14254 ltrpathdirs="$ltrpathdirs $dir"
14259 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14262 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14265 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14272 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14273 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14279 if test "X$rpathdirs" != "X"; then
14280 if test -n "$hardcode_libdir_separator"; then
14282 for found_dir in $rpathdirs; do
14283 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14285 acl_save_libdir="$libdir"
14287 eval flag=\"$hardcode_libdir_flag_spec\"
14288 libdir="$acl_save_libdir"
14289 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14291 for found_dir in $rpathdirs; do
14292 acl_save_libdir="$libdir"
14293 libdir="$found_dir"
14294 eval flag=\"$hardcode_libdir_flag_spec\"
14295 libdir="$acl_save_libdir"
14296 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14300 if test "X$ltrpathdirs" != "X"; then
14301 for found_dir in $ltrpathdirs; do
14302 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14306 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14307 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14308 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 gt_save_CPPFLAGS="$CPPFLAGS"
14312 CPPFLAGS="$CPPFLAGS $INCINTL"
14313 gt_save_LIBS="$LIBS"
14314 LIBS="$LIBS $LIBINTL"
14315 cat >conftest.$ac_ext <<_ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 #include <libintl.h>
14322 extern int _nl_msg_cat_cntr;
14327 const char *_nl_expand_alias (const char *);
14331 bindtextdomain ("", "");
14332 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (ac_try="$ac_link"
14339 case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_link") 2>conftest.er1
14346 grep -v '^ *+' conftest.er1 >conftest.err
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest$ac_exeext'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 gt_cv_func_gnugettext1_libintl=yes
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 gt_cv_func_gnugettext1_libintl=no
14379 rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14382 LIBS="$LIBS $LIBICONV"
14383 cat >conftest.$ac_ext <<_ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 #include <libintl.h>
14390 extern int _nl_msg_cat_cntr;
14395 const char *_nl_expand_alias (const char *);
14399 bindtextdomain ("", "");
14400 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14420 { (case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_try") 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; } &&
14429 { ac_try='test -s conftest$ac_exeext'
14430 { (case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435 (eval "$ac_try") 2>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; }; then
14439 LIBINTL="$LIBINTL $LIBICONV"
14440 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14441 gt_cv_func_gnugettext1_libintl=yes
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14450 rm -f core conftest.err conftest.$ac_objext \
14451 conftest$ac_exeext conftest.$ac_ext
14453 CPPFLAGS="$gt_save_CPPFLAGS"
14454 LIBS="$gt_save_LIBS"
14456 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14457 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14460 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14461 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14462 && test "$PACKAGE" != gettext-runtime \
14463 && test "$PACKAGE" != gettext-tools; }; then
14464 gt_use_preinstalled_gnugettext=yes
14472 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14473 nls_cv_use_gnu_gettext=yes
14477 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14478 BUILD_INCLUDED_LIBINTL=yes
14479 USE_INCLUDED_LIBINTL=yes
14480 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14481 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14482 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14486 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14487 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14492 if test -n "$INTL_MACOSX_LIBS"; then
14493 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14494 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14495 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14496 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14500 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14501 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14503 cat >>confdefs.h <<\_ACEOF
14504 #define ENABLE_NLS 1
14512 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14513 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14514 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14515 echo "${ECHO_T}$USE_NLS" >&6; }
14516 if test "$USE_NLS" = "yes"; then
14517 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14518 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14519 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14520 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14521 gt_source="external libintl"
14526 gt_source="included intl directory"
14528 { echo "$as_me:$LINENO: result: $gt_source" >&5
14529 echo "${ECHO_T}$gt_source" >&6; }
14532 if test "$USE_NLS" = "yes"; then
14534 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14535 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14536 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14537 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14538 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14539 echo "${ECHO_T}$LIBINTL" >&6; }
14541 for element in $INCINTL; do
14543 for x in $CPPFLAGS; do
14545 acl_save_prefix="$prefix"
14546 prefix="$acl_final_prefix"
14547 acl_save_exec_prefix="$exec_prefix"
14548 exec_prefix="$acl_final_exec_prefix"
14550 exec_prefix="$acl_save_exec_prefix"
14551 prefix="$acl_save_prefix"
14553 if test "X$x" = "X$element"; then
14558 if test -z "$haveit"; then
14559 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14566 cat >>confdefs.h <<\_ACEOF
14567 #define HAVE_GETTEXT 1
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_DCGETTEXT 1
14581 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14582 BUILD_INCLUDED_LIBINTL=yes
14589 nls_cv_header_intl=
14590 nls_cv_header_libgt=
14602 if test "$USE_INCLUDED_LIBINTL" = yes; then
14603 INTLOBJS="\$(GETTOBJS)"
14607 INTL_LIBTOOL_SUFFIX_PREFIX=
14611 INTLLIBS="$LIBINTL"
14624 support_postgresql=no
14625 support_smartalloc=yes
14626 support_readline=yes
14630 support_wx_console=no
14635 support_static_tools=no
14636 support_static_fd=no
14637 support_static_sd=no
14638 support_static_dir=no
14639 support_static_cons=no
14641 build_client_only=no
14649 # -------------------------------------------
14650 # gnome (default off)
14651 # -------------------------------------------
14652 # Check whether --enable-gnome was given.
14653 if test "${enable_gnome+set}" = set; then
14654 enableval=$enable_gnome; if test x$enableval = xyes; then
14661 if test x$support_gnome = xyes; then
14662 abc=`$PKGCONFIG --exists libgnomeui-2.0`
14664 if test $pkg = 0; then
14665 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14666 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14667 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14668 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14673 GNOME_DIR=src/gnome2-console
14674 gnome_version="Version 2.x"
14676 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14677 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14678 { (exit 1); exit 1; }; }
14683 # -------------------------------------------
14684 # bat (default off)
14685 # -------------------------------------------
14686 # Check whether --enable-bat was given.
14687 if test "${enable_bat+set}" = set; then
14688 enableval=$enable_bat; if test x$enableval = xyes; then
14690 cat >>confdefs.h <<\_ACEOF
14700 if test x$support_bat = xyes; then
14701 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14703 if test $pkg = 0; then
14704 BAT_DIR=src/qt-console
14706 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14707 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14708 { (exit 1); exit 1; }; }
14713 # If bat is enabled, we need the qwt library
14715 if test x$support_bat = xyes; then
14717 # Check whether --with-qwt was given.
14718 if test "${with_qwt+set}" = set; then
14720 case "$with_qwt" in
14723 if test -f ${with_qwt}/include/qwt.h; then
14724 QWT_INC="${with_qwt}/include"
14725 QWT_LDFLAGS="-L${with_qwt}/lib"
14728 echo "qwt.h not found. bat turned off ..."
14746 # -------------------------------------------
14747 # bwx-console (default off)
14748 # -------------------------------------------
14749 # Check whether --enable-bwx-console was given.
14750 if test "${enable_bwx_console+set}" = set; then
14751 enableval=$enable_bwx_console; if test x$enableval = xyes; then
14752 support_wx_console=yes
14758 if test x$support_wx_console = xyes; then
14759 abc=`$WXCONFIG $WXFLAGS --cppflags`
14761 if test $pkg = 0; then
14762 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14763 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14764 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14768 WX_DIR=src/wx-console
14771 echo "wx-config program not found. bwx-console disabled."
14773 support_wx_console=no
14779 # -------------------------------------------
14780 # tray-monitor (default off)
14781 # -------------------------------------------
14782 # Check whether --enable-tray-monitor was given.
14783 if test "${enable_tray_monitor+set}" = set; then
14784 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14785 support_tray_monitor=yes
14791 if test x$support_tray_monitor = xyes; then
14792 abc=`$PKGCONFIG --exists gtk+-2.0`
14794 if test $pkg = 0; then
14795 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14796 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14799 TRAY_MONITOR_DIR=src/tray-monitor
14800 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14802 if test $pkg = 0; then
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_GTK_2_4 1
14812 # -------------------------------------------
14813 # smartalloc (default off)
14814 # -------------------------------------------
14815 # Check whether --enable-smartalloc was given.
14816 if test "${enable_smartalloc+set}" = set; then
14817 enableval=$enable_smartalloc; if test x$enableval = xno; then
14818 support_smartalloc=no
14823 if test x$support_smartalloc = xyes; then
14824 cat >>confdefs.h <<\_ACEOF
14825 #define SMARTALLOC 1
14830 # -------------------------------------------
14831 # static-tools (default off)
14832 # -------------------------------------------
14833 # Check whether --enable-static-tools was given.
14834 if test "${enable_static_tools+set}" = set; then
14835 enableval=$enable_static_tools; if test x$enableval = xyes; then
14836 support_static_tools=yes
14842 if test x$support_static_tools = xyes; then
14843 TTOOL_LDFLAGS="-static"
14847 # -------------------------------------------
14848 # static-fd (default off)
14849 # -------------------------------------------
14850 # Check whether --enable-static-fd was given.
14851 if test "${enable_static_fd+set}" = set; then
14852 enableval=$enable_static_fd; if test x$enableval = xyes; then
14853 support_static_fd=yes
14859 if test x$support_static_fd = xyes; then
14860 STATIC_FD="static-bacula-fd"
14864 # -------------------------------------------
14865 # static-sd (default off)
14866 # -------------------------------------------
14867 # Check whether --enable-static-sd was given.
14868 if test "${enable_static_sd+set}" = set; then
14869 enableval=$enable_static_sd; if test x$enableval = xyes; then
14870 support_static_sd=yes
14876 if test x$support_static_sd = xyes; then
14877 STATIC_SD="static-bacula-sd"
14881 # -------------------------------------------
14882 # static-dir (default off)
14883 # -------------------------------------------
14884 # Check whether --enable-static-dir was given.
14885 if test "${enable_static_dir+set}" = set; then
14886 enableval=$enable_static_dir; if test x$enableval = xyes; then
14887 support_static_dir=yes
14893 if test x$support_static_dir = xyes; then
14894 STATIC_DIR="static-bacula-dir"
14898 # -------------------------------------------
14899 # static-cons (default off)
14900 # -------------------------------------------
14901 # Check whether --enable-static-cons was given.
14902 if test "${enable_static_cons+set}" = set; then
14903 enableval=$enable_static_cons; if test x$enableval = xyes; then
14904 support_static_cons=yes
14912 if test x$support_static_cons = xyes; then
14913 STATIC_CONS="static-bconsole"
14914 STATIC_GNOME_CONS="static-bgnome-console"
14915 STATIC_WX_CONS="static-bwx-console"
14921 # -------------------------------------------
14922 # client_only (default off)
14923 # -------------------------------------------
14924 # Check whether --enable-client-only was given.
14925 if test "${enable_client_only+set}" = set; then
14926 enableval=$enable_client_only; if test x$enableval = xyes; then
14927 build_client_only=yes
14933 if test x$build_client_only = xno; then
14940 # -------------------------------------------
14941 # director (default on)
14942 # -------------------------------------------
14943 # Check whether --enable-build-dird was given.
14944 if test "${enable_build_dird+set}" = set; then
14945 enableval=$enable_build_dird; if test x$enableval = xno; then
14950 if test x$build_dird = xyes; then
14951 DIRD_DIR="src/dird"
14952 DIR_TOOLS="DIRTOOLS"
14955 DIR_TOOLS="NODIRTOOLS"
14960 # -------------------------------------------
14961 # stored (default on)
14962 # -------------------------------------------
14963 # Check whether --enable-build-stored was given.
14964 if test "${enable_build_stored+set}" = set; then
14965 enableval=$enable_build_stored; if test x$enableval = xno; then
14970 if test x$build_stored = xyes; then
14971 STORED_DIR="src/stored"
14977 # ---------------------------------------------------
14978 # Check for conio (Bacula readline substitute)(
14979 # ---------------------------------------------------
14980 # this allows you to turn it completely off
14981 # Check whether --enable-conio was given.
14982 if test "${enable_conio+set}" = set; then
14983 enableval=$enable_conio; if test x$enableval = xno; then
14991 # ---------------------------------------------------
14992 # Check for IPv6 support
14993 # ---------------------------------------------------
14994 # this allows you to turn it completely off
14996 # Check whether --enable-ipv6 was given.
14997 if test "${enable_ipv6+set}" = set; then
14998 enableval=$enable_ipv6; if test x$enableval = xno; then
15005 if test x$support_ipv6 = xyes; then
15006 cat >conftest.$ac_ext <<_ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 #include <sys/types.h>
15013 #include <sys/socket.h>
15014 #include <netinet/in.h>
15018 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
15023 rm -f conftest.$ac_objext conftest$ac_exeext
15024 if { (ac_try="$ac_link"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_link") 2>conftest.er1
15032 grep -v '^ *+' conftest.er1 >conftest.err
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15038 { (case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_try") 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest$ac_exeext'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15065 rm -f core conftest.err conftest.$ac_objext \
15066 conftest$ac_exeext conftest.$ac_ext
15069 if test x$support_ipv6 = xyes; then
15071 cat >>confdefs.h <<\_ACEOF
15072 #define HAVE_IPV6 1
15080 if test x$support_conio = xyes; then
15081 if test "${ac_cv_header_termcap_h+set}" = set; then
15082 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15083 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15084 if test "${ac_cv_header_termcap_h+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15088 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15090 # Is the header compilable?
15091 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15092 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15093 cat >conftest.$ac_ext <<_ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15099 $ac_includes_default
15100 #include <termcap.h>
15102 rm -f conftest.$ac_objext
15103 if { (ac_try="$ac_compile"
15104 case "(($ac_try" in
15105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106 *) ac_try_echo=$ac_try;;
15108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109 (eval "$ac_compile") 2>conftest.er1
15111 grep -v '^ *+' conftest.er1 >conftest.err
15113 cat conftest.err >&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
15116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15117 { (case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_try") 2>&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; } &&
15126 { ac_try='test -s conftest.$ac_objext'
15127 { (case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_try") 2>&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 ac_header_compiler=yes
15138 echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15141 ac_header_compiler=no
15144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15146 echo "${ECHO_T}$ac_header_compiler" >&6; }
15148 # Is the header present?
15149 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15150 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 #include <termcap.h>
15159 if { (ac_try="$ac_cpp conftest.$ac_ext"
15160 case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15167 grep -v '^ *+' conftest.er1 >conftest.err
15169 cat conftest.err >&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } >/dev/null; then
15172 if test -s conftest.err; then
15173 ac_cpp_err=$ac_c_preproc_warn_flag
15174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15181 if test -z "$ac_cpp_err"; then
15182 ac_header_preproc=yes
15184 echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15187 ac_header_preproc=no
15190 rm -f conftest.err conftest.$ac_ext
15191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15192 echo "${ECHO_T}$ac_header_preproc" >&6; }
15194 # So? What about this header?
15195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15197 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15198 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15199 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15200 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15201 ac_header_preproc=yes
15204 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15205 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15206 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
15207 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
15208 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15209 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
15211 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
15212 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15213 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15214 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15215 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15219 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15220 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15221 if test "${ac_cv_header_termcap_h+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 ac_cv_header_termcap_h=$ac_header_preproc
15226 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15227 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15230 if test $ac_cv_header_termcap_h = yes; then
15231 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15232 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15233 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15236 ac_check_lib_save_LIBS=$LIBS
15237 LIBS="-ltermcap $LIBS"
15238 cat >conftest.$ac_ext <<_ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15245 /* Override any GCC internal prototype to avoid an error.
15246 Use char because int might match the return type of a GCC
15247 builtin and then its argument prototype would still apply. */
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (ac_try="$ac_link"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_link") 2>conftest.er1
15269 grep -v '^ *+' conftest.er1 >conftest.err
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15275 { (case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_try") 2>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; } &&
15284 { ac_try='test -s conftest$ac_exeext'
15285 { (case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_try") 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 ac_cv_lib_termcap_tgetent=yes
15296 echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15299 ac_cv_lib_termcap_tgetent=no
15302 rm -f core conftest.err conftest.$ac_objext \
15303 conftest$ac_exeext conftest.$ac_ext
15304 LIBS=$ac_check_lib_save_LIBS
15306 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15307 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15308 if test $ac_cv_lib_termcap_tgetent = yes; then
15309 CONS_LIBS="-ltermcap"
15313 support_readline=no
15315 cat >>confdefs.h <<\_ACEOF
15316 #define HAVE_CONIO 1
15321 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15322 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15323 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 ac_check_lib_save_LIBS=$LIBS
15327 LIBS="-lncurses $LIBS"
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15335 /* Override any GCC internal prototype to avoid an error.
15336 Use char because int might match the return type of a GCC
15337 builtin and then its argument prototype would still apply. */
15350 rm -f conftest.$ac_objext conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>conftest.er1
15359 grep -v '^ *+' conftest.er1 >conftest.err
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest$ac_exeext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_cv_lib_ncurses_tgetent=yes
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ac_cv_lib_ncurses_tgetent=no
15392 rm -f core conftest.err conftest.$ac_objext \
15393 conftest$ac_exeext conftest.$ac_ext
15394 LIBS=$ac_check_lib_save_LIBS
15396 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15397 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15398 if test $ac_cv_lib_ncurses_tgetent = yes; then
15399 CONS_LIBS="-lncurses"
15403 support_readline=no
15405 cat >>confdefs.h <<\_ACEOF
15406 #define HAVE_CONIO 1
15419 for ac_header in curses.h
15421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 ac_res=`eval echo '${'$as_ac_Header'}'`
15429 { echo "$as_me:$LINENO: result: $ac_res" >&5
15430 echo "${ECHO_T}$ac_res" >&6; }
15432 # Is the header compilable?
15433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 $ac_includes_default
15442 #include <$ac_header>
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_compile") 2>conftest.er1
15453 grep -v '^ *+' conftest.er1 >conftest.err
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459 { (case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_try") 2>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest.$ac_objext'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_header_compiler=yes
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15483 ac_header_compiler=no
15486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15488 echo "${ECHO_T}$ac_header_compiler" >&6; }
15490 # Is the header present?
15491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15493 cat >conftest.$ac_ext <<_ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 #include <$ac_header>
15501 if { (ac_try="$ac_cpp conftest.$ac_ext"
15502 case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15509 grep -v '^ *+' conftest.er1 >conftest.err
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } >/dev/null; then
15514 if test -s conftest.err; then
15515 ac_cpp_err=$ac_c_preproc_warn_flag
15516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15523 if test -z "$ac_cpp_err"; then
15524 ac_header_preproc=yes
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_header_preproc=no
15532 rm -f conftest.err conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15534 echo "${ECHO_T}$ac_header_preproc" >&6; }
15536 # So? What about this header?
15537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15543 ac_header_preproc=yes
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 eval "$as_ac_Header=\$ac_header_preproc"
15568 ac_res=`eval echo '${'$as_ac_Header'}'`
15569 { echo "$as_me:$LINENO: result: $ac_res" >&5
15570 echo "${ECHO_T}$ac_res" >&6; }
15573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15574 cat >>confdefs.h <<_ACEOF
15575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15582 { echo "$as_me:$LINENO: checking for term.h" >&5
15583 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15584 if test "${ac_cv_header_term_h+set}" = set; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 cat >conftest.$ac_ext <<_ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15594 #include <curses.h>
15600 rm -f conftest.$ac_objext
15601 if { (ac_try="$ac_compile"
15602 case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607 (eval "$ac_compile") 2>conftest.er1
15609 grep -v '^ *+' conftest.er1 >conftest.err
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15615 { (case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_try") 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; } &&
15624 { ac_try='test -s conftest.$ac_objext'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_cv_header_term_h=yes
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15639 ac_cv_header_term_h=no
15642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15644 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15645 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15646 if test $ac_cv_header_term_h = yes; then
15647 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15648 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15649 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 ac_check_lib_save_LIBS=$LIBS
15653 LIBS="-lcurses $LIBS"
15654 cat >conftest.$ac_ext <<_ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15661 /* Override any GCC internal prototype to avoid an error.
15662 Use char because int might match the return type of a GCC
15663 builtin and then its argument prototype would still apply. */
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (ac_try="$ac_link"
15678 case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_link") 2>conftest.er1
15685 grep -v '^ *+' conftest.er1 >conftest.err
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } &&
15690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15691 { (case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_try") 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try='test -s conftest$ac_exeext'
15701 { (case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
15710 ac_cv_lib_curses_tgetent=yes
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 ac_cv_lib_curses_tgetent=no
15718 rm -f core conftest.err conftest.$ac_objext \
15719 conftest$ac_exeext conftest.$ac_ext
15720 LIBS=$ac_check_lib_save_LIBS
15722 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15723 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15724 if test $ac_cv_lib_curses_tgetent = yes; then
15725 CONS_LIBS="-lcurses"
15729 support_readline=no
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE_CONIO 1
15740 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15751 # ---------------------------------------------------
15752 # Check for readline support/directory (default off)
15753 # ---------------------------------------------------
15754 # this allows you to turn it completely off
15755 # Check whether --enable-readline was given.
15756 if test "${enable_readline+set}" = set; then
15757 enableval=$enable_readline; if test x$enableval = xno; then
15758 support_readline=no
15765 if test x$support_readline = xyes; then
15767 # Check whether --with-readline was given.
15768 if test "${with_readline+set}" = set; then
15769 withval=$with_readline;
15770 case "$with_readline" in
15773 if test -f ${with_readline}/readline.h; then
15774 CONS_INC="-I${with_readline}"
15775 CONS_LDFLAGS="-L$with_readline"
15776 elif test -f ${with_readline}/include/readline/readline.h; then
15777 CONS_INC="-I${with_readline}/include/readline"
15778 CONS_LDFLAGS="-L${with_readline}/lib"
15779 with_readline="${with_readline}/include/readline"
15781 with_readline="/usr/include/readline"
15783 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15785 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15786 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 ac_res=`eval echo '${'$as_ac_Header'}'`
15791 { echo "$as_me:$LINENO: result: $ac_res" >&5
15792 echo "${ECHO_T}$ac_res" >&6; }
15794 # Is the header compilable?
15795 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15796 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15797 cat >conftest.$ac_ext <<_ACEOF
15800 cat confdefs.h >>conftest.$ac_ext
15801 cat >>conftest.$ac_ext <<_ACEOF
15802 /* end confdefs.h. */
15803 $ac_includes_default
15804 #include <${with_readline}/readline.h>
15806 rm -f conftest.$ac_objext
15807 if { (ac_try="$ac_compile"
15808 case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_compile") 2>conftest.er1
15815 grep -v '^ *+' conftest.er1 >conftest.err
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
15820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15821 { (case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_try") 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest.$ac_objext'
15831 { (case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836 (eval "$ac_try") 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_header_compiler=yes
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 ac_header_compiler=no
15848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15850 echo "${ECHO_T}$ac_header_compiler" >&6; }
15852 # Is the header present?
15853 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15854 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15855 cat >conftest.$ac_ext <<_ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15861 #include <${with_readline}/readline.h>
15863 if { (ac_try="$ac_cpp conftest.$ac_ext"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15871 grep -v '^ *+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } >/dev/null; then
15876 if test -s conftest.err; then
15877 ac_cpp_err=$ac_c_preproc_warn_flag
15878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15885 if test -z "$ac_cpp_err"; then
15886 ac_header_preproc=yes
15888 echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15891 ac_header_preproc=no
15894 rm -f conftest.err conftest.$ac_ext
15895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15896 echo "${ECHO_T}$ac_header_preproc" >&6; }
15898 # So? What about this header?
15899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15901 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15902 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15904 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15905 ac_header_preproc=yes
15908 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15909 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
15911 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15913 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
15915 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15917 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15919 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15923 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15924 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 eval "$as_ac_Header=\$ac_header_preproc"
15930 ac_res=`eval echo '${'$as_ac_Header'}'`
15931 { echo "$as_me:$LINENO: result: $ac_res" >&5
15932 echo "${ECHO_T}$ac_res" >&6; }
15935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15936 cat >>confdefs.h <<\_ACEOF
15937 #define HAVE_READLINE 1
15940 CONS_LIBS="-lreadline -lhistory -ltermcap"
15945 echo "readline.h not found. readline turned off ..."
15957 # check for standard readline library
15958 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15959 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15960 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15961 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15965 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15967 # Is the header compilable?
15968 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15969 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 $ac_includes_default
15977 #include </usr/include/readline/readline.h>
15979 rm -f conftest.$ac_objext
15980 if { (ac_try="$ac_compile"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_compile") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15994 { (case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_try") 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; } &&
16003 { ac_try='test -s conftest.$ac_objext'
16004 { (case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_try") 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 ac_header_compiler=yes
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 ac_header_compiler=no
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16023 echo "${ECHO_T}$ac_header_compiler" >&6; }
16025 # Is the header present?
16026 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
16027 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 #include </usr/include/readline/readline.h>
16036 if { (ac_try="$ac_cpp conftest.$ac_ext"
16037 case "(($ac_try" in
16038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16039 *) ac_try_echo=$ac_try;;
16041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16044 grep -v '^ *+' conftest.er1 >conftest.err
16046 cat conftest.err >&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } >/dev/null; then
16049 if test -s conftest.err; then
16050 ac_cpp_err=$ac_c_preproc_warn_flag
16051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16058 if test -z "$ac_cpp_err"; then
16059 ac_header_preproc=yes
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 ac_header_preproc=no
16067 rm -f conftest.err conftest.$ac_ext
16068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16069 echo "${ECHO_T}$ac_header_preproc" >&6; }
16071 # So? What about this header?
16072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16074 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16075 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16076 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16077 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16078 ac_header_preproc=yes
16081 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16082 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
16084 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16086 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16088 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16090 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16092 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16096 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16097 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16098 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16103 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16104 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16107 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16108 cat >>confdefs.h <<\_ACEOF
16109 #define HAVE_READLINE 1
16113 CONS_INC="-I/usr/include/readline"
16114 CONS_LIBS="-lreadline -ltermcap"
16118 # Did not find standard library, so try Bacula's default
16119 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16121 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16122 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 ac_res=`eval echo '${'$as_ac_Header'}'`
16127 { echo "$as_me:$LINENO: result: $ac_res" >&5
16128 echo "${ECHO_T}$ac_res" >&6; }
16130 # Is the header compilable?
16131 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16132 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16133 cat >conftest.$ac_ext <<_ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16139 $ac_includes_default
16140 #include <${TOP_DIR}/depkgs/readline/readline.h>
16142 rm -f conftest.$ac_objext
16143 if { (ac_try="$ac_compile"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_compile") 2>conftest.er1
16151 grep -v '^ *+' conftest.er1 >conftest.err
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } &&
16156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16157 { (case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_try") 2>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; } &&
16166 { ac_try='test -s conftest.$ac_objext'
16167 { (case "(($ac_try" in
16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172 (eval "$ac_try") 2>&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); }; }; then
16176 ac_header_compiler=yes
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_header_compiler=no
16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16186 echo "${ECHO_T}$ac_header_compiler" >&6; }
16188 # Is the header present?
16189 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16190 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 #include <${TOP_DIR}/depkgs/readline/readline.h>
16199 if { (ac_try="$ac_cpp conftest.$ac_ext"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } >/dev/null; then
16212 if test -s conftest.err; then
16213 ac_cpp_err=$ac_c_preproc_warn_flag
16214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16221 if test -z "$ac_cpp_err"; then
16222 ac_header_preproc=yes
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16227 ac_header_preproc=no
16230 rm -f conftest.err conftest.$ac_ext
16231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16232 echo "${ECHO_T}$ac_header_preproc" >&6; }
16234 # So? What about this header?
16235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16237 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16238 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16239 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16240 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16241 ac_header_preproc=yes
16244 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16245 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16246 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
16247 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
16248 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16249 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16250 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16251 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16253 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16254 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16255 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16259 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16260 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16262 echo $ECHO_N "(cached) $ECHO_C" >&6
16264 eval "$as_ac_Header=\$ac_header_preproc"
16266 ac_res=`eval echo '${'$as_ac_Header'}'`
16267 { echo "$as_me:$LINENO: result: $ac_res" >&5
16268 echo "${ECHO_T}$ac_res" >&6; }
16271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16272 cat >>confdefs.h <<\_ACEOF
16273 #define HAVE_READLINE 1
16277 CONS_INC="-I${TOP_DIR}/depkgs/readline"
16278 CONS_LIBS="-lreadline -lhistory -ltermcap"
16279 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16280 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16284 echo "readline.h not found. readline turned off ..."
16311 # Minimal stuff for readline Makefile configuration
16314 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16315 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16316 if test "${ac_cv_header_stat_broken+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #include <sys/types.h>
16326 #include <sys/stat.h>
16328 #if defined S_ISBLK && defined S_IFDIR
16329 # if S_ISBLK (S_IFDIR)
16334 #if defined S_ISBLK && defined S_IFCHR
16335 # if S_ISBLK (S_IFCHR)
16340 #if defined S_ISLNK && defined S_IFREG
16341 # if S_ISLNK (S_IFREG)
16346 #if defined S_ISSOCK && defined S_IFREG
16347 # if S_ISSOCK (S_IFREG)
16353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16354 $EGREP "You lose" >/dev/null 2>&1; then
16355 ac_cv_header_stat_broken=yes
16357 ac_cv_header_stat_broken=no
16362 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16363 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16364 if test $ac_cv_header_stat_broken = yes; then
16366 cat >>confdefs.h <<\_ACEOF
16367 #define STAT_MACROS_BROKEN 1
16377 ac_header_dirent=no
16378 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16379 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16380 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16381 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 cat >conftest.$ac_ext <<_ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 #include <sys/types.h>
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_compile") 2>conftest.er1
16412 grep -v '^ *+' conftest.er1 >conftest.err
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16418 { (case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423 (eval "$ac_try") 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_try") 2>&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 eval "$as_ac_Header=yes"
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16442 eval "$as_ac_Header=no"
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447 ac_res=`eval echo '${'$as_ac_Header'}'`
16448 { echo "$as_me:$LINENO: result: $ac_res" >&5
16449 echo "${ECHO_T}$ac_res" >&6; }
16450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16451 cat >>confdefs.h <<_ACEOF
16452 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16455 ac_header_dirent=$ac_hdr; break
16459 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16460 if test $ac_header_dirent = dirent.h; then
16461 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16462 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16463 if test "${ac_cv_search_opendir+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 ac_func_search_save_LIBS=$LIBS
16467 cat >conftest.$ac_ext <<_ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16474 /* Override any GCC internal prototype to avoid an error.
16475 Use char because int might match the return type of a GCC
16476 builtin and then its argument prototype would still apply. */
16489 for ac_lib in '' dir; do
16490 if test -z "$ac_lib"; then
16491 ac_res="none required"
16494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (ac_try="$ac_link"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_link") 2>conftest.er1
16505 grep -v '^ *+' conftest.er1 >conftest.err
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
16510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16511 { (case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_try") 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } &&
16520 { ac_try='test -s conftest$ac_exeext'
16521 { (case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_try") 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 ac_cv_search_opendir=$ac_res
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16538 rm -f core conftest.err conftest.$ac_objext \
16540 if test "${ac_cv_search_opendir+set}" = set; then
16544 if test "${ac_cv_search_opendir+set}" = set; then
16547 ac_cv_search_opendir=no
16549 rm conftest.$ac_ext
16550 LIBS=$ac_func_search_save_LIBS
16552 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16553 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16554 ac_res=$ac_cv_search_opendir
16555 if test "$ac_res" != no; then
16556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16561 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16562 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16563 if test "${ac_cv_search_opendir+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 ac_func_search_save_LIBS=$LIBS
16567 cat >conftest.$ac_ext <<_ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16574 /* Override any GCC internal prototype to avoid an error.
16575 Use char because int might match the return type of a GCC
16576 builtin and then its argument prototype would still apply. */
16589 for ac_lib in '' x; do
16590 if test -z "$ac_lib"; then
16591 ac_res="none required"
16594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16596 rm -f conftest.$ac_objext conftest$ac_exeext
16597 if { (ac_try="$ac_link"
16598 case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_link") 2>conftest.er1
16605 grep -v '^ *+' conftest.er1 >conftest.err
16607 cat conftest.err >&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } &&
16610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16611 { (case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_try") 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_try") 2>&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 ac_cv_search_opendir=$ac_res
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16638 rm -f core conftest.err conftest.$ac_objext \
16640 if test "${ac_cv_search_opendir+set}" = set; then
16644 if test "${ac_cv_search_opendir+set}" = set; then
16647 ac_cv_search_opendir=no
16649 rm conftest.$ac_ext
16650 LIBS=$ac_func_search_save_LIBS
16652 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16653 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16654 ac_res=$ac_cv_search_opendir
16655 if test "$ac_res" != no; then
16656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16669 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 cat >conftest.$ac_ext <<_ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16685 #define $ac_func innocuous_$ac_func
16687 /* System header to define __stub macros and hopefully few prototypes,
16688 which can conflict with char $ac_func (); below.
16689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16690 <limits.h> exists even on freestanding compilers. */
16693 # include <limits.h>
16695 # include <assert.h>
16700 /* Override any GCC internal prototype to avoid an error.
16701 Use char because int might match the return type of a GCC
16702 builtin and then its argument prototype would still apply. */
16707 /* The GNU C library defines this for functions which it implements
16708 to always fail with ENOSYS. Some functions are actually named
16709 something starting with __ and the normal name is an alias. */
16710 #if defined __stub_$ac_func || defined __stub___$ac_func
16717 return $ac_func ();
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (ac_try="$ac_link"
16724 case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_link") 2>conftest.er1
16731 grep -v '^ *+' conftest.er1 >conftest.err
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16737 { (case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_try") 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; } &&
16746 { ac_try='test -s conftest$ac_exeext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 eval "$as_ac_var=yes"
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 eval "$as_ac_var=no"
16764 rm -f core conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16767 ac_res=`eval echo '${'$as_ac_var'}'`
16768 { echo "$as_me:$LINENO: result: $ac_res" >&5
16769 echo "${ECHO_T}$ac_res" >&6; }
16770 if test `eval echo '${'$as_ac_var'}'` = yes; then
16771 cat >>confdefs.h <<_ACEOF
16772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16780 for ac_func in nanosleep nl_langinfo
16782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 cat >conftest.$ac_ext <<_ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16796 #define $ac_func innocuous_$ac_func
16798 /* System header to define __stub macros and hopefully few prototypes,
16799 which can conflict with char $ac_func (); below.
16800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16801 <limits.h> exists even on freestanding compilers. */
16804 # include <limits.h>
16806 # include <assert.h>
16811 /* Override any GCC internal prototype to avoid an error.
16812 Use char because int might match the return type of a GCC
16813 builtin and then its argument prototype would still apply. */
16818 /* The GNU C library defines this for functions which it implements
16819 to always fail with ENOSYS. Some functions are actually named
16820 something starting with __ and the normal name is an alias. */
16821 #if defined __stub_$ac_func || defined __stub___$ac_func
16828 return $ac_func ();
16833 rm -f conftest.$ac_objext conftest$ac_exeext
16834 if { (ac_try="$ac_link"
16835 case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_link") 2>conftest.er1
16842 grep -v '^ *+' conftest.er1 >conftest.err
16844 cat conftest.err >&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } &&
16847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16848 { (case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853 (eval "$ac_try") 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; } &&
16857 { ac_try='test -s conftest$ac_exeext'
16858 { (case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_try") 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 eval "$as_ac_var=yes"
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16872 eval "$as_ac_var=no"
16875 rm -f core conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext conftest.$ac_ext
16878 ac_res=`eval echo '${'$as_ac_var'}'`
16879 { echo "$as_me:$LINENO: result: $ac_res" >&5
16880 echo "${ECHO_T}$ac_res" >&6; }
16881 if test `eval echo '${'$as_ac_var'}'` = yes; then
16882 cat >>confdefs.h <<_ACEOF
16883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16890 for ac_header in varargs.h
16892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 ac_res=`eval echo '${'$as_ac_Header'}'`
16900 { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16903 # Is the header compilable?
16904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 $ac_includes_default
16913 #include <$ac_header>
16915 rm -f conftest.$ac_objext
16916 if { (ac_try="$ac_compile"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_compile") 2>conftest.er1
16924 grep -v '^ *+' conftest.er1 >conftest.err
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } &&
16929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16930 { (case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_try") 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; } &&
16939 { ac_try='test -s conftest.$ac_objext'
16940 { (case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_try") 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_header_compiler=yes
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 ac_header_compiler=no
16957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16959 echo "${ECHO_T}$ac_header_compiler" >&6; }
16961 # Is the header present?
16962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16964 cat >conftest.$ac_ext <<_ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16970 #include <$ac_header>
16972 if { (ac_try="$ac_cpp conftest.$ac_ext"
16973 case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16980 grep -v '^ *+' conftest.er1 >conftest.err
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } >/dev/null; then
16985 if test -s conftest.err; then
16986 ac_cpp_err=$ac_c_preproc_warn_flag
16987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16994 if test -z "$ac_cpp_err"; then
16995 ac_header_preproc=yes
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_header_preproc=no
17003 rm -f conftest.err conftest.$ac_ext
17004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17005 echo "${ECHO_T}$ac_header_preproc" >&6; }
17007 # So? What about this header?
17008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17014 ac_header_preproc=yes
17017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 eval "$as_ac_Header=\$ac_header_preproc"
17039 ac_res=`eval echo '${'$as_ac_Header'}'`
17040 { echo "$as_me:$LINENO: result: $ac_res" >&5
17041 echo "${ECHO_T}$ac_res" >&6; }
17044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17045 cat >>confdefs.h <<_ACEOF
17046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17054 # End of readline/conio stuff
17055 # -----------------------------------------------------------------------
17057 # -----------------------------------------------------------------------
17058 # Check for Python support
17060 { echo "$as_me:$LINENO: checking for Python support" >&5
17061 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17063 # Check whether --with-python was given.
17064 if test "${with_python+set}" = set; then
17065 withval=$with_python;
17068 if test "$withval" != "no"; then
17069 if test "$withval" = "yes"; then
17070 for python_root in /usr /usr/local /usr/sfw; do
17071 for ver in python2.2 python2.3 python2.4 python2.5; do
17072 if test -f $python_root/include/${ver}/Python.h; then
17073 PYTHON_INCDIR=-I$python_root/include/${ver}
17074 if test -d $python_root/lib64/${ver}/config; then
17075 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17077 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17083 if test x$PYTHON_INCDIR = x; then
17084 if test -f $prefix/include/Python.h; then
17085 PYTHON_INCDIR=-I$prefix/include
17086 if test -d $prefix/lib64/config; then
17087 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17089 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17092 { echo "$as_me:$LINENO: result: no" >&5
17093 echo "${ECHO_T}no" >&6; }
17094 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17095 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17096 { (exit 1); exit 1; }; }
17100 if test -f $withval/Python.h; then
17101 PYTHON_INCDIR=-I$withval
17102 PYTHON_LIBS="-L$withval/config -lpython"
17103 elif test -f $withval/include/Python.h; then
17104 PYTHON_INCDIR=-I$withval/include
17105 if test -d $withval/lib64/config; then
17106 PYTHON_LIBS="-L$withval/lib64/config -lpython"
17108 PYTHON_LIBS="-L$withval/lib/config -lpython"
17110 elif test -f $withval/include/python/Python.h; then
17111 PYTHON_INCDIR=-I$withval/include/python
17112 if test -d $withval/lib64/python/config; then
17113 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17115 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17118 { echo "$as_me:$LINENO: result: no" >&5
17119 echo "${ECHO_T}no" >&6; }
17120 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17121 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17122 { (exit 1); exit 1; }; }
17125 cat >>confdefs.h <<\_ACEOF
17126 #define HAVE_PYTHON 1
17129 { echo "$as_me:$LINENO: result: yes" >&5
17130 echo "${ECHO_T}yes" >&6; }
17132 { echo "$as_me:$LINENO: checking for more Python libs" >&5
17133 echo "$as_me: checking for more Python libs" >&6;}
17134 saved_LIBS="$LIBS"; LIBS=
17135 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17136 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17137 if test "${ac_cv_search_shm_open+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 ac_func_search_save_LIBS=$LIBS
17141 cat >conftest.$ac_ext <<_ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17148 /* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply. */
17158 return shm_open ();
17163 for ac_lib in '' rt; do
17164 if test -z "$ac_lib"; then
17165 ac_res="none required"
17168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (ac_try="$ac_link"
17172 case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_link") 2>conftest.er1
17179 grep -v '^ *+' conftest.er1 >conftest.err
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17185 { (case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_try") 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest$ac_exeext'
17195 { (case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_try") 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 ac_cv_search_shm_open=$ac_res
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17212 rm -f core conftest.err conftest.$ac_objext \
17214 if test "${ac_cv_search_shm_open+set}" = set; then
17218 if test "${ac_cv_search_shm_open+set}" = set; then
17221 ac_cv_search_shm_open=no
17223 rm conftest.$ac_ext
17224 LIBS=$ac_func_search_save_LIBS
17226 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17227 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17228 ac_res=$ac_cv_search_shm_open
17229 if test "$ac_res" != no; then
17230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17235 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17236 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17237 if test "${ac_cv_lib_util_openpty+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 ac_check_lib_save_LIBS=$LIBS
17241 LIBS="-lutil $LIBS"
17242 cat >conftest.$ac_ext <<_ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17249 /* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17264 rm -f conftest.$ac_objext conftest$ac_exeext
17265 if { (ac_try="$ac_link"
17266 case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_link") 2>conftest.er1
17273 grep -v '^ *+' conftest.er1 >conftest.err
17275 cat conftest.err >&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } &&
17278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17279 { (case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_try") 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; } &&
17288 { ac_try='test -s conftest$ac_exeext'
17289 { (case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_try") 2>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17298 ac_cv_lib_util_openpty=yes
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17303 ac_cv_lib_util_openpty=no
17306 rm -f core conftest.err conftest.$ac_objext \
17307 conftest$ac_exeext conftest.$ac_ext
17308 LIBS=$ac_check_lib_save_LIBS
17310 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17311 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17312 if test $ac_cv_lib_util_openpty = yes; then
17313 cat >>confdefs.h <<_ACEOF
17314 #define HAVE_LIBUTIL 1
17317 LIBS="-lutil $LIBS"
17321 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17324 { echo "$as_me:$LINENO: result: no" >&5
17325 echo "${ECHO_T}no" >&6; }
17330 { echo "$as_me:$LINENO: result: no" >&5
17331 echo "${ECHO_T}no" >&6; }
17339 # Find where sockets are (especially for Solaris)
17340 # Do this before the TCP Wrappers test since tcp wrappers
17341 # uses the socket library and some linkers are stupid.
17343 { echo "$as_me:$LINENO: checking for socket" >&5
17344 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17345 if test "${ac_cv_func_socket+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 cat >conftest.$ac_ext <<_ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17356 #define socket innocuous_socket
17358 /* System header to define __stub macros and hopefully few prototypes,
17359 which can conflict with char socket (); below.
17360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361 <limits.h> exists even on freestanding compilers. */
17364 # include <limits.h>
17366 # include <assert.h>
17371 /* Override any GCC internal prototype to avoid an error.
17372 Use char because int might match the return type of a GCC
17373 builtin and then its argument prototype would still apply. */
17378 /* The GNU C library defines this for functions which it implements
17379 to always fail with ENOSYS. Some functions are actually named
17380 something starting with __ and the normal name is an alias. */
17381 #if defined __stub_socket || defined __stub___socket
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>conftest.er1
17402 grep -v '^ *+' conftest.er1 >conftest.err
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17408 { (case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_try") 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest$ac_exeext'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
17427 ac_cv_func_socket=yes
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 ac_cv_func_socket=no
17435 rm -f core conftest.err conftest.$ac_objext \
17436 conftest$ac_exeext conftest.$ac_ext
17438 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17439 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17440 if test $ac_cv_func_socket = yes; then
17441 { echo "$as_me:$LINENO: result: using libc's socket" >&5
17442 echo "${ECHO_T}using libc's socket" >&6; }
17445 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17446 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17447 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17450 ac_check_lib_save_LIBS=$LIBS
17451 LIBS="-lxnet $LIBS"
17452 cat >conftest.$ac_ext <<_ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17459 /* Override any GCC internal prototype to avoid an error.
17460 Use char because int might match the return type of a GCC
17461 builtin and then its argument prototype would still apply. */
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (ac_try="$ac_link"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_link") 2>conftest.er1
17483 grep -v '^ *+' conftest.er1 >conftest.err
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_try") 2>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 ac_cv_lib_xnet_socket=yes
17510 echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17513 ac_cv_lib_xnet_socket=no
17516 rm -f core conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17518 LIBS=$ac_check_lib_save_LIBS
17520 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17521 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17522 if test $ac_cv_lib_xnet_socket = yes; then
17523 cat >>confdefs.h <<_ACEOF
17524 #define HAVE_LIBXNET 1
17527 LIBS="-lxnet $LIBS"
17532 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17533 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17534 if test "${ac_cv_lib_socket_socket+set}" = set; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 ac_check_lib_save_LIBS=$LIBS
17538 LIBS="-lsocket $LIBS"
17539 cat >conftest.$ac_ext <<_ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17546 /* Override any GCC internal prototype to avoid an error.
17547 Use char because int might match the return type of a GCC
17548 builtin and then its argument prototype would still apply. */
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (ac_try="$ac_link"
17563 case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_link") 2>conftest.er1
17570 grep -v '^ *+' conftest.er1 >conftest.err
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17576 { (case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_try") 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try='test -s conftest$ac_exeext'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_lib_socket_socket=yes
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 ac_cv_lib_socket_socket=no
17603 rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605 LIBS=$ac_check_lib_save_LIBS
17607 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17608 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17609 if test $ac_cv_lib_socket_socket = yes; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define HAVE_LIBSOCKET 1
17614 LIBS="-lsocket $LIBS"
17619 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17620 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17621 if test "${ac_cv_lib_inet_socket+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 ac_check_lib_save_LIBS=$LIBS
17625 LIBS="-linet $LIBS"
17626 cat >conftest.$ac_ext <<_ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17633 /* Override any GCC internal prototype to avoid an error.
17634 Use char because int might match the return type of a GCC
17635 builtin and then its argument prototype would still apply. */
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (ac_try="$ac_link"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_link") 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663 { (case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_try") 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest$ac_exeext'
17673 { (case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_try") 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_lib_inet_socket=yes
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 ac_cv_lib_inet_socket=no
17690 rm -f core conftest.err conftest.$ac_objext \
17691 conftest$ac_exeext conftest.$ac_ext
17692 LIBS=$ac_check_lib_save_LIBS
17694 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17695 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17696 if test $ac_cv_lib_inet_socket = yes; then
17697 cat >>confdefs.h <<_ACEOF
17698 #define HAVE_LIBINET 1
17701 LIBS="-linet $LIBS"
17709 # -----------------------------------------------------------
17710 # Check whether user wants TCP wrappers support (default off)
17711 # -----------------------------------------------------------
17715 # Check whether --with-tcp-wrappers was given.
17716 if test "${with_tcp_wrappers+set}" = set; then
17717 withval=$with_tcp_wrappers;
17718 if test "x$withval" != "xno" ; then
17720 LIBS="$saved_LIBS -lwrap"
17721 { echo "$as_me:$LINENO: checking for libwrap" >&5
17722 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17723 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17724 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17725 if test "${ac_cv_search_nanosleep+set}" = set; then
17726 echo $ECHO_N "(cached) $ECHO_C" >&6
17728 ac_func_search_save_LIBS=$LIBS
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17736 /* Override any GCC internal prototype to avoid an error.
17737 Use char because int might match the return type of a GCC
17738 builtin and then its argument prototype would still apply. */
17746 return nanosleep ();
17751 for ac_lib in '' rt; do
17752 if test -z "$ac_lib"; then
17753 ac_res="none required"
17756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17758 rm -f conftest.$ac_objext conftest$ac_exeext
17759 if { (ac_try="$ac_link"
17760 case "(($ac_try" in
17761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762 *) ac_try_echo=$ac_try;;
17764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765 (eval "$ac_link") 2>conftest.er1
17767 grep -v '^ *+' conftest.er1 >conftest.err
17769 cat conftest.err >&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); } &&
17772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17773 { (case "(($ac_try" in
17774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775 *) ac_try_echo=$ac_try;;
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778 (eval "$ac_try") 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try='test -s conftest$ac_exeext'
17783 { (case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_try") 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17792 ac_cv_search_nanosleep=$ac_res
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17800 rm -f core conftest.err conftest.$ac_objext \
17802 if test "${ac_cv_search_nanosleep+set}" = set; then
17806 if test "${ac_cv_search_nanosleep+set}" = set; then
17809 ac_cv_search_nanosleep=no
17811 rm conftest.$ac_ext
17812 LIBS=$ac_func_search_save_LIBS
17814 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17815 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17816 ac_res=$ac_cv_search_nanosleep
17817 if test "$ac_res" != no; then
17818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17822 cat >conftest.$ac_ext <<_ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 #include <sys/types.h>
17830 int deny_severity = 0;
17831 int allow_severity = 0;
17832 struct request_info *req;
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17850 grep -v '^ *+' conftest.er1 >conftest.err
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest$ac_exeext'
17866 { (case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_try") 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17876 { echo "$as_me:$LINENO: result: yes" >&5
17877 echo "${ECHO_T}yes" >&6; }
17878 cat >>confdefs.h <<\_ACEOF
17879 #define HAVE_LIBWRAP 1
17887 echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17891 LIBS="$saved_LIBS -lwrap -lnsl"
17892 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17893 cat >conftest.$ac_ext <<_ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 #include <sys/types.h>
17901 int deny_severity = 0;
17902 int allow_severity = 0;
17903 struct request_info *req;
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (ac_try="$ac_link"
17914 case "(($ac_try" in
17915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916 *) ac_try_echo=$ac_try;;
17918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919 (eval "$ac_link") 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17927 { (case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_try") 2>&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try='test -s conftest$ac_exeext'
17937 { (case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_try") 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
17947 { echo "$as_me:$LINENO: result: yes" >&5
17948 echo "${ECHO_T}yes" >&6; }
17949 cat >>confdefs.h <<\_ACEOF
17950 #define HAVE_LIBWRAP 1
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17962 echo "$as_me: error: *** libwrap missing" >&2;}
17963 { (exit 1); exit 1; }; }
17967 rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17972 rm -f core conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17980 # -----------------------------------------------------------
17981 # Check whether OpenSSL is available
17982 # -----------------------------------------------------------
17983 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17984 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17986 # Check whether --with-openssl was given.
17987 if test "${with_openssl+set}" = set; then
17988 withval=$with_openssl; with_openssl_directory=${withval}
17992 if test "x$with_openssl_directory" != "x"; then
17993 OPENSSL_LIBS="-lssl -lcrypto"
17996 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17997 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17998 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
18001 saved_LIBS="${LIBS}"
18002 saved_CFLAGS="${CFLAGS}"
18003 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
18004 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
18006 cat >conftest.$ac_ext <<_ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 #include <openssl/ssl.h>
18016 CRYPTO_set_id_callback(NULL);
18021 rm -f conftest.$ac_objext conftest$ac_exeext
18022 if { (ac_try="$ac_link"
18023 case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_link") 2>conftest.er1
18030 grep -v '^ *+' conftest.er1 >conftest.err
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; } &&
18045 { ac_try='test -s conftest$ac_exeext'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18057 support_crypto="yes"
18060 echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18067 rm -f core conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076 #include <openssl/evp.h>
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (ac_try="$ac_link"
18087 case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_link") 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18100 { (case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_try") 2>&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; } &&
18109 { ac_try='test -s conftest$ac_exeext'
18110 { (case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_try") 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 ac_cv_openssl_sha2="yes"
18121 echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 ac_cv_openssl_sha2="no"
18128 rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18131 # Solaris disables greater than 128+ bit encryption in their OpenSSL
18132 # implementation, presumably for export reasons. If 192bit AES
18133 # is available, we assume that we're running with a 'non-export'
18135 cat >conftest.$ac_ext <<_ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18141 #include <openssl/evp.h>
18150 rm -f conftest.$ac_objext conftest$ac_exeext
18151 if { (ac_try="$ac_link"
18152 case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157 (eval "$ac_link") 2>conftest.er1
18159 grep -v '^ *+' conftest.er1 >conftest.err
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18165 { (case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_try") 2>&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest$ac_exeext'
18175 { (case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_try") 2>&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 ac_cv_openssl_export="no"
18186 echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 ac_cv_openssl_export="yes"
18193 rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18196 LIBS="${saved_LIBS}"
18197 CFLAGS="${saved_CFLAGS}"
18199 if test "$support_tls" = "yes"; then
18201 cat >>confdefs.h <<\_ACEOF
18202 #define HAVE_OPENSSL 1
18206 cat >>confdefs.h <<\_ACEOF
18211 cat >>confdefs.h <<\_ACEOF
18212 #define HAVE_CRYPTO 1
18217 if test "$ac_cv_openssl_sha2" = "yes"; then
18219 cat >>confdefs.h <<\_ACEOF
18220 #define HAVE_SHA2 1
18225 if test "$ac_cv_openssl_export" = "yes"; then
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
18234 support_crypto="no"
18239 { echo "$as_me:$LINENO: result: $support_tls" >&5
18240 echo "${ECHO_T}$support_tls" >&6; }
18245 # -----------------------------------------------------------
18246 # Python and OpenSSL are using dlopen
18247 # -----------------------------------------------------------
18249 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18250 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18251 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18252 if test "${ac_cv_search_dlopen+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18255 ac_func_search_save_LIBS=$LIBS
18256 cat >conftest.$ac_ext <<_ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18263 /* Override any GCC internal prototype to avoid an error.
18264 Use char because int might match the return type of a GCC
18265 builtin and then its argument prototype would still apply. */
18278 for ac_lib in '' dl; do
18279 if test -z "$ac_lib"; then
18280 ac_res="none required"
18283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18285 rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (ac_try="$ac_link"
18287 case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_link") 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest$ac_exeext'
18310 { (case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_try") 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 ac_cv_search_dlopen=$ac_res
18321 echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18327 rm -f core conftest.err conftest.$ac_objext \
18329 if test "${ac_cv_search_dlopen+set}" = set; then
18333 if test "${ac_cv_search_dlopen+set}" = set; then
18336 ac_cv_search_dlopen=no
18338 rm conftest.$ac_ext
18339 LIBS=$ac_func_search_save_LIBS
18341 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18342 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18343 ac_res=$ac_cv_search_dlopen
18344 if test "$ac_res" != no; then
18345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18351 # ------------------------------------------
18352 # Where to place working dir
18353 # ------------------------------------------
18354 working_dir=`eval echo ${prefix}/var/bacula/working`
18356 # Check whether --with-working-dir was given.
18357 if test "${with_working_dir+set}" = set; then
18358 withval=$with_working_dir;
18359 if test "x$withval" != "xno" ; then
18360 working_dir=$withval
18370 # ------------------------------------------
18371 # Where to place scriptdir (script files)
18372 # ------------------------------------------
18373 scriptdir=`eval echo ${sysconfdir}`
18375 # Check whether --with-scriptdir was given.
18376 if test "${with_scriptdir+set}" = set; then
18377 withval=$with_scriptdir;
18378 if test "x$withval" != "xno" ; then
18389 # ------------------------------------------
18390 # Where to send dump email
18391 # ------------------------------------------
18392 dump_email=root@localhost
18394 # Check whether --with-dump-email was given.
18395 if test "${with_dump_email+set}" = set; then
18396 withval=$with_dump_email;
18397 if test "x$withval" != "xno" ; then
18398 dump_email=$withval
18407 # ------------------------------------------
18408 # Where to send job email
18409 # ------------------------------------------
18410 job_email=root@localhost
18412 # Check whether --with-job-email was given.
18413 if test "${with_job_email+set}" = set; then
18414 withval=$with_job_email;
18415 if test "x$withval" != "xno" ; then
18425 # ------------------------------------------
18426 # Where to find smtp host
18427 # ------------------------------------------
18428 smtp_host=localhost
18430 # Check whether --with-smtp_host was given.
18431 if test "${with_smtp_host+set}" = set; then
18432 withval=$with_smtp_host;
18433 if test "x$withval" != "xno" ; then
18444 # ------------------------------------
18445 # Where to place pid files
18446 # ------------------------------------
18449 # Check whether --with-pid-dir was given.
18450 if test "${with_pid_dir+set}" = set; then
18451 withval=$with_pid_dir;
18452 if test "x$withval" != "xno" ; then
18460 cat >>confdefs.h <<_ACEOF
18461 #define _PATH_BACULA_PIDDIR "$piddir"
18467 # ------------------------------------
18468 # Where to place subsys "lock file"
18469 # ------------------------------------
18470 ubsysdir=/var/run/subsys
18471 if test -d /var/run/subsys; then
18472 subsysdir=/var/run/subsys
18473 elif test -d /var/lock/subsys; then
18474 subsysdir=/var/lock/subsys
18476 subsysdir=/var/run/subsys
18479 # Check whether --with-subsys-dir was given.
18480 if test "${with_subsys_dir+set}" = set; then
18481 withval=$with_subsys_dir;
18482 if test "x$withval" != "xno" ; then
18494 # ------------------------------------
18495 # Where to start assigning ports
18496 # ------------------------------------
18499 # Check whether --with-baseport was given.
18500 if test "${with_baseport+set}" = set; then
18501 withval=$with_baseport;
18502 if test "x$withval" != "xno" ; then
18511 dir_port=`expr $baseport`
18512 fd_port=`expr $baseport + 1`
18513 sd_port=`expr $fd_port + 1`
18520 # ------------------------------------------
18521 # Generate passwords
18522 # ------------------------------------------
18525 # Check whether --with-dir-password was given.
18526 if test "${with_dir_password+set}" = set; then
18527 withval=$with_dir_password;
18528 if test "x$withval" != "xno" ; then
18529 dir_password=$withval
18536 if test "x$dir_password" = "x" ; then
18537 if test "x$OPENSSL" = "xnone" ; then
18538 key=`autoconf/randpass 33`
18540 key=`openssl rand -base64 33`
18547 # Check whether --with-fd-password was given.
18548 if test "${with_fd_password+set}" = set; then
18549 withval=$with_fd_password;
18550 if test "x$withval" != "xno" ; then
18551 fd_password=$withval
18558 if test "x$fd_password" = "x" ; then
18559 if test "x$OPENSSL" = "xnone" ; then
18560 key=`autoconf/randpass 37`
18562 key=`openssl rand -base64 33`
18569 # Check whether --with-sd-password was given.
18570 if test "${with_sd_password+set}" = set; then
18571 withval=$with_sd_password;
18572 if test "x$withval" != "xno" ; then
18573 sd_password=$withval
18580 if test "x$sd_password" = "x" ; then
18581 if test "x$OPENSSL" = "xnone" ; then
18582 key=`autoconf/randpass 41`
18584 key=`openssl rand -base64 33`
18591 # Check whether --with-mon-dir-password was given.
18592 if test "${with_mon_dir_password+set}" = set; then
18593 withval=$with_mon_dir_password;
18594 if test "x$withval" != "xno" ; then
18595 mon_dir_password=$withval
18602 if test "x$mon_dir_password" = "x" ; then
18603 if test "x$OPENSSL" = "xnone" ; then
18604 key=`autoconf/randpass 33`
18606 key=`openssl rand -base64 33`
18608 mon_dir_password=$key
18613 # Check whether --with-mon-fd-password was given.
18614 if test "${with_mon_fd_password+set}" = set; then
18615 withval=$with_mon_fd_password;
18616 if test "x$withval" != "xno" ; then
18617 mon_fd_password=$withval
18624 if test "x$mon_fd_password" = "x" ; then
18625 if test "x$OPENSSL" = "xnone" ; then
18626 key=`autoconf/randpass 37`
18628 key=`openssl rand -base64 33`
18630 mon_fd_password=$key
18635 # Check whether --with-mon-sd-password was given.
18636 if test "${with_mon_sd_password+set}" = set; then
18637 withval=$with_mon_sd_password;
18638 if test "x$withval" != "xno" ; then
18639 mon_sd_password=$withval
18646 if test "x$mon_sd_password" = "x" ; then
18647 if test "x$OPENSSL" = "xnone" ; then
18648 key=`autoconf/randpass 41`
18650 key=`openssl rand -base64 33`
18652 mon_sd_password=$key
18663 # Pickup any database name
18667 # Check whether --with-db_name was given.
18668 if test "${with_db_name+set}" = set; then
18669 withval=$with_db_name;
18670 if test "x$withval" != "x" ; then
18681 # Check whether --with-db_user was given.
18682 if test "${with_db_user+set}" = set; then
18683 withval=$with_db_user;
18684 if test "x$withval" != "x" ; then
18695 # Handle users and groups for each daemon
18699 # Check whether --with-dir_user was given.
18700 if test "${with_dir_user+set}" = set; then
18701 withval=$with_dir_user;
18702 if test "x$withval" != "x" ; then
18712 # Check whether --with-dir_group was given.
18713 if test "${with_dir_group+set}" = set; then
18714 withval=$with_dir_group;
18715 if test "x$withval" != "x" ; then
18725 # Check whether --with-sd_user was given.
18726 if test "${with_sd_user+set}" = set; then
18727 withval=$with_sd_user;
18728 if test "x$withval" != "x" ; then
18738 # Check whether --with-sd_group was given.
18739 if test "${with_sd_group+set}" = set; then
18740 withval=$with_sd_group;
18741 if test "x$withval" != "x" ; then
18751 # Check whether --with-fd_user was given.
18752 if test "${with_fd_user+set}" = set; then
18753 withval=$with_fd_user;
18754 if test "x$withval" != "x" ; then
18764 # Check whether --with-fd_group was given.
18765 if test "${with_fd_group+set}" = set; then
18766 withval=$with_fd_group;
18767 if test "x$withval" != "x" ; then
18783 # allow setting default executable permissions
18787 # Check whether --with-sbin-perm was given.
18788 if test "${with_sbin_perm+set}" = set; then
18789 withval=$with_sbin_perm;
18790 if test "x$withval" != "x" ; then
18800 # ------------------------------------------------
18801 # Bacula check for various SQL database engines
18802 # ------------------------------------------------
18806 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18807 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18809 # Check whether --with-postgresql was given.
18810 if test "${with_postgresql+set}" = set; then
18811 withval=$with_postgresql;
18812 if test "$withval" != "no"; then
18813 if test "$db_found" = "yes"; then
18814 { echo "$as_me:$LINENO: result: error" >&5
18815 echo "${ECHO_T}error" >&6; }
18816 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18817 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18818 { (exit 1); exit 1; }; };
18820 if test "$withval" = "yes"; then
18821 PG_CONFIG=`which pg_config`
18822 if test -n "$PG_CONFIG";then
18823 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18824 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18825 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18826 elif test -f /usr/local/include/libpq-fe.h; then
18827 POSTGRESQL_INCDIR=/usr/local/include
18828 if test -d /usr/local/lib64; then
18829 POSTGRESQL_LIBDIR=/usr/local/lib64
18831 POSTGRESQL_LIBDIR=/usr/local/lib
18833 POSTGRESQL_BINDIR=/usr/local/bin
18834 elif test -f /usr/include/libpq-fe.h; then
18835 POSTGRESQL_INCDIR=/usr/include
18836 if test -d /usr/lib64; then
18837 POSTGRESQL_LIBDIR=/usr/lib64
18839 POSTGRESQL_LIBDIR=/usr/lib
18841 POSTGRESQL_BINDIR=/usr/bin
18842 elif test -f /usr/include/pgsql/libpq-fe.h; then
18843 POSTGRESQL_INCDIR=/usr/include/pgsql
18844 if test -d /usr/lib64/pgsql; then
18845 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18847 POSTGRESQL_LIBDIR=/usr/lib/pgsql
18849 POSTGRESQL_BINDIR=/usr/bin
18850 elif test -f /usr/include/postgresql/libpq-fe.h; then
18851 POSTGRESQL_INCDIR=/usr/include/postgresql
18852 if test -d /usr/lib64/postgresql; then
18853 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18855 POSTGRESQL_LIBDIR=/usr/lib/postgresql
18857 POSTGRESQL_BINDIR=/usr/bin
18859 { echo "$as_me:$LINENO: result: no" >&5
18860 echo "${ECHO_T}no" >&6; }
18861 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18862 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18863 { (exit 1); exit 1; }; }
18865 elif test -f $withval/include/libpq-fe.h; then
18866 POSTGRESQL_INCDIR=$withval/include
18867 POSTGRESQL_LIBDIR=$withval/lib
18868 POSTGRESQL_BINDIR=$withval/bin
18869 elif test -f $withval/include/postgresql/libpq-fe.h; then
18870 POSTGRESQL_INCDIR=$withval/include/postgresql
18871 if test -d $withval/lib64; then
18872 POSTGRESQL_LIBDIR=$withval/lib64
18874 POSTGRESQL_LIBDIR=$withval/lib
18876 POSTGRESQL_BINDIR=$withval/bin
18878 { echo "$as_me:$LINENO: result: no" >&5
18879 echo "${ECHO_T}no" >&6; }
18880 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18881 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18882 { (exit 1); exit 1; }; }
18884 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18885 { echo "$as_me:$LINENO: checking for crypt" >&5
18886 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18887 if test "${ac_cv_func_crypt+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 cat >conftest.$ac_ext <<_ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18898 #define crypt innocuous_crypt
18900 /* System header to define __stub macros and hopefully few prototypes,
18901 which can conflict with char crypt (); below.
18902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18903 <limits.h> exists even on freestanding compilers. */
18906 # include <limits.h>
18908 # include <assert.h>
18913 /* Override any GCC internal prototype to avoid an error.
18914 Use char because int might match the return type of a GCC
18915 builtin and then its argument prototype would still apply. */
18920 /* The GNU C library defines this for functions which it implements
18921 to always fail with ENOSYS. Some functions are actually named
18922 something starting with __ and the normal name is an alias. */
18923 #if defined __stub_crypt || defined __stub___crypt
18935 rm -f conftest.$ac_objext conftest$ac_exeext
18936 if { (ac_try="$ac_link"
18937 case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942 (eval "$ac_link") 2>conftest.er1
18944 grep -v '^ *+' conftest.er1 >conftest.err
18946 cat conftest.err >&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18950 { (case "(($ac_try" in
18951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952 *) ac_try_echo=$ac_try;;
18954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955 (eval "$ac_try") 2>&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; } &&
18959 { ac_try='test -s conftest$ac_exeext'
18960 { (case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_try") 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 ac_cv_func_crypt=yes
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 ac_cv_func_crypt=no
18977 rm -f core conftest.err conftest.$ac_objext \
18978 conftest$ac_exeext conftest.$ac_ext
18980 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18981 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18982 if test $ac_cv_func_crypt = yes; then
18985 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18986 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18987 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 ac_check_lib_save_LIBS=$LIBS
18991 LIBS="-lcrypt $LIBS"
18992 cat >conftest.$ac_ext <<_ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h. */
18999 /* Override any GCC internal prototype to avoid an error.
19000 Use char because int might match the return type of a GCC
19001 builtin and then its argument prototype would still apply. */
19014 rm -f conftest.$ac_objext conftest$ac_exeext
19015 if { (ac_try="$ac_link"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_link") 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19029 { (case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_try") 2>&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; } &&
19038 { ac_try='test -s conftest$ac_exeext'
19039 { (case "(($ac_try" in
19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_try") 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 ac_cv_lib_crypt_crypt=yes
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19053 ac_cv_lib_crypt_crypt=no
19056 rm -f core conftest.err conftest.$ac_objext \
19057 conftest$ac_exeext conftest.$ac_ext
19058 LIBS=$ac_check_lib_save_LIBS
19060 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19061 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
19062 if test $ac_cv_lib_crypt_crypt = yes; then
19063 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
19068 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
19069 SQL_LFLAGS=$POSTGRESQL_LFLAGS
19070 SQL_BINDIR=$POSTGRESQL_BINDIR
19071 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE_POSTGRESQL 1
19077 { echo "$as_me:$LINENO: result: yes" >&5
19078 echo "${ECHO_T}yes" >&6; }
19080 support_postgresql=yes
19084 { echo "$as_me:$LINENO: result: no" >&5
19085 echo "${ECHO_T}no" >&6; }
19090 { echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6; }
19103 { echo "$as_me:$LINENO: checking for MySQL support" >&5
19104 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
19106 # Check whether --with-mysql was given.
19107 if test "${with_mysql+set}" = set; then
19108 withval=$with_mysql;
19109 if test "$withval" != "no"; then
19110 if test "$withval" = "yes"; then
19111 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19112 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19113 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
19114 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
19115 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19117 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19119 MYSQL_BINDIR=/usr/local/mysql/bin
19120 elif test -f /usr/include/mysql/mysql.h; then
19121 MYSQL_INCDIR=/usr/include/mysql
19122 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
19123 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
19124 MYSQL_LIBDIR=/usr/lib64/mysql
19125 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
19126 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
19127 MYSQL_LIBDIR=/usr/lib/mysql
19129 MYSQL_LIBDIR=/usr/lib
19131 MYSQL_BINDIR=/usr/bin
19132 elif test -f /usr/include/mysql.h; then
19133 MYSQL_INCDIR=/usr/include
19134 if test -f /usr/lib64/libmysqlclient_r.a \
19135 -o -f /usr/lib64/libmysqlclient_r.so; then
19136 MYSQL_LIBDIR=/usr/lib64
19138 MYSQL_LIBDIR=/usr/lib
19140 MYSQL_BINDIR=/usr/bin
19141 elif test -f /usr/local/include/mysql/mysql.h; then
19142 MYSQL_INCDIR=/usr/local/include/mysql
19143 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
19144 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
19145 MYSQL_LIBDIR=/usr/local/lib64/mysql
19147 MYSQL_LIBDIR=/usr/local/lib/mysql
19149 MYSQL_BINDIR=/usr/local/bin
19150 elif test -f /usr/local/include/mysql.h; then
19151 MYSQL_INCDIR=/usr/local/include
19152 if test -f /usr/local/lib64/libmysqlclient_r.a \
19153 -o -f /usr/local/lib64/libmysqlclient_r.so; then
19154 MYSQL_LIBDIR=/usr/local/lib64
19156 MYSQL_LIBDIR=/usr/local/lib
19158 MYSQL_BINDIR=/usr/local/bin
19160 { echo "$as_me:$LINENO: result: no" >&5
19161 echo "${ECHO_T}no" >&6; }
19162 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19163 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19164 { (exit 1); exit 1; }; }
19167 if test -f $withval/include/mysql/mysql.h; then
19168 MYSQL_INCDIR=$withval/include/mysql
19169 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
19170 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
19171 MYSQL_LIBDIR=$withval/lib64/mysql
19173 MYSQL_LIBDIR=$withval/lib/mysql
19175 if test -f $withval/lib/libmysqlclient_r.so; then
19176 MYSQL_LIBDIR=$withval/lib
19179 MYSQL_BINDIR=$withval/bin
19180 elif test -f $withval/include/mysql.h; then
19181 MYSQL_INCDIR=$withval/include
19182 if test -f $withval/lib64/libmysqlclient_r.a \
19183 -o -f $withval/lib64/libmysqlclient_r.so; then
19184 MYSQL_LIBDIR=$withval/lib64
19186 MYSQL_LIBDIR=$withval/lib
19188 MYSQL_BINDIR=$withval/bin
19190 { echo "$as_me:$LINENO: result: no" >&5
19191 echo "${ECHO_T}no" >&6; }
19192 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19193 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19194 { (exit 1); exit 1; }; }
19197 SQL_INCLUDE=-I$MYSQL_INCDIR
19198 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
19199 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
19200 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE_THREAD_SAFE_MYSQL 1
19206 SQL_BINDIR=$MYSQL_BINDIR
19207 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
19209 cat >>confdefs.h <<\_ACEOF
19210 #define HAVE_MYSQL 1
19213 { echo "$as_me:$LINENO: result: yes" >&5
19214 echo "${ECHO_T}yes" >&6; }
19221 { echo "$as_me:$LINENO: result: no" >&5
19222 echo "${ECHO_T}no" >&6; }
19230 # Check whether --with-embedded-mysql was given.
19231 if test "${with_embedded_mysql+set}" = set; then
19232 withval=$with_embedded_mysql;
19233 if test "$withval" != "no"; then
19234 if test "$withval" = "yes"; then
19235 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19236 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19237 if test -d /usr/local/mysql/lib64/mysql; then
19238 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19240 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19242 MYSQL_BINDIR=/usr/local/mysql/bin
19243 elif test -f /usr/include/mysql/mysql.h; then
19244 MYSQL_INCDIR=/usr/include/mysql
19245 if test -d /usr/lib64/mysql; then
19246 MYSQL_LIBDIR=/usr/lib64/mysql
19248 MYSQL_LIBDIR=/usr/lib/mysql
19250 MYSQL_BINDIR=/usr/bin
19251 elif test -f /usr/include/mysql.h; then
19252 MYSQL_INCDIR=/usr/include
19253 if test -d /usr/lib64; then
19254 MYSQL_LIBDIR=/usr/lib64
19256 MYSQL_LIBDIR=/usr/lib
19258 MYSQL_BINDIR=/usr/bin
19259 elif test -f /usr/local/include/mysql/mysql.h; then
19260 MYSQL_INCDIR=/usr/local/include/mysql
19261 if test -d /usr/local/lib64/mysql; then
19262 MYSQL_LIBDIR=/usr/local/lib64/mysql
19264 MYSQL_LIBDIR=/usr/local/lib/mysql
19266 MYSQL_BINDIR=/usr/local/bin
19267 elif test -f /usr/local/include/mysql.h; then
19268 MYSQL_INCDIR=/usr/local/include
19269 if test -d /usr/local/lib64; then
19270 MYSQL_LIBDIR=/usr/local/lib64
19272 MYSQL_LIBDIR=/usr/local/lib
19274 MYSQL_BINDIR=/usr/local/bin
19276 { echo "$as_me:$LINENO: result: no" >&5
19277 echo "${ECHO_T}no" >&6; }
19278 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19279 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19280 { (exit 1); exit 1; }; }
19283 if test -f $withval/include/mysql/mysql.h; then
19284 MYSQL_INCDIR=$withval/include/mysql
19285 if test -d $withval/lib64/mysql; then
19286 MYSQL_LIBDIR=$withval/lib64/mysql
19288 MYSQL_LIBDIR=$withval/lib/mysql
19290 MYSQL_BINDIR=$withval/bin
19291 elif test -f $withval/include/mysql.h; then
19292 MYSQL_INCDIR=$withval/include
19293 if test -d $withval/lib64; then
19294 MYSQL_LIBDIR=$withval/lib64
19296 MYSQL_LIBDIR=$withval/lib
19298 MYSQL_BINDIR=$withval/bin
19300 { echo "$as_me:$LINENO: result: no" >&5
19301 echo "${ECHO_T}no" >&6; }
19302 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19303 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19304 { (exit 1); exit 1; }; }
19307 SQL_INCLUDE=-I$MYSQL_INCDIR
19308 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19309 SQL_BINDIR=$MYSQL_BINDIR
19310 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
19312 cat >>confdefs.h <<\_ACEOF
19313 #define HAVE_MYSQL 1
19316 cat >>confdefs.h <<\_ACEOF
19317 #define HAVE_EMBEDDED_MYSQL 1
19320 { echo "$as_me:$LINENO: result: yes" >&5
19321 echo "${ECHO_T}yes" >&6; }
19328 { echo "$as_me:$LINENO: result: no" >&5
19329 echo "${ECHO_T}no" >&6; }
19345 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19346 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19348 # Check whether --with-sqlite3 was given.
19349 if test "${with_sqlite3+set}" = set; then
19350 withval=$with_sqlite3;
19351 if test "$withval" != "no"; then
19352 if test "$withval" = "yes"; then
19353 if test -f /usr/local/include/sqlite3.h; then
19354 SQLITE_INCDIR=/usr/local/include
19355 if test -d /usr/local/lib64; then
19356 SQLITE_LIBDIR=/usr/local/lib64
19358 SQLITE_LIBDIR=/usr/local/lib
19360 SQLITE_BINDIR=/usr/local/bin
19361 elif test -f /usr/include/sqlite3.h; then
19362 SQLITE_INCDIR=/usr/include
19363 if test -d /usr/lib64; then
19364 SQLITE_LIBDIR=/usr/lib64
19366 SQLITE_LIBDIR=/usr/lib
19368 SQLITE_BINDIR=/usr/bin
19369 elif test -f $prefix/include/sqlite3.h; then
19370 SQLITE_INCDIR=$prefix/include
19371 if test -d $prefix/lib64; then
19372 SQLITE_LIBDIR=$prefix/lib64
19374 SQLITE_LIBDIR=$prefix/lib
19376 SQLITE_BINDIR=$prefix/bin
19378 { echo "$as_me:$LINENO: result: no" >&5
19379 echo "${ECHO_T}no" >&6; }
19380 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19381 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19382 { (exit 1); exit 1; }; }
19385 if test -f $withval/sqlite3.h; then
19386 SQLITE_INCDIR=$withval
19387 SQLITE_LIBDIR=$withval
19388 SQLITE_BINDIR=$withval
19389 elif test -f $withval/include/sqlite3.h; then
19390 SQLITE_INCDIR=$withval/include
19391 if test -d $withval/lib64; then
19392 SQLITE_LIBDIR=$withval/lib64
19394 SQLITE_LIBDIR=$withval/lib
19396 SQLITE_BINDIR=$withval/bin
19398 { echo "$as_me:$LINENO: result: no" >&5
19399 echo "${ECHO_T}no" >&6; }
19400 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19401 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19402 { (exit 1); exit 1; }; }
19405 SQL_INCLUDE=-I$SQLITE_INCDIR
19406 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19407 SQL_BINDIR=$SQLITE_BINDIR
19408 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
19410 cat >>confdefs.h <<\_ACEOF
19411 #define HAVE_SQLITE3 1
19414 { echo "$as_me:$LINENO: result: yes" >&5
19415 echo "${ECHO_T}yes" >&6; }
19417 support_sqlite3=yes
19422 { echo "$as_me:$LINENO: result: no" >&5
19423 echo "${ECHO_T}no" >&6; }
19428 { echo "$as_me:$LINENO: result: no" >&5
19429 echo "${ECHO_T}no" >&6; }
19441 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19442 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19444 # Check whether --with-sqlite was given.
19445 if test "${with_sqlite+set}" = set; then
19446 withval=$with_sqlite;
19447 if test "$withval" != "no"; then
19448 if test "$withval" = "yes"; then
19449 if test -f /usr/local/include/sqlite.h; then
19450 SQLITE_INCDIR=/usr/local/include
19451 if test -d /usr/local/lib64; then
19452 SQLITE_LIBDIR=/usr/local/lib64
19454 SQLITE_LIBDIR=/usr/local/lib
19456 SQLITE_BINDIR=/usr/local/bin
19457 elif test -f /usr/include/sqlite.h; then
19458 SQLITE_INCDIR=/usr/include
19459 if test -d /usr/lib64; then
19460 SQLITE_LIBDIR=/usr/lib64
19462 SQLITE_LIBDIR=/usr/lib
19464 SQLITE_BINDIR=/usr/bin
19465 elif test -f $prefix/include/sqlite.h; then
19466 SQLITE_INCDIR=$prefix/include
19467 if test -d $prefix/lib64; then
19468 SQLITE_LIBDIR=$prefix/lib64
19470 SQLITE_LIBDIR=$prefix/lib
19472 SQLITE_BINDIR=$prefix/bin
19474 { echo "$as_me:$LINENO: result: no" >&5
19475 echo "${ECHO_T}no" >&6; }
19476 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19477 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19478 { (exit 1); exit 1; }; }
19481 if test -f $withval/sqlite.h; then
19482 SQLITE_INCDIR=$withval
19483 SQLITE_LIBDIR=$withval
19484 SQLITE_BINDIR=$withval
19485 elif test -f $withval/include/sqlite.h; then
19486 SQLITE_INCDIR=$withval/include
19487 if test -d $withval/lib64; then
19488 SQLITE_LIBDIR=$withval/lib64
19490 SQLITE_LIBDIR=$withval/lib
19492 SQLITE_BINDIR=$withval/bin
19494 { echo "$as_me:$LINENO: result: no" >&5
19495 echo "${ECHO_T}no" >&6; }
19496 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19497 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19498 { (exit 1); exit 1; }; }
19501 SQL_INCLUDE=-I$SQLITE_INCDIR
19502 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19503 SQL_BINDIR=$SQLITE_BINDIR
19504 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
19506 cat >>confdefs.h <<\_ACEOF
19507 #define HAVE_SQLITE 1
19510 { echo "$as_me:$LINENO: result: yes" >&5
19511 echo "${ECHO_T}yes" >&6; }
19518 { echo "$as_me:$LINENO: result: no" >&5
19519 echo "${ECHO_T}no" >&6; }
19524 { echo "$as_me:$LINENO: result: no" >&5
19525 echo "${ECHO_T}no" >&6; }
19538 # -------------------------------------------
19539 # enable batch attribute DB insert (default on)
19540 # -------------------------------------------
19541 support_batch_insert=no
19542 A=`nm $SQL_LIB | grep pthread_mutex_lock`
19544 if test $pkg = 0; then
19545 support_batch_insert=yes
19546 # Check whether --enable-batch-insert was given.
19547 if test "${enable_batch_insert+set}" = set; then
19548 enableval=$enable_batch_insert; if test x$enableval = xno; then
19549 support_batch_insert=no
19551 support_batch_insert=yes
19557 if test $support_batch_insert = yes ; then
19559 cat >>confdefs.h <<\_ACEOF
19560 #define HAVE_BATCH_FILE_INSERT 1
19566 cat >>confdefs.h <<\_ACEOF
19567 #define PROTOTYPES 1
19571 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19572 if test -z "$CCOPTS"; then
19573 CCOPTS='-g -O2 -Wall'
19581 largefile_support="no"
19583 # Check whether --enable-largefile was given.
19584 if test "${enable_largefile+set}" = set; then
19585 enableval=$enable_largefile;
19588 if test "$enable_largefile" != no; then
19589 if test -n "$ac_tool_prefix"; then
19590 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19591 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19594 if test "${ac_cv_prog_GETCONF+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 if test -n "$GETCONF"; then
19598 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19601 for as_dir in $PATH
19604 test -z "$as_dir" && as_dir=.
19605 for ac_exec_ext in '' $ac_executable_extensions; do
19606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19607 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19617 GETCONF=$ac_cv_prog_GETCONF
19618 if test -n "$GETCONF"; then
19619 { echo "$as_me:$LINENO: result: $GETCONF" >&5
19620 echo "${ECHO_T}$GETCONF" >&6; }
19622 { echo "$as_me:$LINENO: result: no" >&5
19623 echo "${ECHO_T}no" >&6; }
19628 if test -z "$ac_cv_prog_GETCONF"; then
19629 ac_ct_GETCONF=$GETCONF
19630 # Extract the first word of "getconf", so it can be a program name with args.
19631 set dummy getconf; ac_word=$2
19632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19634 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 if test -n "$ac_ct_GETCONF"; then
19638 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19641 for as_dir in $PATH
19644 test -z "$as_dir" && as_dir=.
19645 for ac_exec_ext in '' $ac_executable_extensions; do
19646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19647 ac_cv_prog_ac_ct_GETCONF="getconf"
19648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19657 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19658 if test -n "$ac_ct_GETCONF"; then
19659 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19660 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19662 { echo "$as_me:$LINENO: result: no" >&5
19663 echo "${ECHO_T}no" >&6; }
19666 if test "x$ac_ct_GETCONF" = x; then
19669 case $cross_compiling:$ac_tool_warned in
19671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19672 whose name does not start with the host triplet. If you think this
19673 configuration is useful to you, please write to autoconf@gnu.org." >&5
19674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19675 whose name does not start with the host triplet. If you think this
19676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19677 ac_tool_warned=yes ;;
19679 GETCONF=$ac_ct_GETCONF
19682 GETCONF="$ac_cv_prog_GETCONF"
19685 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19686 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19687 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19691 ac_cv_sys_largefile_CFLAGS=no
19693 # IRIX 6.2 and later require cc -n32.
19694 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19695 if test "$GCC" != yes; then
19696 ac_cv_sys_largefile_CFLAGS=-n32
19699 CC="$CC $ac_cv_sys_largefile_CFLAGS"
19700 cat >conftest.$ac_ext <<_ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (ac_try="$ac_link"
19717 case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_link") 2>conftest.er1
19724 grep -v '^ *+' conftest.er1 >conftest.err
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } &&
19729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19730 { (case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_try") 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; } &&
19739 { ac_try='test -s conftest$ac_exeext'
19740 { (case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_try") 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_sys_largefile_CFLAGS=no
19757 rm -f core conftest.err conftest.$ac_objext \
19758 conftest$ac_exeext conftest.$ac_ext
19763 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19764 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19765 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19766 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19767 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19770 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19771 ac_cv_sys_largefile_LDFLAGS=no
19775 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19776 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19777 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19778 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19779 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19783 ac_cv_sys_largefile_LIBS=no
19787 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19788 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19790 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19793 -D_FILE_OFFSET_BITS=*) ;;
19794 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19795 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19800 case "$CPPFLAGS" in
19801 '') CPPFLAGS="$ac_flag" ;;
19802 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19810 '') CFLAGS="$ac_flag" ;;
19811 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19816 case "$ac_cv_sys_largefile_LDFLAGS" in
19820 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19821 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19824 case "$ac_cv_sys_largefile_LIBS" in
19828 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19829 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19832 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19833 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19834 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 ac_cv_sys_file_offset_bits=no
19838 ac_cv_sys_file_offset_bits=64
19839 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19841 -D_FILE_OFFSET_BITS)
19842 ac_cv_sys_file_offset_bits=1 ;;
19843 -D_FILE_OFFSET_BITS=*)
19844 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19849 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19850 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19851 if test "$ac_cv_sys_file_offset_bits" != no; then
19853 cat >>confdefs.h <<_ACEOF
19854 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19858 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19859 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19860 if test "${ac_cv_sys_largefile_source+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19863 ac_cv_sys_largefile_source=no
19864 ac_cv_sys_largefile_source=1
19865 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19867 -D_LARGEFILE_SOURCE)
19868 ac_cv_sys_largefile_source=1 ;;
19869 -D_LARGEFILE_SOURCE=*)
19870 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19875 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19876 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19877 if test "$ac_cv_sys_largefile_source" != no; then
19879 cat >>confdefs.h <<_ACEOF
19880 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19884 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19885 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19886 if test "${ac_cv_sys_large_files+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19889 ac_cv_sys_large_files=no
19890 ac_cv_sys_large_files=1
19891 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19894 ac_cv_sys_large_files=1 ;;
19896 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19901 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19902 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19903 if test "$ac_cv_sys_large_files" != no; then
19905 cat >>confdefs.h <<_ACEOF
19906 #define _LARGE_FILES $ac_cv_sys_large_files
19914 { echo "$as_me:$LINENO: checking for X" >&5
19915 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19918 # Check whether --with-x was given.
19919 if test "${with_x+set}" = set; then
19923 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19924 if test "x$with_x" = xno; then
19925 # The user explicitly disabled X.
19928 case $x_includes,$x_libraries in #(
19929 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19930 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19931 { (exit 1); exit 1; }; };; #(
19932 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 # One or both of the vars are not set, and there is no cached value.
19936 ac_x_includes=no ac_x_libraries=no
19937 rm -f -r conftest.dir
19938 if mkdir conftest.dir; then
19940 cat >Imakefile <<'_ACEOF'
19942 @echo incroot='${INCROOT}'
19944 @echo usrlibdir='${USRLIBDIR}'
19946 @echo libdir='${LIBDIR}'
19948 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19950 for ac_var in incroot usrlibdir libdir; do
19951 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19953 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19954 for ac_extension in a so sl; do
19955 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19956 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19957 ac_im_usrlibdir=$ac_im_libdir; break
19960 # Screen out bogus values from the imake configuration. They are
19961 # bogus both because they are the default anyway, and because
19962 # using them would break gcc on systems where it needs fixed includes.
19963 case $ac_im_incroot in
19964 /usr/include) ac_x_includes= ;;
19965 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19967 case $ac_im_usrlibdir in
19968 /usr/lib | /lib) ;;
19969 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19973 rm -f -r conftest.dir
19976 # Standard set of common directories for X headers.
19977 # Check X11 before X11Rn because it is often a symlink to the current release.
19989 /usr/local/X11/include
19990 /usr/local/X11R6/include
19991 /usr/local/X11R5/include
19992 /usr/local/X11R4/include
19994 /usr/local/include/X11
19995 /usr/local/include/X11R6
19996 /usr/local/include/X11R5
19997 /usr/local/include/X11R4
20001 /usr/XFree86/include/X11
20005 /usr/unsupported/include
20006 /usr/athena/include
20007 /usr/local/x11r5/include
20008 /usr/lpp/Xamples/include
20010 /usr/openwin/include
20011 /usr/openwin/share/include'
20013 if test "$ac_x_includes" = no; then
20014 # Guess where to find include files, by looking for Xlib.h.
20015 # First, try using that file with no special directory specified.
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <X11/Xlib.h>
20024 if { (ac_try="$ac_cpp conftest.$ac_ext"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } >/dev/null; then
20037 if test -s conftest.err; then
20038 ac_cpp_err=$ac_c_preproc_warn_flag
20039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20046 if test -z "$ac_cpp_err"; then
20047 # We can compile using X headers with no special include directory.
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 for ac_dir in $ac_x_header_dirs; do
20054 if test -r "$ac_dir/X11/Xlib.h"; then
20055 ac_x_includes=$ac_dir
20061 rm -f conftest.err conftest.$ac_ext
20062 fi # $ac_x_includes = no
20064 if test "$ac_x_libraries" = no; then
20065 # Check for the libraries.
20066 # See if we find them without any special options.
20067 # Don't add to $LIBS permanently.
20070 cat >conftest.$ac_ext <<_ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 #include <X11/Xlib.h>
20085 rm -f conftest.$ac_objext conftest$ac_exeext
20086 if { (ac_try="$ac_link"
20087 case "(($ac_try" in
20088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089 *) ac_try_echo=$ac_try;;
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092 (eval "$ac_link") 2>conftest.er1
20094 grep -v '^ *+' conftest.er1 >conftest.err
20096 cat conftest.err >&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } &&
20099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20100 { (case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_try") 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest$ac_exeext'
20110 { (case "(($ac_try" in
20111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112 *) ac_try_echo=$ac_try;;
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115 (eval "$ac_try") 2>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20120 # We can link X programs with no special library path.
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20127 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20129 # Don't even attempt the hair of trying to link an X program!
20130 for ac_extension in a so sl; do
20131 if test -r "$ac_dir/libXt.$ac_extension"; then
20132 ac_x_libraries=$ac_dir
20139 rm -f core conftest.err conftest.$ac_objext \
20140 conftest$ac_exeext conftest.$ac_ext
20141 fi # $ac_x_libraries = no
20143 case $ac_x_includes,$ac_x_libraries in #(
20144 no,* | *,no | *\'*)
20145 # Didn't find X, or a directory has "'" in its name.
20146 ac_cv_have_x="have_x=no";; #(
20148 # Record where we found X for the cache.
20149 ac_cv_have_x="have_x=yes\
20150 ac_x_includes='$ac_x_includes'\
20151 ac_x_libraries='$ac_x_libraries'"
20157 eval "$ac_cv_have_x"
20160 if test "$have_x" != yes; then
20161 { echo "$as_me:$LINENO: result: $have_x" >&5
20162 echo "${ECHO_T}$have_x" >&6; }
20165 # If each of the values was on the command line, it overrides each guess.
20166 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20167 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20168 # Update the cache value to reflect the command line values.
20169 ac_cv_have_x="have_x=yes\
20170 ac_x_includes='$x_includes'\
20171 ac_x_libraries='$x_libraries'"
20172 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20173 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20176 if test "$no_x" = yes; then
20177 # Not all programs may use this symbol, but it does not hurt to define it.
20179 cat >>confdefs.h <<\_ACEOF
20180 #define X_DISPLAY_MISSING 1
20183 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20185 if test -n "$x_includes"; then
20186 X_CFLAGS="$X_CFLAGS -I$x_includes"
20189 # It would also be nice to do this for all -L options, not just this one.
20190 if test -n "$x_libraries"; then
20191 X_LIBS="$X_LIBS -L$x_libraries"
20192 # For Solaris; some versions of Sun CC require a space after -R and
20193 # others require no space. Words are not sufficient . . . .
20194 case `(uname -sr) 2>/dev/null` in
20196 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20197 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20198 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20214 rm -f conftest.$ac_objext conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_link") 2>conftest.er1
20223 grep -v '^ *+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
20228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20229 { (case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_try") 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest$ac_exeext'
20239 { (case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_try") 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20250 echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20256 rm -f core conftest.err conftest.$ac_objext \
20257 conftest$ac_exeext conftest.$ac_ext
20258 if test $ac_R_nospace = yes; then
20259 { echo "$as_me:$LINENO: result: no" >&5
20260 echo "${ECHO_T}no" >&6; }
20261 X_LIBS="$X_LIBS -R$x_libraries"
20263 LIBS="$ac_xsave_LIBS -R $x_libraries"
20264 cat >conftest.$ac_ext <<_ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_link") 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } &&
20293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20294 { (case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_try") 2>&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest$ac_exeext'
20304 { (case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309 (eval "$ac_try") 2>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20321 rm -f core conftest.err conftest.$ac_objext \
20322 conftest$ac_exeext conftest.$ac_ext
20323 if test $ac_R_space = yes; then
20324 { echo "$as_me:$LINENO: result: yes" >&5
20325 echo "${ECHO_T}yes" >&6; }
20326 X_LIBS="$X_LIBS -R $x_libraries"
20328 { echo "$as_me:$LINENO: result: neither works" >&5
20329 echo "${ECHO_T}neither works" >&6; }
20332 LIBS=$ac_xsave_LIBS
20336 # Check for system-dependent libraries X programs must link with.
20337 # Do this before checking for the system-independent R6 libraries
20338 # (-lICE), since we may need -lsocket or whatever for X linking.
20340 if test "$ISC" = yes; then
20341 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20343 # Martyn Johnson says this is needed for Ultrix, if the X
20344 # libraries were built with DECnet support. And Karl Berry says
20345 # the Alpha needs dnet_stub (dnet does not exist).
20346 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20347 cat >conftest.$ac_ext <<_ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20354 /* Override any GCC internal prototype to avoid an error.
20355 Use char because int might match the return type of a GCC
20356 builtin and then its argument prototype would still apply. */
20360 char XOpenDisplay ();
20364 return XOpenDisplay ();
20369 rm -f conftest.$ac_objext conftest$ac_exeext
20370 if { (ac_try="$ac_link"
20371 case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_link") 2>conftest.er1
20378 grep -v '^ *+' conftest.er1 >conftest.err
20380 cat conftest.err >&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } &&
20383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20384 { (case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_try") 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; } &&
20393 { ac_try='test -s conftest$ac_exeext'
20394 { (case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_try") 2>&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; }; then
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20408 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20409 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20410 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 ac_check_lib_save_LIBS=$LIBS
20414 LIBS="-ldnet $LIBS"
20415 cat >conftest.$ac_ext <<_ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20422 /* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
20432 return dnet_ntoa ();
20437 rm -f conftest.$ac_objext conftest$ac_exeext
20438 if { (ac_try="$ac_link"
20439 case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_link") 2>conftest.er1
20446 grep -v '^ *+' conftest.er1 >conftest.err
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } &&
20451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20452 { (case "(($ac_try" in
20453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454 *) ac_try_echo=$ac_try;;
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457 (eval "$ac_try") 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; } &&
20461 { ac_try='test -s conftest$ac_exeext'
20462 { (case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_try") 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ac_cv_lib_dnet_dnet_ntoa=yes
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_cv_lib_dnet_dnet_ntoa=no
20479 rm -f core conftest.err conftest.$ac_objext \
20480 conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20483 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20484 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20485 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20486 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20489 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20490 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20491 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20492 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 ac_check_lib_save_LIBS=$LIBS
20496 LIBS="-ldnet_stub $LIBS"
20497 cat >conftest.$ac_ext <<_ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20504 /* Override any GCC internal prototype to avoid an error.
20505 Use char because int might match the return type of a GCC
20506 builtin and then its argument prototype would still apply. */
20514 return dnet_ntoa ();
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (ac_try="$ac_link"
20521 case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_link") 2>conftest.er1
20528 grep -v '^ *+' conftest.er1 >conftest.err
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
20533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20534 { (case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_try") 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try='test -s conftest$ac_exeext'
20544 { (case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_try") 2>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; }; then
20553 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20555 echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20558 ac_cv_lib_dnet_stub_dnet_ntoa=no
20561 rm -f core conftest.err conftest.$ac_objext \
20562 conftest$ac_exeext conftest.$ac_ext
20563 LIBS=$ac_check_lib_save_LIBS
20565 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20566 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20567 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20568 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20574 rm -f core conftest.err conftest.$ac_objext \
20575 conftest$ac_exeext conftest.$ac_ext
20576 LIBS="$ac_xsave_LIBS"
20578 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20579 # to get the SysV transport functions.
20580 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20582 # The nsl library prevents programs from opening the X display
20583 # on Irix 5.2, according to T.E. Dickey.
20584 # The functions gethostbyname, getservbyname, and inet_addr are
20585 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20586 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20587 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20588 if test "${ac_cv_func_gethostbyname+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20591 cat >conftest.$ac_ext <<_ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20599 #define gethostbyname innocuous_gethostbyname
20601 /* System header to define __stub macros and hopefully few prototypes,
20602 which can conflict with char gethostbyname (); below.
20603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20604 <limits.h> exists even on freestanding compilers. */
20607 # include <limits.h>
20609 # include <assert.h>
20612 #undef gethostbyname
20614 /* Override any GCC internal prototype to avoid an error.
20615 Use char because int might match the return type of a GCC
20616 builtin and then its argument prototype would still apply. */
20620 char gethostbyname ();
20621 /* The GNU C library defines this for functions which it implements
20622 to always fail with ENOSYS. Some functions are actually named
20623 something starting with __ and the normal name is an alias. */
20624 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20631 return gethostbyname ();
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (ac_try="$ac_link"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_link") 2>conftest.er1
20645 grep -v '^ *+' conftest.er1 >conftest.err
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20651 { (case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_try") 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest$ac_exeext'
20661 { (case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_try") 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 ac_cv_func_gethostbyname=yes
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 ac_cv_func_gethostbyname=no
20678 rm -f core conftest.err conftest.$ac_objext \
20679 conftest$ac_exeext conftest.$ac_ext
20681 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20682 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20684 if test $ac_cv_func_gethostbyname = no; then
20685 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20686 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20687 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 ac_check_lib_save_LIBS=$LIBS
20692 cat >conftest.$ac_ext <<_ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20699 /* Override any GCC internal prototype to avoid an error.
20700 Use char because int might match the return type of a GCC
20701 builtin and then its argument prototype would still apply. */
20705 char gethostbyname ();
20709 return gethostbyname ();
20714 rm -f conftest.$ac_objext conftest$ac_exeext
20715 if { (ac_try="$ac_link"
20716 case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_link") 2>conftest.er1
20723 grep -v '^ *+' conftest.er1 >conftest.err
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } &&
20728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20729 { (case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_try") 2>&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; } &&
20738 { ac_try='test -s conftest$ac_exeext'
20739 { (case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_try") 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_cv_lib_nsl_gethostbyname=yes
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20753 ac_cv_lib_nsl_gethostbyname=no
20756 rm -f core conftest.err conftest.$ac_objext \
20757 conftest$ac_exeext conftest.$ac_ext
20758 LIBS=$ac_check_lib_save_LIBS
20760 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20761 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20762 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20766 if test $ac_cv_lib_nsl_gethostbyname = no; then
20767 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20768 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20769 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20772 ac_check_lib_save_LIBS=$LIBS
20774 cat >conftest.$ac_ext <<_ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20781 /* Override any GCC internal prototype to avoid an error.
20782 Use char because int might match the return type of a GCC
20783 builtin and then its argument prototype would still apply. */
20787 char gethostbyname ();
20791 return gethostbyname ();
20796 rm -f conftest.$ac_objext conftest$ac_exeext
20797 if { (ac_try="$ac_link"
20798 case "(($ac_try" in
20799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800 *) ac_try_echo=$ac_try;;
20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803 (eval "$ac_link") 2>conftest.er1
20805 grep -v '^ *+' conftest.er1 >conftest.err
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } &&
20810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20811 { (case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_try") 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest$ac_exeext'
20821 { (case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_try") 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; }; then
20830 ac_cv_lib_bsd_gethostbyname=yes
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ac_cv_lib_bsd_gethostbyname=no
20838 rm -f core conftest.err conftest.$ac_objext \
20839 conftest$ac_exeext conftest.$ac_ext
20840 LIBS=$ac_check_lib_save_LIBS
20842 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20843 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20844 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20845 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20851 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20852 # socket/setsockopt and other routines are undefined under SCO ODT
20853 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20854 # on later versions), says Simon Leinen: it contains gethostby*
20855 # variants that don't use the name server (or something). -lsocket
20856 # must be given before -lnsl if both are needed. We assume that
20857 # if connect needs -lnsl, so does gethostbyname.
20858 { echo "$as_me:$LINENO: checking for connect" >&5
20859 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20860 if test "${ac_cv_func_connect+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 cat >conftest.$ac_ext <<_ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20871 #define connect innocuous_connect
20873 /* System header to define __stub macros and hopefully few prototypes,
20874 which can conflict with char connect (); below.
20875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20876 <limits.h> exists even on freestanding compilers. */
20879 # include <limits.h>
20881 # include <assert.h>
20886 /* Override any GCC internal prototype to avoid an error.
20887 Use char because int might match the return type of a GCC
20888 builtin and then its argument prototype would still apply. */
20893 /* The GNU C library defines this for functions which it implements
20894 to always fail with ENOSYS. Some functions are actually named
20895 something starting with __ and the normal name is an alias. */
20896 #if defined __stub_connect || defined __stub___connect
20908 rm -f conftest.$ac_objext conftest$ac_exeext
20909 if { (ac_try="$ac_link"
20910 case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_link") 2>conftest.er1
20917 grep -v '^ *+' conftest.er1 >conftest.err
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } &&
20922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20923 { (case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_try") 2>&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; } &&
20932 { ac_try='test -s conftest$ac_exeext'
20933 { (case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938 (eval "$ac_try") 2>&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; }; then
20942 ac_cv_func_connect=yes
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 ac_cv_func_connect=no
20950 rm -f core conftest.err conftest.$ac_objext \
20951 conftest$ac_exeext conftest.$ac_ext
20953 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20954 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20956 if test $ac_cv_func_connect = no; then
20957 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20958 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20959 if test "${ac_cv_lib_socket_connect+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 ac_check_lib_save_LIBS=$LIBS
20963 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20964 cat >conftest.$ac_ext <<_ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20971 /* Override any GCC internal prototype to avoid an error.
20972 Use char because int might match the return type of a GCC
20973 builtin and then its argument prototype would still apply. */
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } &&
21000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21001 { (case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_try") 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; } &&
21010 { ac_try='test -s conftest$ac_exeext'
21011 { (case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_try") 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
21020 ac_cv_lib_socket_connect=yes
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_cv_lib_socket_connect=no
21028 rm -f core conftest.err conftest.$ac_objext \
21029 conftest$ac_exeext conftest.$ac_ext
21030 LIBS=$ac_check_lib_save_LIBS
21032 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21033 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21034 if test $ac_cv_lib_socket_connect = yes; then
21035 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21040 # Guillermo Gomez says -lposix is necessary on A/UX.
21041 { echo "$as_me:$LINENO: checking for remove" >&5
21042 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
21043 if test "${ac_cv_func_remove+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21054 #define remove innocuous_remove
21056 /* System header to define __stub macros and hopefully few prototypes,
21057 which can conflict with char remove (); below.
21058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21059 <limits.h> exists even on freestanding compilers. */
21062 # include <limits.h>
21064 # include <assert.h>
21069 /* Override any GCC internal prototype to avoid an error.
21070 Use char because int might match the return type of a GCC
21071 builtin and then its argument prototype would still apply. */
21076 /* The GNU C library defines this for functions which it implements
21077 to always fail with ENOSYS. Some functions are actually named
21078 something starting with __ and the normal name is an alias. */
21079 #if defined __stub_remove || defined __stub___remove
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (ac_try="$ac_link"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_link") 2>conftest.er1
21100 grep -v '^ *+' conftest.er1 >conftest.err
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } &&
21105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21106 { (case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_try") 2>&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; } &&
21115 { ac_try='test -s conftest$ac_exeext'
21116 { (case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_try") 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; }; then
21125 ac_cv_func_remove=yes
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 ac_cv_func_remove=no
21133 rm -f core conftest.err conftest.$ac_objext \
21134 conftest$ac_exeext conftest.$ac_ext
21136 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21137 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21139 if test $ac_cv_func_remove = no; then
21140 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21141 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21142 if test "${ac_cv_lib_posix_remove+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 ac_check_lib_save_LIBS=$LIBS
21146 LIBS="-lposix $LIBS"
21147 cat >conftest.$ac_ext <<_ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h. */
21154 /* Override any GCC internal prototype to avoid an error.
21155 Use char because int might match the return type of a GCC
21156 builtin and then its argument prototype would still apply. */
21169 rm -f conftest.$ac_objext conftest$ac_exeext
21170 if { (ac_try="$ac_link"
21171 case "(($ac_try" in
21172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173 *) ac_try_echo=$ac_try;;
21175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21176 (eval "$ac_link") 2>conftest.er1
21178 grep -v '^ *+' conftest.er1 >conftest.err
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
21183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21184 { (case "(($ac_try" in
21185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186 *) ac_try_echo=$ac_try;;
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189 (eval "$ac_try") 2>&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; } &&
21193 { ac_try='test -s conftest$ac_exeext'
21194 { (case "(($ac_try" in
21195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196 *) ac_try_echo=$ac_try;;
21198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199 (eval "$ac_try") 2>&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_lib_posix_remove=yes
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ac_cv_lib_posix_remove=no
21211 rm -f core conftest.err conftest.$ac_objext \
21212 conftest$ac_exeext conftest.$ac_ext
21213 LIBS=$ac_check_lib_save_LIBS
21215 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21216 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21217 if test $ac_cv_lib_posix_remove = yes; then
21218 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21223 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21224 { echo "$as_me:$LINENO: checking for shmat" >&5
21225 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21226 if test "${ac_cv_func_shmat+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 cat >conftest.$ac_ext <<_ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21237 #define shmat innocuous_shmat
21239 /* System header to define __stub macros and hopefully few prototypes,
21240 which can conflict with char shmat (); below.
21241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21242 <limits.h> exists even on freestanding compilers. */
21245 # include <limits.h>
21247 # include <assert.h>
21252 /* Override any GCC internal prototype to avoid an error.
21253 Use char because int might match the return type of a GCC
21254 builtin and then its argument prototype would still apply. */
21259 /* The GNU C library defines this for functions which it implements
21260 to always fail with ENOSYS. Some functions are actually named
21261 something starting with __ and the normal name is an alias. */
21262 #if defined __stub_shmat || defined __stub___shmat
21274 rm -f conftest.$ac_objext conftest$ac_exeext
21275 if { (ac_try="$ac_link"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_link") 2>conftest.er1
21283 grep -v '^ *+' conftest.er1 >conftest.err
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } &&
21288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21289 { (case "(($ac_try" in
21290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291 *) ac_try_echo=$ac_try;;
21293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294 (eval "$ac_try") 2>&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; } &&
21298 { ac_try='test -s conftest$ac_exeext'
21299 { (case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_try") 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 ac_cv_func_shmat=yes
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21313 ac_cv_func_shmat=no
21316 rm -f core conftest.err conftest.$ac_objext \
21317 conftest$ac_exeext conftest.$ac_ext
21319 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21320 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21322 if test $ac_cv_func_shmat = no; then
21323 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21324 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21325 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 ac_check_lib_save_LIBS=$LIBS
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21337 /* Override any GCC internal prototype to avoid an error.
21338 Use char because int might match the return type of a GCC
21339 builtin and then its argument prototype would still apply. */
21352 rm -f conftest.$ac_objext conftest$ac_exeext
21353 if { (ac_try="$ac_link"
21354 case "(($ac_try" in
21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 *) ac_try_echo=$ac_try;;
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359 (eval "$ac_link") 2>conftest.er1
21361 grep -v '^ *+' conftest.er1 >conftest.err
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
21366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21367 { (case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_try") 2>&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; } &&
21376 { ac_try='test -s conftest$ac_exeext'
21377 { (case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_try") 2>&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 ac_cv_lib_ipc_shmat=yes
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21391 ac_cv_lib_ipc_shmat=no
21394 rm -f core conftest.err conftest.$ac_objext \
21395 conftest$ac_exeext conftest.$ac_ext
21396 LIBS=$ac_check_lib_save_LIBS
21398 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21399 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21400 if test $ac_cv_lib_ipc_shmat = yes; then
21401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21407 # Check for libraries that X11R6 Xt/Xaw programs need.
21408 ac_save_LDFLAGS=$LDFLAGS
21409 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21410 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21411 # check for ICE first), but we must link in the order -lSM -lICE or
21412 # we get undefined symbols. So assume we have SM if we have ICE.
21413 # These have to be linked with before -lX11, unlike the other
21414 # libraries we check for below, so use a different variable.
21415 # John Interrante, Karl Berry
21416 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21417 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21418 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21419 echo $ECHO_N "(cached) $ECHO_C" >&6
21421 ac_check_lib_save_LIBS=$LIBS
21422 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21423 cat >conftest.$ac_ext <<_ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21430 /* Override any GCC internal prototype to avoid an error.
21431 Use char because int might match the return type of a GCC
21432 builtin and then its argument prototype would still apply. */
21436 char IceConnectionNumber ();
21440 return IceConnectionNumber ();
21445 rm -f conftest.$ac_objext conftest$ac_exeext
21446 if { (ac_try="$ac_link"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_link") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } &&
21459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21460 { (case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_try") 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest$ac_exeext'
21470 { (case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_try") 2>&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; }; then
21479 ac_cv_lib_ICE_IceConnectionNumber=yes
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484 ac_cv_lib_ICE_IceConnectionNumber=no
21487 rm -f core conftest.err conftest.$ac_objext \
21488 conftest$ac_exeext conftest.$ac_ext
21489 LIBS=$ac_check_lib_save_LIBS
21491 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21492 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21493 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21494 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21497 LDFLAGS=$ac_save_LDFLAGS
21559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 ac_res=`eval echo '${'$as_ac_Header'}'`
21567 { echo "$as_me:$LINENO: result: $ac_res" >&5
21568 echo "${ECHO_T}$ac_res" >&6; }
21570 # Is the header compilable?
21571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21573 cat >conftest.$ac_ext <<_ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579 $ac_includes_default
21580 #include <$ac_header>
21582 rm -f conftest.$ac_objext
21583 if { (ac_try="$ac_compile"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_compile") 2>conftest.er1
21591 grep -v '^ *+' conftest.er1 >conftest.err
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
21596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21597 { (case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_try") 2>&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; } &&
21606 { ac_try='test -s conftest.$ac_objext'
21607 { (case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_try") 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21616 ac_header_compiler=yes
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 ac_header_compiler=no
21624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21626 echo "${ECHO_T}$ac_header_compiler" >&6; }
21628 # Is the header present?
21629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21631 cat >conftest.$ac_ext <<_ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21637 #include <$ac_header>
21639 if { (ac_try="$ac_cpp conftest.$ac_ext"
21640 case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21647 grep -v '^ *+' conftest.er1 >conftest.err
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } >/dev/null; then
21652 if test -s conftest.err; then
21653 ac_cpp_err=$ac_c_preproc_warn_flag
21654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21661 if test -z "$ac_cpp_err"; then
21662 ac_header_preproc=yes
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21667 ac_header_preproc=no
21670 rm -f conftest.err conftest.$ac_ext
21671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21672 echo "${ECHO_T}$ac_header_preproc" >&6; }
21674 # So? What about this header?
21675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21681 ac_header_preproc=yes
21684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 eval "$as_ac_Header=\$ac_header_preproc"
21706 ac_res=`eval echo '${'$as_ac_Header'}'`
21707 { echo "$as_me:$LINENO: result: $ac_res" >&5
21708 echo "${ECHO_T}$ac_res" >&6; }
21711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21712 cat >>confdefs.h <<_ACEOF
21713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21720 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21721 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21722 if test "${ac_cv_header_stdc+set}" = set; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 #include <stdlib.h>
21732 #include <stdarg.h>
21733 #include <string.h>
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_compile") 2>conftest.er1
21753 grep -v '^ *+' conftest.er1 >conftest.err
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
21758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21759 { (case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_try") 2>&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; } &&
21768 { ac_try='test -s conftest.$ac_objext'
21769 { (case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_try") 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; }; then
21778 ac_cv_header_stdc=yes
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 ac_cv_header_stdc=no
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21788 if test $ac_cv_header_stdc = yes; then
21789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 #include <string.h>
21799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21800 $EGREP "memchr" >/dev/null 2>&1; then
21803 ac_cv_header_stdc=no
21809 if test $ac_cv_header_stdc = yes; then
21810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21811 cat >conftest.$ac_ext <<_ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 #include <stdlib.h>
21820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21821 $EGREP "free" >/dev/null 2>&1; then
21824 ac_cv_header_stdc=no
21830 if test $ac_cv_header_stdc = yes; then
21831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21832 if test "$cross_compiling" = yes; then
21835 cat >conftest.$ac_ext <<_ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h. */
21842 #include <stdlib.h>
21843 #if ((' ' & 0x0FF) == 0x020)
21844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21847 # define ISLOWER(c) \
21848 (('a' <= (c) && (c) <= 'i') \
21849 || ('j' <= (c) && (c) <= 'r') \
21850 || ('s' <= (c) && (c) <= 'z'))
21851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21859 for (i = 0; i < 256; i++)
21860 if (XOR (islower (i), ISLOWER (i))
21861 || toupper (i) != TOUPPER (i))
21866 rm -f conftest$ac_exeext
21867 if { (ac_try="$ac_link"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_link") 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21877 { (case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_try") 2>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; }; then
21888 echo "$as_me: program exited with status $ac_status" >&5
21889 echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21892 ( exit $ac_status )
21893 ac_cv_header_stdc=no
21895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21901 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21902 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21903 if test $ac_cv_header_stdc = yes; then
21905 cat >>confdefs.h <<\_ACEOF
21906 #define STDC_HEADERS 1
21911 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21912 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21913 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21916 cat >conftest.$ac_ext <<_ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h. */
21922 #include <sys/types.h>
21926 return makedev(0, 0);
21931 rm -f conftest.$ac_objext conftest$ac_exeext
21932 if { (ac_try="$ac_link"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_link") 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } &&
21945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21946 { (case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_try") 2>&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; } &&
21955 { ac_try='test -s conftest$ac_exeext'
21956 { (case "(($ac_try" in
21957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961 (eval "$ac_try") 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; }; then
21965 ac_cv_header_sys_types_h_makedev=yes
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21970 ac_cv_header_sys_types_h_makedev=no
21973 rm -f core conftest.err conftest.$ac_objext \
21974 conftest$ac_exeext conftest.$ac_ext
21977 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21978 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21980 if test $ac_cv_header_sys_types_h_makedev = no; then
21981 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21982 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21983 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21984 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21988 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21990 # Is the header compilable?
21991 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21992 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21993 cat >conftest.$ac_ext <<_ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 $ac_includes_default
22000 #include <sys/mkdev.h>
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22011 grep -v '^ *+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
22016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest.$ac_objext'
22027 { (case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_try") 2>&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22036 ac_header_compiler=yes
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ac_header_compiler=no
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22046 echo "${ECHO_T}$ac_header_compiler" >&6; }
22048 # Is the header present?
22049 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
22050 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
22051 cat >conftest.$ac_ext <<_ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 #include <sys/mkdev.h>
22059 if { (ac_try="$ac_cpp conftest.$ac_ext"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22067 grep -v '^ *+' conftest.er1 >conftest.err
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } >/dev/null; then
22072 if test -s conftest.err; then
22073 ac_cpp_err=$ac_c_preproc_warn_flag
22074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22081 if test -z "$ac_cpp_err"; then
22082 ac_header_preproc=yes
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_header_preproc=no
22090 rm -f conftest.err conftest.$ac_ext
22091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22092 echo "${ECHO_T}$ac_header_preproc" >&6; }
22094 # So? What about this header?
22095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22097 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22098 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22099 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
22100 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
22101 ac_header_preproc=yes
22104 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
22105 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
22107 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
22108 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
22109 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
22110 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
22111 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
22112 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
22113 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
22114 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
22115 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
22119 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22120 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22121 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 ac_cv_header_sys_mkdev_h=$ac_header_preproc
22126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22127 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22130 if test $ac_cv_header_sys_mkdev_h = yes; then
22132 cat >>confdefs.h <<\_ACEOF
22133 #define MAJOR_IN_MKDEV 1
22140 if test $ac_cv_header_sys_mkdev_h = no; then
22141 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22142 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22143 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22144 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22147 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22148 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22150 # Is the header compilable?
22151 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22152 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
22153 cat >conftest.$ac_ext <<_ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 $ac_includes_default
22160 #include <sys/sysmacros.h>
22162 rm -f conftest.$ac_objext
22163 if { (ac_try="$ac_compile"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169 (eval "$ac_compile") 2>conftest.er1
22171 grep -v '^ *+' conftest.er1 >conftest.err
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } &&
22176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22177 { (case "(($ac_try" in
22178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22179 *) ac_try_echo=$ac_try;;
22181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22182 (eval "$ac_try") 2>&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; } &&
22186 { ac_try='test -s conftest.$ac_objext'
22187 { (case "(($ac_try" in
22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189 *) ac_try_echo=$ac_try;;
22191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22192 (eval "$ac_try") 2>&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); }; }; then
22196 ac_header_compiler=yes
22198 echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22201 ac_header_compiler=no
22204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22206 echo "${ECHO_T}$ac_header_compiler" >&6; }
22208 # Is the header present?
22209 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22210 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22211 cat >conftest.$ac_ext <<_ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22217 #include <sys/sysmacros.h>
22219 if { (ac_try="$ac_cpp conftest.$ac_ext"
22220 case "(($ac_try" in
22221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22222 *) ac_try_echo=$ac_try;;
22224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22227 grep -v '^ *+' conftest.er1 >conftest.err
22229 cat conftest.err >&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); } >/dev/null; then
22232 if test -s conftest.err; then
22233 ac_cpp_err=$ac_c_preproc_warn_flag
22234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22241 if test -z "$ac_cpp_err"; then
22242 ac_header_preproc=yes
22244 echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22247 ac_header_preproc=no
22250 rm -f conftest.err conftest.$ac_ext
22251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22252 echo "${ECHO_T}$ac_header_preproc" >&6; }
22254 # So? What about this header?
22255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22257 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22258 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22259 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22260 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22261 ac_header_preproc=yes
22264 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22265 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22266 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
22267 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
22268 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22269 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22270 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
22271 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
22272 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22273 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22274 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22275 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22279 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22280 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22281 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22284 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22286 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22287 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22290 if test $ac_cv_header_sys_sysmacros_h = yes; then
22292 cat >>confdefs.h <<\_ACEOF
22293 #define MAJOR_IN_SYSMACROS 1
22307 ac_header_dirent=no
22308 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22309 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22310 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22311 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22313 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 cat >conftest.$ac_ext <<_ACEOF
22318 cat confdefs.h >>conftest.$ac_ext
22319 cat >>conftest.$ac_ext <<_ACEOF
22320 /* end confdefs.h. */
22321 #include <sys/types.h>
22333 rm -f conftest.$ac_objext
22334 if { (ac_try="$ac_compile"
22335 case "(($ac_try" in
22336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337 *) ac_try_echo=$ac_try;;
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340 (eval "$ac_compile") 2>conftest.er1
22342 grep -v '^ *+' conftest.er1 >conftest.err
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } &&
22347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22348 { (case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_try") 2>&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; } &&
22357 { ac_try='test -s conftest.$ac_objext'
22358 { (case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_try") 2>&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22367 eval "$as_ac_Header=yes"
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22372 eval "$as_ac_Header=no"
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377 ac_res=`eval echo '${'$as_ac_Header'}'`
22378 { echo "$as_me:$LINENO: result: $ac_res" >&5
22379 echo "${ECHO_T}$ac_res" >&6; }
22380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22381 cat >>confdefs.h <<_ACEOF
22382 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22385 ac_header_dirent=$ac_hdr; break
22389 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22390 if test $ac_header_dirent = dirent.h; then
22391 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22392 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22393 if test "${ac_cv_search_opendir+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 ac_func_search_save_LIBS=$LIBS
22397 cat >conftest.$ac_ext <<_ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22404 /* Override any GCC internal prototype to avoid an error.
22405 Use char because int might match the return type of a GCC
22406 builtin and then its argument prototype would still apply. */
22419 for ac_lib in '' dir; do
22420 if test -z "$ac_lib"; then
22421 ac_res="none required"
22424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22426 rm -f conftest.$ac_objext conftest$ac_exeext
22427 if { (ac_try="$ac_link"
22428 case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_link") 2>conftest.er1
22435 grep -v '^ *+' conftest.er1 >conftest.err
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } &&
22440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22441 { (case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_try") 2>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; } &&
22450 { ac_try='test -s conftest$ac_exeext'
22451 { (case "(($ac_try" in
22452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453 *) ac_try_echo=$ac_try;;
22455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22456 (eval "$ac_try") 2>&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
22460 ac_cv_search_opendir=$ac_res
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22468 rm -f core conftest.err conftest.$ac_objext \
22470 if test "${ac_cv_search_opendir+set}" = set; then
22474 if test "${ac_cv_search_opendir+set}" = set; then
22477 ac_cv_search_opendir=no
22479 rm conftest.$ac_ext
22480 LIBS=$ac_func_search_save_LIBS
22482 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22483 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22484 ac_res=$ac_cv_search_opendir
22485 if test "$ac_res" != no; then
22486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22491 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22492 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22493 if test "${ac_cv_search_opendir+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22496 ac_func_search_save_LIBS=$LIBS
22497 cat >conftest.$ac_ext <<_ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22504 /* Override any GCC internal prototype to avoid an error.
22505 Use char because int might match the return type of a GCC
22506 builtin and then its argument prototype would still apply. */
22519 for ac_lib in '' x; do
22520 if test -z "$ac_lib"; then
22521 ac_res="none required"
22524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22526 rm -f conftest.$ac_objext conftest$ac_exeext
22527 if { (ac_try="$ac_link"
22528 case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_link") 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } &&
22540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22541 { (case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_try") 2>&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; } &&
22550 { ac_try='test -s conftest$ac_exeext'
22551 { (case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556 (eval "$ac_try") 2>&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; }; then
22560 ac_cv_search_opendir=$ac_res
22562 echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22568 rm -f core conftest.err conftest.$ac_objext \
22570 if test "${ac_cv_search_opendir+set}" = set; then
22574 if test "${ac_cv_search_opendir+set}" = set; then
22577 ac_cv_search_opendir=no
22579 rm conftest.$ac_ext
22580 LIBS=$ac_func_search_save_LIBS
22582 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22583 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22584 ac_res=$ac_cv_search_opendir
22585 if test "$ac_res" != no; then
22586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22592 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22593 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22594 if test "${ac_cv_header_stat_broken+set}" = set; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22597 cat >conftest.$ac_ext <<_ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22603 #include <sys/types.h>
22604 #include <sys/stat.h>
22606 #if defined S_ISBLK && defined S_IFDIR
22607 # if S_ISBLK (S_IFDIR)
22612 #if defined S_ISBLK && defined S_IFCHR
22613 # if S_ISBLK (S_IFCHR)
22618 #if defined S_ISLNK && defined S_IFREG
22619 # if S_ISLNK (S_IFREG)
22624 #if defined S_ISSOCK && defined S_IFREG
22625 # if S_ISSOCK (S_IFREG)
22631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22632 $EGREP "You lose" >/dev/null 2>&1; then
22633 ac_cv_header_stat_broken=yes
22635 ac_cv_header_stat_broken=no
22640 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22641 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22642 if test $ac_cv_header_stat_broken = yes; then
22644 cat >>confdefs.h <<\_ACEOF
22645 #define STAT_MACROS_BROKEN 1
22650 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22651 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22652 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22655 cat >conftest.$ac_ext <<_ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h. */
22661 #include <sys/types.h>
22662 #include <sys/wait.h>
22663 #ifndef WEXITSTATUS
22664 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22667 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22675 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22680 rm -f conftest.$ac_objext
22681 if { (ac_try="$ac_compile"
22682 case "(($ac_try" in
22683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684 *) ac_try_echo=$ac_try;;
22686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22689 grep -v '^ *+' conftest.er1 >conftest.err
22691 cat conftest.err >&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } &&
22694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); }; } &&
22704 { ac_try='test -s conftest.$ac_objext'
22705 { (case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710 (eval "$ac_try") 2>&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; }; then
22714 ac_cv_header_sys_wait_h=yes
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22719 ac_cv_header_sys_wait_h=no
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22725 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22726 if test $ac_cv_header_sys_wait_h = yes; then
22728 cat >>confdefs.h <<\_ACEOF
22729 #define HAVE_SYS_WAIT_H 1
22734 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22735 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22736 if test "${ac_cv_header_time+set}" = set; then
22737 echo $ECHO_N "(cached) $ECHO_C" >&6
22739 cat >conftest.$ac_ext <<_ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 #include <sys/types.h>
22746 #include <sys/time.h>
22752 if ((struct tm *) 0)
22758 rm -f conftest.$ac_objext
22759 if { (ac_try="$ac_compile"
22760 case "(($ac_try" in
22761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762 *) ac_try_echo=$ac_try;;
22764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22765 (eval "$ac_compile") 2>conftest.er1
22767 grep -v '^ *+' conftest.er1 >conftest.err
22769 cat conftest.err >&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); } &&
22772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22773 { (case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_try") 2>&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); }; } &&
22782 { ac_try='test -s conftest.$ac_objext'
22783 { (case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_try") 2>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; }; then
22792 ac_cv_header_time=yes
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22797 ac_cv_header_time=no
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22803 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22804 if test $ac_cv_header_time = yes; then
22806 cat >>confdefs.h <<\_ACEOF
22807 #define TIME_WITH_SYS_TIME 1
22812 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22813 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22814 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22817 cat >conftest.$ac_ext <<_ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22823 $ac_includes_default
22827 static struct stat ac_aggr;
22828 if (ac_aggr.st_blksize)
22834 rm -f conftest.$ac_objext
22835 if { (ac_try="$ac_compile"
22836 case "(($ac_try" in
22837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838 *) ac_try_echo=$ac_try;;
22840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841 (eval "$ac_compile") 2>conftest.er1
22843 grep -v '^ *+' conftest.er1 >conftest.err
22845 cat conftest.err >&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } &&
22848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22849 { (case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_try") 2>&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; } &&
22858 { ac_try='test -s conftest.$ac_objext'
22859 { (case "(($ac_try" in
22860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861 *) ac_try_echo=$ac_try;;
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864 (eval "$ac_try") 2>&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; }; then
22868 ac_cv_member_struct_stat_st_blksize=yes
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 cat >conftest.$ac_ext <<_ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 $ac_includes_default
22883 static struct stat ac_aggr;
22884 if (sizeof ac_aggr.st_blksize)
22890 rm -f conftest.$ac_objext
22891 if { (ac_try="$ac_compile"
22892 case "(($ac_try" in
22893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894 *) ac_try_echo=$ac_try;;
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897 (eval "$ac_compile") 2>conftest.er1
22899 grep -v '^ *+' conftest.er1 >conftest.err
22901 cat conftest.err >&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } &&
22904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22905 { (case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910 (eval "$ac_try") 2>&5
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; } &&
22914 { ac_try='test -s conftest.$ac_objext'
22915 { (case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_try") 2>&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; }; then
22924 ac_cv_member_struct_stat_st_blksize=yes
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22929 ac_cv_member_struct_stat_st_blksize=no
22932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22938 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22939 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22941 cat >>confdefs.h <<_ACEOF
22942 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_ST_BLKSIZE 1
22953 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22954 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22955 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22956 echo $ECHO_N "(cached) $ECHO_C" >&6
22958 cat >conftest.$ac_ext <<_ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22964 $ac_includes_default
22968 static struct stat ac_aggr;
22969 if (ac_aggr.st_blocks)
22975 rm -f conftest.$ac_objext
22976 if { (ac_try="$ac_compile"
22977 case "(($ac_try" in
22978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979 *) ac_try_echo=$ac_try;;
22981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22982 (eval "$ac_compile") 2>conftest.er1
22984 grep -v '^ *+' conftest.er1 >conftest.err
22986 cat conftest.err >&5
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); } &&
22989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22990 { (case "(($ac_try" in
22991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992 *) ac_try_echo=$ac_try;;
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995 (eval "$ac_try") 2>&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; } &&
22999 { ac_try='test -s conftest.$ac_objext'
23000 { (case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_try") 2>&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); }; }; then
23009 ac_cv_member_struct_stat_st_blocks=yes
23011 echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23014 cat >conftest.$ac_ext <<_ACEOF
23017 cat confdefs.h >>conftest.$ac_ext
23018 cat >>conftest.$ac_ext <<_ACEOF
23019 /* end confdefs.h. */
23020 $ac_includes_default
23024 static struct stat ac_aggr;
23025 if (sizeof ac_aggr.st_blocks)
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_compile") 2>conftest.er1
23040 grep -v '^ *+' conftest.er1 >conftest.err
23042 cat conftest.err >&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } &&
23045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23046 { (case "(($ac_try" in
23047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048 *) ac_try_echo=$ac_try;;
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051 (eval "$ac_try") 2>&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; } &&
23055 { ac_try='test -s conftest.$ac_objext'
23056 { (case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_try") 2>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; }; then
23065 ac_cv_member_struct_stat_st_blocks=yes
23067 echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23070 ac_cv_member_struct_stat_st_blocks=no
23073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23079 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23080 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23082 cat >>confdefs.h <<_ACEOF
23083 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23087 cat >>confdefs.h <<\_ACEOF
23088 #define HAVE_ST_BLOCKS 1
23092 case " $LIBOBJS " in
23093 *" fileblocks.$ac_objext "* ) ;;
23094 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23101 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23102 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23103 if test "${ac_cv_struct_tm+set}" = set; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 cat >conftest.$ac_ext <<_ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23112 #include <sys/types.h>
23118 struct tm *tp; tp->tm_sec;
23123 rm -f conftest.$ac_objext
23124 if { (ac_try="$ac_compile"
23125 case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_compile") 2>conftest.er1
23132 grep -v '^ *+' conftest.er1 >conftest.err
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } &&
23137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23138 { (case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_try") 2>&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); }; } &&
23147 { ac_try='test -s conftest.$ac_objext'
23148 { (case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_try") 2>&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); }; }; then
23157 ac_cv_struct_tm=time.h
23159 echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23162 ac_cv_struct_tm=sys/time.h
23165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23167 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23168 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23169 if test $ac_cv_struct_tm = sys/time.h; then
23171 cat >>confdefs.h <<\_ACEOF
23172 #define TM_IN_SYS_TIME 1
23177 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23178 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23179 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 #include <sys/types.h>
23189 #include <$ac_cv_struct_tm>
23195 static struct tm ac_aggr;
23196 if (ac_aggr.tm_zone)
23202 rm -f conftest.$ac_objext
23203 if { (ac_try="$ac_compile"
23204 case "(($ac_try" in
23205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206 *) ac_try_echo=$ac_try;;
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209 (eval "$ac_compile") 2>conftest.er1
23211 grep -v '^ *+' conftest.er1 >conftest.err
23213 cat conftest.err >&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); } &&
23216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23217 { (case "(($ac_try" in
23218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219 *) ac_try_echo=$ac_try;;
23221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222 (eval "$ac_try") 2>&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; } &&
23226 { ac_try='test -s conftest.$ac_objext'
23227 { (case "(($ac_try" in
23228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229 *) ac_try_echo=$ac_try;;
23231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23232 (eval "$ac_try") 2>&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; }; then
23236 ac_cv_member_struct_tm_tm_zone=yes
23238 echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23241 cat >conftest.$ac_ext <<_ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h. */
23247 #include <sys/types.h>
23248 #include <$ac_cv_struct_tm>
23254 static struct tm ac_aggr;
23255 if (sizeof ac_aggr.tm_zone)
23261 rm -f conftest.$ac_objext
23262 if { (ac_try="$ac_compile"
23263 case "(($ac_try" in
23264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_compile") 2>conftest.er1
23270 grep -v '^ *+' conftest.er1 >conftest.err
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } &&
23275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23276 { (case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281 (eval "$ac_try") 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; } &&
23285 { ac_try='test -s conftest.$ac_objext'
23286 { (case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291 (eval "$ac_try") 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23295 ac_cv_member_struct_tm_tm_zone=yes
23297 echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23300 ac_cv_member_struct_tm_tm_zone=no
23303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23308 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23309 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23310 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23312 cat >>confdefs.h <<_ACEOF
23313 #define HAVE_STRUCT_TM_TM_ZONE 1
23319 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23321 cat >>confdefs.h <<\_ACEOF
23322 #define HAVE_TM_ZONE 1
23326 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23327 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23328 if test "${ac_cv_have_decl_tzname+set}" = set; then
23329 echo $ECHO_N "(cached) $ECHO_C" >&6
23331 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23343 char *p = (char *) tzname;
23351 rm -f conftest.$ac_objext
23352 if { (ac_try="$ac_compile"
23353 case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_compile") 2>conftest.er1
23360 grep -v '^ *+' conftest.er1 >conftest.err
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } &&
23365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23366 { (case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_try") 2>&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); }; } &&
23375 { ac_try='test -s conftest.$ac_objext'
23376 { (case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_try") 2>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 ac_cv_have_decl_tzname=yes
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23390 ac_cv_have_decl_tzname=no
23393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23395 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23396 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23397 if test $ac_cv_have_decl_tzname = yes; then
23399 cat >>confdefs.h <<_ACEOF
23400 #define HAVE_DECL_TZNAME 1
23405 cat >>confdefs.h <<_ACEOF
23406 #define HAVE_DECL_TZNAME 0
23413 { echo "$as_me:$LINENO: checking for tzname" >&5
23414 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23415 if test "${ac_cv_var_tzname+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23418 cat >conftest.$ac_ext <<_ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23425 #if !HAVE_DECL_TZNAME
23426 extern char *tzname[];
23432 return tzname[0][0];
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (ac_try="$ac_link"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_link") 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
23451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23452 { (case "(($ac_try" in
23453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454 *) ac_try_echo=$ac_try;;
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457 (eval "$ac_try") 2>&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } &&
23461 { ac_try='test -s conftest$ac_exeext'
23462 { (case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_try") 2>&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_cv_var_tzname=yes
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_cv_var_tzname=no
23479 rm -f core conftest.err conftest.$ac_objext \
23480 conftest$ac_exeext conftest.$ac_ext
23482 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23483 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23484 if test $ac_cv_var_tzname = yes; then
23486 cat >>confdefs.h <<\_ACEOF
23487 #define HAVE_TZNAME 1
23494 { echo "$as_me:$LINENO: checking for utime.h" >&5
23495 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23496 if test "${ba_cv_header_utime_h+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23499 cat >conftest.$ac_ext <<_ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23506 #include <sys/types.h>
23516 rm -f conftest.$ac_objext
23517 if { (ac_try="$ac_compile"
23518 case "(($ac_try" in
23519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23520 *) ac_try_echo=$ac_try;;
23522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23523 (eval "$ac_compile") 2>conftest.er1
23525 grep -v '^ *+' conftest.er1 >conftest.err
23527 cat conftest.err >&5
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); } &&
23530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23531 { (case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23536 (eval "$ac_try") 2>&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; } &&
23540 { ac_try='test -s conftest.$ac_objext'
23541 { (case "(($ac_try" in
23542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543 *) ac_try_echo=$ac_try;;
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546 (eval "$ac_try") 2>&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; }; then
23550 ba_cv_header_utime_h=yes
23552 echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23555 ba_cv_header_utime_h=no
23558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23560 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23561 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23562 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23563 #define HAVE_UTIME_H 1
23567 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23568 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23569 if test "${ba_cv_header_socklen_t+set}" = set; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23572 cat >conftest.$ac_ext <<_ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h. */
23579 #include <sys/types.h>
23580 #include <sys/socket.h>
23589 rm -f conftest.$ac_objext
23590 if { (ac_try="$ac_compile"
23591 case "(($ac_try" in
23592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593 *) ac_try_echo=$ac_try;;
23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596 (eval "$ac_compile") 2>conftest.er1
23598 grep -v '^ *+' conftest.er1 >conftest.err
23600 cat conftest.err >&5
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); } &&
23603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23604 { (case "(($ac_try" in
23605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23606 *) ac_try_echo=$ac_try;;
23608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23609 (eval "$ac_try") 2>&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; } &&
23613 { ac_try='test -s conftest.$ac_objext'
23614 { (case "(($ac_try" in
23615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616 *) ac_try_echo=$ac_try;;
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619 (eval "$ac_try") 2>&5
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); }; }; then
23623 ba_cv_header_socklen_t=yes
23625 echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23628 ba_cv_header_socklen_t=no
23631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23633 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23634 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23635 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23636 #define HAVE_SOCKLEN_T 1
23640 { echo "$as_me:$LINENO: checking for bigendian" >&5
23641 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23642 if test "${ba_cv_bigendian+set}" = set; then
23643 echo $ECHO_N "(cached) $ECHO_C" >&6
23645 if test "$cross_compiling" = yes; then
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23656 rm -f conftest$ac_exeext
23657 if { (ac_try="$ac_link"
23658 case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663 (eval "$ac_link") 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23667 { (case "(($ac_try" in
23668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23669 *) ac_try_echo=$ac_try;;
23671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23672 (eval "$ac_try") 2>&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; }; then
23676 ba_cv_bigendian=yes
23678 echo "$as_me: program exited with status $ac_status" >&5
23679 echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23682 ( exit $ac_status )
23685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23690 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23691 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23692 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23693 #define HAVE_BIGENDIAN 1
23698 ac_cpp='$CXXCPP $CPPFLAGS'
23699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23704 { echo "$as_me:$LINENO: checking for typeof" >&5
23705 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23706 if test "${ba_cv_have_typeof+set}" = set; then
23707 echo $ECHO_N "(cached) $ECHO_C" >&6
23709 if test "$cross_compiling" = yes; then
23710 ba_cv_have_typeof=no
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 main(){char *a = 0; a = (typeof a)a;}
23720 rm -f conftest$ac_exeext
23721 if { (ac_try="$ac_link"
23722 case "(($ac_try" in
23723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724 *) ac_try_echo=$ac_try;;
23726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727 (eval "$ac_link") 2>&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23731 { (case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_try") 2>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }; then
23740 ba_cv_have_typeof=yes
23742 echo "$as_me: program exited with status $ac_status" >&5
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23746 ( exit $ac_status )
23747 ba_cv_have_typeof=no
23749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23754 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23755 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23756 test $ba_cv_have_typeof = yes &&
23757 cat >>confdefs.h <<\_ACEOF
23758 #define HAVE_TYPEOF 1
23762 ac_cpp='$CPP $CPPFLAGS'
23763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23768 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23769 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23770 if test "${ac_cv_c_const+set}" = set; then
23771 echo $ECHO_N "(cached) $ECHO_C" >&6
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23783 /* FIXME: Include the comments suggested by Paul. */
23784 #ifndef __cplusplus
23785 /* Ultrix mips cc rejects this. */
23786 typedef int charset[2];
23788 /* SunOS 4.1.1 cc rejects this. */
23789 char const *const *ccp;
23791 /* NEC SVR4.0.2 mips cc rejects this. */
23792 struct point {int x, y;};
23793 static struct point const zero = {0,0};
23794 /* AIX XL C 1.02.0.0 rejects this.
23795 It does not let you subtract one const X* pointer from another in
23796 an arm of an if-expression whose if-part is not a constant
23798 const char *g = "string";
23799 ccp = &g + (g ? g-g : 0);
23800 /* HPUX 7.0 cc rejects these. */
23803 ccp = (char const *const *) p;
23804 { /* SCO 3.2v4 cc rejects this. */
23806 char const *s = 0 ? (char *) 0 : (char const *) 0;
23811 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23812 int x[] = {25, 17};
23813 const int *foo = &x[0];
23816 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23817 typedef const int *iptr;
23821 { /* AIX XL C 1.02.0.0 rejects this saying
23822 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23823 struct s { int j; const int *ap[3]; };
23824 struct s *b; b->j = 5;
23826 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23827 const int foo = 10;
23828 if (!foo) return 0;
23830 return !x[0] && !zero.x;
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841 *) ac_try_echo=$ac_try;;
23843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23844 (eval "$ac_compile") 2>conftest.er1
23846 grep -v '^ *+' conftest.er1 >conftest.err
23848 cat conftest.err >&5
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } &&
23851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23852 { (case "(($ac_try" in
23853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854 *) ac_try_echo=$ac_try;;
23856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23857 (eval "$ac_try") 2>&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; } &&
23861 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; }; then
23873 echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23881 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23882 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23883 if test $ac_cv_c_const = no; then
23885 cat >>confdefs.h <<\_ACEOF
23893 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23894 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23896 # The order of these tests is important.
23897 cat >conftest.$ac_ext <<_ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h. */
23903 #include <sys/statvfs.h>
23904 #include <sys/fstyp.h>
23906 if { (ac_try="$ac_cpp conftest.$ac_ext"
23907 case "(($ac_try" in
23908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23909 *) ac_try_echo=$ac_try;;
23911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23914 grep -v '^ *+' conftest.er1 >conftest.err
23916 cat conftest.err >&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } >/dev/null; then
23919 if test -s conftest.err; then
23920 ac_cpp_err=$ac_c_preproc_warn_flag
23921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23928 if test -z "$ac_cpp_err"; then
23929 cat >>confdefs.h <<\_ACEOF
23930 #define FSTYPE_STATVFS 1
23934 echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23940 rm -f conftest.err conftest.$ac_ext
23941 if test $fstype = no; then
23942 cat >conftest.$ac_ext <<_ACEOF
23945 cat confdefs.h >>conftest.$ac_ext
23946 cat >>conftest.$ac_ext <<_ACEOF
23947 /* end confdefs.h. */
23948 #include <sys/statfs.h>
23949 #include <sys/fstyp.h>
23951 if { (ac_try="$ac_cpp conftest.$ac_ext"
23952 case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23959 grep -v '^ *+' conftest.er1 >conftest.err
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } >/dev/null; then
23964 if test -s conftest.err; then
23965 ac_cpp_err=$ac_c_preproc_warn_flag
23966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23973 if test -z "$ac_cpp_err"; then
23974 cat >>confdefs.h <<\_ACEOF
23975 #define FSTYPE_USG_STATFS 1
23979 echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23985 rm -f conftest.err conftest.$ac_ext
23987 if test $fstype = no; then
23988 cat >conftest.$ac_ext <<_ACEOF
23991 cat confdefs.h >>conftest.$ac_ext
23992 cat >>conftest.$ac_ext <<_ACEOF
23993 /* end confdefs.h. */
23994 #include <sys/statfs.h>
23995 #include <sys/vmount.h>
23997 if { (ac_try="$ac_cpp conftest.$ac_ext"
23998 case "(($ac_try" in
23999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000 *) ac_try_echo=$ac_try;;
24002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24005 grep -v '^ *+' conftest.er1 >conftest.err
24007 cat conftest.err >&5
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); } >/dev/null; then
24010 if test -s conftest.err; then
24011 ac_cpp_err=$ac_c_preproc_warn_flag
24012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24019 if test -z "$ac_cpp_err"; then
24020 cat >>confdefs.h <<\_ACEOF
24021 #define FSTYPE_AIX_STATFS 1
24025 echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24031 rm -f conftest.err conftest.$ac_ext
24033 if test $fstype = no; then
24034 cat >conftest.$ac_ext <<_ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24040 #include <mntent.h>
24042 if { (ac_try="$ac_cpp conftest.$ac_ext"
24043 case "(($ac_try" in
24044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045 *) ac_try_echo=$ac_try;;
24047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24050 grep -v '^ *+' conftest.er1 >conftest.err
24052 cat conftest.err >&5
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); } >/dev/null; then
24055 if test -s conftest.err; then
24056 ac_cpp_err=$ac_c_preproc_warn_flag
24057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24064 if test -z "$ac_cpp_err"; then
24065 cat >>confdefs.h <<\_ACEOF
24066 #define FSTYPE_MNTENT 1
24070 echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24076 rm -f conftest.err conftest.$ac_ext
24078 if test $fstype = no; then
24079 cat >conftest.$ac_ext <<_ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h. */
24085 #include <sys/mount.h>
24088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24089 $EGREP "f_type;" >/dev/null 2>&1; then
24090 cat >>confdefs.h <<\_ACEOF
24091 #define FSTYPE_STATFS 1
24098 if test $fstype = no; then
24099 cat >conftest.$ac_ext <<_ACEOF
24102 cat confdefs.h >>conftest.$ac_ext
24103 cat >>conftest.$ac_ext <<_ACEOF
24104 /* end confdefs.h. */
24105 #include <sys/mount.h>
24106 #include <sys/fs_types.h>
24108 if { (ac_try="$ac_cpp conftest.$ac_ext"
24109 case "(($ac_try" in
24110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111 *) ac_try_echo=$ac_try;;
24113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24116 grep -v '^ *+' conftest.er1 >conftest.err
24118 cat conftest.err >&5
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } >/dev/null; then
24121 if test -s conftest.err; then
24122 ac_cpp_err=$ac_c_preproc_warn_flag
24123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24130 if test -z "$ac_cpp_err"; then
24131 cat >>confdefs.h <<\_ACEOF
24132 #define FSTYPE_GETMNT 1
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24142 rm -f conftest.err conftest.$ac_ext
24144 { echo "$as_me:$LINENO: result: $fstype" >&5
24145 echo "${ECHO_T}$fstype" >&6; }
24147 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24148 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24149 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24150 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24151 echo $ECHO_N "(cached) $ECHO_C" >&6
24153 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24154 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24156 # Is the header compilable?
24157 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
24158 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
24159 cat >conftest.$ac_ext <<_ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h. */
24165 $ac_includes_default
24166 #include <sys/statvfs.h>
24168 rm -f conftest.$ac_objext
24169 if { (ac_try="$ac_compile"
24170 case "(($ac_try" in
24171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172 *) ac_try_echo=$ac_try;;
24174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24175 (eval "$ac_compile") 2>conftest.er1
24177 grep -v '^ *+' conftest.er1 >conftest.err
24179 cat conftest.err >&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } &&
24182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24183 { (case "(($ac_try" in
24184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_try") 2>&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; } &&
24192 { ac_try='test -s conftest.$ac_objext'
24193 { (case "(($ac_try" in
24194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24195 *) ac_try_echo=$ac_try;;
24197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24198 (eval "$ac_try") 2>&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; }; then
24202 ac_header_compiler=yes
24204 echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24207 ac_header_compiler=no
24210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24212 echo "${ECHO_T}$ac_header_compiler" >&6; }
24214 # Is the header present?
24215 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24216 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24217 cat >conftest.$ac_ext <<_ACEOF
24220 cat confdefs.h >>conftest.$ac_ext
24221 cat >>conftest.$ac_ext <<_ACEOF
24222 /* end confdefs.h. */
24223 #include <sys/statvfs.h>
24225 if { (ac_try="$ac_cpp conftest.$ac_ext"
24226 case "(($ac_try" in
24227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228 *) ac_try_echo=$ac_try;;
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24233 grep -v '^ *+' conftest.er1 >conftest.err
24235 cat conftest.err >&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); } >/dev/null; then
24238 if test -s conftest.err; then
24239 ac_cpp_err=$ac_c_preproc_warn_flag
24240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24247 if test -z "$ac_cpp_err"; then
24248 ac_header_preproc=yes
24250 echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24253 ac_header_preproc=no
24256 rm -f conftest.err conftest.$ac_ext
24257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24258 echo "${ECHO_T}$ac_header_preproc" >&6; }
24260 # So? What about this header?
24261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24263 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24264 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24265 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24266 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24267 ac_header_preproc=yes
24270 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24271 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24272 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
24273 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
24274 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24275 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24276 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
24277 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
24278 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24279 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24280 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24281 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24285 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24286 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24287 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24290 ac_cv_header_sys_statvfs_h=$ac_header_preproc
24292 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24293 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24296 if test $ac_cv_header_sys_statvfs_h = yes; then
24298 cat >>confdefs.h <<\_ACEOF
24299 #define HAVE_SYS_STATVFS_H 1
24306 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24307 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24308 if test "${ac_cv_type_signal+set}" = set; then
24309 echo $ECHO_N "(cached) $ECHO_C" >&6
24311 cat >conftest.$ac_ext <<_ACEOF
24314 cat confdefs.h >>conftest.$ac_ext
24315 cat >>conftest.$ac_ext <<_ACEOF
24316 /* end confdefs.h. */
24317 #include <sys/types.h>
24318 #include <signal.h>
24323 return *(signal (0, 0)) (0) == 1;
24328 rm -f conftest.$ac_objext
24329 if { (ac_try="$ac_compile"
24330 case "(($ac_try" in
24331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332 *) ac_try_echo=$ac_try;;
24334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24335 (eval "$ac_compile") 2>conftest.er1
24337 grep -v '^ *+' conftest.er1 >conftest.err
24339 cat conftest.err >&5
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); } &&
24342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24343 { (case "(($ac_try" in
24344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345 *) ac_try_echo=$ac_try;;
24347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24348 (eval "$ac_try") 2>&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); }; } &&
24352 { ac_try='test -s conftest.$ac_objext'
24353 { (case "(($ac_try" in
24354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24355 *) ac_try_echo=$ac_try;;
24357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24358 (eval "$ac_try") 2>&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); }; }; then
24362 ac_cv_type_signal=int
24364 echo "$as_me: failed program was:" >&5
24365 sed 's/^/| /' conftest.$ac_ext >&5
24367 ac_cv_type_signal=void
24370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24373 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24375 cat >>confdefs.h <<_ACEOF
24376 #define RETSIGTYPE $ac_cv_type_signal
24381 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24382 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24383 if test "${bash_cv_signal_vintage+set}" = set; then
24384 echo $ECHO_N "(cached) $ECHO_C" >&6
24387 cat >conftest.$ac_ext <<_ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h. */
24393 #include <signal.h>
24399 struct sigaction sa;
24400 sigemptyset(&ss); sigsuspend(&ss);
24401 sigaction(SIGINT, &sa, (struct sigaction *) 0);
24402 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24408 rm -f conftest.$ac_objext conftest$ac_exeext
24409 if { (ac_try="$ac_link"
24410 case "(($ac_try" in
24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412 *) ac_try_echo=$ac_try;;
24414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24415 (eval "$ac_link") 2>conftest.er1
24417 grep -v '^ *+' conftest.er1 >conftest.err
24419 cat conftest.err >&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } &&
24422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24423 { (case "(($ac_try" in
24424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24425 *) ac_try_echo=$ac_try;;
24427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24428 (eval "$ac_try") 2>&5
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); }; } &&
24432 { ac_try='test -s conftest$ac_exeext'
24433 { (case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438 (eval "$ac_try") 2>&5
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; }; then
24442 bash_cv_signal_vintage="posix"
24444 echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24448 cat >conftest.$ac_ext <<_ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h. */
24454 #include <signal.h>
24459 int mask = sigmask(SIGINT);
24460 sigsetmask(mask); sigblock(mask); sigpause(mask);
24466 rm -f conftest.$ac_objext conftest$ac_exeext
24467 if { (ac_try="$ac_link"
24468 case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473 (eval "$ac_link") 2>conftest.er1
24475 grep -v '^ *+' conftest.er1 >conftest.err
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } &&
24480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24481 { (case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24486 (eval "$ac_try") 2>&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); }; } &&
24490 { ac_try='test -s conftest$ac_exeext'
24491 { (case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496 (eval "$ac_try") 2>&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; }; then
24500 bash_cv_signal_vintage="4.2bsd"
24502 echo "$as_me: failed program was:" >&5
24503 sed 's/^/| /' conftest.$ac_ext >&5
24506 cat >conftest.$ac_ext <<_ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24513 #include <signal.h>
24514 RETSIGTYPE foo() { }
24519 int mask = sigmask(SIGINT);
24520 sigset(SIGINT, foo); sigrelse(SIGINT);
24521 sighold(SIGINT); sigpause(SIGINT);
24527 rm -f conftest.$ac_objext conftest$ac_exeext
24528 if { (ac_try="$ac_link"
24529 case "(($ac_try" in
24530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24531 *) ac_try_echo=$ac_try;;
24533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24534 (eval "$ac_link") 2>conftest.er1
24536 grep -v '^ *+' conftest.er1 >conftest.err
24538 cat conftest.err >&5
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); } &&
24541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24542 { (case "(($ac_try" in
24543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544 *) ac_try_echo=$ac_try;;
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547 (eval "$ac_try") 2>&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; } &&
24551 { ac_try='test -s conftest$ac_exeext'
24552 { (case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557 (eval "$ac_try") 2>&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; }; then
24561 bash_cv_signal_vintage="svr3"
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 bash_cv_signal_vintage="v7"
24570 rm -f core conftest.err conftest.$ac_objext \
24571 conftest$ac_exeext conftest.$ac_ext
24575 rm -f core conftest.err conftest.$ac_objext \
24576 conftest$ac_exeext conftest.$ac_ext
24580 rm -f core conftest.err conftest.$ac_objext \
24581 conftest$ac_exeext conftest.$ac_ext
24585 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24586 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24587 if test "$bash_cv_signal_vintage" = "posix"; then
24588 cat >>confdefs.h <<\_ACEOF
24589 #define HAVE_POSIX_SIGNALS 1
24592 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24593 cat >>confdefs.h <<\_ACEOF
24594 #define HAVE_BSD_SIGNALS 1
24597 elif test "$bash_cv_signal_vintage" = "svr3"; then
24598 cat >>confdefs.h <<\_ACEOF
24599 #define HAVE_USG_SIGHOLD 1
24604 { echo "$as_me:$LINENO: checking for mode_t" >&5
24605 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24606 if test "${ac_cv_type_mode_t+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24609 cat >conftest.$ac_ext <<_ACEOF
24612 cat confdefs.h >>conftest.$ac_ext
24613 cat >>conftest.$ac_ext <<_ACEOF
24614 /* end confdefs.h. */
24615 $ac_includes_default
24616 typedef mode_t ac__type_new_;
24620 if ((ac__type_new_ *) 0)
24622 if (sizeof (ac__type_new_))
24628 rm -f conftest.$ac_objext
24629 if { (ac_try="$ac_compile"
24630 case "(($ac_try" in
24631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632 *) ac_try_echo=$ac_try;;
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635 (eval "$ac_compile") 2>conftest.er1
24637 grep -v '^ *+' conftest.er1 >conftest.err
24639 cat conftest.err >&5
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); } &&
24642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24643 { (case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648 (eval "$ac_try") 2>&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; } &&
24652 { ac_try='test -s conftest.$ac_objext'
24653 { (case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_try") 2>&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; }; then
24662 ac_cv_type_mode_t=yes
24664 echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24667 ac_cv_type_mode_t=no
24670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24672 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24673 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24674 if test $ac_cv_type_mode_t = yes; then
24678 cat >>confdefs.h <<_ACEOF
24684 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24685 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24686 if test "${ac_cv_type_uid_t+set}" = set; then
24687 echo $ECHO_N "(cached) $ECHO_C" >&6
24689 cat >conftest.$ac_ext <<_ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24695 #include <sys/types.h>
24698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24699 $EGREP "uid_t" >/dev/null 2>&1; then
24700 ac_cv_type_uid_t=yes
24702 ac_cv_type_uid_t=no
24707 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24708 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24709 if test $ac_cv_type_uid_t = no; then
24711 cat >>confdefs.h <<\_ACEOF
24716 cat >>confdefs.h <<\_ACEOF
24722 { echo "$as_me:$LINENO: checking for size_t" >&5
24723 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24724 if test "${ac_cv_type_size_t+set}" = set; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24727 cat >conftest.$ac_ext <<_ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 $ac_includes_default
24734 typedef size_t ac__type_new_;
24738 if ((ac__type_new_ *) 0)
24740 if (sizeof (ac__type_new_))
24746 rm -f conftest.$ac_objext
24747 if { (ac_try="$ac_compile"
24748 case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_compile") 2>conftest.er1
24755 grep -v '^ *+' conftest.er1 >conftest.err
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
24760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24761 { (case "(($ac_try" in
24762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24763 *) ac_try_echo=$ac_try;;
24765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24766 (eval "$ac_try") 2>&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; } &&
24770 { ac_try='test -s conftest.$ac_objext'
24771 { (case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_try") 2>&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 ac_cv_type_size_t=yes
24782 echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24785 ac_cv_type_size_t=no
24788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24791 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24792 if test $ac_cv_type_size_t = yes; then
24796 cat >>confdefs.h <<_ACEOF
24797 #define size_t unsigned int
24802 { echo "$as_me:$LINENO: checking for pid_t" >&5
24803 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24804 if test "${ac_cv_type_pid_t+set}" = set; then
24805 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 cat >conftest.$ac_ext <<_ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h. */
24813 $ac_includes_default
24814 typedef pid_t ac__type_new_;
24818 if ((ac__type_new_ *) 0)
24820 if (sizeof (ac__type_new_))
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833 (eval "$ac_compile") 2>conftest.er1
24835 grep -v '^ *+' conftest.er1 >conftest.err
24837 cat conftest.err >&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } &&
24840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24841 { (case "(($ac_try" in
24842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843 *) ac_try_echo=$ac_try;;
24845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846 (eval "$ac_try") 2>&5
24848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); }; } &&
24850 { ac_try='test -s conftest.$ac_objext'
24851 { (case "(($ac_try" in
24852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853 *) ac_try_echo=$ac_try;;
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856 (eval "$ac_try") 2>&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 ac_cv_type_pid_t=yes
24862 echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24865 ac_cv_type_pid_t=no
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24870 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24871 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24872 if test $ac_cv_type_pid_t = yes; then
24876 cat >>confdefs.h <<_ACEOF
24882 { echo "$as_me:$LINENO: checking for off_t" >&5
24883 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24884 if test "${ac_cv_type_off_t+set}" = set; then
24885 echo $ECHO_N "(cached) $ECHO_C" >&6
24887 cat >conftest.$ac_ext <<_ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h. */
24893 $ac_includes_default
24894 typedef off_t ac__type_new_;
24898 if ((ac__type_new_ *) 0)
24900 if (sizeof (ac__type_new_))
24906 rm -f conftest.$ac_objext
24907 if { (ac_try="$ac_compile"
24908 case "(($ac_try" in
24909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910 *) ac_try_echo=$ac_try;;
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913 (eval "$ac_compile") 2>conftest.er1
24915 grep -v '^ *+' conftest.er1 >conftest.err
24917 cat conftest.err >&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } &&
24920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24921 { (case "(($ac_try" in
24922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923 *) ac_try_echo=$ac_try;;
24925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24926 (eval "$ac_try") 2>&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); }; } &&
24930 { ac_try='test -s conftest.$ac_objext'
24931 { (case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_try") 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ac_cv_type_off_t=yes
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24945 ac_cv_type_off_t=no
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24950 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24951 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24952 if test $ac_cv_type_off_t = yes; then
24956 cat >>confdefs.h <<_ACEOF
24957 #define off_t long int
24962 { echo "$as_me:$LINENO: checking for ino_t" >&5
24963 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24964 if test "${ac_cv_type_ino_t+set}" = set; then
24965 echo $ECHO_N "(cached) $ECHO_C" >&6
24967 cat >conftest.$ac_ext <<_ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h. */
24973 $ac_includes_default
24974 typedef ino_t ac__type_new_;
24978 if ((ac__type_new_ *) 0)
24980 if (sizeof (ac__type_new_))
24986 rm -f conftest.$ac_objext
24987 if { (ac_try="$ac_compile"
24988 case "(($ac_try" in
24989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990 *) ac_try_echo=$ac_try;;
24992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993 (eval "$ac_compile") 2>conftest.er1
24995 grep -v '^ *+' conftest.er1 >conftest.err
24997 cat conftest.err >&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } &&
25000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest.$ac_objext'
25011 { (case "(($ac_try" in
25012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013 *) ac_try_echo=$ac_try;;
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_try") 2>&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25020 ac_cv_type_ino_t=yes
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25025 ac_cv_type_ino_t=no
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25030 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
25031 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
25032 if test $ac_cv_type_ino_t = yes; then
25036 cat >>confdefs.h <<_ACEOF
25037 #define ino_t unsigned long
25042 { echo "$as_me:$LINENO: checking for dev_t" >&5
25043 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
25044 if test "${ac_cv_type_dev_t+set}" = set; then
25045 echo $ECHO_N "(cached) $ECHO_C" >&6
25047 cat >conftest.$ac_ext <<_ACEOF
25050 cat confdefs.h >>conftest.$ac_ext
25051 cat >>conftest.$ac_ext <<_ACEOF
25052 /* end confdefs.h. */
25053 $ac_includes_default
25054 typedef dev_t ac__type_new_;
25058 if ((ac__type_new_ *) 0)
25060 if (sizeof (ac__type_new_))
25066 rm -f conftest.$ac_objext
25067 if { (ac_try="$ac_compile"
25068 case "(($ac_try" in
25069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25070 *) ac_try_echo=$ac_try;;
25072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25073 (eval "$ac_compile") 2>conftest.er1
25075 grep -v '^ *+' conftest.er1 >conftest.err
25077 cat conftest.err >&5
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); } &&
25080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25081 { (case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086 (eval "$ac_try") 2>&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); }; } &&
25090 { ac_try='test -s conftest.$ac_objext'
25091 { (case "(($ac_try" in
25092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093 *) ac_try_echo=$ac_try;;
25095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25096 (eval "$ac_try") 2>&5
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; }; then
25100 ac_cv_type_dev_t=yes
25102 echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25105 ac_cv_type_dev_t=no
25108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
25111 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
25112 if test $ac_cv_type_dev_t = yes; then
25116 cat >>confdefs.h <<_ACEOF
25117 #define dev_t unsigned long
25122 { echo "$as_me:$LINENO: checking for daddr_t" >&5
25123 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
25124 if test "${ac_cv_type_daddr_t+set}" = set; then
25125 echo $ECHO_N "(cached) $ECHO_C" >&6
25127 cat >conftest.$ac_ext <<_ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h. */
25133 $ac_includes_default
25134 typedef daddr_t ac__type_new_;
25138 if ((ac__type_new_ *) 0)
25140 if (sizeof (ac__type_new_))
25146 rm -f conftest.$ac_objext
25147 if { (ac_try="$ac_compile"
25148 case "(($ac_try" in
25149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25150 *) ac_try_echo=$ac_try;;
25152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153 (eval "$ac_compile") 2>conftest.er1
25155 grep -v '^ *+' conftest.er1 >conftest.err
25157 cat conftest.err >&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } &&
25160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25161 { (case "(($ac_try" in
25162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163 *) ac_try_echo=$ac_try;;
25165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166 (eval "$ac_try") 2>&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); }; } &&
25170 { ac_try='test -s conftest.$ac_objext'
25171 { (case "(($ac_try" in
25172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176 (eval "$ac_try") 2>&5
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; }; then
25180 ac_cv_type_daddr_t=yes
25182 echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25185 ac_cv_type_daddr_t=no
25188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25190 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
25191 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25192 if test $ac_cv_type_daddr_t = yes; then
25196 cat >>confdefs.h <<_ACEOF
25197 #define daddr_t long
25202 { echo "$as_me:$LINENO: checking for major_t" >&5
25203 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25204 if test "${ac_cv_type_major_t+set}" = set; then
25205 echo $ECHO_N "(cached) $ECHO_C" >&6
25207 cat >conftest.$ac_ext <<_ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h. */
25213 $ac_includes_default
25214 typedef major_t ac__type_new_;
25218 if ((ac__type_new_ *) 0)
25220 if (sizeof (ac__type_new_))
25226 rm -f conftest.$ac_objext
25227 if { (ac_try="$ac_compile"
25228 case "(($ac_try" in
25229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230 *) ac_try_echo=$ac_try;;
25232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25233 (eval "$ac_compile") 2>conftest.er1
25235 grep -v '^ *+' conftest.er1 >conftest.err
25237 cat conftest.err >&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); } &&
25240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25241 { (case "(($ac_try" in
25242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243 *) ac_try_echo=$ac_try;;
25245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25246 (eval "$ac_try") 2>&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; } &&
25250 { ac_try='test -s conftest.$ac_objext'
25251 { (case "(($ac_try" in
25252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25253 *) ac_try_echo=$ac_try;;
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256 (eval "$ac_try") 2>&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; }; then
25260 ac_cv_type_major_t=yes
25262 echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25265 ac_cv_type_major_t=no
25268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25270 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25271 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25272 if test $ac_cv_type_major_t = yes; then
25276 cat >>confdefs.h <<_ACEOF
25277 #define major_t int
25282 { echo "$as_me:$LINENO: checking for minor_t" >&5
25283 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25284 if test "${ac_cv_type_minor_t+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25287 cat >conftest.$ac_ext <<_ACEOF
25290 cat confdefs.h >>conftest.$ac_ext
25291 cat >>conftest.$ac_ext <<_ACEOF
25292 /* end confdefs.h. */
25293 $ac_includes_default
25294 typedef minor_t ac__type_new_;
25298 if ((ac__type_new_ *) 0)
25300 if (sizeof (ac__type_new_))
25306 rm -f conftest.$ac_objext
25307 if { (ac_try="$ac_compile"
25308 case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313 (eval "$ac_compile") 2>conftest.er1
25315 grep -v '^ *+' conftest.er1 >conftest.err
25317 cat conftest.err >&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } &&
25320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25321 { (case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326 (eval "$ac_try") 2>&5
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); }; } &&
25330 { ac_try='test -s conftest.$ac_objext'
25331 { (case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336 (eval "$ac_try") 2>&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; }; then
25340 ac_cv_type_minor_t=yes
25342 echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25345 ac_cv_type_minor_t=no
25348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25350 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25351 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25352 if test $ac_cv_type_minor_t = yes; then
25356 cat >>confdefs.h <<_ACEOF
25357 #define minor_t int
25362 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25363 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25364 if test "${ac_cv_type_ssize_t+set}" = set; then
25365 echo $ECHO_N "(cached) $ECHO_C" >&6
25367 cat >conftest.$ac_ext <<_ACEOF
25370 cat confdefs.h >>conftest.$ac_ext
25371 cat >>conftest.$ac_ext <<_ACEOF
25372 /* end confdefs.h. */
25373 $ac_includes_default
25374 typedef ssize_t ac__type_new_;
25378 if ((ac__type_new_ *) 0)
25380 if (sizeof (ac__type_new_))
25386 rm -f conftest.$ac_objext
25387 if { (ac_try="$ac_compile"
25388 case "(($ac_try" in
25389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25390 *) ac_try_echo=$ac_try;;
25392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25393 (eval "$ac_compile") 2>conftest.er1
25395 grep -v '^ *+' conftest.er1 >conftest.err
25397 cat conftest.err >&5
25398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399 (exit $ac_status); } &&
25400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25401 { (case "(($ac_try" in
25402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403 *) ac_try_echo=$ac_try;;
25405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25406 (eval "$ac_try") 2>&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; } &&
25410 { ac_try='test -s conftest.$ac_objext'
25411 { (case "(($ac_try" in
25412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413 *) ac_try_echo=$ac_try;;
25415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25416 (eval "$ac_try") 2>&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; }; then
25420 ac_cv_type_ssize_t=yes
25422 echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25425 ac_cv_type_ssize_t=no
25428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25430 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25431 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25432 if test $ac_cv_type_ssize_t = yes; then
25436 cat >>confdefs.h <<_ACEOF
25437 #define ssize_t int
25442 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25443 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25444 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25447 cat >conftest.$ac_ext <<_ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25453 $ac_includes_default
25457 static struct stat ac_aggr;
25458 if (ac_aggr.st_blocks)
25464 rm -f conftest.$ac_objext
25465 if { (ac_try="$ac_compile"
25466 case "(($ac_try" in
25467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468 *) ac_try_echo=$ac_try;;
25470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25471 (eval "$ac_compile") 2>conftest.er1
25473 grep -v '^ *+' conftest.er1 >conftest.err
25475 cat conftest.err >&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } &&
25478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25479 { (case "(($ac_try" in
25480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25481 *) ac_try_echo=$ac_try;;
25483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25484 (eval "$ac_try") 2>&5
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); }; } &&
25488 { ac_try='test -s conftest.$ac_objext'
25489 { (case "(($ac_try" in
25490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25491 *) ac_try_echo=$ac_try;;
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494 (eval "$ac_try") 2>&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); }; }; then
25498 ac_cv_member_struct_stat_st_blocks=yes
25500 echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25503 cat >conftest.$ac_ext <<_ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h. */
25509 $ac_includes_default
25513 static struct stat ac_aggr;
25514 if (sizeof ac_aggr.st_blocks)
25520 rm -f conftest.$ac_objext
25521 if { (ac_try="$ac_compile"
25522 case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527 (eval "$ac_compile") 2>conftest.er1
25529 grep -v '^ *+' conftest.er1 >conftest.err
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } &&
25534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25535 { (case "(($ac_try" in
25536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537 *) ac_try_echo=$ac_try;;
25539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540 (eval "$ac_try") 2>&5
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; } &&
25544 { ac_try='test -s conftest.$ac_objext'
25545 { (case "(($ac_try" in
25546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547 *) ac_try_echo=$ac_try;;
25549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25550 (eval "$ac_try") 2>&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); }; }; then
25554 ac_cv_member_struct_stat_st_blocks=yes
25556 echo "$as_me: failed program was:" >&5
25557 sed 's/^/| /' conftest.$ac_ext >&5
25559 ac_cv_member_struct_stat_st_blocks=no
25562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25567 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25568 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25569 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25571 cat >>confdefs.h <<_ACEOF
25572 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25576 cat >>confdefs.h <<\_ACEOF
25577 #define HAVE_ST_BLOCKS 1
25581 case " $LIBOBJS " in
25582 *" fileblocks.$ac_objext "* ) ;;
25583 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25590 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25591 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25592 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25593 echo $ECHO_N "(cached) $ECHO_C" >&6
25595 cat >conftest.$ac_ext <<_ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h. */
25601 $ac_includes_default
25605 static struct stat ac_aggr;
25606 if (ac_aggr.st_rdev)
25612 rm -f conftest.$ac_objext
25613 if { (ac_try="$ac_compile"
25614 case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619 (eval "$ac_compile") 2>conftest.er1
25621 grep -v '^ *+' conftest.er1 >conftest.err
25623 cat conftest.err >&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); } &&
25626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25627 { (case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_try") 2>&5
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; } &&
25636 { ac_try='test -s conftest.$ac_objext'
25637 { (case "(($ac_try" in
25638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639 *) ac_try_echo=$ac_try;;
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642 (eval "$ac_try") 2>&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; }; then
25646 ac_cv_member_struct_stat_st_rdev=yes
25648 echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25651 cat >conftest.$ac_ext <<_ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h. */
25657 $ac_includes_default
25661 static struct stat ac_aggr;
25662 if (sizeof ac_aggr.st_rdev)
25668 rm -f conftest.$ac_objext
25669 if { (ac_try="$ac_compile"
25670 case "(($ac_try" in
25671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672 *) ac_try_echo=$ac_try;;
25674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25675 (eval "$ac_compile") 2>conftest.er1
25677 grep -v '^ *+' conftest.er1 >conftest.err
25679 cat conftest.err >&5
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); } &&
25682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25683 { (case "(($ac_try" in
25684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685 *) ac_try_echo=$ac_try;;
25687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25688 (eval "$ac_try") 2>&5
25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); }; } &&
25692 { ac_try='test -s conftest.$ac_objext'
25693 { (case "(($ac_try" in
25694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25695 *) ac_try_echo=$ac_try;;
25697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25698 (eval "$ac_try") 2>&5
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; }; then
25702 ac_cv_member_struct_stat_st_rdev=yes
25704 echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25707 ac_cv_member_struct_stat_st_rdev=no
25710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25716 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25717 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25719 cat >>confdefs.h <<_ACEOF
25720 #define HAVE_STRUCT_STAT_ST_RDEV 1
25724 cat >>confdefs.h <<\_ACEOF
25725 #define HAVE_ST_RDEV 1
25731 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25732 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25733 if test "${ac_cv_struct_tm+set}" = set; then
25734 echo $ECHO_N "(cached) $ECHO_C" >&6
25736 cat >conftest.$ac_ext <<_ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h. */
25742 #include <sys/types.h>
25748 struct tm *tp; tp->tm_sec;
25753 rm -f conftest.$ac_objext
25754 if { (ac_try="$ac_compile"
25755 case "(($ac_try" in
25756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757 *) ac_try_echo=$ac_try;;
25759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25760 (eval "$ac_compile") 2>conftest.er1
25762 grep -v '^ *+' conftest.er1 >conftest.err
25764 cat conftest.err >&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } &&
25767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25768 { (case "(($ac_try" in
25769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770 *) ac_try_echo=$ac_try;;
25772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773 (eval "$ac_try") 2>&5
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); }; } &&
25777 { ac_try='test -s conftest.$ac_objext'
25778 { (case "(($ac_try" in
25779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780 *) ac_try_echo=$ac_try;;
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783 (eval "$ac_try") 2>&5
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); }; }; then
25787 ac_cv_struct_tm=time.h
25789 echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25792 ac_cv_struct_tm=sys/time.h
25795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25797 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25798 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25799 if test $ac_cv_struct_tm = sys/time.h; then
25801 cat >>confdefs.h <<\_ACEOF
25802 #define TM_IN_SYS_TIME 1
25807 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25808 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25809 if test "${ac_cv_c_const+set}" = set; then
25810 echo $ECHO_N "(cached) $ECHO_C" >&6
25812 cat >conftest.$ac_ext <<_ACEOF
25815 cat confdefs.h >>conftest.$ac_ext
25816 cat >>conftest.$ac_ext <<_ACEOF
25817 /* end confdefs.h. */
25822 /* FIXME: Include the comments suggested by Paul. */
25823 #ifndef __cplusplus
25824 /* Ultrix mips cc rejects this. */
25825 typedef int charset[2];
25827 /* SunOS 4.1.1 cc rejects this. */
25828 char const *const *ccp;
25830 /* NEC SVR4.0.2 mips cc rejects this. */
25831 struct point {int x, y;};
25832 static struct point const zero = {0,0};
25833 /* AIX XL C 1.02.0.0 rejects this.
25834 It does not let you subtract one const X* pointer from another in
25835 an arm of an if-expression whose if-part is not a constant
25837 const char *g = "string";
25838 ccp = &g + (g ? g-g : 0);
25839 /* HPUX 7.0 cc rejects these. */
25842 ccp = (char const *const *) p;
25843 { /* SCO 3.2v4 cc rejects this. */
25845 char const *s = 0 ? (char *) 0 : (char const *) 0;
25850 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25851 int x[] = {25, 17};
25852 const int *foo = &x[0];
25855 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25856 typedef const int *iptr;
25860 { /* AIX XL C 1.02.0.0 rejects this saying
25861 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25862 struct s { int j; const int *ap[3]; };
25863 struct s *b; b->j = 5;
25865 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25866 const int foo = 10;
25867 if (!foo) return 0;
25869 return !x[0] && !zero.x;
25876 rm -f conftest.$ac_objext
25877 if { (ac_try="$ac_compile"
25878 case "(($ac_try" in
25879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880 *) ac_try_echo=$ac_try;;
25882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25883 (eval "$ac_compile") 2>conftest.er1
25885 grep -v '^ *+' conftest.er1 >conftest.err
25887 cat conftest.err >&5
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); } &&
25890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25891 { (case "(($ac_try" in
25892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25893 *) ac_try_echo=$ac_try;;
25895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25896 (eval "$ac_try") 2>&5
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; } &&
25900 { ac_try='test -s conftest.$ac_objext'
25901 { (case "(($ac_try" in
25902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25903 *) ac_try_echo=$ac_try;;
25905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25906 (eval "$ac_try") 2>&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); }; }; then
25912 echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25920 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25921 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25922 if test $ac_cv_c_const = no; then
25924 cat >>confdefs.h <<\_ACEOF
25932 { echo "$as_me:$LINENO: checking for char" >&5
25933 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25934 if test "${ac_cv_type_char+set}" = set; then
25935 echo $ECHO_N "(cached) $ECHO_C" >&6
25937 cat >conftest.$ac_ext <<_ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h. */
25943 $ac_includes_default
25944 typedef char ac__type_new_;
25948 if ((ac__type_new_ *) 0)
25950 if (sizeof (ac__type_new_))
25956 rm -f conftest.$ac_objext
25957 if { (ac_try="$ac_compile"
25958 case "(($ac_try" in
25959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960 *) ac_try_echo=$ac_try;;
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963 (eval "$ac_compile") 2>conftest.er1
25965 grep -v '^ *+' conftest.er1 >conftest.err
25967 cat conftest.err >&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); } &&
25970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25971 { (case "(($ac_try" in
25972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973 *) ac_try_echo=$ac_try;;
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976 (eval "$ac_try") 2>&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); }; } &&
25980 { ac_try='test -s conftest.$ac_objext'
25981 { (case "(($ac_try" in
25982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25983 *) ac_try_echo=$ac_try;;
25985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25986 (eval "$ac_try") 2>&5
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); }; }; then
25990 ac_cv_type_char=yes
25992 echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26000 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26001 echo "${ECHO_T}$ac_cv_type_char" >&6; }
26003 { echo "$as_me:$LINENO: checking size of char" >&5
26004 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
26005 if test "${ac_cv_sizeof_char+set}" = set; then
26006 echo $ECHO_N "(cached) $ECHO_C" >&6
26008 if test "$ac_cv_type_char" = yes; then
26009 # The cast to long int works around a bug in the HP C Compiler
26010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26012 # This bug is HP SR number 8606223364.
26013 if test "$cross_compiling" = yes; then
26014 # Depending upon the size, compute the lo and hi bounds.
26015 cat >conftest.$ac_ext <<_ACEOF
26018 cat confdefs.h >>conftest.$ac_ext
26019 cat >>conftest.$ac_ext <<_ACEOF
26020 /* end confdefs.h. */
26021 $ac_includes_default
26022 typedef char ac__type_sizeof_;
26026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26033 rm -f conftest.$ac_objext
26034 if { (ac_try="$ac_compile"
26035 case "(($ac_try" in
26036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037 *) ac_try_echo=$ac_try;;
26039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26040 (eval "$ac_compile") 2>conftest.er1
26042 grep -v '^ *+' conftest.er1 >conftest.err
26044 cat conftest.err >&5
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); } &&
26047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26048 { (case "(($ac_try" in
26049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050 *) ac_try_echo=$ac_try;;
26052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26053 (eval "$ac_try") 2>&5
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); }; } &&
26057 { ac_try='test -s conftest.$ac_objext'
26058 { (case "(($ac_try" in
26059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063 (eval "$ac_try") 2>&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; }; then
26069 cat >conftest.$ac_ext <<_ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h. */
26075 $ac_includes_default
26076 typedef char ac__type_sizeof_;
26080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26087 rm -f conftest.$ac_objext
26088 if { (ac_try="$ac_compile"
26089 case "(($ac_try" in
26090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091 *) ac_try_echo=$ac_try;;
26093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26094 (eval "$ac_compile") 2>conftest.er1
26096 grep -v '^ *+' conftest.er1 >conftest.err
26098 cat conftest.err >&5
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); } &&
26101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26102 { (case "(($ac_try" in
26103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26104 *) ac_try_echo=$ac_try;;
26106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26107 (eval "$ac_try") 2>&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); }; } &&
26111 { ac_try='test -s conftest.$ac_objext'
26112 { (case "(($ac_try" in
26113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26114 *) ac_try_echo=$ac_try;;
26116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26117 (eval "$ac_try") 2>&5
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; }; then
26121 ac_hi=$ac_mid; break
26123 echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 ac_lo=`expr $ac_mid + 1`
26127 if test $ac_lo -le $ac_mid; then
26131 ac_mid=`expr 2 '*' $ac_mid + 1`
26134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26137 echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26140 cat >conftest.$ac_ext <<_ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h. */
26146 $ac_includes_default
26147 typedef char ac__type_sizeof_;
26151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26158 rm -f conftest.$ac_objext
26159 if { (ac_try="$ac_compile"
26160 case "(($ac_try" in
26161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162 *) ac_try_echo=$ac_try;;
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165 (eval "$ac_compile") 2>conftest.er1
26167 grep -v '^ *+' conftest.er1 >conftest.err
26169 cat conftest.err >&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } &&
26172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26173 { (case "(($ac_try" in
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175 *) ac_try_echo=$ac_try;;
26177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26178 (eval "$ac_try") 2>&5
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; } &&
26182 { ac_try='test -s conftest.$ac_objext'
26183 { (case "(($ac_try" in
26184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26188 (eval "$ac_try") 2>&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; }; then
26194 cat >conftest.$ac_ext <<_ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h. */
26200 $ac_includes_default
26201 typedef char ac__type_sizeof_;
26205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26212 rm -f conftest.$ac_objext
26213 if { (ac_try="$ac_compile"
26214 case "(($ac_try" in
26215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26216 *) ac_try_echo=$ac_try;;
26218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26219 (eval "$ac_compile") 2>conftest.er1
26221 grep -v '^ *+' conftest.er1 >conftest.err
26223 cat conftest.err >&5
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); } &&
26226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26227 { (case "(($ac_try" in
26228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26229 *) ac_try_echo=$ac_try;;
26231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26232 (eval "$ac_try") 2>&5
26234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); }; } &&
26236 { ac_try='test -s conftest.$ac_objext'
26237 { (case "(($ac_try" in
26238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239 *) ac_try_echo=$ac_try;;
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242 (eval "$ac_try") 2>&5
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); }; }; then
26246 ac_lo=$ac_mid; break
26248 echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26251 ac_hi=`expr '(' $ac_mid ')' - 1`
26252 if test $ac_mid -le $ac_hi; then
26256 ac_mid=`expr 2 '*' $ac_mid`
26259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26262 echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26272 # Binary search between lo and hi bounds.
26273 while test "x$ac_lo" != "x$ac_hi"; do
26274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26275 cat >conftest.$ac_ext <<_ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h. */
26281 $ac_includes_default
26282 typedef char ac__type_sizeof_;
26286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26293 rm -f conftest.$ac_objext
26294 if { (ac_try="$ac_compile"
26295 case "(($ac_try" in
26296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297 *) ac_try_echo=$ac_try;;
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300 (eval "$ac_compile") 2>conftest.er1
26302 grep -v '^ *+' conftest.er1 >conftest.err
26304 cat conftest.err >&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } &&
26307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26308 { (case "(($ac_try" in
26309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26310 *) ac_try_echo=$ac_try;;
26312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26313 (eval "$ac_try") 2>&5
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); }; } &&
26317 { ac_try='test -s conftest.$ac_objext'
26318 { (case "(($ac_try" in
26319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26320 *) ac_try_echo=$ac_try;;
26322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26323 (eval "$ac_try") 2>&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); }; }; then
26329 echo "$as_me: failed program was:" >&5
26330 sed 's/^/| /' conftest.$ac_ext >&5
26332 ac_lo=`expr '(' $ac_mid ')' + 1`
26335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26338 ?*) ac_cv_sizeof_char=$ac_lo;;
26339 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26340 See \`config.log' for more details." >&5
26341 echo "$as_me: error: cannot compute sizeof (char)
26342 See \`config.log' for more details." >&2;}
26343 { (exit 77); exit 77; }; } ;;
26346 cat >conftest.$ac_ext <<_ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h. */
26352 $ac_includes_default
26353 typedef char ac__type_sizeof_;
26354 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26355 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26357 #include <stdlib.h>
26362 FILE *f = fopen ("conftest.val", "w");
26365 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26367 long int i = longval ();
26368 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26370 fprintf (f, "%ld\n", i);
26374 unsigned long int i = ulongval ();
26375 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26377 fprintf (f, "%lu\n", i);
26379 return ferror (f) || fclose (f) != 0;
26385 rm -f conftest$ac_exeext
26386 if { (ac_try="$ac_link"
26387 case "(($ac_try" in
26388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26389 *) ac_try_echo=$ac_try;;
26391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26392 (eval "$ac_link") 2>&5
26394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26396 { (case "(($ac_try" in
26397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398 *) ac_try_echo=$ac_try;;
26400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401 (eval "$ac_try") 2>&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); }; }; then
26405 ac_cv_sizeof_char=`cat conftest.val`
26407 echo "$as_me: program exited with status $ac_status" >&5
26408 echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.$ac_ext >&5
26411 ( exit $ac_status )
26412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26413 See \`config.log' for more details." >&5
26414 echo "$as_me: error: cannot compute sizeof (char)
26415 See \`config.log' for more details." >&2;}
26416 { (exit 77); exit 77; }; }
26418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26422 ac_cv_sizeof_char=0
26425 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26426 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26427 cat >>confdefs.h <<_ACEOF
26428 #define SIZEOF_CHAR $ac_cv_sizeof_char
26432 { echo "$as_me:$LINENO: checking for short int" >&5
26433 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26434 if test "${ac_cv_type_short_int+set}" = set; then
26435 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 cat >conftest.$ac_ext <<_ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h. */
26443 $ac_includes_default
26444 typedef short int ac__type_new_;
26448 if ((ac__type_new_ *) 0)
26450 if (sizeof (ac__type_new_))
26456 rm -f conftest.$ac_objext
26457 if { (ac_try="$ac_compile"
26458 case "(($ac_try" in
26459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460 *) ac_try_echo=$ac_try;;
26462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463 (eval "$ac_compile") 2>conftest.er1
26465 grep -v '^ *+' conftest.er1 >conftest.err
26467 cat conftest.err >&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); } &&
26470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26471 { (case "(($ac_try" in
26472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26473 *) ac_try_echo=$ac_try;;
26475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26476 (eval "$ac_try") 2>&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; } &&
26480 { ac_try='test -s conftest.$ac_objext'
26481 { (case "(($ac_try" in
26482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26483 *) ac_try_echo=$ac_try;;
26485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26486 (eval "$ac_try") 2>&5
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; }; then
26490 ac_cv_type_short_int=yes
26492 echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26495 ac_cv_type_short_int=no
26498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26500 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26501 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26503 { echo "$as_me:$LINENO: checking size of short int" >&5
26504 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26505 if test "${ac_cv_sizeof_short_int+set}" = set; then
26506 echo $ECHO_N "(cached) $ECHO_C" >&6
26508 if test "$ac_cv_type_short_int" = yes; then
26509 # The cast to long int works around a bug in the HP C Compiler
26510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26512 # This bug is HP SR number 8606223364.
26513 if test "$cross_compiling" = yes; then
26514 # Depending upon the size, compute the lo and hi bounds.
26515 cat >conftest.$ac_ext <<_ACEOF
26518 cat confdefs.h >>conftest.$ac_ext
26519 cat >>conftest.$ac_ext <<_ACEOF
26520 /* end confdefs.h. */
26521 $ac_includes_default
26522 typedef short int ac__type_sizeof_;
26526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26533 rm -f conftest.$ac_objext
26534 if { (ac_try="$ac_compile"
26535 case "(($ac_try" in
26536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537 *) ac_try_echo=$ac_try;;
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540 (eval "$ac_compile") 2>conftest.er1
26542 grep -v '^ *+' conftest.er1 >conftest.err
26544 cat conftest.err >&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); } &&
26547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26548 { (case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_try") 2>&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; } &&
26557 { ac_try='test -s conftest.$ac_objext'
26558 { (case "(($ac_try" in
26559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26560 *) ac_try_echo=$ac_try;;
26562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26563 (eval "$ac_try") 2>&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); }; }; then
26569 cat >conftest.$ac_ext <<_ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h. */
26575 $ac_includes_default
26576 typedef short int ac__type_sizeof_;
26580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26587 rm -f conftest.$ac_objext
26588 if { (ac_try="$ac_compile"
26589 case "(($ac_try" in
26590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26591 *) ac_try_echo=$ac_try;;
26593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26594 (eval "$ac_compile") 2>conftest.er1
26596 grep -v '^ *+' conftest.er1 >conftest.err
26598 cat conftest.err >&5
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } &&
26601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26602 { (case "(($ac_try" in
26603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26604 *) ac_try_echo=$ac_try;;
26606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26607 (eval "$ac_try") 2>&5
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); }; } &&
26611 { ac_try='test -s conftest.$ac_objext'
26612 { (case "(($ac_try" in
26613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614 *) ac_try_echo=$ac_try;;
26616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26617 (eval "$ac_try") 2>&5
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; }; then
26621 ac_hi=$ac_mid; break
26623 echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26626 ac_lo=`expr $ac_mid + 1`
26627 if test $ac_lo -le $ac_mid; then
26631 ac_mid=`expr 2 '*' $ac_mid + 1`
26634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26637 echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26640 cat >conftest.$ac_ext <<_ACEOF
26643 cat confdefs.h >>conftest.$ac_ext
26644 cat >>conftest.$ac_ext <<_ACEOF
26645 /* end confdefs.h. */
26646 $ac_includes_default
26647 typedef short int ac__type_sizeof_;
26651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26658 rm -f conftest.$ac_objext
26659 if { (ac_try="$ac_compile"
26660 case "(($ac_try" in
26661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26662 *) ac_try_echo=$ac_try;;
26664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26665 (eval "$ac_compile") 2>conftest.er1
26667 grep -v '^ *+' conftest.er1 >conftest.err
26669 cat conftest.err >&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); } &&
26672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26673 { (case "(($ac_try" in
26674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26675 *) ac_try_echo=$ac_try;;
26677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26678 (eval "$ac_try") 2>&5
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); }; } &&
26682 { ac_try='test -s conftest.$ac_objext'
26683 { (case "(($ac_try" in
26684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685 *) ac_try_echo=$ac_try;;
26687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688 (eval "$ac_try") 2>&5
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); }; }; then
26694 cat >conftest.$ac_ext <<_ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h. */
26700 $ac_includes_default
26701 typedef short int ac__type_sizeof_;
26705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26712 rm -f conftest.$ac_objext
26713 if { (ac_try="$ac_compile"
26714 case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_compile") 2>conftest.er1
26721 grep -v '^ *+' conftest.er1 >conftest.err
26723 cat conftest.err >&5
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } &&
26726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26727 { (case "(($ac_try" in
26728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26729 *) ac_try_echo=$ac_try;;
26731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26732 (eval "$ac_try") 2>&5
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); }; } &&
26736 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; }; then
26746 ac_lo=$ac_mid; break
26748 echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26751 ac_hi=`expr '(' $ac_mid ')' - 1`
26752 if test $ac_mid -le $ac_hi; then
26756 ac_mid=`expr 2 '*' $ac_mid`
26759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26762 echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26772 # Binary search between lo and hi bounds.
26773 while test "x$ac_lo" != "x$ac_hi"; do
26774 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26775 cat >conftest.$ac_ext <<_ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h. */
26781 $ac_includes_default
26782 typedef short int ac__type_sizeof_;
26786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26793 rm -f conftest.$ac_objext
26794 if { (ac_try="$ac_compile"
26795 case "(($ac_try" in
26796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26797 *) ac_try_echo=$ac_try;;
26799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800 (eval "$ac_compile") 2>conftest.er1
26802 grep -v '^ *+' conftest.er1 >conftest.err
26804 cat conftest.err >&5
26805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806 (exit $ac_status); } &&
26807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26808 { (case "(($ac_try" in
26809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26810 *) ac_try_echo=$ac_try;;
26812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26813 (eval "$ac_try") 2>&5
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); }; } &&
26817 { ac_try='test -s conftest.$ac_objext'
26818 { (case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_try") 2>&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); }; }; then
26829 echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.$ac_ext >&5
26832 ac_lo=`expr '(' $ac_mid ')' + 1`
26835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26838 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26839 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26840 See \`config.log' for more details." >&5
26841 echo "$as_me: error: cannot compute sizeof (short int)
26842 See \`config.log' for more details." >&2;}
26843 { (exit 77); exit 77; }; } ;;
26846 cat >conftest.$ac_ext <<_ACEOF
26849 cat confdefs.h >>conftest.$ac_ext
26850 cat >>conftest.$ac_ext <<_ACEOF
26851 /* end confdefs.h. */
26852 $ac_includes_default
26853 typedef short int ac__type_sizeof_;
26854 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26855 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26857 #include <stdlib.h>
26862 FILE *f = fopen ("conftest.val", "w");
26865 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26867 long int i = longval ();
26868 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26870 fprintf (f, "%ld\n", i);
26874 unsigned long int i = ulongval ();
26875 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26877 fprintf (f, "%lu\n", i);
26879 return ferror (f) || fclose (f) != 0;
26885 rm -f conftest$ac_exeext
26886 if { (ac_try="$ac_link"
26887 case "(($ac_try" in
26888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889 *) ac_try_echo=$ac_try;;
26891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892 (eval "$ac_link") 2>&5
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26896 { (case "(($ac_try" in
26897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898 *) ac_try_echo=$ac_try;;
26900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26901 (eval "$ac_try") 2>&5
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); }; }; then
26905 ac_cv_sizeof_short_int=`cat conftest.val`
26907 echo "$as_me: program exited with status $ac_status" >&5
26908 echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26911 ( exit $ac_status )
26912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26913 See \`config.log' for more details." >&5
26914 echo "$as_me: error: cannot compute sizeof (short int)
26915 See \`config.log' for more details." >&2;}
26916 { (exit 77); exit 77; }; }
26918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26922 ac_cv_sizeof_short_int=0
26925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26926 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26927 cat >>confdefs.h <<_ACEOF
26928 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26932 { echo "$as_me:$LINENO: checking for int" >&5
26933 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26934 if test "${ac_cv_type_int+set}" = set; then
26935 echo $ECHO_N "(cached) $ECHO_C" >&6
26937 cat >conftest.$ac_ext <<_ACEOF
26940 cat confdefs.h >>conftest.$ac_ext
26941 cat >>conftest.$ac_ext <<_ACEOF
26942 /* end confdefs.h. */
26943 $ac_includes_default
26944 typedef int ac__type_new_;
26948 if ((ac__type_new_ *) 0)
26950 if (sizeof (ac__type_new_))
26956 rm -f conftest.$ac_objext
26957 if { (ac_try="$ac_compile"
26958 case "(($ac_try" in
26959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960 *) ac_try_echo=$ac_try;;
26962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963 (eval "$ac_compile") 2>conftest.er1
26965 grep -v '^ *+' conftest.er1 >conftest.err
26967 cat conftest.err >&5
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); } &&
26970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26971 { (case "(($ac_try" in
26972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26973 *) ac_try_echo=$ac_try;;
26975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26976 (eval "$ac_try") 2>&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); }; } &&
26980 { ac_try='test -s conftest.$ac_objext'
26981 { (case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986 (eval "$ac_try") 2>&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; }; then
26992 echo "$as_me: failed program was:" >&5
26993 sed 's/^/| /' conftest.$ac_ext >&5
26998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27000 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27001 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27003 { echo "$as_me:$LINENO: checking size of int" >&5
27004 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27005 if test "${ac_cv_sizeof_int+set}" = set; then
27006 echo $ECHO_N "(cached) $ECHO_C" >&6
27008 if test "$ac_cv_type_int" = yes; then
27009 # The cast to long int works around a bug in the HP C Compiler
27010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27012 # This bug is HP SR number 8606223364.
27013 if test "$cross_compiling" = yes; then
27014 # Depending upon the size, compute the lo and hi bounds.
27015 cat >conftest.$ac_ext <<_ACEOF
27018 cat confdefs.h >>conftest.$ac_ext
27019 cat >>conftest.$ac_ext <<_ACEOF
27020 /* end confdefs.h. */
27021 $ac_includes_default
27022 typedef int ac__type_sizeof_;
27026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27033 rm -f conftest.$ac_objext
27034 if { (ac_try="$ac_compile"
27035 case "(($ac_try" in
27036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037 *) ac_try_echo=$ac_try;;
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040 (eval "$ac_compile") 2>conftest.er1
27042 grep -v '^ *+' conftest.er1 >conftest.err
27044 cat conftest.err >&5
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); } &&
27047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27048 { (case "(($ac_try" in
27049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050 *) ac_try_echo=$ac_try;;
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053 (eval "$ac_try") 2>&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); }; } &&
27057 { ac_try='test -s conftest.$ac_objext'
27058 { (case "(($ac_try" in
27059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060 *) ac_try_echo=$ac_try;;
27062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063 (eval "$ac_try") 2>&5
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; }; then
27069 cat >conftest.$ac_ext <<_ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h. */
27075 $ac_includes_default
27076 typedef int ac__type_sizeof_;
27080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27087 rm -f conftest.$ac_objext
27088 if { (ac_try="$ac_compile"
27089 case "(($ac_try" in
27090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091 *) ac_try_echo=$ac_try;;
27093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094 (eval "$ac_compile") 2>conftest.er1
27096 grep -v '^ *+' conftest.er1 >conftest.err
27098 cat conftest.err >&5
27099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100 (exit $ac_status); } &&
27101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27102 { (case "(($ac_try" in
27103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104 *) ac_try_echo=$ac_try;;
27106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107 (eval "$ac_try") 2>&5
27109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110 (exit $ac_status); }; } &&
27111 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); }; }; then
27121 ac_hi=$ac_mid; break
27123 echo "$as_me: failed program was:" >&5
27124 sed 's/^/| /' conftest.$ac_ext >&5
27126 ac_lo=`expr $ac_mid + 1`
27127 if test $ac_lo -le $ac_mid; then
27131 ac_mid=`expr 2 '*' $ac_mid + 1`
27134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27137 echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27140 cat >conftest.$ac_ext <<_ACEOF
27143 cat confdefs.h >>conftest.$ac_ext
27144 cat >>conftest.$ac_ext <<_ACEOF
27145 /* end confdefs.h. */
27146 $ac_includes_default
27147 typedef int ac__type_sizeof_;
27151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27158 rm -f conftest.$ac_objext
27159 if { (ac_try="$ac_compile"
27160 case "(($ac_try" in
27161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27162 *) ac_try_echo=$ac_try;;
27164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27165 (eval "$ac_compile") 2>conftest.er1
27167 grep -v '^ *+' conftest.er1 >conftest.err
27169 cat conftest.err >&5
27170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171 (exit $ac_status); } &&
27172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27173 { (case "(($ac_try" in
27174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175 *) ac_try_echo=$ac_try;;
27177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178 (eval "$ac_try") 2>&5
27180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181 (exit $ac_status); }; } &&
27182 { ac_try='test -s conftest.$ac_objext'
27183 { (case "(($ac_try" in
27184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27185 *) ac_try_echo=$ac_try;;
27187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27188 (eval "$ac_try") 2>&5
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); }; }; then
27194 cat >conftest.$ac_ext <<_ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27200 $ac_includes_default
27201 typedef int ac__type_sizeof_;
27205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27212 rm -f conftest.$ac_objext
27213 if { (ac_try="$ac_compile"
27214 case "(($ac_try" in
27215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216 *) ac_try_echo=$ac_try;;
27218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219 (eval "$ac_compile") 2>conftest.er1
27221 grep -v '^ *+' conftest.er1 >conftest.err
27223 cat conftest.err >&5
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); } &&
27226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27227 { (case "(($ac_try" in
27228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27229 *) ac_try_echo=$ac_try;;
27231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27232 (eval "$ac_try") 2>&5
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); }; } &&
27236 { ac_try='test -s conftest.$ac_objext'
27237 { (case "(($ac_try" in
27238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27239 *) ac_try_echo=$ac_try;;
27241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27242 (eval "$ac_try") 2>&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; }; then
27246 ac_lo=$ac_mid; break
27248 echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27251 ac_hi=`expr '(' $ac_mid ')' - 1`
27252 if test $ac_mid -le $ac_hi; then
27256 ac_mid=`expr 2 '*' $ac_mid`
27259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27262 echo "$as_me: failed program was:" >&5
27263 sed 's/^/| /' conftest.$ac_ext >&5
27268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27272 # Binary search between lo and hi bounds.
27273 while test "x$ac_lo" != "x$ac_hi"; do
27274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27275 cat >conftest.$ac_ext <<_ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h. */
27281 $ac_includes_default
27282 typedef int ac__type_sizeof_;
27286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27293 rm -f conftest.$ac_objext
27294 if { (ac_try="$ac_compile"
27295 case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_compile") 2>conftest.er1
27302 grep -v '^ *+' conftest.er1 >conftest.err
27304 cat conftest.err >&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); } &&
27307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27308 { (case "(($ac_try" in
27309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310 *) ac_try_echo=$ac_try;;
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313 (eval "$ac_try") 2>&5
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; } &&
27317 { ac_try='test -s conftest.$ac_objext'
27318 { (case "(($ac_try" in
27319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27320 *) ac_try_echo=$ac_try;;
27322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27323 (eval "$ac_try") 2>&5
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); }; }; then
27329 echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27332 ac_lo=`expr '(' $ac_mid ')' + 1`
27335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27338 ?*) ac_cv_sizeof_int=$ac_lo;;
27339 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27340 See \`config.log' for more details." >&5
27341 echo "$as_me: error: cannot compute sizeof (int)
27342 See \`config.log' for more details." >&2;}
27343 { (exit 77); exit 77; }; } ;;
27346 cat >conftest.$ac_ext <<_ACEOF
27349 cat confdefs.h >>conftest.$ac_ext
27350 cat >>conftest.$ac_ext <<_ACEOF
27351 /* end confdefs.h. */
27352 $ac_includes_default
27353 typedef int ac__type_sizeof_;
27354 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27355 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27357 #include <stdlib.h>
27362 FILE *f = fopen ("conftest.val", "w");
27365 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27367 long int i = longval ();
27368 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27370 fprintf (f, "%ld\n", i);
27374 unsigned long int i = ulongval ();
27375 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27377 fprintf (f, "%lu\n", i);
27379 return ferror (f) || fclose (f) != 0;
27385 rm -f conftest$ac_exeext
27386 if { (ac_try="$ac_link"
27387 case "(($ac_try" in
27388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_link") 2>&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27396 { (case "(($ac_try" in
27397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27398 *) ac_try_echo=$ac_try;;
27400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27401 (eval "$ac_try") 2>&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); }; }; then
27405 ac_cv_sizeof_int=`cat conftest.val`
27407 echo "$as_me: program exited with status $ac_status" >&5
27408 echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27411 ( exit $ac_status )
27412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27413 See \`config.log' for more details." >&5
27414 echo "$as_me: error: cannot compute sizeof (int)
27415 See \`config.log' for more details." >&2;}
27416 { (exit 77); exit 77; }; }
27418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27425 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27426 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27427 cat >>confdefs.h <<_ACEOF
27428 #define SIZEOF_INT $ac_cv_sizeof_int
27432 { echo "$as_me:$LINENO: checking for long int" >&5
27433 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27434 if test "${ac_cv_type_long_int+set}" = set; then
27435 echo $ECHO_N "(cached) $ECHO_C" >&6
27437 cat >conftest.$ac_ext <<_ACEOF
27440 cat confdefs.h >>conftest.$ac_ext
27441 cat >>conftest.$ac_ext <<_ACEOF
27442 /* end confdefs.h. */
27443 $ac_includes_default
27444 typedef long int ac__type_new_;
27448 if ((ac__type_new_ *) 0)
27450 if (sizeof (ac__type_new_))
27456 rm -f conftest.$ac_objext
27457 if { (ac_try="$ac_compile"
27458 case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_compile") 2>conftest.er1
27465 grep -v '^ *+' conftest.er1 >conftest.err
27467 cat conftest.err >&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); } &&
27470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27471 { (case "(($ac_try" in
27472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473 *) ac_try_echo=$ac_try;;
27475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27476 (eval "$ac_try") 2>&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } &&
27480 { ac_try='test -s conftest.$ac_objext'
27481 { (case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_try") 2>&5
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; }; then
27490 ac_cv_type_long_int=yes
27492 echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27495 ac_cv_type_long_int=no
27498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27500 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27501 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27503 { echo "$as_me:$LINENO: checking size of long int" >&5
27504 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27505 if test "${ac_cv_sizeof_long_int+set}" = set; then
27506 echo $ECHO_N "(cached) $ECHO_C" >&6
27508 if test "$ac_cv_type_long_int" = yes; then
27509 # The cast to long int works around a bug in the HP C Compiler
27510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27512 # This bug is HP SR number 8606223364.
27513 if test "$cross_compiling" = yes; then
27514 # Depending upon the size, compute the lo and hi bounds.
27515 cat >conftest.$ac_ext <<_ACEOF
27518 cat confdefs.h >>conftest.$ac_ext
27519 cat >>conftest.$ac_ext <<_ACEOF
27520 /* end confdefs.h. */
27521 $ac_includes_default
27522 typedef long int ac__type_sizeof_;
27526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27533 rm -f conftest.$ac_objext
27534 if { (ac_try="$ac_compile"
27535 case "(($ac_try" in
27536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537 *) ac_try_echo=$ac_try;;
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540 (eval "$ac_compile") 2>conftest.er1
27542 grep -v '^ *+' conftest.er1 >conftest.err
27544 cat conftest.err >&5
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); } &&
27547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27548 { (case "(($ac_try" in
27549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550 *) ac_try_echo=$ac_try;;
27552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553 (eval "$ac_try") 2>&5
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; } &&
27557 { ac_try='test -s conftest.$ac_objext'
27558 { (case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_try") 2>&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; }; then
27569 cat >conftest.$ac_ext <<_ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h. */
27575 $ac_includes_default
27576 typedef long int ac__type_sizeof_;
27580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27587 rm -f conftest.$ac_objext
27588 if { (ac_try="$ac_compile"
27589 case "(($ac_try" in
27590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27591 *) ac_try_echo=$ac_try;;
27593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27594 (eval "$ac_compile") 2>conftest.er1
27596 grep -v '^ *+' conftest.er1 >conftest.err
27598 cat conftest.err >&5
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); } &&
27601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); }; } &&
27611 { ac_try='test -s conftest.$ac_objext'
27612 { (case "(($ac_try" in
27613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614 *) ac_try_echo=$ac_try;;
27616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27617 (eval "$ac_try") 2>&5
27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); }; }; then
27621 ac_hi=$ac_mid; break
27623 echo "$as_me: failed program was:" >&5
27624 sed 's/^/| /' conftest.$ac_ext >&5
27626 ac_lo=`expr $ac_mid + 1`
27627 if test $ac_lo -le $ac_mid; then
27631 ac_mid=`expr 2 '*' $ac_mid + 1`
27634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27637 echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27640 cat >conftest.$ac_ext <<_ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h. */
27646 $ac_includes_default
27647 typedef long int ac__type_sizeof_;
27651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27658 rm -f conftest.$ac_objext
27659 if { (ac_try="$ac_compile"
27660 case "(($ac_try" in
27661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27662 *) ac_try_echo=$ac_try;;
27664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27665 (eval "$ac_compile") 2>conftest.er1
27667 grep -v '^ *+' conftest.er1 >conftest.err
27669 cat conftest.err >&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); } &&
27672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27673 { (case "(($ac_try" in
27674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675 *) ac_try_echo=$ac_try;;
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678 (eval "$ac_try") 2>&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); }; } &&
27682 { ac_try='test -s conftest.$ac_objext'
27683 { (case "(($ac_try" in
27684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27685 *) ac_try_echo=$ac_try;;
27687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27688 (eval "$ac_try") 2>&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; }; then
27694 cat >conftest.$ac_ext <<_ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h. */
27700 $ac_includes_default
27701 typedef long int ac__type_sizeof_;
27705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27712 rm -f conftest.$ac_objext
27713 if { (ac_try="$ac_compile"
27714 case "(($ac_try" in
27715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27716 *) ac_try_echo=$ac_try;;
27718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27719 (eval "$ac_compile") 2>conftest.er1
27721 grep -v '^ *+' conftest.er1 >conftest.err
27723 cat conftest.err >&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); } &&
27726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27727 { (case "(($ac_try" in
27728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729 *) ac_try_echo=$ac_try;;
27731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27732 (eval "$ac_try") 2>&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); }; } &&
27736 { ac_try='test -s conftest.$ac_objext'
27737 { (case "(($ac_try" in
27738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27739 *) ac_try_echo=$ac_try;;
27741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27742 (eval "$ac_try") 2>&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); }; }; then
27746 ac_lo=$ac_mid; break
27748 echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27751 ac_hi=`expr '(' $ac_mid ')' - 1`
27752 if test $ac_mid -le $ac_hi; then
27756 ac_mid=`expr 2 '*' $ac_mid`
27759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27762 echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27772 # Binary search between lo and hi bounds.
27773 while test "x$ac_lo" != "x$ac_hi"; do
27774 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27775 cat >conftest.$ac_ext <<_ACEOF
27778 cat confdefs.h >>conftest.$ac_ext
27779 cat >>conftest.$ac_ext <<_ACEOF
27780 /* end confdefs.h. */
27781 $ac_includes_default
27782 typedef long int ac__type_sizeof_;
27786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27793 rm -f conftest.$ac_objext
27794 if { (ac_try="$ac_compile"
27795 case "(($ac_try" in
27796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797 *) ac_try_echo=$ac_try;;
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_compile") 2>conftest.er1
27802 grep -v '^ *+' conftest.er1 >conftest.err
27804 cat conftest.err >&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } &&
27807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27808 { (case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813 (eval "$ac_try") 2>&5
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); }; } &&
27817 { ac_try='test -s conftest.$ac_objext'
27818 { (case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_try") 2>&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; }; then
27829 echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27832 ac_lo=`expr '(' $ac_mid ')' + 1`
27835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27838 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27839 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27840 See \`config.log' for more details." >&5
27841 echo "$as_me: error: cannot compute sizeof (long int)
27842 See \`config.log' for more details." >&2;}
27843 { (exit 77); exit 77; }; } ;;
27846 cat >conftest.$ac_ext <<_ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h. */
27852 $ac_includes_default
27853 typedef long int ac__type_sizeof_;
27854 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27855 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27857 #include <stdlib.h>
27862 FILE *f = fopen ("conftest.val", "w");
27865 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27867 long int i = longval ();
27868 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27870 fprintf (f, "%ld\n", i);
27874 unsigned long int i = ulongval ();
27875 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27877 fprintf (f, "%lu\n", i);
27879 return ferror (f) || fclose (f) != 0;
27885 rm -f conftest$ac_exeext
27886 if { (ac_try="$ac_link"
27887 case "(($ac_try" in
27888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889 *) ac_try_echo=$ac_try;;
27891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27892 (eval "$ac_link") 2>&5
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27896 { (case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901 (eval "$ac_try") 2>&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; }; then
27905 ac_cv_sizeof_long_int=`cat conftest.val`
27907 echo "$as_me: program exited with status $ac_status" >&5
27908 echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.$ac_ext >&5
27911 ( exit $ac_status )
27912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27913 See \`config.log' for more details." >&5
27914 echo "$as_me: error: cannot compute sizeof (long int)
27915 See \`config.log' for more details." >&2;}
27916 { (exit 77); exit 77; }; }
27918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27922 ac_cv_sizeof_long_int=0
27925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27926 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27927 cat >>confdefs.h <<_ACEOF
27928 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27932 { echo "$as_me:$LINENO: checking for long long int" >&5
27933 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27934 if test "${ac_cv_type_long_long_int+set}" = set; then
27935 echo $ECHO_N "(cached) $ECHO_C" >&6
27937 cat >conftest.$ac_ext <<_ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h. */
27943 $ac_includes_default
27944 typedef long long int ac__type_new_;
27948 if ((ac__type_new_ *) 0)
27950 if (sizeof (ac__type_new_))
27956 rm -f conftest.$ac_objext
27957 if { (ac_try="$ac_compile"
27958 case "(($ac_try" in
27959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960 *) ac_try_echo=$ac_try;;
27962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27963 (eval "$ac_compile") 2>conftest.er1
27965 grep -v '^ *+' conftest.er1 >conftest.err
27967 cat conftest.err >&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); } &&
27970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27971 { (case "(($ac_try" in
27972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973 *) ac_try_echo=$ac_try;;
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976 (eval "$ac_try") 2>&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; } &&
27980 { ac_try='test -s conftest.$ac_objext'
27981 { (case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_try") 2>&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; }; then
27990 ac_cv_type_long_long_int=yes
27992 echo "$as_me: failed program was:" >&5
27993 sed 's/^/| /' conftest.$ac_ext >&5
27995 ac_cv_type_long_long_int=no
27998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28000 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
28001 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
28003 { echo "$as_me:$LINENO: checking size of long long int" >&5
28004 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
28005 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
28006 echo $ECHO_N "(cached) $ECHO_C" >&6
28008 if test "$ac_cv_type_long_long_int" = yes; then
28009 # The cast to long int works around a bug in the HP C Compiler
28010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28012 # This bug is HP SR number 8606223364.
28013 if test "$cross_compiling" = yes; then
28014 # Depending upon the size, compute the lo and hi bounds.
28015 cat >conftest.$ac_ext <<_ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h. */
28021 $ac_includes_default
28022 typedef long long int ac__type_sizeof_;
28026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28033 rm -f conftest.$ac_objext
28034 if { (ac_try="$ac_compile"
28035 case "(($ac_try" in
28036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040 (eval "$ac_compile") 2>conftest.er1
28042 grep -v '^ *+' conftest.er1 >conftest.err
28044 cat conftest.err >&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } &&
28047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28048 { (case "(($ac_try" in
28049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28050 *) ac_try_echo=$ac_try;;
28052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28053 (eval "$ac_try") 2>&5
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); }; } &&
28057 { ac_try='test -s conftest.$ac_objext'
28058 { (case "(($ac_try" in
28059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060 *) ac_try_echo=$ac_try;;
28062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28063 (eval "$ac_try") 2>&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); }; }; then
28069 cat >conftest.$ac_ext <<_ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h. */
28075 $ac_includes_default
28076 typedef long long int ac__type_sizeof_;
28080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28087 rm -f conftest.$ac_objext
28088 if { (ac_try="$ac_compile"
28089 case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_compile") 2>conftest.er1
28096 grep -v '^ *+' conftest.er1 >conftest.err
28098 cat conftest.err >&5
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } &&
28101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28102 { (case "(($ac_try" in
28103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28104 *) ac_try_echo=$ac_try;;
28106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28107 (eval "$ac_try") 2>&5
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); }; } &&
28111 { ac_try='test -s conftest.$ac_objext'
28112 { (case "(($ac_try" in
28113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114 *) ac_try_echo=$ac_try;;
28116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117 (eval "$ac_try") 2>&5
28119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); }; }; then
28121 ac_hi=$ac_mid; break
28123 echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28126 ac_lo=`expr $ac_mid + 1`
28127 if test $ac_lo -le $ac_mid; then
28131 ac_mid=`expr 2 '*' $ac_mid + 1`
28134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28137 echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28140 cat >conftest.$ac_ext <<_ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28146 $ac_includes_default
28147 typedef long long int ac__type_sizeof_;
28151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28158 rm -f conftest.$ac_objext
28159 if { (ac_try="$ac_compile"
28160 case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_compile") 2>conftest.er1
28167 grep -v '^ *+' conftest.er1 >conftest.err
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } &&
28172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173 { (case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178 (eval "$ac_try") 2>&5
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; } &&
28182 { ac_try='test -s conftest.$ac_objext'
28183 { (case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_try") 2>&5
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; }; then
28194 cat >conftest.$ac_ext <<_ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h. */
28200 $ac_includes_default
28201 typedef long long int ac__type_sizeof_;
28205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28212 rm -f conftest.$ac_objext
28213 if { (ac_try="$ac_compile"
28214 case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_compile") 2>conftest.er1
28221 grep -v '^ *+' conftest.er1 >conftest.err
28223 cat conftest.err >&5
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); } &&
28226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28227 { (case "(($ac_try" in
28228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229 *) ac_try_echo=$ac_try;;
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232 (eval "$ac_try") 2>&5
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); }; } &&
28236 { ac_try='test -s conftest.$ac_objext'
28237 { (case "(($ac_try" in
28238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239 *) ac_try_echo=$ac_try;;
28241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28242 (eval "$ac_try") 2>&5
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 ac_lo=$ac_mid; break
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28251 ac_hi=`expr '(' $ac_mid ')' - 1`
28252 if test $ac_mid -le $ac_hi; then
28256 ac_mid=`expr 2 '*' $ac_mid`
28259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28262 echo "$as_me: failed program was:" >&5
28263 sed 's/^/| /' conftest.$ac_ext >&5
28268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28272 # Binary search between lo and hi bounds.
28273 while test "x$ac_lo" != "x$ac_hi"; do
28274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28275 cat >conftest.$ac_ext <<_ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h. */
28281 $ac_includes_default
28282 typedef long long int ac__type_sizeof_;
28286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28293 rm -f conftest.$ac_objext
28294 if { (ac_try="$ac_compile"
28295 case "(($ac_try" in
28296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297 *) ac_try_echo=$ac_try;;
28299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300 (eval "$ac_compile") 2>conftest.er1
28302 grep -v '^ *+' conftest.er1 >conftest.err
28304 cat conftest.err >&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); } &&
28307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28308 { (case "(($ac_try" in
28309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28310 *) ac_try_echo=$ac_try;;
28312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28313 (eval "$ac_try") 2>&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; } &&
28317 { ac_try='test -s conftest.$ac_objext'
28318 { (case "(($ac_try" in
28319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320 *) ac_try_echo=$ac_try;;
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323 (eval "$ac_try") 2>&5
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; }; then
28329 echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28332 ac_lo=`expr '(' $ac_mid ')' + 1`
28335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28338 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28339 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28340 See \`config.log' for more details." >&5
28341 echo "$as_me: error: cannot compute sizeof (long long int)
28342 See \`config.log' for more details." >&2;}
28343 { (exit 77); exit 77; }; } ;;
28346 cat >conftest.$ac_ext <<_ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h. */
28352 $ac_includes_default
28353 typedef long long int ac__type_sizeof_;
28354 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28355 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28357 #include <stdlib.h>
28362 FILE *f = fopen ("conftest.val", "w");
28365 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28367 long int i = longval ();
28368 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28370 fprintf (f, "%ld\n", i);
28374 unsigned long int i = ulongval ();
28375 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28377 fprintf (f, "%lu\n", i);
28379 return ferror (f) || fclose (f) != 0;
28385 rm -f conftest$ac_exeext
28386 if { (ac_try="$ac_link"
28387 case "(($ac_try" in
28388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389 *) ac_try_echo=$ac_try;;
28391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28392 (eval "$ac_link") 2>&5
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28396 { (case "(($ac_try" in
28397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28398 *) ac_try_echo=$ac_try;;
28400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28401 (eval "$ac_try") 2>&5
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
28405 ac_cv_sizeof_long_long_int=`cat conftest.val`
28407 echo "$as_me: program exited with status $ac_status" >&5
28408 echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28411 ( exit $ac_status )
28412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28413 See \`config.log' for more details." >&5
28414 echo "$as_me: error: cannot compute sizeof (long long int)
28415 See \`config.log' for more details." >&2;}
28416 { (exit 77); exit 77; }; }
28418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28422 ac_cv_sizeof_long_long_int=0
28425 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28426 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28427 cat >>confdefs.h <<_ACEOF
28428 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28432 { echo "$as_me:$LINENO: checking for int *" >&5
28433 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28434 if test "${ac_cv_type_int_p+set}" = set; then
28435 echo $ECHO_N "(cached) $ECHO_C" >&6
28437 cat >conftest.$ac_ext <<_ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h. */
28443 $ac_includes_default
28444 typedef int * ac__type_new_;
28448 if ((ac__type_new_ *) 0)
28450 if (sizeof (ac__type_new_))
28456 rm -f conftest.$ac_objext
28457 if { (ac_try="$ac_compile"
28458 case "(($ac_try" in
28459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460 *) ac_try_echo=$ac_try;;
28462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463 (eval "$ac_compile") 2>conftest.er1
28465 grep -v '^ *+' conftest.er1 >conftest.err
28467 cat conftest.err >&5
28468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469 (exit $ac_status); } &&
28470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28471 { (case "(($ac_try" in
28472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473 *) ac_try_echo=$ac_try;;
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476 (eval "$ac_try") 2>&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; } &&
28480 { ac_try='test -s conftest.$ac_objext'
28481 { (case "(($ac_try" in
28482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483 *) ac_try_echo=$ac_try;;
28485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486 (eval "$ac_try") 2>&5
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); }; }; then
28490 ac_cv_type_int_p=yes
28492 echo "$as_me: failed program was:" >&5
28493 sed 's/^/| /' conftest.$ac_ext >&5
28495 ac_cv_type_int_p=no
28498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28500 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28501 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28503 { echo "$as_me:$LINENO: checking size of int *" >&5
28504 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28505 if test "${ac_cv_sizeof_int_p+set}" = set; then
28506 echo $ECHO_N "(cached) $ECHO_C" >&6
28508 if test "$ac_cv_type_int_p" = yes; then
28509 # The cast to long int works around a bug in the HP C Compiler
28510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28512 # This bug is HP SR number 8606223364.
28513 if test "$cross_compiling" = yes; then
28514 # Depending upon the size, compute the lo and hi bounds.
28515 cat >conftest.$ac_ext <<_ACEOF
28518 cat confdefs.h >>conftest.$ac_ext
28519 cat >>conftest.$ac_ext <<_ACEOF
28520 /* end confdefs.h. */
28521 $ac_includes_default
28522 typedef int * ac__type_sizeof_;
28526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28533 rm -f conftest.$ac_objext
28534 if { (ac_try="$ac_compile"
28535 case "(($ac_try" in
28536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537 *) ac_try_echo=$ac_try;;
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540 (eval "$ac_compile") 2>conftest.er1
28542 grep -v '^ *+' conftest.er1 >conftest.err
28544 cat conftest.err >&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); } &&
28547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28548 { (case "(($ac_try" in
28549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550 *) ac_try_echo=$ac_try;;
28552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28553 (eval "$ac_try") 2>&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); }; } &&
28557 { ac_try='test -s conftest.$ac_objext'
28558 { (case "(($ac_try" in
28559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560 *) ac_try_echo=$ac_try;;
28562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563 (eval "$ac_try") 2>&5
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); }; }; then
28569 cat >conftest.$ac_ext <<_ACEOF
28572 cat confdefs.h >>conftest.$ac_ext
28573 cat >>conftest.$ac_ext <<_ACEOF
28574 /* end confdefs.h. */
28575 $ac_includes_default
28576 typedef int * ac__type_sizeof_;
28580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28587 rm -f conftest.$ac_objext
28588 if { (ac_try="$ac_compile"
28589 case "(($ac_try" in
28590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591 *) ac_try_echo=$ac_try;;
28593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594 (eval "$ac_compile") 2>conftest.er1
28596 grep -v '^ *+' conftest.er1 >conftest.err
28598 cat conftest.err >&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); } &&
28601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28602 { (case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607 (eval "$ac_try") 2>&5
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; } &&
28611 { ac_try='test -s conftest.$ac_objext'
28612 { (case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_try") 2>&5
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; }; then
28621 ac_hi=$ac_mid; break
28623 echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28626 ac_lo=`expr $ac_mid + 1`
28627 if test $ac_lo -le $ac_mid; then
28631 ac_mid=`expr 2 '*' $ac_mid + 1`
28634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28637 echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28640 cat >conftest.$ac_ext <<_ACEOF
28643 cat confdefs.h >>conftest.$ac_ext
28644 cat >>conftest.$ac_ext <<_ACEOF
28645 /* end confdefs.h. */
28646 $ac_includes_default
28647 typedef int * ac__type_sizeof_;
28651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28658 rm -f conftest.$ac_objext
28659 if { (ac_try="$ac_compile"
28660 case "(($ac_try" in
28661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28662 *) ac_try_echo=$ac_try;;
28664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28665 (eval "$ac_compile") 2>conftest.er1
28667 grep -v '^ *+' conftest.er1 >conftest.err
28669 cat conftest.err >&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); } &&
28672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28673 { (case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_try") 2>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; } &&
28682 { ac_try='test -s conftest.$ac_objext'
28683 { (case "(($ac_try" in
28684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685 *) ac_try_echo=$ac_try;;
28687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28688 (eval "$ac_try") 2>&5
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; }; then
28694 cat >conftest.$ac_ext <<_ACEOF
28697 cat confdefs.h >>conftest.$ac_ext
28698 cat >>conftest.$ac_ext <<_ACEOF
28699 /* end confdefs.h. */
28700 $ac_includes_default
28701 typedef int * ac__type_sizeof_;
28705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28712 rm -f conftest.$ac_objext
28713 if { (ac_try="$ac_compile"
28714 case "(($ac_try" in
28715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28716 *) ac_try_echo=$ac_try;;
28718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28719 (eval "$ac_compile") 2>conftest.er1
28721 grep -v '^ *+' conftest.er1 >conftest.err
28723 cat conftest.err >&5
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); } &&
28726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28727 { (case "(($ac_try" in
28728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28729 *) ac_try_echo=$ac_try;;
28731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28732 (eval "$ac_try") 2>&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); }; } &&
28736 { ac_try='test -s conftest.$ac_objext'
28737 { (case "(($ac_try" in
28738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742 (eval "$ac_try") 2>&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; }; then
28746 ac_lo=$ac_mid; break
28748 echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.$ac_ext >&5
28751 ac_hi=`expr '(' $ac_mid ')' - 1`
28752 if test $ac_mid -le $ac_hi; then
28756 ac_mid=`expr 2 '*' $ac_mid`
28759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28762 echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28772 # Binary search between lo and hi bounds.
28773 while test "x$ac_lo" != "x$ac_hi"; do
28774 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28775 cat >conftest.$ac_ext <<_ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h. */
28781 $ac_includes_default
28782 typedef int * ac__type_sizeof_;
28786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28793 rm -f conftest.$ac_objext
28794 if { (ac_try="$ac_compile"
28795 case "(($ac_try" in
28796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28797 *) ac_try_echo=$ac_try;;
28799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28800 (eval "$ac_compile") 2>conftest.er1
28802 grep -v '^ *+' conftest.er1 >conftest.err
28804 cat conftest.err >&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); } &&
28807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28808 { (case "(($ac_try" in
28809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810 *) ac_try_echo=$ac_try;;
28812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813 (eval "$ac_try") 2>&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); }; } &&
28817 { ac_try='test -s conftest.$ac_objext'
28818 { (case "(($ac_try" in
28819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820 *) ac_try_echo=$ac_try;;
28822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823 (eval "$ac_try") 2>&5
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); }; }; then
28829 echo "$as_me: failed program was:" >&5
28830 sed 's/^/| /' conftest.$ac_ext >&5
28832 ac_lo=`expr '(' $ac_mid ')' + 1`
28835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28838 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28839 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28840 See \`config.log' for more details." >&5
28841 echo "$as_me: error: cannot compute sizeof (int *)
28842 See \`config.log' for more details." >&2;}
28843 { (exit 77); exit 77; }; } ;;
28846 cat >conftest.$ac_ext <<_ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h. */
28852 $ac_includes_default
28853 typedef int * ac__type_sizeof_;
28854 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28855 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28857 #include <stdlib.h>
28862 FILE *f = fopen ("conftest.val", "w");
28865 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28867 long int i = longval ();
28868 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28870 fprintf (f, "%ld\n", i);
28874 unsigned long int i = ulongval ();
28875 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28877 fprintf (f, "%lu\n", i);
28879 return ferror (f) || fclose (f) != 0;
28885 rm -f conftest$ac_exeext
28886 if { (ac_try="$ac_link"
28887 case "(($ac_try" in
28888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28889 *) ac_try_echo=$ac_try;;
28891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28892 (eval "$ac_link") 2>&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28896 { (case "(($ac_try" in
28897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898 *) ac_try_echo=$ac_try;;
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901 (eval "$ac_try") 2>&5
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); }; }; then
28905 ac_cv_sizeof_int_p=`cat conftest.val`
28907 echo "$as_me: program exited with status $ac_status" >&5
28908 echo "$as_me: failed program was:" >&5
28909 sed 's/^/| /' conftest.$ac_ext >&5
28911 ( exit $ac_status )
28912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28913 See \`config.log' for more details." >&5
28914 echo "$as_me: error: cannot compute sizeof (int *)
28915 See \`config.log' for more details." >&2;}
28916 { (exit 77); exit 77; }; }
28918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28922 ac_cv_sizeof_int_p=0
28925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28926 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28927 cat >>confdefs.h <<_ACEOF
28928 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28933 # Check for sys/types.h types
28934 { echo "$as_me:$LINENO: checking for u_int type" >&5
28935 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28936 if test "${ac_cv_have_u_int+set}" = set; then
28937 echo $ECHO_N "(cached) $ECHO_C" >&6
28940 cat >conftest.$ac_ext <<_ACEOF
28943 cat confdefs.h >>conftest.$ac_ext
28944 cat >>conftest.$ac_ext <<_ACEOF
28945 /* end confdefs.h. */
28946 #include <sys/types.h>
28955 rm -f conftest.$ac_objext
28956 if { (ac_try="$ac_compile"
28957 case "(($ac_try" in
28958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28959 *) ac_try_echo=$ac_try;;
28961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28962 (eval "$ac_compile") 2>conftest.er1
28964 grep -v '^ *+' conftest.er1 >conftest.err
28966 cat conftest.err >&5
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); } &&
28969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28970 { (case "(($ac_try" in
28971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28972 *) ac_try_echo=$ac_try;;
28974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28975 (eval "$ac_try") 2>&5
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); }; } &&
28979 { ac_try='test -s conftest.$ac_objext'
28980 { (case "(($ac_try" in
28981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982 *) ac_try_echo=$ac_try;;
28984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985 (eval "$ac_try") 2>&5
28987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28988 (exit $ac_status); }; }; then
28989 ac_cv_have_u_int="yes"
28991 echo "$as_me: failed program was:" >&5
28992 sed 's/^/| /' conftest.$ac_ext >&5
28994 ac_cv_have_u_int="no"
28998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29001 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
29002 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
29003 if test "x$ac_cv_have_u_int" = "xyes" ; then
29004 cat >>confdefs.h <<\_ACEOF
29005 #define HAVE_U_INT 1
29011 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
29012 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
29013 if test "${ac_cv_have_intmax_t+set}" = set; then
29014 echo $ECHO_N "(cached) $ECHO_C" >&6
29017 cat >conftest.$ac_ext <<_ACEOF
29020 cat confdefs.h >>conftest.$ac_ext
29021 cat >>conftest.$ac_ext <<_ACEOF
29022 /* end confdefs.h. */
29023 #include <sys/types.h>
29032 rm -f conftest.$ac_objext
29033 if { (ac_try="$ac_compile"
29034 case "(($ac_try" in
29035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29036 *) ac_try_echo=$ac_try;;
29038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29039 (eval "$ac_compile") 2>conftest.er1
29041 grep -v '^ *+' conftest.er1 >conftest.err
29043 cat conftest.err >&5
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); } &&
29046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29047 { (case "(($ac_try" in
29048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049 *) ac_try_echo=$ac_try;;
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052 (eval "$ac_try") 2>&5
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); }; } &&
29056 { ac_try='test -s conftest.$ac_objext'
29057 { (case "(($ac_try" in
29058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29059 *) ac_try_echo=$ac_try;;
29061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29062 (eval "$ac_try") 2>&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); }; }; then
29066 ac_cv_have_intmax_t="yes"
29068 echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29072 cat >conftest.$ac_ext <<_ACEOF
29075 cat confdefs.h >>conftest.$ac_ext
29076 cat >>conftest.$ac_ext <<_ACEOF
29077 /* end confdefs.h. */
29078 #include <stdint.h>
29087 rm -f conftest.$ac_objext
29088 if { (ac_try="$ac_compile"
29089 case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_compile") 2>conftest.er1
29096 grep -v '^ *+' conftest.er1 >conftest.err
29098 cat conftest.err >&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } &&
29101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29102 { (case "(($ac_try" in
29103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104 *) ac_try_echo=$ac_try;;
29106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107 (eval "$ac_try") 2>&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; } &&
29111 { ac_try='test -s conftest.$ac_objext'
29112 { (case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_try") 2>&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); }; }; then
29121 ac_cv_have_intmax_t="yes"
29123 echo "$as_me: failed program was:" >&5
29124 sed 's/^/| /' conftest.$ac_ext >&5
29126 ac_cv_have_intmax_t="no"
29130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29139 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
29140 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
29141 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
29142 cat >>confdefs.h <<\_ACEOF
29143 #define HAVE_INTMAX_T 1
29150 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
29151 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
29152 if test "${ac_cv_have_u_intmax_t+set}" = set; then
29153 echo $ECHO_N "(cached) $ECHO_C" >&6
29156 cat >conftest.$ac_ext <<_ACEOF
29159 cat confdefs.h >>conftest.$ac_ext
29160 cat >>conftest.$ac_ext <<_ACEOF
29161 /* end confdefs.h. */
29162 #include <sys/types.h>
29166 u_intmax_t a; a = 1;
29171 rm -f conftest.$ac_objext
29172 if { (ac_try="$ac_compile"
29173 case "(($ac_try" in
29174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175 *) ac_try_echo=$ac_try;;
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178 (eval "$ac_compile") 2>conftest.er1
29180 grep -v '^ *+' conftest.er1 >conftest.err
29182 cat conftest.err >&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); } &&
29185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29186 { (case "(($ac_try" in
29187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29188 *) ac_try_echo=$ac_try;;
29190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29191 (eval "$ac_try") 2>&5
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; } &&
29195 { ac_try='test -s conftest.$ac_objext'
29196 { (case "(($ac_try" in
29197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198 *) ac_try_echo=$ac_try;;
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201 (eval "$ac_try") 2>&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
29205 ac_cv_have_u_intmax_t="yes"
29207 echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29211 cat >conftest.$ac_ext <<_ACEOF
29214 cat confdefs.h >>conftest.$ac_ext
29215 cat >>conftest.$ac_ext <<_ACEOF
29216 /* end confdefs.h. */
29217 #include <stdint.h>
29221 u_intmax_t a; a = 1;
29226 rm -f conftest.$ac_objext
29227 if { (ac_try="$ac_compile"
29228 case "(($ac_try" in
29229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230 *) ac_try_echo=$ac_try;;
29232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233 (eval "$ac_compile") 2>conftest.er1
29235 grep -v '^ *+' conftest.er1 >conftest.err
29237 cat conftest.err >&5
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); } &&
29240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29241 { (case "(($ac_try" in
29242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243 *) ac_try_echo=$ac_try;;
29245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246 (eval "$ac_try") 2>&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; } &&
29250 { ac_try='test -s conftest.$ac_objext'
29251 { (case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_try") 2>&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; }; then
29260 ac_cv_have_u_intmax_t="yes"
29262 echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29265 ac_cv_have_u_intmax_t="no"
29269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29277 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29278 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29279 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29280 cat >>confdefs.h <<\_ACEOF
29281 #define HAVE_U_INTMAX_T 1
29288 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29289 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29290 if test "${ac_cv_have_intxx_t+set}" = set; then
29291 echo $ECHO_N "(cached) $ECHO_C" >&6
29294 cat >conftest.$ac_ext <<_ACEOF
29297 cat confdefs.h >>conftest.$ac_ext
29298 cat >>conftest.$ac_ext <<_ACEOF
29299 /* end confdefs.h. */
29300 #include <sys/types.h>
29304 int8_t a; int16_t b; int32_t c; a = b = c = 1;
29309 rm -f conftest.$ac_objext
29310 if { (ac_try="$ac_compile"
29311 case "(($ac_try" in
29312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313 *) ac_try_echo=$ac_try;;
29315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29316 (eval "$ac_compile") 2>conftest.er1
29318 grep -v '^ *+' conftest.er1 >conftest.err
29320 cat conftest.err >&5
29321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322 (exit $ac_status); } &&
29323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29324 { (case "(($ac_try" in
29325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326 *) ac_try_echo=$ac_try;;
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329 (eval "$ac_try") 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; } &&
29333 { ac_try='test -s conftest.$ac_objext'
29334 { (case "(($ac_try" in
29335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29336 *) ac_try_echo=$ac_try;;
29338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29339 (eval "$ac_try") 2>&5
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); }; }; then
29343 ac_cv_have_intxx_t="yes"
29345 echo "$as_me: failed program was:" >&5
29346 sed 's/^/| /' conftest.$ac_ext >&5
29348 ac_cv_have_intxx_t="no"
29352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29355 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29356 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29357 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29358 cat >>confdefs.h <<\_ACEOF
29359 #define HAVE_INTXX_T 1
29365 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29366 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29367 if test "${ac_cv_have_int64_t+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29371 cat >conftest.$ac_ext <<_ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29377 #include <sys/types.h>
29386 rm -f conftest.$ac_objext
29387 if { (ac_try="$ac_compile"
29388 case "(($ac_try" in
29389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390 *) ac_try_echo=$ac_try;;
29392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393 (eval "$ac_compile") 2>conftest.er1
29395 grep -v '^ *+' conftest.er1 >conftest.err
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } &&
29400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29401 { (case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_try") 2>&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; } &&
29410 { ac_try='test -s conftest.$ac_objext'
29411 { (case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_try") 2>&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; }; then
29420 ac_cv_have_int64_t="yes"
29422 echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29425 ac_cv_have_int64_t="no"
29429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29433 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29434 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29435 cat >>confdefs.h <<\_ACEOF
29436 #define HAVE_INT64_T 1
29442 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29443 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29444 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29445 echo $ECHO_N "(cached) $ECHO_C" >&6
29448 cat >conftest.$ac_ext <<_ACEOF
29451 cat confdefs.h >>conftest.$ac_ext
29452 cat >>conftest.$ac_ext <<_ACEOF
29453 /* end confdefs.h. */
29454 #include <sys/types.h>
29458 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29463 rm -f conftest.$ac_objext
29464 if { (ac_try="$ac_compile"
29465 case "(($ac_try" in
29466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467 *) ac_try_echo=$ac_try;;
29469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470 (eval "$ac_compile") 2>conftest.er1
29472 grep -v '^ *+' conftest.er1 >conftest.err
29474 cat conftest.err >&5
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); } &&
29477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29478 { (case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_try") 2>&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; } &&
29487 { ac_try='test -s conftest.$ac_objext'
29488 { (case "(($ac_try" in
29489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490 *) ac_try_echo=$ac_try;;
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493 (eval "$ac_try") 2>&5
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; }; then
29497 ac_cv_have_u_intxx_t="yes"
29499 echo "$as_me: failed program was:" >&5
29500 sed 's/^/| /' conftest.$ac_ext >&5
29502 ac_cv_have_u_intxx_t="no"
29506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29509 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29510 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29511 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29512 cat >>confdefs.h <<\_ACEOF
29513 #define HAVE_U_INTXX_T 1
29519 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29520 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29521 if test "${ac_cv_have_u_int64_t+set}" = set; then
29522 echo $ECHO_N "(cached) $ECHO_C" >&6
29525 cat >conftest.$ac_ext <<_ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h. */
29531 #include <sys/types.h>
29535 u_int64_t a; a = 1;
29540 rm -f conftest.$ac_objext
29541 if { (ac_try="$ac_compile"
29542 case "(($ac_try" in
29543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544 *) ac_try_echo=$ac_try;;
29546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29547 (eval "$ac_compile") 2>conftest.er1
29549 grep -v '^ *+' conftest.er1 >conftest.err
29551 cat conftest.err >&5
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } &&
29554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29555 { (case "(($ac_try" in
29556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557 *) ac_try_echo=$ac_try;;
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560 (eval "$ac_try") 2>&5
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); }; } &&
29564 { ac_try='test -s conftest.$ac_objext'
29565 { (case "(($ac_try" in
29566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567 *) ac_try_echo=$ac_try;;
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570 (eval "$ac_try") 2>&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); }; }; then
29574 ac_cv_have_u_int64_t="yes"
29576 echo "$as_me: failed program was:" >&5
29577 sed 's/^/| /' conftest.$ac_ext >&5
29579 ac_cv_have_u_int64_t="no"
29583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29586 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29587 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29588 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29589 cat >>confdefs.h <<\_ACEOF
29590 #define HAVE_U_INT64_T 1
29596 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29597 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29599 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29600 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29601 cat >conftest.$ac_ext <<_ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h. */
29607 #include <sys/bitypes.h>
29611 int8_t a; int16_t b; int32_t c;
29612 u_int8_t e; u_int16_t f; u_int32_t g;
29613 a = b = c = e = f = g = 1;
29618 rm -f conftest.$ac_objext
29619 if { (ac_try="$ac_compile"
29620 case "(($ac_try" in
29621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622 *) ac_try_echo=$ac_try;;
29624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625 (eval "$ac_compile") 2>conftest.er1
29627 grep -v '^ *+' conftest.er1 >conftest.err
29629 cat conftest.err >&5
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); } &&
29632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29633 { (case "(($ac_try" in
29634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29635 *) ac_try_echo=$ac_try;;
29637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29638 (eval "$ac_try") 2>&5
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; } &&
29642 { ac_try='test -s conftest.$ac_objext'
29643 { (case "(($ac_try" in
29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_try") 2>&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); }; }; then
29652 cat >>confdefs.h <<\_ACEOF
29653 #define HAVE_U_INTXX_T 1
29656 cat >>confdefs.h <<\_ACEOF
29657 #define HAVE_INTXX_T 1
29660 cat >>confdefs.h <<\_ACEOF
29661 #define HAVE_SYS_BITYPES_H 1
29664 { echo "$as_me:$LINENO: result: yes" >&5
29665 echo "${ECHO_T}yes" >&6; }
29667 echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29670 { echo "$as_me:$LINENO: result: no" >&5
29671 echo "${ECHO_T}no" >&6; }
29675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29678 if test -z "$have_u_intxx_t" ; then
29679 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29680 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29681 if test "${ac_cv_have_uintxx_t+set}" = set; then
29682 echo $ECHO_N "(cached) $ECHO_C" >&6
29685 cat >conftest.$ac_ext <<_ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h. */
29691 #include <sys/types.h>
29695 uint8_t a; uint16_t b;
29696 uint32_t c; a = b = c = 1;
29701 rm -f conftest.$ac_objext
29702 if { (ac_try="$ac_compile"
29703 case "(($ac_try" in
29704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29705 *) ac_try_echo=$ac_try;;
29707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29708 (eval "$ac_compile") 2>conftest.er1
29710 grep -v '^ *+' conftest.er1 >conftest.err
29712 cat conftest.err >&5
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); } &&
29715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29716 { (case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_try") 2>&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; } &&
29725 { ac_try='test -s conftest.$ac_objext'
29726 { (case "(($ac_try" in
29727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728 *) ac_try_echo=$ac_try;;
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731 (eval "$ac_try") 2>&5
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); }; }; then
29735 ac_cv_have_uintxx_t="yes"
29737 echo "$as_me: failed program was:" >&5
29738 sed 's/^/| /' conftest.$ac_ext >&5
29740 ac_cv_have_uintxx_t="no"
29744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29747 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29748 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29749 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29750 cat >>confdefs.h <<\_ACEOF
29751 #define HAVE_UINTXX_T 1
29757 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29758 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29760 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29761 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29762 cat >conftest.$ac_ext <<_ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h. */
29768 #include <sys/bitypes.h>
29772 int64_t a; u_int64_t b;
29778 rm -f conftest.$ac_objext
29779 if { (ac_try="$ac_compile"
29780 case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785 (eval "$ac_compile") 2>conftest.er1
29787 grep -v '^ *+' conftest.er1 >conftest.err
29789 cat conftest.err >&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); } &&
29792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29793 { (case "(($ac_try" in
29794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795 *) ac_try_echo=$ac_try;;
29797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798 (eval "$ac_try") 2>&5
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; } &&
29802 { ac_try='test -s conftest.$ac_objext'
29803 { (case "(($ac_try" in
29804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805 *) ac_try_echo=$ac_try;;
29807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808 (eval "$ac_try") 2>&5
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; }; then
29812 cat >>confdefs.h <<\_ACEOF
29813 #define HAVE_U_INT64_T 1
29816 cat >>confdefs.h <<\_ACEOF
29817 #define HAVE_INT64_T 1
29820 { echo "$as_me:$LINENO: result: yes" >&5
29821 echo "${ECHO_T}yes" >&6; }
29823 echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29826 { echo "$as_me:$LINENO: result: no" >&5
29827 echo "${ECHO_T}no" >&6; }
29831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29834 if (test -z "$have_uintxx_t" && \
29835 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29837 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29838 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29839 cat >conftest.$ac_ext <<_ACEOF
29842 cat confdefs.h >>conftest.$ac_ext
29843 cat >>conftest.$ac_ext <<_ACEOF
29844 /* end confdefs.h. */
29845 #include <sys/bitypes.h>
29849 uint8_t a; uint16_t b;
29850 uint32_t c; a = b = c = 1;
29855 rm -f conftest.$ac_objext
29856 if { (ac_try="$ac_compile"
29857 case "(($ac_try" in
29858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859 *) ac_try_echo=$ac_try;;
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_compile") 2>conftest.er1
29864 grep -v '^ *+' conftest.er1 >conftest.err
29866 cat conftest.err >&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } &&
29869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29870 { (case "(($ac_try" in
29871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872 *) ac_try_echo=$ac_try;;
29874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875 (eval "$ac_try") 2>&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; } &&
29879 { ac_try='test -s conftest.$ac_objext'
29880 { (case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_try") 2>&5
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; }; then
29889 cat >>confdefs.h <<\_ACEOF
29890 #define HAVE_UINTXX_T 1
29893 { echo "$as_me:$LINENO: result: yes" >&5
29894 echo "${ECHO_T}yes" >&6; }
29896 echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29899 { echo "$as_me:$LINENO: result: no" >&5
29900 echo "${ECHO_T}no" >&6; }
29904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29944 echo $ECHO_N "(cached) $ECHO_C" >&6
29946 cat >conftest.$ac_ext <<_ACEOF
29949 cat confdefs.h >>conftest.$ac_ext
29950 cat >>conftest.$ac_ext <<_ACEOF
29951 /* end confdefs.h. */
29952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29954 #define $ac_func innocuous_$ac_func
29956 /* System header to define __stub macros and hopefully few prototypes,
29957 which can conflict with char $ac_func (); below.
29958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29959 <limits.h> exists even on freestanding compilers. */
29962 # include <limits.h>
29964 # include <assert.h>
29969 /* Override any GCC internal prototype to avoid an error.
29970 Use char because int might match the return type of a GCC
29971 builtin and then its argument prototype would still apply. */
29976 /* The GNU C library defines this for functions which it implements
29977 to always fail with ENOSYS. Some functions are actually named
29978 something starting with __ and the normal name is an alias. */
29979 #if defined __stub_$ac_func || defined __stub___$ac_func
29986 return $ac_func ();
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (ac_try="$ac_link"
29993 case "(($ac_try" in
29994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995 *) ac_try_echo=$ac_try;;
29997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998 (eval "$ac_link") 2>conftest.er1
30000 grep -v '^ *+' conftest.er1 >conftest.err
30002 cat conftest.err >&5
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); } &&
30005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30006 { (case "(($ac_try" in
30007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30008 *) ac_try_echo=$ac_try;;
30010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30011 (eval "$ac_try") 2>&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); }; } &&
30015 { ac_try='test -s conftest$ac_exeext'
30016 { (case "(($ac_try" in
30017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30018 *) ac_try_echo=$ac_try;;
30020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30021 (eval "$ac_try") 2>&5
30023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024 (exit $ac_status); }; }; then
30025 eval "$as_ac_var=yes"
30027 echo "$as_me: failed program was:" >&5
30028 sed 's/^/| /' conftest.$ac_ext >&5
30030 eval "$as_ac_var=no"
30033 rm -f core conftest.err conftest.$ac_objext \
30034 conftest$ac_exeext conftest.$ac_ext
30036 ac_res=`eval echo '${'$as_ac_var'}'`
30037 { echo "$as_me:$LINENO: result: $ac_res" >&5
30038 echo "${ECHO_T}$ac_res" >&6; }
30039 if test `eval echo '${'$as_ac_var'}'` = yes; then
30040 cat >>confdefs.h <<_ACEOF
30041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30045 echo 'configure: cannot find needed function.'; exit 1
30052 for ac_func in fchdir
30054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30058 echo $ECHO_N "(cached) $ECHO_C" >&6
30060 cat >conftest.$ac_ext <<_ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h. */
30066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30068 #define $ac_func innocuous_$ac_func
30070 /* System header to define __stub macros and hopefully few prototypes,
30071 which can conflict with char $ac_func (); below.
30072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30073 <limits.h> exists even on freestanding compilers. */
30076 # include <limits.h>
30078 # include <assert.h>
30083 /* Override any GCC internal prototype to avoid an error.
30084 Use char because int might match the return type of a GCC
30085 builtin and then its argument prototype would still apply. */
30090 /* The GNU C library defines this for functions which it implements
30091 to always fail with ENOSYS. Some functions are actually named
30092 something starting with __ and the normal name is an alias. */
30093 #if defined __stub_$ac_func || defined __stub___$ac_func
30100 return $ac_func ();
30105 rm -f conftest.$ac_objext conftest$ac_exeext
30106 if { (ac_try="$ac_link"
30107 case "(($ac_try" in
30108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109 *) ac_try_echo=$ac_try;;
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112 (eval "$ac_link") 2>conftest.er1
30114 grep -v '^ *+' conftest.er1 >conftest.err
30116 cat conftest.err >&5
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); } &&
30119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30120 { (case "(($ac_try" in
30121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122 *) ac_try_echo=$ac_try;;
30124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125 (eval "$ac_try") 2>&5
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); }; } &&
30129 { ac_try='test -s conftest$ac_exeext'
30130 { (case "(($ac_try" in
30131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132 *) ac_try_echo=$ac_try;;
30134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135 (eval "$ac_try") 2>&5
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; }; then
30139 eval "$as_ac_var=yes"
30141 echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30144 eval "$as_ac_var=no"
30147 rm -f core conftest.err conftest.$ac_objext \
30148 conftest$ac_exeext conftest.$ac_ext
30150 ac_res=`eval echo '${'$as_ac_var'}'`
30151 { echo "$as_me:$LINENO: result: $ac_res" >&5
30152 echo "${ECHO_T}$ac_res" >&6; }
30153 if test `eval echo '${'$as_ac_var'}'` = yes; then
30154 cat >>confdefs.h <<_ACEOF
30155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30157 cat >>confdefs.h <<\_ACEOF
30158 #define HAVE_FCHDIR 1
30165 for ac_func in strtoll
30167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30171 echo $ECHO_N "(cached) $ECHO_C" >&6
30173 cat >conftest.$ac_ext <<_ACEOF
30176 cat confdefs.h >>conftest.$ac_ext
30177 cat >>conftest.$ac_ext <<_ACEOF
30178 /* end confdefs.h. */
30179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30181 #define $ac_func innocuous_$ac_func
30183 /* System header to define __stub macros and hopefully few prototypes,
30184 which can conflict with char $ac_func (); below.
30185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30186 <limits.h> exists even on freestanding compilers. */
30189 # include <limits.h>
30191 # include <assert.h>
30196 /* Override any GCC internal prototype to avoid an error.
30197 Use char because int might match the return type of a GCC
30198 builtin and then its argument prototype would still apply. */
30203 /* The GNU C library defines this for functions which it implements
30204 to always fail with ENOSYS. Some functions are actually named
30205 something starting with __ and the normal name is an alias. */
30206 #if defined __stub_$ac_func || defined __stub___$ac_func
30213 return $ac_func ();
30218 rm -f conftest.$ac_objext conftest$ac_exeext
30219 if { (ac_try="$ac_link"
30220 case "(($ac_try" in
30221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222 *) ac_try_echo=$ac_try;;
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225 (eval "$ac_link") 2>conftest.er1
30227 grep -v '^ *+' conftest.er1 >conftest.err
30229 cat conftest.err >&5
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); } &&
30232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30233 { (case "(($ac_try" in
30234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235 *) ac_try_echo=$ac_try;;
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238 (eval "$ac_try") 2>&5
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); }; } &&
30242 { ac_try='test -s conftest$ac_exeext'
30243 { (case "(($ac_try" in
30244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245 *) ac_try_echo=$ac_try;;
30247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248 (eval "$ac_try") 2>&5
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); }; }; then
30252 eval "$as_ac_var=yes"
30254 echo "$as_me: failed program was:" >&5
30255 sed 's/^/| /' conftest.$ac_ext >&5
30257 eval "$as_ac_var=no"
30260 rm -f core conftest.err conftest.$ac_objext \
30261 conftest$ac_exeext conftest.$ac_ext
30263 ac_res=`eval echo '${'$as_ac_var'}'`
30264 { echo "$as_me:$LINENO: result: $ac_res" >&5
30265 echo "${ECHO_T}$ac_res" >&6; }
30266 if test `eval echo '${'$as_ac_var'}'` = yes; then
30267 cat >>confdefs.h <<_ACEOF
30268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30270 cat >>confdefs.h <<\_ACEOF
30271 #define HAVE_STRTOLL 1
30278 for ac_func in posix_fadvise
30280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30284 echo $ECHO_N "(cached) $ECHO_C" >&6
30286 cat >conftest.$ac_ext <<_ACEOF
30289 cat confdefs.h >>conftest.$ac_ext
30290 cat >>conftest.$ac_ext <<_ACEOF
30291 /* end confdefs.h. */
30292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30294 #define $ac_func innocuous_$ac_func
30296 /* System header to define __stub macros and hopefully few prototypes,
30297 which can conflict with char $ac_func (); below.
30298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30299 <limits.h> exists even on freestanding compilers. */
30302 # include <limits.h>
30304 # include <assert.h>
30309 /* Override any GCC internal prototype to avoid an error.
30310 Use char because int might match the return type of a GCC
30311 builtin and then its argument prototype would still apply. */
30316 /* The GNU C library defines this for functions which it implements
30317 to always fail with ENOSYS. Some functions are actually named
30318 something starting with __ and the normal name is an alias. */
30319 #if defined __stub_$ac_func || defined __stub___$ac_func
30326 return $ac_func ();
30331 rm -f conftest.$ac_objext conftest$ac_exeext
30332 if { (ac_try="$ac_link"
30333 case "(($ac_try" in
30334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335 *) ac_try_echo=$ac_try;;
30337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338 (eval "$ac_link") 2>conftest.er1
30340 grep -v '^ *+' conftest.er1 >conftest.err
30342 cat conftest.err >&5
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); } &&
30345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30346 { (case "(($ac_try" in
30347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348 *) ac_try_echo=$ac_try;;
30350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351 (eval "$ac_try") 2>&5
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); }; } &&
30355 { ac_try='test -s conftest$ac_exeext'
30356 { (case "(($ac_try" in
30357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358 *) ac_try_echo=$ac_try;;
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361 (eval "$ac_try") 2>&5
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; }; then
30365 eval "$as_ac_var=yes"
30367 echo "$as_me: failed program was:" >&5
30368 sed 's/^/| /' conftest.$ac_ext >&5
30370 eval "$as_ac_var=no"
30373 rm -f core conftest.err conftest.$ac_objext \
30374 conftest$ac_exeext conftest.$ac_ext
30376 ac_res=`eval echo '${'$as_ac_var'}'`
30377 { echo "$as_me:$LINENO: result: $ac_res" >&5
30378 echo "${ECHO_T}$ac_res" >&6; }
30379 if test `eval echo '${'$as_ac_var'}'` = yes; then
30380 cat >>confdefs.h <<_ACEOF
30381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30388 for ac_func in fdatasync
30390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30394 echo $ECHO_N "(cached) $ECHO_C" >&6
30396 cat >conftest.$ac_ext <<_ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h. */
30402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30404 #define $ac_func innocuous_$ac_func
30406 /* System header to define __stub macros and hopefully few prototypes,
30407 which can conflict with char $ac_func (); below.
30408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30409 <limits.h> exists even on freestanding compilers. */
30412 # include <limits.h>
30414 # include <assert.h>
30419 /* Override any GCC internal prototype to avoid an error.
30420 Use char because int might match the return type of a GCC
30421 builtin and then its argument prototype would still apply. */
30426 /* The GNU C library defines this for functions which it implements
30427 to always fail with ENOSYS. Some functions are actually named
30428 something starting with __ and the normal name is an alias. */
30429 #if defined __stub_$ac_func || defined __stub___$ac_func
30436 return $ac_func ();
30441 rm -f conftest.$ac_objext conftest$ac_exeext
30442 if { (ac_try="$ac_link"
30443 case "(($ac_try" in
30444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30445 *) ac_try_echo=$ac_try;;
30447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30448 (eval "$ac_link") 2>conftest.er1
30450 grep -v '^ *+' conftest.er1 >conftest.err
30452 cat conftest.err >&5
30453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454 (exit $ac_status); } &&
30455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30456 { (case "(($ac_try" in
30457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30458 *) ac_try_echo=$ac_try;;
30460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30461 (eval "$ac_try") 2>&5
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; } &&
30465 { ac_try='test -s conftest$ac_exeext'
30466 { (case "(($ac_try" in
30467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468 *) ac_try_echo=$ac_try;;
30470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471 (eval "$ac_try") 2>&5
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }; }; then
30475 eval "$as_ac_var=yes"
30477 echo "$as_me: failed program was:" >&5
30478 sed 's/^/| /' conftest.$ac_ext >&5
30480 eval "$as_ac_var=no"
30483 rm -f core conftest.err conftest.$ac_objext \
30484 conftest$ac_exeext conftest.$ac_ext
30486 ac_res=`eval echo '${'$as_ac_var'}'`
30487 { echo "$as_me:$LINENO: result: $ac_res" >&5
30488 echo "${ECHO_T}$ac_res" >&6; }
30489 if test `eval echo '${'$as_ac_var'}'` = yes; then
30490 cat >>confdefs.h <<_ACEOF
30491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30499 for ac_func in chflags
30501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30505 echo $ECHO_N "(cached) $ECHO_C" >&6
30507 cat >conftest.$ac_ext <<_ACEOF
30510 cat confdefs.h >>conftest.$ac_ext
30511 cat >>conftest.$ac_ext <<_ACEOF
30512 /* end confdefs.h. */
30513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30515 #define $ac_func innocuous_$ac_func
30517 /* System header to define __stub macros and hopefully few prototypes,
30518 which can conflict with char $ac_func (); below.
30519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30520 <limits.h> exists even on freestanding compilers. */
30523 # include <limits.h>
30525 # include <assert.h>
30530 /* Override any GCC internal prototype to avoid an error.
30531 Use char because int might match the return type of a GCC
30532 builtin and then its argument prototype would still apply. */
30537 /* The GNU C library defines this for functions which it implements
30538 to always fail with ENOSYS. Some functions are actually named
30539 something starting with __ and the normal name is an alias. */
30540 #if defined __stub_$ac_func || defined __stub___$ac_func
30547 return $ac_func ();
30552 rm -f conftest.$ac_objext conftest$ac_exeext
30553 if { (ac_try="$ac_link"
30554 case "(($ac_try" in
30555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556 *) ac_try_echo=$ac_try;;
30558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559 (eval "$ac_link") 2>conftest.er1
30561 grep -v '^ *+' conftest.er1 >conftest.err
30563 cat conftest.err >&5
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); } &&
30566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30567 { (case "(($ac_try" in
30568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30569 *) ac_try_echo=$ac_try;;
30571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30572 (eval "$ac_try") 2>&5
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; } &&
30576 { ac_try='test -s conftest$ac_exeext'
30577 { (case "(($ac_try" in
30578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30579 *) ac_try_echo=$ac_try;;
30581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30582 (eval "$ac_try") 2>&5
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); }; }; then
30586 eval "$as_ac_var=yes"
30588 echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30591 eval "$as_ac_var=no"
30594 rm -f core conftest.err conftest.$ac_objext \
30595 conftest$ac_exeext conftest.$ac_ext
30597 ac_res=`eval echo '${'$as_ac_var'}'`
30598 { echo "$as_me:$LINENO: result: $ac_res" >&5
30599 echo "${ECHO_T}$ac_res" >&6; }
30600 if test `eval echo '${'$as_ac_var'}'` = yes; then
30601 cat >>confdefs.h <<_ACEOF
30602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30613 for ac_func in snprintf vsnprintf gethostid fseeko
30615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30619 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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30629 #define $ac_func innocuous_$ac_func
30631 /* System header to define __stub macros and hopefully few prototypes,
30632 which can conflict with char $ac_func (); below.
30633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30634 <limits.h> exists even on freestanding compilers. */
30637 # include <limits.h>
30639 # include <assert.h>
30644 /* Override any GCC internal prototype to avoid an error.
30645 Use char because int might match the return type of a GCC
30646 builtin and then its argument prototype would still apply. */
30651 /* The GNU C library defines this for functions which it implements
30652 to always fail with ENOSYS. Some functions are actually named
30653 something starting with __ and the normal name is an alias. */
30654 #if defined __stub_$ac_func || defined __stub___$ac_func
30661 return $ac_func ();
30666 rm -f conftest.$ac_objext conftest$ac_exeext
30667 if { (ac_try="$ac_link"
30668 case "(($ac_try" in
30669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670 *) ac_try_echo=$ac_try;;
30672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30673 (eval "$ac_link") 2>conftest.er1
30675 grep -v '^ *+' conftest.er1 >conftest.err
30677 cat conftest.err >&5
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); } &&
30680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30681 { (case "(($ac_try" in
30682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30683 *) ac_try_echo=$ac_try;;
30685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30686 (eval "$ac_try") 2>&5
30688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689 (exit $ac_status); }; } &&
30690 { ac_try='test -s conftest$ac_exeext'
30691 { (case "(($ac_try" in
30692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30693 *) ac_try_echo=$ac_try;;
30695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30696 (eval "$ac_try") 2>&5
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; }; then
30700 eval "$as_ac_var=yes"
30702 echo "$as_me: failed program was:" >&5
30703 sed 's/^/| /' conftest.$ac_ext >&5
30705 eval "$as_ac_var=no"
30708 rm -f core conftest.err conftest.$ac_objext \
30709 conftest$ac_exeext conftest.$ac_ext
30711 ac_res=`eval echo '${'$as_ac_var'}'`
30712 { echo "$as_me:$LINENO: result: $ac_res" >&5
30713 echo "${ECHO_T}$ac_res" >&6; }
30714 if test `eval echo '${'$as_ac_var'}'` = yes; then
30715 cat >>confdefs.h <<_ACEOF
30716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30727 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30733 echo $ECHO_N "(cached) $ECHO_C" >&6
30735 cat >conftest.$ac_ext <<_ACEOF
30738 cat confdefs.h >>conftest.$ac_ext
30739 cat >>conftest.$ac_ext <<_ACEOF
30740 /* end confdefs.h. */
30741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30743 #define $ac_func innocuous_$ac_func
30745 /* System header to define __stub macros and hopefully few prototypes,
30746 which can conflict with char $ac_func (); below.
30747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30748 <limits.h> exists even on freestanding compilers. */
30751 # include <limits.h>
30753 # include <assert.h>
30758 /* Override any GCC internal prototype to avoid an error.
30759 Use char because int might match the return type of a GCC
30760 builtin and then its argument prototype would still apply. */
30765 /* The GNU C library defines this for functions which it implements
30766 to always fail with ENOSYS. Some functions are actually named
30767 something starting with __ and the normal name is an alias. */
30768 #if defined __stub_$ac_func || defined __stub___$ac_func
30775 return $ac_func ();
30780 rm -f conftest.$ac_objext conftest$ac_exeext
30781 if { (ac_try="$ac_link"
30782 case "(($ac_try" in
30783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30784 *) ac_try_echo=$ac_try;;
30786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30787 (eval "$ac_link") 2>conftest.er1
30789 grep -v '^ *+' conftest.er1 >conftest.err
30791 cat conftest.err >&5
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); } &&
30794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30795 { (case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_try") 2>&5
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; } &&
30804 { ac_try='test -s conftest$ac_exeext'
30805 { (case "(($ac_try" in
30806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807 *) ac_try_echo=$ac_try;;
30809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810 (eval "$ac_try") 2>&5
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); }; }; then
30814 eval "$as_ac_var=yes"
30816 echo "$as_me: failed program was:" >&5
30817 sed 's/^/| /' conftest.$ac_ext >&5
30819 eval "$as_ac_var=no"
30822 rm -f core conftest.err conftest.$ac_objext \
30823 conftest$ac_exeext conftest.$ac_ext
30825 ac_res=`eval echo '${'$as_ac_var'}'`
30826 { echo "$as_me:$LINENO: result: $ac_res" >&5
30827 echo "${ECHO_T}$ac_res" >&6; }
30828 if test `eval echo '${'$as_ac_var'}'` = yes; then
30829 cat >>confdefs.h <<_ACEOF
30830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30837 # If resolver functions are not in libc check for -lnsl or -lresolv.
30838 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30839 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30840 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30841 echo $ECHO_N "(cached) $ECHO_C" >&6
30843 cat >conftest.$ac_ext <<_ACEOF
30846 cat confdefs.h >>conftest.$ac_ext
30847 cat >>conftest.$ac_ext <<_ACEOF
30848 /* end confdefs.h. */
30849 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30851 #define gethostbyname_r innocuous_gethostbyname_r
30853 /* System header to define __stub macros and hopefully few prototypes,
30854 which can conflict with char gethostbyname_r (); below.
30855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30856 <limits.h> exists even on freestanding compilers. */
30859 # include <limits.h>
30861 # include <assert.h>
30864 #undef gethostbyname_r
30866 /* Override any GCC internal prototype to avoid an error.
30867 Use char because int might match the return type of a GCC
30868 builtin and then its argument prototype would still apply. */
30872 char gethostbyname_r ();
30873 /* The GNU C library defines this for functions which it implements
30874 to always fail with ENOSYS. Some functions are actually named
30875 something starting with __ and the normal name is an alias. */
30876 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30883 return gethostbyname_r ();
30888 rm -f conftest.$ac_objext conftest$ac_exeext
30889 if { (ac_try="$ac_link"
30890 case "(($ac_try" in
30891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30892 *) ac_try_echo=$ac_try;;
30894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30895 (eval "$ac_link") 2>conftest.er1
30897 grep -v '^ *+' conftest.er1 >conftest.err
30899 cat conftest.err >&5
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); } &&
30902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30903 { (case "(($ac_try" in
30904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905 *) ac_try_echo=$ac_try;;
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908 (eval "$ac_try") 2>&5
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; } &&
30912 { ac_try='test -s conftest$ac_exeext'
30913 { (case "(($ac_try" in
30914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30915 *) ac_try_echo=$ac_try;;
30917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30918 (eval "$ac_try") 2>&5
30920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921 (exit $ac_status); }; }; then
30922 ac_cv_func_gethostbyname_r=yes
30924 echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.$ac_ext >&5
30927 ac_cv_func_gethostbyname_r=no
30930 rm -f core conftest.err conftest.$ac_objext \
30931 conftest$ac_exeext conftest.$ac_ext
30933 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30934 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30935 if test $ac_cv_func_gethostbyname_r = yes; then
30936 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30937 echo "${ECHO_T}using libc's resolver" >&6; }
30940 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30941 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30942 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30945 ac_check_lib_save_LIBS=$LIBS
30947 cat >conftest.$ac_ext <<_ACEOF
30950 cat confdefs.h >>conftest.$ac_ext
30951 cat >>conftest.$ac_ext <<_ACEOF
30952 /* end confdefs.h. */
30954 /* Override any GCC internal prototype to avoid an error.
30955 Use char because int might match the return type of a GCC
30956 builtin and then its argument prototype would still apply. */
30960 char gethostbyname_r ();
30964 return gethostbyname_r ();
30969 rm -f conftest.$ac_objext conftest$ac_exeext
30970 if { (ac_try="$ac_link"
30971 case "(($ac_try" in
30972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30973 *) ac_try_echo=$ac_try;;
30975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30976 (eval "$ac_link") 2>conftest.er1
30978 grep -v '^ *+' conftest.er1 >conftest.err
30980 cat conftest.err >&5
30981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); } &&
30983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30984 { (case "(($ac_try" in
30985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986 *) ac_try_echo=$ac_try;;
30988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989 (eval "$ac_try") 2>&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; } &&
30993 { ac_try='test -s conftest$ac_exeext'
30994 { (case "(($ac_try" in
30995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30996 *) ac_try_echo=$ac_try;;
30998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30999 (eval "$ac_try") 2>&5
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; }; then
31003 ac_cv_lib_nsl_gethostbyname_r=yes
31005 echo "$as_me: failed program was:" >&5
31006 sed 's/^/| /' conftest.$ac_ext >&5
31008 ac_cv_lib_nsl_gethostbyname_r=no
31011 rm -f core conftest.err conftest.$ac_objext \
31012 conftest$ac_exeext conftest.$ac_ext
31013 LIBS=$ac_check_lib_save_LIBS
31015 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
31016 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
31017 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
31018 cat >>confdefs.h <<_ACEOF
31019 #define HAVE_LIBNSL 1
31027 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
31028 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
31029 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
31030 echo $ECHO_N "(cached) $ECHO_C" >&6
31032 ac_check_lib_save_LIBS=$LIBS
31033 LIBS="-lresolv $LIBS"
31034 cat >conftest.$ac_ext <<_ACEOF
31037 cat confdefs.h >>conftest.$ac_ext
31038 cat >>conftest.$ac_ext <<_ACEOF
31039 /* end confdefs.h. */
31041 /* Override any GCC internal prototype to avoid an error.
31042 Use char because int might match the return type of a GCC
31043 builtin and then its argument prototype would still apply. */
31047 char gethostbyname_r ();
31051 return gethostbyname_r ();
31056 rm -f conftest.$ac_objext conftest$ac_exeext
31057 if { (ac_try="$ac_link"
31058 case "(($ac_try" in
31059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060 *) ac_try_echo=$ac_try;;
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_link") 2>conftest.er1
31065 grep -v '^ *+' conftest.er1 >conftest.err
31067 cat conftest.err >&5
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); } &&
31070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31071 { (case "(($ac_try" in
31072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073 *) ac_try_echo=$ac_try;;
31075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076 (eval "$ac_try") 2>&5
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; } &&
31080 { ac_try='test -s conftest$ac_exeext'
31081 { (case "(($ac_try" in
31082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083 *) ac_try_echo=$ac_try;;
31085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086 (eval "$ac_try") 2>&5
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; }; then
31090 ac_cv_lib_resolv_gethostbyname_r=yes
31092 echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31095 ac_cv_lib_resolv_gethostbyname_r=no
31098 rm -f core conftest.err conftest.$ac_objext \
31099 conftest$ac_exeext conftest.$ac_ext
31100 LIBS=$ac_check_lib_save_LIBS
31102 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
31103 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
31104 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
31105 cat >>confdefs.h <<_ACEOF
31106 #define HAVE_LIBRESOLV 1
31109 LIBS="-lresolv $LIBS"
31119 for ac_func in inet_pton
31121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31125 echo $ECHO_N "(cached) $ECHO_C" >&6
31127 cat >conftest.$ac_ext <<_ACEOF
31130 cat confdefs.h >>conftest.$ac_ext
31131 cat >>conftest.$ac_ext <<_ACEOF
31132 /* end confdefs.h. */
31133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31135 #define $ac_func innocuous_$ac_func
31137 /* System header to define __stub macros and hopefully few prototypes,
31138 which can conflict with char $ac_func (); below.
31139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31140 <limits.h> exists even on freestanding compilers. */
31143 # include <limits.h>
31145 # include <assert.h>
31150 /* Override any GCC internal prototype to avoid an error.
31151 Use char because int might match the return type of a GCC
31152 builtin and then its argument prototype would still apply. */
31157 /* The GNU C library defines this for functions which it implements
31158 to always fail with ENOSYS. Some functions are actually named
31159 something starting with __ and the normal name is an alias. */
31160 #if defined __stub_$ac_func || defined __stub___$ac_func
31167 return $ac_func ();
31172 rm -f conftest.$ac_objext conftest$ac_exeext
31173 if { (ac_try="$ac_link"
31174 case "(($ac_try" in
31175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176 *) ac_try_echo=$ac_try;;
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179 (eval "$ac_link") 2>conftest.er1
31181 grep -v '^ *+' conftest.er1 >conftest.err
31183 cat conftest.err >&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); } &&
31186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31187 { (case "(($ac_try" in
31188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189 *) ac_try_echo=$ac_try;;
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192 (eval "$ac_try") 2>&5
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; } &&
31196 { ac_try='test -s conftest$ac_exeext'
31197 { (case "(($ac_try" in
31198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199 *) ac_try_echo=$ac_try;;
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202 (eval "$ac_try") 2>&5
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); }; }; then
31206 eval "$as_ac_var=yes"
31208 echo "$as_me: failed program was:" >&5
31209 sed 's/^/| /' conftest.$ac_ext >&5
31211 eval "$as_ac_var=no"
31214 rm -f core conftest.err conftest.$ac_objext \
31215 conftest$ac_exeext conftest.$ac_ext
31217 ac_res=`eval echo '${'$as_ac_var'}'`
31218 { echo "$as_me:$LINENO: result: $ac_res" >&5
31219 echo "${ECHO_T}$ac_res" >&6; }
31220 if test `eval echo '${'$as_ac_var'}'` = yes; then
31221 cat >>confdefs.h <<_ACEOF
31222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31224 cat >>confdefs.h <<\_ACEOF
31225 #define HAVE_INET_PTON 1
31232 for ac_func in inet_ntop
31234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31240 cat >conftest.$ac_ext <<_ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h. */
31246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31248 #define $ac_func innocuous_$ac_func
31250 /* System header to define __stub macros and hopefully few prototypes,
31251 which can conflict with char $ac_func (); below.
31252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31253 <limits.h> exists even on freestanding compilers. */
31256 # include <limits.h>
31258 # include <assert.h>
31263 /* Override any GCC internal prototype to avoid an error.
31264 Use char because int might match the return type of a GCC
31265 builtin and then its argument prototype would still apply. */
31270 /* The GNU C library defines this for functions which it implements
31271 to always fail with ENOSYS. Some functions are actually named
31272 something starting with __ and the normal name is an alias. */
31273 #if defined __stub_$ac_func || defined __stub___$ac_func
31280 return $ac_func ();
31285 rm -f conftest.$ac_objext conftest$ac_exeext
31286 if { (ac_try="$ac_link"
31287 case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_link") 2>conftest.er1
31294 grep -v '^ *+' conftest.er1 >conftest.err
31296 cat conftest.err >&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } &&
31299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300 { (case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_try") 2>&5
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; } &&
31309 { ac_try='test -s conftest$ac_exeext'
31310 { (case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
31319 eval "$as_ac_var=yes"
31321 echo "$as_me: failed program was:" >&5
31322 sed 's/^/| /' conftest.$ac_ext >&5
31324 eval "$as_ac_var=no"
31327 rm -f core conftest.err conftest.$ac_objext \
31328 conftest$ac_exeext conftest.$ac_ext
31330 ac_res=`eval echo '${'$as_ac_var'}'`
31331 { echo "$as_me:$LINENO: result: $ac_res" >&5
31332 echo "${ECHO_T}$ac_res" >&6; }
31333 if test `eval echo '${'$as_ac_var'}'` = yes; then
31334 cat >>confdefs.h <<_ACEOF
31335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31337 cat >>confdefs.h <<\_ACEOF
31338 #define HAVE_INET_NTOP 1
31345 for ac_func in gethostbyname2
31347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31351 echo $ECHO_N "(cached) $ECHO_C" >&6
31353 cat >conftest.$ac_ext <<_ACEOF
31356 cat confdefs.h >>conftest.$ac_ext
31357 cat >>conftest.$ac_ext <<_ACEOF
31358 /* end confdefs.h. */
31359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31361 #define $ac_func innocuous_$ac_func
31363 /* System header to define __stub macros and hopefully few prototypes,
31364 which can conflict with char $ac_func (); below.
31365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31366 <limits.h> exists even on freestanding compilers. */
31369 # include <limits.h>
31371 # include <assert.h>
31376 /* Override any GCC internal prototype to avoid an error.
31377 Use char because int might match the return type of a GCC
31378 builtin and then its argument prototype would still apply. */
31383 /* The GNU C library defines this for functions which it implements
31384 to always fail with ENOSYS. Some functions are actually named
31385 something starting with __ and the normal name is an alias. */
31386 #if defined __stub_$ac_func || defined __stub___$ac_func
31393 return $ac_func ();
31398 rm -f conftest.$ac_objext conftest$ac_exeext
31399 if { (ac_try="$ac_link"
31400 case "(($ac_try" in
31401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402 *) ac_try_echo=$ac_try;;
31404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405 (eval "$ac_link") 2>conftest.er1
31407 grep -v '^ *+' conftest.er1 >conftest.err
31409 cat conftest.err >&5
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); } &&
31412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31413 { (case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_try") 2>&5
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; } &&
31422 { ac_try='test -s conftest$ac_exeext'
31423 { (case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428 (eval "$ac_try") 2>&5
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); }; }; 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 \
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
31450 cat >>confdefs.h <<\_ACEOF
31451 #define HAVE_GETHOSTBYNAME2 1
31458 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31459 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31460 if test "${ac_cv_struct_sockaddr_sa_len+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 #include <sys/socket.h>
31473 struct sockaddr s; s.sa_len;
31478 rm -f conftest.$ac_objext
31479 if { (ac_try="$ac_compile"
31480 case "(($ac_try" in
31481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31482 *) ac_try_echo=$ac_try;;
31484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31485 (eval "$ac_compile") 2>conftest.er1
31487 grep -v '^ *+' conftest.er1 >conftest.err
31489 cat conftest.err >&5
31490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); } &&
31492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31493 { (case "(($ac_try" in
31494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31495 *) ac_try_echo=$ac_try;;
31497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31498 (eval "$ac_try") 2>&5
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); }; } &&
31502 { ac_try='test -s conftest.$ac_objext'
31503 { (case "(($ac_try" in
31504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505 *) ac_try_echo=$ac_try;;
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508 (eval "$ac_try") 2>&5
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); }; }; then
31512 ac_cv_struct_sockaddr_sa_len=yes
31514 echo "$as_me: failed program was:" >&5
31515 sed 's/^/| /' conftest.$ac_ext >&5
31517 ac_cv_struct_sockaddr_sa_len=no
31520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31522 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31523 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31525 if test $ac_cv_struct_sockaddr_sa_len = yes; then
31527 cat >>confdefs.h <<\_ACEOF
31528 #define HAVE_SA_LEN 1
31537 for ac_func in strftime
31539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31543 echo $ECHO_N "(cached) $ECHO_C" >&6
31545 cat >conftest.$ac_ext <<_ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h. */
31551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31553 #define $ac_func innocuous_$ac_func
31555 /* System header to define __stub macros and hopefully few prototypes,
31556 which can conflict with char $ac_func (); below.
31557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31558 <limits.h> exists even on freestanding compilers. */
31561 # include <limits.h>
31563 # include <assert.h>
31568 /* Override any GCC internal prototype to avoid an error.
31569 Use char because int might match the return type of a GCC
31570 builtin and then its argument prototype would still apply. */
31575 /* The GNU C library defines this for functions which it implements
31576 to always fail with ENOSYS. Some functions are actually named
31577 something starting with __ and the normal name is an alias. */
31578 #if defined __stub_$ac_func || defined __stub___$ac_func
31585 return $ac_func ();
31590 rm -f conftest.$ac_objext conftest$ac_exeext
31591 if { (ac_try="$ac_link"
31592 case "(($ac_try" in
31593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31594 *) ac_try_echo=$ac_try;;
31596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31597 (eval "$ac_link") 2>conftest.er1
31599 grep -v '^ *+' conftest.er1 >conftest.err
31601 cat conftest.err >&5
31602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603 (exit $ac_status); } &&
31604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
31612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613 (exit $ac_status); }; } &&
31614 { ac_try='test -s conftest$ac_exeext'
31615 { (case "(($ac_try" in
31616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31617 *) ac_try_echo=$ac_try;;
31619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31620 (eval "$ac_try") 2>&5
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); }; }; then
31624 eval "$as_ac_var=yes"
31626 echo "$as_me: failed program was:" >&5
31627 sed 's/^/| /' conftest.$ac_ext >&5
31629 eval "$as_ac_var=no"
31632 rm -f core conftest.err conftest.$ac_objext \
31633 conftest$ac_exeext conftest.$ac_ext
31635 ac_res=`eval echo '${'$as_ac_var'}'`
31636 { echo "$as_me:$LINENO: result: $ac_res" >&5
31637 echo "${ECHO_T}$ac_res" >&6; }
31638 if test `eval echo '${'$as_ac_var'}'` = yes; then
31639 cat >>confdefs.h <<_ACEOF
31640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31644 # strftime is in -lintl on SCO UNIX.
31645 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31646 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31647 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31648 echo $ECHO_N "(cached) $ECHO_C" >&6
31650 ac_check_lib_save_LIBS=$LIBS
31651 LIBS="-lintl $LIBS"
31652 cat >conftest.$ac_ext <<_ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h. */
31659 /* Override any GCC internal prototype to avoid an error.
31660 Use char because int might match the return type of a GCC
31661 builtin and then its argument prototype would still apply. */
31669 return strftime ();
31674 rm -f conftest.$ac_objext conftest$ac_exeext
31675 if { (ac_try="$ac_link"
31676 case "(($ac_try" in
31677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678 *) ac_try_echo=$ac_try;;
31680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681 (eval "$ac_link") 2>conftest.er1
31683 grep -v '^ *+' conftest.er1 >conftest.err
31685 cat conftest.err >&5
31686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687 (exit $ac_status); } &&
31688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31689 { (case "(($ac_try" in
31690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31691 *) ac_try_echo=$ac_try;;
31693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31694 (eval "$ac_try") 2>&5
31696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697 (exit $ac_status); }; } &&
31698 { ac_try='test -s conftest$ac_exeext'
31699 { (case "(($ac_try" in
31700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31701 *) ac_try_echo=$ac_try;;
31703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31704 (eval "$ac_try") 2>&5
31706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707 (exit $ac_status); }; }; then
31708 ac_cv_lib_intl_strftime=yes
31710 echo "$as_me: failed program was:" >&5
31711 sed 's/^/| /' conftest.$ac_ext >&5
31713 ac_cv_lib_intl_strftime=no
31716 rm -f core conftest.err conftest.$ac_objext \
31717 conftest$ac_exeext conftest.$ac_ext
31718 LIBS=$ac_check_lib_save_LIBS
31720 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31721 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31722 if test $ac_cv_lib_intl_strftime = yes; then
31723 cat >>confdefs.h <<\_ACEOF
31724 #define HAVE_STRFTIME 1
31727 LIBS="-lintl $LIBS"
31734 for ac_func in vprintf
31736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31740 echo $ECHO_N "(cached) $ECHO_C" >&6
31742 cat >conftest.$ac_ext <<_ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h. */
31748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31750 #define $ac_func innocuous_$ac_func
31752 /* System header to define __stub macros and hopefully few prototypes,
31753 which can conflict with char $ac_func (); below.
31754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31755 <limits.h> exists even on freestanding compilers. */
31758 # include <limits.h>
31760 # include <assert.h>
31765 /* Override any GCC internal prototype to avoid an error.
31766 Use char because int might match the return type of a GCC
31767 builtin and then its argument prototype would still apply. */
31772 /* The GNU C library defines this for functions which it implements
31773 to always fail with ENOSYS. Some functions are actually named
31774 something starting with __ and the normal name is an alias. */
31775 #if defined __stub_$ac_func || defined __stub___$ac_func
31782 return $ac_func ();
31787 rm -f conftest.$ac_objext conftest$ac_exeext
31788 if { (ac_try="$ac_link"
31789 case "(($ac_try" in
31790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31791 *) ac_try_echo=$ac_try;;
31793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31794 (eval "$ac_link") 2>conftest.er1
31796 grep -v '^ *+' conftest.er1 >conftest.err
31798 cat conftest.err >&5
31799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800 (exit $ac_status); } &&
31801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31802 { (case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_try") 2>&5
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); }; } &&
31811 { ac_try='test -s conftest$ac_exeext'
31812 { (case "(($ac_try" in
31813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31814 *) ac_try_echo=$ac_try;;
31816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31817 (eval "$ac_try") 2>&5
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); }; }; then
31821 eval "$as_ac_var=yes"
31823 echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31826 eval "$as_ac_var=no"
31829 rm -f core conftest.err conftest.$ac_objext \
31830 conftest$ac_exeext conftest.$ac_ext
31832 ac_res=`eval echo '${'$as_ac_var'}'`
31833 { echo "$as_me:$LINENO: result: $ac_res" >&5
31834 echo "${ECHO_T}$ac_res" >&6; }
31835 if test `eval echo '${'$as_ac_var'}'` = yes; then
31836 cat >>confdefs.h <<_ACEOF
31837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31840 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31841 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31842 if test "${ac_cv_func__doprnt+set}" = set; then
31843 echo $ECHO_N "(cached) $ECHO_C" >&6
31845 cat >conftest.$ac_ext <<_ACEOF
31848 cat confdefs.h >>conftest.$ac_ext
31849 cat >>conftest.$ac_ext <<_ACEOF
31850 /* end confdefs.h. */
31851 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31853 #define _doprnt innocuous__doprnt
31855 /* System header to define __stub macros and hopefully few prototypes,
31856 which can conflict with char _doprnt (); below.
31857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31858 <limits.h> exists even on freestanding compilers. */
31861 # include <limits.h>
31863 # include <assert.h>
31868 /* Override any GCC internal prototype to avoid an error.
31869 Use char because int might match the return type of a GCC
31870 builtin and then its argument prototype would still apply. */
31875 /* The GNU C library defines this for functions which it implements
31876 to always fail with ENOSYS. Some functions are actually named
31877 something starting with __ and the normal name is an alias. */
31878 #if defined __stub__doprnt || defined __stub____doprnt
31890 rm -f conftest.$ac_objext conftest$ac_exeext
31891 if { (ac_try="$ac_link"
31892 case "(($ac_try" in
31893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894 *) ac_try_echo=$ac_try;;
31896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897 (eval "$ac_link") 2>conftest.er1
31899 grep -v '^ *+' conftest.er1 >conftest.err
31901 cat conftest.err >&5
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); } &&
31904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31905 { (case "(($ac_try" in
31906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31907 *) ac_try_echo=$ac_try;;
31909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31910 (eval "$ac_try") 2>&5
31912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913 (exit $ac_status); }; } &&
31914 { ac_try='test -s conftest$ac_exeext'
31915 { (case "(($ac_try" in
31916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917 *) ac_try_echo=$ac_try;;
31919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920 (eval "$ac_try") 2>&5
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); }; }; then
31924 ac_cv_func__doprnt=yes
31926 echo "$as_me: failed program was:" >&5
31927 sed 's/^/| /' conftest.$ac_ext >&5
31929 ac_cv_func__doprnt=no
31932 rm -f core conftest.err conftest.$ac_objext \
31933 conftest$ac_exeext conftest.$ac_ext
31935 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31936 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31937 if test $ac_cv_func__doprnt = yes; then
31939 cat >>confdefs.h <<\_ACEOF
31940 #define HAVE_DOPRNT 1
31949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31950 # for constant arguments. Useless!
31951 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31952 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31953 if test "${ac_cv_working_alloca_h+set}" = set; then
31954 echo $ECHO_N "(cached) $ECHO_C" >&6
31956 cat >conftest.$ac_ext <<_ACEOF
31959 cat confdefs.h >>conftest.$ac_ext
31960 cat >>conftest.$ac_ext <<_ACEOF
31961 /* end confdefs.h. */
31962 #include <alloca.h>
31966 char *p = (char *) alloca (2 * sizeof (int));
31972 rm -f conftest.$ac_objext conftest$ac_exeext
31973 if { (ac_try="$ac_link"
31974 case "(($ac_try" in
31975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976 *) ac_try_echo=$ac_try;;
31978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979 (eval "$ac_link") 2>conftest.er1
31981 grep -v '^ *+' conftest.er1 >conftest.err
31983 cat conftest.err >&5
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); } &&
31986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31987 { (case "(($ac_try" in
31988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989 *) ac_try_echo=$ac_try;;
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992 (eval "$ac_try") 2>&5
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); }; } &&
31996 { ac_try='test -s conftest$ac_exeext'
31997 { (case "(($ac_try" in
31998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999 *) ac_try_echo=$ac_try;;
32001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002 (eval "$ac_try") 2>&5
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; }; then
32006 ac_cv_working_alloca_h=yes
32008 echo "$as_me: failed program was:" >&5
32009 sed 's/^/| /' conftest.$ac_ext >&5
32011 ac_cv_working_alloca_h=no
32014 rm -f core conftest.err conftest.$ac_objext \
32015 conftest$ac_exeext conftest.$ac_ext
32017 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32018 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32019 if test $ac_cv_working_alloca_h = yes; then
32021 cat >>confdefs.h <<\_ACEOF
32022 #define HAVE_ALLOCA_H 1
32027 { echo "$as_me:$LINENO: checking for alloca" >&5
32028 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32029 if test "${ac_cv_func_alloca_works+set}" = set; then
32030 echo $ECHO_N "(cached) $ECHO_C" >&6
32032 cat >conftest.$ac_ext <<_ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h. */
32039 # define alloca __builtin_alloca
32042 # include <malloc.h>
32043 # define alloca _alloca
32046 # include <alloca.h>
32051 # ifndef alloca /* predefined by HP cc +Olibcalls */
32062 char *p = (char *) alloca (1);
32068 rm -f conftest.$ac_objext conftest$ac_exeext
32069 if { (ac_try="$ac_link"
32070 case "(($ac_try" in
32071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072 *) ac_try_echo=$ac_try;;
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075 (eval "$ac_link") 2>conftest.er1
32077 grep -v '^ *+' conftest.er1 >conftest.err
32079 cat conftest.err >&5
32080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081 (exit $ac_status); } &&
32082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32083 { (case "(($ac_try" in
32084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085 *) ac_try_echo=$ac_try;;
32087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088 (eval "$ac_try") 2>&5
32090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091 (exit $ac_status); }; } &&
32092 { ac_try='test -s conftest$ac_exeext'
32093 { (case "(($ac_try" in
32094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32095 *) ac_try_echo=$ac_try;;
32097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32098 (eval "$ac_try") 2>&5
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); }; }; then
32102 ac_cv_func_alloca_works=yes
32104 echo "$as_me: failed program was:" >&5
32105 sed 's/^/| /' conftest.$ac_ext >&5
32107 ac_cv_func_alloca_works=no
32110 rm -f core conftest.err conftest.$ac_objext \
32111 conftest$ac_exeext conftest.$ac_ext
32113 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32114 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32116 if test $ac_cv_func_alloca_works = yes; then
32118 cat >>confdefs.h <<\_ACEOF
32119 #define HAVE_ALLOCA 1
32123 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32124 # that cause trouble. Some versions do not even contain alloca or
32125 # contain a buggy version. If you still want to use their alloca,
32126 # use ar to extract alloca.o from them instead of compiling alloca.c.
32128 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32130 cat >>confdefs.h <<\_ACEOF
32135 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32136 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32137 if test "${ac_cv_os_cray+set}" = set; then
32138 echo $ECHO_N "(cached) $ECHO_C" >&6
32140 cat >conftest.$ac_ext <<_ACEOF
32143 cat confdefs.h >>conftest.$ac_ext
32144 cat >>conftest.$ac_ext <<_ACEOF
32145 /* end confdefs.h. */
32146 #if defined CRAY && ! defined CRAY2
32153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32154 $EGREP "webecray" >/dev/null 2>&1; then
32162 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32163 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32164 if test $ac_cv_os_cray = yes; then
32165 for ac_func in _getb67 GETB67 getb67; do
32166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32170 echo $ECHO_N "(cached) $ECHO_C" >&6
32172 cat >conftest.$ac_ext <<_ACEOF
32175 cat confdefs.h >>conftest.$ac_ext
32176 cat >>conftest.$ac_ext <<_ACEOF
32177 /* end confdefs.h. */
32178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32180 #define $ac_func innocuous_$ac_func
32182 /* System header to define __stub macros and hopefully few prototypes,
32183 which can conflict with char $ac_func (); below.
32184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32185 <limits.h> exists even on freestanding compilers. */
32188 # include <limits.h>
32190 # include <assert.h>
32195 /* Override any GCC internal prototype to avoid an error.
32196 Use char because int might match the return type of a GCC
32197 builtin and then its argument prototype would still apply. */
32202 /* The GNU C library defines this for functions which it implements
32203 to always fail with ENOSYS. Some functions are actually named
32204 something starting with __ and the normal name is an alias. */
32205 #if defined __stub_$ac_func || defined __stub___$ac_func
32212 return $ac_func ();
32217 rm -f conftest.$ac_objext conftest$ac_exeext
32218 if { (ac_try="$ac_link"
32219 case "(($ac_try" in
32220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221 *) ac_try_echo=$ac_try;;
32223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224 (eval "$ac_link") 2>conftest.er1
32226 grep -v '^ *+' conftest.er1 >conftest.err
32228 cat conftest.err >&5
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); } &&
32231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32232 { (case "(($ac_try" in
32233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32234 *) ac_try_echo=$ac_try;;
32236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32237 (eval "$ac_try") 2>&5
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); }; } &&
32241 { ac_try='test -s conftest$ac_exeext'
32242 { (case "(($ac_try" in
32243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244 *) ac_try_echo=$ac_try;;
32246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32247 (eval "$ac_try") 2>&5
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); }; }; then
32251 eval "$as_ac_var=yes"
32253 echo "$as_me: failed program was:" >&5
32254 sed 's/^/| /' conftest.$ac_ext >&5
32256 eval "$as_ac_var=no"
32259 rm -f core conftest.err conftest.$ac_objext \
32260 conftest$ac_exeext conftest.$ac_ext
32262 ac_res=`eval echo '${'$as_ac_var'}'`
32263 { echo "$as_me:$LINENO: result: $ac_res" >&5
32264 echo "${ECHO_T}$ac_res" >&6; }
32265 if test `eval echo '${'$as_ac_var'}'` = yes; then
32267 cat >>confdefs.h <<_ACEOF
32268 #define CRAY_STACKSEG_END $ac_func
32277 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32278 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32279 if test "${ac_cv_c_stack_direction+set}" = set; then
32280 echo $ECHO_N "(cached) $ECHO_C" >&6
32282 if test "$cross_compiling" = yes; then
32283 ac_cv_c_stack_direction=0
32285 cat >conftest.$ac_ext <<_ACEOF
32288 cat confdefs.h >>conftest.$ac_ext
32289 cat >>conftest.$ac_ext <<_ACEOF
32290 /* end confdefs.h. */
32291 $ac_includes_default
32293 find_stack_direction ()
32295 static char *addr = 0;
32300 return find_stack_direction ();
32303 return (&dummy > addr) ? 1 : -1;
32309 return find_stack_direction () < 0;
32312 rm -f conftest$ac_exeext
32313 if { (ac_try="$ac_link"
32314 case "(($ac_try" in
32315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316 *) ac_try_echo=$ac_try;;
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319 (eval "$ac_link") 2>&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32323 { (case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328 (eval "$ac_try") 2>&5
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; }; then
32332 ac_cv_c_stack_direction=1
32334 echo "$as_me: program exited with status $ac_status" >&5
32335 echo "$as_me: failed program was:" >&5
32336 sed 's/^/| /' conftest.$ac_ext >&5
32338 ( exit $ac_status )
32339 ac_cv_c_stack_direction=-1
32341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32346 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32347 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32349 cat >>confdefs.h <<_ACEOF
32350 #define STACK_DIRECTION $ac_cv_c_stack_direction
32356 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
32357 # -lseq on Dynix/PTX, -lgen on Unixware.
32358 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
32359 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
32360 if test "${ac_cv_search_getmntent+set}" = set; then
32361 echo $ECHO_N "(cached) $ECHO_C" >&6
32363 ac_func_search_save_LIBS=$LIBS
32364 cat >conftest.$ac_ext <<_ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h. */
32371 /* Override any GCC internal prototype to avoid an error.
32372 Use char because int might match the return type of a GCC
32373 builtin and then its argument prototype would still apply. */
32381 return getmntent ();
32386 for ac_lib in '' sun seq gen; do
32387 if test -z "$ac_lib"; then
32388 ac_res="none required"
32391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32393 rm -f conftest.$ac_objext conftest$ac_exeext
32394 if { (ac_try="$ac_link"
32395 case "(($ac_try" in
32396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32397 *) ac_try_echo=$ac_try;;
32399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32400 (eval "$ac_link") 2>conftest.er1
32402 grep -v '^ *+' conftest.er1 >conftest.err
32404 cat conftest.err >&5
32405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406 (exit $ac_status); } &&
32407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32408 { (case "(($ac_try" in
32409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32410 *) ac_try_echo=$ac_try;;
32412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32413 (eval "$ac_try") 2>&5
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); }; } &&
32417 { ac_try='test -s conftest$ac_exeext'
32418 { (case "(($ac_try" in
32419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32420 *) ac_try_echo=$ac_try;;
32422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32423 (eval "$ac_try") 2>&5
32425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426 (exit $ac_status); }; }; then
32427 ac_cv_search_getmntent=$ac_res
32429 echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32435 rm -f core conftest.err conftest.$ac_objext \
32437 if test "${ac_cv_search_getmntent+set}" = set; then
32441 if test "${ac_cv_search_getmntent+set}" = set; then
32444 ac_cv_search_getmntent=no
32446 rm conftest.$ac_ext
32447 LIBS=$ac_func_search_save_LIBS
32449 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32450 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32451 ac_res=$ac_cv_search_getmntent
32452 if test "$ac_res" != no; then
32453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32458 for ac_func in getmntent
32460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32464 echo $ECHO_N "(cached) $ECHO_C" >&6
32466 cat >conftest.$ac_ext <<_ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h. */
32472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32474 #define $ac_func innocuous_$ac_func
32476 /* System header to define __stub macros and hopefully few prototypes,
32477 which can conflict with char $ac_func (); below.
32478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32479 <limits.h> exists even on freestanding compilers. */
32482 # include <limits.h>
32484 # include <assert.h>
32489 /* Override any GCC internal prototype to avoid an error.
32490 Use char because int might match the return type of a GCC
32491 builtin and then its argument prototype would still apply. */
32496 /* The GNU C library defines this for functions which it implements
32497 to always fail with ENOSYS. Some functions are actually named
32498 something starting with __ and the normal name is an alias. */
32499 #if defined __stub_$ac_func || defined __stub___$ac_func
32506 return $ac_func ();
32511 rm -f conftest.$ac_objext conftest$ac_exeext
32512 if { (ac_try="$ac_link"
32513 case "(($ac_try" in
32514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515 *) ac_try_echo=$ac_try;;
32517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32518 (eval "$ac_link") 2>conftest.er1
32520 grep -v '^ *+' conftest.er1 >conftest.err
32522 cat conftest.err >&5
32523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524 (exit $ac_status); } &&
32525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32526 { (case "(($ac_try" in
32527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32528 *) ac_try_echo=$ac_try;;
32530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32531 (eval "$ac_try") 2>&5
32533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534 (exit $ac_status); }; } &&
32535 { ac_try='test -s conftest$ac_exeext'
32536 { (case "(($ac_try" in
32537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32538 *) ac_try_echo=$ac_try;;
32540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32541 (eval "$ac_try") 2>&5
32543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544 (exit $ac_status); }; }; then
32545 eval "$as_ac_var=yes"
32547 echo "$as_me: failed program was:" >&5
32548 sed 's/^/| /' conftest.$ac_ext >&5
32550 eval "$as_ac_var=no"
32553 rm -f core conftest.err conftest.$ac_objext \
32554 conftest$ac_exeext conftest.$ac_ext
32556 ac_res=`eval echo '${'$as_ac_var'}'`
32557 { echo "$as_me:$LINENO: result: $ac_res" >&5
32558 echo "${ECHO_T}$ac_res" >&6; }
32559 if test `eval echo '${'$as_ac_var'}'` = yes; then
32560 cat >>confdefs.h <<_ACEOF
32561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32568 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32569 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32570 if test "${ac_cv_func_closedir_void+set}" = set; then
32571 echo $ECHO_N "(cached) $ECHO_C" >&6
32573 if test "$cross_compiling" = yes; then
32574 ac_cv_func_closedir_void=yes
32576 cat >conftest.$ac_ext <<_ACEOF
32579 cat confdefs.h >>conftest.$ac_ext
32580 cat >>conftest.$ac_ext <<_ACEOF
32581 /* end confdefs.h. */
32582 $ac_includes_default
32583 #include <$ac_header_dirent>
32584 #ifndef __cplusplus
32591 return closedir (opendir (".")) != 0;
32596 rm -f conftest$ac_exeext
32597 if { (ac_try="$ac_link"
32598 case "(($ac_try" in
32599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600 *) ac_try_echo=$ac_try;;
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603 (eval "$ac_link") 2>&5
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32607 { (case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_try") 2>&5
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; }; then
32616 ac_cv_func_closedir_void=no
32618 echo "$as_me: program exited with status $ac_status" >&5
32619 echo "$as_me: failed program was:" >&5
32620 sed 's/^/| /' conftest.$ac_ext >&5
32622 ( exit $ac_status )
32623 ac_cv_func_closedir_void=yes
32625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32630 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32631 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32632 if test $ac_cv_func_closedir_void = yes; then
32634 cat >>confdefs.h <<\_ACEOF
32635 #define CLOSEDIR_VOID 1
32640 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32641 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32642 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32643 echo $ECHO_N "(cached) $ECHO_C" >&6
32645 if test "$cross_compiling" = yes; then
32646 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32647 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32648 { (exit 1); exit 1; }; }
32650 cat >conftest.$ac_ext <<_ACEOF
32653 cat confdefs.h >>conftest.$ac_ext
32654 cat >>conftest.$ac_ext <<_ACEOF
32655 /* end confdefs.h. */
32656 $ac_includes_default
32660 /* If this system has a BSD-style setpgrp which takes arguments,
32661 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32662 exit successfully. */
32663 return setpgrp (1,1) != -1;
32668 rm -f conftest$ac_exeext
32669 if { (ac_try="$ac_link"
32670 case "(($ac_try" in
32671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672 *) ac_try_echo=$ac_try;;
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675 (eval "$ac_link") 2>&5
32677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32679 { (case "(($ac_try" in
32680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681 *) ac_try_echo=$ac_try;;
32683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684 (eval "$ac_try") 2>&5
32686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687 (exit $ac_status); }; }; then
32688 ac_cv_func_setpgrp_void=no
32690 echo "$as_me: program exited with status $ac_status" >&5
32691 echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32694 ( exit $ac_status )
32695 ac_cv_func_setpgrp_void=yes
32697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32702 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32703 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32704 if test $ac_cv_func_setpgrp_void = yes; then
32706 cat >>confdefs.h <<\_ACEOF
32707 #define SETPGRP_VOID 1
32711 # AC_FUNC_FNMATCH dnl use local version
32714 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32715 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32716 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32719 ac_check_lib_save_LIBS=$LIBS
32720 LIBS="-lintl $LIBS"
32721 cat >conftest.$ac_ext <<_ACEOF
32724 cat confdefs.h >>conftest.$ac_ext
32725 cat >>conftest.$ac_ext <<_ACEOF
32726 /* end confdefs.h. */
32728 /* Override any GCC internal prototype to avoid an error.
32729 Use char because int might match the return type of a GCC
32730 builtin and then its argument prototype would still apply. */
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 if { (ac_try="$ac_link"
32745 case "(($ac_try" in
32746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32747 *) ac_try_echo=$ac_try;;
32749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32750 (eval "$ac_link") 2>conftest.er1
32752 grep -v '^ *+' conftest.er1 >conftest.err
32754 cat conftest.err >&5
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); } &&
32757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32758 { (case "(($ac_try" in
32759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32760 *) ac_try_echo=$ac_try;;
32762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32763 (eval "$ac_try") 2>&5
32765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 (exit $ac_status); }; } &&
32767 { ac_try='test -s conftest$ac_exeext'
32768 { (case "(($ac_try" in
32769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770 *) ac_try_echo=$ac_try;;
32772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773 (eval "$ac_try") 2>&5
32775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776 (exit $ac_status); }; }; then
32777 ac_cv_lib_intl_gettext=yes
32779 echo "$as_me: failed program was:" >&5
32780 sed 's/^/| /' conftest.$ac_ext >&5
32782 ac_cv_lib_intl_gettext=no
32785 rm -f core conftest.err conftest.$ac_objext \
32786 conftest$ac_exeext conftest.$ac_ext
32787 LIBS=$ac_check_lib_save_LIBS
32789 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32790 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32791 if test $ac_cv_lib_intl_gettext = yes; then
32792 LIBS="$LIBS -lintl"
32798 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32799 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32800 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32801 echo $ECHO_N "(cached) $ECHO_C" >&6
32803 ac_check_lib_save_LIBS=$LIBS
32805 cat >conftest.$ac_ext <<_ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h. */
32812 /* Override any GCC internal prototype to avoid an error.
32813 Use char because int might match the return type of a GCC
32814 builtin and then its argument prototype would still apply. */
32822 return getpwnam ();
32827 rm -f conftest.$ac_objext conftest$ac_exeext
32828 if { (ac_try="$ac_link"
32829 case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_link") 2>conftest.er1
32836 grep -v '^ *+' conftest.er1 >conftest.err
32838 cat conftest.err >&5
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); } &&
32841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32842 { (case "(($ac_try" in
32843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32844 *) ac_try_echo=$ac_try;;
32846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32847 (eval "$ac_try") 2>&5
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); }; } &&
32851 { ac_try='test -s conftest$ac_exeext'
32852 { (case "(($ac_try" in
32853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32854 *) ac_try_echo=$ac_try;;
32856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32857 (eval "$ac_try") 2>&5
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); }; }; then
32861 ac_cv_lib_sun_getpwnam=yes
32863 echo "$as_me: failed program was:" >&5
32864 sed 's/^/| /' conftest.$ac_ext >&5
32866 ac_cv_lib_sun_getpwnam=no
32869 rm -f core conftest.err conftest.$ac_objext \
32870 conftest$ac_exeext conftest.$ac_ext
32871 LIBS=$ac_check_lib_save_LIBS
32873 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32874 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32875 if test $ac_cv_lib_sun_getpwnam = yes; then
32876 cat >>confdefs.h <<_ACEOF
32877 #define HAVE_LIBSUN 1
32886 for ac_header in zlib.h
32888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32893 echo $ECHO_N "(cached) $ECHO_C" >&6
32895 ac_res=`eval echo '${'$as_ac_Header'}'`
32896 { echo "$as_me:$LINENO: result: $ac_res" >&5
32897 echo "${ECHO_T}$ac_res" >&6; }
32899 # Is the header compilable?
32900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32902 cat >conftest.$ac_ext <<_ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h. */
32908 $ac_includes_default
32909 #include <$ac_header>
32911 rm -f conftest.$ac_objext
32912 if { (ac_try="$ac_compile"
32913 case "(($ac_try" in
32914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32915 *) ac_try_echo=$ac_try;;
32917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32918 (eval "$ac_compile") 2>conftest.er1
32920 grep -v '^ *+' conftest.er1 >conftest.err
32922 cat conftest.err >&5
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); } &&
32925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32926 { (case "(($ac_try" in
32927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32928 *) ac_try_echo=$ac_try;;
32930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32931 (eval "$ac_try") 2>&5
32933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934 (exit $ac_status); }; } &&
32935 { ac_try='test -s conftest.$ac_objext'
32936 { (case "(($ac_try" in
32937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938 *) ac_try_echo=$ac_try;;
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941 (eval "$ac_try") 2>&5
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); }; }; then
32945 ac_header_compiler=yes
32947 echo "$as_me: failed program was:" >&5
32948 sed 's/^/| /' conftest.$ac_ext >&5
32950 ac_header_compiler=no
32953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32955 echo "${ECHO_T}$ac_header_compiler" >&6; }
32957 # Is the header present?
32958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32960 cat >conftest.$ac_ext <<_ACEOF
32963 cat confdefs.h >>conftest.$ac_ext
32964 cat >>conftest.$ac_ext <<_ACEOF
32965 /* end confdefs.h. */
32966 #include <$ac_header>
32968 if { (ac_try="$ac_cpp conftest.$ac_ext"
32969 case "(($ac_try" in
32970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32971 *) ac_try_echo=$ac_try;;
32973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32976 grep -v '^ *+' conftest.er1 >conftest.err
32978 cat conftest.err >&5
32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980 (exit $ac_status); } >/dev/null; then
32981 if test -s conftest.err; then
32982 ac_cpp_err=$ac_c_preproc_warn_flag
32983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32990 if test -z "$ac_cpp_err"; then
32991 ac_header_preproc=yes
32993 echo "$as_me: failed program was:" >&5
32994 sed 's/^/| /' conftest.$ac_ext >&5
32996 ac_header_preproc=no
32999 rm -f conftest.err conftest.$ac_ext
33000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33001 echo "${ECHO_T}$ac_header_preproc" >&6; }
33003 # So? What about this header?
33004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33010 ac_header_preproc=yes
33013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33031 echo $ECHO_N "(cached) $ECHO_C" >&6
33033 eval "$as_ac_Header=\$ac_header_preproc"
33035 ac_res=`eval echo '${'$as_ac_Header'}'`
33036 { echo "$as_me:$LINENO: result: $ac_res" >&5
33037 echo "${ECHO_T}$ac_res" >&6; }
33040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33041 cat >>confdefs.h <<_ACEOF
33042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33049 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33050 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33051 if test "${ac_cv_lib_z_deflate+set}" = set; then
33052 echo $ECHO_N "(cached) $ECHO_C" >&6
33054 ac_check_lib_save_LIBS=$LIBS
33056 cat >conftest.$ac_ext <<_ACEOF
33059 cat confdefs.h >>conftest.$ac_ext
33060 cat >>conftest.$ac_ext <<_ACEOF
33061 /* end confdefs.h. */
33063 /* Override any GCC internal prototype to avoid an error.
33064 Use char because int might match the return type of a GCC
33065 builtin and then its argument prototype would still apply. */
33078 rm -f conftest.$ac_objext conftest$ac_exeext
33079 if { (ac_try="$ac_link"
33080 case "(($ac_try" in
33081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33082 *) ac_try_echo=$ac_try;;
33084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33085 (eval "$ac_link") 2>conftest.er1
33087 grep -v '^ *+' conftest.er1 >conftest.err
33089 cat conftest.err >&5
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091 (exit $ac_status); } &&
33092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33093 { (case "(($ac_try" in
33094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095 *) ac_try_echo=$ac_try;;
33097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098 (eval "$ac_try") 2>&5
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; } &&
33102 { ac_try='test -s conftest$ac_exeext'
33103 { (case "(($ac_try" in
33104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105 *) ac_try_echo=$ac_try;;
33107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108 (eval "$ac_try") 2>&5
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); }; }; then
33112 ac_cv_lib_z_deflate=yes
33114 echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33117 ac_cv_lib_z_deflate=no
33120 rm -f core conftest.err conftest.$ac_objext \
33121 conftest$ac_exeext conftest.$ac_ext
33122 LIBS=$ac_check_lib_save_LIBS
33124 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33125 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33126 if test $ac_cv_lib_z_deflate = yes; then
33131 if test x$FDLIBS = x-lz; then
33132 cat >>confdefs.h <<\_ACEOF
33133 #define HAVE_LIBZ 1
33140 # Check for ACL libraries
33143 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33144 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33145 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33146 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33147 echo $ECHO_N "(cached) $ECHO_C" >&6
33149 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33150 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33152 # Is the header compilable?
33153 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33154 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33155 cat >conftest.$ac_ext <<_ACEOF
33158 cat confdefs.h >>conftest.$ac_ext
33159 cat >>conftest.$ac_ext <<_ACEOF
33160 /* end confdefs.h. */
33161 $ac_includes_default
33162 #include <sys/acl.h>
33164 rm -f conftest.$ac_objext
33165 if { (ac_try="$ac_compile"
33166 case "(($ac_try" in
33167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33168 *) ac_try_echo=$ac_try;;
33170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33171 (eval "$ac_compile") 2>conftest.er1
33173 grep -v '^ *+' conftest.er1 >conftest.err
33175 cat conftest.err >&5
33176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177 (exit $ac_status); } &&
33178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33179 { (case "(($ac_try" in
33180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33181 *) ac_try_echo=$ac_try;;
33183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184 (eval "$ac_try") 2>&5
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); }; } &&
33188 { ac_try='test -s conftest.$ac_objext'
33189 { (case "(($ac_try" in
33190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33191 *) ac_try_echo=$ac_try;;
33193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33194 (eval "$ac_try") 2>&5
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); }; }; then
33198 ac_header_compiler=yes
33200 echo "$as_me: failed program was:" >&5
33201 sed 's/^/| /' conftest.$ac_ext >&5
33203 ac_header_compiler=no
33206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33208 echo "${ECHO_T}$ac_header_compiler" >&6; }
33210 # Is the header present?
33211 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33212 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33213 cat >conftest.$ac_ext <<_ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h. */
33219 #include <sys/acl.h>
33221 if { (ac_try="$ac_cpp conftest.$ac_ext"
33222 case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33229 grep -v '^ *+' conftest.er1 >conftest.err
33231 cat conftest.err >&5
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); } >/dev/null; then
33234 if test -s conftest.err; then
33235 ac_cpp_err=$ac_c_preproc_warn_flag
33236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33243 if test -z "$ac_cpp_err"; then
33244 ac_header_preproc=yes
33246 echo "$as_me: failed program was:" >&5
33247 sed 's/^/| /' conftest.$ac_ext >&5
33249 ac_header_preproc=no
33252 rm -f conftest.err conftest.$ac_ext
33253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33254 echo "${ECHO_T}$ac_header_preproc" >&6; }
33256 # So? What about this header?
33257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33259 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33260 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33261 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33262 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33263 ac_header_preproc=yes
33266 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33267 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33268 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
33269 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
33270 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33271 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33272 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
33273 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33274 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33275 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33276 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33277 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33281 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33282 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33283 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33284 echo $ECHO_N "(cached) $ECHO_C" >&6
33286 ac_cv_header_sys_acl_h=$ac_header_preproc
33288 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33289 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33294 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33295 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33296 if test "${ac_cv_func_acl_get_file+set}" = set; then
33297 echo $ECHO_N "(cached) $ECHO_C" >&6
33299 cat >conftest.$ac_ext <<_ACEOF
33302 cat confdefs.h >>conftest.$ac_ext
33303 cat >>conftest.$ac_ext <<_ACEOF
33304 /* end confdefs.h. */
33305 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33307 #define acl_get_file innocuous_acl_get_file
33309 /* System header to define __stub macros and hopefully few prototypes,
33310 which can conflict with char acl_get_file (); below.
33311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33312 <limits.h> exists even on freestanding compilers. */
33315 # include <limits.h>
33317 # include <assert.h>
33320 #undef acl_get_file
33322 /* Override any GCC internal prototype to avoid an error.
33323 Use char because int might match the return type of a GCC
33324 builtin and then its argument prototype would still apply. */
33328 char acl_get_file ();
33329 /* The GNU C library defines this for functions which it implements
33330 to always fail with ENOSYS. Some functions are actually named
33331 something starting with __ and the normal name is an alias. */
33332 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33339 return acl_get_file ();
33344 rm -f conftest.$ac_objext conftest$ac_exeext
33345 if { (ac_try="$ac_link"
33346 case "(($ac_try" in
33347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33348 *) ac_try_echo=$ac_try;;
33350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33351 (eval "$ac_link") 2>conftest.er1
33353 grep -v '^ *+' conftest.er1 >conftest.err
33355 cat conftest.err >&5
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); } &&
33358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33359 { (case "(($ac_try" in
33360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361 *) ac_try_echo=$ac_try;;
33363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364 (eval "$ac_try") 2>&5
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; } &&
33368 { ac_try='test -s conftest$ac_exeext'
33369 { (case "(($ac_try" in
33370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371 *) ac_try_echo=$ac_try;;
33373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374 (eval "$ac_try") 2>&5
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; }; then
33378 ac_cv_func_acl_get_file=yes
33380 echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33383 ac_cv_func_acl_get_file=no
33386 rm -f core conftest.err conftest.$ac_objext \
33387 conftest$ac_exeext conftest.$ac_ext
33389 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33390 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33391 if test $ac_cv_func_acl_get_file = yes; then
33394 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33395 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33396 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33397 echo $ECHO_N "(cached) $ECHO_C" >&6
33399 ac_check_lib_save_LIBS=$LIBS
33401 cat >conftest.$ac_ext <<_ACEOF
33404 cat confdefs.h >>conftest.$ac_ext
33405 cat >>conftest.$ac_ext <<_ACEOF
33406 /* end confdefs.h. */
33408 /* Override any GCC internal prototype to avoid an error.
33409 Use char because int might match the return type of a GCC
33410 builtin and then its argument prototype would still apply. */
33414 char acl_get_file ();
33418 return acl_get_file ();
33423 rm -f conftest.$ac_objext conftest$ac_exeext
33424 if { (ac_try="$ac_link"
33425 case "(($ac_try" in
33426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427 *) ac_try_echo=$ac_try;;
33429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430 (eval "$ac_link") 2>conftest.er1
33432 grep -v '^ *+' conftest.er1 >conftest.err
33434 cat conftest.err >&5
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); } &&
33437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33438 { (case "(($ac_try" in
33439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33440 *) ac_try_echo=$ac_try;;
33442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33443 (eval "$ac_try") 2>&5
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; } &&
33447 { ac_try='test -s conftest$ac_exeext'
33448 { (case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_try") 2>&5
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; }; then
33457 ac_cv_lib_acl_acl_get_file=yes
33459 echo "$as_me: failed program was:" >&5
33460 sed 's/^/| /' conftest.$ac_ext >&5
33462 ac_cv_lib_acl_acl_get_file=no
33465 rm -f core conftest.err conftest.$ac_objext \
33466 conftest$ac_exeext conftest.$ac_ext
33467 LIBS=$ac_check_lib_save_LIBS
33469 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33470 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33471 if test $ac_cv_lib_acl_acl_get_file = yes; then
33472 have_acl=yes; FDLIBS="-lacl $FDLIBS"
33474 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33475 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33476 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33477 echo $ECHO_N "(cached) $ECHO_C" >&6
33479 ac_check_lib_save_LIBS=$LIBS
33481 cat >conftest.$ac_ext <<_ACEOF
33484 cat confdefs.h >>conftest.$ac_ext
33485 cat >>conftest.$ac_ext <<_ACEOF
33486 /* end confdefs.h. */
33488 /* Override any GCC internal prototype to avoid an error.
33489 Use char because int might match the return type of a GCC
33490 builtin and then its argument prototype would still apply. */
33498 return acltotext ();
33503 rm -f conftest.$ac_objext conftest$ac_exeext
33504 if { (ac_try="$ac_link"
33505 case "(($ac_try" in
33506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33507 *) ac_try_echo=$ac_try;;
33509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33510 (eval "$ac_link") 2>conftest.er1
33512 grep -v '^ *+' conftest.er1 >conftest.err
33514 cat conftest.err >&5
33515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516 (exit $ac_status); } &&
33517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33518 { (case "(($ac_try" in
33519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33520 *) ac_try_echo=$ac_try;;
33522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33523 (eval "$ac_try") 2>&5
33525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33526 (exit $ac_status); }; } &&
33527 { ac_try='test -s conftest$ac_exeext'
33528 { (case "(($ac_try" in
33529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33530 *) ac_try_echo=$ac_try;;
33532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33533 (eval "$ac_try") 2>&5
33535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536 (exit $ac_status); }; }; then
33537 ac_cv_lib_sec_acltotext=yes
33539 echo "$as_me: failed program was:" >&5
33540 sed 's/^/| /' conftest.$ac_ext >&5
33542 ac_cv_lib_sec_acltotext=no
33545 rm -f core conftest.err conftest.$ac_objext \
33546 conftest$ac_exeext conftest.$ac_ext
33547 LIBS=$ac_check_lib_save_LIBS
33549 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33550 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33551 if test $ac_cv_lib_sec_acltotext = yes; then
33552 have_acl=yes; FDLIBS="-lsec $FDLIBS"
33561 if test $have_acl = yes; then
33562 cat >>confdefs.h <<\_ACEOF
33569 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33570 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33571 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33572 echo $ECHO_N "(cached) $ECHO_C" >&6
33574 ac_check_lib_save_LIBS=$LIBS
33575 LIBS="-lpthread $LIBS"
33576 cat >conftest.$ac_ext <<_ACEOF
33579 cat confdefs.h >>conftest.$ac_ext
33580 cat >>conftest.$ac_ext <<_ACEOF
33581 /* end confdefs.h. */
33583 /* Override any GCC internal prototype to avoid an error.
33584 Use char because int might match the return type of a GCC
33585 builtin and then its argument prototype would still apply. */
33589 char pthread_create ();
33593 return pthread_create ();
33598 rm -f conftest.$ac_objext conftest$ac_exeext
33599 if { (ac_try="$ac_link"
33600 case "(($ac_try" in
33601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602 *) ac_try_echo=$ac_try;;
33604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605 (eval "$ac_link") 2>conftest.er1
33607 grep -v '^ *+' conftest.er1 >conftest.err
33609 cat conftest.err >&5
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); } &&
33612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33613 { (case "(($ac_try" in
33614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33615 *) ac_try_echo=$ac_try;;
33617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33618 (eval "$ac_try") 2>&5
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; } &&
33622 { ac_try='test -s conftest$ac_exeext'
33623 { (case "(($ac_try" in
33624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625 *) ac_try_echo=$ac_try;;
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628 (eval "$ac_try") 2>&5
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; }; then
33632 ac_cv_lib_pthread_pthread_create=yes
33634 echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33637 ac_cv_lib_pthread_pthread_create=no
33640 rm -f core conftest.err conftest.$ac_objext \
33641 conftest$ac_exeext conftest.$ac_ext
33642 LIBS=$ac_check_lib_save_LIBS
33644 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33645 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33646 if test $ac_cv_lib_pthread_pthread_create = yes; then
33647 PTHREAD_LIB="-lpthread"
33649 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33650 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33651 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33652 echo $ECHO_N "(cached) $ECHO_C" >&6
33654 ac_check_lib_save_LIBS=$LIBS
33655 LIBS="-lpthreads $LIBS"
33656 cat >conftest.$ac_ext <<_ACEOF
33659 cat confdefs.h >>conftest.$ac_ext
33660 cat >>conftest.$ac_ext <<_ACEOF
33661 /* end confdefs.h. */
33663 /* Override any GCC internal prototype to avoid an error.
33664 Use char because int might match the return type of a GCC
33665 builtin and then its argument prototype would still apply. */
33669 char pthread_create ();
33673 return pthread_create ();
33678 rm -f conftest.$ac_objext conftest$ac_exeext
33679 if { (ac_try="$ac_link"
33680 case "(($ac_try" in
33681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33682 *) ac_try_echo=$ac_try;;
33684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33685 (eval "$ac_link") 2>conftest.er1
33687 grep -v '^ *+' conftest.er1 >conftest.err
33689 cat conftest.err >&5
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); } &&
33692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33693 { (case "(($ac_try" in
33694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33695 *) ac_try_echo=$ac_try;;
33697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33698 (eval "$ac_try") 2>&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); }; } &&
33702 { ac_try='test -s conftest$ac_exeext'
33703 { (case "(($ac_try" in
33704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33705 *) ac_try_echo=$ac_try;;
33707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33708 (eval "$ac_try") 2>&5
33710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33711 (exit $ac_status); }; }; then
33712 ac_cv_lib_pthreads_pthread_create=yes
33714 echo "$as_me: failed program was:" >&5
33715 sed 's/^/| /' conftest.$ac_ext >&5
33717 ac_cv_lib_pthreads_pthread_create=no
33720 rm -f core conftest.err conftest.$ac_objext \
33721 conftest$ac_exeext conftest.$ac_ext
33722 LIBS=$ac_check_lib_save_LIBS
33724 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33725 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33726 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33727 PTHREAD_LIB="-lpthreads"
33729 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33730 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33731 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33732 echo $ECHO_N "(cached) $ECHO_C" >&6
33734 ac_check_lib_save_LIBS=$LIBS
33736 cat >conftest.$ac_ext <<_ACEOF
33739 cat confdefs.h >>conftest.$ac_ext
33740 cat >>conftest.$ac_ext <<_ACEOF
33741 /* end confdefs.h. */
33743 /* Override any GCC internal prototype to avoid an error.
33744 Use char because int might match the return type of a GCC
33745 builtin and then its argument prototype would still apply. */
33749 char pthread_create ();
33753 return pthread_create ();
33758 rm -f conftest.$ac_objext conftest$ac_exeext
33759 if { (ac_try="$ac_link"
33760 case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_link") 2>conftest.er1
33767 grep -v '^ *+' conftest.er1 >conftest.err
33769 cat conftest.err >&5
33770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771 (exit $ac_status); } &&
33772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33773 { (case "(($ac_try" in
33774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33775 *) ac_try_echo=$ac_try;;
33777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33778 (eval "$ac_try") 2>&5
33780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33781 (exit $ac_status); }; } &&
33782 { ac_try='test -s conftest$ac_exeext'
33783 { (case "(($ac_try" in
33784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785 *) ac_try_echo=$ac_try;;
33787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788 (eval "$ac_try") 2>&5
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); }; }; then
33792 ac_cv_lib_c_r_pthread_create=yes
33794 echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33797 ac_cv_lib_c_r_pthread_create=no
33800 rm -f core conftest.err conftest.$ac_objext \
33801 conftest$ac_exeext conftest.$ac_ext
33802 LIBS=$ac_check_lib_save_LIBS
33804 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33805 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33806 if test $ac_cv_lib_c_r_pthread_create = yes; then
33807 PTHREAD_LIB="-lc_r"
33809 { echo "$as_me:$LINENO: checking for pthread_create" >&5
33810 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33811 if test "${ac_cv_func_pthread_create+set}" = set; then
33812 echo $ECHO_N "(cached) $ECHO_C" >&6
33814 cat >conftest.$ac_ext <<_ACEOF
33817 cat confdefs.h >>conftest.$ac_ext
33818 cat >>conftest.$ac_ext <<_ACEOF
33819 /* end confdefs.h. */
33820 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33822 #define pthread_create innocuous_pthread_create
33824 /* System header to define __stub macros and hopefully few prototypes,
33825 which can conflict with char pthread_create (); below.
33826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33827 <limits.h> exists even on freestanding compilers. */
33830 # include <limits.h>
33832 # include <assert.h>
33835 #undef pthread_create
33837 /* Override any GCC internal prototype to avoid an error.
33838 Use char because int might match the return type of a GCC
33839 builtin and then its argument prototype would still apply. */
33843 char pthread_create ();
33844 /* The GNU C library defines this for functions which it implements
33845 to always fail with ENOSYS. Some functions are actually named
33846 something starting with __ and the normal name is an alias. */
33847 #if defined __stub_pthread_create || defined __stub___pthread_create
33854 return pthread_create ();
33859 rm -f conftest.$ac_objext conftest$ac_exeext
33860 if { (ac_try="$ac_link"
33861 case "(($ac_try" in
33862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33863 *) ac_try_echo=$ac_try;;
33865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33866 (eval "$ac_link") 2>conftest.er1
33868 grep -v '^ *+' conftest.er1 >conftest.err
33870 cat conftest.err >&5
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); } &&
33873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33874 { (case "(($ac_try" in
33875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33876 *) ac_try_echo=$ac_try;;
33878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33879 (eval "$ac_try") 2>&5
33881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33882 (exit $ac_status); }; } &&
33883 { ac_try='test -s conftest$ac_exeext'
33884 { (case "(($ac_try" in
33885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886 *) ac_try_echo=$ac_try;;
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889 (eval "$ac_try") 2>&5
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); }; }; then
33893 ac_cv_func_pthread_create=yes
33895 echo "$as_me: failed program was:" >&5
33896 sed 's/^/| /' conftest.$ac_ext >&5
33898 ac_cv_func_pthread_create=no
33901 rm -f core conftest.err conftest.$ac_objext \
33902 conftest$ac_exeext conftest.$ac_ext
33904 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33905 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33918 cat >>confdefs.h <<\_ACEOF
33924 CFLAGS=${CFLAGS--O}
33926 if test x$have_gcc = xyes ; then
33927 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33928 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33930 LDFLAGS=${LDFLAGS--O}
33931 DB_LIBS="${SQL_LFLAGS}"
33932 CPPFLAGS="$CPPFLAGS"
33960 # Finally we set appropriate distribution specific
33961 # variables and defaults
33963 # PFILES are platform specific files
33964 PFILES="platforms/Makefile"
33968 hostname=`uname -n | cut -d '.' -f 1`
33969 if test x${hostname} = x ; then
33970 hostname="localhost"
33972 case "$DISTNAME" in
33975 PSCMD="ps -e -o pid,comm"
33976 PFILES="${PFILES} \
33977 platforms/aix/Makefile"
33978 TAPEDRIVE="/dev/rmt0.1"
33982 PTHREAD_LIB="-lpthread -lexc"
33983 if test "${CC}" = "gcc" ; then
33990 TAPEDRIVE="/dev/nrmt0"
33993 DISTVER=`uname -a |awk '{print $3}'`
33994 TAPEDRIVE="/dev/nrmt0"
33995 PTHREAD_LIB="-pthread"
33996 CFLAGS="${CFLAGS} -pthread"
33997 PSCMD="ps -ax -o pid,command"
34000 PFILES="${PFILES} \
34001 platforms/bsdi/Makefile \
34002 platforms/bsdi/bacula-fd \
34003 platforms/bsdi/bacula-sd \
34004 platforms/bsdi/bacula-dir"
34005 largefile_support="yes"
34008 DISTVER=`uname -a |awk '{print $3}'`
34009 TAPEDRIVE="/dev/nrst0"
34011 WCFLAGS="-mwindows"
34012 WLDFLAGS="-mwindows"
34016 TAPEDRIVE="/dev/nst0"
34017 PSCMD="ps -e -o pid,command"
34019 PFILES="${PFILES} \
34020 platforms/darwin/Makefile"
34023 DISTVER=`cat /etc/debian_version`
34024 TAPEDRIVE="/dev/nrst0"
34025 PSCMD="ps -e -o pid,command"
34028 DISTVER=`uname -a |awk '{print $3}'`
34029 VER=`echo $DISTVER | cut -c 1`
34030 if test x$VER = x4 ; then
34031 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
34032 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34036 TAPEDRIVE="/dev/nrsa0"
34037 PSCMD="ps -ax -o pid,command"
34038 PFILES="${PFILES} \
34039 platforms/freebsd/Makefile \
34040 platforms/freebsd/bacula-fd \
34041 platforms/freebsd/bacula-sd \
34042 platforms/freebsd/bacula-dir"
34043 largefile_support="yes"
34046 PSCMD="UNIX95=1 ps -e -o pid,comm"
34047 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34049 TAPEDRIVE="/dev/rmt/0hnb"
34050 PTHREAD_LIB="-lpthread"
34051 cat >>confdefs.h <<\_ACEOF
34052 #define _INCLUDE_LONGLONG 1
34058 TAPEDRIVE="/dev/rmt/0cbn"
34059 PSCMD="ps -e -o pid,comm"
34060 PFILES="${PFILES} \
34061 platforms/irix/Makefile \
34062 platforms/irix/bacula-fd \
34063 platforms/irix/bacula-sd \
34064 platforms/irix/bacula-dir"
34067 DISTVER=`uname -a |awk '{print $3}'`
34070 TAPEDRIVE="/dev/nrst0"
34071 PSCMD="ps -ax -o pid,command"
34072 PTHREAD_LIB="-pthread"
34073 CFLAGS="${CFLAGS} -pthread"
34076 DISTVER=`uname -a |awk '{print $3}'`
34079 TAPEDRIVE="/dev/nrst0"
34080 PSCMD="ps -ax -o pid,command"
34081 PTHREAD_LIB="-pthread"
34082 CFLAGS="${CFLAGS} -pthread"
34083 PFILES="${PFILES} \
34084 platforms/openbsd/Makefile \
34085 platforms/openbsd/bacula-fd \
34086 platforms/openbsd/bacula-sd \
34087 platforms/openbsd/bacula-dir"
34090 if test -f /etc/whitebox-release ; then
34091 f=/etc/whitebox-release
34093 f=/etc/redhat-release
34095 if test `cat $f | grep release |\
34096 cut -f 3 -d ' '`x = "Enterprise"x ; then
34097 DISTVER="Enterprise "`cat $f | grep release |\
34100 DISTVER=`cat /etc/redhat-release | grep release |\
34103 TAPEDRIVE="/dev/nst0"
34104 PSCMD="ps -e -o pid,command"
34105 PFILES="${PFILES} \
34106 platforms/redhat/Makefile \
34107 platforms/redhat/bacula-fd \
34108 platforms/redhat/bacula-sd \
34109 platforms/redhat/bacula-dir \
34110 platforms/redhat/bacula.spec \
34114 DISTVER=`cat /etc/mandrake-release | grep release |\
34116 TAPEDRIVE="/dev/nst0"
34117 PSCMD="ps -e -o pid,command"
34118 PFILES="${PFILES} \
34119 platforms/mandrake/Makefile \
34120 platforms/mandrake/bacula-fd \
34121 platforms/mandrake/bacula-sd \
34122 platforms/mandrake/bacula-dir \
34123 platforms/mandrake/bacula.spec \
34127 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34128 TAPEDRIVE="/dev/nst0"
34129 PSCMD="ps -e -o pid,command"
34130 PFILES="${PFILES} \
34131 platforms/gentoo/Makefile \
34132 platforms/gentoo/bacula-init \
34133 platforms/gentoo/bacula-fd \
34134 platforms/gentoo/bacula-sd \
34135 platforms/gentoo/bacula-dir"
34138 DISTVER=`cat /etc/slackware-version`
34139 TAPEDRIVE="/dev/nst0"
34140 PSCMD="ps -e -o pid,command"
34141 PFILES="${PFILES} \
34142 platforms/slackware/Makefile \
34143 platforms/slackware/rc.bacula-fd \
34144 platforms/slackware/rc.bacula-sd \
34145 platforms/slackware/rc.bacula-dir\
34146 platforms/slackware/functions.bacula"
34150 TAPEDRIVE="/dev/rmt/0cbn"
34151 PSCMD="ps -e -o pid,comm"
34152 PFILES="${PFILES} \
34153 platforms/solaris/Makefile \
34154 platforms/solaris/bacula-fd \
34155 platforms/solaris/bacula-sd \
34156 platforms/solaris/bacula-dir"
34157 if test x$DISTVER = x5.6 ; then
34158 cat >>confdefs.h <<\_ACEOF
34159 #define HAVE_OLD_SOCKOPT 1
34163 LIBS="$LIBS -lresolv"
34166 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34168 TAPEDRIVE="/dev/nst0"
34169 PSCMD="ps -e -o pid,command"
34170 PFILES="${PFILES} \
34171 platforms/suse/Makefile \
34172 platforms/suse/bacula-fd \
34173 platforms/suse/bacula-sd \
34174 platforms/suse/bacula-dir \
34175 platforms/suse/bacula \
34176 platforms/suse/bacula.spec"
34181 TAPEDRIVE="/dev/nst0"
34182 PSCMD="ps -e -o pid,command"
34183 PFILES="${PFILES} \
34184 platforms/suse/Makefile \
34185 platforms/suse/bacula-fd \
34186 platforms/suse/bacula-sd \
34187 platforms/suse/bacula-dir"
34191 TAPEDRIVE="/dev/nst0"
34194 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34200 LIBS="$PTHREAD_LIB $LIBS"
34202 cat >>confdefs.h <<_ACEOF
34206 cat >>confdefs.h <<_ACEOF
34217 MCOMMON=./autoconf/Make.common
34220 if test "x${subsysdir}" = "x${sbindir}" ; then
34223 echo "You have set both --sbindir and --with-subsys-dir"
34224 echo " equal to: ${subsysdir} "
34225 echo "This is not permitted. Please reconfigure."
34227 echo "Aborting configuration ..."
34233 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
34235 ac_config_commands="$ac_config_commands default"
34237 cat >confcache <<\_ACEOF
34238 # This file is a shell script that caches the results of configure
34239 # tests run on this system so they can be shared between configure
34240 # scripts and configure runs, see configure's option --config-cache.
34241 # It is not useful on other systems. If it contains results you don't
34242 # want to keep, you may remove or edit it.
34244 # config.status only pays attention to the cache file if you give it
34245 # the --recheck option to rerun configure.
34247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34249 # following values.
34253 # The following way of writing the cache mishandles newlines in values,
34254 # but we know of no workaround that is simple, portable, and efficient.
34255 # So, we kill variables containing newlines.
34256 # Ultrix sh set writes to stderr and can't be redirected directly,
34257 # and sets the high bit in the cache file unless we assign to the vars.
34259 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34260 eval ac_val=\$$ac_var
34264 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34265 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34268 _ | IFS | as_nl) ;; #(
34269 *) $as_unset $ac_var ;;
34275 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34276 *${as_nl}ac_space=\ *)
34277 # `set' does not quote correctly, so add quotes (double-quote
34278 # substitution turns \\\\ into \\, and sed turns \\ into \).
34281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34284 # `set' quotes correctly as required by POSIX, so do not add quotes.
34285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34294 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34296 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34298 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34299 if test -w "$cache_file"; then
34300 test "x$cache_file" != "x/dev/null" &&
34301 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34302 echo "$as_me: updating cache $cache_file" >&6;}
34303 cat confcache >$cache_file
34305 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34306 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34312 # Let make expand exec_prefix.
34313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34315 DEFS=-DHAVE_CONFIG_H
34319 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34320 # 1. Remove the extension, and $U if already installed.
34321 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34322 ac_i=`echo "$ac_i" | sed "$ac_script"`
34323 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34324 # will be set to the directory where LIBOBJS objects are built.
34325 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34326 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34328 LIBOBJS=$ac_libobjs
34330 LTLIBOBJS=$ac_ltlibobjs
34334 : ${CONFIG_STATUS=./config.status}
34335 ac_clean_files_save=$ac_clean_files
34336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34337 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34339 cat >$CONFIG_STATUS <<_ACEOF
34341 # Generated by $as_me.
34342 # Run this file to recreate the current configuration.
34343 # Compiler output produced by configure, useful for debugging
34344 # configure, is in config.log if it exists.
34347 ac_cs_recheck=false
34349 SHELL=\${CONFIG_SHELL-$SHELL}
34352 cat >>$CONFIG_STATUS <<\_ACEOF
34353 ## --------------------- ##
34354 ## M4sh Initialization. ##
34355 ## --------------------- ##
34357 # Be Bourne compatible
34358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34362 # is contrary to our usage. Disable this feature.
34363 alias -g '${1+"$@"}'='"$@"'
34364 setopt NO_GLOB_SUBST
34366 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34368 BIN_SH=xpg4; export BIN_SH # for Tru64
34369 DUALCASE=1; export DUALCASE # for MKS sh
34373 # Avoid depending upon Character Ranges.
34374 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34377 as_cr_digits='0123456789'
34378 as_cr_alnum=$as_cr_Letters$as_cr_digits
34380 # The user is always right.
34381 if test "${PATH_SEPARATOR+set}" != set; then
34382 echo "#! /bin/sh" >conf$$.sh
34383 echo "exit 0" >>conf$$.sh
34385 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34393 # Support unset when possible.
34394 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34402 # We need space, tab and new line, in precisely that order. Quoting is
34403 # there to prevent editors from complaining about space-tab.
34404 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34405 # splitting by setting IFS to empty value.)
34410 # Find who we are. Look in the path if we contain no directory separator.
34412 *[\\/]* ) as_myself=$0 ;;
34413 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34414 for as_dir in $PATH
34417 test -z "$as_dir" && as_dir=.
34418 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34424 # We did not find ourselves, most probably we were run as `sh COMMAND'
34425 # in which case we are not to be found in the path.
34426 if test "x$as_myself" = x; then
34429 if test ! -f "$as_myself"; then
34430 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34431 { (exit 1); exit 1; }
34434 # Work around bugs in pre-3.0 UWIN ksh.
34435 for as_var in ENV MAIL MAILPATH
34436 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34444 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34445 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34446 LC_TELEPHONE LC_TIME
34448 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34449 eval $as_var=C; export $as_var
34451 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34455 # Required to use basename.
34456 if expr a : '\(a\)' >/dev/null 2>&1 &&
34457 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34464 as_basename=basename
34470 # Name of the executable.
34471 as_me=`$as_basename -- "$0" ||
34472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34473 X"$0" : 'X\(//\)$' \| \
34474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34476 sed '/^.*\/\([^/][^/]*\)\/*$/{
34495 as_lineno_1=$LINENO
34496 as_lineno_2=$LINENO
34497 test "x$as_lineno_1" != "x$as_lineno_2" &&
34498 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34500 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34501 # uniformly replaced by the line number. The first 'sed' inserts a
34502 # line-number line after each line using $LINENO; the second 'sed'
34503 # does the real work. The second script uses 'N' to pair each
34504 # line-number line with the line containing $LINENO, and appends
34505 # trailing '-' during substitution so that $LINENO is not a special
34506 # case at line end.
34507 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34508 # scripts with optimization help from Paolo Bonzini. Blame Lee
34509 # E. McMahon (1931-1989) for sed's syntax. :-)
34521 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34524 ' >$as_me.lineno &&
34525 chmod +x "$as_me.lineno" ||
34526 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34527 { (exit 1); exit 1; }; }
34529 # Don't try to exec as it changes $[0], causing all sort of problems
34530 # (the dirname of $[0] is not the place where we might find the
34531 # original and so on. Autoconf is especially sensitive to this).
34532 . "./$as_me.lineno"
34533 # Exit status is that of the last command.
34538 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34544 ECHO_C= ECHO_N= ECHO_T=
34545 case `echo -n x` in
34547 case `echo 'x\c'` in
34548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34555 if expr a : '\(a\)' >/dev/null 2>&1 &&
34556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34562 rm -f conf$$ conf$$.exe conf$$.file
34563 if test -d conf$$.dir; then
34564 rm -f conf$$.dir/conf$$.file
34570 if ln -s conf$$.file conf$$ 2>/dev/null; then
34572 # ... but there are two gotchas:
34573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34575 # In both cases, we have to default to `cp -p'.
34576 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34578 elif ln conf$$.file conf$$ 2>/dev/null; then
34583 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34584 rmdir conf$$.dir 2>/dev/null
34586 if mkdir -p . 2>/dev/null; then
34589 test -d ./-p && rmdir ./-p
34593 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34594 # systems may use methods other than mode bits to determine executability.
34595 cat >conf$$.file <<_ASEOF
34599 chmod +x conf$$.file
34600 if test -x conf$$.file >/dev/null 2>&1; then
34601 as_executable_p="test -x"
34607 # Sed expression to map a string onto a valid CPP name.
34608 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34610 # Sed expression to map a string onto a valid variable name.
34611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34616 # Save the log message, to keep $[0] and so on meaningful, and to
34617 # report actual input values of CONFIG_FILES etc. instead of their
34618 # values after options handling.
34620 This file was extended by $as_me, which was
34621 generated by GNU Autoconf 2.60. Invocation command line was
34623 CONFIG_FILES = $CONFIG_FILES
34624 CONFIG_HEADERS = $CONFIG_HEADERS
34625 CONFIG_LINKS = $CONFIG_LINKS
34626 CONFIG_COMMANDS = $CONFIG_COMMANDS
34629 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34634 cat >>$CONFIG_STATUS <<_ACEOF
34635 # Files that config.status was made for.
34636 config_files="$ac_config_files"
34637 config_headers="$ac_config_headers"
34638 config_commands="$ac_config_commands"
34642 cat >>$CONFIG_STATUS <<\_ACEOF
34644 \`$as_me' instantiates files from templates according to the
34645 current configuration.
34647 Usage: $0 [OPTIONS] [FILE]...
34649 -h, --help print this help, then exit
34650 -V, --version print version number, then exit
34651 -q, --quiet do not print progress messages
34652 -d, --debug don't remove temporary files
34653 --recheck update $as_me by reconfiguring in the same conditions
34654 --file=FILE[:TEMPLATE]
34655 instantiate the configuration file FILE
34656 --header=FILE[:TEMPLATE]
34657 instantiate the configuration header FILE
34659 Configuration files:
34662 Configuration headers:
34665 Configuration commands:
34668 Report bugs to <bug-autoconf@gnu.org>."
34671 cat >>$CONFIG_STATUS <<_ACEOF
34674 configured by $0, generated by GNU Autoconf 2.60,
34675 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34677 Copyright (C) 2006 Free Software Foundation, Inc.
34678 This config.status script is free software; the Free Software Foundation
34679 gives unlimited permission to copy, distribute and modify it."
34686 cat >>$CONFIG_STATUS <<\_ACEOF
34687 # If no file are specified by the user, then we need to provide default
34688 # value. By we need to know if files were specified by the user.
34694 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34695 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34706 # Handling of the options.
34707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34709 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34710 echo "$ac_cs_version"; exit ;;
34711 --debug | --debu | --deb | --de | --d | -d )
34713 --file | --fil | --fi | --f )
34715 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34716 ac_need_defaults=false;;
34717 --header | --heade | --head | --hea )
34719 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34720 ac_need_defaults=false;;
34722 # Conflict between --help and --header
34723 { echo "$as_me: error: ambiguous option: $1
34724 Try \`$0 --help' for more information." >&2
34725 { (exit 1); exit 1; }; };;
34726 --help | --hel | -h )
34727 echo "$ac_cs_usage"; exit ;;
34728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34729 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34732 # This is an error.
34733 -*) { echo "$as_me: error: unrecognized option: $1
34734 Try \`$0 --help' for more information." >&2
34735 { (exit 1); exit 1; }; } ;;
34737 *) ac_config_targets="$ac_config_targets $1"
34738 ac_need_defaults=false ;;
34744 ac_configure_extra_args=
34746 if $ac_cs_silent; then
34748 ac_configure_extra_args="$ac_configure_extra_args --silent"
34752 cat >>$CONFIG_STATUS <<_ACEOF
34753 if \$ac_cs_recheck; then
34754 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34755 CONFIG_SHELL=$SHELL
34756 export CONFIG_SHELL
34757 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34761 cat >>$CONFIG_STATUS <<\_ACEOF
34765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34766 ## Running $as_me. ##
34772 cat >>$CONFIG_STATUS <<_ACEOF
34776 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34777 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34779 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34780 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34781 LINGUAS="${LINGUAS-%UNSET%}"
34786 cat >>$CONFIG_STATUS <<\_ACEOF
34788 # Handling of arguments.
34789 for ac_config_target in $ac_config_targets
34791 case $ac_config_target in
34792 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34793 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34794 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34795 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34796 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34797 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34798 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34799 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34800 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34801 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34802 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34803 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34804 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34805 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34806 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34807 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34808 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34809 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34810 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34811 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34812 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34813 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34814 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34815 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34816 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34817 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
34818 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34819 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34820 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34821 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34822 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34823 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34824 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34825 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34826 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34827 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34828 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
34829 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
34830 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
34831 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
34832 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34833 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34834 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34835 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34836 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34837 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
34838 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
34839 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
34840 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
34841 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34842 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
34843 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34844 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34845 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34846 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34847 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34848 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34849 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34850 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34851 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34852 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34853 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34854 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34855 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34856 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34857 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34858 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34859 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34860 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34861 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34862 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34863 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34864 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34865 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34866 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34867 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34868 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34869 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34870 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34871 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34872 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34873 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34874 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34875 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34876 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34877 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34878 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34879 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34880 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34881 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34882 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34883 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34884 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34885 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34886 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34887 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34888 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34889 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34890 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34891 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34892 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34893 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34894 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34895 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34896 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34897 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34899 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34900 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34901 { (exit 1); exit 1; }; };;
34906 # If the user did not use the arguments to specify the items to instantiate,
34907 # then the envvar interface is used. Set only those that are not.
34908 # We use the long form for the default assignment because of an extremely
34909 # bizarre bug on SunOS 4.1.3.
34910 if $ac_need_defaults; then
34911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34912 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34916 # Have a temporary directory for convenience. Make it in the build tree
34917 # simply because there is no reason against having it here, and in addition,
34918 # creating and moving files from /tmp can sometimes cause problems.
34919 # Hook for its removal unless debugging.
34920 # Note that there is a small window in which the directory will not be cleaned:
34921 # after its creation but before its name has been assigned to `$tmp'.
34925 trap 'exit_status=$?
34926 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34928 trap '{ (exit 1); exit 1; }' 1 2 13 15
34930 # Create a (secure) tmp directory for tmp files.
34933 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34934 test -n "$tmp" && test -d "$tmp"
34937 tmp=./conf$$-$RANDOM
34938 (umask 077 && mkdir "$tmp")
34941 echo "$me: cannot create a temporary directory in ." >&2
34942 { (exit 1); exit 1; }
34946 # Set up the sed scripts for CONFIG_FILES section.
34949 # No need to generate the scripts if there are no CONFIG_FILES.
34950 # This happens for instance when ./config.status config.h
34951 if test -n "$CONFIG_FILES"; then
34955 # Create sed commands to just substitute file output variables.
34957 # Remaining file output variables are in a fragment that also has non-file
34963 for ac_last_try in false false false false false :; do
34964 cat >conf$$subs.sed <<_ACEOF
34965 SHELL!$SHELL$ac_delim
34966 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34967 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34968 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34969 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34970 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34971 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34972 exec_prefix!$exec_prefix$ac_delim
34973 prefix!$prefix$ac_delim
34974 program_transform_name!$program_transform_name$ac_delim
34975 bindir!$bindir$ac_delim
34976 sbindir!$sbindir$ac_delim
34977 libexecdir!$libexecdir$ac_delim
34978 datarootdir!$datarootdir$ac_delim
34979 datadir!$datadir$ac_delim
34980 sysconfdir!$sysconfdir$ac_delim
34981 sharedstatedir!$sharedstatedir$ac_delim
34982 localstatedir!$localstatedir$ac_delim
34983 includedir!$includedir$ac_delim
34984 oldincludedir!$oldincludedir$ac_delim
34985 docdir!$docdir$ac_delim
34986 infodir!$infodir$ac_delim
34987 htmldir!$htmldir$ac_delim
34988 dvidir!$dvidir$ac_delim
34989 pdfdir!$pdfdir$ac_delim
34990 psdir!$psdir$ac_delim
34991 libdir!$libdir$ac_delim
34992 localedir!$localedir$ac_delim
34993 mandir!$mandir$ac_delim
34994 DEFS!$DEFS$ac_delim
34995 ECHO_C!$ECHO_C$ac_delim
34996 ECHO_N!$ECHO_N$ac_delim
34997 ECHO_T!$ECHO_T$ac_delim
34998 LIBS!$LIBS$ac_delim
34999 build_alias!$build_alias$ac_delim
35000 host_alias!$host_alias$ac_delim
35001 target_alias!$target_alias$ac_delim
35002 BUILD_DIR!$BUILD_DIR$ac_delim
35003 TOP_DIR!$TOP_DIR$ac_delim
35004 TRUEPRG!$TRUEPRG$ac_delim
35005 FALSEPRG!$FALSEPRG$ac_delim
35006 VERSION!$VERSION$ac_delim
35007 DATE!$DATE$ac_delim
35008 LSMDATE!$LSMDATE$ac_delim
35010 CFLAGS!$CFLAGS$ac_delim
35011 LDFLAGS!$LDFLAGS$ac_delim
35012 CPPFLAGS!$CPPFLAGS$ac_delim
35013 ac_ct_CC!$ac_ct_CC$ac_delim
35014 EXEEXT!$EXEEXT$ac_delim
35015 OBJEXT!$OBJEXT$ac_delim
35017 CXXFLAGS!$CXXFLAGS$ac_delim
35018 ac_ct_CXX!$ac_ct_CXX$ac_delim
35020 GREP!$GREP$ac_delim
35021 EGREP!$EGREP$ac_delim
35022 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35023 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35024 INSTALL_DATA!$INSTALL_DATA$ac_delim
35025 RANLIB!$RANLIB$ac_delim
35030 ECHO!$ECHO$ac_delim
35034 OPENSSL!$OPENSSL$ac_delim
35037 MKISOFS!$MKISOFS$ac_delim
35038 PYTHON!$PYTHON$ac_delim
35039 GROWISOFS!$GROWISOFS$ac_delim
35040 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35041 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35042 PKGCONFIG!$PKGCONFIG$ac_delim
35043 WXCONFIG!$WXCONFIG$ac_delim
35044 WXFLAGS!$WXFLAGS$ac_delim
35045 CDRECORD!$CDRECORD$ac_delim
35046 PIDOF!$PIDOF$ac_delim
35048 ARFLAGS!$ARFLAGS$ac_delim
35049 MAKE_SHELL!$MAKE_SHELL$ac_delim
35050 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35051 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35052 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35053 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35054 build!$build$ac_delim
35055 build_cpu!$build_cpu$ac_delim
35056 build_vendor!$build_vendor$ac_delim
35057 build_os!$build_os$ac_delim
35058 host!$host$ac_delim
35061 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35063 elif $ac_last_try; then
35064 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35065 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35066 { (exit 1); exit 1; }; }
35068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35072 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35073 if test -n "$ac_eof"; then
35074 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35075 ac_eof=`expr $ac_eof + 1`
35078 cat >>$CONFIG_STATUS <<_ACEOF
35079 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35081 /^[ ]*@MCOMMON@[ ]*$/{
35087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35088 s/^/s,@/; s/!/@,|#_!!_#|/
35091 s/'"$ac_delim"'$/,g/; t
35093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35094 ' >>$CONFIG_STATUS <conf$$subs.sed
35095 rm -f conf$$subs.sed
35096 cat >>$CONFIG_STATUS <<_ACEOF
35102 for ac_last_try in false false false false false :; do
35103 cat >conf$$subs.sed <<_ACEOF
35104 host_cpu!$host_cpu$ac_delim
35105 host_vendor!$host_vendor$ac_delim
35106 host_os!$host_os$ac_delim
35107 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35108 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35109 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35110 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35111 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35112 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35113 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35114 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35115 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35116 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35117 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35118 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35119 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35120 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35121 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35122 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35123 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35124 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35125 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35126 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35127 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35128 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35129 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35130 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35131 SET_MAKE!$SET_MAKE$ac_delim
35132 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35133 USE_NLS!$USE_NLS$ac_delim
35134 MSGFMT!$MSGFMT$ac_delim
35135 GMSGFMT!$GMSGFMT$ac_delim
35136 XGETTEXT!$XGETTEXT$ac_delim
35137 MSGMERGE!$MSGMERGE$ac_delim
35138 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35139 LIBICONV!$LIBICONV$ac_delim
35140 LTLIBICONV!$LTLIBICONV$ac_delim
35141 INTLLIBS!$INTLLIBS$ac_delim
35142 LIBINTL!$LIBINTL$ac_delim
35143 LTLIBINTL!$LTLIBINTL$ac_delim
35144 POSUB!$POSUB$ac_delim
35145 GLIBC2!$GLIBC2$ac_delim
35146 ALLOCA!$ALLOCA$ac_delim
35147 GLIBC21!$GLIBC21$ac_delim
35148 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35149 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35150 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35151 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35152 INTLBISON!$INTLBISON$ac_delim
35153 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35154 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35155 CATOBJEXT!$CATOBJEXT$ac_delim
35156 DATADIRNAME!$DATADIRNAME$ac_delim
35157 INSTOBJEXT!$INSTOBJEXT$ac_delim
35158 GENCAT!$GENCAT$ac_delim
35159 INTLOBJS!$INTLOBJS$ac_delim
35160 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35161 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35162 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35163 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35164 GNOME_LIBS!$GNOME_LIBS$ac_delim
35165 GNOME_DIR!$GNOME_DIR$ac_delim
35166 BAT_DIR!$BAT_DIR$ac_delim
35167 QWT_INC!$QWT_INC$ac_delim
35168 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
35169 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35170 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35171 WX_DIR!$WX_DIR$ac_delim
35172 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35173 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35174 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35175 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35176 STATIC_FD!$STATIC_FD$ac_delim
35177 STATIC_SD!$STATIC_SD$ac_delim
35178 STATIC_DIR!$STATIC_DIR$ac_delim
35179 STATIC_CONS!$STATIC_CONS$ac_delim
35180 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35181 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35182 ALL_DIRS!$ALL_DIRS$ac_delim
35183 DIRD_DIR!$DIRD_DIR$ac_delim
35184 DIR_TOOLS!$DIR_TOOLS$ac_delim
35185 STORED_DIR!$STORED_DIR$ac_delim
35186 CONS_INC!$CONS_INC$ac_delim
35187 CONS_OBJ!$CONS_OBJ$ac_delim
35188 CONS_SRC!$CONS_SRC$ac_delim
35189 CONS_LIBS!$CONS_LIBS$ac_delim
35190 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35191 READLINE_SRC!$READLINE_SRC$ac_delim
35192 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35193 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35194 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35195 OPENSSL_INC!$OPENSSL_INC$ac_delim
35196 working_dir!$working_dir$ac_delim
35197 scriptdir!$scriptdir$ac_delim
35198 dump_email!$dump_email$ac_delim
35199 job_email!$job_email$ac_delim
35200 smtp_host!$smtp_host$ac_delim
35203 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35205 elif $ac_last_try; then
35206 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35207 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35208 { (exit 1); exit 1; }; }
35210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35214 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35215 if test -n "$ac_eof"; then
35216 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35217 ac_eof=`expr $ac_eof + 1`
35220 cat >>$CONFIG_STATUS <<_ACEOF
35221 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35225 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35226 s/^/s,@/; s/!/@,|#_!!_#|/
35229 s/'"$ac_delim"'$/,g/; t
35231 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35232 ' >>$CONFIG_STATUS <conf$$subs.sed
35233 rm -f conf$$subs.sed
35234 cat >>$CONFIG_STATUS <<_ACEOF
35240 for ac_last_try in false false false false false :; do
35241 cat >conf$$subs.sed <<_ACEOF
35242 piddir!$piddir$ac_delim
35243 subsysdir!$subsysdir$ac_delim
35244 baseport!$baseport$ac_delim
35245 dir_port!$dir_port$ac_delim
35246 fd_port!$fd_port$ac_delim
35247 sd_port!$sd_port$ac_delim
35248 dir_password!$dir_password$ac_delim
35249 fd_password!$fd_password$ac_delim
35250 sd_password!$sd_password$ac_delim
35251 mon_dir_password!$mon_dir_password$ac_delim
35252 mon_fd_password!$mon_fd_password$ac_delim
35253 mon_sd_password!$mon_sd_password$ac_delim
35254 db_name!$db_name$ac_delim
35255 db_user!$db_user$ac_delim
35256 dir_user!$dir_user$ac_delim
35257 dir_group!$dir_group$ac_delim
35258 sd_user!$sd_user$ac_delim
35259 sd_group!$sd_group$ac_delim
35260 fd_user!$fd_user$ac_delim
35261 fd_group!$fd_group$ac_delim
35262 SBINPERM!$SBINPERM$ac_delim
35263 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35264 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35265 SQL_BINDIR!$SQL_BINDIR$ac_delim
35266 cats!$cats$ac_delim
35267 DB_TYPE!$DB_TYPE$ac_delim
35268 GETCONF!$GETCONF$ac_delim
35269 XMKMF!$XMKMF$ac_delim
35270 X_CFLAGS!$X_CFLAGS$ac_delim
35271 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35272 X_LIBS!$X_LIBS$ac_delim
35273 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35274 LIBOBJS!$LIBOBJS$ac_delim
35275 FDLIBS!$FDLIBS$ac_delim
35276 DEBUG!$DEBUG$ac_delim
35277 DINCLUDE!$DINCLUDE$ac_delim
35278 DLIB!$DLIB$ac_delim
35279 DB_LIBS!$DB_LIBS$ac_delim
35280 WCFLAGS!$WCFLAGS$ac_delim
35281 WLDFLAGS!$WLDFLAGS$ac_delim
35282 WRAPLIBS!$WRAPLIBS$ac_delim
35283 OBJLIST!$OBJLIST$ac_delim
35284 hostname!$hostname$ac_delim
35285 TAPEDRIVE!$TAPEDRIVE$ac_delim
35286 PSCMD!$PSCMD$ac_delim
35287 WIN32!$WIN32$ac_delim
35288 MACOSX!$MACOSX$ac_delim
35289 DISTNAME!$DISTNAME$ac_delim
35290 DISTVER!$DISTVER$ac_delim
35291 LTLIBOBJS!$LTLIBOBJS$ac_delim
35294 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
35296 elif $ac_last_try; then
35297 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35298 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35299 { (exit 1); exit 1; }; }
35301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35305 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35306 if test -n "$ac_eof"; then
35307 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35308 ac_eof=`expr $ac_eof + 1`
35311 cat >>$CONFIG_STATUS <<_ACEOF
35312 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35316 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35317 s/^/s,@/; s/!/@,|#_!!_#|/
35320 s/'"$ac_delim"'$/,g/; t
35322 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35323 ' >>$CONFIG_STATUS <conf$$subs.sed
35324 rm -f conf$$subs.sed
35325 cat >>$CONFIG_STATUS <<_ACEOF
35332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35334 # trailing colons and then remove the whole line if VPATH becomes empty
35335 # (actually we leave an empty line to preserve line numbers).
35336 if test "x$srcdir" = x.; then
35337 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35338 s/:*\$(srcdir):*/:/
35339 s/:*\${srcdir}:*/:/
35341 s/^\([^=]*=[ ]*\):*/\1/
35347 cat >>$CONFIG_STATUS <<\_ACEOF
35348 fi # test -n "$CONFIG_FILES"
35351 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35354 :[FHLC]) ac_mode=$ac_tag; continue;;
35356 case $ac_mode$ac_tag in
35358 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35359 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35360 { (exit 1); exit 1; }; };;
35361 :[FH]-) ac_tag=-:-;;
35362 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35379 -) ac_f="$tmp/stdin";;
35380 *) # Look for the file first in the build tree, then in the source tree
35381 # (if the path is not absolute). The absolute path cannot be DOS-style,
35382 # because $ac_f cannot contain `:'.
35386 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35388 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35389 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35390 { (exit 1); exit 1; }; };;
35392 ac_file_inputs="$ac_file_inputs $ac_f"
35395 # Let's still pretend it is `configure' which instantiates (i.e., don't
35396 # use $as_me), people would be surprised to read:
35397 # /* config.h. Generated by config.status. */
35398 configure_input="Generated from "`IFS=:
35399 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35400 if test x"$ac_file" != x-; then
35401 configure_input="$ac_file. $configure_input"
35402 { echo "$as_me:$LINENO: creating $ac_file" >&5
35403 echo "$as_me: creating $ac_file" >&6;}
35407 *:-:* | *:-) cat >"$tmp/stdin";;
35412 ac_dir=`$as_dirname -- "$ac_file" ||
35413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35414 X"$ac_file" : 'X\(//\)[^/]' \| \
35415 X"$ac_file" : 'X\(//\)$' \| \
35416 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35422 /^X\(\/\/\)[^/].*/{
35437 -*) as_dir=./$as_dir;;
35439 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35443 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35444 *) as_qdir=$as_dir;;
35446 as_dirs="'$as_qdir' $as_dirs"
35447 as_dir=`$as_dirname -- "$as_dir" ||
35448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35449 X"$as_dir" : 'X\(//\)[^/]' \| \
35450 X"$as_dir" : 'X\(//\)$' \| \
35451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35457 /^X\(\/\/\)[^/].*/{
35470 test -d "$as_dir" && break
35472 test -z "$as_dirs" || eval "mkdir $as_dirs"
35473 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35474 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35475 { (exit 1); exit 1; }; }; }
35479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35481 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35482 # A ".." for each directory in $ac_dir_suffix.
35483 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35484 case $ac_top_builddir_sub in
35485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35489 ac_abs_top_builddir=$ac_pwd
35490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35491 # for backward compatibility:
35492 ac_top_builddir=$ac_top_build_prefix
35495 .) # We are building in place.
35497 ac_top_srcdir=$ac_top_builddir_sub
35498 ac_abs_top_srcdir=$ac_pwd ;;
35499 [\\/]* | ?:[\\/]* ) # Absolute name.
35500 ac_srcdir=$srcdir$ac_dir_suffix;
35501 ac_top_srcdir=$srcdir
35502 ac_abs_top_srcdir=$srcdir ;;
35503 *) # Relative name.
35504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35505 ac_top_srcdir=$ac_top_build_prefix$srcdir
35506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35518 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35519 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35523 cat >>$CONFIG_STATUS <<\_ACEOF
35524 # If the template does not know about datarootdir, expand it.
35525 # FIXME: This hack should be removed a few years after 2.60.
35526 ac_datarootdir_hack=; ac_datarootdir_seen=
35528 case `sed -n '/datarootdir/ {
35537 ' $ac_file_inputs` in
35538 *datarootdir*) ac_datarootdir_seen=yes;;
35539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35540 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35541 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35543 cat >>$CONFIG_STATUS <<_ACEOF
35544 ac_datarootdir_hack='
35545 s&@datadir@&$datadir&g
35546 s&@docdir@&$docdir&g
35547 s&@infodir@&$infodir&g
35548 s&@localedir@&$localedir&g
35549 s&@mandir@&$mandir&g
35550 s&\\\${datarootdir}&$datarootdir&g' ;;
35554 # Neutralize VPATH when `$srcdir' = `.'.
35555 # Shell code in configure.ac might set extrasub.
35556 # FIXME: do we really want to maintain this feature?
35557 cat >>$CONFIG_STATUS <<_ACEOF
35561 cat >>$CONFIG_STATUS <<\_ACEOF
35563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35564 s&@configure_input@&$configure_input&;t t
35565 s&@top_builddir@&$ac_top_builddir_sub&;t t
35566 s&@srcdir@&$ac_srcdir&;t t
35567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35568 s&@top_srcdir@&$ac_top_srcdir&;t t
35569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35570 s&@builddir@&$ac_builddir&;t t
35571 s&@abs_builddir@&$ac_abs_builddir&;t t
35572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35573 s&@INSTALL@&$ac_INSTALL&;t t
35574 $ac_datarootdir_hack
35575 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35577 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35578 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35579 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35580 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35581 which seems to be undefined. Please make sure it is defined." >&5
35582 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35583 which seems to be undefined. Please make sure it is defined." >&2;}
35587 -) cat "$tmp/out"; rm -f "$tmp/out";;
35588 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35597 # Transform confdefs.h into a sed script `conftest.defines', that
35598 # substitutes the proper values into config.h.in to produce config.h.
35599 rm -f conftest.defines conftest.tail
35600 # First, append a space to every undef/define line, to ease matching.
35601 echo 's/$/ /' >conftest.defines
35602 # Then, protect against being on the right side of a sed subst, or in
35603 # an unquoted here document, in config.status. If some macros were
35604 # called several times there might be several #defines for the same
35605 # symbol, which is useless. But do not sort them, since the last
35606 # AC_DEFINE must be honored.
35607 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35608 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35609 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35610 # PARAMS is the parameter list in the macro definition--in most cases, it's
35611 # just an empty string.
35612 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35613 ac_dB='\\)[ (].*,\\1define\\2'
35621 s/^[ ]*#[ ]*define[ ][ ]*//
35626 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35627 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35628 ' >>conftest.defines
35630 # Remove the space that was appended to ease matching.
35631 # Then replace #undef with comments. This is necessary, for
35632 # example, in the case of _POSIX_SOURCE, which is predefined and required
35633 # on some systems where configure will not decide to define it.
35634 # (The regexp can be short, since the line contains either #define or #undef.)
35636 s,^[ #]*u.*,/* & */,' >>conftest.defines
35638 # Break up conftest.defines:
35639 ac_max_sed_lines=50
35641 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35642 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35643 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35645 ac_in='$ac_file_inputs'
35646 ac_out='"$tmp/out1"'
35647 ac_nxt='"$tmp/out2"'
35651 # Write a here document:
35652 cat >>$CONFIG_STATUS <<_ACEOF
35653 # First, check the format of the line:
35654 cat >"\$tmp/defines.sed" <<\\CEOF
35655 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35656 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35660 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35662 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35663 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35664 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35665 grep . conftest.tail >/dev/null || break
35666 rm -f conftest.defines
35667 mv conftest.tail conftest.defines
35669 rm -f conftest.defines conftest.tail
35671 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35672 cat >>$CONFIG_STATUS <<\_ACEOF
35673 if test x"$ac_file" != x-; then
35674 echo "/* $configure_input */" >"$tmp/config.h"
35675 cat "$ac_result" >>"$tmp/config.h"
35676 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35677 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35678 echo "$as_me: $ac_file is unchanged" >&6;}
35681 mv "$tmp/config.h" $ac_file
35684 echo "/* $configure_input */"
35690 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35691 echo "$as_me: executing $ac_file commands" >&6;}
35696 case $ac_file$ac_mode in
35698 for ac_file in $CONFIG_FILES; do
35699 # Support "outfile[:infile[:infile...]]"
35701 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35703 # PO directories have a Makefile.in generated from Makefile.in.in.
35704 case "$ac_file" in */Makefile.in)
35705 # Adjust a relative srcdir.
35706 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35707 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35708 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35709 # In autoconf-2.13 it is called $ac_given_srcdir.
35710 # In autoconf-2.50 it is called $srcdir.
35711 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35712 case "$ac_given_srcdir" in
35713 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35714 /*) top_srcdir="$ac_given_srcdir" ;;
35715 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35717 # Treat a directory as a PO directory if and only if it has a
35718 # POTFILES.in file. This allows packages to have multiple PO
35719 # directories under different names or in different locations.
35720 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35721 rm -f "$ac_dir/POTFILES"
35722 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35723 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35724 POMAKEFILEDEPS="POTFILES.in"
35725 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35726 # on $ac_dir but don't depend on user-specified configuration
35728 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35729 # The LINGUAS file contains the set of available languages.
35730 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35731 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35733 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35734 # Hide the ALL_LINGUAS assigment from automake.
35735 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35736 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35738 # The set of available languages was given in configure.in.
35739 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35742 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35743 # Compute UPDATEPOFILES
35744 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35745 # Compute DUMMYPOFILES
35746 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35748 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35749 case "$ac_given_srcdir" in
35751 *) srcdirpre='$(srcdir)/' ;;
35757 for lang in $ALL_LINGUAS; do
35758 POFILES="$POFILES $srcdirpre$lang.po"
35759 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35760 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35761 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35763 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35764 # environment variable.
35766 if test -n "$ALL_LINGUAS"; then
35767 for presentlang in $ALL_LINGUAS; do
35769 if test "%UNSET%" != "$LINGUAS"; then
35770 desiredlanguages="$LINGUAS"
35772 desiredlanguages="$ALL_LINGUAS"
35774 for desiredlang in $desiredlanguages; do
35775 # Use the presentlang catalog if desiredlang is
35776 # a. equal to presentlang, or
35777 # b. a variant of presentlang (because in this case,
35778 # presentlang can be used as a fallback for messages
35779 # which are not translated in the desiredlang catalog).
35780 case "$desiredlang" in
35781 "$presentlang"*) useit=yes;;
35784 if test $useit = yes; then
35785 INST_LINGUAS="$INST_LINGUAS $presentlang"
35790 if test -n "$INST_LINGUAS"; then
35791 for lang in $INST_LINGUAS; do
35792 CATALOGS="$CATALOGS $lang.gmo"
35795 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35796 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"
35797 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35798 if test -f "$f"; then
35800 *.orig | *.bak | *~) ;;
35801 *) cat "$f" >> "$ac_dir/Makefile" ;;
35809 "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35816 { (exit 0); exit 0; }
35818 chmod +x $CONFIG_STATUS
35819 ac_clean_files=$ac_clean_files_save
35822 # configure is writing to config.log, and then calls config.status.
35823 # config.status does its own redirection, appending to config.log.
35824 # Unfortunately, on DOS this fails, as config.log is still kept open
35825 # by configure, so config.status won't be able to write to it; its
35826 # output is simply discarded. So we exec the FD to /dev/null,
35827 # effectively closing config.log, so it can be properly (re)opened and
35828 # appended to by config.status. When coming back to configure, we
35829 # need to make the FD available again.
35830 if test "$no_create" != yes; then
35832 ac_config_status_args=
35833 test "$silent" = yes &&
35834 ac_config_status_args="$ac_config_status_args --quiet"
35836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35839 # would make configure fail if this is the last instruction.
35840 $ac_cs_success || { (exit 1); exit 1; }
35845 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35846 chmod 755 dvd-handler dvd-simulator
35847 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35852 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
35853 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
35855 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
35856 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
35858 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
35859 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
35861 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
35862 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
35864 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
35865 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
35867 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
35868 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
35870 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35871 chmod 755 $c/sqlite
35874 chmod 755 src/win32/build-depkgs-mingw32
35876 if test "${support_bat}" = "yes" ; then
35879 chmod 755 install_conf_file build-depkgs-qt-console
35880 echo "Creating bat Makefile"
35885 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35886 largefile_support="yes"
35890 # A whole lot of hand springs to get the compiler version.
35891 # This is because gcc changed the output in version 3.0
35893 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35894 if test "x${CCVERSION}" = "x" ; then
35895 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35897 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35898 if test x"${CXXVERSION}" = x ; then
35899 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35902 if test "x${subsysdir}" = "x${sbindir}" ; then
35905 echo "You have set --sbindir and --with-subsys-dir"
35906 echo " both equal to: ${subsysdir} "
35907 echo " This is not permitted. Please reconfigure."
35909 echo "Aborting configuration ..."
35915 if test "x${db_type}" = "xInternal" ; then
35918 echo "You have not specified either --enable-client-only or one of the"
35919 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35920 echo " This is not permitted. Please reconfigure."
35922 echo "Aborting the configuration ..."
35929 Configuration on `date`:
35931 Host: $host -- ${DISTNAME} ${DISTVER}
35932 Bacula version: ${VERSION} (${DATE})
35933 Source code location: ${srcdir}
35934 Install binaries: ${sbindir}
35935 Install config files: ${sysconfdir}
35936 Scripts directory: ${scriptdir}
35937 Working directory: ${working_dir}
35938 PID directory: ${piddir}
35939 Subsys directory: ${subsysdir}
35940 Man directory: ${mandir}
35941 Data directory: ${datadir}
35942 C Compiler: ${CC} ${CCVERSION}
35943 C++ Compiler: ${CXX} ${CXXVERSION}
35944 Compiler flags: ${WCFLAGS} ${CFLAGS}
35945 Linker flags: ${WLDFLAGS} ${LDFLAGS}
35947 Statically Linked Tools: ${support_static_tools}
35948 Statically Linked FD: ${support_static_fd}
35949 Statically Linked SD: ${support_static_sd}
35950 Statically Linked DIR: ${support_static_dir}
35951 Statically Linked CONS: ${support_static_cons}
35952 Database type: ${db_type}
35953 Database lib: ${DB_LIBS}
35954 Database name: ${db_name}
35955 Database user: ${db_user}
35957 Job Output Email: ${job_email}
35958 Traceback Email: ${dump_email}
35959 SMTP Host Address: ${smtp_host}
35961 Director Port: ${dir_port}
35962 File daemon Port: ${fd_port}
35963 Storage daemon Port: ${sd_port}
35965 Director User: ${dir_user}
35966 Director Group: ${dir_group}
35967 Storage Daemon User: ${sd_user}
35968 Storage DaemonGroup: ${sd_group}
35969 File Daemon User: ${fd_user}
35970 File Daemon Group: ${fd_group}
35972 SQL binaries Directory ${SQL_BINDIR}
35974 Large file support: $largefile_support
35975 Bacula conio support: ${got_conio} ${CONS_LIBS}
35976 readline support: ${got_readline} ${PRTREADLINE_SRC}
35977 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
35978 TLS support: ${support_tls}
35979 Encryption support: ${support_crypto}
35980 ZLIB support: ${have_zlib}
35981 enable-smartalloc: ${support_smartalloc}
35982 enable-bat: ${support_bat}
35983 enable-gnome: ${support_gnome} ${gnome_version}
35984 enable-bwx-console: ${support_wx_console} ${wx_version}
35985 enable-tray-monitor: ${support_tray_monitor}
35986 client-only: ${build_client_only}
35987 build-dird: ${build_dird}
35988 build-stored: ${build_stored}
35989 ACL support: ${have_acl}
35990 Python support: ${support_python} ${PYTHON_LIBS}
35991 Batch insert enabled: ${support_batch_insert}