2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
726 HAVE_FREEBSD_OS_FALSE
730 HAVE_OPENBSD_OS_FALSE
761 BUILD_INCLUDED_LIBINTL
768 INTL_LIBTOOL_SUFFIX_PREFIX
780 TRAY_MONITOR_CPPFLAGS
862 ac_subst_files='MCOMMON'
863 ac_precious_vars='build_alias
880 # Initialize some variables set by options.
882 ac_init_version=false
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
892 program_transform_name=s,x,x,
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\$ac_option
938 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 # Accept the important Cygnus configure options, so we can diagnose typos.
944 case $ac_dashdash$ac_option in
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
966 cache_file=config.cache ;;
968 -datadir | --datadir | --datadi | --datad)
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
980 -disable-* | --disable-*)
981 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
984 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
985 { (exit 1); exit 1; }; }
986 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
987 eval enable_$ac_feature=no ;;
989 -docdir | --docdir | --docdi | --doc | --do)
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 -enable-* | --enable-*)
1000 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006 eval enable_$ac_feature=\$ac_optarg ;;
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
1015 exec_prefix=$ac_optarg ;;
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
1028 -host | --host | --hos | --ho)
1029 ac_prev=host_alias ;;
1030 -host=* | --host=* | --hos=* | --ho=*)
1031 host_alias=$ac_optarg ;;
1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 htmldir=$ac_optarg ;;
1039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
1044 includedir=$ac_optarg ;;
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049 infodir=$ac_optarg ;;
1051 -libdir | --libdir | --libdi | --libd)
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054 libdir=$ac_optarg ;;
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
1061 libexecdir=$ac_optarg ;;
1063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1068 -localstatedir | --localstatedir | --localstatedi | --localstated \
1069 | --localstate | --localstat | --localsta | --localst | --locals)
1070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073 localstatedir=$ac_optarg ;;
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078 mandir=$ac_optarg ;;
1080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085 | --no-cr | --no-c | -n)
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099 oldincludedir=$ac_optarg ;;
1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104 prefix=$ac_optarg ;;
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111 program_prefix=$ac_optarg ;;
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118 program_suffix=$ac_optarg ;;
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
1135 program_transform_name=$ac_optarg ;;
1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1142 -psdir | --psdir | --psdi | --psd | --ps)
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 sbindir=$ac_optarg ;;
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 sharedstatedir=$ac_optarg ;;
1168 -site | --site | --sit)
1170 -site=* | --site=* | --sit=*)
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1197 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 { echo "$as_me: error: invalid package name: $ac_package" >&2
1201 { (exit 1); exit 1; }; }
1202 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1203 eval with_$ac_package=\$ac_optarg ;;
1205 -without-* | --without-*)
1206 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 { echo "$as_me: error: invalid package name: $ac_package" >&2
1210 { (exit 1); exit 1; }; }
1211 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1212 eval with_$ac_package=no ;;
1215 # Obsolete; use --with-x.
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) { echo "$as_me: error: unrecognized option: $ac_option
1233 Try \`$0 --help' for more information." >&2
1234 { (exit 1); exit 1; }; }
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1241 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1242 { (exit 1); exit 1; }; }
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 { echo "$as_me: error: missing argument to $ac_option" >&2
1260 { (exit 1); exit 1; }; }
1263 # Be sure to have absolute directory names.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1275 { (exit 1); exit 1; }; }
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299 test "$silent" = yes && exec 6>/dev/null
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 { echo "$as_me: error: Working directory cannot be determined" >&2
1306 { (exit 1); exit 1; }; }
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 { echo "$as_me: error: pwd does not report name of working directory" >&2
1309 { (exit 1); exit 1; }; }
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$0" ||
1317 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$0" : 'X\(//\)[^/]' \| \
1319 X"$0" : 'X\(//\)$' \| \
1320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1349 { (exit 1); exit 1; }; }
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1354 { (exit 1); exit 1; }; }
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 for ac_var in $ac_precious_vars; do
1367 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_${ac_var}_value=\$${ac_var}
1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 # Report the --help message.
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1380 \`configure' configures this package to adapt to many kinds of systems.
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1387 Defaults for the options are specified in brackets.
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1411 For better control, use the options below.
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1438 --x-includes=DIR X include files are in DIR
1439 --x-libraries=DIR X library files are in DIR
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 if test -n "$ac_init_help"; then
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --disable-nls do not use Native Language Support
1455 --disable-rpath do not hardcode runtime library paths
1456 --enable-gnome enable build of bgnome-console GUI disabled
1457 --enable-bat enable build of bat Qt4 GUI disabled
1458 --enable-bwx-console enable build of wxWidgets console disabled
1459 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1460 --enable-smartalloc enable smartalloc debugging support disabled
1461 --enable-static-tools enable static tape tools disabled
1462 --enable-static-fd enable static File daemon disabled
1463 --enable-static-sd enable static Storage daemon disabled
1464 --enable-static-dir enable static Director disabled
1465 --enable-static-cons enable static Console disabled
1466 --enable-client-only build client (File daemon) only disabled
1467 --enable-build-dird enable building of dird (Director) enabled
1468 --enable-build-stored enable building of stored (Storage daemon) enabled
1469 --disable-conio disable conio support enabled
1471 --enable-ipv6 enable ipv6 support enabled
1473 --disable-readline disable readline support disable
1475 --enable-batch-insert enable the DB batch insert code disabled
1476 --disable-largefile omit support for large files
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-gnu-ld assume the C compiler uses GNU ld default=no
1482 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1483 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1484 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1485 --without-libintl-prefix don't search for libintl in includedir and libdir
1486 --with-included-gettext use the GNU gettext library included here
1487 --with-qwt[=DIR] specify qwt library directory
1488 --with-readline[=DIR] specify readline library directory
1490 --with-python[=DIR] Include Python support. DIR is the Python base
1491 install directory, default is to search through
1492 a number of common places for the Python files.
1493 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1494 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1495 --with-working-dir=PATH specify path of Bacula working directory
1496 --with-archivedir=PATH specify path of SD archive directory
1497 --with-scriptdir=PATH specify path of Bacula scripts directory
1498 --with-dump-email=EMAIL dump email address
1499 --with-job-email=EMAIL job output email address
1500 --with-smtp-host=HOST SMTP mail host address
1501 --with-pid-dir=PATH specify location of Bacula pid files
1502 --with-subsys-dir=PATH specify location of Bacula subsys file
1503 --with-baseport=PORT specify base port address for daemons
1504 --with-dir-password=PASSWORD specify Director's password
1505 --with-fd-password=PASSWORD specify Client's password
1506 --with-sd-password=PASSWORD specify Storage daemon's password
1507 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1508 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1509 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1510 --with-db-name=DBNAME specify database name (default bacula)
1511 --with-db-user=UNAME specify database user (default bacula)
1512 --with-dir-user=USER specify user for Director daemon
1513 --with-dir-group=GROUP specify group for Director daemon
1514 --with-sd-user=USER specify user for Storage daemon
1515 --with-sd-group=GROUP specify group for Storage daemon
1516 --with-fd-user=USER specify user for File daemon
1517 --with-fd-group=GROUP specify group for File daemon
1518 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1519 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1520 base install directory, defaults to /usr/local/pgsql
1522 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1523 install directory, default is to search through
1524 a number of common places for the MySQL files.
1526 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1527 install directory, default is to search through
1528 a number of common places for the MySQL files.
1530 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1531 install directory, default is to search through
1532 a number of common places for the SQLite3 files.
1534 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1535 install directory, default is to search through
1536 a number of common places for the SQLite files.
1538 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1539 install directory, default is to search through
1540 a number of common places for the DBI files.
1542 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1543 the one DBI driver like Mysql, Postgresql, others.
1544 Default is to not configure any driver.
1545 --with-x use the X Window System
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
1558 WXCONFIG wx-config command. On some systems, you must set it to
1559 wx-config-2.6 to use wxWidgets 2.6.
1560 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1561 XMKMF Path to xmkmf, Makefile generator for X Window System
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" || continue
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1593 .) # We are building in place.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1617 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1627 generated by GNU Autoconf 2.61
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1640 It was created by $as_me, which was
1641 generated by GNU Autoconf 2.61. Invocation command line was
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1662 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1663 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1666 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1667 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1668 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 test -z "$as_dir" && as_dir=.
1677 echo "PATH: $as_dir"
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_must_keep_next=false
1707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709 | -silent | --silent | --silen | --sile | --sil)
1712 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1717 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718 if test $ac_must_keep_next = true; then
1719 ac_must_keep_next=false # Got value, back to normal.
1722 *=* | --config-cache | -C | -disable-* | --disable-* \
1723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725 | -with-* | --with-* | -without-* | --without-* | --x)
1726 case "$ac_configure_args0 " in
1727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1730 -* ) ac_must_keep_next=true ;;
1733 ac_configure_args="$ac_configure_args '$ac_arg'"
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log. We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747 # Save into config.log some information that might help in debugging.
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1757 # The following way of writing the cache mishandles newlines in values,
1759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760 eval ac_val=\$$ac_var
1764 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1765 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1768 _ | IFS | as_nl) ;; #(
1769 *) $as_unset $ac_var ;;
1774 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1775 *${as_nl}ac_space=\ *)
1777 "s/'\''/'\''\\\\'\'''\''/g;
1778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789 ## ----------------- ##
1790 ## Output variables. ##
1791 ## ----------------- ##
1794 for ac_var in $ac_subst_vars
1796 eval ac_val=\$$ac_var
1798 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800 echo "$ac_var='\''$ac_val'\''"
1804 if test -n "$ac_subst_files"; then
1806 ## ------------------- ##
1807 ## File substitutions. ##
1808 ## ------------------- ##
1811 for ac_var in $ac_subst_files
1813 eval ac_val=\$$ac_var
1815 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817 echo "$ac_var='\''$ac_val'\''"
1822 if test -s confdefs.h; then
1832 test "$ac_signal" != 0 &&
1833 echo "$as_me: caught signal $ac_signal"
1834 echo "$as_me: exit $exit_status"
1836 rm -f core *.core core.conftest.* &&
1837 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1840 for ac_signal in 1 2 13 15; do
1841 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1845 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1846 rm -f -r conftest* confdefs.h
1848 # Predefined preprocessor variables.
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_NAME "$PACKAGE_NAME"
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_STRING "$PACKAGE_STRING"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1875 # Let the site file select an alternate cache file if it wants to.
1876 # Prefer explicitly selected file to automatically selected ones.
1877 if test -n "$CONFIG_SITE"; then
1878 set x "$CONFIG_SITE"
1879 elif test "x$prefix" != xNONE; then
1880 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1882 set x "$ac_default_prefix/share/config.site" \
1883 "$ac_default_prefix/etc/config.site"
1888 if test -r "$ac_site_file"; then
1889 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1890 echo "$as_me: loading site script $ac_site_file" >&6;}
1891 sed 's/^/| /' "$ac_site_file" >&5
1896 if test -r "$cache_file"; then
1897 # Some versions of bash will fail to source /dev/null (special
1898 # files actually), so we avoid doing that.
1899 if test -f "$cache_file"; then
1900 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1901 echo "$as_me: loading cache $cache_file" >&6;}
1903 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1904 *) . "./$cache_file";;
1908 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1909 echo "$as_me: creating cache $cache_file" >&6;}
1913 # Check that the precious variables saved in the cache have kept the same
1915 ac_cache_corrupted=false
1916 for ac_var in $ac_precious_vars; do
1917 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1918 eval ac_new_set=\$ac_env_${ac_var}_set
1919 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1920 eval ac_new_val=\$ac_env_${ac_var}_value
1921 case $ac_old_set,$ac_new_set in
1923 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1924 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1925 ac_cache_corrupted=: ;;
1927 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1928 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1929 ac_cache_corrupted=: ;;
1932 if test "x$ac_old_val" != "x$ac_new_val"; then
1933 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1934 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1935 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1936 echo "$as_me: former value: $ac_old_val" >&2;}
1937 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1938 echo "$as_me: current value: $ac_new_val" >&2;}
1939 ac_cache_corrupted=:
1942 # Pass precious variables to config.status.
1943 if test "$ac_new_set" = set; then
1945 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1946 *) ac_arg=$ac_var=$ac_new_val ;;
1948 case " $ac_configure_args " in
1949 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1950 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1954 if $ac_cache_corrupted; then
1955 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1956 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1957 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1958 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1959 { (exit 1); exit 1; }; }
1979 ac_cpp='$CPP $CPPFLAGS'
1980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1992 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1993 if test -f "$ac_dir/install-sh"; then
1995 ac_install_sh="$ac_aux_dir/install-sh -c"
1997 elif test -f "$ac_dir/install.sh"; then
1999 ac_install_sh="$ac_aux_dir/install.sh -c"
2001 elif test -f "$ac_dir/shtool"; then
2003 ac_install_sh="$ac_aux_dir/shtool install -c"
2007 if test -z "$ac_aux_dir"; then
2008 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2009 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2010 { (exit 1); exit 1; }; }
2013 # These three variables are undocumented and unsupported,
2014 # and are intended to be withdrawn in a future Autoconf release.
2015 # They can cause serious problems if a builder's source tree is in a directory
2016 # whose full name contains unusual characters.
2017 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2018 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2019 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2022 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2030 # Extract the first word of "$ac_prog", so it can be a program name with args.
2031 set dummy $ac_prog; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 TRUEPRG=$ac_cv_path_TRUEPRG
2061 if test -n "$TRUEPRG"; then
2062 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2063 echo "${ECHO_T}$TRUEPRG" >&6; }
2065 { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2070 test -n "$TRUEPRG" && break
2072 test -n "$TRUEPRG" || TRUEPRG=":"
2074 for ac_prog in false
2076 # Extract the first word of "$ac_prog", so it can be a program name with args.
2077 set dummy $ac_prog; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2095 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 FALSEPRG=$ac_cv_path_FALSEPRG
2107 if test -n "$FALSEPRG"; then
2108 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2109 echo "${ECHO_T}$FALSEPRG" >&6; }
2111 { echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6; }
2116 test -n "$FALSEPRG" && break
2118 test -n "$FALSEPRG" || FALSEPRG=":"
2122 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2123 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2124 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2125 echo "configuring for bacula $VERSION ($DATE)"
2130 ac_cpp='$CPP $CPPFLAGS'
2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134 if test -n "$ac_tool_prefix"; then
2135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2136 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 if test -n "$CC"; then
2164 { echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6; }
2167 { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2173 if test -z "$ac_cv_prog_CC"; then
2175 # Extract the first word of "gcc", so it can be a program name with args.
2176 set dummy gcc; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 if test -n "$ac_ct_CC"; then
2183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_ac_ct_CC="gcc"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203 if test -n "$ac_ct_CC"; then
2204 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 echo "${ECHO_T}$ac_ct_CC" >&6; }
2207 { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2211 if test "x$ac_ct_CC" = x; then
2214 case $cross_compiling:$ac_tool_warned in
2216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2217 whose name does not start with the host triplet. If you think this
2218 configuration is useful to you, please write to autoconf@gnu.org." >&5
2219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2220 whose name does not start with the host triplet. If you think this
2221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2222 ac_tool_warned=yes ;;
2230 if test -z "$CC"; then
2231 if test -n "$ac_tool_prefix"; then
2232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2233 set dummy ${ac_tool_prefix}cc; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249 ac_cv_prog_CC="${ac_tool_prefix}cc"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 if test -n "$CC"; then
2261 { echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6; }
2264 { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2271 if test -z "$CC"; then
2272 # Extract the first word of "cc", so it can be a program name with args.
2273 set dummy cc; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC="$CC" # Let the user override the test.
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2291 ac_prog_rejected=yes
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 if test $ac_prog_rejected = yes; then
2303 # We found a bogon in the path, so make sure we never use it.
2304 set dummy $ac_cv_prog_CC
2306 if test $# != 0; then
2307 # We chose a different compiler from the bogus one.
2308 # However, it has the same basename, so the bogon will be chosen
2309 # first if we set CC to just the basename; use the full file name.
2311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2317 if test -n "$CC"; then
2318 { echo "$as_me:$LINENO: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6; }
2321 { echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6; }
2327 if test -z "$CC"; then
2328 if test -n "$ac_tool_prefix"; then
2329 for ac_prog in cl.exe
2331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_CC+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 if test -n "$CC"; then
2339 ac_cv_prog_CC="$CC" # Let the user override the test.
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 if test -n "$CC"; then
2360 { echo "$as_me:$LINENO: result: $CC" >&5
2361 echo "${ECHO_T}$CC" >&6; }
2363 { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2368 test -n "$CC" && break
2371 if test -z "$CC"; then
2373 for ac_prog in cl.exe
2375 # Extract the first word of "$ac_prog", so it can be a program name with args.
2376 set dummy $ac_prog; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_CC="$ac_prog"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6; }
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2412 test -n "$ac_ct_CC" && break
2415 if test "x$ac_ct_CC" = x; then
2418 case $cross_compiling:$ac_tool_warned in
2420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&5
2423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426 ac_tool_warned=yes ;;
2435 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: no acceptable C compiler found in \$PATH
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2441 # Provide some information about the compiler.
2442 echo "$as_me:$LINENO: checking for C compiler version" >&5
2443 ac_compiler=`set X $ac_compile; echo $2`
2444 { (ac_try="$ac_compiler --version >&5"
2446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450 (eval "$ac_compiler --version >&5") 2>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }
2454 { (ac_try="$ac_compiler -v >&5"
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compiler -v >&5") 2>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }
2464 { (ac_try="$ac_compiler -V >&5"
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_compiler -V >&5") 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2490 ac_clean_files_save=$ac_clean_files
2491 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2492 # Try to create an executable without -o first, disregard a.out.
2493 # It will help us diagnose broken compilers, and finding out an intuition
2495 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2496 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2497 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2499 # List of possible output files, starting from the most likely.
2500 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2501 # only as a last resort. b.out is created by i960 compilers.
2502 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2504 # The IRIX 6 linker writes into existing files which may not be
2505 # executable, retaining their permissions. Remove them first so a
2506 # subsequent execution test works.
2508 for ac_file in $ac_files
2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2512 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2517 if { (ac_try="$ac_link_default"
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_link_default") 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; then
2527 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2529 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2530 # so that the user can short-circuit this test for compilers unknown to
2532 for ac_file in $ac_files ''
2534 test -f "$ac_file" || continue
2536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2539 # We found the default executable, but exeext='' is most
2543 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547 # We set ac_cv_exeext here because the later test for it is not
2548 # safe: cross compilers may not add the suffix if given an `-o'
2549 # argument, so we may need to know it at that point already.
2550 # Even if this section looks crufty: it has the advantage of
2557 test "$ac_cv_exeext" = no && ac_cv_exeext=
2563 { echo "$as_me:$LINENO: result: $ac_file" >&5
2564 echo "${ECHO_T}$ac_file" >&6; }
2565 if test -z "$ac_file"; then
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: C compiler cannot create executables
2572 See \`config.log' for more details." >&2;}
2573 { (exit 77); exit 77; }; }
2576 ac_exeext=$ac_cv_exeext
2578 # Check that the compiler produces executables we can run. If not, either
2579 # the compiler is broken, or we cross compile.
2580 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2581 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2582 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2583 # If not cross compiling, check that we can run a simple program.
2584 if test "$cross_compiling" != yes; then
2585 if { ac_try='./$ac_file'
2586 { (case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_try") 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2597 if test "$cross_compiling" = maybe; then
2600 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2601 If you meant to cross compile, use \`--host'.
2602 See \`config.log' for more details." >&5
2603 echo "$as_me: error: cannot run C compiled programs.
2604 If you meant to cross compile, use \`--host'.
2605 See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2610 { echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6; }
2613 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2614 ac_clean_files=$ac_clean_files_save
2615 # Check that the compiler produces executables we can run. If not, either
2616 # the compiler is broken, or we cross compile.
2617 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2618 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2619 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2620 echo "${ECHO_T}$cross_compiling" >&6; }
2622 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2623 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2624 if { (ac_try="$ac_link"
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630 (eval "$ac_link") 2>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; then
2634 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2635 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2636 # work properly (i.e., refer to `conftest.exe'), while it won't with
2638 for ac_file in conftest.exe conftest conftest.*; do
2639 test -f "$ac_file" || continue
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2642 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2651 See \`config.log' for more details." >&2;}
2652 { (exit 1); exit 1; }; }
2655 rm -f conftest$ac_cv_exeext
2656 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2657 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2659 rm -f conftest.$ac_ext
2660 EXEEXT=$ac_cv_exeext
2662 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2663 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2664 if test "${ac_cv_objext+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 cat >conftest.$ac_ext <<_ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2682 rm -f conftest.o conftest.obj
2683 if { (ac_try="$ac_compile"
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_compile") 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; then
2693 for ac_file in conftest.o conftest.obj conftest.*; do
2694 test -f "$ac_file" || continue;
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2705 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2706 See \`config.log' for more details." >&5
2707 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2708 See \`config.log' for more details." >&2;}
2709 { (exit 1); exit 1; }; }
2712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2714 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2715 echo "${ECHO_T}$ac_cv_objext" >&6; }
2716 OBJEXT=$ac_cv_objext
2718 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2719 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2720 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 cat >conftest.$ac_ext <<_ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2741 rm -f conftest.$ac_objext
2742 if { (ac_try="$ac_compile"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compile") 2>conftest.er1
2750 grep -v '^ *+' conftest.er1 >conftest.err
2752 cat conftest.err >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } && {
2755 test -z "$ac_c_werror_flag" ||
2756 test ! -s conftest.err
2757 } && test -s conftest.$ac_objext; then
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2770 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2771 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2772 GCC=`test $ac_compiler_gnu = yes && echo yes`
2773 ac_test_CFLAGS=${CFLAGS+set}
2774 ac_save_CFLAGS=$CFLAGS
2775 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2776 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_cc_g+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 ac_save_c_werror_flag=$ac_c_werror_flag
2781 ac_c_werror_flag=yes
2784 cat >conftest.$ac_ext <<_ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2799 rm -f conftest.$ac_objext
2800 if { (ac_try="$ac_compile"
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_compile") 2>conftest.er1
2808 grep -v '^ *+' conftest.er1 >conftest.err
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } && {
2813 test -z "$ac_c_werror_flag" ||
2814 test ! -s conftest.err
2815 } && test -s conftest.$ac_objext; 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 test -z "$ac_c_werror_flag" ||
2852 test ! -s conftest.err
2853 } && test -s conftest.$ac_objext; then
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 ac_c_werror_flag=$ac_save_c_werror_flag
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>conftest.er1
2885 grep -v '^ *+' conftest.er1 >conftest.err
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } && {
2890 test -z "$ac_c_werror_flag" ||
2891 test ! -s conftest.err
2892 } && test -s conftest.$ac_objext; then
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_c_werror_flag=$ac_save_c_werror_flag
2910 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2911 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2912 if test "$ac_test_CFLAGS" = set; then
2913 CFLAGS=$ac_save_CFLAGS
2914 elif test $ac_cv_prog_cc_g = yes; then
2915 if test "$GCC" = yes; then
2921 if test "$GCC" = yes; then
2927 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2928 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2929 if test "${ac_cv_prog_cc_c89+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 ac_cv_prog_cc_c89=no
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2942 #include <sys/types.h>
2943 #include <sys/stat.h>
2944 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2945 struct buf { int x; };
2946 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2947 static char *e (p, i)
2953 static char *f (char * (*g) (char **, int), char **p, ...)
2958 s = g (p, va_arg (v,int));
2963 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2964 function prototypes and stuff, but not '\xHH' hex character constants.
2965 These don't provoke an error unfortunately, instead are silently treated
2966 as 'x'. The following induces an error, until -std is added to get
2967 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2968 array size at least. It's necessary to write '\x00'==0 to get something
2969 that's true only with -std. */
2970 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2972 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2973 inside strings and character constants. */
2975 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2977 int test (int i, double x);
2978 struct s1 {int (*f) (int a);};
2979 struct s2 {int (*f) (double a);};
2980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2986 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2991 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2992 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2994 CC="$ac_save_CC $ac_arg"
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } && {
3009 test -z "$ac_c_werror_flag" ||
3010 test ! -s conftest.err
3011 } && test -s conftest.$ac_objext; then
3012 ac_cv_prog_cc_c89=$ac_arg
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3020 rm -f core conftest.err conftest.$ac_objext
3021 test "x$ac_cv_prog_cc_c89" != "xno" && break
3023 rm -f conftest.$ac_ext
3028 case "x$ac_cv_prog_cc_c89" in
3030 { echo "$as_me:$LINENO: result: none needed" >&5
3031 echo "${ECHO_T}none needed" >&6; } ;;
3033 { echo "$as_me:$LINENO: result: unsupported" >&5
3034 echo "${ECHO_T}unsupported" >&6; } ;;
3036 CC="$CC $ac_cv_prog_cc_c89"
3037 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3038 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049 ac_cpp='$CXXCPP $CPPFLAGS'
3050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3053 if test -z "$CXX"; then
3054 if test -n "$CCC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_CXX+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 if test -n "$CXX"; then
3068 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 if test -n "$CXX"; then
3089 { echo "$as_me:$LINENO: result: $CXX" >&5
3090 echo "${ECHO_T}$CXX" >&6; }
3092 { echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6; }
3097 test -n "$CXX" && break
3100 if test -z "$CXX"; then
3102 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3108 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 if test -n "$ac_ct_CXX"; then
3112 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 ac_cv_prog_ac_ct_CXX="$ac_prog"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3132 if test -n "$ac_ct_CXX"; then
3133 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3134 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3136 { echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6; }
3141 test -n "$ac_ct_CXX" && break
3144 if test "x$ac_ct_CXX" = x; then
3147 case $cross_compiling:$ac_tool_warned in
3149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3150 whose name does not start with the host triplet. If you think this
3151 configuration is useful to you, please write to autoconf@gnu.org." >&5
3152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3153 whose name does not start with the host triplet. If you think this
3154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3155 ac_tool_warned=yes ;;
3163 # Provide some information about the compiler.
3164 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3165 ac_compiler=`set X $ac_compile; echo $2`
3166 { (ac_try="$ac_compiler --version >&5"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compiler --version >&5") 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3176 { (ac_try="$ac_compiler -v >&5"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compiler -v >&5") 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3186 { (ac_try="$ac_compiler -V >&5"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compiler -V >&5") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }
3197 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3198 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3199 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 cat >conftest.$ac_ext <<_ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3220 rm -f conftest.$ac_objext
3221 if { (ac_try="$ac_compile"
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compile") 2>conftest.er1
3229 grep -v '^ *+' conftest.er1 >conftest.err
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } && {
3234 test -z "$ac_cxx_werror_flag" ||
3235 test ! -s conftest.err
3236 } && test -s conftest.$ac_objext; then
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3249 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3250 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3251 GXX=`test $ac_compiler_gnu = yes && echo yes`
3252 ac_test_CXXFLAGS=${CXXFLAGS+set}
3253 ac_save_CXXFLAGS=$CXXFLAGS
3254 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3255 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cxx_g+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3260 ac_cxx_werror_flag=yes
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_compile") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } && {
3292 test -z "$ac_cxx_werror_flag" ||
3293 test ! -s conftest.err
3294 } && test -s conftest.$ac_objext; then
3295 ac_cv_prog_cxx_g=yes
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3325 grep -v '^ *+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && {
3330 test -z "$ac_cxx_werror_flag" ||
3331 test ! -s conftest.err
3332 } && test -s conftest.$ac_objext; then
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3338 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3340 cat >conftest.$ac_ext <<_ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_compile") 2>conftest.er1
3364 grep -v '^ *+' conftest.er1 >conftest.err
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } && {
3369 test -z "$ac_cxx_werror_flag" ||
3370 test ! -s conftest.err
3371 } && test -s conftest.$ac_objext; then
3372 ac_cv_prog_cxx_g=yes
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3389 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3391 if test "$ac_test_CXXFLAGS" = set; then
3392 CXXFLAGS=$ac_save_CXXFLAGS
3393 elif test $ac_cv_prog_cxx_g = yes; then
3394 if test "$GXX" = yes; then
3400 if test "$GXX" = yes; then
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 if test "x$CC" != xcc; then
3413 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3414 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3416 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3417 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3419 set dummy $CC; ac_cc=`echo $2 |
3420 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3421 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3439 # Make sure it works both with $CC and with simple cc.
3440 # We do the test twice because some compilers refuse to overwrite an
3441 # existing .o file with -o, though they will create one.
3442 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3444 if { (case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_try") 2>&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_try") 2>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); };
3463 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3464 if test "x$CC" != xcc; then
3465 # Test first that cc exists at all.
3466 if { ac_try='cc -c conftest.$ac_ext >&5'
3467 { (case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_try") 2>&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3476 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3478 if { (case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_try") 2>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_try") 2>&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); };
3500 # cc exists but doesn't like -o.
3501 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3506 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3508 rm -f core conftest*
3511 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3512 { echo "$as_me:$LINENO: result: yes" >&5
3513 echo "${ECHO_T}yes" >&6; }
3515 { echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6; }
3518 cat >>confdefs.h <<\_ACEOF
3519 #define NO_MINUS_C_MINUS_O 1
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3530 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3531 # On Suns, sometimes $CPP names a directory.
3532 if test -n "$CPP" && test -d "$CPP"; then
3535 if test -z "$CPP"; then
3536 if test "${ac_cv_prog_CPP+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 # Double quotes because CPP needs to be expanded
3540 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3543 for ac_c_preproc_warn_flag in '' yes
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548 # <limits.h> exists even on freestanding compilers.
3549 # On the NeXT, cc -E runs the code through the compiler's parser,
3550 # not just through cpp. "Syntax error" is here to catch this case.
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3558 # include <limits.h>
3560 # include <assert.h>
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } >/dev/null && {
3577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 # Broken: fails on valid input.
3589 rm -f conftest.err conftest.$ac_ext
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <ac_nonexistent.h>
3601 if { (ac_try="$ac_cpp conftest.$ac_ext"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609 grep -v '^ *+' conftest.er1 >conftest.err
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } >/dev/null && {
3614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3615 test ! -s conftest.err
3617 # Broken: success on invalid input.
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 # Passes both tests.
3628 rm -f conftest.err conftest.$ac_ext
3631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3632 rm -f conftest.err conftest.$ac_ext
3633 if $ac_preproc_ok; then
3645 { echo "$as_me:$LINENO: result: $CPP" >&5
3646 echo "${ECHO_T}$CPP" >&6; }
3648 for ac_c_preproc_warn_flag in '' yes
3650 # Use a header file that comes with gcc, so configuring glibc
3651 # with a fresh cross-compiler works.
3652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3653 # <limits.h> exists even on freestanding compilers.
3654 # On the NeXT, cc -E runs the code through the compiler's parser,
3655 # not just through cpp. "Syntax error" is here to catch this case.
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3663 # include <limits.h>
3665 # include <assert.h>
3669 if { (ac_try="$ac_cpp conftest.$ac_ext"
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } >/dev/null && {
3682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 # Broken: fails on valid input.
3694 rm -f conftest.err conftest.$ac_ext
3696 # OK, works on sane cases. Now check whether nonexistent headers
3697 # can be detected and how.
3698 cat >conftest.$ac_ext <<_ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 #include <ac_nonexistent.h>
3706 if { (ac_try="$ac_cpp conftest.$ac_ext"
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3714 grep -v '^ *+' conftest.er1 >conftest.err
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } >/dev/null && {
3719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3720 test ! -s conftest.err
3722 # Broken: success on invalid input.
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3728 # Passes both tests.
3733 rm -f conftest.err conftest.$ac_ext
3736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3737 rm -f conftest.err conftest.$ac_ext
3738 if $ac_preproc_ok; then
3741 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3742 See \`config.log' for more details." >&5
3743 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3744 See \`config.log' for more details." >&2;}
3745 { (exit 1); exit 1; }; }
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3756 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3757 if test "${ac_cv_path_GREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 # Extract the first word of "grep ggrep" to use in msg output
3761 if test -z "$GREP"; then
3762 set dummy grep ggrep; ac_prog_name=$2
3763 if test "${ac_cv_path_GREP+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 ac_path_GREP_found=false
3767 # Loop through the user's path and test for each of PROGNAME-LIST
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3772 test -z "$as_dir" && as_dir=.
3773 for ac_prog in grep ggrep; do
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3776 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3777 # Check for GNU ac_path_GREP and select it if it is found.
3778 # Check for GNU $ac_path_GREP
3779 case `"$ac_path_GREP" --version 2>&1` in
3781 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3784 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3787 cat "conftest.in" "conftest.in" >"conftest.tmp"
3788 mv "conftest.tmp" "conftest.in"
3789 cp "conftest.in" "conftest.nl"
3790 echo 'GREP' >> "conftest.nl"
3791 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3793 ac_count=`expr $ac_count + 1`
3794 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3795 # Best one so far, save it but keep looking for a better one
3796 ac_cv_path_GREP="$ac_path_GREP"
3797 ac_path_GREP_max=$ac_count
3799 # 10*(2^10) chars as input seems more than enough
3800 test $ac_count -gt 10 && break
3802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806 $ac_path_GREP_found && break 3
3816 GREP="$ac_cv_path_GREP"
3817 if test -z "$GREP"; then
3818 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3819 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3820 { (exit 1); exit 1; }; }
3824 ac_cv_path_GREP=$GREP
3829 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3830 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3831 GREP="$ac_cv_path_GREP"
3834 { echo "$as_me:$LINENO: checking for egrep" >&5
3835 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3836 if test "${ac_cv_path_EGREP+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3840 then ac_cv_path_EGREP="$GREP -E"
3842 # Extract the first word of "egrep" to use in msg output
3843 if test -z "$EGREP"; then
3844 set dummy egrep; ac_prog_name=$2
3845 if test "${ac_cv_path_EGREP+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 ac_path_EGREP_found=false
3849 # Loop through the user's path and test for each of PROGNAME-LIST
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3854 test -z "$as_dir" && as_dir=.
3855 for ac_prog in egrep; do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3858 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3859 # Check for GNU ac_path_EGREP and select it if it is found.
3860 # Check for GNU $ac_path_EGREP
3861 case `"$ac_path_EGREP" --version 2>&1` in
3863 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3866 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3869 cat "conftest.in" "conftest.in" >"conftest.tmp"
3870 mv "conftest.tmp" "conftest.in"
3871 cp "conftest.in" "conftest.nl"
3872 echo 'EGREP' >> "conftest.nl"
3873 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3875 ac_count=`expr $ac_count + 1`
3876 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3877 # Best one so far, save it but keep looking for a better one
3878 ac_cv_path_EGREP="$ac_path_EGREP"
3879 ac_path_EGREP_max=$ac_count
3881 # 10*(2^10) chars as input seems more than enough
3882 test $ac_count -gt 10 && break
3884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3888 $ac_path_EGREP_found && break 3
3898 EGREP="$ac_cv_path_EGREP"
3899 if test -z "$EGREP"; then
3900 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3901 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3902 { (exit 1); exit 1; }; }
3906 ac_cv_path_EGREP=$EGREP
3912 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3913 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3914 EGREP="$ac_cv_path_EGREP"
3917 if test $ac_cv_c_compiler_gnu = yes; then
3918 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3919 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3920 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 ac_pattern="Autoconf.*'x'"
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3935 ac_cv_prog_gcc_traditional=yes
3937 ac_cv_prog_gcc_traditional=no
3942 if test $ac_cv_prog_gcc_traditional = no; then
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3954 ac_cv_prog_gcc_traditional=yes
3960 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3961 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3962 if test $ac_cv_prog_gcc_traditional = yes; then
3963 CC="$CC -traditional"
3967 BASECC=`basename $CC`
3969 if test "x$BASECC" = xgcc; then
3970 cat >>confdefs.h <<\_ACEOF
3976 # Extract the first word of "$CXX", so it can be a program name with args.
3977 set dummy $CXX; ac_word=$2
3978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3980 if test "${ac_cv_path_CXX+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4008 if test -n "$CXX"; then
4009 { echo "$as_me:$LINENO: result: $CXX" >&5
4010 echo "${ECHO_T}$CXX" >&6; }
4012 { echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6; }
4017 if test ! -e $CXX; then
4018 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4019 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4020 { (exit 1); exit 1; }; }
4023 # Find a good install program. We prefer a C program (faster),
4024 # so one script is as good as another. But avoid the broken or
4025 # incompatible versions:
4026 # SysV /etc/install, /usr/sbin/install
4027 # SunOS /usr/etc/install
4028 # IRIX /sbin/install
4030 # AmigaOS /C/install, which installs bootblocks on floppy discs
4031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4034 # OS/2's system install, which has a completely different semantic
4035 # ./install, which can be erroneously created by make from ./install.sh.
4036 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4038 if test -z "$INSTALL"; then
4039 if test "${ac_cv_path_install+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 # Account for people who put trailing slashes in PATH elements.
4049 ./ | .// | /cC/* | \
4050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4054 # OSF1 and SCO ODT 3.0 have their own names for install.
4055 # Don't use installbsd from OSF since it installs stuff as root
4057 for ac_prog in ginstall scoinst install; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4060 if test $ac_prog = install &&
4061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4062 # AIX install. It has an incompatible calling convention.
4064 elif test $ac_prog = install &&
4065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4066 # program-specific install script used by HP pwplus--don't use.
4069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4082 if test "${ac_cv_path_install+set}" = set; then
4083 INSTALL=$ac_cv_path_install
4085 # As a last resort, use the slow shell script. Don't cache a
4086 # value for INSTALL within a source directory, because that will
4087 # break other packages using the cache if that directory is
4088 # removed, or if the value is a relative name.
4089 INSTALL=$ac_install_sh
4092 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4093 echo "${ECHO_T}$INSTALL" >&6; }
4095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4096 # It thinks the first close brace ends the variable substitution.
4097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4103 if test -n "$ac_tool_prefix"; then
4104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4108 if test "${ac_cv_prog_RANLIB+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 if test -n "$RANLIB"; then
4112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 RANLIB=$ac_cv_prog_RANLIB
4132 if test -n "$RANLIB"; then
4133 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4134 echo "${ECHO_T}$RANLIB" >&6; }
4136 { echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6; }
4142 if test -z "$ac_cv_prog_RANLIB"; then
4143 ac_ct_RANLIB=$RANLIB
4144 # Extract the first word of "ranlib", so it can be a program name with args.
4145 set dummy ranlib; ac_word=$2
4146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 if test -n "$ac_ct_RANLIB"; then
4152 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161 ac_cv_prog_ac_ct_RANLIB="ranlib"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4172 if test -n "$ac_ct_RANLIB"; then
4173 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4174 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4176 { echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6; }
4180 if test "x$ac_ct_RANLIB" = x; then
4183 case $cross_compiling:$ac_tool_warned in
4185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4186 whose name does not start with the host triplet. If you think this
4187 configuration is useful to you, please write to autoconf@gnu.org." >&5
4188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4189 whose name does not start with the host triplet. If you think this
4190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4191 ac_tool_warned=yes ;;
4193 RANLIB=$ac_ct_RANLIB
4196 RANLIB="$ac_cv_prog_RANLIB"
4199 # Extract the first word of "mv", so it can be a program name with args.
4200 set dummy mv; ac_word=$2
4201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203 if test "${ac_cv_path_MV+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4231 if test -n "$MV"; then
4232 { echo "$as_me:$LINENO: result: $MV" >&5
4233 echo "${ECHO_T}$MV" >&6; }
4235 { echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6; }
4240 # Extract the first word of "rm", so it can be a program name with args.
4241 set dummy rm; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_path_RM+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4272 if test -n "$RM"; then
4273 { echo "$as_me:$LINENO: result: $RM" >&5
4274 echo "${ECHO_T}$RM" >&6; }
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4281 # Extract the first word of "cp", so it can be a program name with args.
4282 set dummy cp; ac_word=$2
4283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4285 if test "${ac_cv_path_CP+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4313 if test -n "$CP"; then
4314 { echo "$as_me:$LINENO: result: $CP" >&5
4315 echo "${ECHO_T}$CP" >&6; }
4317 { echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6; }
4322 # Extract the first word of "sed", so it can be a program name with args.
4323 set dummy sed; ac_word=$2
4324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4326 if test "${ac_cv_path_SED+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4354 if test -n "$SED"; then
4355 { echo "$as_me:$LINENO: result: $SED" >&5
4356 echo "${ECHO_T}$SED" >&6; }
4358 { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4363 # Extract the first word of "echo", so it can be a program name with args.
4364 set dummy echo; ac_word=$2
4365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4367 if test "${ac_cv_path_ECHO+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4394 ECHO=$ac_cv_path_ECHO
4395 if test -n "$ECHO"; then
4396 { echo "$as_me:$LINENO: result: $ECHO" >&5
4397 echo "${ECHO_T}$ECHO" >&6; }
4399 { echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6; }
4404 # Extract the first word of "cmp", so it can be a program name with args.
4405 set dummy cmp; ac_word=$2
4406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408 if test "${ac_cv_path_CMP+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4436 if test -n "$CMP"; then
4437 { echo "$as_me:$LINENO: result: $CMP" >&5
4438 echo "${ECHO_T}$CMP" >&6; }
4440 { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4445 # Extract the first word of "tbl", so it can be a program name with args.
4446 set dummy tbl; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_path_TBL+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4477 if test -n "$TBL"; then
4478 { echo "$as_me:$LINENO: result: $TBL" >&5
4479 echo "${ECHO_T}$TBL" >&6; }
4481 { echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6; }
4486 # Extract the first word of "ar", so it can be a program name with args.
4487 set dummy ar; ac_word=$2
4488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490 if test "${ac_cv_path_AR+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4518 if test -n "$AR"; then
4519 { echo "$as_me:$LINENO: result: $AR" >&5
4520 echo "${ECHO_T}$AR" >&6; }
4522 { echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6; }
4527 # Extract the first word of "openssl", so it can be a program name with args.
4528 set dummy openssl; ac_word=$2
4529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531 if test "${ac_cv_path_OPENSSL+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4558 OPENSSL=$ac_cv_path_OPENSSL
4559 if test -n "$OPENSSL"; then
4560 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4561 echo "${ECHO_T}$OPENSSL" >&6; }
4563 { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4568 # Extract the first word of "mtx", so it can be a program name with args.
4569 set dummy mtx; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_path_MTX+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4600 if test -n "$MTX"; then
4601 { echo "$as_me:$LINENO: result: $MTX" >&5
4602 echo "${ECHO_T}$MTX" >&6; }
4604 { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4609 # Extract the first word of "dd", so it can be a program name with args.
4610 set dummy dd; ac_word=$2
4611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613 if test "${ac_cv_path_DD+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4641 if test -n "$DD"; then
4642 { echo "$as_me:$LINENO: result: $DD" >&5
4643 echo "${ECHO_T}$DD" >&6; }
4645 { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4650 # Extract the first word of "mkisofs", so it can be a program name with args.
4651 set dummy mkisofs; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_path_MKISOFS+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4681 MKISOFS=$ac_cv_path_MKISOFS
4682 if test -n "$MKISOFS"; then
4683 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4684 echo "${ECHO_T}$MKISOFS" >&6; }
4686 { echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6; }
4691 # Extract the first word of "python", so it can be a program name with args.
4692 set dummy python; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_path_PYTHON+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4722 PYTHON=$ac_cv_path_PYTHON
4723 if test -n "$PYTHON"; then
4724 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4725 echo "${ECHO_T}$PYTHON" >&6; }
4727 { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4732 # Extract the first word of "growisofs", so it can be a program name with args.
4733 set dummy growisofs; ac_word=$2
4734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4763 GROWISOFS=$ac_cv_path_GROWISOFS
4764 if test -n "$GROWISOFS"; then
4765 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4766 echo "${ECHO_T}$GROWISOFS" >&6; }
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4773 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4774 set dummy dvd+rw-mediainfo; ac_word=$2
4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 case $DVDRWMEDIAINFO in
4782 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4804 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4805 if test -n "$DVDRWMEDIAINFO"; then
4806 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4807 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4809 { echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6; }
4814 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4815 set dummy dvd+rw-format; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 case $DVDRWFORMAT in
4823 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4845 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4846 if test -n "$DVDRWFORMAT"; then
4847 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4848 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4850 { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4855 # Extract the first word of "pkg-config", so it can be a program name with args.
4856 set dummy pkg-config; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4886 PKGCONFIG=$ac_cv_path_PKGCONFIG
4887 if test -n "$PKGCONFIG"; then
4888 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4889 echo "${ECHO_T}$PKGCONFIG" >&6; }
4891 { echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6; }
4896 # Extract the first word of "qmake", so it can be a program name with args.
4897 set dummy qmake; ac_word=$2
4898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4900 if test "${ac_cv_path_QMAKE+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4927 QMAKE=$ac_cv_path_QMAKE
4928 if test -n "$QMAKE"; then
4929 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4930 echo "${ECHO_T}$QMAKE" >&6; }
4932 { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4937 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4938 set dummy qmake-qt4; ac_word=$2
4939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4941 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4968 QMAKEQT4=$ac_cv_path_QMAKEQT4
4969 if test -n "$QMAKEQT4"; then
4970 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4971 echo "${ECHO_T}$QMAKEQT4" >&6; }
4973 { echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6; }
4979 if test "x$WXCONFIG" = x; then
4982 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4983 set dummy ${WXCONFIG}; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5013 WXCONFIG=$ac_cv_path_WXCONFIG
5014 if test -n "$WXCONFIG"; then
5015 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5016 echo "${ECHO_T}$WXCONFIG" >&6; }
5018 { echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6; }
5024 # Extract the first word of "cdrecord", so it can be a program name with args.
5025 set dummy cdrecord; ac_word=$2
5026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028 if test "${ac_cv_path_CDRECORD+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5055 CDRECORD=$ac_cv_path_CDRECORD
5056 if test -n "$CDRECORD"; then
5057 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5058 echo "${ECHO_T}$CDRECORD" >&6; }
5060 { echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6; }
5065 # Extract the first word of "pidof", so it can be a program name with args.
5066 set dummy pidof; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_path_PIDOF+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5096 PIDOF=$ac_cv_path_PIDOF
5097 if test -n "$PIDOF"; then
5098 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5099 echo "${ECHO_T}$PIDOF" >&6; }
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5106 for ac_prog in gawk mawk nawk awk
5108 # Extract the first word of "$ac_prog", so it can be a program name with args.
5109 set dummy $ac_prog; ac_word=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_prog_AWK+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 if test -n "$AWK"; then
5116 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_prog_AWK="$ac_prog"
5126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 if test -n "$AWK"; then
5137 { echo "$as_me:$LINENO: result: $AWK" >&5
5138 echo "${ECHO_T}$AWK" >&6; }
5140 { echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6; }
5145 test -n "$AWK" && break
5148 # Some AWK programs fail, so test it and warn the user
5149 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5150 { if ((prog == $2) || (("(" prog ")") == $2) ||
5151 (("" prog "") == $2) ||
5152 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5154 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5155 The regex engine of $AWK is too broken to be used you
5156 might want to install GNU AWK.
5157 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5158 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5159 The regex engine of $AWK is too broken to be used you
5160 might want to install GNU AWK.
5161 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5162 { (exit 1); exit 1; }; }
5165 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5166 set dummy $THE_AWK; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_AWK+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5197 if test -n "$AWK"; then
5198 { echo "$as_me:$LINENO: result: $AWK" >&5
5199 echo "${ECHO_T}$AWK" >&6; }
5201 { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5208 test -n "$ARFLAG" || ARFLAGS="cr"
5219 # Make sure we can run config.sub.
5220 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5221 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5222 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5223 { (exit 1); exit 1; }; }
5225 { echo "$as_me:$LINENO: checking build system type" >&5
5226 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5227 if test "${ac_cv_build+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 ac_build_alias=$build_alias
5231 test "x$ac_build_alias" = x &&
5232 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5233 test "x$ac_build_alias" = x &&
5234 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5235 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5236 { (exit 1); exit 1; }; }
5237 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5238 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5239 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5240 { (exit 1); exit 1; }; }
5243 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5244 echo "${ECHO_T}$ac_cv_build" >&6; }
5245 case $ac_cv_build in
5247 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5248 echo "$as_me: error: invalid value of canonical build" >&2;}
5249 { (exit 1); exit 1; }; };;
5252 ac_save_IFS=$IFS; IFS='-'
5258 # Remember, the first character of IFS is used to create $*,
5259 # except with old shells:
5262 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5266 { echo "$as_me:$LINENO: checking host system type" >&5
5267 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5268 if test "${ac_cv_host+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 if test "x$host_alias" = x; then
5272 ac_cv_host=$ac_cv_build
5274 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5275 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5276 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5277 { (exit 1); exit 1; }; }
5281 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5282 echo "${ECHO_T}$ac_cv_host" >&6; }
5285 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5286 echo "$as_me: error: invalid value of canonical host" >&2;}
5287 { (exit 1); exit 1; }; };;
5290 ac_save_IFS=$IFS; IFS='-'
5296 # Remember, the first character of IFS is used to create $*,
5297 # except with old shells:
5300 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5304 *cygwin* ) CYGWIN=yes;;
5308 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5314 HAVE_SUN_OS_FALSE='#'
5316 HAVE_SUN_OS_TRUE='#'
5319 cat >>confdefs.h <<\_ACEOF
5320 #define HAVE_SUN_OS 1
5328 HAVE_SUN_OS_FALSE='#'
5330 HAVE_SUN_OS_TRUE='#'
5335 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5341 HAVE_OSF1_OS_FALSE='#'
5343 HAVE_OSF1_OS_TRUE='#'
5346 cat >>confdefs.h <<\_ACEOF
5347 #define HAVE_OSF1_OS 1
5355 HAVE_OSF1_OS_FALSE='#'
5357 HAVE_OSF1_OS_TRUE='#'
5362 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5368 HAVE_AIX_OS_FALSE='#'
5370 HAVE_AIX_OS_TRUE='#'
5373 cat >>confdefs.h <<\_ACEOF
5374 #define HAVE_AIX_OS 1
5382 HAVE_AIX_OS_FALSE='#'
5384 HAVE_AIX_OS_TRUE='#'
5389 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5395 HAVE_HPUX_OS_FALSE='#'
5397 HAVE_HPUX_OS_TRUE='#'
5400 cat >>confdefs.h <<\_ACEOF
5401 #define HAVE_HPUX_OS 1
5409 HAVE_HPUX_OS_FALSE='#'
5411 HAVE_HPUX_OS_TRUE='#'
5416 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5422 HAVE_LINUX_OS_FALSE='#'
5424 HAVE_LINUX_OS_TRUE='#'
5425 HAVE_LINUX_OS_FALSE=
5427 cat >>confdefs.h <<\_ACEOF
5428 #define HAVE_LINUX_OS 1
5436 HAVE_LINUX_OS_FALSE='#'
5438 HAVE_LINUX_OS_TRUE='#'
5439 HAVE_LINUX_OS_FALSE=
5443 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5448 HAVE_FREEBSD_OS_TRUE=
5449 HAVE_FREEBSD_OS_FALSE='#'
5451 HAVE_FREEBSD_OS_TRUE='#'
5452 HAVE_FREEBSD_OS_FALSE=
5454 cat >>confdefs.h <<\_ACEOF
5455 #define HAVE_FREEBSD_OS 1
5462 HAVE_FREEBSD_OS_TRUE=
5463 HAVE_FREEBSD_OS_FALSE='#'
5465 HAVE_FREEBSD_OS_TRUE='#'
5466 HAVE_FREEBSD_OS_FALSE=
5470 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5475 HAVE_NETBSD_OS_TRUE=
5476 HAVE_NETBSD_OS_FALSE='#'
5478 HAVE_NETBSD_OS_TRUE='#'
5479 HAVE_NETBSD_OS_FALSE=
5481 cat >>confdefs.h <<\_ACEOF
5482 #define HAVE_NETBSD_OS 1
5489 HAVE_NETBSD_OS_TRUE=
5490 HAVE_NETBSD_OS_FALSE='#'
5492 HAVE_NETBSD_OS_TRUE='#'
5493 HAVE_NETBSD_OS_FALSE=
5497 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5502 HAVE_OPENBSD_OS_TRUE=
5503 HAVE_OPENBSD_OS_FALSE='#'
5505 HAVE_OPENBSD_OS_TRUE='#'
5506 HAVE_OPENBSD_OS_FALSE=
5508 cat >>confdefs.h <<\_ACEOF
5509 #define HAVE_OPENBSD_OS 1
5516 HAVE_OPENBSD_OS_TRUE=
5517 HAVE_OPENBSD_OS_FALSE='#'
5519 HAVE_OPENBSD_OS_TRUE='#'
5520 HAVE_OPENBSD_OS_FALSE=
5524 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5530 HAVE_BSDI_OS_FALSE='#'
5532 HAVE_BSDI_OS_TRUE='#'
5535 cat >>confdefs.h <<\_ACEOF
5536 #define HAVE_BSDI_OS 1
5544 HAVE_BSDI_OS_FALSE='#'
5546 HAVE_BSDI_OS_TRUE='#'
5551 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5557 HAVE_SGI_OS_FALSE='#'
5559 HAVE_SGI_OS_TRUE='#'
5562 cat >>confdefs.h <<\_ACEOF
5563 #define HAVE_SGI_OS 1
5571 HAVE_SGI_OS_FALSE='#'
5573 HAVE_SGI_OS_TRUE='#'
5578 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5584 HAVE_IRIX_OS_FALSE='#'
5586 HAVE_IRIX_OS_TRUE='#'
5589 cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_IRIX_OS 1
5598 HAVE_IRIX_OS_FALSE='#'
5600 HAVE_IRIX_OS_TRUE='#'
5605 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5610 HAVE_DARWIN_OS_TRUE=
5611 HAVE_DARWIN_OS_FALSE='#'
5613 HAVE_DARWIN_OS_TRUE='#'
5614 HAVE_DARWIN_OS_FALSE=
5616 cat >>confdefs.h <<\_ACEOF
5617 #define HAVE_DARWIN_OS 1
5624 HAVE_DARWIN_OS_TRUE=
5625 HAVE_DARWIN_OS_FALSE='#'
5627 HAVE_DARWIN_OS_TRUE='#'
5628 HAVE_DARWIN_OS_FALSE=
5633 # -----------------------------------------------------------
5634 # ----------------------------------------------------------
5635 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5636 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5637 if test "x$DISTNAME" != "x"
5639 echo "distname set to $DISTNAME"
5640 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5643 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5646 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5649 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5652 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5667 elif test -f /etc/SuSE-release
5670 elif test -d /etc/SuSEconfig
5673 elif test -f /etc/mandrake-release
5676 elif test -f /etc/whitebox-release
5679 elif test -f /etc/redhat-release
5682 elif test -f /etc/gentoo-release
5685 elif test -f /etc/debian_version
5688 elif test -f /etc/slackware-version
5691 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5694 elif test -f /etc/engarde-version
5697 elif test "$CYGWIN" = yes
5700 cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_CYGWIN 1
5707 { echo "$as_me:$LINENO: result: done" >&5
5708 echo "${ECHO_T}done" >&6; }
5711 # --------------------------------------------------
5712 # Suppport for gettext (translations)
5713 # By default, $datadir is ${prefix}/share
5714 # --------------------------------------------------
5715 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5717 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5718 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 cat >conftest.make <<\_ACEOF
5724 @echo '@@@%%%=$(MAKE)=@@@%%%'
5726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5727 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5729 eval ac_cv_prog_make_${ac_make}_set=yes;;
5731 eval ac_cv_prog_make_${ac_make}_set=no;;
5735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5736 { echo "$as_me:$LINENO: result: yes" >&5
5737 echo "${ECHO_T}yes" >&6; }
5740 { echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6; }
5742 SET_MAKE="MAKE=${MAKE-make}"
5748 if test -n "$ac_aux_dir"; then
5749 case "$ac_aux_dir" in
5750 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5751 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5754 if test -z "$MKINSTALLDIRS"; then
5755 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5760 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5761 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5762 # Check whether --enable-nls was given.
5763 if test "${enable_nls+set}" = set; then
5764 enableval=$enable_nls; USE_NLS=$enableval
5769 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5770 echo "${ECHO_T}$USE_NLS" >&6; }
5777 # Prepare PATH_SEPARATOR.
5778 # The user is always right.
5779 if test "${PATH_SEPARATOR+set}" != set; then
5780 echo "#! /bin/sh" >conf$$.sh
5781 echo "exit 0" >>conf$$.sh
5783 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5791 # Find out how to test for executable files. Don't use a zero-byte file,
5792 # as systems may use methods other than mode bits to determine executability.
5793 cat >conf$$.file <<_ASEOF
5797 chmod +x conf$$.file
5798 if test -x conf$$.file >/dev/null 2>&1; then
5799 ac_executable_p="test -x"
5801 ac_executable_p="test -f"
5805 # Extract the first word of "msgfmt", so it can be a program name with args.
5806 set dummy msgfmt; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_path_MSGFMT+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5817 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5818 for ac_dir in $PATH; do
5820 test -z "$ac_dir" && ac_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5823 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5824 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5825 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5826 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5833 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5837 MSGFMT="$ac_cv_path_MSGFMT"
5838 if test "$MSGFMT" != ":"; then
5839 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5840 echo "${ECHO_T}$MSGFMT" >&6; }
5842 { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5846 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5847 set dummy gmsgfmt; ac_word=$2
5848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5850 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5877 GMSGFMT=$ac_cv_path_GMSGFMT
5878 if test -n "$GMSGFMT"; then
5879 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5880 echo "${ECHO_T}$GMSGFMT" >&6; }
5882 { echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6; }
5889 # Prepare PATH_SEPARATOR.
5890 # The user is always right.
5891 if test "${PATH_SEPARATOR+set}" != set; then
5892 echo "#! /bin/sh" >conf$$.sh
5893 echo "exit 0" >>conf$$.sh
5895 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5903 # Find out how to test for executable files. Don't use a zero-byte file,
5904 # as systems may use methods other than mode bits to determine executability.
5905 cat >conf$$.file <<_ASEOF
5909 chmod +x conf$$.file
5910 if test -x conf$$.file >/dev/null 2>&1; then
5911 ac_executable_p="test -x"
5913 ac_executable_p="test -f"
5917 # Extract the first word of "xgettext", so it can be a program name with args.
5918 set dummy xgettext; ac_word=$2
5919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5929 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5930 for ac_dir in $PATH; do
5932 test -z "$ac_dir" && ac_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5935 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5936 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5937 (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
5938 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5945 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5949 XGETTEXT="$ac_cv_path_XGETTEXT"
5950 if test "$XGETTEXT" != ":"; then
5951 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5952 echo "${ECHO_T}$XGETTEXT" >&6; }
5954 { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5961 # Prepare PATH_SEPARATOR.
5962 # The user is always right.
5963 if test "${PATH_SEPARATOR+set}" != set; then
5964 echo "#! /bin/sh" >conf$$.sh
5965 echo "exit 0" >>conf$$.sh
5967 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5975 # Find out how to test for executable files. Don't use a zero-byte file,
5976 # as systems may use methods other than mode bits to determine executability.
5977 cat >conf$$.file <<_ASEOF
5981 chmod +x conf$$.file
5982 if test -x conf$$.file >/dev/null 2>&1; then
5983 ac_executable_p="test -x"
5985 ac_executable_p="test -f"
5989 # Extract the first word of "msgmerge", so it can be a program name with args.
5990 set dummy msgmerge; ac_word=$2
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6001 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6002 for ac_dir in $PATH; do
6004 test -z "$ac_dir" && ac_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6007 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6008 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6009 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6016 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6020 MSGMERGE="$ac_cv_path_MSGMERGE"
6021 if test "$MSGMERGE" != ":"; then
6022 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6023 echo "${ECHO_T}$MSGMERGE" >&6; }
6025 { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6030 if test "$GMSGFMT" != ":"; then
6031 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6032 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6035 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6036 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6037 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6042 if test "$XGETTEXT" != ":"; then
6043 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6044 (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
6047 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6048 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6054 ac_config_commands="$ac_config_commands default-1"
6058 if test "X$prefix" = "XNONE"; then
6059 acl_final_prefix="$ac_default_prefix"
6061 acl_final_prefix="$prefix"
6063 if test "X$exec_prefix" = "XNONE"; then
6064 acl_final_exec_prefix='${prefix}'
6066 acl_final_exec_prefix="$exec_prefix"
6068 acl_save_prefix="$prefix"
6069 prefix="$acl_final_prefix"
6070 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6071 prefix="$acl_save_prefix"
6074 # Check whether --with-gnu-ld was given.
6075 if test "${with_gnu_ld+set}" = set; then
6076 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6081 # Prepare PATH_SEPARATOR.
6082 # The user is always right.
6083 if test "${PATH_SEPARATOR+set}" != set; then
6084 echo "#! /bin/sh" >conf$$.sh
6085 echo "exit 0" >>conf$$.sh
6087 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6095 if test "$GCC" = yes; then
6096 # Check if gcc -print-prog-name=ld gives a path.
6097 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6098 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6101 # gcc leaves a trailing carriage return which upsets mingw
6102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6107 # Accept absolute paths.
6108 [\\/]* | [A-Za-z]:[\\/]*)
6109 re_direlt='/[^/][^/]*/\.\./'
6110 # Canonicalize the path of ld
6111 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6112 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6113 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6115 test -z "$LD" && LD="$ac_prog"
6118 # If it fails, then pretend we aren't using GCC.
6122 # If it is relative, then search for the first ld in PATH.
6126 elif test "$with_gnu_ld" = yes; then
6127 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6128 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6130 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6131 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6133 if test "${acl_cv_path_LD+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 if test -z "$LD"; then
6137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6138 for ac_dir in $PATH; do
6139 test -z "$ac_dir" && ac_dir=.
6140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6141 acl_cv_path_LD="$ac_dir/$ac_prog"
6142 # Check to see if the program is GNU ld. I'd rather use --version,
6143 # but apparently some GNU ld's only accept -v.
6144 # Break only if it was the GNU/non-GNU ld that we prefer.
6145 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6146 *GNU* | *'with BFD'*)
6147 test "$with_gnu_ld" != no && break ;;
6149 test "$with_gnu_ld" != yes && break ;;
6155 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6159 LD="$acl_cv_path_LD"
6160 if test -n "$LD"; then
6161 { echo "$as_me:$LINENO: result: $LD" >&5
6162 echo "${ECHO_T}$LD" >&6; }
6164 { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6167 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6168 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6169 { (exit 1); exit 1; }; }
6170 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6171 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6172 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6176 case `$LD -v 2>&1 </dev/null` in
6177 *GNU* | *'with BFD'*)
6178 acl_cv_prog_gnu_ld=yes ;;
6180 acl_cv_prog_gnu_ld=no ;;
6183 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6184 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6185 with_gnu_ld=$acl_cv_prog_gnu_ld
6190 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6191 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6192 if test "${acl_cv_rpath+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6197 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6203 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6204 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6206 libext="$acl_cv_libext"
6207 shlibext="$acl_cv_shlibext"
6208 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6209 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6210 hardcode_direct="$acl_cv_hardcode_direct"
6211 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6212 # Check whether --enable-rpath was given.
6213 if test "${enable_rpath+set}" = set; then
6214 enableval=$enable_rpath; :
6228 acl_save_prefix="$prefix"
6229 prefix="$acl_final_prefix"
6230 acl_save_exec_prefix="$exec_prefix"
6231 exec_prefix="$acl_final_exec_prefix"
6233 eval additional_includedir=\"$includedir\"
6234 eval additional_libdir=\"$libdir\"
6236 exec_prefix="$acl_save_exec_prefix"
6237 prefix="$acl_save_prefix"
6240 # Check whether --with-libiconv-prefix was given.
6241 if test "${with_libiconv_prefix+set}" = set; then
6242 withval=$with_libiconv_prefix;
6243 if test "X$withval" = "Xno"; then
6246 if test "X$withval" = "X"; then
6248 acl_save_prefix="$prefix"
6249 prefix="$acl_final_prefix"
6250 acl_save_exec_prefix="$exec_prefix"
6251 exec_prefix="$acl_final_exec_prefix"
6253 eval additional_includedir=\"$includedir\"
6254 eval additional_libdir=\"$libdir\"
6256 exec_prefix="$acl_save_exec_prefix"
6257 prefix="$acl_save_prefix"
6260 additional_includedir="$withval/include"
6261 additional_libdir="$withval/lib"
6272 names_already_handled=
6273 names_next_round='iconv '
6274 while test -n "$names_next_round"; do
6275 names_this_round="$names_next_round"
6277 for name in $names_this_round; do
6279 for n in $names_already_handled; do
6280 if test "$n" = "$name"; then
6285 if test -z "$already_handled"; then
6286 names_already_handled="$names_already_handled $name"
6287 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6288 eval value=\"\$HAVE_LIB$uppername\"
6289 if test -n "$value"; then
6290 if test "$value" = yes; then
6291 eval value=\"\$LIB$uppername\"
6292 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6293 eval value=\"\$LTLIB$uppername\"
6294 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6303 if test $use_additional = yes; then
6304 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6305 found_dir="$additional_libdir"
6306 found_so="$additional_libdir/lib$name.$shlibext"
6307 if test -f "$additional_libdir/lib$name.la"; then
6308 found_la="$additional_libdir/lib$name.la"
6311 if test -f "$additional_libdir/lib$name.$libext"; then
6312 found_dir="$additional_libdir"
6313 found_a="$additional_libdir/lib$name.$libext"
6314 if test -f "$additional_libdir/lib$name.la"; then
6315 found_la="$additional_libdir/lib$name.la"
6320 if test "X$found_dir" = "X"; then
6321 for x in $LDFLAGS $LTLIBICONV; do
6323 acl_save_prefix="$prefix"
6324 prefix="$acl_final_prefix"
6325 acl_save_exec_prefix="$exec_prefix"
6326 exec_prefix="$acl_final_exec_prefix"
6328 exec_prefix="$acl_save_exec_prefix"
6329 prefix="$acl_save_prefix"
6333 dir=`echo "X$x" | sed -e 's/^X-L//'`
6334 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6336 found_so="$dir/lib$name.$shlibext"
6337 if test -f "$dir/lib$name.la"; then
6338 found_la="$dir/lib$name.la"
6341 if test -f "$dir/lib$name.$libext"; then
6343 found_a="$dir/lib$name.$libext"
6344 if test -f "$dir/lib$name.la"; then
6345 found_la="$dir/lib$name.la"
6351 if test "X$found_dir" != "X"; then
6356 if test "X$found_dir" != "X"; then
6357 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6358 if test "X$found_so" != "X"; then
6359 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6360 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6363 for x in $ltrpathdirs; do
6364 if test "X$x" = "X$found_dir"; then
6369 if test -z "$haveit"; then
6370 ltrpathdirs="$ltrpathdirs $found_dir"
6372 if test "$hardcode_direct" = yes; then
6373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6375 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6376 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6378 for x in $rpathdirs; do
6379 if test "X$x" = "X$found_dir"; then
6384 if test -z "$haveit"; then
6385 rpathdirs="$rpathdirs $found_dir"
6389 for x in $LDFLAGS $LIBICONV; do
6391 acl_save_prefix="$prefix"
6392 prefix="$acl_final_prefix"
6393 acl_save_exec_prefix="$exec_prefix"
6394 exec_prefix="$acl_final_exec_prefix"
6396 exec_prefix="$acl_save_exec_prefix"
6397 prefix="$acl_save_prefix"
6399 if test "X$x" = "X-L$found_dir"; then
6404 if test -z "$haveit"; then
6405 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6407 if test "$hardcode_minus_L" != no; then
6408 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6410 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6416 if test "X$found_a" != "X"; then
6417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6419 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6422 additional_includedir=
6423 case "$found_dir" in
6425 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6426 additional_includedir="$basedir/include"
6429 if test "X$additional_includedir" != "X"; then
6430 if test "X$additional_includedir" != "X/usr/include"; then
6432 if test "X$additional_includedir" = "X/usr/local/include"; then
6433 if test -n "$GCC"; then
6435 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6439 if test -z "$haveit"; then
6440 for x in $CPPFLAGS $INCICONV; do
6442 acl_save_prefix="$prefix"
6443 prefix="$acl_final_prefix"
6444 acl_save_exec_prefix="$exec_prefix"
6445 exec_prefix="$acl_final_exec_prefix"
6447 exec_prefix="$acl_save_exec_prefix"
6448 prefix="$acl_save_prefix"
6450 if test "X$x" = "X-I$additional_includedir"; then
6455 if test -z "$haveit"; then
6456 if test -d "$additional_includedir"; then
6457 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6463 if test -n "$found_la"; then
6464 save_libdir="$libdir"
6466 */* | *\\*) . "$found_la" ;;
6467 *) . "./$found_la" ;;
6469 libdir="$save_libdir"
6470 for dep in $dependency_libs; do
6473 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6474 if test "X$additional_libdir" != "X/usr/lib"; then
6476 if test "X$additional_libdir" = "X/usr/local/lib"; then
6477 if test -n "$GCC"; then
6479 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6483 if test -z "$haveit"; then
6485 for x in $LDFLAGS $LIBICONV; do
6487 acl_save_prefix="$prefix"
6488 prefix="$acl_final_prefix"
6489 acl_save_exec_prefix="$exec_prefix"
6490 exec_prefix="$acl_final_exec_prefix"
6492 exec_prefix="$acl_save_exec_prefix"
6493 prefix="$acl_save_prefix"
6495 if test "X$x" = "X-L$additional_libdir"; then
6500 if test -z "$haveit"; then
6501 if test -d "$additional_libdir"; then
6502 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6506 for x in $LDFLAGS $LTLIBICONV; do
6508 acl_save_prefix="$prefix"
6509 prefix="$acl_final_prefix"
6510 acl_save_exec_prefix="$exec_prefix"
6511 exec_prefix="$acl_final_exec_prefix"
6513 exec_prefix="$acl_save_exec_prefix"
6514 prefix="$acl_save_prefix"
6516 if test "X$x" = "X-L$additional_libdir"; then
6521 if test -z "$haveit"; then
6522 if test -d "$additional_libdir"; then
6523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6530 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6531 if test "$enable_rpath" != no; then
6533 for x in $rpathdirs; do
6534 if test "X$x" = "X$dir"; then
6539 if test -z "$haveit"; then
6540 rpathdirs="$rpathdirs $dir"
6543 for x in $ltrpathdirs; do
6544 if test "X$x" = "X$dir"; then
6549 if test -z "$haveit"; then
6550 ltrpathdirs="$ltrpathdirs $dir"
6555 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6558 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6561 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6562 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6568 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6569 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6575 if test "X$rpathdirs" != "X"; then
6576 if test -n "$hardcode_libdir_separator"; then
6578 for found_dir in $rpathdirs; do
6579 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6581 acl_save_libdir="$libdir"
6583 eval flag=\"$hardcode_libdir_flag_spec\"
6584 libdir="$acl_save_libdir"
6585 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6587 for found_dir in $rpathdirs; do
6588 acl_save_libdir="$libdir"
6590 eval flag=\"$hardcode_libdir_flag_spec\"
6591 libdir="$acl_save_libdir"
6592 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6596 if test "X$ltrpathdirs" != "X"; then
6597 for found_dir in $ltrpathdirs; do
6598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6619 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6620 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6621 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 gt_save_CPPFLAGS="$CPPFLAGS"
6625 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6626 gt_save_LIBS="$LIBS"
6627 LIBS="$LIBS -framework CoreFoundation"
6628 cat >conftest.$ac_ext <<_ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 #include <CFPreferences.h>
6638 CFPreferencesCopyAppValue(NULL, NULL)
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (ac_try="$ac_link"
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650 (eval "$ac_link") 2>conftest.er1
6652 grep -v '^ *+' conftest.er1 >conftest.err
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } && {
6657 test -z "$ac_c_werror_flag" ||
6658 test ! -s conftest.err
6659 } && test -s conftest$ac_exeext &&
6660 $as_test_x conftest$ac_exeext; then
6661 gt_cv_func_CFPreferencesCopyAppValue=yes
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666 gt_cv_func_CFPreferencesCopyAppValue=no
6669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6670 conftest$ac_exeext conftest.$ac_ext
6671 CPPFLAGS="$gt_save_CPPFLAGS"
6672 LIBS="$gt_save_LIBS"
6674 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6675 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6676 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6678 cat >>confdefs.h <<\_ACEOF
6679 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6683 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6684 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6685 if test "${gt_cv_func_CFLocaleCopyCurrent+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 <CFLocale.h>
6702 CFLocaleCopyCurrent();
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 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest$ac_exeext &&
6724 $as_test_x conftest$ac_exeext; then
6725 gt_cv_func_CFLocaleCopyCurrent=yes
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 gt_cv_func_CFLocaleCopyCurrent=no
6733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6734 conftest$ac_exeext conftest.$ac_ext
6735 CPPFLAGS="$gt_save_CPPFLAGS"
6736 LIBS="$gt_save_LIBS"
6738 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6739 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6740 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6742 cat >>confdefs.h <<\_ACEOF
6743 #define HAVE_CFLOCALECOPYCURRENT 1
6748 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6749 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6755 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6756 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6757 # Check whether --enable-nls was given.
6758 if test "${enable_nls+set}" = set; then
6759 enableval=$enable_nls; USE_NLS=$enableval
6764 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6765 echo "${ECHO_T}$USE_NLS" >&6; }
6774 if test "$USE_NLS" = "yes"; then
6775 gt_use_preinstalled_gnugettext=no
6782 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6783 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6784 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 #include <libintl.h>
6794 extern int _nl_msg_cat_cntr;
6795 extern int *_nl_domain_bindings;
6799 bindtextdomain ("", "");
6800 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (ac_try="$ac_link"
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_link") 2>conftest.er1
6814 grep -v '^ *+' conftest.er1 >conftest.err
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } && {
6819 test -z "$ac_c_werror_flag" ||
6820 test ! -s conftest.err
6821 } && test -s conftest$ac_exeext &&
6822 $as_test_x conftest$ac_exeext; then
6823 gt_cv_func_gnugettext1_libc=yes
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6828 gt_cv_func_gnugettext1_libc=no
6831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6834 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6835 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6837 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6843 am_save_CPPFLAGS="$CPPFLAGS"
6845 for element in $INCICONV; do
6847 for x in $CPPFLAGS; do
6849 acl_save_prefix="$prefix"
6850 prefix="$acl_final_prefix"
6851 acl_save_exec_prefix="$exec_prefix"
6852 exec_prefix="$acl_final_exec_prefix"
6854 exec_prefix="$acl_save_exec_prefix"
6855 prefix="$acl_save_prefix"
6857 if test "X$x" = "X$element"; then
6862 if test -z "$haveit"; then
6863 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6868 { echo "$as_me:$LINENO: checking for iconv" >&5
6869 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6870 if test "${am_cv_func_iconv+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 am_cv_func_iconv="no, consider installing GNU libiconv"
6876 cat >conftest.$ac_ext <<_ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6887 iconv_t cd = iconv_open("","");
6888 iconv(cd,NULL,NULL,NULL,NULL);
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (ac_try="$ac_link"
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901 (eval "$ac_link") 2>conftest.er1
6903 grep -v '^ *+' conftest.er1 >conftest.err
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } && {
6908 test -z "$ac_c_werror_flag" ||
6909 test ! -s conftest.err
6910 } && test -s conftest$ac_exeext &&
6911 $as_test_x conftest$ac_exeext; then
6912 am_cv_func_iconv=yes
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6921 conftest$ac_exeext conftest.$ac_ext
6922 if test "$am_cv_func_iconv" != yes; then
6923 am_save_LIBS="$LIBS"
6924 LIBS="$LIBS $LIBICONV"
6925 cat >conftest.$ac_ext <<_ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6936 iconv_t cd = iconv_open("","");
6937 iconv(cd,NULL,NULL,NULL,NULL);
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (ac_try="$ac_link"
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_link") 2>conftest.er1
6952 grep -v '^ *+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_c_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest$ac_exeext &&
6960 $as_test_x conftest$ac_exeext; then
6962 am_cv_func_iconv=yes
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6971 conftest$ac_exeext conftest.$ac_ext
6972 LIBS="$am_save_LIBS"
6976 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6977 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6978 if test "$am_cv_func_iconv" = yes; then
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_ICONV 1
6985 if test "$am_cv_lib_iconv" = yes; then
6986 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6987 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6988 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6989 echo "${ECHO_T}$LIBICONV" >&6; }
6991 CPPFLAGS="$am_save_CPPFLAGS"
7003 acl_save_prefix="$prefix"
7004 prefix="$acl_final_prefix"
7005 acl_save_exec_prefix="$exec_prefix"
7006 exec_prefix="$acl_final_exec_prefix"
7008 eval additional_includedir=\"$includedir\"
7009 eval additional_libdir=\"$libdir\"
7011 exec_prefix="$acl_save_exec_prefix"
7012 prefix="$acl_save_prefix"
7015 # Check whether --with-libintl-prefix was given.
7016 if test "${with_libintl_prefix+set}" = set; then
7017 withval=$with_libintl_prefix;
7018 if test "X$withval" = "Xno"; then
7021 if test "X$withval" = "X"; then
7023 acl_save_prefix="$prefix"
7024 prefix="$acl_final_prefix"
7025 acl_save_exec_prefix="$exec_prefix"
7026 exec_prefix="$acl_final_exec_prefix"
7028 eval additional_includedir=\"$includedir\"
7029 eval additional_libdir=\"$libdir\"
7031 exec_prefix="$acl_save_exec_prefix"
7032 prefix="$acl_save_prefix"
7035 additional_includedir="$withval/include"
7036 additional_libdir="$withval/lib"
7047 names_already_handled=
7048 names_next_round='intl '
7049 while test -n "$names_next_round"; do
7050 names_this_round="$names_next_round"
7052 for name in $names_this_round; do
7054 for n in $names_already_handled; do
7055 if test "$n" = "$name"; then
7060 if test -z "$already_handled"; then
7061 names_already_handled="$names_already_handled $name"
7062 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7063 eval value=\"\$HAVE_LIB$uppername\"
7064 if test -n "$value"; then
7065 if test "$value" = yes; then
7066 eval value=\"\$LIB$uppername\"
7067 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7068 eval value=\"\$LTLIB$uppername\"
7069 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7078 if test $use_additional = yes; then
7079 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7080 found_dir="$additional_libdir"
7081 found_so="$additional_libdir/lib$name.$shlibext"
7082 if test -f "$additional_libdir/lib$name.la"; then
7083 found_la="$additional_libdir/lib$name.la"
7086 if test -f "$additional_libdir/lib$name.$libext"; then
7087 found_dir="$additional_libdir"
7088 found_a="$additional_libdir/lib$name.$libext"
7089 if test -f "$additional_libdir/lib$name.la"; then
7090 found_la="$additional_libdir/lib$name.la"
7095 if test "X$found_dir" = "X"; then
7096 for x in $LDFLAGS $LTLIBINTL; do
7098 acl_save_prefix="$prefix"
7099 prefix="$acl_final_prefix"
7100 acl_save_exec_prefix="$exec_prefix"
7101 exec_prefix="$acl_final_exec_prefix"
7103 exec_prefix="$acl_save_exec_prefix"
7104 prefix="$acl_save_prefix"
7108 dir=`echo "X$x" | sed -e 's/^X-L//'`
7109 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7111 found_so="$dir/lib$name.$shlibext"
7112 if test -f "$dir/lib$name.la"; then
7113 found_la="$dir/lib$name.la"
7116 if test -f "$dir/lib$name.$libext"; then
7118 found_a="$dir/lib$name.$libext"
7119 if test -f "$dir/lib$name.la"; then
7120 found_la="$dir/lib$name.la"
7126 if test "X$found_dir" != "X"; then
7131 if test "X$found_dir" != "X"; then
7132 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7133 if test "X$found_so" != "X"; then
7134 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7135 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7138 for x in $ltrpathdirs; do
7139 if test "X$x" = "X$found_dir"; then
7144 if test -z "$haveit"; then
7145 ltrpathdirs="$ltrpathdirs $found_dir"
7147 if test "$hardcode_direct" = yes; then
7148 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7150 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7153 for x in $rpathdirs; do
7154 if test "X$x" = "X$found_dir"; then
7159 if test -z "$haveit"; then
7160 rpathdirs="$rpathdirs $found_dir"
7164 for x in $LDFLAGS $LIBINTL; do
7166 acl_save_prefix="$prefix"
7167 prefix="$acl_final_prefix"
7168 acl_save_exec_prefix="$exec_prefix"
7169 exec_prefix="$acl_final_exec_prefix"
7171 exec_prefix="$acl_save_exec_prefix"
7172 prefix="$acl_save_prefix"
7174 if test "X$x" = "X-L$found_dir"; then
7179 if test -z "$haveit"; then
7180 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7182 if test "$hardcode_minus_L" != no; then
7183 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7185 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7191 if test "X$found_a" != "X"; then
7192 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7194 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7197 additional_includedir=
7198 case "$found_dir" in
7200 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7201 additional_includedir="$basedir/include"
7204 if test "X$additional_includedir" != "X"; then
7205 if test "X$additional_includedir" != "X/usr/include"; then
7207 if test "X$additional_includedir" = "X/usr/local/include"; then
7208 if test -n "$GCC"; then
7210 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7214 if test -z "$haveit"; then
7215 for x in $CPPFLAGS $INCINTL; do
7217 acl_save_prefix="$prefix"
7218 prefix="$acl_final_prefix"
7219 acl_save_exec_prefix="$exec_prefix"
7220 exec_prefix="$acl_final_exec_prefix"
7222 exec_prefix="$acl_save_exec_prefix"
7223 prefix="$acl_save_prefix"
7225 if test "X$x" = "X-I$additional_includedir"; then
7230 if test -z "$haveit"; then
7231 if test -d "$additional_includedir"; then
7232 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7238 if test -n "$found_la"; then
7239 save_libdir="$libdir"
7241 */* | *\\*) . "$found_la" ;;
7242 *) . "./$found_la" ;;
7244 libdir="$save_libdir"
7245 for dep in $dependency_libs; do
7248 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7249 if test "X$additional_libdir" != "X/usr/lib"; then
7251 if test "X$additional_libdir" = "X/usr/local/lib"; then
7252 if test -n "$GCC"; then
7254 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7258 if test -z "$haveit"; then
7260 for x in $LDFLAGS $LIBINTL; do
7262 acl_save_prefix="$prefix"
7263 prefix="$acl_final_prefix"
7264 acl_save_exec_prefix="$exec_prefix"
7265 exec_prefix="$acl_final_exec_prefix"
7267 exec_prefix="$acl_save_exec_prefix"
7268 prefix="$acl_save_prefix"
7270 if test "X$x" = "X-L$additional_libdir"; then
7275 if test -z "$haveit"; then
7276 if test -d "$additional_libdir"; then
7277 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7281 for x in $LDFLAGS $LTLIBINTL; do
7283 acl_save_prefix="$prefix"
7284 prefix="$acl_final_prefix"
7285 acl_save_exec_prefix="$exec_prefix"
7286 exec_prefix="$acl_final_exec_prefix"
7288 exec_prefix="$acl_save_exec_prefix"
7289 prefix="$acl_save_prefix"
7291 if test "X$x" = "X-L$additional_libdir"; then
7296 if test -z "$haveit"; then
7297 if test -d "$additional_libdir"; then
7298 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7305 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7306 if test "$enable_rpath" != no; then
7308 for x in $rpathdirs; do
7309 if test "X$x" = "X$dir"; then
7314 if test -z "$haveit"; then
7315 rpathdirs="$rpathdirs $dir"
7318 for x in $ltrpathdirs; do
7319 if test "X$x" = "X$dir"; then
7324 if test -z "$haveit"; then
7325 ltrpathdirs="$ltrpathdirs $dir"
7330 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7333 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7336 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7337 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7343 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7344 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7350 if test "X$rpathdirs" != "X"; then
7351 if test -n "$hardcode_libdir_separator"; then
7353 for found_dir in $rpathdirs; do
7354 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7356 acl_save_libdir="$libdir"
7358 eval flag=\"$hardcode_libdir_flag_spec\"
7359 libdir="$acl_save_libdir"
7360 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7362 for found_dir in $rpathdirs; do
7363 acl_save_libdir="$libdir"
7365 eval flag=\"$hardcode_libdir_flag_spec\"
7366 libdir="$acl_save_libdir"
7367 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7371 if test "X$ltrpathdirs" != "X"; then
7372 for found_dir in $ltrpathdirs; do
7373 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7377 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7378 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7379 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 gt_save_CPPFLAGS="$CPPFLAGS"
7383 CPPFLAGS="$CPPFLAGS $INCINTL"
7384 gt_save_LIBS="$LIBS"
7385 LIBS="$LIBS $LIBINTL"
7386 cat >conftest.$ac_ext <<_ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 #include <libintl.h>
7393 extern int _nl_msg_cat_cntr;
7398 const char *_nl_expand_alias (const char *);
7402 bindtextdomain ("", "");
7403 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (ac_try="$ac_link"
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_link") 2>conftest.er1
7417 grep -v '^ *+' conftest.er1 >conftest.err
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } && {
7422 test -z "$ac_c_werror_flag" ||
7423 test ! -s conftest.err
7424 } && test -s conftest$ac_exeext &&
7425 $as_test_x conftest$ac_exeext; then
7426 gt_cv_func_gnugettext1_libintl=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 gt_cv_func_gnugettext1_libintl=no
7434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7435 conftest$ac_exeext conftest.$ac_ext
7436 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7437 LIBS="$LIBS $LIBICONV"
7438 cat >conftest.$ac_ext <<_ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 #include <libintl.h>
7445 extern int _nl_msg_cat_cntr;
7450 const char *_nl_expand_alias (const char *);
7454 bindtextdomain ("", "");
7455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_link") 2>conftest.er1
7469 grep -v '^ *+' conftest.er1 >conftest.err
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_c_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest$ac_exeext &&
7477 $as_test_x conftest$ac_exeext; then
7478 LIBINTL="$LIBINTL $LIBICONV"
7479 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7480 gt_cv_func_gnugettext1_libintl=yes
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7490 conftest$ac_exeext conftest.$ac_ext
7492 CPPFLAGS="$gt_save_CPPFLAGS"
7493 LIBS="$gt_save_LIBS"
7495 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7496 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7499 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7500 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7501 && test "$PACKAGE" != gettext-runtime \
7502 && test "$PACKAGE" != gettext-tools; }; then
7503 gt_use_preinstalled_gnugettext=yes
7512 if test -n "$INTL_MACOSX_LIBS"; then
7513 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7514 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7515 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7516 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7520 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7521 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7523 cat >>confdefs.h <<\_ACEOF
7524 #define ENABLE_NLS 1
7532 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7533 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7534 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7535 echo "${ECHO_T}$USE_NLS" >&6; }
7536 if test "$USE_NLS" = "yes"; then
7537 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7538 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7539 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7540 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7541 gt_source="external libintl"
7546 gt_source="included intl directory"
7548 { echo "$as_me:$LINENO: result: $gt_source" >&5
7549 echo "${ECHO_T}$gt_source" >&6; }
7552 if test "$USE_NLS" = "yes"; then
7554 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7555 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7556 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7557 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7558 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7559 echo "${ECHO_T}$LIBINTL" >&6; }
7561 for element in $INCINTL; do
7563 for x in $CPPFLAGS; do
7565 acl_save_prefix="$prefix"
7566 prefix="$acl_final_prefix"
7567 acl_save_exec_prefix="$exec_prefix"
7568 exec_prefix="$acl_final_exec_prefix"
7570 exec_prefix="$acl_save_exec_prefix"
7571 prefix="$acl_save_prefix"
7573 if test "X$x" = "X$element"; then
7578 if test -z "$haveit"; then
7579 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7586 cat >>confdefs.h <<\_ACEOF
7587 #define HAVE_GETTEXT 1
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_DCGETTEXT 1
7609 if test x${prefix} = xNONE ; then
7610 if test `eval echo ${datadir}` = NONE/share ; then
7615 # ------------------------------------------------------------------
7616 # If the user has not set --prefix, we set our default to nothing.
7617 # In this case, if the user has not set --sysconfdir, we set it
7618 # to the package default of /etc/bacula. If either --prefix or
7619 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7620 # ------------------------------------------------------------------
7621 if test x${prefix} = xNONE ; then
7622 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7623 sysconfdir=/etc/bacula
7627 sysconfdir=`eval echo ${sysconfdir}`
7628 datadir=`eval echo ${datadir}`
7629 localedir=`eval echo ${datadir}/locale`
7630 cat >>confdefs.h <<_ACEOF
7631 #define LOCALEDIR "$localedir"
7634 cat >>confdefs.h <<_ACEOF
7635 #define SYSCONFDIR "$sysconfdir"
7639 # -------------------------------------------------------------------------
7640 # If the user has not set --exec-prefix, we default to ${prefix}
7641 # -------------------------------------------------------------------------
7642 if test x${exec_prefix} = xNONE ; then
7643 exec_prefix=${prefix}
7646 # ------------------------------------------------------------------
7647 # If the user has not set --sbindir, we set our default as /sbin
7648 # ------------------------------------------------------------------
7649 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7650 sbindir=${exec_prefix}/sbin
7652 sbindir=`eval echo ${sbindir}`
7655 # -------------------------------------------------------------------------
7656 # If the user has not set --mandir, we default to /usr/share/man
7657 # -------------------------------------------------------------------------
7658 if test x$mandir = x'${prefix}/man' ; then
7659 mandir=/usr/share/man
7663 for ac_prog in msgfmt
7665 # Extract the first word of "$ac_prog", so it can be a program name with args.
7666 set dummy $ac_prog; ac_word=$2
7667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_MSGFMT+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 MSGFMT=$ac_cv_path_MSGFMT
7696 if test -n "$MSGFMT"; then
7697 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7698 echo "${ECHO_T}$MSGFMT" >&6; }
7700 { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7705 test -n "$MSGFMT" && break
7707 test -n "$MSGFMT" || MSGFMT="no"
7709 if test "$MSGFMT" = "no"
7711 echo 'msgfmt program not found, disabling NLS !'
7713 USE_INCLUDED_LIBINTL=no
7716 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7717 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7718 if test "${ac_cv_gnu_library_2+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7728 #include <features.h>
7729 #ifdef __GNU_LIBRARY__
7730 #if (__GLIBC__ >= 2)
7736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7737 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7738 ac_cv_gnu_library_2=yes
7740 ac_cv_gnu_library_2=no
7747 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7748 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7750 GLIBC2="$ac_cv_gnu_library_2"
7754 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7755 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7756 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 ac_check_lib_save_LIBS=$LIBS
7760 LIBS="-lcposix $LIBS"
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7768 /* Override any GCC internal prototype to avoid an error.
7769 Use char because int might match the return type of a GCC
7770 builtin and then its argument prototype would still apply. */
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (ac_try="$ac_link"
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_link") 2>conftest.er1
7792 grep -v '^ *+' conftest.er1 >conftest.err
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest$ac_exeext &&
7800 $as_test_x conftest$ac_exeext; then
7801 ac_cv_lib_cposix_strerror=yes
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7806 ac_cv_lib_cposix_strerror=no
7809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7810 conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS
7813 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7814 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7815 if test $ac_cv_lib_cposix_strerror = yes; then
7816 LIBS="$LIBS -lcposix"
7821 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7823 if test "${ac_cv_header_stdc+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 cat >conftest.$ac_ext <<_ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_cv_header_stdc=yes
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 ac_cv_header_stdc=no
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 if test $ac_cv_header_stdc = yes; then
7873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7884 $EGREP "memchr" >/dev/null 2>&1; then
7887 ac_cv_header_stdc=no
7893 if test $ac_cv_header_stdc = yes; then
7894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7895 cat >conftest.$ac_ext <<_ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7905 $EGREP "free" >/dev/null 2>&1; then
7908 ac_cv_header_stdc=no
7914 if test $ac_cv_header_stdc = yes; then
7915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7916 if test "$cross_compiling" = yes; then
7919 cat >conftest.$ac_ext <<_ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7927 #if ((' ' & 0x0FF) == 0x020)
7928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7931 # define ISLOWER(c) \
7932 (('a' <= (c) && (c) <= 'i') \
7933 || ('j' <= (c) && (c) <= 'r') \
7934 || ('s' <= (c) && (c) <= 'z'))
7935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7943 for (i = 0; i < 256; i++)
7944 if (XOR (islower (i), ISLOWER (i))
7945 || toupper (i) != TOUPPER (i))
7950 rm -f conftest$ac_exeext
7951 if { (ac_try="$ac_link"
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_link") 2>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7972 echo "$as_me: program exited with status $ac_status" >&5
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_cv_header_stdc=no
7979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7985 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7986 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7987 if test $ac_cv_header_stdc = yes; then
7989 cat >>confdefs.h <<\_ACEOF
7990 #define STDC_HEADERS 1
7995 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7996 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7997 if test "${ac_cv_c_const+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 cat >conftest.$ac_ext <<_ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8010 /* FIXME: Include the comments suggested by Paul. */
8012 /* Ultrix mips cc rejects this. */
8013 typedef int charset[2];
8015 /* SunOS 4.1.1 cc rejects this. */
8016 char const *const *pcpcc;
8018 /* NEC SVR4.0.2 mips cc rejects this. */
8019 struct point {int x, y;};
8020 static struct point const zero = {0,0};
8021 /* AIX XL C 1.02.0.0 rejects this.
8022 It does not let you subtract one const X* pointer from another in
8023 an arm of an if-expression whose if-part is not a constant
8025 const char *g = "string";
8026 pcpcc = &g + (g ? g-g : 0);
8027 /* HPUX 7.0 cc rejects these. */
8029 ppc = (char**) pcpcc;
8030 pcpcc = (char const *const *) ppc;
8031 { /* SCO 3.2v4 cc rejects this. */
8033 char const *s = 0 ? (char *) 0 : (char const *) 0;
8038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8040 const int *foo = &x[0];
8043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8044 typedef const int *iptr;
8048 { /* AIX XL C 1.02.0.0 rejects this saying
8049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8050 struct s { int j; const int *ap[3]; };
8051 struct s *b; b->j = 5;
8053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8057 return !cs[0] && !zero.x;
8064 rm -f conftest.$ac_objext
8065 if { (ac_try="$ac_compile"
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_compile") 2>conftest.er1
8073 grep -v '^ *+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest.$ac_objext; then
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8092 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8093 if test $ac_cv_c_const = no; then
8095 cat >>confdefs.h <<\_ACEOF
8102 { echo "$as_me:$LINENO: checking for signed" >&5
8103 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8104 if test "${bh_cv_c_signed+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8122 rm -f conftest.$ac_objext
8123 if { (ac_try="$ac_compile"
8125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126 *) ac_try_echo=$ac_try;;
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129 (eval "$ac_compile") 2>conftest.er1
8131 grep -v '^ *+' conftest.er1 >conftest.err
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_c_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest.$ac_objext; then
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8150 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8151 if test $bh_cv_c_signed = no; then
8153 cat >>confdefs.h <<\_ACEOF
8159 { echo "$as_me:$LINENO: checking for inline" >&5
8160 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8161 if test "${ac_cv_c_inline+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 for ac_kw in inline __inline__ __inline; do
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8174 static $ac_kw foo_t static_foo () {return 0; }
8175 $ac_kw foo_t foo () {return 0; }
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_c_inline=$ac_kw
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 test "$ac_cv_c_inline" != no && break
8209 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8210 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8213 case $ac_cv_c_inline in
8216 case $ac_cv_c_inline in
8218 *) ac_val=$ac_cv_c_inline;;
8220 cat >>confdefs.h <<_ACEOF
8222 #define inline $ac_val
8228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8239 inttypes.h stdint.h unistd.h
8241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 cat >conftest.$ac_ext <<_ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 $ac_includes_default
8255 #include <$ac_header>
8257 rm -f conftest.$ac_objext
8258 if { (ac_try="$ac_compile"
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_compile") 2>conftest.er1
8266 grep -v '^ *+' conftest.er1 >conftest.err
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } && {
8271 test -z "$ac_c_werror_flag" ||
8272 test ! -s conftest.err
8273 } && test -s conftest.$ac_objext; then
8274 eval "$as_ac_Header=yes"
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 eval "$as_ac_Header=no"
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 ac_res=`eval echo '${'$as_ac_Header'}'`
8285 { echo "$as_me:$LINENO: result: $ac_res" >&5
8286 echo "${ECHO_T}$ac_res" >&6; }
8287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8288 cat >>confdefs.h <<_ACEOF
8289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8297 { echo "$as_me:$LINENO: checking for off_t" >&5
8298 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8299 if test "${ac_cv_type_off_t+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 cat >conftest.$ac_ext <<_ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h. */
8308 $ac_includes_default
8309 typedef off_t ac__type_new_;
8313 if ((ac__type_new_ *) 0)
8315 if (sizeof (ac__type_new_))
8321 rm -f conftest.$ac_objext
8322 if { (ac_try="$ac_compile"
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_compile") 2>conftest.er1
8330 grep -v '^ *+' conftest.er1 >conftest.err
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && {
8335 test -z "$ac_c_werror_flag" ||
8336 test ! -s conftest.err
8337 } && test -s conftest.$ac_objext; then
8338 ac_cv_type_off_t=yes
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8349 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8350 if test $ac_cv_type_off_t = yes; then
8354 cat >>confdefs.h <<_ACEOF
8355 #define off_t long int
8360 { echo "$as_me:$LINENO: checking for size_t" >&5
8361 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8362 if test "${ac_cv_type_size_t+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 typedef size_t ac__type_new_;
8376 if ((ac__type_new_ *) 0)
8378 if (sizeof (ac__type_new_))
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_compile") 2>conftest.er1
8393 grep -v '^ *+' conftest.er1 >conftest.err
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } && {
8398 test -z "$ac_c_werror_flag" ||
8399 test ! -s conftest.err
8400 } && test -s conftest.$ac_objext; then
8401 ac_cv_type_size_t=yes
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 ac_cv_type_size_t=no
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8412 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8413 if test $ac_cv_type_size_t = yes; then
8417 cat >>confdefs.h <<_ACEOF
8418 #define size_t unsigned int
8424 { echo "$as_me:$LINENO: checking for long long" >&5
8425 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8426 if test "${ac_cv_type_long_long+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 cat >conftest.$ac_ext <<_ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 long long ll = 1LL; int i = 63;
8439 long long llmax = (long long) -1;
8440 return ll << i | ll >> i | llmax / ll | llmax % ll;
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (ac_try="$ac_link"
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_link") 2>conftest.er1
8454 grep -v '^ *+' conftest.er1 >conftest.err
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest$ac_exeext &&
8462 $as_test_x conftest$ac_exeext; then
8463 ac_cv_type_long_long=yes
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 ac_cv_type_long_long=no
8471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8472 conftest$ac_exeext conftest.$ac_ext
8474 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8475 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8476 if test $ac_cv_type_long_long = yes; then
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_LONG_LONG 1
8485 { echo "$as_me:$LINENO: checking for long double" >&5
8486 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8487 if test "${gt_cv_c_long_double+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 if test "$GCC" = yes; then
8491 gt_cv_c_long_double=yes
8493 cat >conftest.$ac_ext <<_ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8500 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8501 long double foo = 0.0;
8502 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8503 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest.$ac_objext; then
8530 gt_cv_c_long_double=yes
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 gt_cv_c_long_double=no
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8542 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8543 if test $gt_cv_c_long_double = yes; then
8545 cat >>confdefs.h <<\_ACEOF
8546 #define HAVE_LONG_DOUBLE 1
8552 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8553 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8554 if test "${gt_cv_c_wchar_t+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8564 wchar_t foo = (wchar_t)'\0';
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8582 grep -v '^ *+' conftest.er1 >conftest.err
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } && {
8587 test -z "$ac_c_werror_flag" ||
8588 test ! -s conftest.err
8589 } && test -s conftest.$ac_objext; then
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8601 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8602 if test $gt_cv_c_wchar_t = yes; then
8604 cat >>confdefs.h <<\_ACEOF
8605 #define HAVE_WCHAR_T 1
8611 { echo "$as_me:$LINENO: checking for wint_t" >&5
8612 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8613 if test "${gt_cv_c_wint_t+set}" = set; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 cat >conftest.$ac_ext <<_ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8623 wint_t foo = (wchar_t)'\0';
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8641 grep -v '^ *+' conftest.er1 >conftest.err
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.$ac_objext; then
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8660 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8661 if test $gt_cv_c_wint_t = yes; then
8663 cat >>confdefs.h <<\_ACEOF
8664 #define HAVE_WINT_T 1
8670 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8671 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8672 if test "${gl_cv_header_inttypes_h+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 #include <sys/types.h>
8682 #include <inttypes.h>
8686 uintmax_t i = (uintmax_t) -1;
8691 rm -f conftest.$ac_objext
8692 if { (ac_try="$ac_compile"
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_compile") 2>conftest.er1
8700 grep -v '^ *+' conftest.er1 >conftest.err
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } && {
8705 test -z "$ac_c_werror_flag" ||
8706 test ! -s conftest.err
8707 } && test -s conftest.$ac_objext; then
8708 gl_cv_header_inttypes_h=yes
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8713 gl_cv_header_inttypes_h=no
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8719 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8720 if test $gl_cv_header_inttypes_h = yes; then
8722 cat >>confdefs.h <<_ACEOF
8723 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8729 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8730 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8731 if test "${gl_cv_header_stdint_h+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 cat >conftest.$ac_ext <<_ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8740 #include <sys/types.h>
8745 uintmax_t i = (uintmax_t) -1;
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_compile") 2>conftest.er1
8759 grep -v '^ *+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest.$ac_objext; then
8767 gl_cv_header_stdint_h=yes
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 gl_cv_header_stdint_h=no
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8778 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8779 if test $gl_cv_header_stdint_h = yes; then
8781 cat >>confdefs.h <<_ACEOF
8782 #define HAVE_STDINT_H_WITH_UINTMAX 1
8790 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8791 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8792 if test "${gt_cv_c_intmax_t+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8804 #if HAVE_STDINT_H_WITH_UINTMAX
8807 #if HAVE_INTTYPES_H_WITH_UINTMAX
8808 #include <inttypes.h>
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_compile") 2>conftest.er1
8828 grep -v '^ *+' conftest.er1 >conftest.err
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && {
8833 test -z "$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 } && test -s conftest.$ac_objext; then
8836 gt_cv_c_intmax_t=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8847 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8848 if test $gt_cv_c_intmax_t = yes; then
8850 cat >>confdefs.h <<\_ACEOF
8851 #define HAVE_INTMAX_T 1
8858 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8859 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8860 if test "${gt_cv_func_printf_posix+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 if test "$cross_compiling" = yes; then
8866 cat >conftest.$ac_ext <<_ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8873 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8879 $EGREP "notposix" >/dev/null 2>&1; then
8880 gt_cv_func_printf_posix="guessing no"
8882 gt_cv_func_printf_posix="guessing yes"
8888 cat >conftest.$ac_ext <<_ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8897 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8898 dollar expansion (possibly an autoconf bug). */
8899 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8900 static char buf[100];
8903 sprintf (buf, format, 33, 55);
8904 return (strcmp (buf, "55 33") != 0);
8907 rm -f conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_link") 2>&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8918 { (case "(($ac_try" in
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_try") 2>&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
8927 gt_cv_func_printf_posix=yes
8929 echo "$as_me: program exited with status $ac_status" >&5
8930 echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8934 gt_cv_func_printf_posix=no
8936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8942 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8943 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8944 case $gt_cv_func_printf_posix in
8947 cat >>confdefs.h <<\_ACEOF
8948 #define HAVE_POSIX_PRINTF 1
8954 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8955 # for constant arguments. Useless!
8956 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8957 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8958 if test "${ac_cv_working_alloca_h+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8971 char *p = (char *) alloca (2 * sizeof (int));
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (ac_try="$ac_link"
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_link") 2>conftest.er1
8986 grep -v '^ *+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } && {
8991 test -z "$ac_c_werror_flag" ||
8992 test ! -s conftest.err
8993 } && test -s conftest$ac_exeext &&
8994 $as_test_x conftest$ac_exeext; then
8995 ac_cv_working_alloca_h=yes
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_cv_working_alloca_h=no
9003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9004 conftest$ac_exeext conftest.$ac_ext
9006 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9007 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9008 if test $ac_cv_working_alloca_h = yes; then
9010 cat >>confdefs.h <<\_ACEOF
9011 #define HAVE_ALLOCA_H 1
9016 { echo "$as_me:$LINENO: checking for alloca" >&5
9017 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9018 if test "${ac_cv_func_alloca_works+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 cat >conftest.$ac_ext <<_ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9028 # define alloca __builtin_alloca
9031 # include <malloc.h>
9032 # define alloca _alloca
9034 # ifdef HAVE_ALLOCA_H
9035 # include <alloca.h>
9040 # ifndef alloca /* predefined by HP cc +Olibcalls */
9051 char *p = (char *) alloca (1);
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (ac_try="$ac_link"
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_link") 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } && {
9071 test -z "$ac_c_werror_flag" ||
9072 test ! -s conftest.err
9073 } && test -s conftest$ac_exeext &&
9074 $as_test_x conftest$ac_exeext; then
9075 ac_cv_func_alloca_works=yes
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 ac_cv_func_alloca_works=no
9083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9084 conftest$ac_exeext conftest.$ac_ext
9086 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9087 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9089 if test $ac_cv_func_alloca_works = yes; then
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_ALLOCA 1
9096 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9097 # that cause trouble. Some versions do not even contain alloca or
9098 # contain a buggy version. If you still want to use their alloca,
9099 # use ar to extract alloca.o from them instead of compiling alloca.c.
9101 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9103 cat >>confdefs.h <<\_ACEOF
9108 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9109 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9110 if test "${ac_cv_os_cray+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 cat >conftest.$ac_ext <<_ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9119 #if defined CRAY && ! defined CRAY2
9126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9127 $EGREP "webecray" >/dev/null 2>&1; then
9135 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9136 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9137 if test $ac_cv_os_cray = yes; then
9138 for ac_func in _getb67 GETB67 getb67; do
9139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9153 #define $ac_func innocuous_$ac_func
9155 /* System header to define __stub macros and hopefully few prototypes,
9156 which can conflict with char $ac_func (); below.
9157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9158 <limits.h> exists even on freestanding compilers. */
9161 # include <limits.h>
9163 # include <assert.h>
9168 /* Override any GCC internal prototype to avoid an error.
9169 Use char because int might match the return type of a GCC
9170 builtin and then its argument prototype would still apply. */
9175 /* The GNU C library defines this for functions which it implements
9176 to always fail with ENOSYS. Some functions are actually named
9177 something starting with __ and the normal name is an alias. */
9178 #if defined __stub_$ac_func || defined __stub___$ac_func
9190 rm -f conftest.$ac_objext conftest$ac_exeext
9191 if { (ac_try="$ac_link"
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_link") 2>conftest.er1
9199 grep -v '^ *+' conftest.er1 >conftest.err
9201 cat conftest.err >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && {
9204 test -z "$ac_c_werror_flag" ||
9205 test ! -s conftest.err
9206 } && test -s conftest$ac_exeext &&
9207 $as_test_x conftest$ac_exeext; then
9208 eval "$as_ac_var=yes"
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 eval "$as_ac_var=no"
9216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9217 conftest$ac_exeext conftest.$ac_ext
9219 ac_res=`eval echo '${'$as_ac_var'}'`
9220 { echo "$as_me:$LINENO: result: $ac_res" >&5
9221 echo "${ECHO_T}$ac_res" >&6; }
9222 if test `eval echo '${'$as_ac_var'}'` = yes; then
9224 cat >>confdefs.h <<_ACEOF
9225 #define CRAY_STACKSEG_END $ac_func
9234 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9235 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9236 if test "${ac_cv_c_stack_direction+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 if test "$cross_compiling" = yes; then
9240 ac_cv_c_stack_direction=0
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 $ac_includes_default
9250 find_stack_direction ()
9252 static char *addr = 0;
9257 return find_stack_direction ();
9260 return (&dummy > addr) ? 1 : -1;
9266 return find_stack_direction () < 0;
9269 rm -f conftest$ac_exeext
9270 if { (ac_try="$ac_link"
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_link") 2>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9280 { (case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_try") 2>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_c_stack_direction=1
9291 echo "$as_me: program exited with status $ac_status" >&5
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9296 ac_cv_c_stack_direction=-1
9298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9303 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9304 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9306 cat >>confdefs.h <<_ACEOF
9307 #define STACK_DIRECTION $ac_cv_c_stack_direction
9315 for ac_header in stdlib.h unistd.h
9317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 ac_res=`eval echo '${'$as_ac_Header'}'`
9325 { echo "$as_me:$LINENO: result: $ac_res" >&5
9326 echo "${ECHO_T}$ac_res" >&6; }
9328 # Is the header compilable?
9329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9331 cat >conftest.$ac_ext <<_ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 $ac_includes_default
9338 #include <$ac_header>
9340 rm -f conftest.$ac_objext
9341 if { (ac_try="$ac_compile"
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_compile") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1 >conftest.err
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest.$ac_objext; then
9357 ac_header_compiler=yes
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9362 ac_header_compiler=no
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9367 echo "${ECHO_T}$ac_header_compiler" >&6; }
9369 # Is the header present?
9370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9372 cat >conftest.$ac_ext <<_ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 #include <$ac_header>
9380 if { (ac_try="$ac_cpp conftest.$ac_ext"
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } >/dev/null && {
9393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9396 ac_header_preproc=yes
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_header_preproc=no
9404 rm -f conftest.err conftest.$ac_ext
9405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9406 echo "${ECHO_T}$ac_header_preproc" >&6; }
9408 # So? What about this header?
9409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9415 ac_header_preproc=yes
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 eval "$as_ac_Header=\$ac_header_preproc"
9440 ac_res=`eval echo '${'$as_ac_Header'}'`
9441 { echo "$as_me:$LINENO: result: $ac_res" >&5
9442 echo "${ECHO_T}$ac_res" >&6; }
9445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9446 cat >>confdefs.h <<_ACEOF
9447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9455 for ac_func in getpagesize
9457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9471 #define $ac_func innocuous_$ac_func
9473 /* System header to define __stub macros and hopefully few prototypes,
9474 which can conflict with char $ac_func (); below.
9475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9476 <limits.h> exists even on freestanding compilers. */
9479 # include <limits.h>
9481 # include <assert.h>
9486 /* Override any GCC internal prototype to avoid an error.
9487 Use char because int might match the return type of a GCC
9488 builtin and then its argument prototype would still apply. */
9493 /* The GNU C library defines this for functions which it implements
9494 to always fail with ENOSYS. Some functions are actually named
9495 something starting with __ and the normal name is an alias. */
9496 #if defined __stub_$ac_func || defined __stub___$ac_func
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_link") 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && {
9522 test -z "$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9524 } && test -s conftest$ac_exeext &&
9525 $as_test_x conftest$ac_exeext; then
9526 eval "$as_ac_var=yes"
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 eval "$as_ac_var=no"
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535 conftest$ac_exeext conftest.$ac_ext
9537 ac_res=`eval echo '${'$as_ac_var'}'`
9538 { echo "$as_me:$LINENO: result: $ac_res" >&5
9539 echo "${ECHO_T}$ac_res" >&6; }
9540 if test `eval echo '${'$as_ac_var'}'` = yes; then
9541 cat >>confdefs.h <<_ACEOF
9542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9548 { echo "$as_me:$LINENO: checking for working mmap" >&5
9549 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9550 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 if test "$cross_compiling" = yes; then
9554 ac_cv_func_mmap_fixed_mapped=no
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 $ac_includes_default
9563 /* malloc might have been renamed as rpl_malloc. */
9566 /* Thanks to Mike Haertel and Jim Avera for this test.
9567 Here is a matrix of mmap possibilities:
9568 mmap private not fixed
9569 mmap private fixed at somewhere currently unmapped
9570 mmap private fixed at somewhere already mapped
9571 mmap shared not fixed
9572 mmap shared fixed at somewhere currently unmapped
9573 mmap shared fixed at somewhere already mapped
9574 For private mappings, we should verify that changes cannot be read()
9575 back from the file, nor mmap's back from the file at a different
9576 address. (There have been systems where private was not correctly
9577 implemented like the infamous i386 svr4.0, and systems where the
9578 VM page cache was not coherent with the file system buffer cache
9579 like early versions of FreeBSD and possibly contemporary NetBSD.)
9580 For shared mappings, we should conversely verify that changes get
9581 propagated back to all the places they're supposed to be.
9583 Grep wants private fixed already mapped.
9584 The main things grep needs to know about mmap are:
9585 * does it exist and is it safe to write into the mmap'd area
9586 * how to use it (BSD variants) */
9589 #include <sys/mman.h>
9591 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9595 /* This mess was copied from the GNU getpagesize.h. */
9596 #ifndef HAVE_GETPAGESIZE
9597 /* Assume that all systems that can run configure have sys/param.h. */
9598 # ifndef HAVE_SYS_PARAM_H
9599 # define HAVE_SYS_PARAM_H 1
9602 # ifdef _SC_PAGESIZE
9603 # define getpagesize() sysconf(_SC_PAGESIZE)
9604 # else /* no _SC_PAGESIZE */
9605 # ifdef HAVE_SYS_PARAM_H
9606 # include <sys/param.h>
9607 # ifdef EXEC_PAGESIZE
9608 # define getpagesize() EXEC_PAGESIZE
9609 # else /* no EXEC_PAGESIZE */
9611 # define getpagesize() NBPG * CLSIZE
9614 # endif /* no CLSIZE */
9615 # else /* no NBPG */
9617 # define getpagesize() NBPC
9618 # else /* no NBPC */
9620 # define getpagesize() PAGESIZE
9621 # endif /* PAGESIZE */
9622 # endif /* no NBPC */
9623 # endif /* no NBPG */
9624 # endif /* no EXEC_PAGESIZE */
9625 # else /* no HAVE_SYS_PARAM_H */
9626 # define getpagesize() 8192 /* punt totally */
9627 # endif /* no HAVE_SYS_PARAM_H */
9628 # endif /* no _SC_PAGESIZE */
9630 #endif /* no HAVE_GETPAGESIZE */
9635 char *data, *data2, *data3;
9639 pagesize = getpagesize ();
9641 /* First, make a file with some known garbage in it. */
9642 data = (char *) malloc (pagesize);
9645 for (i = 0; i < pagesize; ++i)
9646 *(data + i) = rand ();
9648 fd = creat ("conftest.mmap", 0600);
9651 if (write (fd, data, pagesize) != pagesize)
9655 /* Next, try to mmap the file at a fixed address which already has
9656 something else allocated at it. If we can, also make sure that
9657 we see the same garbage. */
9658 fd = open ("conftest.mmap", O_RDWR);
9661 data2 = (char *) malloc (2 * pagesize);
9664 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9665 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9666 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9668 for (i = 0; i < pagesize; ++i)
9669 if (*(data + i) != *(data2 + i))
9672 /* Finally, make sure that changes to the mapped area do not
9673 percolate back to the file as seen by read(). (This is a bug on
9674 some variants of i386 svr4.0.) */
9675 for (i = 0; i < pagesize; ++i)
9676 *(data2 + i) = *(data2 + i) + 1;
9677 data3 = (char *) malloc (pagesize);
9680 if (read (fd, data3, pagesize) != pagesize)
9682 for (i = 0; i < pagesize; ++i)
9683 if (*(data + i) != *(data3 + i))
9689 rm -f conftest$ac_exeext
9690 if { (ac_try="$ac_link"
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_link") 2>&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9700 { (case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_try") 2>&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_cv_func_mmap_fixed_mapped=yes
9711 echo "$as_me: program exited with status $ac_status" >&5
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9716 ac_cv_func_mmap_fixed_mapped=no
9718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9723 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9724 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9725 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9727 cat >>confdefs.h <<\_ACEOF
9735 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9736 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9737 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 cat >conftest.$ac_ext <<_ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9747 #include <features.h>
9748 #ifdef __GNU_LIBRARY__
9749 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9756 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9757 ac_cv_gnu_library_2_1=yes
9759 ac_cv_gnu_library_2_1=no
9766 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9767 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9769 GLIBC21="$ac_cv_gnu_library_2_1"
9774 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9775 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9776 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 if test "$cross_compiling" = yes; then
9782 # Guess based on the CPU.
9784 alpha* | i3456786 | m68k | s390*)
9785 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9787 gt_cv_int_divbyzero_sigfpe="guessing no";;
9791 cat >conftest.$ac_ext <<_ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9803 sigfpe_handler (int sig)
9805 sigfpe_handler (sig) int sig;
9808 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9809 exit (sig != SIGFPE);
9819 signal (SIGFPE, sigfpe_handler);
9820 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9821 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9822 signal (SIGTRAP, sigfpe_handler);
9824 /* Linux/SPARC yields signal SIGILL. */
9825 #if defined (__sparc__) && defined (__linux__)
9826 signal (SIGILL, sigfpe_handler);
9835 rm -f conftest$ac_exeext
9836 if { (ac_try="$ac_link"
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_link") 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 gt_cv_int_divbyzero_sigfpe=yes
9857 echo "$as_me: program exited with status $ac_status" >&5
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9862 gt_cv_int_divbyzero_sigfpe=no
9864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9870 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9871 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9872 case "$gt_cv_int_divbyzero_sigfpe" in
9877 cat >>confdefs.h <<_ACEOF
9878 #define INTDIV0_RAISES_SIGFPE $value
9883 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9884 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9885 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 cat >conftest.$ac_ext <<_ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894 unsigned long long ull = 1ULL; int i = 63;
9898 unsigned long long ullmax = (unsigned long long) -1;
9899 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (ac_try="$ac_link"
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_link") 2>conftest.er1
9913 grep -v '^ *+' conftest.er1 >conftest.err
9915 cat conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } && {
9918 test -z "$ac_c_werror_flag" ||
9919 test ! -s conftest.err
9920 } && test -s conftest$ac_exeext &&
9921 $as_test_x conftest$ac_exeext; then
9922 ac_cv_type_unsigned_long_long=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_cv_type_unsigned_long_long=no
9930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9931 conftest$ac_exeext conftest.$ac_ext
9933 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9934 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9935 if test $ac_cv_type_unsigned_long_long = yes; then
9937 cat >>confdefs.h <<\_ACEOF
9938 #define HAVE_UNSIGNED_LONG_LONG 1
9946 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9948 test $ac_cv_type_unsigned_long_long = yes \
9949 && ac_type='unsigned long long' \
9950 || ac_type='unsigned long'
9952 cat >>confdefs.h <<_ACEOF
9953 #define uintmax_t $ac_type
9958 cat >>confdefs.h <<\_ACEOF
9959 #define HAVE_UINTMAX_T 1
9965 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9966 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9967 if test "${gt_cv_header_inttypes_h+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977 #include <sys/types.h>
9978 #include <inttypes.h>
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_compile") 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest.$ac_objext; then
10004 gt_cv_header_inttypes_h=yes
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 gt_cv_header_inttypes_h=no
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10016 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10017 if test $gt_cv_header_inttypes_h = yes; then
10019 cat >>confdefs.h <<_ACEOF
10020 #define HAVE_INTTYPES_H 1
10027 if test $gt_cv_header_inttypes_h = yes; then
10028 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10029 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10030 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 cat >conftest.$ac_ext <<_ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 #include <inttypes.h>
10053 rm -f conftest.$ac_objext
10054 if { (ac_try="$ac_compile"
10055 case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_compile") 2>conftest.er1
10062 grep -v '^ *+' conftest.er1 >conftest.err
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } && {
10067 test -z "$ac_c_werror_flag" ||
10068 test ! -s conftest.err
10069 } && test -s conftest.$ac_objext; then
10070 gt_cv_inttypes_pri_broken=no
10072 echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10075 gt_cv_inttypes_pri_broken=yes
10078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10081 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10082 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10084 if test "$gt_cv_inttypes_pri_broken" = yes; then
10086 cat >>confdefs.h <<_ACEOF
10087 #define PRI_MACROS_BROKEN 1
10094 for ac_header in stdint.h
10096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 ac_res=`eval echo '${'$as_ac_Header'}'`
10104 { echo "$as_me:$LINENO: result: $ac_res" >&5
10105 echo "${ECHO_T}$ac_res" >&6; }
10107 # Is the header compilable?
10108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10117 #include <$ac_header>
10119 rm -f conftest.$ac_objext
10120 if { (ac_try="$ac_compile"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_compile") 2>conftest.er1
10128 grep -v '^ *+' conftest.er1 >conftest.err
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } && {
10133 test -z "$ac_c_werror_flag" ||
10134 test ! -s conftest.err
10135 } && test -s conftest.$ac_objext; then
10136 ac_header_compiler=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_header_compiler=no
10144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10146 echo "${ECHO_T}$ac_header_compiler" >&6; }
10148 # Is the header present?
10149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 #include <$ac_header>
10159 if { (ac_try="$ac_cpp conftest.$ac_ext"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10167 grep -v '^ *+' conftest.er1 >conftest.err
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } >/dev/null && {
10172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10175 ac_header_preproc=yes
10177 echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10180 ac_header_preproc=no
10183 rm -f conftest.err conftest.$ac_ext
10184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10185 echo "${ECHO_T}$ac_header_preproc" >&6; }
10187 # So? What about this header?
10188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10194 ac_header_preproc=yes
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 eval "$as_ac_Header=\$ac_header_preproc"
10219 ac_res=`eval echo '${'$as_ac_Header'}'`
10220 { echo "$as_me:$LINENO: result: $ac_res" >&5
10221 echo "${ECHO_T}$ac_res" >&6; }
10224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10225 cat >>confdefs.h <<_ACEOF
10226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10233 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10234 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10243 #include <limits.h>
10245 #include <stdint.h>
10252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10253 $EGREP "Found it" >/dev/null 2>&1; then
10258 if test -z "$result"; then
10259 if test "$cross_compiling" = yes; then
10260 # Depending upon the size, compute the lo and hi bounds.
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 #include <stddef.h>
10271 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10278 rm -f conftest.$ac_objext
10279 if { (ac_try="$ac_compile"
10280 case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285 (eval "$ac_compile") 2>conftest.er1
10287 grep -v '^ *+' conftest.er1 >conftest.err
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } && {
10292 test -z "$ac_c_werror_flag" ||
10293 test ! -s conftest.err
10294 } && test -s conftest.$ac_objext; then
10297 cat >conftest.$ac_ext <<_ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 #include <stddef.h>
10307 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10314 rm -f conftest.$ac_objext
10315 if { (ac_try="$ac_compile"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_compile") 2>conftest.er1
10323 grep -v '^ *+' conftest.er1 >conftest.err
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && {
10328 test -z "$ac_c_werror_flag" ||
10329 test ! -s conftest.err
10330 } && test -s conftest.$ac_objext; then
10331 ac_hi=$ac_mid; break
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ac_lo=`expr $ac_mid + 1`
10337 if test $ac_lo -le $ac_mid; then
10341 ac_mid=`expr 2 '*' $ac_mid + 1`
10344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 cat >conftest.$ac_ext <<_ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10356 #include <stddef.h>
10360 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10367 rm -f conftest.$ac_objext
10368 if { (ac_try="$ac_compile"
10369 case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_compile") 2>conftest.er1
10376 grep -v '^ *+' conftest.er1 >conftest.err
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && {
10381 test -z "$ac_c_werror_flag" ||
10382 test ! -s conftest.err
10383 } && test -s conftest.$ac_objext; then
10386 cat >conftest.$ac_ext <<_ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10392 #include <stddef.h>
10396 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10403 rm -f conftest.$ac_objext
10404 if { (ac_try="$ac_compile"
10405 case "(($ac_try" in
10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_compile") 2>conftest.er1
10412 grep -v '^ *+' conftest.er1 >conftest.err
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } && {
10417 test -z "$ac_c_werror_flag" ||
10418 test ! -s conftest.err
10419 } && test -s conftest.$ac_objext; then
10420 ac_lo=$ac_mid; break
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ac_hi=`expr '(' $ac_mid ')' - 1`
10426 if test $ac_mid -le $ac_hi; then
10430 ac_mid=`expr 2 '*' $ac_mid`
10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446 # Binary search between lo and hi bounds.
10447 while test "x$ac_lo" != "x$ac_hi"; do
10448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10449 cat >conftest.$ac_ext <<_ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10455 #include <stddef.h>
10459 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10466 rm -f conftest.$ac_objext
10467 if { (ac_try="$ac_compile"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_compile") 2>conftest.er1
10475 grep -v '^ *+' conftest.er1 >conftest.err
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && {
10480 test -z "$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 } && test -s conftest.$ac_objext; then
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 ac_lo=`expr '(' $ac_mid ')' + 1`
10491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494 ?*) res_hi=$ac_lo;;
10498 cat >conftest.$ac_ext <<_ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 #include <stddef.h>
10505 static long int longval () { return ~(size_t)0 / 10; }
10506 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10508 #include <stdlib.h>
10513 FILE *f = fopen ("conftest.val", "w");
10516 if ((~(size_t)0 / 10) < 0)
10518 long int i = longval ();
10519 if (i != (~(size_t)0 / 10))
10521 fprintf (f, "%ld\n", i);
10525 unsigned long int i = ulongval ();
10526 if (i != (~(size_t)0 / 10))
10528 fprintf (f, "%lu\n", i);
10530 return ferror (f) || fclose (f) != 0;
10536 rm -f conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10547 { (case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_try") 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 res_hi=`cat conftest.val`
10558 echo "$as_me: program exited with status $ac_status" >&5
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 ( exit $ac_status )
10565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10569 if test "$cross_compiling" = yes; then
10570 # Depending upon the size, compute the lo and hi bounds.
10571 cat >conftest.$ac_ext <<_ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 #include <stddef.h>
10581 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_compile") 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest.$ac_objext; then
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 #include <stddef.h>
10617 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10624 rm -f conftest.$ac_objext
10625 if { (ac_try="$ac_compile"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_compile") 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && {
10638 test -z "$ac_c_werror_flag" ||
10639 test ! -s conftest.err
10640 } && test -s conftest.$ac_objext; then
10641 ac_hi=$ac_mid; break
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10646 ac_lo=`expr $ac_mid + 1`
10647 if test $ac_lo -le $ac_mid; then
10651 ac_mid=`expr 2 '*' $ac_mid + 1`
10654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 cat >conftest.$ac_ext <<_ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10666 #include <stddef.h>
10670 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_compile") 2>conftest.er1
10686 grep -v '^ *+' conftest.er1 >conftest.err
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest.$ac_objext; then
10696 cat >conftest.$ac_ext <<_ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 #include <stddef.h>
10706 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10713 rm -f conftest.$ac_objext
10714 if { (ac_try="$ac_compile"
10715 case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_compile") 2>conftest.er1
10722 grep -v '^ *+' conftest.er1 >conftest.err
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && {
10727 test -z "$ac_c_werror_flag" ||
10728 test ! -s conftest.err
10729 } && test -s conftest.$ac_objext; then
10730 ac_lo=$ac_mid; break
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ac_hi=`expr '(' $ac_mid ')' - 1`
10736 if test $ac_mid -le $ac_hi; then
10740 ac_mid=`expr 2 '*' $ac_mid`
10743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756 # Binary search between lo and hi bounds.
10757 while test "x$ac_lo" != "x$ac_hi"; do
10758 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10759 cat >conftest.$ac_ext <<_ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 #include <stddef.h>
10769 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_compile") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest.$ac_objext; then
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_lo=`expr '(' $ac_mid ')' + 1`
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 ?*) res_lo=$ac_lo;;
10808 cat >conftest.$ac_ext <<_ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <stddef.h>
10815 static long int longval () { return ~(size_t)0 % 10; }
10816 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10818 #include <stdlib.h>
10823 FILE *f = fopen ("conftest.val", "w");
10826 if ((~(size_t)0 % 10) < 0)
10828 long int i = longval ();
10829 if (i != (~(size_t)0 % 10))
10831 fprintf (f, "%ld\n", i);
10835 unsigned long int i = ulongval ();
10836 if (i != (~(size_t)0 % 10))
10838 fprintf (f, "%lu\n", i);
10840 return ferror (f) || fclose (f) != 0;
10846 rm -f conftest$ac_exeext
10847 if { (ac_try="$ac_link"
10848 case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_link") 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10857 { (case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_try") 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 res_lo=`cat conftest.val`
10868 echo "$as_me: program exited with status $ac_status" >&5
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 ( exit $ac_status )
10875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10879 if test "$cross_compiling" = yes; then
10880 # Depending upon the size, compute the lo and hi bounds.
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 #include <stddef.h>
10891 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10898 rm -f conftest.$ac_objext
10899 if { (ac_try="$ac_compile"
10900 case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_compile") 2>conftest.er1
10907 grep -v '^ *+' conftest.er1 >conftest.err
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } && {
10912 test -z "$ac_c_werror_flag" ||
10913 test ! -s conftest.err
10914 } && test -s conftest.$ac_objext; then
10917 cat >conftest.$ac_ext <<_ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 #include <stddef.h>
10927 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_compile") 2>conftest.er1
10943 grep -v '^ *+' conftest.er1 >conftest.err
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_c_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest.$ac_objext; then
10951 ac_hi=$ac_mid; break
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_lo=`expr $ac_mid + 1`
10957 if test $ac_lo -le $ac_mid; then
10961 ac_mid=`expr 2 '*' $ac_mid + 1`
10964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 cat >conftest.$ac_ext <<_ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10976 #include <stddef.h>
10980 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_compile") 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest.$ac_objext; then
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 #include <stddef.h>
11016 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11023 rm -f conftest.$ac_objext
11024 if { (ac_try="$ac_compile"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_compile") 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_c_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest.$ac_objext; then
11040 ac_lo=$ac_mid; break
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11045 ac_hi=`expr '(' $ac_mid ')' - 1`
11046 if test $ac_mid -le $ac_hi; then
11050 ac_mid=`expr 2 '*' $ac_mid`
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066 # Binary search between lo and hi bounds.
11067 while test "x$ac_lo" != "x$ac_hi"; do
11068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11069 cat >conftest.$ac_ext <<_ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11075 #include <stddef.h>
11079 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11086 rm -f conftest.$ac_objext
11087 if { (ac_try="$ac_compile"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_compile") 2>conftest.er1
11095 grep -v '^ *+' conftest.er1 >conftest.err
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } && {
11100 test -z "$ac_c_werror_flag" ||
11101 test ! -s conftest.err
11102 } && test -s conftest.$ac_objext; then
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ac_lo=`expr '(' $ac_mid ')' + 1`
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114 ?*) fits_in_uint=$ac_lo;;
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <stddef.h>
11125 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11126 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11128 #include <stdlib.h>
11133 FILE *f = fopen ("conftest.val", "w");
11136 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11138 long int i = longval ();
11139 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11141 fprintf (f, "%ld\n", i);
11145 unsigned long int i = ulongval ();
11146 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11148 fprintf (f, "%lu\n", i);
11150 return ferror (f) || fclose (f) != 0;
11156 rm -f conftest$ac_exeext
11157 if { (ac_try="$ac_link"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_link") 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11167 { (case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_try") 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 fits_in_uint=`cat conftest.val`
11178 echo "$as_me: program exited with status $ac_status" >&5
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11182 ( exit $ac_status )
11185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11189 if test "$fits_in_uint" = 1; then
11190 cat >conftest.$ac_ext <<_ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 #include <stddef.h>
11198 extern unsigned long foo;
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_compile") 2>conftest.er1
11217 grep -v '^ *+' conftest.er1 >conftest.err
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest.$ac_objext; then
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 if test -z "$result"; then
11236 if test "$fits_in_uint" = 1; then
11237 result="$res_hi$res_lo"U
11239 result="$res_hi$res_lo"UL
11242 result='~(size_t)0'
11245 { echo "$as_me:$LINENO: result: $result" >&5
11246 echo "${ECHO_T}$result" >&6; }
11247 if test "$result" != yes; then
11249 cat >>confdefs.h <<_ACEOF
11250 #define SIZE_MAX $result
11259 for ac_header in stdint.h
11261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 ac_res=`eval echo '${'$as_ac_Header'}'`
11269 { echo "$as_me:$LINENO: result: $ac_res" >&5
11270 echo "${ECHO_T}$ac_res" >&6; }
11272 # Is the header compilable?
11273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 $ac_includes_default
11282 #include <$ac_header>
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_compile") 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } && {
11298 test -z "$ac_c_werror_flag" ||
11299 test ! -s conftest.err
11300 } && test -s conftest.$ac_objext; then
11301 ac_header_compiler=yes
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 ac_header_compiler=no
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11311 echo "${ECHO_T}$ac_header_compiler" >&6; }
11313 # Is the header present?
11314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 #include <$ac_header>
11324 if { (ac_try="$ac_cpp conftest.$ac_ext"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11332 grep -v '^ *+' conftest.er1 >conftest.err
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } >/dev/null && {
11337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11338 test ! -s conftest.err
11340 ac_header_preproc=yes
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_header_preproc=no
11348 rm -f conftest.err conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350 echo "${ECHO_T}$ac_header_preproc" >&6; }
11352 # So? What about this header?
11353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359 ac_header_preproc=yes
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 eval "$as_ac_Header=\$ac_header_preproc"
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11405 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11406 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11407 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 $ac_includes_default
11417 typedef ptrdiff_t ac__type_new_;
11421 if ((ac__type_new_ *) 0)
11423 if (sizeof (ac__type_new_))
11429 rm -f conftest.$ac_objext
11430 if { (ac_try="$ac_compile"
11431 case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_compile") 2>conftest.er1
11438 grep -v '^ *+' conftest.er1 >conftest.err
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } && {
11443 test -z "$ac_c_werror_flag" ||
11444 test ! -s conftest.err
11445 } && test -s conftest.$ac_objext; then
11446 ac_cv_type_ptrdiff_t=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 ac_cv_type_ptrdiff_t=no
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11457 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11458 if test $ac_cv_type_ptrdiff_t = yes; then
11462 cat >>confdefs.h <<\_ACEOF
11463 #define ptrdiff_t long
11479 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11480 stdlib.h string.h unistd.h sys/param.h
11482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 ac_res=`eval echo '${'$as_ac_Header'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11493 # Is the header compilable?
11494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11496 cat >conftest.$ac_ext <<_ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 $ac_includes_default
11503 #include <$ac_header>
11505 rm -f conftest.$ac_objext
11506 if { (ac_try="$ac_compile"
11507 case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_compile") 2>conftest.er1
11514 grep -v '^ *+' conftest.er1 >conftest.err
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } && {
11519 test -z "$ac_c_werror_flag" ||
11520 test ! -s conftest.err
11521 } && test -s conftest.$ac_objext; then
11522 ac_header_compiler=yes
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 ac_header_compiler=no
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11532 echo "${ECHO_T}$ac_header_compiler" >&6; }
11534 # Is the header present?
11535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 #include <$ac_header>
11545 if { (ac_try="$ac_cpp conftest.$ac_ext"
11546 case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11553 grep -v '^ *+' conftest.er1 >conftest.err
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } >/dev/null && {
11558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11559 test ! -s conftest.err
11561 ac_header_preproc=yes
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_header_preproc=no
11569 rm -f conftest.err conftest.$ac_ext
11570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11571 echo "${ECHO_T}$ac_header_preproc" >&6; }
11573 # So? What about this header?
11574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11580 ac_header_preproc=yes
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 eval "$as_ac_Header=\$ac_header_preproc"
11605 ac_res=`eval echo '${'$as_ac_Header'}'`
11606 { echo "$as_me:$LINENO: result: $ac_res" >&5
11607 echo "${ECHO_T}$ac_res" >&6; }
11610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11611 cat >>confdefs.h <<_ACEOF
11612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11642 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11643 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11644 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11661 #define $ac_func innocuous_$ac_func
11663 /* System header to define __stub macros and hopefully few prototypes,
11664 which can conflict with char $ac_func (); below.
11665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666 <limits.h> exists even on freestanding compilers. */
11669 # include <limits.h>
11671 # include <assert.h>
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11683 /* The GNU C library defines this for functions which it implements
11684 to always fail with ENOSYS. Some functions are actually named
11685 something starting with __ and the normal name is an alias. */
11686 #if defined __stub_$ac_func || defined __stub___$ac_func
11693 return $ac_func ();
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_link") 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } && {
11712 test -z "$ac_c_werror_flag" ||
11713 test ! -s conftest.err
11714 } && test -s conftest$ac_exeext &&
11715 $as_test_x conftest$ac_exeext; then
11716 eval "$as_ac_var=yes"
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 eval "$as_ac_var=no"
11724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11725 conftest$ac_exeext conftest.$ac_ext
11727 ac_res=`eval echo '${'$as_ac_var'}'`
11728 { echo "$as_me:$LINENO: result: $ac_res" >&5
11729 echo "${ECHO_T}$ac_res" >&6; }
11730 if test `eval echo '${'$as_ac_var'}'` = yes; then
11731 cat >>confdefs.h <<_ACEOF
11732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11740 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11741 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11742 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11757 char *p = (char *) _snprintf;
11764 rm -f conftest.$ac_objext
11765 if { (ac_try="$ac_compile"
11766 case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_compile") 2>conftest.er1
11773 grep -v '^ *+' conftest.er1 >conftest.err
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } && {
11778 test -z "$ac_c_werror_flag" ||
11779 test ! -s conftest.err
11780 } && test -s conftest.$ac_objext; then
11781 ac_cv_have_decl__snprintf=yes
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 ac_cv_have_decl__snprintf=no
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11791 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11792 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11793 if test $ac_cv_have_decl__snprintf = yes; then
11799 cat >>confdefs.h <<_ACEOF
11800 #define HAVE_DECL__SNPRINTF $gt_value
11805 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11806 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11807 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11822 char *p = (char *) _snwprintf;
11829 rm -f conftest.$ac_objext
11830 if { (ac_try="$ac_compile"
11831 case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_compile") 2>conftest.er1
11838 grep -v '^ *+' conftest.er1 >conftest.err
11840 cat conftest.err >&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } && {
11843 test -z "$ac_c_werror_flag" ||
11844 test ! -s conftest.err
11845 } && test -s conftest.$ac_objext; then
11846 ac_cv_have_decl__snwprintf=yes
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11851 ac_cv_have_decl__snwprintf=no
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11857 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11858 if test $ac_cv_have_decl__snwprintf = yes; then
11864 cat >>confdefs.h <<_ACEOF
11865 #define HAVE_DECL__SNWPRINTF $gt_value
11871 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11872 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11873 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11887 #ifndef feof_unlocked
11888 char *p = (char *) feof_unlocked;
11895 rm -f conftest.$ac_objext
11896 if { (ac_try="$ac_compile"
11897 case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_compile") 2>conftest.er1
11904 grep -v '^ *+' conftest.er1 >conftest.err
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } && {
11909 test -z "$ac_c_werror_flag" ||
11910 test ! -s conftest.err
11911 } && test -s conftest.$ac_objext; then
11912 ac_cv_have_decl_feof_unlocked=yes
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11917 ac_cv_have_decl_feof_unlocked=no
11920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11922 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11923 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11924 if test $ac_cv_have_decl_feof_unlocked = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11936 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11937 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11938 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 cat >conftest.$ac_ext <<_ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11952 #ifndef fgets_unlocked
11953 char *p = (char *) fgets_unlocked;
11960 rm -f conftest.$ac_objext
11961 if { (ac_try="$ac_compile"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_compile") 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } && {
11974 test -z "$ac_c_werror_flag" ||
11975 test ! -s conftest.err
11976 } && test -s conftest.$ac_objext; then
11977 ac_cv_have_decl_fgets_unlocked=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_cv_have_decl_fgets_unlocked=no
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11988 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11989 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11995 cat >>confdefs.h <<_ACEOF
11996 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12001 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12002 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12003 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 cat >conftest.$ac_ext <<_ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12017 #ifndef getc_unlocked
12018 char *p = (char *) getc_unlocked;
12025 rm -f conftest.$ac_objext
12026 if { (ac_try="$ac_compile"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_compile") 2>conftest.er1
12034 grep -v '^ *+' conftest.er1 >conftest.err
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } && {
12039 test -z "$ac_c_werror_flag" ||
12040 test ! -s conftest.err
12041 } && test -s conftest.$ac_objext; then
12042 ac_cv_have_decl_getc_unlocked=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_cv_have_decl_getc_unlocked=no
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12053 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12054 if test $ac_cv_have_decl_getc_unlocked = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12066 case $gt_cv_func_printf_posix in
12067 *yes) HAVE_POSIX_PRINTF=1 ;;
12068 *) HAVE_POSIX_PRINTF=0 ;;
12071 if test "$ac_cv_func_asprintf" = yes; then
12077 if test "$ac_cv_func_snprintf" = yes; then
12083 if test "$ac_cv_func_wprintf" = yes; then
12095 am_save_CPPFLAGS="$CPPFLAGS"
12097 for element in $INCICONV; do
12099 for x in $CPPFLAGS; do
12101 acl_save_prefix="$prefix"
12102 prefix="$acl_final_prefix"
12103 acl_save_exec_prefix="$exec_prefix"
12104 exec_prefix="$acl_final_exec_prefix"
12106 exec_prefix="$acl_save_exec_prefix"
12107 prefix="$acl_save_prefix"
12109 if test "X$x" = "X$element"; then
12114 if test -z "$haveit"; then
12115 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12120 { echo "$as_me:$LINENO: checking for iconv" >&5
12121 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12122 if test "${am_cv_func_iconv+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 am_cv_func_iconv="no, consider installing GNU libiconv"
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 #include <stdlib.h>
12139 iconv_t cd = iconv_open("","");
12140 iconv(cd,NULL,NULL,NULL,NULL);
12146 rm -f conftest.$ac_objext conftest$ac_exeext
12147 if { (ac_try="$ac_link"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_link") 2>conftest.er1
12155 grep -v '^ *+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && {
12160 test -z "$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 } && test -s conftest$ac_exeext &&
12163 $as_test_x conftest$ac_exeext; then
12164 am_cv_func_iconv=yes
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12173 conftest$ac_exeext conftest.$ac_ext
12174 if test "$am_cv_func_iconv" != yes; then
12175 am_save_LIBS="$LIBS"
12176 LIBS="$LIBS $LIBICONV"
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 #include <stdlib.h>
12188 iconv_t cd = iconv_open("","");
12189 iconv(cd,NULL,NULL,NULL,NULL);
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && {
12209 test -z "$ac_c_werror_flag" ||
12210 test ! -s conftest.err
12211 } && test -s conftest$ac_exeext &&
12212 $as_test_x conftest$ac_exeext; then
12213 am_cv_lib_iconv=yes
12214 am_cv_func_iconv=yes
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS="$am_save_LIBS"
12228 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12229 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12230 if test "$am_cv_func_iconv" = yes; then
12232 cat >>confdefs.h <<\_ACEOF
12233 #define HAVE_ICONV 1
12237 if test "$am_cv_lib_iconv" = yes; then
12238 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12239 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12240 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12241 echo "${ECHO_T}$LIBICONV" >&6; }
12243 CPPFLAGS="$am_save_CPPFLAGS"
12250 if test "$am_cv_func_iconv" = yes; then
12251 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12252 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12253 if test "${am_cv_proto_iconv+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12264 #include <stdlib.h>
12270 #if defined(__STDC__) || defined(__cplusplus)
12271 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12284 rm -f conftest.$ac_objext
12285 if { (ac_try="$ac_compile"
12286 case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_compile") 2>conftest.er1
12293 grep -v '^ *+' conftest.er1 >conftest.err
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } && {
12298 test -z "$ac_c_werror_flag" ||
12299 test ! -s conftest.err
12300 } && test -s conftest.$ac_objext; then
12301 am_cv_proto_iconv_arg1=""
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 am_cv_proto_iconv_arg1="const"
12309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310 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);"
12313 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12314 { echo "$as_me:$LINENO: result: ${ac_t:-
12315 }$am_cv_proto_iconv" >&5
12316 echo "${ECHO_T}${ac_t:-
12317 }$am_cv_proto_iconv" >&6; }
12319 cat >>confdefs.h <<_ACEOF
12320 #define ICONV_CONST $am_cv_proto_iconv_arg1
12326 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12327 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12328 if test "${am_cv_langinfo_codeset+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 #include <langinfo.h>
12341 char* cs = nl_langinfo(CODESET);
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (ac_try="$ac_link"
12348 case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_link") 2>conftest.er1
12355 grep -v '^ *+' conftest.er1 >conftest.err
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest$ac_exeext &&
12363 $as_test_x conftest$ac_exeext; then
12364 am_cv_langinfo_codeset=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 am_cv_langinfo_codeset=no
12372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12373 conftest$ac_exeext conftest.$ac_ext
12376 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12377 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12378 if test $am_cv_langinfo_codeset = yes; then
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_LANGINFO_CODESET 1
12386 if test $ac_cv_header_locale_h = yes; then
12388 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12389 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12390 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 #include <locale.h>
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (ac_try="$ac_link"
12410 case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_link") 2>conftest.er1
12417 grep -v '^ *+' conftest.er1 >conftest.err
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } && {
12422 test -z "$ac_c_werror_flag" ||
12423 test ! -s conftest.err
12424 } && test -s conftest$ac_exeext &&
12425 $as_test_x conftest$ac_exeext; then
12426 gt_cv_val_LC_MESSAGES=yes
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12431 gt_cv_val_LC_MESSAGES=no
12434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12435 conftest$ac_exeext conftest.$ac_ext
12437 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12438 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12439 if test $gt_cv_val_LC_MESSAGES = yes; then
12441 cat >>confdefs.h <<\_ACEOF
12442 #define HAVE_LC_MESSAGES 1
12449 if test -n "$INTL_MACOSX_LIBS"; then
12450 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12453 for ac_prog in bison
12455 # Extract the first word of "$ac_prog", so it can be a program name with args.
12456 set dummy $ac_prog; ac_word=$2
12457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12459 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 if test -n "$INTLBISON"; then
12463 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_prog_INTLBISON="$ac_prog"
12473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 INTLBISON=$ac_cv_prog_INTLBISON
12483 if test -n "$INTLBISON"; then
12484 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12485 echo "${ECHO_T}$INTLBISON" >&6; }
12487 { echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6; }
12492 test -n "$INTLBISON" && break
12495 if test -z "$INTLBISON"; then
12498 { echo "$as_me:$LINENO: checking version of bison" >&5
12499 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12500 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12501 case $ac_prog_version in
12502 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12503 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12504 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12505 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12507 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12508 echo "${ECHO_T}$ac_prog_version" >&6; }
12510 if test $ac_verc_fail = yes; then
12529 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12530 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12531 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 gt_save_CPPFLAGS="$CPPFLAGS"
12535 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12536 gt_save_LIBS="$LIBS"
12537 LIBS="$LIBS -framework CoreFoundation"
12538 cat >conftest.$ac_ext <<_ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544 #include <CFPreferences.h>
12548 CFPreferencesCopyAppValue(NULL, NULL)
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_link") 2>conftest.er1
12562 grep -v '^ *+' conftest.er1 >conftest.err
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } && {
12567 test -z "$ac_c_werror_flag" ||
12568 test ! -s conftest.err
12569 } && test -s conftest$ac_exeext &&
12570 $as_test_x conftest$ac_exeext; then
12571 gt_cv_func_CFPreferencesCopyAppValue=yes
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 gt_cv_func_CFPreferencesCopyAppValue=no
12579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12580 conftest$ac_exeext conftest.$ac_ext
12581 CPPFLAGS="$gt_save_CPPFLAGS"
12582 LIBS="$gt_save_LIBS"
12584 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12585 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12586 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12588 cat >>confdefs.h <<\_ACEOF
12589 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12593 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12594 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12595 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 gt_save_CPPFLAGS="$CPPFLAGS"
12599 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12600 gt_save_LIBS="$LIBS"
12601 LIBS="$LIBS -framework CoreFoundation"
12602 cat >conftest.$ac_ext <<_ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 #include <CFLocale.h>
12612 CFLocaleCopyCurrent();
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_link") 2>conftest.er1
12626 grep -v '^ *+' conftest.er1 >conftest.err
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } && {
12631 test -z "$ac_c_werror_flag" ||
12632 test ! -s conftest.err
12633 } && test -s conftest$ac_exeext &&
12634 $as_test_x conftest$ac_exeext; then
12635 gt_cv_func_CFLocaleCopyCurrent=yes
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 gt_cv_func_CFLocaleCopyCurrent=no
12643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12644 conftest$ac_exeext conftest.$ac_ext
12645 CPPFLAGS="$gt_save_CPPFLAGS"
12646 LIBS="$gt_save_LIBS"
12648 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12649 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12650 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12652 cat >>confdefs.h <<\_ACEOF
12653 #define HAVE_CFLOCALECOPYCURRENT 1
12658 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12659 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12665 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12666 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12667 # Check whether --enable-nls was given.
12668 if test "${enable_nls+set}" = set; then
12669 enableval=$enable_nls; USE_NLS=$enableval
12674 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12675 echo "${ECHO_T}$USE_NLS" >&6; }
12680 BUILD_INCLUDED_LIBINTL=no
12681 USE_INCLUDED_LIBINTL=no
12687 if test "$USE_NLS" = "yes"; then
12688 gt_use_preinstalled_gnugettext=no
12690 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12691 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12693 # Check whether --with-included-gettext was given.
12694 if test "${with_included_gettext+set}" = set; then
12695 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12697 nls_cv_force_use_gnu_gettext=no
12700 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12701 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12703 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12704 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12711 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12712 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12713 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 #include <libintl.h>
12723 extern int _nl_msg_cat_cntr;
12724 extern int *_nl_domain_bindings;
12728 bindtextdomain ("", "");
12729 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (ac_try="$ac_link"
12736 case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_link") 2>conftest.er1
12743 grep -v '^ *+' conftest.er1 >conftest.err
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } && {
12748 test -z "$ac_c_werror_flag" ||
12749 test ! -s conftest.err
12750 } && test -s conftest$ac_exeext &&
12751 $as_test_x conftest$ac_exeext; then
12752 gt_cv_func_gnugettext1_libc=yes
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 gt_cv_func_gnugettext1_libc=no
12760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12761 conftest$ac_exeext conftest.$ac_ext
12763 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12764 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12766 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12772 acl_save_prefix="$prefix"
12773 prefix="$acl_final_prefix"
12774 acl_save_exec_prefix="$exec_prefix"
12775 exec_prefix="$acl_final_exec_prefix"
12777 eval additional_includedir=\"$includedir\"
12778 eval additional_libdir=\"$libdir\"
12780 exec_prefix="$acl_save_exec_prefix"
12781 prefix="$acl_save_prefix"
12784 # Check whether --with-libintl-prefix was given.
12785 if test "${with_libintl_prefix+set}" = set; then
12786 withval=$with_libintl_prefix;
12787 if test "X$withval" = "Xno"; then
12790 if test "X$withval" = "X"; then
12792 acl_save_prefix="$prefix"
12793 prefix="$acl_final_prefix"
12794 acl_save_exec_prefix="$exec_prefix"
12795 exec_prefix="$acl_final_exec_prefix"
12797 eval additional_includedir=\"$includedir\"
12798 eval additional_libdir=\"$libdir\"
12800 exec_prefix="$acl_save_exec_prefix"
12801 prefix="$acl_save_prefix"
12804 additional_includedir="$withval/include"
12805 additional_libdir="$withval/lib"
12816 names_already_handled=
12817 names_next_round='intl '
12818 while test -n "$names_next_round"; do
12819 names_this_round="$names_next_round"
12821 for name in $names_this_round; do
12823 for n in $names_already_handled; do
12824 if test "$n" = "$name"; then
12825 already_handled=yes
12829 if test -z "$already_handled"; then
12830 names_already_handled="$names_already_handled $name"
12831 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12832 eval value=\"\$HAVE_LIB$uppername\"
12833 if test -n "$value"; then
12834 if test "$value" = yes; then
12835 eval value=\"\$LIB$uppername\"
12836 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12837 eval value=\"\$LTLIB$uppername\"
12838 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12847 if test $use_additional = yes; then
12848 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12849 found_dir="$additional_libdir"
12850 found_so="$additional_libdir/lib$name.$shlibext"
12851 if test -f "$additional_libdir/lib$name.la"; then
12852 found_la="$additional_libdir/lib$name.la"
12855 if test -f "$additional_libdir/lib$name.$libext"; then
12856 found_dir="$additional_libdir"
12857 found_a="$additional_libdir/lib$name.$libext"
12858 if test -f "$additional_libdir/lib$name.la"; then
12859 found_la="$additional_libdir/lib$name.la"
12864 if test "X$found_dir" = "X"; then
12865 for x in $LDFLAGS $LTLIBINTL; do
12867 acl_save_prefix="$prefix"
12868 prefix="$acl_final_prefix"
12869 acl_save_exec_prefix="$exec_prefix"
12870 exec_prefix="$acl_final_exec_prefix"
12872 exec_prefix="$acl_save_exec_prefix"
12873 prefix="$acl_save_prefix"
12877 dir=`echo "X$x" | sed -e 's/^X-L//'`
12878 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12880 found_so="$dir/lib$name.$shlibext"
12881 if test -f "$dir/lib$name.la"; then
12882 found_la="$dir/lib$name.la"
12885 if test -f "$dir/lib$name.$libext"; then
12887 found_a="$dir/lib$name.$libext"
12888 if test -f "$dir/lib$name.la"; then
12889 found_la="$dir/lib$name.la"
12895 if test "X$found_dir" != "X"; then
12900 if test "X$found_dir" != "X"; then
12901 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12902 if test "X$found_so" != "X"; then
12903 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12904 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12907 for x in $ltrpathdirs; do
12908 if test "X$x" = "X$found_dir"; then
12913 if test -z "$haveit"; then
12914 ltrpathdirs="$ltrpathdirs $found_dir"
12916 if test "$hardcode_direct" = yes; then
12917 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12919 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12920 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12922 for x in $rpathdirs; do
12923 if test "X$x" = "X$found_dir"; then
12928 if test -z "$haveit"; then
12929 rpathdirs="$rpathdirs $found_dir"
12933 for x in $LDFLAGS $LIBINTL; do
12935 acl_save_prefix="$prefix"
12936 prefix="$acl_final_prefix"
12937 acl_save_exec_prefix="$exec_prefix"
12938 exec_prefix="$acl_final_exec_prefix"
12940 exec_prefix="$acl_save_exec_prefix"
12941 prefix="$acl_save_prefix"
12943 if test "X$x" = "X-L$found_dir"; then
12948 if test -z "$haveit"; then
12949 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12951 if test "$hardcode_minus_L" != no; then
12952 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12954 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12960 if test "X$found_a" != "X"; then
12961 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12963 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12966 additional_includedir=
12967 case "$found_dir" in
12969 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12970 additional_includedir="$basedir/include"
12973 if test "X$additional_includedir" != "X"; then
12974 if test "X$additional_includedir" != "X/usr/include"; then
12976 if test "X$additional_includedir" = "X/usr/local/include"; then
12977 if test -n "$GCC"; then
12979 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12983 if test -z "$haveit"; then
12984 for x in $CPPFLAGS $INCINTL; do
12986 acl_save_prefix="$prefix"
12987 prefix="$acl_final_prefix"
12988 acl_save_exec_prefix="$exec_prefix"
12989 exec_prefix="$acl_final_exec_prefix"
12991 exec_prefix="$acl_save_exec_prefix"
12992 prefix="$acl_save_prefix"
12994 if test "X$x" = "X-I$additional_includedir"; then
12999 if test -z "$haveit"; then
13000 if test -d "$additional_includedir"; then
13001 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13007 if test -n "$found_la"; then
13008 save_libdir="$libdir"
13009 case "$found_la" in
13010 */* | *\\*) . "$found_la" ;;
13011 *) . "./$found_la" ;;
13013 libdir="$save_libdir"
13014 for dep in $dependency_libs; do
13017 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13018 if test "X$additional_libdir" != "X/usr/lib"; then
13020 if test "X$additional_libdir" = "X/usr/local/lib"; then
13021 if test -n "$GCC"; then
13023 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13027 if test -z "$haveit"; then
13029 for x in $LDFLAGS $LIBINTL; do
13031 acl_save_prefix="$prefix"
13032 prefix="$acl_final_prefix"
13033 acl_save_exec_prefix="$exec_prefix"
13034 exec_prefix="$acl_final_exec_prefix"
13036 exec_prefix="$acl_save_exec_prefix"
13037 prefix="$acl_save_prefix"
13039 if test "X$x" = "X-L$additional_libdir"; then
13044 if test -z "$haveit"; then
13045 if test -d "$additional_libdir"; then
13046 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13050 for x in $LDFLAGS $LTLIBINTL; do
13052 acl_save_prefix="$prefix"
13053 prefix="$acl_final_prefix"
13054 acl_save_exec_prefix="$exec_prefix"
13055 exec_prefix="$acl_final_exec_prefix"
13057 exec_prefix="$acl_save_exec_prefix"
13058 prefix="$acl_save_prefix"
13060 if test "X$x" = "X-L$additional_libdir"; then
13065 if test -z "$haveit"; then
13066 if test -d "$additional_libdir"; then
13067 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13074 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13075 if test "$enable_rpath" != no; then
13077 for x in $rpathdirs; do
13078 if test "X$x" = "X$dir"; then
13083 if test -z "$haveit"; then
13084 rpathdirs="$rpathdirs $dir"
13087 for x in $ltrpathdirs; do
13088 if test "X$x" = "X$dir"; then
13093 if test -z "$haveit"; then
13094 ltrpathdirs="$ltrpathdirs $dir"
13099 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13102 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13105 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13106 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13112 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13113 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13119 if test "X$rpathdirs" != "X"; then
13120 if test -n "$hardcode_libdir_separator"; then
13122 for found_dir in $rpathdirs; do
13123 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13125 acl_save_libdir="$libdir"
13127 eval flag=\"$hardcode_libdir_flag_spec\"
13128 libdir="$acl_save_libdir"
13129 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13131 for found_dir in $rpathdirs; do
13132 acl_save_libdir="$libdir"
13133 libdir="$found_dir"
13134 eval flag=\"$hardcode_libdir_flag_spec\"
13135 libdir="$acl_save_libdir"
13136 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13140 if test "X$ltrpathdirs" != "X"; then
13141 for found_dir in $ltrpathdirs; do
13142 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13146 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13147 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13148 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 gt_save_CPPFLAGS="$CPPFLAGS"
13152 CPPFLAGS="$CPPFLAGS $INCINTL"
13153 gt_save_LIBS="$LIBS"
13154 LIBS="$LIBS $LIBINTL"
13155 cat >conftest.$ac_ext <<_ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161 #include <libintl.h>
13162 extern int _nl_msg_cat_cntr;
13167 const char *_nl_expand_alias (const char *);
13171 bindtextdomain ("", "");
13172 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
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 test -z "$ac_c_werror_flag" ||
13192 test ! -s conftest.err
13193 } && test -s conftest$ac_exeext &&
13194 $as_test_x conftest$ac_exeext; then
13195 gt_cv_func_gnugettext1_libintl=yes
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13200 gt_cv_func_gnugettext1_libintl=no
13203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13204 conftest$ac_exeext conftest.$ac_ext
13205 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13206 LIBS="$LIBS $LIBICONV"
13207 cat >conftest.$ac_ext <<_ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 #include <libintl.h>
13214 extern int _nl_msg_cat_cntr;
13219 const char *_nl_expand_alias (const char *);
13223 bindtextdomain ("", "");
13224 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (ac_try="$ac_link"
13231 case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_link") 2>conftest.er1
13238 grep -v '^ *+' conftest.er1 >conftest.err
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } && {
13243 test -z "$ac_c_werror_flag" ||
13244 test ! -s conftest.err
13245 } && test -s conftest$ac_exeext &&
13246 $as_test_x conftest$ac_exeext; then
13247 LIBINTL="$LIBINTL $LIBICONV"
13248 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13249 gt_cv_func_gnugettext1_libintl=yes
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13259 conftest$ac_exeext conftest.$ac_ext
13261 CPPFLAGS="$gt_save_CPPFLAGS"
13262 LIBS="$gt_save_LIBS"
13264 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13265 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13268 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13269 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13270 && test "$PACKAGE" != gettext-runtime \
13271 && test "$PACKAGE" != gettext-tools; }; then
13272 gt_use_preinstalled_gnugettext=yes
13280 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13281 nls_cv_use_gnu_gettext=yes
13285 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13286 BUILD_INCLUDED_LIBINTL=yes
13287 USE_INCLUDED_LIBINTL=yes
13288 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13289 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13290 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13294 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13295 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13300 if test -n "$INTL_MACOSX_LIBS"; then
13301 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13302 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13303 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13304 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13308 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13309 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13311 cat >>confdefs.h <<\_ACEOF
13312 #define ENABLE_NLS 1
13320 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13321 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13322 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13323 echo "${ECHO_T}$USE_NLS" >&6; }
13324 if test "$USE_NLS" = "yes"; then
13325 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13326 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13327 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13328 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13329 gt_source="external libintl"
13334 gt_source="included intl directory"
13336 { echo "$as_me:$LINENO: result: $gt_source" >&5
13337 echo "${ECHO_T}$gt_source" >&6; }
13340 if test "$USE_NLS" = "yes"; then
13342 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13343 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13344 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13345 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13346 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13347 echo "${ECHO_T}$LIBINTL" >&6; }
13349 for element in $INCINTL; do
13351 for x in $CPPFLAGS; do
13353 acl_save_prefix="$prefix"
13354 prefix="$acl_final_prefix"
13355 acl_save_exec_prefix="$exec_prefix"
13356 exec_prefix="$acl_final_exec_prefix"
13358 exec_prefix="$acl_save_exec_prefix"
13359 prefix="$acl_save_prefix"
13361 if test "X$x" = "X$element"; then
13366 if test -z "$haveit"; then
13367 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13374 cat >>confdefs.h <<\_ACEOF
13375 #define HAVE_GETTEXT 1
13379 cat >>confdefs.h <<\_ACEOF
13380 #define HAVE_DCGETTEXT 1
13389 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13390 BUILD_INCLUDED_LIBINTL=yes
13397 nls_cv_header_intl=
13398 nls_cv_header_libgt=
13410 if test "$USE_INCLUDED_LIBINTL" = yes; then
13411 INTLOBJS="\$(GETTOBJS)"
13415 INTL_LIBTOOL_SUFFIX_PREFIX=
13419 INTLLIBS="$LIBINTL"
13432 support_postgresql=no
13434 support_smartalloc=yes
13435 support_readline=yes
13439 support_wx_console=no
13444 support_static_tools=no
13445 support_static_fd=no
13446 support_static_sd=no
13447 support_static_dir=no
13448 support_static_cons=no
13450 build_client_only=no
13458 # -------------------------------------------
13459 # gnome (default off)
13460 # -------------------------------------------
13461 # Check whether --enable-gnome was given.
13462 if test "${enable_gnome+set}" = set; then
13463 enableval=$enable_gnome; if test x$enableval = xyes; then
13470 if test x$support_gnome = xyes; then
13471 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13473 if test $pkg = 0; then
13474 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13475 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13476 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13477 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13482 GNOME_DIR=src/gnome2-console
13483 gnome_version="Version 2.x"
13485 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13486 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13487 { (exit 1); exit 1; }; }
13492 # -------------------------------------------
13493 # bat (default off)
13494 # -------------------------------------------
13495 # Check whether --enable-bat was given.
13496 if test "${enable_bat+set}" = set; then
13497 enableval=$enable_bat; if test x$enableval = xyes; then
13499 cat >>confdefs.h <<\_ACEOF
13509 if test x$support_bat = xyes; then
13510 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13512 if test $pkg = 0; then
13513 BAT_DIR=src/qt-console
13515 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13516 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13517 { (exit 1); exit 1; }; }
13522 # If bat is enabled, we need the qwt library
13526 if test x$support_bat = xyes; then
13527 { echo "$as_me:$LINENO: checking for qwt support" >&5
13528 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13530 # Check whether --with-qwt was given.
13531 if test "${with_qwt+set}" = set; then
13533 case "$with_qwt" in
13537 if test -f ${with_qwt}/include/qwt.h; then
13538 QWT_INC="${with_qwt}/include"
13539 QWT_LDFLAGS="-L${with_qwt}/lib"
13548 # Search in standard places, or --with-qwt not specified
13550 if test x$QWT_INC = x; then
13551 for root in /usr /usr/local; do
13552 for ver in qwt qwt5 qwt-qt4; do
13553 if test -f ${root}/include/${ver}/qwt.h; then
13554 QWT_INC="${root}/include/${ver}"
13555 if test -d ${root}/lib64/; then
13556 QWT_LDFLAGS="-L${root}/lib64"
13558 QWT_LDFLAGS="-L${root}/lib"
13566 if test x$QWT_INC = x; then
13567 { echo "$as_me:$LINENO: result: no" >&5
13568 echo "${ECHO_T}no" >&6; }
13569 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
13570 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
13571 { (exit 1); exit 1; }; }
13575 { echo "$as_me:$LINENO: result: yes" >&5
13576 echo "${ECHO_T}yes" >&6; }
13585 # -------------------------------------------
13586 # bwx-console (default off)
13587 # -------------------------------------------
13588 # Check whether --enable-bwx-console was given.
13589 if test "${enable_bwx_console+set}" = set; then
13590 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13591 support_wx_console=yes
13597 if test x$support_wx_console = xyes; then
13598 abc=`$WXCONFIG $WXFLAGS --cppflags`
13600 if test $pkg = 0; then
13601 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13602 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13603 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13607 WX_DIR=src/wx-console
13610 echo "wx-config program not found. bwx-console disabled."
13612 support_wx_console=no
13618 # -------------------------------------------
13619 # tray-monitor (default off)
13620 # -------------------------------------------
13621 # Check whether --enable-tray-monitor was given.
13622 if test "${enable_tray_monitor+set}" = set; then
13623 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13624 support_tray_monitor=yes
13630 if test x$support_tray_monitor = xyes; then
13631 abc=`$PKGCONFIG --exists gtk+-2.0`
13633 if test $pkg = 0; then
13634 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13635 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13638 TRAY_MONITOR_DIR=src/tray-monitor
13639 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13641 if test $pkg = 0; then
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_GTK_2_4 1
13652 # -------------------------------------------
13653 # smartalloc (default off)
13654 # -------------------------------------------
13655 # Check whether --enable-smartalloc was given.
13656 if test "${enable_smartalloc+set}" = set; then
13657 enableval=$enable_smartalloc; if test x$enableval = xno; then
13658 support_smartalloc=no
13663 if test x$support_smartalloc = xyes; then
13665 cat >>confdefs.h <<\_ACEOF
13666 #define SMARTALLOC 1
13671 # -------------------------------------------
13672 # static-tools (default off)
13673 # -------------------------------------------
13674 # Check whether --enable-static-tools was given.
13675 if test "${enable_static_tools+set}" = set; then
13676 enableval=$enable_static_tools; if test x$enableval = xyes; then
13677 support_static_tools=yes
13683 if test x$support_static_tools = xyes; then
13684 TTOOL_LDFLAGS="-static"
13688 # -------------------------------------------
13689 # static-fd (default off)
13690 # -------------------------------------------
13691 # Check whether --enable-static-fd was given.
13692 if test "${enable_static_fd+set}" = set; then
13693 enableval=$enable_static_fd; if test x$enableval = xyes; then
13694 support_static_fd=yes
13700 if test x$support_static_fd = xyes; then
13701 STATIC_FD="static-bacula-fd"
13705 # -------------------------------------------
13706 # static-sd (default off)
13707 # -------------------------------------------
13708 # Check whether --enable-static-sd was given.
13709 if test "${enable_static_sd+set}" = set; then
13710 enableval=$enable_static_sd; if test x$enableval = xyes; then
13711 support_static_sd=yes
13717 if test x$support_static_sd = xyes; then
13718 STATIC_SD="static-bacula-sd"
13722 # -------------------------------------------
13723 # static-dir (default off)
13724 # -------------------------------------------
13725 # Check whether --enable-static-dir was given.
13726 if test "${enable_static_dir+set}" = set; then
13727 enableval=$enable_static_dir; if test x$enableval = xyes; then
13728 support_static_dir=yes
13734 if test x$support_static_dir = xyes; then
13735 STATIC_DIR="static-bacula-dir"
13739 # -------------------------------------------
13740 # static-cons (default off)
13741 # -------------------------------------------
13742 # Check whether --enable-static-cons was given.
13743 if test "${enable_static_cons+set}" = set; then
13744 enableval=$enable_static_cons; if test x$enableval = xyes; then
13745 support_static_cons=yes
13753 if test x$support_static_cons = xyes; then
13754 STATIC_CONS="static-bconsole"
13755 STATIC_GNOME_CONS="static-bgnome-console"
13756 STATIC_WX_CONS="static-bwx-console"
13762 # -------------------------------------------
13763 # client_only (default off)
13764 # -------------------------------------------
13765 # Check whether --enable-client-only was given.
13766 if test "${enable_client_only+set}" = set; then
13767 enableval=$enable_client_only; if test x$enableval = xyes; then
13768 build_client_only=yes
13774 if test x$build_client_only = xno; then
13781 # -------------------------------------------
13782 # director (default on)
13783 # -------------------------------------------
13784 # Check whether --enable-build-dird was given.
13785 if test "${enable_build_dird+set}" = set; then
13786 enableval=$enable_build_dird; if test x$enableval = xno; then
13791 if test x$build_dird = xyes; then
13792 DIRD_DIR="src/dird"
13793 DIR_TOOLS="DIRTOOLS"
13796 DIR_TOOLS="NODIRTOOLS"
13801 # -------------------------------------------
13802 # stored (default on)
13803 # -------------------------------------------
13804 # Check whether --enable-build-stored was given.
13805 if test "${enable_build_stored+set}" = set; then
13806 enableval=$enable_build_stored; if test x$enableval = xno; then
13811 if test x$build_stored = xyes; then
13812 STORED_DIR="src/stored"
13818 # ---------------------------------------------------
13819 # Check for conio (Bacula readline substitute)(
13820 # ---------------------------------------------------
13821 # this allows you to turn it completely off
13822 # Check whether --enable-conio was given.
13823 if test "${enable_conio+set}" = set; then
13824 enableval=$enable_conio; if test x$enableval = xno; then
13832 # ---------------------------------------------------
13833 # Check for IPv6 support
13834 # ---------------------------------------------------
13835 # this allows you to turn it completely off
13837 # Check whether --enable-ipv6 was given.
13838 if test "${enable_ipv6+set}" = set; then
13839 enableval=$enable_ipv6; if test x$enableval = xno; then
13846 if test x$support_ipv6 = xyes; then
13847 cat >conftest.$ac_ext <<_ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13853 #include <sys/types.h>
13854 #include <sys/socket.h>
13855 #include <netinet/in.h>
13859 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13873 grep -v '^ *+' conftest.er1 >conftest.err
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest$ac_exeext &&
13881 $as_test_x conftest$ac_exeext; then
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891 conftest$ac_exeext conftest.$ac_ext
13894 if test x$support_ipv6 = xyes; then
13896 cat >>confdefs.h <<\_ACEOF
13897 #define HAVE_IPV6 1
13905 if test x$support_conio = xyes; then
13906 if test "${ac_cv_header_termcap_h+set}" = set; then
13907 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13908 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13909 if test "${ac_cv_header_termcap_h+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13913 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13915 # Is the header compilable?
13916 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13917 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13918 cat >conftest.$ac_ext <<_ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h. */
13924 $ac_includes_default
13925 #include <termcap.h>
13927 rm -f conftest.$ac_objext
13928 if { (ac_try="$ac_compile"
13929 case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_compile") 2>conftest.er1
13936 grep -v '^ *+' conftest.er1 >conftest.err
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } && {
13941 test -z "$ac_c_werror_flag" ||
13942 test ! -s conftest.err
13943 } && test -s conftest.$ac_objext; then
13944 ac_header_compiler=yes
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13949 ac_header_compiler=no
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13954 echo "${ECHO_T}$ac_header_compiler" >&6; }
13956 # Is the header present?
13957 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13958 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13959 cat >conftest.$ac_ext <<_ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 #include <termcap.h>
13967 if { (ac_try="$ac_cpp conftest.$ac_ext"
13968 case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } >/dev/null && {
13980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13981 test ! -s conftest.err
13983 ac_header_preproc=yes
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13988 ac_header_preproc=no
13991 rm -f conftest.err conftest.$ac_ext
13992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13993 echo "${ECHO_T}$ac_header_preproc" >&6; }
13995 # So? What about this header?
13996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13998 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13999 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14000 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14001 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14002 ac_header_preproc=yes
14005 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14006 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14008 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14010 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14012 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14014 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14016 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14020 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14021 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14022 if test "${ac_cv_header_termcap_h+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 ac_cv_header_termcap_h=$ac_header_preproc
14027 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14028 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14031 if test $ac_cv_header_termcap_h = yes; then
14032 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14033 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14034 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-ltermcap $LIBS"
14039 cat >conftest.$ac_ext <<_ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14046 /* Override any GCC internal prototype to avoid an error.
14047 Use char because int might match the return type of a GCC
14048 builtin and then its argument prototype would still apply. */
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (ac_try="$ac_link"
14063 case "(($ac_try" in
14064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068 (eval "$ac_link") 2>conftest.er1
14070 grep -v '^ *+' conftest.er1 >conftest.err
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && {
14075 test -z "$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 } && test -s conftest$ac_exeext &&
14078 $as_test_x conftest$ac_exeext; then
14079 ac_cv_lib_termcap_tgetent=yes
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14084 ac_cv_lib_termcap_tgetent=no
14087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14088 conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14091 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14092 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14093 if test $ac_cv_lib_termcap_tgetent = yes; then
14094 CONS_LIBS="-ltermcap"
14098 support_readline=no
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_CONIO 1
14106 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14107 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14108 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 ac_check_lib_save_LIBS=$LIBS
14112 LIBS="-lncurses $LIBS"
14113 cat >conftest.$ac_ext <<_ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14120 /* Override any GCC internal prototype to avoid an error.
14121 Use char because int might match the return type of a GCC
14122 builtin and then its argument prototype would still apply. */
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (ac_try="$ac_link"
14137 case "(($ac_try" in
14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139 *) ac_try_echo=$ac_try;;
14141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142 (eval "$ac_link") 2>conftest.er1
14144 grep -v '^ *+' conftest.er1 >conftest.err
14146 cat conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } && {
14149 test -z "$ac_c_werror_flag" ||
14150 test ! -s conftest.err
14151 } && test -s conftest$ac_exeext &&
14152 $as_test_x conftest$ac_exeext; then
14153 ac_cv_lib_ncurses_tgetent=yes
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 ac_cv_lib_ncurses_tgetent=no
14161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14162 conftest$ac_exeext conftest.$ac_ext
14163 LIBS=$ac_check_lib_save_LIBS
14165 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14166 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14167 if test $ac_cv_lib_ncurses_tgetent = yes; then
14168 CONS_LIBS="-lncurses"
14172 support_readline=no
14174 cat >>confdefs.h <<\_ACEOF
14175 #define HAVE_CONIO 1
14188 for ac_header in curses.h
14190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 ac_res=`eval echo '${'$as_ac_Header'}'`
14198 { echo "$as_me:$LINENO: result: $ac_res" >&5
14199 echo "${ECHO_T}$ac_res" >&6; }
14201 # Is the header compilable?
14202 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14204 cat >conftest.$ac_ext <<_ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 $ac_includes_default
14211 #include <$ac_header>
14213 rm -f conftest.$ac_objext
14214 if { (ac_try="$ac_compile"
14215 case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_compile") 2>conftest.er1
14222 grep -v '^ *+' conftest.er1 >conftest.err
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } && {
14227 test -z "$ac_c_werror_flag" ||
14228 test ! -s conftest.err
14229 } && test -s conftest.$ac_objext; then
14230 ac_header_compiler=yes
14232 echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14235 ac_header_compiler=no
14238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14240 echo "${ECHO_T}$ac_header_compiler" >&6; }
14242 # Is the header present?
14243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14245 cat >conftest.$ac_ext <<_ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14251 #include <$ac_header>
14253 if { (ac_try="$ac_cpp conftest.$ac_ext"
14254 case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } >/dev/null && {
14266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14267 test ! -s conftest.err
14269 ac_header_preproc=yes
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 ac_header_preproc=no
14277 rm -f conftest.err conftest.$ac_ext
14278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14279 echo "${ECHO_T}$ac_header_preproc" >&6; }
14281 # So? What about this header?
14282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14288 ac_header_preproc=yes
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 eval "$as_ac_Header=\$ac_header_preproc"
14313 ac_res=`eval echo '${'$as_ac_Header'}'`
14314 { echo "$as_me:$LINENO: result: $ac_res" >&5
14315 echo "${ECHO_T}$ac_res" >&6; }
14318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14319 cat >>confdefs.h <<_ACEOF
14320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14327 { echo "$as_me:$LINENO: checking for term.h" >&5
14328 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14329 if test "${ac_cv_header_term_h+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 cat >conftest.$ac_ext <<_ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14339 #include <curses.h>
14345 rm -f conftest.$ac_objext
14346 if { (ac_try="$ac_compile"
14347 case "(($ac_try" in
14348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349 *) ac_try_echo=$ac_try;;
14351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352 (eval "$ac_compile") 2>conftest.er1
14354 grep -v '^ *+' conftest.er1 >conftest.err
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } && {
14359 test -z "$ac_c_werror_flag" ||
14360 test ! -s conftest.err
14361 } && test -s conftest.$ac_objext; then
14362 ac_cv_header_term_h=yes
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14367 ac_cv_header_term_h=no
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14373 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14374 if test $ac_cv_header_term_h = yes; then
14375 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14376 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14377 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 ac_check_lib_save_LIBS=$LIBS
14381 LIBS="-lcurses $LIBS"
14382 cat >conftest.$ac_ext <<_ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14389 /* Override any GCC internal prototype to avoid an error.
14390 Use char because int might match the return type of a GCC
14391 builtin and then its argument prototype would still apply. */
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_link") 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } && {
14418 test -z "$ac_c_werror_flag" ||
14419 test ! -s conftest.err
14420 } && test -s conftest$ac_exeext &&
14421 $as_test_x conftest$ac_exeext; then
14422 ac_cv_lib_curses_tgetent=yes
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_cv_lib_curses_tgetent=no
14430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14431 conftest$ac_exeext conftest.$ac_ext
14432 LIBS=$ac_check_lib_save_LIBS
14434 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14435 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14436 if test $ac_cv_lib_curses_tgetent = yes; then
14437 CONS_LIBS="-lcurses"
14441 support_readline=no
14443 cat >>confdefs.h <<\_ACEOF
14444 #define HAVE_CONIO 1
14452 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14463 # ---------------------------------------------------
14464 # Check for readline support/directory (default off)
14465 # ---------------------------------------------------
14466 # this allows you to turn it completely off
14467 # Check whether --enable-readline was given.
14468 if test "${enable_readline+set}" = set; then
14469 enableval=$enable_readline; if test x$enableval = xno; then
14470 support_readline=no
14477 if test x$support_readline = xyes; then
14479 # Check whether --with-readline was given.
14480 if test "${with_readline+set}" = set; then
14481 withval=$with_readline;
14482 case "$with_readline" in
14485 if test -f ${with_readline}/readline.h; then
14486 CONS_INC="-I${with_readline}"
14487 CONS_LDFLAGS="-L$with_readline"
14488 elif test -f ${with_readline}/include/readline/readline.h; then
14489 CONS_INC="-I${with_readline}/include/readline"
14490 CONS_LDFLAGS="-L${with_readline}/lib"
14491 with_readline="${with_readline}/include/readline"
14493 with_readline="/usr/include/readline"
14495 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14497 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14498 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 ac_res=`eval echo '${'$as_ac_Header'}'`
14503 { echo "$as_me:$LINENO: result: $ac_res" >&5
14504 echo "${ECHO_T}$ac_res" >&6; }
14506 # Is the header compilable?
14507 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14508 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14509 cat >conftest.$ac_ext <<_ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14515 $ac_includes_default
14516 #include <${with_readline}/readline.h>
14518 rm -f conftest.$ac_objext
14519 if { (ac_try="$ac_compile"
14520 case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_compile") 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } && {
14532 test -z "$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14534 } && test -s conftest.$ac_objext; then
14535 ac_header_compiler=yes
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_header_compiler=no
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14545 echo "${ECHO_T}$ac_header_compiler" >&6; }
14547 # Is the header present?
14548 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14549 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14550 cat >conftest.$ac_ext <<_ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 #include <${with_readline}/readline.h>
14558 if { (ac_try="$ac_cpp conftest.$ac_ext"
14559 case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14566 grep -v '^ *+' conftest.er1 >conftest.err
14568 cat conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } >/dev/null && {
14571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14572 test ! -s conftest.err
14574 ac_header_preproc=yes
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 ac_header_preproc=no
14582 rm -f conftest.err conftest.$ac_ext
14583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14584 echo "${ECHO_T}$ac_header_preproc" >&6; }
14586 # So? What about this header?
14587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14589 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14590 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14591 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14592 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14593 ac_header_preproc=yes
14596 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14597 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14599 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14601 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14603 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14605 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14607 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14611 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14612 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 eval "$as_ac_Header=\$ac_header_preproc"
14618 ac_res=`eval echo '${'$as_ac_Header'}'`
14619 { echo "$as_me:$LINENO: result: $ac_res" >&5
14620 echo "${ECHO_T}$ac_res" >&6; }
14623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14625 cat >>confdefs.h <<\_ACEOF
14626 #define HAVE_READLINE 1
14629 CONS_LIBS="-lreadline -lhistory -ltermcap"
14634 echo "readline.h not found. readline turned off ..."
14646 # check for standard readline library
14647 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14648 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14649 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14650 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14654 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14656 # Is the header compilable?
14657 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14658 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14659 cat >conftest.$ac_ext <<_ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 $ac_includes_default
14666 #include </usr/include/readline/readline.h>
14668 rm -f conftest.$ac_objext
14669 if { (ac_try="$ac_compile"
14670 case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_compile") 2>conftest.er1
14677 grep -v '^ *+' conftest.er1 >conftest.err
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } && {
14682 test -z "$ac_c_werror_flag" ||
14683 test ! -s conftest.err
14684 } && test -s conftest.$ac_objext; then
14685 ac_header_compiler=yes
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 ac_header_compiler=no
14693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14695 echo "${ECHO_T}$ac_header_compiler" >&6; }
14697 # Is the header present?
14698 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14699 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14700 cat >conftest.$ac_ext <<_ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 #include </usr/include/readline/readline.h>
14708 if { (ac_try="$ac_cpp conftest.$ac_ext"
14709 case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14716 grep -v '^ *+' conftest.er1 >conftest.err
14718 cat conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } >/dev/null && {
14721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14722 test ! -s conftest.err
14724 ac_header_preproc=yes
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 ac_header_preproc=no
14732 rm -f conftest.err conftest.$ac_ext
14733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14734 echo "${ECHO_T}$ac_header_preproc" >&6; }
14736 # So? What about this header?
14737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14739 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14740 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14742 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14743 ac_header_preproc=yes
14746 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14747 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14749 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14751 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14753 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14755 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14757 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14761 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14762 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14763 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14768 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14769 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14772 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14774 cat >>confdefs.h <<\_ACEOF
14775 #define HAVE_READLINE 1
14779 CONS_INC="-I/usr/include/readline"
14780 CONS_LIBS="-lreadline -ltermcap"
14784 # Did not find standard library, so try Bacula's default
14785 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14788 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793 { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14796 # Is the header compilable?
14797 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14798 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14799 cat >conftest.$ac_ext <<_ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 $ac_includes_default
14806 #include <${TOP_DIR}/depkgs/readline/readline.h>
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14817 grep -v '^ *+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } && {
14822 test -z "$ac_c_werror_flag" ||
14823 test ! -s conftest.err
14824 } && test -s conftest.$ac_objext; then
14825 ac_header_compiler=yes
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 ac_header_compiler=no
14833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14835 echo "${ECHO_T}$ac_header_compiler" >&6; }
14837 # Is the header present?
14838 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14839 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14840 cat >conftest.$ac_ext <<_ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14846 #include <${TOP_DIR}/depkgs/readline/readline.h>
14848 if { (ac_try="$ac_cpp conftest.$ac_ext"
14849 case "(($ac_try" in
14850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851 *) ac_try_echo=$ac_try;;
14853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14856 grep -v '^ *+' conftest.er1 >conftest.err
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } >/dev/null && {
14861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14862 test ! -s conftest.err
14864 ac_header_preproc=yes
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 ac_header_preproc=no
14872 rm -f conftest.err conftest.$ac_ext
14873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14874 echo "${ECHO_T}$ac_header_preproc" >&6; }
14876 # So? What about this header?
14877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14879 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14880 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14882 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14883 ac_header_preproc=yes
14886 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14887 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14889 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14891 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14892 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14893 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14895 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14897 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14901 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14902 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 eval "$as_ac_Header=\$ac_header_preproc"
14908 ac_res=`eval echo '${'$as_ac_Header'}'`
14909 { echo "$as_me:$LINENO: result: $ac_res" >&5
14910 echo "${ECHO_T}$ac_res" >&6; }
14913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_READLINE 1
14920 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14921 CONS_LIBS="-lreadline -lhistory -ltermcap"
14922 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14923 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14927 echo "readline.h not found. readline turned off ..."
14954 # Minimal stuff for readline Makefile configuration
14957 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14958 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14959 if test "${ac_cv_header_stat_broken+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 cat >conftest.$ac_ext <<_ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 #include <sys/types.h>
14969 #include <sys/stat.h>
14971 #if defined S_ISBLK && defined S_IFDIR
14972 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14975 #if defined S_ISBLK && defined S_IFCHR
14976 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14979 #if defined S_ISLNK && defined S_IFREG
14980 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14983 #if defined S_ISSOCK && defined S_IFREG
14984 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14988 rm -f conftest.$ac_objext
14989 if { (ac_try="$ac_compile"
14990 case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_compile") 2>conftest.er1
14997 grep -v '^ *+' conftest.er1 >conftest.err
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } && {
15002 test -z "$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 } && test -s conftest.$ac_objext; then
15005 ac_cv_header_stat_broken=no
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_cv_header_stat_broken=yes
15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15016 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15017 if test $ac_cv_header_stat_broken = yes; then
15019 cat >>confdefs.h <<\_ACEOF
15020 #define STAT_MACROS_BROKEN 1
15030 ac_header_dirent=no
15031 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15032 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15033 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15034 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 cat >conftest.$ac_ext <<_ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 #include <sys/types.h>
15056 rm -f conftest.$ac_objext
15057 if { (ac_try="$ac_compile"
15058 case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_compile") 2>conftest.er1
15065 grep -v '^ *+' conftest.er1 >conftest.err
15067 cat conftest.err >&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } && {
15070 test -z "$ac_c_werror_flag" ||
15071 test ! -s conftest.err
15072 } && test -s conftest.$ac_objext; then
15073 eval "$as_ac_Header=yes"
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 eval "$as_ac_Header=no"
15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083 ac_res=`eval echo '${'$as_ac_Header'}'`
15084 { echo "$as_me:$LINENO: result: $ac_res" >&5
15085 echo "${ECHO_T}$ac_res" >&6; }
15086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15087 cat >>confdefs.h <<_ACEOF
15088 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15091 ac_header_dirent=$ac_hdr; break
15095 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15096 if test $ac_header_dirent = dirent.h; then
15097 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15098 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15099 if test "${ac_cv_search_opendir+set}" = set; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 ac_func_search_save_LIBS=$LIBS
15103 cat >conftest.$ac_ext <<_ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15110 /* Override any GCC internal prototype to avoid an error.
15111 Use char because int might match the return type of a GCC
15112 builtin and then its argument prototype would still apply. */
15125 for ac_lib in '' dir; do
15126 if test -z "$ac_lib"; then
15127 ac_res="none required"
15130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15132 rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_link") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest$ac_exeext &&
15149 $as_test_x conftest$ac_exeext; then
15150 ac_cv_search_opendir=$ac_res
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15160 if test "${ac_cv_search_opendir+set}" = set; then
15164 if test "${ac_cv_search_opendir+set}" = set; then
15167 ac_cv_search_opendir=no
15169 rm conftest.$ac_ext
15170 LIBS=$ac_func_search_save_LIBS
15172 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15173 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15174 ac_res=$ac_cv_search_opendir
15175 if test "$ac_res" != no; then
15176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15181 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15182 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15183 if test "${ac_cv_search_opendir+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 ac_func_search_save_LIBS=$LIBS
15187 cat >conftest.$ac_ext <<_ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 /* Override any GCC internal prototype to avoid an error.
15195 Use char because int might match the return type of a GCC
15196 builtin and then its argument prototype would still apply. */
15209 for ac_lib in '' x; do
15210 if test -z "$ac_lib"; then
15211 ac_res="none required"
15214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15216 rm -f conftest.$ac_objext conftest$ac_exeext
15217 if { (ac_try="$ac_link"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_link") 2>conftest.er1
15225 grep -v '^ *+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } && {
15230 test -z "$ac_c_werror_flag" ||
15231 test ! -s conftest.err
15232 } && test -s conftest$ac_exeext &&
15233 $as_test_x conftest$ac_exeext; then
15234 ac_cv_search_opendir=$ac_res
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244 if test "${ac_cv_search_opendir+set}" = set; then
15248 if test "${ac_cv_search_opendir+set}" = set; then
15251 ac_cv_search_opendir=no
15253 rm conftest.$ac_ext
15254 LIBS=$ac_func_search_save_LIBS
15256 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15257 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15258 ac_res=$ac_cv_search_opendir
15259 if test "$ac_res" != no; then
15260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15273 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15289 #define $ac_func innocuous_$ac_func
15291 /* System header to define __stub macros and hopefully few prototypes,
15292 which can conflict with char $ac_func (); below.
15293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294 <limits.h> exists even on freestanding compilers. */
15297 # include <limits.h>
15299 # include <assert.h>
15304 /* Override any GCC internal prototype to avoid an error.
15305 Use char because int might match the return type of a GCC
15306 builtin and then its argument prototype would still apply. */
15311 /* The GNU C library defines this for functions which it implements
15312 to always fail with ENOSYS. Some functions are actually named
15313 something starting with __ and the normal name is an alias. */
15314 #if defined __stub_$ac_func || defined __stub___$ac_func
15321 return $ac_func ();
15326 rm -f conftest.$ac_objext conftest$ac_exeext
15327 if { (ac_try="$ac_link"
15328 case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_link") 2>conftest.er1
15335 grep -v '^ *+' conftest.er1 >conftest.err
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } && {
15340 test -z "$ac_c_werror_flag" ||
15341 test ! -s conftest.err
15342 } && test -s conftest$ac_exeext &&
15343 $as_test_x conftest$ac_exeext; then
15344 eval "$as_ac_var=yes"
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 eval "$as_ac_var=no"
15352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15353 conftest$ac_exeext conftest.$ac_ext
15355 ac_res=`eval echo '${'$as_ac_var'}'`
15356 { echo "$as_me:$LINENO: result: $ac_res" >&5
15357 echo "${ECHO_T}$ac_res" >&6; }
15358 if test `eval echo '${'$as_ac_var'}'` = yes; then
15359 cat >>confdefs.h <<_ACEOF
15360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15368 for ac_func in nanosleep nl_langinfo
15370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 cat >conftest.$ac_ext <<_ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15384 #define $ac_func innocuous_$ac_func
15386 /* System header to define __stub macros and hopefully few prototypes,
15387 which can conflict with char $ac_func (); below.
15388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15389 <limits.h> exists even on freestanding compilers. */
15392 # include <limits.h>
15394 # include <assert.h>
15399 /* Override any GCC internal prototype to avoid an error.
15400 Use char because int might match the return type of a GCC
15401 builtin and then its argument prototype would still apply. */
15406 /* The GNU C library defines this for functions which it implements
15407 to always fail with ENOSYS. Some functions are actually named
15408 something starting with __ and the normal name is an alias. */
15409 #if defined __stub_$ac_func || defined __stub___$ac_func
15416 return $ac_func ();
15421 rm -f conftest.$ac_objext conftest$ac_exeext
15422 if { (ac_try="$ac_link"
15423 case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_link") 2>conftest.er1
15430 grep -v '^ *+' conftest.er1 >conftest.err
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } && {
15435 test -z "$ac_c_werror_flag" ||
15436 test ! -s conftest.err
15437 } && test -s conftest$ac_exeext &&
15438 $as_test_x conftest$ac_exeext; then
15439 eval "$as_ac_var=yes"
15441 echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15444 eval "$as_ac_var=no"
15447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15448 conftest$ac_exeext conftest.$ac_ext
15450 ac_res=`eval echo '${'$as_ac_var'}'`
15451 { echo "$as_me:$LINENO: result: $ac_res" >&5
15452 echo "${ECHO_T}$ac_res" >&6; }
15453 if test `eval echo '${'$as_ac_var'}'` = yes; then
15454 cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15462 for ac_header in varargs.h
15464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 ac_res=`eval echo '${'$as_ac_Header'}'`
15472 { echo "$as_me:$LINENO: result: $ac_res" >&5
15473 echo "${ECHO_T}$ac_res" >&6; }
15475 # Is the header compilable?
15476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15478 cat >conftest.$ac_ext <<_ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 $ac_includes_default
15485 #include <$ac_header>
15487 rm -f conftest.$ac_objext
15488 if { (ac_try="$ac_compile"
15489 case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_compile") 2>conftest.er1
15496 grep -v '^ *+' conftest.er1 >conftest.err
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } && {
15501 test -z "$ac_c_werror_flag" ||
15502 test ! -s conftest.err
15503 } && test -s conftest.$ac_objext; then
15504 ac_header_compiler=yes
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_header_compiler=no
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15514 echo "${ECHO_T}$ac_header_compiler" >&6; }
15516 # Is the header present?
15517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15519 cat >conftest.$ac_ext <<_ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15525 #include <$ac_header>
15527 if { (ac_try="$ac_cpp conftest.$ac_ext"
15528 case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15535 grep -v '^ *+' conftest.er1 >conftest.err
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } >/dev/null && {
15540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15541 test ! -s conftest.err
15543 ac_header_preproc=yes
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 ac_header_preproc=no
15551 rm -f conftest.err conftest.$ac_ext
15552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15553 echo "${ECHO_T}$ac_header_preproc" >&6; }
15555 # So? What about this header?
15556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15562 ac_header_preproc=yes
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 eval "$as_ac_Header=\$ac_header_preproc"
15587 ac_res=`eval echo '${'$as_ac_Header'}'`
15588 { echo "$as_me:$LINENO: result: $ac_res" >&5
15589 echo "${ECHO_T}$ac_res" >&6; }
15592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15593 cat >>confdefs.h <<_ACEOF
15594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15602 # End of readline/conio stuff
15603 # -----------------------------------------------------------------------
15605 # -----------------------------------------------------------------------
15606 # Check for Python support
15608 { echo "$as_me:$LINENO: checking for Python support" >&5
15609 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15611 # Check whether --with-python was given.
15612 if test "${with_python+set}" = set; then
15613 withval=$with_python;
15616 if test "$withval" != "no"; then
15617 if test "$withval" = "yes"; then
15618 for python_root in /usr /usr/local /usr/sfw; do
15619 for ver in python2.2 python2.3 python2.4 python2.5; do
15620 if test -f $python_root/include/${ver}/Python.h; then
15621 PYTHON_INCDIR=-I$python_root/include/${ver}
15622 if test -d $python_root/lib64/${ver}/config; then
15623 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15625 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15631 if test x$PYTHON_INCDIR = x; then
15632 if test -f $prefix/include/Python.h; then
15633 PYTHON_INCDIR=-I$prefix/include
15634 if test -d $prefix/lib64/config; then
15635 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15637 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15640 { echo "$as_me:$LINENO: result: no" >&5
15641 echo "${ECHO_T}no" >&6; }
15642 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15643 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15644 { (exit 1); exit 1; }; }
15648 if test -f $withval/Python.h; then
15649 PYTHON_INCDIR=-I$withval
15650 PYTHON_LIBS="-L$withval/config -lpython"
15651 elif test -f $withval/include/Python.h; then
15652 PYTHON_INCDIR=-I$withval/include
15653 if test -d $withval/lib64/config; then
15654 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15656 PYTHON_LIBS="-L$withval/lib/config -lpython"
15658 elif test -f $withval/include/python/Python.h; then
15659 PYTHON_INCDIR=-I$withval/include/python
15660 if test -d $withval/lib64/python/config; then
15661 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15663 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15666 { echo "$as_me:$LINENO: result: no" >&5
15667 echo "${ECHO_T}no" >&6; }
15668 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15669 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15670 { (exit 1); exit 1; }; }
15673 cat >>confdefs.h <<\_ACEOF
15674 #define HAVE_PYTHON 1
15677 { echo "$as_me:$LINENO: result: yes" >&5
15678 echo "${ECHO_T}yes" >&6; }
15680 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15681 echo "$as_me: checking for more Python libs" >&6;}
15682 saved_LIBS="$LIBS"; LIBS=
15683 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15684 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15685 if test "${ac_cv_search_shm_open+set}" = set; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 ac_func_search_save_LIBS=$LIBS
15689 cat >conftest.$ac_ext <<_ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15696 /* Override any GCC internal prototype to avoid an error.
15697 Use char because int might match the return type of a GCC
15698 builtin and then its argument prototype would still apply. */
15706 return shm_open ();
15711 for ac_lib in '' rt; do
15712 if test -z "$ac_lib"; then
15713 ac_res="none required"
15716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (ac_try="$ac_link"
15720 case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_link") 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } && {
15732 test -z "$ac_c_werror_flag" ||
15733 test ! -s conftest.err
15734 } && test -s conftest$ac_exeext &&
15735 $as_test_x conftest$ac_exeext; then
15736 ac_cv_search_shm_open=$ac_res
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15746 if test "${ac_cv_search_shm_open+set}" = set; then
15750 if test "${ac_cv_search_shm_open+set}" = set; then
15753 ac_cv_search_shm_open=no
15755 rm conftest.$ac_ext
15756 LIBS=$ac_func_search_save_LIBS
15758 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15759 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15760 ac_res=$ac_cv_search_shm_open
15761 if test "$ac_res" != no; then
15762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15767 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15768 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15769 if test "${ac_cv_lib_util_openpty+set}" = set; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15772 ac_check_lib_save_LIBS=$LIBS
15773 LIBS="-lutil $LIBS"
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15781 /* Override any GCC internal prototype to avoid an error.
15782 Use char because int might match the return type of a GCC
15783 builtin and then its argument prototype would still apply. */
15796 rm -f conftest.$ac_objext conftest$ac_exeext
15797 if { (ac_try="$ac_link"
15798 case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_link") 2>conftest.er1
15805 grep -v '^ *+' conftest.er1 >conftest.err
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } && {
15810 test -z "$ac_c_werror_flag" ||
15811 test ! -s conftest.err
15812 } && test -s conftest$ac_exeext &&
15813 $as_test_x conftest$ac_exeext; then
15814 ac_cv_lib_util_openpty=yes
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15819 ac_cv_lib_util_openpty=no
15822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15823 conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15826 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15827 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15828 if test $ac_cv_lib_util_openpty = yes; then
15829 cat >>confdefs.h <<_ACEOF
15830 #define HAVE_LIBUTIL 1
15833 LIBS="-lutil $LIBS"
15837 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15840 { echo "$as_me:$LINENO: result: no" >&5
15841 echo "${ECHO_T}no" >&6; }
15846 { echo "$as_me:$LINENO: result: no" >&5
15847 echo "${ECHO_T}no" >&6; }
15855 # Find where sockets are (especially for Solaris)
15856 # Do this before the TCP Wrappers test since tcp wrappers
15857 # uses the socket library and some linkers are stupid.
15859 { echo "$as_me:$LINENO: checking for socket" >&5
15860 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15861 if test "${ac_cv_func_socket+set}" = set; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 cat >conftest.$ac_ext <<_ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15872 #define socket innocuous_socket
15874 /* System header to define __stub macros and hopefully few prototypes,
15875 which can conflict with char socket (); below.
15876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15877 <limits.h> exists even on freestanding compilers. */
15880 # include <limits.h>
15882 # include <assert.h>
15887 /* Override any GCC internal prototype to avoid an error.
15888 Use char because int might match the return type of a GCC
15889 builtin and then its argument prototype would still apply. */
15894 /* The GNU C library defines this for functions which it implements
15895 to always fail with ENOSYS. Some functions are actually named
15896 something starting with __ and the normal name is an alias. */
15897 #if defined __stub_socket || defined __stub___socket
15909 rm -f conftest.$ac_objext conftest$ac_exeext
15910 if { (ac_try="$ac_link"
15911 case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_link") 2>conftest.er1
15918 grep -v '^ *+' conftest.er1 >conftest.err
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } && {
15923 test -z "$ac_c_werror_flag" ||
15924 test ! -s conftest.err
15925 } && test -s conftest$ac_exeext &&
15926 $as_test_x conftest$ac_exeext; then
15927 ac_cv_func_socket=yes
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15932 ac_cv_func_socket=no
15935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15936 conftest$ac_exeext conftest.$ac_ext
15938 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15939 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15940 if test $ac_cv_func_socket = yes; then
15941 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15942 echo "${ECHO_T}using libc's socket" >&6; }
15945 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15946 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15947 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15950 ac_check_lib_save_LIBS=$LIBS
15951 LIBS="-lxnet $LIBS"
15952 cat >conftest.$ac_ext <<_ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15959 /* Override any GCC internal prototype to avoid an error.
15960 Use char because int might match the return type of a GCC
15961 builtin and then its argument prototype would still apply. */
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (ac_try="$ac_link"
15976 case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_link") 2>conftest.er1
15983 grep -v '^ *+' conftest.er1 >conftest.err
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } && {
15988 test -z "$ac_c_werror_flag" ||
15989 test ! -s conftest.err
15990 } && test -s conftest$ac_exeext &&
15991 $as_test_x conftest$ac_exeext; then
15992 ac_cv_lib_xnet_socket=yes
15994 echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15997 ac_cv_lib_xnet_socket=no
16000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16001 conftest$ac_exeext conftest.$ac_ext
16002 LIBS=$ac_check_lib_save_LIBS
16004 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16005 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16006 if test $ac_cv_lib_xnet_socket = yes; then
16007 cat >>confdefs.h <<_ACEOF
16008 #define HAVE_LIBXNET 1
16011 LIBS="-lxnet $LIBS"
16016 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16017 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16018 if test "${ac_cv_lib_socket_socket+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-lsocket $LIBS"
16023 cat >conftest.$ac_ext <<_ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16030 /* Override any GCC internal prototype to avoid an error.
16031 Use char because int might match the return type of a GCC
16032 builtin and then its argument prototype would still apply. */
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_link") 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } && {
16059 test -z "$ac_c_werror_flag" ||
16060 test ! -s conftest.err
16061 } && test -s conftest$ac_exeext &&
16062 $as_test_x conftest$ac_exeext; then
16063 ac_cv_lib_socket_socket=yes
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16068 ac_cv_lib_socket_socket=no
16071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16072 conftest$ac_exeext conftest.$ac_ext
16073 LIBS=$ac_check_lib_save_LIBS
16075 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16076 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16077 if test $ac_cv_lib_socket_socket = yes; then
16078 cat >>confdefs.h <<_ACEOF
16079 #define HAVE_LIBSOCKET 1
16082 LIBS="-lsocket $LIBS"
16087 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16088 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16089 if test "${ac_cv_lib_inet_socket+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 ac_check_lib_save_LIBS=$LIBS
16093 LIBS="-linet $LIBS"
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16101 /* Override any GCC internal prototype to avoid an error.
16102 Use char because int might match the return type of a GCC
16103 builtin and then its argument prototype would still apply. */
16116 rm -f conftest.$ac_objext conftest$ac_exeext
16117 if { (ac_try="$ac_link"
16118 case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_link") 2>conftest.er1
16125 grep -v '^ *+' conftest.er1 >conftest.err
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } && {
16130 test -z "$ac_c_werror_flag" ||
16131 test ! -s conftest.err
16132 } && test -s conftest$ac_exeext &&
16133 $as_test_x conftest$ac_exeext; then
16134 ac_cv_lib_inet_socket=yes
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 ac_cv_lib_inet_socket=no
16142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16143 conftest$ac_exeext conftest.$ac_ext
16144 LIBS=$ac_check_lib_save_LIBS
16146 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16147 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16148 if test $ac_cv_lib_inet_socket = yes; then
16149 cat >>confdefs.h <<_ACEOF
16150 #define HAVE_LIBINET 1
16153 LIBS="-linet $LIBS"
16161 # -----------------------------------------------------------
16162 # Check whether user wants TCP wrappers support (default off)
16163 # -----------------------------------------------------------
16167 # Check whether --with-tcp-wrappers was given.
16168 if test "${with_tcp_wrappers+set}" = set; then
16169 withval=$with_tcp_wrappers;
16170 if test "x$withval" != "xno" ; then
16172 LIBS="$saved_LIBS -lwrap"
16173 { echo "$as_me:$LINENO: checking for libwrap" >&5
16174 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16175 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16176 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16177 if test "${ac_cv_search_nanosleep+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16180 ac_func_search_save_LIBS=$LIBS
16181 cat >conftest.$ac_ext <<_ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16188 /* Override any GCC internal prototype to avoid an error.
16189 Use char because int might match the return type of a GCC
16190 builtin and then its argument prototype would still apply. */
16198 return nanosleep ();
16203 for ac_lib in '' rt; do
16204 if test -z "$ac_lib"; then
16205 ac_res="none required"
16208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16210 rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (ac_try="$ac_link"
16212 case "(($ac_try" in
16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214 *) ac_try_echo=$ac_try;;
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217 (eval "$ac_link") 2>conftest.er1
16219 grep -v '^ *+' conftest.er1 >conftest.err
16221 cat conftest.err >&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } && {
16224 test -z "$ac_c_werror_flag" ||
16225 test ! -s conftest.err
16226 } && test -s conftest$ac_exeext &&
16227 $as_test_x conftest$ac_exeext; then
16228 ac_cv_search_nanosleep=$ac_res
16230 echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16238 if test "${ac_cv_search_nanosleep+set}" = set; then
16242 if test "${ac_cv_search_nanosleep+set}" = set; then
16245 ac_cv_search_nanosleep=no
16247 rm conftest.$ac_ext
16248 LIBS=$ac_func_search_save_LIBS
16250 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16251 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16252 ac_res=$ac_cv_search_nanosleep
16253 if test "$ac_res" != no; then
16254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16258 cat >conftest.$ac_ext <<_ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 #include <sys/types.h>
16266 int deny_severity = 0;
16267 int allow_severity = 0;
16268 struct request_info *req;
16277 rm -f conftest.$ac_objext conftest$ac_exeext
16278 if { (ac_try="$ac_link"
16279 case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_link") 2>conftest.er1
16286 grep -v '^ *+' conftest.er1 >conftest.err
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } && {
16291 test -z "$ac_c_werror_flag" ||
16292 test ! -s conftest.err
16293 } && test -s conftest$ac_exeext &&
16294 $as_test_x conftest$ac_exeext; then
16296 { echo "$as_me:$LINENO: result: yes" >&5
16297 echo "${ECHO_T}yes" >&6; }
16299 cat >>confdefs.h <<\_ACEOF
16300 #define HAVE_LIBWRAP 1
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16312 LIBS="$saved_LIBS -lwrap -lnsl"
16313 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16314 cat >conftest.$ac_ext <<_ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 #include <sys/types.h>
16322 int deny_severity = 0;
16323 int allow_severity = 0;
16324 struct request_info *req;
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (ac_try="$ac_link"
16335 case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_link") 2>conftest.er1
16342 grep -v '^ *+' conftest.er1 >conftest.err
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } && {
16347 test -z "$ac_c_werror_flag" ||
16348 test ! -s conftest.err
16349 } && test -s conftest$ac_exeext &&
16350 $as_test_x conftest$ac_exeext; then
16352 { echo "$as_me:$LINENO: result: yes" >&5
16353 echo "${ECHO_T}yes" >&6; }
16355 cat >>confdefs.h <<\_ACEOF
16356 #define HAVE_LIBWRAP 1
16364 echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16367 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16368 echo "$as_me: error: *** libwrap missing" >&2;}
16369 { (exit 1); exit 1; }; }
16373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16374 conftest$ac_exeext conftest.$ac_ext
16378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16379 conftest$ac_exeext conftest.$ac_ext
16386 # -----------------------------------------------------------
16387 # Check whether OpenSSL is available
16388 # -----------------------------------------------------------
16389 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16390 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16392 # Check whether --with-openssl was given.
16393 if test "${with_openssl+set}" = set; then
16394 withval=$with_openssl; with_openssl_directory=${withval}
16398 if test "x$with_openssl_directory" != "x"; then
16399 OPENSSL_LIBS="-lssl -lcrypto"
16402 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16403 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16404 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16407 saved_LIBS="${LIBS}"
16408 saved_CFLAGS="${CFLAGS}"
16409 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16410 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 #include <openssl/ssl.h>
16422 CRYPTO_set_id_callback(NULL);
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (ac_try="$ac_link"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_link") 2>conftest.er1
16436 grep -v '^ *+' conftest.er1 >conftest.err
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && {
16441 test -z "$ac_c_werror_flag" ||
16442 test ! -s conftest.err
16443 } && test -s conftest$ac_exeext &&
16444 $as_test_x conftest$ac_exeext; then
16447 support_crypto="yes"
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16458 conftest$ac_exeext conftest.$ac_ext
16460 cat >conftest.$ac_ext <<_ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 #include <openssl/evp.h>
16475 rm -f conftest.$ac_objext conftest$ac_exeext
16476 if { (ac_try="$ac_link"
16477 case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482 (eval "$ac_link") 2>conftest.er1
16484 grep -v '^ *+' conftest.er1 >conftest.err
16486 cat conftest.err >&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } && {
16489 test -z "$ac_c_werror_flag" ||
16490 test ! -s conftest.err
16491 } && test -s conftest$ac_exeext &&
16492 $as_test_x conftest$ac_exeext; then
16493 ac_cv_openssl_sha2="yes"
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_cv_openssl_sha2="no"
16502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503 conftest$ac_exeext conftest.$ac_ext
16505 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16506 # implementation, presumably for export reasons. If 192bit AES
16507 # is available, we assume that we're running with a 'non-export'
16509 cat >conftest.$ac_ext <<_ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h. */
16515 #include <openssl/evp.h>
16524 rm -f conftest.$ac_objext conftest$ac_exeext
16525 if { (ac_try="$ac_link"
16526 case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_link") 2>conftest.er1
16533 grep -v '^ *+' conftest.er1 >conftest.err
16535 cat conftest.err >&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } && {
16538 test -z "$ac_c_werror_flag" ||
16539 test ! -s conftest.err
16540 } && test -s conftest$ac_exeext &&
16541 $as_test_x conftest$ac_exeext; then
16542 ac_cv_openssl_export="no"
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ac_cv_openssl_export="yes"
16551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16552 conftest$ac_exeext conftest.$ac_ext
16554 LIBS="${saved_LIBS}"
16555 CFLAGS="${saved_CFLAGS}"
16557 if test "$support_tls" = "yes"; then
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_OPENSSL 1
16564 cat >>confdefs.h <<\_ACEOF
16569 cat >>confdefs.h <<\_ACEOF
16570 #define HAVE_CRYPTO 1
16575 if test "$ac_cv_openssl_sha2" = "yes"; then
16577 cat >>confdefs.h <<\_ACEOF
16578 #define HAVE_SHA2 1
16583 if test "$ac_cv_openssl_export" = "yes"; then
16585 cat >>confdefs.h <<\_ACEOF
16586 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16592 support_crypto="no"
16597 { echo "$as_me:$LINENO: result: $support_tls" >&5
16598 echo "${ECHO_T}$support_tls" >&6; }
16603 # -----------------------------------------------------------
16604 # dlopen is needed for plugins
16605 # -----------------------------------------------------------
16606 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16607 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16608 if test "${ac_cv_search_dlopen+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 ac_func_search_save_LIBS=$LIBS
16612 cat >conftest.$ac_ext <<_ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16619 /* Override any GCC internal prototype to avoid an error.
16620 Use char because int might match the return type of a GCC
16621 builtin and then its argument prototype would still apply. */
16634 for ac_lib in '' dl; do
16635 if test -z "$ac_lib"; then
16636 ac_res="none required"
16639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (ac_try="$ac_link"
16643 case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_link") 2>conftest.er1
16650 grep -v '^ *+' conftest.er1 >conftest.err
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } && {
16655 test -z "$ac_c_werror_flag" ||
16656 test ! -s conftest.err
16657 } && test -s conftest$ac_exeext &&
16658 $as_test_x conftest$ac_exeext; then
16659 ac_cv_search_dlopen=$ac_res
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16669 if test "${ac_cv_search_dlopen+set}" = set; then
16673 if test "${ac_cv_search_dlopen+set}" = set; then
16676 ac_cv_search_dlopen=no
16678 rm conftest.$ac_ext
16679 LIBS=$ac_func_search_save_LIBS
16681 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16682 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16683 ac_res=$ac_cv_search_dlopen
16684 if test "$ac_res" != no; then
16685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16690 # ------------------------------------------
16691 # Where to place working dir
16692 # ------------------------------------------
16693 working_dir=`eval echo ${prefix}/var/bacula/working`
16695 # Check whether --with-working-dir was given.
16696 if test "${with_working_dir+set}" = set; then
16697 withval=$with_working_dir;
16698 if test "x$withval" != "xno" ; then
16699 working_dir=$withval
16708 # ------------------------------------------------------------------
16709 # If the user has not set archivedir, we set our default as /tmp
16710 # ------------------------------------------------------------------
16713 # Check whether --with-archivedir was given.
16714 if test "${with_archivedir+set}" = set; then
16715 withval=$with_archivedir;
16716 if test "x$withval" != "xno" ; then
16717 archivedir=$withval
16728 # ------------------------------------------
16729 # Where to place scriptdir (script files)
16730 # ------------------------------------------
16731 scriptdir=`eval echo ${sysconfdir}`
16733 # Check whether --with-scriptdir was given.
16734 if test "${with_scriptdir+set}" = set; then
16735 withval=$with_scriptdir;
16736 if test "x$withval" != "xno" ; then
16747 # ------------------------------------------
16748 # Where to send dump email
16749 # ------------------------------------------
16750 dump_email=root@localhost
16752 # Check whether --with-dump-email was given.
16753 if test "${with_dump_email+set}" = set; then
16754 withval=$with_dump_email;
16755 if test "x$withval" != "xno" ; then
16756 dump_email=$withval
16765 # ------------------------------------------
16766 # Where to send job email
16767 # ------------------------------------------
16768 job_email=root@localhost
16770 # Check whether --with-job-email was given.
16771 if test "${with_job_email+set}" = set; then
16772 withval=$with_job_email;
16773 if test "x$withval" != "xno" ; then
16783 # ------------------------------------------
16784 # Where to find smtp host
16785 # ------------------------------------------
16786 smtp_host=localhost
16788 # Check whether --with-smtp_host was given.
16789 if test "${with_smtp_host+set}" = set; then
16790 withval=$with_smtp_host;
16791 if test "x$withval" != "xno" ; then
16802 # ------------------------------------
16803 # Where to place pid files
16804 # ------------------------------------
16807 # Check whether --with-pid-dir was given.
16808 if test "${with_pid_dir+set}" = set; then
16809 withval=$with_pid_dir;
16810 if test "x$withval" != "xno" ; then
16818 cat >>confdefs.h <<_ACEOF
16819 #define _PATH_BACULA_PIDDIR "$piddir"
16825 # ------------------------------------
16826 # Where to place subsys "lock file"
16827 # ------------------------------------
16828 subsysdir=/var/run/subsys
16829 if test -d /var/run/subsys; then
16830 subsysdir=/var/run/subsys
16831 elif test -d /var/lock/subsys; then
16832 subsysdir=/var/lock/subsys
16834 subsysdir=/var/run/subsys
16837 # Check whether --with-subsys-dir was given.
16838 if test "${with_subsys_dir+set}" = set; then
16839 withval=$with_subsys_dir;
16840 if test "x$withval" != "xno" ; then
16852 # ------------------------------------
16853 # Where to start assigning ports
16854 # ------------------------------------
16857 # Check whether --with-baseport was given.
16858 if test "${with_baseport+set}" = set; then
16859 withval=$with_baseport;
16860 if test "x$withval" != "xno" ; then
16869 dir_port=`expr $baseport`
16870 fd_port=`expr $baseport + 1`
16871 sd_port=`expr $fd_port + 1`
16878 # ------------------------------------------
16879 # Generate passwords
16880 # ------------------------------------------
16883 # Check whether --with-dir-password was given.
16884 if test "${with_dir_password+set}" = set; then
16885 withval=$with_dir_password;
16886 if test "x$withval" != "xno" ; then
16887 dir_password=$withval
16894 if test "x$dir_password" = "x" ; then
16895 if test "x$OPENSSL" = "xnone" ; then
16896 key=`autoconf/randpass 33`
16898 key=`openssl rand -base64 33`
16905 # Check whether --with-fd-password was given.
16906 if test "${with_fd_password+set}" = set; then
16907 withval=$with_fd_password;
16908 if test "x$withval" != "xno" ; then
16909 fd_password=$withval
16916 if test "x$fd_password" = "x" ; then
16917 if test "x$OPENSSL" = "xnone" ; then
16918 key=`autoconf/randpass 37`
16920 key=`openssl rand -base64 33`
16927 # Check whether --with-sd-password was given.
16928 if test "${with_sd_password+set}" = set; then
16929 withval=$with_sd_password;
16930 if test "x$withval" != "xno" ; then
16931 sd_password=$withval
16938 if test "x$sd_password" = "x" ; then
16939 if test "x$OPENSSL" = "xnone" ; then
16940 key=`autoconf/randpass 41`
16942 key=`openssl rand -base64 33`
16949 # Check whether --with-mon-dir-password was given.
16950 if test "${with_mon_dir_password+set}" = set; then
16951 withval=$with_mon_dir_password;
16952 if test "x$withval" != "xno" ; then
16953 mon_dir_password=$withval
16960 if test "x$mon_dir_password" = "x" ; then
16961 if test "x$OPENSSL" = "xnone" ; then
16962 key=`autoconf/randpass 33`
16964 key=`openssl rand -base64 33`
16966 mon_dir_password=$key
16971 # Check whether --with-mon-fd-password was given.
16972 if test "${with_mon_fd_password+set}" = set; then
16973 withval=$with_mon_fd_password;
16974 if test "x$withval" != "xno" ; then
16975 mon_fd_password=$withval
16982 if test "x$mon_fd_password" = "x" ; then
16983 if test "x$OPENSSL" = "xnone" ; then
16984 key=`autoconf/randpass 37`
16986 key=`openssl rand -base64 33`
16988 mon_fd_password=$key
16993 # Check whether --with-mon-sd-password was given.
16994 if test "${with_mon_sd_password+set}" = set; then
16995 withval=$with_mon_sd_password;
16996 if test "x$withval" != "xno" ; then
16997 mon_sd_password=$withval
17004 if test "x$mon_sd_password" = "x" ; then
17005 if test "x$OPENSSL" = "xnone" ; then
17006 key=`autoconf/randpass 41`
17008 key=`openssl rand -base64 33`
17010 mon_sd_password=$key
17021 # Pickup any database name
17025 # Check whether --with-db_name was given.
17026 if test "${with_db_name+set}" = set; then
17027 withval=$with_db_name;
17028 if test "x$withval" != "x" ; then
17039 # Check whether --with-db_user was given.
17040 if test "${with_db_user+set}" = set; then
17041 withval=$with_db_user;
17042 if test "x$withval" != "x" ; then
17053 # Handle users and groups for each daemon
17057 # Check whether --with-dir_user was given.
17058 if test "${with_dir_user+set}" = set; then
17059 withval=$with_dir_user;
17060 if test "x$withval" != "x" ; then
17070 # Check whether --with-dir_group was given.
17071 if test "${with_dir_group+set}" = set; then
17072 withval=$with_dir_group;
17073 if test "x$withval" != "x" ; then
17083 # Check whether --with-sd_user was given.
17084 if test "${with_sd_user+set}" = set; then
17085 withval=$with_sd_user;
17086 if test "x$withval" != "x" ; then
17096 # Check whether --with-sd_group was given.
17097 if test "${with_sd_group+set}" = set; then
17098 withval=$with_sd_group;
17099 if test "x$withval" != "x" ; then
17109 # Check whether --with-fd_user was given.
17110 if test "${with_fd_user+set}" = set; then
17111 withval=$with_fd_user;
17112 if test "x$withval" != "x" ; then
17122 # Check whether --with-fd_group was given.
17123 if test "${with_fd_group+set}" = set; then
17124 withval=$with_fd_group;
17125 if test "x$withval" != "x" ; then
17141 # allow setting default executable permissions
17145 # Check whether --with-sbin-perm was given.
17146 if test "${with_sbin_perm+set}" = set; then
17147 withval=$with_sbin_perm;
17148 if test "x$withval" != "x" ; then
17158 # ------------------------------------------------
17159 # Bacula check for various SQL database engines
17160 # ------------------------------------------------
17164 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17165 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17167 # Check whether --with-postgresql was given.
17168 if test "${with_postgresql+set}" = set; then
17169 withval=$with_postgresql;
17170 if test "$withval" != "no"; then
17171 if test "$db_found" = "yes"; then
17172 { echo "$as_me:$LINENO: result: error" >&5
17173 echo "${ECHO_T}error" >&6; }
17174 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17175 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17176 { (exit 1); exit 1; }; };
17178 if test "$withval" = "yes"; then
17179 PG_CONFIG=`which pg_config`
17180 if test -n "$PG_CONFIG";then
17181 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17182 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17183 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17184 elif test -f /usr/local/include/libpq-fe.h; then
17185 POSTGRESQL_INCDIR=/usr/local/include
17186 if test -d /usr/local/lib64; then
17187 POSTGRESQL_LIBDIR=/usr/local/lib64
17189 POSTGRESQL_LIBDIR=/usr/local/lib
17191 POSTGRESQL_BINDIR=/usr/local/bin
17192 elif test -f /usr/include/libpq-fe.h; then
17193 POSTGRESQL_INCDIR=/usr/include
17194 if test -d /usr/lib64; then
17195 POSTGRESQL_LIBDIR=/usr/lib64
17197 POSTGRESQL_LIBDIR=/usr/lib
17199 POSTGRESQL_BINDIR=/usr/bin
17200 elif test -f /usr/include/pgsql/libpq-fe.h; then
17201 POSTGRESQL_INCDIR=/usr/include/pgsql
17202 if test -d /usr/lib64/pgsql; then
17203 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17205 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17207 POSTGRESQL_BINDIR=/usr/bin
17208 elif test -f /usr/include/postgresql/libpq-fe.h; then
17209 POSTGRESQL_INCDIR=/usr/include/postgresql
17210 if test -d /usr/lib64/postgresql; then
17211 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17213 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17215 POSTGRESQL_BINDIR=/usr/bin
17217 { echo "$as_me:$LINENO: result: no" >&5
17218 echo "${ECHO_T}no" >&6; }
17219 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17220 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17221 { (exit 1); exit 1; }; }
17223 elif test -f $withval/include/libpq-fe.h; then
17224 POSTGRESQL_INCDIR=$withval/include
17225 POSTGRESQL_LIBDIR=$withval/lib
17226 POSTGRESQL_BINDIR=$withval/bin
17227 elif test -f $withval/include/postgresql/libpq-fe.h; then
17228 POSTGRESQL_INCDIR=$withval/include/postgresql
17229 if test -d $withval/lib64; then
17230 POSTGRESQL_LIBDIR=$withval/lib64
17232 POSTGRESQL_LIBDIR=$withval/lib
17234 POSTGRESQL_BINDIR=$withval/bin
17236 { echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6; }
17238 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17239 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17240 { (exit 1); exit 1; }; }
17242 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17243 { echo "$as_me:$LINENO: checking for crypt" >&5
17244 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17245 if test "${ac_cv_func_crypt+set}" = set; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 cat >conftest.$ac_ext <<_ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17254 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17256 #define crypt innocuous_crypt
17258 /* System header to define __stub macros and hopefully few prototypes,
17259 which can conflict with char crypt (); below.
17260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261 <limits.h> exists even on freestanding compilers. */
17264 # include <limits.h>
17266 # include <assert.h>
17271 /* Override any GCC internal prototype to avoid an error.
17272 Use char because int might match the return type of a GCC
17273 builtin and then its argument prototype would still apply. */
17278 /* The GNU C library defines this for functions which it implements
17279 to always fail with ENOSYS. Some functions are actually named
17280 something starting with __ and the normal name is an alias. */
17281 #if defined __stub_crypt || defined __stub___crypt
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest$ac_exeext &&
17310 $as_test_x conftest$ac_exeext; then
17311 ac_cv_func_crypt=yes
17313 echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17316 ac_cv_func_crypt=no
17319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17320 conftest$ac_exeext conftest.$ac_ext
17322 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17323 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17324 if test $ac_cv_func_crypt = yes; then
17327 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17328 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17329 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 ac_check_lib_save_LIBS=$LIBS
17333 LIBS="-lcrypt $LIBS"
17334 cat >conftest.$ac_ext <<_ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_link") 2>conftest.er1
17365 grep -v '^ *+' conftest.er1 >conftest.err
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } && {
17370 test -z "$ac_c_werror_flag" ||
17371 test ! -s conftest.err
17372 } && test -s conftest$ac_exeext &&
17373 $as_test_x conftest$ac_exeext; then
17374 ac_cv_lib_crypt_crypt=yes
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ac_cv_lib_crypt_crypt=no
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383 conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17386 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17387 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17388 if test $ac_cv_lib_crypt_crypt = yes; then
17389 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17394 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17395 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17396 SQL_BINDIR=$POSTGRESQL_BINDIR
17397 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_POSTGRESQL 1
17403 { echo "$as_me:$LINENO: result: yes" >&5
17404 echo "${ECHO_T}yes" >&6; }
17406 support_postgresql=yes
17410 { echo "$as_me:$LINENO: result: no" >&5
17411 echo "${ECHO_T}no" >&6; }
17416 { echo "$as_me:$LINENO: result: no" >&5
17417 echo "${ECHO_T}no" >&6; }
17429 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17430 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17432 # Check whether --with-mysql was given.
17433 if test "${with_mysql+set}" = set; then
17434 withval=$with_mysql;
17435 if test "$withval" != "no"; then
17436 if test "$withval" = "yes"; then
17437 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17438 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17439 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17440 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17441 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17443 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17445 MYSQL_BINDIR=/usr/local/mysql/bin
17446 elif test -f /usr/include/mysql/mysql.h; then
17447 MYSQL_INCDIR=/usr/include/mysql
17448 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17449 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17450 MYSQL_LIBDIR=/usr/lib64/mysql
17451 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17452 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17453 MYSQL_LIBDIR=/usr/lib/mysql
17455 MYSQL_LIBDIR=/usr/lib
17457 MYSQL_BINDIR=/usr/bin
17458 elif test -f /usr/include/mysql.h; then
17459 MYSQL_INCDIR=/usr/include
17460 if test -f /usr/lib64/libmysqlclient_r.a \
17461 -o -f /usr/lib64/libmysqlclient_r.so; then
17462 MYSQL_LIBDIR=/usr/lib64
17464 MYSQL_LIBDIR=/usr/lib
17466 MYSQL_BINDIR=/usr/bin
17467 elif test -f /usr/local/include/mysql/mysql.h; then
17468 MYSQL_INCDIR=/usr/local/include/mysql
17469 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17470 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17471 MYSQL_LIBDIR=/usr/local/lib64/mysql
17473 MYSQL_LIBDIR=/usr/local/lib/mysql
17475 MYSQL_BINDIR=/usr/local/bin
17476 elif test -f /usr/local/include/mysql.h; then
17477 MYSQL_INCDIR=/usr/local/include
17478 if test -f /usr/local/lib64/libmysqlclient_r.a \
17479 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17480 MYSQL_LIBDIR=/usr/local/lib64
17482 MYSQL_LIBDIR=/usr/local/lib
17484 MYSQL_BINDIR=/usr/local/bin
17486 { echo "$as_me:$LINENO: result: no" >&5
17487 echo "${ECHO_T}no" >&6; }
17488 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17489 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17490 { (exit 1); exit 1; }; }
17493 if test -f $withval/include/mysql/mysql.h; then
17494 MYSQL_INCDIR=$withval/include/mysql
17495 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17496 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17497 MYSQL_LIBDIR=$withval/lib64/mysql
17499 MYSQL_LIBDIR=$withval/lib/mysql
17501 if test -f $withval/lib/libmysqlclient_r.so; then
17502 MYSQL_LIBDIR=$withval/lib
17505 MYSQL_BINDIR=$withval/bin
17506 elif test -f $withval/include/mysql.h; then
17507 MYSQL_INCDIR=$withval/include
17508 if test -f $withval/lib64/libmysqlclient_r.a \
17509 -o -f $withval/lib64/libmysqlclient_r.so; then
17510 MYSQL_LIBDIR=$withval/lib64
17512 MYSQL_LIBDIR=$withval/lib
17514 MYSQL_BINDIR=$withval/bin
17516 { echo "$as_me:$LINENO: result: no" >&5
17517 echo "${ECHO_T}no" >&6; }
17518 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17519 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17520 { (exit 1); exit 1; }; }
17523 SQL_INCLUDE=-I$MYSQL_INCDIR
17524 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17525 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17526 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17527 cat >>confdefs.h <<\_ACEOF
17528 #define HAVE_THREAD_SAFE_MYSQL 1
17532 SQL_BINDIR=$MYSQL_BINDIR
17533 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17535 cat >>confdefs.h <<\_ACEOF
17536 #define HAVE_MYSQL 1
17539 { echo "$as_me:$LINENO: result: yes" >&5
17540 echo "${ECHO_T}yes" >&6; }
17547 { echo "$as_me:$LINENO: result: no" >&5
17548 echo "${ECHO_T}no" >&6; }
17556 # Check whether --with-embedded-mysql was given.
17557 if test "${with_embedded_mysql+set}" = set; then
17558 withval=$with_embedded_mysql;
17559 if test "$withval" != "no"; then
17560 if test "$withval" = "yes"; then
17561 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17562 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17563 if test -d /usr/local/mysql/lib64/mysql; then
17564 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17566 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17568 MYSQL_BINDIR=/usr/local/mysql/bin
17569 elif test -f /usr/include/mysql/mysql.h; then
17570 MYSQL_INCDIR=/usr/include/mysql
17571 if test -d /usr/lib64/mysql; then
17572 MYSQL_LIBDIR=/usr/lib64/mysql
17574 MYSQL_LIBDIR=/usr/lib/mysql
17576 MYSQL_BINDIR=/usr/bin
17577 elif test -f /usr/include/mysql.h; then
17578 MYSQL_INCDIR=/usr/include
17579 if test -d /usr/lib64; then
17580 MYSQL_LIBDIR=/usr/lib64
17582 MYSQL_LIBDIR=/usr/lib
17584 MYSQL_BINDIR=/usr/bin
17585 elif test -f /usr/local/include/mysql/mysql.h; then
17586 MYSQL_INCDIR=/usr/local/include/mysql
17587 if test -d /usr/local/lib64/mysql; then
17588 MYSQL_LIBDIR=/usr/local/lib64/mysql
17590 MYSQL_LIBDIR=/usr/local/lib/mysql
17592 MYSQL_BINDIR=/usr/local/bin
17593 elif test -f /usr/local/include/mysql.h; then
17594 MYSQL_INCDIR=/usr/local/include
17595 if test -d /usr/local/lib64; then
17596 MYSQL_LIBDIR=/usr/local/lib64
17598 MYSQL_LIBDIR=/usr/local/lib
17600 MYSQL_BINDIR=/usr/local/bin
17602 { echo "$as_me:$LINENO: result: no" >&5
17603 echo "${ECHO_T}no" >&6; }
17604 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17605 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17606 { (exit 1); exit 1; }; }
17609 if test -f $withval/include/mysql/mysql.h; then
17610 MYSQL_INCDIR=$withval/include/mysql
17611 if test -d $withval/lib64/mysql; then
17612 MYSQL_LIBDIR=$withval/lib64/mysql
17614 MYSQL_LIBDIR=$withval/lib/mysql
17616 MYSQL_BINDIR=$withval/bin
17617 elif test -f $withval/include/mysql.h; then
17618 MYSQL_INCDIR=$withval/include
17619 if test -d $withval/lib64; then
17620 MYSQL_LIBDIR=$withval/lib64
17622 MYSQL_LIBDIR=$withval/lib
17624 MYSQL_BINDIR=$withval/bin
17626 { echo "$as_me:$LINENO: result: no" >&5
17627 echo "${ECHO_T}no" >&6; }
17628 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17629 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17630 { (exit 1); exit 1; }; }
17633 SQL_INCLUDE=-I$MYSQL_INCDIR
17634 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17635 SQL_BINDIR=$MYSQL_BINDIR
17636 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17638 cat >>confdefs.h <<\_ACEOF
17639 #define HAVE_MYSQL 1
17642 cat >>confdefs.h <<\_ACEOF
17643 #define HAVE_EMBEDDED_MYSQL 1
17646 { echo "$as_me:$LINENO: result: yes" >&5
17647 echo "${ECHO_T}yes" >&6; }
17654 { echo "$as_me:$LINENO: result: no" >&5
17655 echo "${ECHO_T}no" >&6; }
17671 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17672 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17674 # Check whether --with-sqlite3 was given.
17675 if test "${with_sqlite3+set}" = set; then
17676 withval=$with_sqlite3;
17677 if test "$withval" != "no"; then
17678 if test "$withval" = "yes"; then
17679 if test -f /usr/local/include/sqlite3.h; then
17680 SQLITE_INCDIR=/usr/local/include
17681 if test -d /usr/local/lib64; then
17682 SQLITE_LIBDIR=/usr/local/lib64
17684 SQLITE_LIBDIR=/usr/local/lib
17686 SQLITE_BINDIR=/usr/local/bin
17687 elif test -f /usr/include/sqlite3.h; then
17688 SQLITE_INCDIR=/usr/include
17689 if test -d /usr/lib64; then
17690 SQLITE_LIBDIR=/usr/lib64
17692 SQLITE_LIBDIR=/usr/lib
17694 SQLITE_BINDIR=/usr/bin
17695 elif test -f $prefix/include/sqlite3.h; then
17696 SQLITE_INCDIR=$prefix/include
17697 if test -d $prefix/lib64; then
17698 SQLITE_LIBDIR=$prefix/lib64
17700 SQLITE_LIBDIR=$prefix/lib
17702 SQLITE_BINDIR=$prefix/bin
17704 { echo "$as_me:$LINENO: result: no" >&5
17705 echo "${ECHO_T}no" >&6; }
17706 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17707 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17708 { (exit 1); exit 1; }; }
17711 if test -f $withval/sqlite3.h; then
17712 SQLITE_INCDIR=$withval
17713 SQLITE_LIBDIR=$withval
17714 SQLITE_BINDIR=$withval
17715 elif test -f $withval/include/sqlite3.h; then
17716 SQLITE_INCDIR=$withval/include
17717 if test -d $withval/lib64; then
17718 SQLITE_LIBDIR=$withval/lib64
17720 SQLITE_LIBDIR=$withval/lib
17722 SQLITE_BINDIR=$withval/bin
17724 { echo "$as_me:$LINENO: result: no" >&5
17725 echo "${ECHO_T}no" >&6; }
17726 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17727 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17728 { (exit 1); exit 1; }; }
17731 SQL_INCLUDE=-I$SQLITE_INCDIR
17732 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17733 SQL_BINDIR=$SQLITE_BINDIR
17734 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17736 cat >>confdefs.h <<\_ACEOF
17737 #define HAVE_SQLITE3 1
17740 { echo "$as_me:$LINENO: result: yes" >&5
17741 echo "${ECHO_T}yes" >&6; }
17743 support_sqlite3=yes
17748 { echo "$as_me:$LINENO: result: no" >&5
17749 echo "${ECHO_T}no" >&6; }
17754 { echo "$as_me:$LINENO: result: no" >&5
17755 echo "${ECHO_T}no" >&6; }
17767 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17768 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17770 # Check whether --with-sqlite was given.
17771 if test "${with_sqlite+set}" = set; then
17772 withval=$with_sqlite;
17773 if test "$withval" != "no"; then
17774 if test "$withval" = "yes"; then
17775 if test -f /usr/local/include/sqlite.h; then
17776 SQLITE_INCDIR=/usr/local/include
17777 if test -d /usr/local/lib64; then
17778 SQLITE_LIBDIR=/usr/local/lib64
17780 SQLITE_LIBDIR=/usr/local/lib
17782 SQLITE_BINDIR=/usr/local/bin
17783 elif test -f /usr/include/sqlite.h; then
17784 SQLITE_INCDIR=/usr/include
17785 if test -d /usr/lib64; then
17786 SQLITE_LIBDIR=/usr/lib64
17788 SQLITE_LIBDIR=/usr/lib
17790 SQLITE_BINDIR=/usr/bin
17791 elif test -f $prefix/include/sqlite.h; then
17792 SQLITE_INCDIR=$prefix/include
17793 if test -d $prefix/lib64; then
17794 SQLITE_LIBDIR=$prefix/lib64
17796 SQLITE_LIBDIR=$prefix/lib
17798 SQLITE_BINDIR=$prefix/bin
17800 { echo "$as_me:$LINENO: result: no" >&5
17801 echo "${ECHO_T}no" >&6; }
17802 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17803 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17804 { (exit 1); exit 1; }; }
17807 if test -f $withval/sqlite.h; then
17808 SQLITE_INCDIR=$withval
17809 SQLITE_LIBDIR=$withval
17810 SQLITE_BINDIR=$withval
17811 elif test -f $withval/include/sqlite.h; then
17812 SQLITE_INCDIR=$withval/include
17813 if test -d $withval/lib64; then
17814 SQLITE_LIBDIR=$withval/lib64
17816 SQLITE_LIBDIR=$withval/lib
17818 SQLITE_BINDIR=$withval/bin
17820 { echo "$as_me:$LINENO: result: no" >&5
17821 echo "${ECHO_T}no" >&6; }
17822 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17823 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17824 { (exit 1); exit 1; }; }
17827 SQL_INCLUDE=-I$SQLITE_INCDIR
17828 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17829 SQL_BINDIR=$SQLITE_BINDIR
17830 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17832 cat >>confdefs.h <<\_ACEOF
17833 #define HAVE_SQLITE 1
17836 { echo "$as_me:$LINENO: result: yes" >&5
17837 echo "${ECHO_T}yes" >&6; }
17844 { echo "$as_me:$LINENO: result: no" >&5
17845 echo "${ECHO_T}no" >&6; }
17850 { echo "$as_me:$LINENO: result: no" >&5
17851 echo "${ECHO_T}no" >&6; }
17863 { echo "$as_me:$LINENO: checking for DBI support" >&5
17864 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17866 # Check whether --with-dbi was given.
17867 if test "${with_dbi+set}" = set; then
17869 if test "$withval" != "no"; then
17870 if test "$withval" = "yes"; then
17871 if test -f /usr/local/include/dbi/dbi.h; then
17872 DBI_INCDIR=/usr/local/dbi/include
17873 if test -d /usr/local/lib64; then
17874 DBI_LIBDIR=/usr/local/lib64
17876 DBI_LIBDIR=/usr/local/lib
17878 DBI_BINDIR=/usr/local/bin
17879 elif test -f /usr/include/dbi/dbi.h; then
17880 DBI_INCDIR=/usr/include
17881 if test -d /usr/lib64; then
17882 DBI_LIBDIR=/usr/lib64
17884 DBI_LIBDIR=/usr/lib
17886 DBI_BINDIR=/usr/bin
17887 elif test -f $prefix/include/dbi/dbi.h; then
17888 DBI_INCDIR=$prefix/include
17889 if test -d $prefix/lib64; then
17890 DBI_LIBDIR=$prefix/lib64
17892 DBI_LIBDIR=$prefix/lib
17894 DBI_BINDIR=$prefix/bin
17896 { echo "$as_me:$LINENO: result: no" >&5
17897 echo "${ECHO_T}no" >&6; }
17898 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17899 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17900 { (exit 1); exit 1; }; }
17902 if test -d /usr/local/lib/dbd; then
17903 DRIVERDIR=/usr/local/lib/dbd
17904 if test -d /usr/local/lib64/dbd; then
17905 DRIVERDIR=/usr/local/lib64/dbd
17907 DRIVERDIR=/usr/local/lib/dbd
17909 elif test -d /usr/lib/dbd; then
17910 DRIVERDIR=/usr/lib/dbd
17911 if test -d /usr/lib64/dbd; then
17912 DRIVERDIR=/usr/lib64/dbd
17914 DRIVERDIR=/usr/lib/dbd
17916 elif test -d $prefix/lib/dbd; then
17917 if test -d $prefix/lib64/dbd; then
17918 DRIVERDIR=$prefix/lib64/dbd
17920 DRIVERDIR=$prefix/lib/dbd
17923 { echo "$as_me:$LINENO: result: no" >&5
17924 echo "${ECHO_T}no" >&6; }
17925 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17926 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17927 { (exit 1); exit 1; }; }
17930 if test -f $withval/dbi.h; then
17931 DBI_INCDIR=$withval
17932 DBI_LIBDIR=$withval
17933 DBI_BINDIR=$withval
17934 elif test -f $withval/include/dbi/dbi.h; then
17935 DBI_INCDIR=$withval/include
17936 if test -d $withval/lib64; then
17937 DBI_LIBDIR=$withval/lib64
17939 DBI_LIBDIR=$withval/lib
17941 DBI_BINDIR=$withval/bin
17943 { echo "$as_me:$LINENO: result: no" >&5
17944 echo "${ECHO_T}no" >&6; }
17945 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17946 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17947 { (exit 1); exit 1; }; }
17949 if test -d $withval/dbd; then
17950 DRIVERDIR=$withval/dbd
17951 elif test -d $withval/lib/; then
17952 if test -d $withval/lib64/dbd; then
17953 DRIVERDIR=$withval/lib64/dbd
17955 DRIVERDIR=$withval/lib/dbd
17958 { echo "$as_me:$LINENO: result: no" >&5
17959 echo "${ECHO_T}no" >&6; }
17960 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17961 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17962 { (exit 1); exit 1; }; }
17965 SQL_INCLUDE=-I$DBI_INCDIR
17966 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17967 SQL_BINDIR=$DBI_BINDIR
17968 SQL_LIB=$DBI_LIBDIR/libdbi.a
17969 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
17971 cat >>confdefs.h <<\_ACEOF
17975 { echo "$as_me:$LINENO: result: yes" >&5
17976 echo "${ECHO_T}yes" >&6; }
17983 { echo "$as_me:$LINENO: result: no" >&5
17984 echo "${ECHO_T}no" >&6; }
17989 { echo "$as_me:$LINENO: result: no" >&5
17990 echo "${ECHO_T}no" >&6; }
18004 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18005 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18007 # Check whether --with-dbi-driver was given.
18008 if test "${with_dbi_driver+set}" = set; then
18009 withval=$with_dbi_driver;
18010 if test "$withval" != "no"; then
18014 if test -f /usr/local/mysql/bin/mysql; then
18015 SQL_BINDIR=/usr/local/mysql/bin
18016 elif test -f /usr/bin/mysql; then
18017 SQL_BINDIR=/usr/bin
18018 elif test -f /usr/local/bin/mysql; then
18019 SQL_BINDIR=/usr/local/bin
18021 { echo "$as_me:$LINENO: result: no" >&5
18022 echo "${ECHO_T}no" >&6; }
18023 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18024 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18025 { (exit 1); exit 1; }; }
18029 db_prog="postgresql"
18030 PG_CONFIG=`which pg_config`
18031 if test -n "$PG_CONFIG";then
18032 SQL_BINDIR=`"$PG_CONFIG" --bindir`
18033 elif test -f /usr/local/bin/psql; then
18034 SQL_BINDIR=/usr/local/bin
18035 elif test -f /usr/bin/psql; then
18036 SQL_BINDIR=/usr/bin
18038 { echo "$as_me:$LINENO: result: no" >&5
18039 echo "${ECHO_T}no" >&6; }
18040 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18041 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18042 { (exit 1); exit 1; }; }
18046 { echo "$as_me:$LINENO: result: no" >&5
18047 echo "${ECHO_T}no" >&6; }
18048 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18049 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18050 { (exit 1); exit 1; }; }
18054 { echo "$as_me:$LINENO: result: yes" >&5
18055 echo "${ECHO_T}yes" >&6; }
18059 { echo "$as_me:$LINENO: result: no" >&5
18060 echo "${ECHO_T}no" >&6; }
18065 { echo "$as_me:$LINENO: result: no" >&5
18066 echo "${ECHO_T}no" >&6; }
18078 # -------------------------------------------
18079 # enable batch attribute DB insert (default on)
18080 # -------------------------------------------
18081 support_batch_insert=no
18082 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18084 if test $pkg = 0; then
18085 support_batch_insert=yes
18086 # Check whether --enable-batch-insert was given.
18087 if test "${enable_batch_insert+set}" = set; then
18088 enableval=$enable_batch_insert; if test x$enableval = xno; then
18089 support_batch_insert=no
18091 support_batch_insert=yes
18097 # Check if postgresql support batch mode
18098 if test x$DB_TYPE = xpostgresql; then
18099 A=`nm $SQL_LIB | grep PQputCopyData`
18101 if test $pkg != 0; then
18102 support_batch_insert=no
18106 if test x$DB_TYPE = xdbi; then
18111 if test $support_batch_insert = yes ; then
18113 cat >>confdefs.h <<\_ACEOF
18114 #define HAVE_BATCH_FILE_INSERT 1
18120 cat >>confdefs.h <<\_ACEOF
18121 #define PROTOTYPES 1
18125 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18126 if test -z "$CCOPTS"; then
18127 CCOPTS='-g -O2 -Wall'
18135 largefile_support="no"
18137 # Check whether --enable-largefile was given.
18138 if test "${enable_largefile+set}" = set; then
18139 enableval=$enable_largefile;
18142 if test "$enable_largefile" != no; then
18143 if test -n "$ac_tool_prefix"; then
18144 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18145 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18148 if test "${ac_cv_prog_GETCONF+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 if test -n "$GETCONF"; then
18152 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18155 for as_dir in $PATH
18158 test -z "$as_dir" && as_dir=.
18159 for ac_exec_ext in '' $ac_executable_extensions; do
18160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18161 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18171 GETCONF=$ac_cv_prog_GETCONF
18172 if test -n "$GETCONF"; then
18173 { echo "$as_me:$LINENO: result: $GETCONF" >&5
18174 echo "${ECHO_T}$GETCONF" >&6; }
18176 { echo "$as_me:$LINENO: result: no" >&5
18177 echo "${ECHO_T}no" >&6; }
18182 if test -z "$ac_cv_prog_GETCONF"; then
18183 ac_ct_GETCONF=$GETCONF
18184 # Extract the first word of "getconf", so it can be a program name with args.
18185 set dummy getconf; ac_word=$2
18186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18188 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 if test -n "$ac_ct_GETCONF"; then
18192 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18195 for as_dir in $PATH
18198 test -z "$as_dir" && as_dir=.
18199 for ac_exec_ext in '' $ac_executable_extensions; do
18200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18201 ac_cv_prog_ac_ct_GETCONF="getconf"
18202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18211 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18212 if test -n "$ac_ct_GETCONF"; then
18213 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18214 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18216 { echo "$as_me:$LINENO: result: no" >&5
18217 echo "${ECHO_T}no" >&6; }
18220 if test "x$ac_ct_GETCONF" = x; then
18223 case $cross_compiling:$ac_tool_warned in
18225 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18226 whose name does not start with the host triplet. If you think this
18227 configuration is useful to you, please write to autoconf@gnu.org." >&5
18228 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18229 whose name does not start with the host triplet. If you think this
18230 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18231 ac_tool_warned=yes ;;
18233 GETCONF=$ac_ct_GETCONF
18236 GETCONF="$ac_cv_prog_GETCONF"
18239 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18240 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18241 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18245 ac_cv_sys_largefile_CFLAGS=no
18247 # IRIX 6.2 and later require cc -n32.
18248 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18249 if test "$GCC" != yes; then
18250 ac_cv_sys_largefile_CFLAGS=-n32
18253 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18254 cat >conftest.$ac_ext <<_ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h. */
18269 rm -f conftest.$ac_objext conftest$ac_exeext
18270 if { (ac_try="$ac_link"
18271 case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_link") 2>conftest.er1
18278 grep -v '^ *+' conftest.er1 >conftest.err
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } && {
18283 test -z "$ac_c_werror_flag" ||
18284 test ! -s conftest.err
18285 } && test -s conftest$ac_exeext &&
18286 $as_test_x conftest$ac_exeext; then
18289 echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18292 ac_cv_sys_largefile_CFLAGS=no
18295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18296 conftest$ac_exeext conftest.$ac_ext
18301 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18302 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18303 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18304 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18305 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18309 ac_cv_sys_largefile_LDFLAGS=no
18313 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18314 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18315 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18316 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18317 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18320 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18321 ac_cv_sys_largefile_LIBS=no
18325 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18326 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18328 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18331 -D_FILE_OFFSET_BITS=*) ;;
18332 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18333 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18338 case "$CPPFLAGS" in
18339 '') CPPFLAGS="$ac_flag" ;;
18340 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18348 '') CFLAGS="$ac_flag" ;;
18349 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18354 case "$ac_cv_sys_largefile_LDFLAGS" in
18358 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18359 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18362 case "$ac_cv_sys_largefile_LIBS" in
18366 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18367 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18370 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18371 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18372 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18373 echo $ECHO_N "(cached) $ECHO_C" >&6
18375 ac_cv_sys_file_offset_bits=no
18376 ac_cv_sys_file_offset_bits=64
18377 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18379 -D_FILE_OFFSET_BITS)
18380 ac_cv_sys_file_offset_bits=1 ;;
18381 -D_FILE_OFFSET_BITS=*)
18382 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18387 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18388 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18389 if test "$ac_cv_sys_file_offset_bits" != no; then
18391 cat >>confdefs.h <<_ACEOF
18392 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18396 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18397 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18398 if test "${ac_cv_sys_largefile_source+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 ac_cv_sys_largefile_source=no
18402 ac_cv_sys_largefile_source=1
18403 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18405 -D_LARGEFILE_SOURCE)
18406 ac_cv_sys_largefile_source=1 ;;
18407 -D_LARGEFILE_SOURCE=*)
18408 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18413 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18414 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18415 if test "$ac_cv_sys_largefile_source" != no; then
18417 cat >>confdefs.h <<_ACEOF
18418 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18422 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18423 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18424 if test "${ac_cv_sys_large_files+set}" = set; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 ac_cv_sys_large_files=no
18428 ac_cv_sys_large_files=1
18429 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18432 ac_cv_sys_large_files=1 ;;
18434 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18439 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18440 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18441 if test "$ac_cv_sys_large_files" != no; then
18443 cat >>confdefs.h <<_ACEOF
18444 #define _LARGE_FILES $ac_cv_sys_large_files
18452 { echo "$as_me:$LINENO: checking for X" >&5
18453 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18456 # Check whether --with-x was given.
18457 if test "${with_x+set}" = set; then
18461 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18462 if test "x$with_x" = xno; then
18463 # The user explicitly disabled X.
18466 case $x_includes,$x_libraries in #(
18467 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18468 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18469 { (exit 1); exit 1; }; };; #(
18470 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 # One or both of the vars are not set, and there is no cached value.
18474 ac_x_includes=no ac_x_libraries=no
18475 rm -f -r conftest.dir
18476 if mkdir conftest.dir; then
18478 cat >Imakefile <<'_ACEOF'
18480 @echo incroot='${INCROOT}'
18482 @echo usrlibdir='${USRLIBDIR}'
18484 @echo libdir='${LIBDIR}'
18486 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18487 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18488 for ac_var in incroot usrlibdir libdir; do
18489 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18491 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18492 for ac_extension in a so sl; do
18493 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18494 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18495 ac_im_usrlibdir=$ac_im_libdir; break
18498 # Screen out bogus values from the imake configuration. They are
18499 # bogus both because they are the default anyway, and because
18500 # using them would break gcc on systems where it needs fixed includes.
18501 case $ac_im_incroot in
18502 /usr/include) ac_x_includes= ;;
18503 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18505 case $ac_im_usrlibdir in
18506 /usr/lib | /lib) ;;
18507 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18511 rm -f -r conftest.dir
18514 # Standard set of common directories for X headers.
18515 # Check X11 before X11Rn because it is often a symlink to the current release.
18527 /usr/local/X11/include
18528 /usr/local/X11R6/include
18529 /usr/local/X11R5/include
18530 /usr/local/X11R4/include
18532 /usr/local/include/X11
18533 /usr/local/include/X11R6
18534 /usr/local/include/X11R5
18535 /usr/local/include/X11R4
18539 /usr/XFree86/include/X11
18543 /usr/unsupported/include
18544 /usr/athena/include
18545 /usr/local/x11r5/include
18546 /usr/lpp/Xamples/include
18548 /usr/openwin/include
18549 /usr/openwin/share/include'
18551 if test "$ac_x_includes" = no; then
18552 # Guess where to find include files, by looking for Xlib.h.
18553 # First, try using that file with no special directory specified.
18554 cat >conftest.$ac_ext <<_ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 #include <X11/Xlib.h>
18562 if { (ac_try="$ac_cpp conftest.$ac_ext"
18563 case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18570 grep -v '^ *+' conftest.er1 >conftest.err
18572 cat conftest.err >&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } >/dev/null && {
18575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18576 test ! -s conftest.err
18578 # We can compile using X headers with no special include directory.
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18584 for ac_dir in $ac_x_header_dirs; do
18585 if test -r "$ac_dir/X11/Xlib.h"; then
18586 ac_x_includes=$ac_dir
18592 rm -f conftest.err conftest.$ac_ext
18593 fi # $ac_x_includes = no
18595 if test "$ac_x_libraries" = no; then
18596 # Check for the libraries.
18597 # See if we find them without any special options.
18598 # Don't add to $LIBS permanently.
18601 cat >conftest.$ac_ext <<_ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18607 #include <X11/Xlib.h>
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_link") 2>conftest.er1
18625 grep -v '^ *+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } && {
18630 test -z "$ac_c_werror_flag" ||
18631 test ! -s conftest.err
18632 } && test -s conftest$ac_exeext &&
18633 $as_test_x conftest$ac_exeext; then
18635 # We can link X programs with no special library path.
18638 echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18642 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18644 # Don't even attempt the hair of trying to link an X program!
18645 for ac_extension in a so sl; do
18646 if test -r "$ac_dir/libX11.$ac_extension"; then
18647 ac_x_libraries=$ac_dir
18654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18655 conftest$ac_exeext conftest.$ac_ext
18656 fi # $ac_x_libraries = no
18658 case $ac_x_includes,$ac_x_libraries in #(
18659 no,* | *,no | *\'*)
18660 # Didn't find X, or a directory has "'" in its name.
18661 ac_cv_have_x="have_x=no";; #(
18663 # Record where we found X for the cache.
18664 ac_cv_have_x="have_x=yes\
18665 ac_x_includes='$ac_x_includes'\
18666 ac_x_libraries='$ac_x_libraries'"
18672 eval "$ac_cv_have_x"
18675 if test "$have_x" != yes; then
18676 { echo "$as_me:$LINENO: result: $have_x" >&5
18677 echo "${ECHO_T}$have_x" >&6; }
18680 # If each of the values was on the command line, it overrides each guess.
18681 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18682 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18683 # Update the cache value to reflect the command line values.
18684 ac_cv_have_x="have_x=yes\
18685 ac_x_includes='$x_includes'\
18686 ac_x_libraries='$x_libraries'"
18687 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18688 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18691 if test "$no_x" = yes; then
18692 # Not all programs may use this symbol, but it does not hurt to define it.
18694 cat >>confdefs.h <<\_ACEOF
18695 #define X_DISPLAY_MISSING 1
18698 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18700 if test -n "$x_includes"; then
18701 X_CFLAGS="$X_CFLAGS -I$x_includes"
18704 # It would also be nice to do this for all -L options, not just this one.
18705 if test -n "$x_libraries"; then
18706 X_LIBS="$X_LIBS -L$x_libraries"
18707 # For Solaris; some versions of Sun CC require a space after -R and
18708 # others require no space. Words are not sufficient . . . .
18709 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18710 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18711 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18712 ac_xsave_c_werror_flag=$ac_c_werror_flag
18713 ac_c_werror_flag=yes
18714 cat >conftest.$ac_ext <<_ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18729 rm -f conftest.$ac_objext conftest$ac_exeext
18730 if { (ac_try="$ac_link"
18731 case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_link") 2>conftest.er1
18738 grep -v '^ *+' conftest.er1 >conftest.err
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } && {
18743 test -z "$ac_c_werror_flag" ||
18744 test ! -s conftest.err
18745 } && test -s conftest$ac_exeext &&
18746 $as_test_x conftest$ac_exeext; then
18747 { echo "$as_me:$LINENO: result: no" >&5
18748 echo "${ECHO_T}no" >&6; }
18749 X_LIBS="$X_LIBS -R$x_libraries"
18751 echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18754 LIBS="$ac_xsave_LIBS -R $x_libraries"
18755 cat >conftest.$ac_ext <<_ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18770 rm -f conftest.$ac_objext conftest$ac_exeext
18771 if { (ac_try="$ac_link"
18772 case "(($ac_try" in
18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774 *) ac_try_echo=$ac_try;;
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777 (eval "$ac_link") 2>conftest.er1
18779 grep -v '^ *+' conftest.er1 >conftest.err
18781 cat conftest.err >&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } && {
18784 test -z "$ac_c_werror_flag" ||
18785 test ! -s conftest.err
18786 } && test -s conftest$ac_exeext &&
18787 $as_test_x conftest$ac_exeext; then
18788 { echo "$as_me:$LINENO: result: yes" >&5
18789 echo "${ECHO_T}yes" >&6; }
18790 X_LIBS="$X_LIBS -R $x_libraries"
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 { echo "$as_me:$LINENO: result: neither works" >&5
18796 echo "${ECHO_T}neither works" >&6; }
18799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18800 conftest$ac_exeext conftest.$ac_ext
18803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18804 conftest$ac_exeext conftest.$ac_ext
18805 ac_c_werror_flag=$ac_xsave_c_werror_flag
18806 LIBS=$ac_xsave_LIBS
18809 # Check for system-dependent libraries X programs must link with.
18810 # Do this before checking for the system-independent R6 libraries
18811 # (-lICE), since we may need -lsocket or whatever for X linking.
18813 if test "$ISC" = yes; then
18814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18816 # Martyn Johnson says this is needed for Ultrix, if the X
18817 # libraries were built with DECnet support. And Karl Berry says
18818 # the Alpha needs dnet_stub (dnet does not exist).
18819 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18820 cat >conftest.$ac_ext <<_ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18827 /* Override any GCC internal prototype to avoid an error.
18828 Use char because int might match the return type of a GCC
18829 builtin and then its argument prototype would still apply. */
18833 char XOpenDisplay ();
18837 return XOpenDisplay ();
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (ac_try="$ac_link"
18844 case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_link") 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } && {
18856 test -z "$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 } && test -s conftest$ac_exeext &&
18859 $as_test_x conftest$ac_exeext; then
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18865 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18866 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18867 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 ac_check_lib_save_LIBS=$LIBS
18871 LIBS="-ldnet $LIBS"
18872 cat >conftest.$ac_ext <<_ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18879 /* Override any GCC internal prototype to avoid an error.
18880 Use char because int might match the return type of a GCC
18881 builtin and then its argument prototype would still apply. */
18889 return dnet_ntoa ();
18894 rm -f conftest.$ac_objext conftest$ac_exeext
18895 if { (ac_try="$ac_link"
18896 case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_link") 2>conftest.er1
18903 grep -v '^ *+' conftest.er1 >conftest.err
18905 cat conftest.err >&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } && {
18908 test -z "$ac_c_werror_flag" ||
18909 test ! -s conftest.err
18910 } && test -s conftest$ac_exeext &&
18911 $as_test_x conftest$ac_exeext; then
18912 ac_cv_lib_dnet_dnet_ntoa=yes
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18917 ac_cv_lib_dnet_dnet_ntoa=no
18920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18921 conftest$ac_exeext conftest.$ac_ext
18922 LIBS=$ac_check_lib_save_LIBS
18924 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18925 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18926 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18927 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18930 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18931 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18932 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18933 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-ldnet_stub $LIBS"
18938 cat >conftest.$ac_ext <<_ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18955 return dnet_ntoa ();
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest$ac_exeext &&
18977 $as_test_x conftest$ac_exeext; then
18978 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_cv_lib_dnet_stub_dnet_ntoa=no
18986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18987 conftest$ac_exeext conftest.$ac_ext
18988 LIBS=$ac_check_lib_save_LIBS
18990 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18991 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18992 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18993 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19000 conftest$ac_exeext conftest.$ac_ext
19001 LIBS="$ac_xsave_LIBS"
19003 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19004 # to get the SysV transport functions.
19005 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19007 # The nsl library prevents programs from opening the X display
19008 # on Irix 5.2, according to T.E. Dickey.
19009 # The functions gethostbyname, getservbyname, and inet_addr are
19010 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19011 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19012 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19013 if test "${ac_cv_func_gethostbyname+set}" = set; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19024 #define gethostbyname innocuous_gethostbyname
19026 /* System header to define __stub macros and hopefully few prototypes,
19027 which can conflict with char gethostbyname (); below.
19028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19029 <limits.h> exists even on freestanding compilers. */
19032 # include <limits.h>
19034 # include <assert.h>
19037 #undef gethostbyname
19039 /* Override any GCC internal prototype to avoid an error.
19040 Use char because int might match the return type of a GCC
19041 builtin and then its argument prototype would still apply. */
19045 char gethostbyname ();
19046 /* The GNU C library defines this for functions which it implements
19047 to always fail with ENOSYS. Some functions are actually named
19048 something starting with __ and the normal name is an alias. */
19049 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19056 return gethostbyname ();
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } && {
19075 test -z "$ac_c_werror_flag" ||
19076 test ! -s conftest.err
19077 } && test -s conftest$ac_exeext &&
19078 $as_test_x conftest$ac_exeext; then
19079 ac_cv_func_gethostbyname=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_func_gethostbyname=no
19087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19088 conftest$ac_exeext conftest.$ac_ext
19090 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19091 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19093 if test $ac_cv_func_gethostbyname = no; then
19094 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19095 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19096 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 ac_check_lib_save_LIBS=$LIBS
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19108 /* Override any GCC internal prototype to avoid an error.
19109 Use char because int might match the return type of a GCC
19110 builtin and then its argument prototype would still apply. */
19114 char gethostbyname ();
19118 return gethostbyname ();
19123 rm -f conftest.$ac_objext conftest$ac_exeext
19124 if { (ac_try="$ac_link"
19125 case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_link") 2>conftest.er1
19132 grep -v '^ *+' conftest.er1 >conftest.err
19134 cat conftest.err >&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } && {
19137 test -z "$ac_c_werror_flag" ||
19138 test ! -s conftest.err
19139 } && test -s conftest$ac_exeext &&
19140 $as_test_x conftest$ac_exeext; then
19141 ac_cv_lib_nsl_gethostbyname=yes
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_cv_lib_nsl_gethostbyname=no
19149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19150 conftest$ac_exeext conftest.$ac_ext
19151 LIBS=$ac_check_lib_save_LIBS
19153 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19154 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19155 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19156 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19159 if test $ac_cv_lib_nsl_gethostbyname = no; then
19160 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19161 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19162 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 ac_check_lib_save_LIBS=$LIBS
19167 cat >conftest.$ac_ext <<_ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19174 /* Override any GCC internal prototype to avoid an error.
19175 Use char because int might match the return type of a GCC
19176 builtin and then its argument prototype would still apply. */
19180 char gethostbyname ();
19184 return gethostbyname ();
19189 rm -f conftest.$ac_objext conftest$ac_exeext
19190 if { (ac_try="$ac_link"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_link") 2>conftest.er1
19198 grep -v '^ *+' conftest.er1 >conftest.err
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest$ac_exeext &&
19206 $as_test_x conftest$ac_exeext; then
19207 ac_cv_lib_bsd_gethostbyname=yes
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 ac_cv_lib_bsd_gethostbyname=no
19215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19216 conftest$ac_exeext conftest.$ac_ext
19217 LIBS=$ac_check_lib_save_LIBS
19219 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19220 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19221 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19222 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19228 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19229 # socket/setsockopt and other routines are undefined under SCO ODT
19230 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19231 # on later versions), says Simon Leinen: it contains gethostby*
19232 # variants that don't use the name server (or something). -lsocket
19233 # must be given before -lnsl if both are needed. We assume that
19234 # if connect needs -lnsl, so does gethostbyname.
19235 { echo "$as_me:$LINENO: checking for connect" >&5
19236 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19237 if test "${ac_cv_func_connect+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19240 cat >conftest.$ac_ext <<_ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19246 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19248 #define connect innocuous_connect
19250 /* System header to define __stub macros and hopefully few prototypes,
19251 which can conflict with char connect (); below.
19252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19253 <limits.h> exists even on freestanding compilers. */
19256 # include <limits.h>
19258 # include <assert.h>
19263 /* Override any GCC internal prototype to avoid an error.
19264 Use char because int might match the return type of a GCC
19265 builtin and then its argument prototype would still apply. */
19270 /* The GNU C library defines this for functions which it implements
19271 to always fail with ENOSYS. Some functions are actually named
19272 something starting with __ and the normal name is an alias. */
19273 #if defined __stub_connect || defined __stub___connect
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_link") 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } && {
19299 test -z "$ac_c_werror_flag" ||
19300 test ! -s conftest.err
19301 } && test -s conftest$ac_exeext &&
19302 $as_test_x conftest$ac_exeext; then
19303 ac_cv_func_connect=yes
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19308 ac_cv_func_connect=no
19311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19312 conftest$ac_exeext conftest.$ac_ext
19314 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19315 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19317 if test $ac_cv_func_connect = no; then
19318 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19319 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19320 if test "${ac_cv_lib_socket_connect+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 ac_check_lib_save_LIBS=$LIBS
19324 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19325 cat >conftest.$ac_ext <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19332 /* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (ac_try="$ac_link"
19349 case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_link") 2>conftest.er1
19356 grep -v '^ *+' conftest.er1 >conftest.err
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } && {
19361 test -z "$ac_c_werror_flag" ||
19362 test ! -s conftest.err
19363 } && test -s conftest$ac_exeext &&
19364 $as_test_x conftest$ac_exeext; then
19365 ac_cv_lib_socket_connect=yes
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 ac_cv_lib_socket_connect=no
19373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19374 conftest$ac_exeext conftest.$ac_ext
19375 LIBS=$ac_check_lib_save_LIBS
19377 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19378 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19379 if test $ac_cv_lib_socket_connect = yes; then
19380 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19385 # Guillermo Gomez says -lposix is necessary on A/UX.
19386 { echo "$as_me:$LINENO: checking for remove" >&5
19387 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19388 if test "${ac_cv_func_remove+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 cat >conftest.$ac_ext <<_ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19397 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19399 #define remove innocuous_remove
19401 /* System header to define __stub macros and hopefully few prototypes,
19402 which can conflict with char remove (); below.
19403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19404 <limits.h> exists even on freestanding compilers. */
19407 # include <limits.h>
19409 # include <assert.h>
19414 /* Override any GCC internal prototype to avoid an error.
19415 Use char because int might match the return type of a GCC
19416 builtin and then its argument prototype would still apply. */
19421 /* The GNU C library defines this for functions which it implements
19422 to always fail with ENOSYS. Some functions are actually named
19423 something starting with __ and the normal name is an alias. */
19424 #if defined __stub_remove || defined __stub___remove
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (ac_try="$ac_link"
19438 case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_link") 2>conftest.er1
19445 grep -v '^ *+' conftest.er1 >conftest.err
19447 cat conftest.err >&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } && {
19450 test -z "$ac_c_werror_flag" ||
19451 test ! -s conftest.err
19452 } && test -s conftest$ac_exeext &&
19453 $as_test_x conftest$ac_exeext; then
19454 ac_cv_func_remove=yes
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 ac_cv_func_remove=no
19462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19463 conftest$ac_exeext conftest.$ac_ext
19465 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19466 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19468 if test $ac_cv_func_remove = no; then
19469 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19470 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19471 if test "${ac_cv_lib_posix_remove+set}" = set; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 ac_check_lib_save_LIBS=$LIBS
19475 LIBS="-lposix $LIBS"
19476 cat >conftest.$ac_ext <<_ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19483 /* Override any GCC internal prototype to avoid an error.
19484 Use char because int might match the return type of a GCC
19485 builtin and then its argument prototype would still apply. */
19498 rm -f conftest.$ac_objext conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && {
19512 test -z "$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19514 } && test -s conftest$ac_exeext &&
19515 $as_test_x conftest$ac_exeext; then
19516 ac_cv_lib_posix_remove=yes
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 ac_cv_lib_posix_remove=no
19524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19525 conftest$ac_exeext conftest.$ac_ext
19526 LIBS=$ac_check_lib_save_LIBS
19528 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19529 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19530 if test $ac_cv_lib_posix_remove = yes; then
19531 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19536 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19537 { echo "$as_me:$LINENO: checking for shmat" >&5
19538 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19539 if test "${ac_cv_func_shmat+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 cat >conftest.$ac_ext <<_ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19550 #define shmat innocuous_shmat
19552 /* System header to define __stub macros and hopefully few prototypes,
19553 which can conflict with char shmat (); below.
19554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19555 <limits.h> exists even on freestanding compilers. */
19558 # include <limits.h>
19560 # include <assert.h>
19565 /* Override any GCC internal prototype to avoid an error.
19566 Use char because int might match the return type of a GCC
19567 builtin and then its argument prototype would still apply. */
19572 /* The GNU C library defines this for functions which it implements
19573 to always fail with ENOSYS. Some functions are actually named
19574 something starting with __ and the normal name is an alias. */
19575 #if defined __stub_shmat || defined __stub___shmat
19587 rm -f conftest.$ac_objext conftest$ac_exeext
19588 if { (ac_try="$ac_link"
19589 case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_link") 2>conftest.er1
19596 grep -v '^ *+' conftest.er1 >conftest.err
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest$ac_exeext &&
19604 $as_test_x conftest$ac_exeext; then
19605 ac_cv_func_shmat=yes
19607 echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 ac_cv_func_shmat=no
19613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19614 conftest$ac_exeext conftest.$ac_ext
19616 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19617 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19619 if test $ac_cv_func_shmat = no; then
19620 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19621 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19622 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 ac_check_lib_save_LIBS=$LIBS
19627 cat >conftest.$ac_ext <<_ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19634 /* Override any GCC internal prototype to avoid an error.
19635 Use char because int might match the return type of a GCC
19636 builtin and then its argument prototype would still apply. */
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (ac_try="$ac_link"
19651 case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_link") 2>conftest.er1
19658 grep -v '^ *+' conftest.er1 >conftest.err
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } && {
19663 test -z "$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19665 } && test -s conftest$ac_exeext &&
19666 $as_test_x conftest$ac_exeext; then
19667 ac_cv_lib_ipc_shmat=yes
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 ac_cv_lib_ipc_shmat=no
19675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19676 conftest$ac_exeext conftest.$ac_ext
19677 LIBS=$ac_check_lib_save_LIBS
19679 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19680 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19681 if test $ac_cv_lib_ipc_shmat = yes; then
19682 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19688 # Check for libraries that X11R6 Xt/Xaw programs need.
19689 ac_save_LDFLAGS=$LDFLAGS
19690 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19691 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19692 # check for ICE first), but we must link in the order -lSM -lICE or
19693 # we get undefined symbols. So assume we have SM if we have ICE.
19694 # These have to be linked with before -lX11, unlike the other
19695 # libraries we check for below, so use a different variable.
19696 # John Interrante, Karl Berry
19697 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19698 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19699 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 ac_check_lib_save_LIBS=$LIBS
19703 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19704 cat >conftest.$ac_ext <<_ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19711 /* Override any GCC internal prototype to avoid an error.
19712 Use char because int might match the return type of a GCC
19713 builtin and then its argument prototype would still apply. */
19717 char IceConnectionNumber ();
19721 return IceConnectionNumber ();
19726 rm -f conftest.$ac_objext conftest$ac_exeext
19727 if { (ac_try="$ac_link"
19728 case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_link") 2>conftest.er1
19735 grep -v '^ *+' conftest.er1 >conftest.err
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } && {
19740 test -z "$ac_c_werror_flag" ||
19741 test ! -s conftest.err
19742 } && test -s conftest$ac_exeext &&
19743 $as_test_x conftest$ac_exeext; then
19744 ac_cv_lib_ICE_IceConnectionNumber=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_cv_lib_ICE_IceConnectionNumber=no
19752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19753 conftest$ac_exeext conftest.$ac_ext
19754 LIBS=$ac_check_lib_save_LIBS
19756 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19757 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19758 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19759 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19762 LDFLAGS=$ac_save_LDFLAGS
19830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 ac_res=`eval echo '${'$as_ac_Header'}'`
19838 { echo "$as_me:$LINENO: result: $ac_res" >&5
19839 echo "${ECHO_T}$ac_res" >&6; }
19841 # Is the header compilable?
19842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19844 cat >conftest.$ac_ext <<_ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850 $ac_includes_default
19851 #include <$ac_header>
19853 rm -f conftest.$ac_objext
19854 if { (ac_try="$ac_compile"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_compile") 2>conftest.er1
19862 grep -v '^ *+' conftest.er1 >conftest.err
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } && {
19867 test -z "$ac_c_werror_flag" ||
19868 test ! -s conftest.err
19869 } && test -s conftest.$ac_objext; then
19870 ac_header_compiler=yes
19872 echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19875 ac_header_compiler=no
19878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19880 echo "${ECHO_T}$ac_header_compiler" >&6; }
19882 # Is the header present?
19883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 #include <$ac_header>
19893 if { (ac_try="$ac_cpp conftest.$ac_ext"
19894 case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19901 grep -v '^ *+' conftest.er1 >conftest.err
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } >/dev/null && {
19906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19909 ac_header_preproc=yes
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 ac_header_preproc=no
19917 rm -f conftest.err conftest.$ac_ext
19918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19919 echo "${ECHO_T}$ac_header_preproc" >&6; }
19921 # So? What about this header?
19922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19928 ac_header_preproc=yes
19931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 eval "$as_ac_Header=\$ac_header_preproc"
19953 ac_res=`eval echo '${'$as_ac_Header'}'`
19954 { echo "$as_me:$LINENO: result: $ac_res" >&5
19955 echo "${ECHO_T}$ac_res" >&6; }
19958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19959 cat >>confdefs.h <<_ACEOF
19960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19967 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19968 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19969 if test "${ac_cv_header_stdc+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19978 #include <stdlib.h>
19979 #include <stdarg.h>
19980 #include <string.h>
19991 rm -f conftest.$ac_objext
19992 if { (ac_try="$ac_compile"
19993 case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_compile") 2>conftest.er1
20000 grep -v '^ *+' conftest.er1 >conftest.err
20002 cat conftest.err >&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } && {
20005 test -z "$ac_c_werror_flag" ||
20006 test ! -s conftest.err
20007 } && test -s conftest.$ac_objext; then
20008 ac_cv_header_stdc=yes
20010 echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20013 ac_cv_header_stdc=no
20016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018 if test $ac_cv_header_stdc = yes; then
20019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <string.h>
20029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20030 $EGREP "memchr" >/dev/null 2>&1; then
20033 ac_cv_header_stdc=no
20039 if test $ac_cv_header_stdc = yes; then
20040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20041 cat >conftest.$ac_ext <<_ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20047 #include <stdlib.h>
20050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20051 $EGREP "free" >/dev/null 2>&1; then
20054 ac_cv_header_stdc=no
20060 if test $ac_cv_header_stdc = yes; then
20061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20062 if test "$cross_compiling" = yes; then
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20072 #include <stdlib.h>
20073 #if ((' ' & 0x0FF) == 0x020)
20074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20077 # define ISLOWER(c) \
20078 (('a' <= (c) && (c) <= 'i') \
20079 || ('j' <= (c) && (c) <= 'r') \
20080 || ('s' <= (c) && (c) <= 'z'))
20081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20089 for (i = 0; i < 256; i++)
20090 if (XOR (islower (i), ISLOWER (i))
20091 || toupper (i) != TOUPPER (i))
20096 rm -f conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_link") 2>&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20107 { (case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_try") 2>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20118 echo "$as_me: program exited with status $ac_status" >&5
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 ( exit $ac_status )
20123 ac_cv_header_stdc=no
20125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20131 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20132 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20133 if test $ac_cv_header_stdc = yes; then
20135 cat >>confdefs.h <<\_ACEOF
20136 #define STDC_HEADERS 1
20141 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20142 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20143 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 #include <sys/types.h>
20156 return makedev(0, 0);
20161 rm -f conftest.$ac_objext conftest$ac_exeext
20162 if { (ac_try="$ac_link"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_link") 2>conftest.er1
20170 grep -v '^ *+' conftest.er1 >conftest.err
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } && {
20175 test -z "$ac_c_werror_flag" ||
20176 test ! -s conftest.err
20177 } && test -s conftest$ac_exeext &&
20178 $as_test_x conftest$ac_exeext; then
20179 ac_cv_header_sys_types_h_makedev=yes
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_cv_header_sys_types_h_makedev=no
20187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20188 conftest$ac_exeext conftest.$ac_ext
20191 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20192 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20194 if test $ac_cv_header_sys_types_h_makedev = no; then
20195 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20196 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20197 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20198 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20202 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20204 # Is the header compilable?
20205 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20206 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20207 cat >conftest.$ac_ext <<_ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 $ac_includes_default
20214 #include <sys/mkdev.h>
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_compile") 2>conftest.er1
20225 grep -v '^ *+' conftest.er1 >conftest.err
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } && {
20230 test -z "$ac_c_werror_flag" ||
20231 test ! -s conftest.err
20232 } && test -s conftest.$ac_objext; then
20233 ac_header_compiler=yes
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20238 ac_header_compiler=no
20241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20243 echo "${ECHO_T}$ac_header_compiler" >&6; }
20245 # Is the header present?
20246 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20247 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20248 cat >conftest.$ac_ext <<_ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 #include <sys/mkdev.h>
20256 if { (ac_try="$ac_cpp conftest.$ac_ext"
20257 case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20264 grep -v '^ *+' conftest.er1 >conftest.err
20266 cat conftest.err >&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } >/dev/null && {
20269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20270 test ! -s conftest.err
20272 ac_header_preproc=yes
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_header_preproc=no
20280 rm -f conftest.err conftest.$ac_ext
20281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20282 echo "${ECHO_T}$ac_header_preproc" >&6; }
20284 # So? What about this header?
20285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20287 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20288 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20289 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20290 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20291 ac_header_preproc=yes
20294 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20295 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20296 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20297 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20299 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20301 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20303 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20305 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20309 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20310 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20311 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20316 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20317 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20320 if test $ac_cv_header_sys_mkdev_h = yes; then
20322 cat >>confdefs.h <<\_ACEOF
20323 #define MAJOR_IN_MKDEV 1
20330 if test $ac_cv_header_sys_mkdev_h = no; then
20331 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20332 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20333 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20334 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20338 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20340 # Is the header compilable?
20341 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20342 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20343 cat >conftest.$ac_ext <<_ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 $ac_includes_default
20350 #include <sys/sysmacros.h>
20352 rm -f conftest.$ac_objext
20353 if { (ac_try="$ac_compile"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_compile") 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest.$ac_objext; then
20369 ac_header_compiler=yes
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 ac_header_compiler=no
20377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20379 echo "${ECHO_T}$ac_header_compiler" >&6; }
20381 # Is the header present?
20382 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20383 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20384 cat >conftest.$ac_ext <<_ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 #include <sys/sysmacros.h>
20392 if { (ac_try="$ac_cpp conftest.$ac_ext"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20400 grep -v '^ *+' conftest.er1 >conftest.err
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } >/dev/null && {
20405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20408 ac_header_preproc=yes
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_header_preproc=no
20416 rm -f conftest.err conftest.$ac_ext
20417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20418 echo "${ECHO_T}$ac_header_preproc" >&6; }
20420 # So? What about this header?
20421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20423 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20424 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20425 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20426 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20427 ac_header_preproc=yes
20430 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20431 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20433 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20434 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20435 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20436 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20437 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20439 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20440 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20441 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20445 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20446 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20447 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20448 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20452 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20453 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20456 if test $ac_cv_header_sys_sysmacros_h = yes; then
20458 cat >>confdefs.h <<\_ACEOF
20459 #define MAJOR_IN_SYSMACROS 1
20473 ac_header_dirent=no
20474 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20475 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20476 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20477 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20481 cat >conftest.$ac_ext <<_ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 #include <sys/types.h>
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_compile") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1 >conftest.err
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest.$ac_objext; then
20516 eval "$as_ac_Header=yes"
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 eval "$as_ac_Header=no"
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 ac_res=`eval echo '${'$as_ac_Header'}'`
20527 { echo "$as_me:$LINENO: result: $ac_res" >&5
20528 echo "${ECHO_T}$ac_res" >&6; }
20529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20530 cat >>confdefs.h <<_ACEOF
20531 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20534 ac_header_dirent=$ac_hdr; break
20538 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20539 if test $ac_header_dirent = dirent.h; then
20540 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20541 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20542 if test "${ac_cv_search_opendir+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20545 ac_func_search_save_LIBS=$LIBS
20546 cat >conftest.$ac_ext <<_ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20553 /* Override any GCC internal prototype to avoid an error.
20554 Use char because int might match the return type of a GCC
20555 builtin and then its argument prototype would still apply. */
20568 for ac_lib in '' dir; do
20569 if test -z "$ac_lib"; then
20570 ac_res="none required"
20573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20575 rm -f conftest.$ac_objext conftest$ac_exeext
20576 if { (ac_try="$ac_link"
20577 case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_link") 2>conftest.er1
20584 grep -v '^ *+' conftest.er1 >conftest.err
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } && {
20589 test -z "$ac_c_werror_flag" ||
20590 test ! -s conftest.err
20591 } && test -s conftest$ac_exeext &&
20592 $as_test_x conftest$ac_exeext; then
20593 ac_cv_search_opendir=$ac_res
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20603 if test "${ac_cv_search_opendir+set}" = set; then
20607 if test "${ac_cv_search_opendir+set}" = set; then
20610 ac_cv_search_opendir=no
20612 rm conftest.$ac_ext
20613 LIBS=$ac_func_search_save_LIBS
20615 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20616 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20617 ac_res=$ac_cv_search_opendir
20618 if test "$ac_res" != no; then
20619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20624 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20625 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20626 if test "${ac_cv_search_opendir+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 ac_func_search_save_LIBS=$LIBS
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20637 /* Override any GCC internal prototype to avoid an error.
20638 Use char because int might match the return type of a GCC
20639 builtin and then its argument prototype would still apply. */
20652 for ac_lib in '' x; do
20653 if test -z "$ac_lib"; then
20654 ac_res="none required"
20657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20659 rm -f conftest.$ac_objext conftest$ac_exeext
20660 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
20668 grep -v '^ *+' conftest.er1 >conftest.err
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } && {
20673 test -z "$ac_c_werror_flag" ||
20674 test ! -s conftest.err
20675 } && test -s conftest$ac_exeext &&
20676 $as_test_x conftest$ac_exeext; then
20677 ac_cv_search_opendir=$ac_res
20679 echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20687 if test "${ac_cv_search_opendir+set}" = set; then
20691 if test "${ac_cv_search_opendir+set}" = set; then
20694 ac_cv_search_opendir=no
20696 rm conftest.$ac_ext
20697 LIBS=$ac_func_search_save_LIBS
20699 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20700 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20701 ac_res=$ac_cv_search_opendir
20702 if test "$ac_res" != no; then
20703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20709 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20710 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20711 if test "${ac_cv_header_stat_broken+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 #include <sys/types.h>
20721 #include <sys/stat.h>
20723 #if defined S_ISBLK && defined S_IFDIR
20724 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20727 #if defined S_ISBLK && defined S_IFCHR
20728 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20731 #if defined S_ISLNK && defined S_IFREG
20732 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20735 #if defined S_ISSOCK && defined S_IFREG
20736 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20740 rm -f conftest.$ac_objext
20741 if { (ac_try="$ac_compile"
20742 case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_compile") 2>conftest.er1
20749 grep -v '^ *+' conftest.er1 >conftest.err
20751 cat conftest.err >&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } && {
20754 test -z "$ac_c_werror_flag" ||
20755 test ! -s conftest.err
20756 } && test -s conftest.$ac_objext; then
20757 ac_cv_header_stat_broken=no
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20762 ac_cv_header_stat_broken=yes
20765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20768 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20769 if test $ac_cv_header_stat_broken = yes; then
20771 cat >>confdefs.h <<\_ACEOF
20772 #define STAT_MACROS_BROKEN 1
20777 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20778 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20779 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 #include <sys/types.h>
20789 #include <sys/wait.h>
20790 #ifndef WEXITSTATUS
20791 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20794 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20802 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20807 rm -f conftest.$ac_objext
20808 if { (ac_try="$ac_compile"
20809 case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_compile") 2>conftest.er1
20816 grep -v '^ *+' conftest.er1 >conftest.err
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest.$ac_objext; then
20824 ac_cv_header_sys_wait_h=yes
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 ac_cv_header_sys_wait_h=no
20832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20834 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20835 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20836 if test $ac_cv_header_sys_wait_h = yes; then
20838 cat >>confdefs.h <<\_ACEOF
20839 #define HAVE_SYS_WAIT_H 1
20844 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20845 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20846 if test "${ac_cv_header_time+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 #include <sys/types.h>
20856 #include <sys/time.h>
20862 if ((struct tm *) 0)
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_compile") 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest.$ac_objext; then
20885 ac_cv_header_time=yes
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 ac_cv_header_time=no
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20895 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20896 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20897 if test $ac_cv_header_time = yes; then
20899 cat >>confdefs.h <<\_ACEOF
20900 #define TIME_WITH_SYS_TIME 1
20905 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20906 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20907 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 cat >conftest.$ac_ext <<_ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20916 $ac_includes_default
20920 static struct stat ac_aggr;
20921 if (ac_aggr.st_blksize)
20927 rm -f conftest.$ac_objext
20928 if { (ac_try="$ac_compile"
20929 case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_compile") 2>conftest.er1
20936 grep -v '^ *+' conftest.er1 >conftest.err
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } && {
20941 test -z "$ac_c_werror_flag" ||
20942 test ! -s conftest.err
20943 } && test -s conftest.$ac_objext; then
20944 ac_cv_member_struct_stat_st_blksize=yes
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 cat >conftest.$ac_ext <<_ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 $ac_includes_default
20959 static struct stat ac_aggr;
20960 if (sizeof ac_aggr.st_blksize)
20966 rm -f conftest.$ac_objext
20967 if { (ac_try="$ac_compile"
20968 case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_compile") 2>conftest.er1
20975 grep -v '^ *+' conftest.er1 >conftest.err
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } && {
20980 test -z "$ac_c_werror_flag" ||
20981 test ! -s conftest.err
20982 } && test -s conftest.$ac_objext; then
20983 ac_cv_member_struct_stat_st_blksize=yes
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20988 ac_cv_member_struct_stat_st_blksize=no
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20997 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20998 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21000 cat >>confdefs.h <<_ACEOF
21001 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21005 cat >>confdefs.h <<\_ACEOF
21006 #define HAVE_ST_BLKSIZE 1
21012 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21013 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21014 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 cat >conftest.$ac_ext <<_ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h. */
21023 $ac_includes_default
21027 static struct stat ac_aggr;
21028 if (ac_aggr.st_blocks)
21034 rm -f conftest.$ac_objext
21035 if { (ac_try="$ac_compile"
21036 case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_compile") 2>conftest.er1
21043 grep -v '^ *+' conftest.er1 >conftest.err
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } && {
21048 test -z "$ac_c_werror_flag" ||
21049 test ! -s conftest.err
21050 } && test -s conftest.$ac_objext; then
21051 ac_cv_member_struct_stat_st_blocks=yes
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21056 cat >conftest.$ac_ext <<_ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 $ac_includes_default
21066 static struct stat ac_aggr;
21067 if (sizeof ac_aggr.st_blocks)
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_compile") 2>conftest.er1
21082 grep -v '^ *+' conftest.er1 >conftest.err
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest.$ac_objext; then
21090 ac_cv_member_struct_stat_st_blocks=yes
21092 echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21095 ac_cv_member_struct_stat_st_blocks=no
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21104 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21105 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21107 cat >>confdefs.h <<_ACEOF
21108 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21112 cat >>confdefs.h <<\_ACEOF
21113 #define HAVE_ST_BLOCKS 1
21117 case " $LIBOBJS " in
21118 *" fileblocks.$ac_objext "* ) ;;
21119 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21126 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21127 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21128 if test "${ac_cv_struct_tm+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <sys/types.h>
21144 int *p = &tm.tm_sec;
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_compile") 2>conftest.er1
21159 grep -v '^ *+' conftest.er1 >conftest.err
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } && {
21164 test -z "$ac_c_werror_flag" ||
21165 test ! -s conftest.err
21166 } && test -s conftest.$ac_objext; then
21167 ac_cv_struct_tm=time.h
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ac_cv_struct_tm=sys/time.h
21175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21178 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21179 if test $ac_cv_struct_tm = sys/time.h; then
21181 cat >>confdefs.h <<\_ACEOF
21182 #define TM_IN_SYS_TIME 1
21187 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21188 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21189 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21192 cat >conftest.$ac_ext <<_ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21198 #include <sys/types.h>
21199 #include <$ac_cv_struct_tm>
21205 static struct tm ac_aggr;
21206 if (ac_aggr.tm_zone)
21212 rm -f conftest.$ac_objext
21213 if { (ac_try="$ac_compile"
21214 case "(($ac_try" in
21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216 *) ac_try_echo=$ac_try;;
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219 (eval "$ac_compile") 2>conftest.er1
21221 grep -v '^ *+' conftest.er1 >conftest.err
21223 cat conftest.err >&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } && {
21226 test -z "$ac_c_werror_flag" ||
21227 test ! -s conftest.err
21228 } && test -s conftest.$ac_objext; then
21229 ac_cv_member_struct_tm_tm_zone=yes
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 cat >conftest.$ac_ext <<_ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 #include <sys/types.h>
21241 #include <$ac_cv_struct_tm>
21247 static struct tm ac_aggr;
21248 if (sizeof ac_aggr.tm_zone)
21254 rm -f conftest.$ac_objext
21255 if { (ac_try="$ac_compile"
21256 case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261 (eval "$ac_compile") 2>conftest.er1
21263 grep -v '^ *+' conftest.er1 >conftest.err
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } && {
21268 test -z "$ac_c_werror_flag" ||
21269 test ! -s conftest.err
21270 } && test -s conftest.$ac_objext; then
21271 ac_cv_member_struct_tm_tm_zone=yes
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 ac_cv_member_struct_tm_tm_zone=no
21279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21285 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21286 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21288 cat >>confdefs.h <<_ACEOF
21289 #define HAVE_STRUCT_TM_TM_ZONE 1
21295 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21297 cat >>confdefs.h <<\_ACEOF
21298 #define HAVE_TM_ZONE 1
21302 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21303 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21304 if test "${ac_cv_have_decl_tzname+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21307 cat >conftest.$ac_ext <<_ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21326 rm -f conftest.$ac_objext
21327 if { (ac_try="$ac_compile"
21328 case "(($ac_try" in
21329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330 *) ac_try_echo=$ac_try;;
21332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21333 (eval "$ac_compile") 2>conftest.er1
21335 grep -v '^ *+' conftest.er1 >conftest.err
21337 cat conftest.err >&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } && {
21340 test -z "$ac_c_werror_flag" ||
21341 test ! -s conftest.err
21342 } && test -s conftest.$ac_objext; then
21343 ac_cv_have_decl_tzname=yes
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21348 ac_cv_have_decl_tzname=no
21351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21353 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21354 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21355 if test $ac_cv_have_decl_tzname = yes; then
21357 cat >>confdefs.h <<_ACEOF
21358 #define HAVE_DECL_TZNAME 1
21363 cat >>confdefs.h <<_ACEOF
21364 #define HAVE_DECL_TZNAME 0
21371 { echo "$as_me:$LINENO: checking for tzname" >&5
21372 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21373 if test "${ac_cv_var_tzname+set}" = set; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
21376 cat >conftest.$ac_ext <<_ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21383 #if !HAVE_DECL_TZNAME
21384 extern char *tzname[];
21390 return tzname[0][0];
21395 rm -f conftest.$ac_objext conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_link") 2>conftest.er1
21404 grep -v '^ *+' conftest.er1 >conftest.err
21406 cat conftest.err >&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } && {
21409 test -z "$ac_c_werror_flag" ||
21410 test ! -s conftest.err
21411 } && test -s conftest$ac_exeext &&
21412 $as_test_x conftest$ac_exeext; then
21413 ac_cv_var_tzname=yes
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 ac_cv_var_tzname=no
21421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21422 conftest$ac_exeext conftest.$ac_ext
21424 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21425 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21426 if test $ac_cv_var_tzname = yes; then
21428 cat >>confdefs.h <<\_ACEOF
21429 #define HAVE_TZNAME 1
21436 { echo "$as_me:$LINENO: checking for utime.h" >&5
21437 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21438 if test "${ba_cv_header_utime_h+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 cat >conftest.$ac_ext <<_ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21448 #include <sys/types.h>
21458 rm -f conftest.$ac_objext
21459 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21467 grep -v '^ *+' conftest.er1 >conftest.err
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } && {
21472 test -z "$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21474 } && test -s conftest.$ac_objext; then
21475 ba_cv_header_utime_h=yes
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 ba_cv_header_utime_h=no
21483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21486 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21487 test $ba_cv_header_utime_h = yes &&
21488 cat >>confdefs.h <<\_ACEOF
21489 #define HAVE_UTIME_H 1
21493 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21494 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21495 if test "${ba_cv_header_socklen_t+set}" = set; then
21496 echo $ECHO_N "(cached) $ECHO_C" >&6
21498 cat >conftest.$ac_ext <<_ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21505 #include <sys/types.h>
21506 #include <sys/socket.h>
21515 rm -f conftest.$ac_objext
21516 if { (ac_try="$ac_compile"
21517 case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522 (eval "$ac_compile") 2>conftest.er1
21524 grep -v '^ *+' conftest.er1 >conftest.err
21526 cat conftest.err >&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } && {
21529 test -z "$ac_c_werror_flag" ||
21530 test ! -s conftest.err
21531 } && test -s conftest.$ac_objext; then
21532 ba_cv_header_socklen_t=yes
21534 echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21537 ba_cv_header_socklen_t=no
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21543 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21544 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21545 #define HAVE_SOCKLEN_T 1
21549 { echo "$as_me:$LINENO: checking for bigendian" >&5
21550 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21551 if test "${ba_cv_bigendian+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 if test "$cross_compiling" = yes; then
21557 cat >conftest.$ac_ext <<_ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21563 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21565 rm -f conftest$ac_exeext
21566 if { (ac_try="$ac_link"
21567 case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572 (eval "$ac_link") 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21576 { (case "(($ac_try" in
21577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578 *) ac_try_echo=$ac_try;;
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581 (eval "$ac_try") 2>&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; }; then
21585 ba_cv_bigendian=yes
21587 echo "$as_me: program exited with status $ac_status" >&5
21588 echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21591 ( exit $ac_status )
21594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21599 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21600 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21601 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21602 #define HAVE_BIGENDIAN 1
21607 ac_cpp='$CXXCPP $CPPFLAGS'
21608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21613 { echo "$as_me:$LINENO: checking for typeof" >&5
21614 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21615 if test "${ba_cv_have_typeof+set}" = set; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 if test "$cross_compiling" = yes; then
21619 ba_cv_have_typeof=no
21621 cat >conftest.$ac_ext <<_ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 main(){char *a = 0; a = (typeof a)a;}
21629 rm -f conftest$ac_exeext
21630 if { (ac_try="$ac_link"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_link") 2>&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 ba_cv_have_typeof=yes
21651 echo "$as_me: program exited with status $ac_status" >&5
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ( exit $ac_status )
21656 ba_cv_have_typeof=no
21658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21663 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21664 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21665 test $ba_cv_have_typeof = yes &&
21666 cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_TYPEOF 1
21671 ac_cpp='$CPP $CPPFLAGS'
21672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21677 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21678 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21679 if test "${ac_cv_c_const+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21692 /* FIXME: Include the comments suggested by Paul. */
21693 #ifndef __cplusplus
21694 /* Ultrix mips cc rejects this. */
21695 typedef int charset[2];
21697 /* SunOS 4.1.1 cc rejects this. */
21698 char const *const *pcpcc;
21700 /* NEC SVR4.0.2 mips cc rejects this. */
21701 struct point {int x, y;};
21702 static struct point const zero = {0,0};
21703 /* AIX XL C 1.02.0.0 rejects this.
21704 It does not let you subtract one const X* pointer from another in
21705 an arm of an if-expression whose if-part is not a constant
21707 const char *g = "string";
21708 pcpcc = &g + (g ? g-g : 0);
21709 /* HPUX 7.0 cc rejects these. */
21711 ppc = (char**) pcpcc;
21712 pcpcc = (char const *const *) ppc;
21713 { /* SCO 3.2v4 cc rejects this. */
21715 char const *s = 0 ? (char *) 0 : (char const *) 0;
21720 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21721 int x[] = {25, 17};
21722 const int *foo = &x[0];
21725 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21726 typedef const int *iptr;
21730 { /* AIX XL C 1.02.0.0 rejects this saying
21731 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21732 struct s { int j; const int *ap[3]; };
21733 struct s *b; b->j = 5;
21735 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21736 const int foo = 10;
21737 if (!foo) return 0;
21739 return !cs[0] && !zero.x;
21746 rm -f conftest.$ac_objext
21747 if { (ac_try="$ac_compile"
21748 case "(($ac_try" in
21749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753 (eval "$ac_compile") 2>conftest.er1
21755 grep -v '^ *+' conftest.er1 >conftest.err
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } && {
21760 test -z "$ac_c_werror_flag" ||
21761 test ! -s conftest.err
21762 } && test -s conftest.$ac_objext; then
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21774 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21775 if test $ac_cv_c_const = no; then
21777 cat >>confdefs.h <<\_ACEOF
21785 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21786 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21788 # The order of these tests is important.
21789 cat >conftest.$ac_ext <<_ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 #include <sys/statvfs.h>
21796 #include <sys/fstyp.h>
21798 if { (ac_try="$ac_cpp conftest.$ac_ext"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21806 grep -v '^ *+' conftest.er1 >conftest.err
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } >/dev/null && {
21811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21812 test ! -s conftest.err
21814 cat >>confdefs.h <<\_ACEOF
21815 #define FSTYPE_STATVFS 1
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21825 rm -f conftest.err conftest.$ac_ext
21826 if test $fstype = no; then
21827 cat >conftest.$ac_ext <<_ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 #include <sys/statfs.h>
21834 #include <sys/fstyp.h>
21836 if { (ac_try="$ac_cpp conftest.$ac_ext"
21837 case "(($ac_try" in
21838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839 *) ac_try_echo=$ac_try;;
21841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21844 grep -v '^ *+' conftest.er1 >conftest.err
21846 cat conftest.err >&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } >/dev/null && {
21849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21850 test ! -s conftest.err
21852 cat >>confdefs.h <<\_ACEOF
21853 #define FSTYPE_USG_STATFS 1
21857 echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21863 rm -f conftest.err conftest.$ac_ext
21865 if test $fstype = no; then
21866 cat >conftest.$ac_ext <<_ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h. */
21872 #include <sys/statfs.h>
21873 #include <sys/vmount.h>
21875 if { (ac_try="$ac_cpp conftest.$ac_ext"
21876 case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21883 grep -v '^ *+' conftest.er1 >conftest.err
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } >/dev/null && {
21888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21891 cat >>confdefs.h <<\_ACEOF
21892 #define FSTYPE_AIX_STATFS 1
21896 echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21902 rm -f conftest.err conftest.$ac_ext
21904 if test $fstype = no; then
21905 cat >conftest.$ac_ext <<_ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21911 #include <mntent.h>
21913 if { (ac_try="$ac_cpp conftest.$ac_ext"
21914 case "(($ac_try" in
21915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916 *) ac_try_echo=$ac_try;;
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21921 grep -v '^ *+' conftest.er1 >conftest.err
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } >/dev/null && {
21926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21927 test ! -s conftest.err
21929 cat >>confdefs.h <<\_ACEOF
21930 #define FSTYPE_MNTENT 1
21934 echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21940 rm -f conftest.err conftest.$ac_ext
21942 if test $fstype = no; then
21943 cat >conftest.$ac_ext <<_ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21949 #include <sys/mount.h>
21952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21953 $EGREP "f_type;" >/dev/null 2>&1; then
21954 cat >>confdefs.h <<\_ACEOF
21955 #define FSTYPE_STATFS 1
21962 if test $fstype = no; then
21963 cat >conftest.$ac_ext <<_ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 #include <sys/mount.h>
21970 #include <sys/fs_types.h>
21972 if { (ac_try="$ac_cpp conftest.$ac_ext"
21973 case "(($ac_try" in
21974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21975 *) ac_try_echo=$ac_try;;
21977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21980 grep -v '^ *+' conftest.er1 >conftest.err
21982 cat conftest.err >&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } >/dev/null && {
21985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21986 test ! -s conftest.err
21988 cat >>confdefs.h <<\_ACEOF
21989 #define FSTYPE_GETMNT 1
21993 echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21999 rm -f conftest.err conftest.$ac_ext
22001 { echo "$as_me:$LINENO: result: $fstype" >&5
22002 echo "${ECHO_T}$fstype" >&6; }
22004 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22005 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22006 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22007 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22010 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22011 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22013 # Is the header compilable?
22014 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22015 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22016 cat >conftest.$ac_ext <<_ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h. */
22022 $ac_includes_default
22023 #include <sys/statvfs.h>
22025 rm -f conftest.$ac_objext
22026 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22034 grep -v '^ *+' conftest.er1 >conftest.err
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } && {
22039 test -z "$ac_c_werror_flag" ||
22040 test ! -s conftest.err
22041 } && test -s conftest.$ac_objext; then
22042 ac_header_compiler=yes
22044 echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22047 ac_header_compiler=no
22050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22052 echo "${ECHO_T}$ac_header_compiler" >&6; }
22054 # Is the header present?
22055 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22056 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22057 cat >conftest.$ac_ext <<_ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22063 #include <sys/statvfs.h>
22065 if { (ac_try="$ac_cpp conftest.$ac_ext"
22066 case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22073 grep -v '^ *+' conftest.er1 >conftest.err
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } >/dev/null && {
22078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22081 ac_header_preproc=yes
22083 echo "$as_me: failed program was:" >&5
22084 sed 's/^/| /' conftest.$ac_ext >&5
22086 ac_header_preproc=no
22089 rm -f conftest.err conftest.$ac_ext
22090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22091 echo "${ECHO_T}$ac_header_preproc" >&6; }
22093 # So? What about this header?
22094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22096 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22097 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22098 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22099 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22100 ac_header_preproc=yes
22103 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22104 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22105 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
22106 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
22107 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22108 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22109 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
22110 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22111 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22112 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22113 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22114 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22118 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22119 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22120 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 ac_cv_header_sys_statvfs_h=$ac_header_preproc
22125 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22126 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22129 if test $ac_cv_header_sys_statvfs_h = yes; then
22131 cat >>confdefs.h <<\_ACEOF
22132 #define HAVE_SYS_STATVFS_H 1
22139 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22140 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22141 if test "${ac_cv_type_signal+set}" = set; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22144 cat >conftest.$ac_ext <<_ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22150 #include <sys/types.h>
22151 #include <signal.h>
22156 return *(signal (0, 0)) (0) == 1;
22161 rm -f conftest.$ac_objext
22162 if { (ac_try="$ac_compile"
22163 case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168 (eval "$ac_compile") 2>conftest.er1
22170 grep -v '^ *+' conftest.er1 >conftest.err
22172 cat conftest.err >&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } && {
22175 test -z "$ac_c_werror_flag" ||
22176 test ! -s conftest.err
22177 } && test -s conftest.$ac_objext; then
22178 ac_cv_type_signal=int
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 ac_cv_type_signal=void
22186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22188 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22189 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22191 cat >>confdefs.h <<_ACEOF
22192 #define RETSIGTYPE $ac_cv_type_signal
22197 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22198 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22199 if test "${bash_cv_signal_vintage+set}" = set; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 cat >conftest.$ac_ext <<_ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 #include <signal.h>
22215 struct sigaction sa;
22216 sigemptyset(&ss); sigsuspend(&ss);
22217 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22218 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_link") 2>conftest.er1
22233 grep -v '^ *+' conftest.er1 >conftest.err
22235 cat conftest.err >&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } && {
22238 test -z "$ac_c_werror_flag" ||
22239 test ! -s conftest.err
22240 } && test -s conftest$ac_exeext &&
22241 $as_test_x conftest$ac_exeext; then
22242 bash_cv_signal_vintage="posix"
22244 echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22248 cat >conftest.$ac_ext <<_ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 #include <signal.h>
22259 int mask = sigmask(SIGINT);
22260 sigsetmask(mask); sigblock(mask); sigpause(mask);
22266 rm -f conftest.$ac_objext conftest$ac_exeext
22267 if { (ac_try="$ac_link"
22268 case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_link") 2>conftest.er1
22275 grep -v '^ *+' conftest.er1 >conftest.err
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest$ac_exeext &&
22283 $as_test_x conftest$ac_exeext; then
22284 bash_cv_signal_vintage="4.2bsd"
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22290 cat >conftest.$ac_ext <<_ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22297 #include <signal.h>
22298 RETSIGTYPE foo() { }
22303 int mask = sigmask(SIGINT);
22304 sigset(SIGINT, foo); sigrelse(SIGINT);
22305 sighold(SIGINT); sigpause(SIGINT);
22311 rm -f conftest.$ac_objext conftest$ac_exeext
22312 if { (ac_try="$ac_link"
22313 case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_link") 2>conftest.er1
22320 grep -v '^ *+' conftest.er1 >conftest.err
22322 cat conftest.err >&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } && {
22325 test -z "$ac_c_werror_flag" ||
22326 test ! -s conftest.err
22327 } && test -s conftest$ac_exeext &&
22328 $as_test_x conftest$ac_exeext; then
22329 bash_cv_signal_vintage="svr3"
22331 echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22334 bash_cv_signal_vintage="v7"
22338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22339 conftest$ac_exeext conftest.$ac_ext
22343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22344 conftest$ac_exeext conftest.$ac_ext
22348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22349 conftest$ac_exeext conftest.$ac_ext
22353 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22354 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22355 if test "$bash_cv_signal_vintage" = "posix"; then
22356 cat >>confdefs.h <<\_ACEOF
22357 #define HAVE_POSIX_SIGNALS 1
22360 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22361 cat >>confdefs.h <<\_ACEOF
22362 #define HAVE_BSD_SIGNALS 1
22365 elif test "$bash_cv_signal_vintage" = "svr3"; then
22366 cat >>confdefs.h <<\_ACEOF
22367 #define HAVE_USG_SIGHOLD 1
22372 { echo "$as_me:$LINENO: checking for mode_t" >&5
22373 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22374 if test "${ac_cv_type_mode_t+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 cat >conftest.$ac_ext <<_ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383 $ac_includes_default
22384 typedef mode_t ac__type_new_;
22388 if ((ac__type_new_ *) 0)
22390 if (sizeof (ac__type_new_))
22396 rm -f conftest.$ac_objext
22397 if { (ac_try="$ac_compile"
22398 case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_compile") 2>conftest.er1
22405 grep -v '^ *+' conftest.er1 >conftest.err
22407 cat conftest.err >&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest.$ac_objext; then
22413 ac_cv_type_mode_t=yes
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_cv_type_mode_t=no
22421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22424 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22425 if test $ac_cv_type_mode_t = yes; then
22429 cat >>confdefs.h <<_ACEOF
22435 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22436 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22437 if test "${ac_cv_type_uid_t+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22440 cat >conftest.$ac_ext <<_ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22446 #include <sys/types.h>
22449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22450 $EGREP "uid_t" >/dev/null 2>&1; then
22451 ac_cv_type_uid_t=yes
22453 ac_cv_type_uid_t=no
22458 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22459 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22460 if test $ac_cv_type_uid_t = no; then
22462 cat >>confdefs.h <<\_ACEOF
22467 cat >>confdefs.h <<\_ACEOF
22473 { echo "$as_me:$LINENO: checking for size_t" >&5
22474 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22475 if test "${ac_cv_type_size_t+set}" = set; then
22476 echo $ECHO_N "(cached) $ECHO_C" >&6
22478 cat >conftest.$ac_ext <<_ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 $ac_includes_default
22485 typedef size_t ac__type_new_;
22489 if ((ac__type_new_ *) 0)
22491 if (sizeof (ac__type_new_))
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504 (eval "$ac_compile") 2>conftest.er1
22506 grep -v '^ *+' conftest.er1 >conftest.err
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } && {
22511 test -z "$ac_c_werror_flag" ||
22512 test ! -s conftest.err
22513 } && test -s conftest.$ac_objext; then
22514 ac_cv_type_size_t=yes
22516 echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22519 ac_cv_type_size_t=no
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22525 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22526 if test $ac_cv_type_size_t = yes; then
22530 cat >>confdefs.h <<_ACEOF
22531 #define size_t unsigned int
22536 { echo "$as_me:$LINENO: checking for pid_t" >&5
22537 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22538 if test "${ac_cv_type_pid_t+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 cat >conftest.$ac_ext <<_ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22547 $ac_includes_default
22548 typedef pid_t ac__type_new_;
22552 if ((ac__type_new_ *) 0)
22554 if (sizeof (ac__type_new_))
22560 rm -f conftest.$ac_objext
22561 if { (ac_try="$ac_compile"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_compile") 2>conftest.er1
22569 grep -v '^ *+' conftest.er1 >conftest.err
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } && {
22574 test -z "$ac_c_werror_flag" ||
22575 test ! -s conftest.err
22576 } && test -s conftest.$ac_objext; then
22577 ac_cv_type_pid_t=yes
22579 echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22582 ac_cv_type_pid_t=no
22585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22588 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22589 if test $ac_cv_type_pid_t = yes; then
22593 cat >>confdefs.h <<_ACEOF
22599 { echo "$as_me:$LINENO: checking for off_t" >&5
22600 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22601 if test "${ac_cv_type_off_t+set}" = set; then
22602 echo $ECHO_N "(cached) $ECHO_C" >&6
22604 cat >conftest.$ac_ext <<_ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22610 $ac_includes_default
22611 typedef off_t ac__type_new_;
22615 if ((ac__type_new_ *) 0)
22617 if (sizeof (ac__type_new_))
22623 rm -f conftest.$ac_objext
22624 if { (ac_try="$ac_compile"
22625 case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630 (eval "$ac_compile") 2>conftest.er1
22632 grep -v '^ *+' conftest.er1 >conftest.err
22634 cat conftest.err >&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } && {
22637 test -z "$ac_c_werror_flag" ||
22638 test ! -s conftest.err
22639 } && test -s conftest.$ac_objext; then
22640 ac_cv_type_off_t=yes
22642 echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22645 ac_cv_type_off_t=no
22648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22651 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22652 if test $ac_cv_type_off_t = yes; then
22656 cat >>confdefs.h <<_ACEOF
22657 #define off_t long int
22662 { echo "$as_me:$LINENO: checking for ino_t" >&5
22663 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22664 if test "${ac_cv_type_ino_t+set}" = set; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 cat >conftest.$ac_ext <<_ACEOF
22670 cat confdefs.h >>conftest.$ac_ext
22671 cat >>conftest.$ac_ext <<_ACEOF
22672 /* end confdefs.h. */
22673 $ac_includes_default
22674 typedef ino_t ac__type_new_;
22678 if ((ac__type_new_ *) 0)
22680 if (sizeof (ac__type_new_))
22686 rm -f conftest.$ac_objext
22687 if { (ac_try="$ac_compile"
22688 case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_compile") 2>conftest.er1
22695 grep -v '^ *+' conftest.er1 >conftest.err
22697 cat conftest.err >&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); } && {
22700 test -z "$ac_c_werror_flag" ||
22701 test ! -s conftest.err
22702 } && test -s conftest.$ac_objext; then
22703 ac_cv_type_ino_t=yes
22705 echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22708 ac_cv_type_ino_t=no
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22714 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22715 if test $ac_cv_type_ino_t = yes; then
22719 cat >>confdefs.h <<_ACEOF
22720 #define ino_t unsigned long
22725 { echo "$as_me:$LINENO: checking for dev_t" >&5
22726 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22727 if test "${ac_cv_type_dev_t+set}" = set; then
22728 echo $ECHO_N "(cached) $ECHO_C" >&6
22730 cat >conftest.$ac_ext <<_ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22736 $ac_includes_default
22737 typedef dev_t ac__type_new_;
22741 if ((ac__type_new_ *) 0)
22743 if (sizeof (ac__type_new_))
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_compile") 2>conftest.er1
22758 grep -v '^ *+' conftest.er1 >conftest.err
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } && {
22763 test -z "$ac_c_werror_flag" ||
22764 test ! -s conftest.err
22765 } && test -s conftest.$ac_objext; then
22766 ac_cv_type_dev_t=yes
22768 echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22771 ac_cv_type_dev_t=no
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22776 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22777 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22778 if test $ac_cv_type_dev_t = yes; then
22782 cat >>confdefs.h <<_ACEOF
22783 #define dev_t unsigned long
22788 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22789 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22790 if test "${ac_cv_type_daddr_t+set}" = set; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22793 cat >conftest.$ac_ext <<_ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 $ac_includes_default
22800 typedef daddr_t ac__type_new_;
22804 if ((ac__type_new_ *) 0)
22806 if (sizeof (ac__type_new_))
22812 rm -f conftest.$ac_objext
22813 if { (ac_try="$ac_compile"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_compile") 2>conftest.er1
22821 grep -v '^ *+' conftest.er1 >conftest.err
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest.$ac_objext; then
22829 ac_cv_type_daddr_t=yes
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22834 ac_cv_type_daddr_t=no
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22840 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22841 if test $ac_cv_type_daddr_t = yes; then
22845 cat >>confdefs.h <<_ACEOF
22846 #define daddr_t long
22851 { echo "$as_me:$LINENO: checking for major_t" >&5
22852 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22853 if test "${ac_cv_type_major_t+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 cat >conftest.$ac_ext <<_ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 $ac_includes_default
22863 typedef major_t ac__type_new_;
22867 if ((ac__type_new_ *) 0)
22869 if (sizeof (ac__type_new_))
22875 rm -f conftest.$ac_objext
22876 if { (ac_try="$ac_compile"
22877 case "(($ac_try" in
22878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882 (eval "$ac_compile") 2>conftest.er1
22884 grep -v '^ *+' conftest.er1 >conftest.err
22886 cat conftest.err >&5
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); } && {
22889 test -z "$ac_c_werror_flag" ||
22890 test ! -s conftest.err
22891 } && test -s conftest.$ac_objext; then
22892 ac_cv_type_major_t=yes
22894 echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22897 ac_cv_type_major_t=no
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22903 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22904 if test $ac_cv_type_major_t = yes; then
22908 cat >>confdefs.h <<_ACEOF
22909 #define major_t int
22914 { echo "$as_me:$LINENO: checking for minor_t" >&5
22915 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22916 if test "${ac_cv_type_minor_t+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22919 cat >conftest.$ac_ext <<_ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22925 $ac_includes_default
22926 typedef minor_t ac__type_new_;
22930 if ((ac__type_new_ *) 0)
22932 if (sizeof (ac__type_new_))
22938 rm -f conftest.$ac_objext
22939 if { (ac_try="$ac_compile"
22940 case "(($ac_try" in
22941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942 *) ac_try_echo=$ac_try;;
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945 (eval "$ac_compile") 2>conftest.er1
22947 grep -v '^ *+' conftest.er1 >conftest.err
22949 cat conftest.err >&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } && {
22952 test -z "$ac_c_werror_flag" ||
22953 test ! -s conftest.err
22954 } && test -s conftest.$ac_objext; then
22955 ac_cv_type_minor_t=yes
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 ac_cv_type_minor_t=no
22963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22965 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22966 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22967 if test $ac_cv_type_minor_t = yes; then
22971 cat >>confdefs.h <<_ACEOF
22972 #define minor_t int
22977 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22978 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22979 if test "${ac_cv_type_ssize_t+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 $ac_includes_default
22989 typedef ssize_t ac__type_new_;
22993 if ((ac__type_new_ *) 0)
22995 if (sizeof (ac__type_new_))
23001 rm -f conftest.$ac_objext
23002 if { (ac_try="$ac_compile"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008 (eval "$ac_compile") 2>conftest.er1
23010 grep -v '^ *+' conftest.er1 >conftest.err
23012 cat conftest.err >&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } && {
23015 test -z "$ac_c_werror_flag" ||
23016 test ! -s conftest.err
23017 } && test -s conftest.$ac_objext; then
23018 ac_cv_type_ssize_t=yes
23020 echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23023 ac_cv_type_ssize_t=no
23026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23028 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23029 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23030 if test $ac_cv_type_ssize_t = yes; then
23034 cat >>confdefs.h <<_ACEOF
23035 #define ssize_t int
23040 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23041 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23042 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23043 echo $ECHO_N "(cached) $ECHO_C" >&6
23045 cat >conftest.$ac_ext <<_ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h. */
23051 $ac_includes_default
23055 static struct stat ac_aggr;
23056 if (ac_aggr.st_blocks)
23062 rm -f conftest.$ac_objext
23063 if { (ac_try="$ac_compile"
23064 case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069 (eval "$ac_compile") 2>conftest.er1
23071 grep -v '^ *+' conftest.er1 >conftest.err
23073 cat conftest.err >&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } && {
23076 test -z "$ac_c_werror_flag" ||
23077 test ! -s conftest.err
23078 } && test -s conftest.$ac_objext; then
23079 ac_cv_member_struct_stat_st_blocks=yes
23081 echo "$as_me: failed program was:" >&5
23082 sed 's/^/| /' conftest.$ac_ext >&5
23084 cat >conftest.$ac_ext <<_ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 $ac_includes_default
23094 static struct stat ac_aggr;
23095 if (sizeof ac_aggr.st_blocks)
23101 rm -f conftest.$ac_objext
23102 if { (ac_try="$ac_compile"
23103 case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23108 (eval "$ac_compile") 2>conftest.er1
23110 grep -v '^ *+' conftest.er1 >conftest.err
23112 cat conftest.err >&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); } && {
23115 test -z "$ac_c_werror_flag" ||
23116 test ! -s conftest.err
23117 } && test -s conftest.$ac_objext; then
23118 ac_cv_member_struct_stat_st_blocks=yes
23120 echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23123 ac_cv_member_struct_stat_st_blocks=no
23126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23132 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23133 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23135 cat >>confdefs.h <<_ACEOF
23136 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23140 cat >>confdefs.h <<\_ACEOF
23141 #define HAVE_ST_BLOCKS 1
23145 case " $LIBOBJS " in
23146 *" fileblocks.$ac_objext "* ) ;;
23147 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23154 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23155 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23156 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23159 cat >conftest.$ac_ext <<_ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23165 $ac_includes_default
23169 static struct stat ac_aggr;
23170 if (ac_aggr.st_rdev)
23176 rm -f conftest.$ac_objext
23177 if { (ac_try="$ac_compile"
23178 case "(($ac_try" in
23179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180 *) ac_try_echo=$ac_try;;
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183 (eval "$ac_compile") 2>conftest.er1
23185 grep -v '^ *+' conftest.er1 >conftest.err
23187 cat conftest.err >&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); } && {
23190 test -z "$ac_c_werror_flag" ||
23191 test ! -s conftest.err
23192 } && test -s conftest.$ac_objext; then
23193 ac_cv_member_struct_stat_st_rdev=yes
23195 echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23198 cat >conftest.$ac_ext <<_ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 $ac_includes_default
23208 static struct stat ac_aggr;
23209 if (sizeof ac_aggr.st_rdev)
23215 rm -f conftest.$ac_objext
23216 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23224 grep -v '^ *+' conftest.er1 >conftest.err
23226 cat conftest.err >&5
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } && {
23229 test -z "$ac_c_werror_flag" ||
23230 test ! -s conftest.err
23231 } && test -s conftest.$ac_objext; then
23232 ac_cv_member_struct_stat_st_rdev=yes
23234 echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23237 ac_cv_member_struct_stat_st_rdev=no
23240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23246 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23247 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23249 cat >>confdefs.h <<_ACEOF
23250 #define HAVE_STRUCT_STAT_ST_RDEV 1
23254 cat >>confdefs.h <<\_ACEOF
23255 #define HAVE_ST_RDEV 1
23261 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23262 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23263 if test "${ac_cv_struct_tm+set}" = set; then
23264 echo $ECHO_N "(cached) $ECHO_C" >&6
23266 cat >conftest.$ac_ext <<_ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 #include <sys/types.h>
23279 int *p = &tm.tm_sec;
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23292 (eval "$ac_compile") 2>conftest.er1
23294 grep -v '^ *+' conftest.er1 >conftest.err
23296 cat conftest.err >&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } && {
23299 test -z "$ac_c_werror_flag" ||
23300 test ! -s conftest.err
23301 } && test -s conftest.$ac_objext; then
23302 ac_cv_struct_tm=time.h
23304 echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 ac_cv_struct_tm=sys/time.h
23310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23312 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23313 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23314 if test $ac_cv_struct_tm = sys/time.h; then
23316 cat >>confdefs.h <<\_ACEOF
23317 #define TM_IN_SYS_TIME 1
23322 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23323 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23324 if test "${ac_cv_c_const+set}" = set; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 cat >conftest.$ac_ext <<_ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23337 /* FIXME: Include the comments suggested by Paul. */
23338 #ifndef __cplusplus
23339 /* Ultrix mips cc rejects this. */
23340 typedef int charset[2];
23342 /* SunOS 4.1.1 cc rejects this. */
23343 char const *const *pcpcc;
23345 /* NEC SVR4.0.2 mips cc rejects this. */
23346 struct point {int x, y;};
23347 static struct point const zero = {0,0};
23348 /* AIX XL C 1.02.0.0 rejects this.
23349 It does not let you subtract one const X* pointer from another in
23350 an arm of an if-expression whose if-part is not a constant
23352 const char *g = "string";
23353 pcpcc = &g + (g ? g-g : 0);
23354 /* HPUX 7.0 cc rejects these. */
23356 ppc = (char**) pcpcc;
23357 pcpcc = (char const *const *) ppc;
23358 { /* SCO 3.2v4 cc rejects this. */
23360 char const *s = 0 ? (char *) 0 : (char const *) 0;
23365 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23366 int x[] = {25, 17};
23367 const int *foo = &x[0];
23370 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23371 typedef const int *iptr;
23375 { /* AIX XL C 1.02.0.0 rejects this saying
23376 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23377 struct s { int j; const int *ap[3]; };
23378 struct s *b; b->j = 5;
23380 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23381 const int foo = 10;
23382 if (!foo) return 0;
23384 return !cs[0] && !zero.x;
23391 rm -f conftest.$ac_objext
23392 if { (ac_try="$ac_compile"
23393 case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_compile") 2>conftest.er1
23400 grep -v '^ *+' conftest.er1 >conftest.err
23402 cat conftest.err >&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); } && {
23405 test -z "$ac_c_werror_flag" ||
23406 test ! -s conftest.err
23407 } && test -s conftest.$ac_objext; then
23410 echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23418 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23419 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23420 if test $ac_cv_c_const = no; then
23422 cat >>confdefs.h <<\_ACEOF
23430 { echo "$as_me:$LINENO: checking for char" >&5
23431 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23432 if test "${ac_cv_type_char+set}" = set; then
23433 echo $ECHO_N "(cached) $ECHO_C" >&6
23435 cat >conftest.$ac_ext <<_ACEOF
23438 cat confdefs.h >>conftest.$ac_ext
23439 cat >>conftest.$ac_ext <<_ACEOF
23440 /* end confdefs.h. */
23441 $ac_includes_default
23442 typedef char ac__type_new_;
23446 if ((ac__type_new_ *) 0)
23448 if (sizeof (ac__type_new_))
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461 (eval "$ac_compile") 2>conftest.er1
23463 grep -v '^ *+' conftest.er1 >conftest.err
23465 cat conftest.err >&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); } && {
23468 test -z "$ac_c_werror_flag" ||
23469 test ! -s conftest.err
23470 } && test -s conftest.$ac_objext; then
23471 ac_cv_type_char=yes
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23481 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23482 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23484 # The cast to long int works around a bug in the HP C Compiler
23485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23487 # This bug is HP SR number 8606223364.
23488 { echo "$as_me:$LINENO: checking size of char" >&5
23489 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23490 if test "${ac_cv_sizeof_char+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 if test "$cross_compiling" = yes; then
23494 # Depending upon the size, compute the lo and hi bounds.
23495 cat >conftest.$ac_ext <<_ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23501 $ac_includes_default
23502 typedef char ac__type_sizeof_;
23506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23513 rm -f conftest.$ac_objext
23514 if { (ac_try="$ac_compile"
23515 case "(($ac_try" in
23516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517 *) ac_try_echo=$ac_try;;
23519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23520 (eval "$ac_compile") 2>conftest.er1
23522 grep -v '^ *+' conftest.er1 >conftest.err
23524 cat conftest.err >&5
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); } && {
23527 test -z "$ac_c_werror_flag" ||
23528 test ! -s conftest.err
23529 } && test -s conftest.$ac_objext; then
23532 cat >conftest.$ac_ext <<_ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23538 $ac_includes_default
23539 typedef char ac__type_sizeof_;
23543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23550 rm -f conftest.$ac_objext
23551 if { (ac_try="$ac_compile"
23552 case "(($ac_try" in
23553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23554 *) ac_try_echo=$ac_try;;
23556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23557 (eval "$ac_compile") 2>conftest.er1
23559 grep -v '^ *+' conftest.er1 >conftest.err
23561 cat conftest.err >&5
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); } && {
23564 test -z "$ac_c_werror_flag" ||
23565 test ! -s conftest.err
23566 } && test -s conftest.$ac_objext; then
23567 ac_hi=$ac_mid; break
23569 echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23572 ac_lo=`expr $ac_mid + 1`
23573 if test $ac_lo -le $ac_mid; then
23577 ac_mid=`expr 2 '*' $ac_mid + 1`
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23583 echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23586 cat >conftest.$ac_ext <<_ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23592 $ac_includes_default
23593 typedef char ac__type_sizeof_;
23597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23604 rm -f conftest.$ac_objext
23605 if { (ac_try="$ac_compile"
23606 case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_compile") 2>conftest.er1
23613 grep -v '^ *+' conftest.er1 >conftest.err
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } && {
23618 test -z "$ac_c_werror_flag" ||
23619 test ! -s conftest.err
23620 } && test -s conftest.$ac_objext; then
23623 cat >conftest.$ac_ext <<_ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h. */
23629 $ac_includes_default
23630 typedef char ac__type_sizeof_;
23634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23641 rm -f conftest.$ac_objext
23642 if { (ac_try="$ac_compile"
23643 case "(($ac_try" in
23644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645 *) ac_try_echo=$ac_try;;
23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648 (eval "$ac_compile") 2>conftest.er1
23650 grep -v '^ *+' conftest.er1 >conftest.err
23652 cat conftest.err >&5
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); } && {
23655 test -z "$ac_c_werror_flag" ||
23656 test ! -s conftest.err
23657 } && test -s conftest.$ac_objext; then
23658 ac_lo=$ac_mid; break
23660 echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.$ac_ext >&5
23663 ac_hi=`expr '(' $ac_mid ')' - 1`
23664 if test $ac_mid -le $ac_hi; then
23668 ac_mid=`expr 2 '*' $ac_mid`
23671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23674 echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23684 # Binary search between lo and hi bounds.
23685 while test "x$ac_lo" != "x$ac_hi"; do
23686 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23687 cat >conftest.$ac_ext <<_ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h. */
23693 $ac_includes_default
23694 typedef char ac__type_sizeof_;
23698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23705 rm -f conftest.$ac_objext
23706 if { (ac_try="$ac_compile"
23707 case "(($ac_try" in
23708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709 *) ac_try_echo=$ac_try;;
23711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23712 (eval "$ac_compile") 2>conftest.er1
23714 grep -v '^ *+' conftest.er1 >conftest.err
23716 cat conftest.err >&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } && {
23719 test -z "$ac_c_werror_flag" ||
23720 test ! -s conftest.err
23721 } && test -s conftest.$ac_objext; then
23724 echo "$as_me: failed program was:" >&5
23725 sed 's/^/| /' conftest.$ac_ext >&5
23727 ac_lo=`expr '(' $ac_mid ')' + 1`
23730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733 ?*) ac_cv_sizeof_char=$ac_lo;;
23734 '') if test "$ac_cv_type_char" = yes; then
23735 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23736 See \`config.log' for more details." >&5
23737 echo "$as_me: error: cannot compute sizeof (char)
23738 See \`config.log' for more details." >&2;}
23739 { (exit 77); exit 77; }; }
23741 ac_cv_sizeof_char=0
23745 cat >conftest.$ac_ext <<_ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23751 $ac_includes_default
23752 typedef char ac__type_sizeof_;
23753 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23754 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23756 #include <stdlib.h>
23761 FILE *f = fopen ("conftest.val", "w");
23764 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23766 long int i = longval ();
23767 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23769 fprintf (f, "%ld\n", i);
23773 unsigned long int i = ulongval ();
23774 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23776 fprintf (f, "%lu\n", i);
23778 return ferror (f) || fclose (f) != 0;
23784 rm -f conftest$ac_exeext
23785 if { (ac_try="$ac_link"
23786 case "(($ac_try" in
23787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788 *) ac_try_echo=$ac_try;;
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791 (eval "$ac_link") 2>&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23795 { (case "(($ac_try" in
23796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797 *) ac_try_echo=$ac_try;;
23799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23800 (eval "$ac_try") 2>&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; }; then
23804 ac_cv_sizeof_char=`cat conftest.val`
23806 echo "$as_me: program exited with status $ac_status" >&5
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23810 ( exit $ac_status )
23811 if test "$ac_cv_type_char" = yes; then
23812 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23813 See \`config.log' for more details." >&5
23814 echo "$as_me: error: cannot compute sizeof (char)
23815 See \`config.log' for more details." >&2;}
23816 { (exit 77); exit 77; }; }
23818 ac_cv_sizeof_char=0
23821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23825 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23826 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23830 cat >>confdefs.h <<_ACEOF
23831 #define SIZEOF_CHAR $ac_cv_sizeof_char
23835 { echo "$as_me:$LINENO: checking for short int" >&5
23836 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23837 if test "${ac_cv_type_short_int+set}" = set; then
23838 echo $ECHO_N "(cached) $ECHO_C" >&6
23840 cat >conftest.$ac_ext <<_ACEOF
23843 cat confdefs.h >>conftest.$ac_ext
23844 cat >>conftest.$ac_ext <<_ACEOF
23845 /* end confdefs.h. */
23846 $ac_includes_default
23847 typedef short int ac__type_new_;
23851 if ((ac__type_new_ *) 0)
23853 if (sizeof (ac__type_new_))
23859 rm -f conftest.$ac_objext
23860 if { (ac_try="$ac_compile"
23861 case "(($ac_try" in
23862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23863 *) ac_try_echo=$ac_try;;
23865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23866 (eval "$ac_compile") 2>conftest.er1
23868 grep -v '^ *+' conftest.er1 >conftest.err
23870 cat conftest.err >&5
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); } && {
23873 test -z "$ac_c_werror_flag" ||
23874 test ! -s conftest.err
23875 } && test -s conftest.$ac_objext; then
23876 ac_cv_type_short_int=yes
23878 echo "$as_me: failed program was:" >&5
23879 sed 's/^/| /' conftest.$ac_ext >&5
23881 ac_cv_type_short_int=no
23884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23887 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23889 # The cast to long int works around a bug in the HP C Compiler
23890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23892 # This bug is HP SR number 8606223364.
23893 { echo "$as_me:$LINENO: checking size of short int" >&5
23894 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23895 if test "${ac_cv_sizeof_short_int+set}" = set; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23898 if test "$cross_compiling" = yes; then
23899 # Depending upon the size, compute the lo and hi bounds.
23900 cat >conftest.$ac_ext <<_ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h. */
23906 $ac_includes_default
23907 typedef short int ac__type_sizeof_;
23911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23918 rm -f conftest.$ac_objext
23919 if { (ac_try="$ac_compile"
23920 case "(($ac_try" in
23921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23922 *) ac_try_echo=$ac_try;;
23924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23925 (eval "$ac_compile") 2>conftest.er1
23927 grep -v '^ *+' conftest.er1 >conftest.err
23929 cat conftest.err >&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); } && {
23932 test -z "$ac_c_werror_flag" ||
23933 test ! -s conftest.err
23934 } && test -s conftest.$ac_objext; then
23937 cat >conftest.$ac_ext <<_ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h. */
23943 $ac_includes_default
23944 typedef short int ac__type_sizeof_;
23948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23955 rm -f conftest.$ac_objext
23956 if { (ac_try="$ac_compile"
23957 case "(($ac_try" in
23958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23959 *) ac_try_echo=$ac_try;;
23961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23962 (eval "$ac_compile") 2>conftest.er1
23964 grep -v '^ *+' conftest.er1 >conftest.err
23966 cat conftest.err >&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } && {
23969 test -z "$ac_c_werror_flag" ||
23970 test ! -s conftest.err
23971 } && test -s conftest.$ac_objext; then
23972 ac_hi=$ac_mid; break
23974 echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23977 ac_lo=`expr $ac_mid + 1`
23978 if test $ac_lo -le $ac_mid; then
23982 ac_mid=`expr 2 '*' $ac_mid + 1`
23985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23988 echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 cat >conftest.$ac_ext <<_ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h. */
23997 $ac_includes_default
23998 typedef short int ac__type_sizeof_;
24002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24009 rm -f conftest.$ac_objext
24010 if { (ac_try="$ac_compile"
24011 case "(($ac_try" in
24012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24013 *) ac_try_echo=$ac_try;;
24015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24016 (eval "$ac_compile") 2>conftest.er1
24018 grep -v '^ *+' conftest.er1 >conftest.err
24020 cat conftest.err >&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); } && {
24023 test -z "$ac_c_werror_flag" ||
24024 test ! -s conftest.err
24025 } && test -s conftest.$ac_objext; then
24028 cat >conftest.$ac_ext <<_ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 $ac_includes_default
24035 typedef short int ac__type_sizeof_;
24039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24046 rm -f conftest.$ac_objext
24047 if { (ac_try="$ac_compile"
24048 case "(($ac_try" in
24049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050 *) ac_try_echo=$ac_try;;
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053 (eval "$ac_compile") 2>conftest.er1
24055 grep -v '^ *+' conftest.er1 >conftest.err
24057 cat conftest.err >&5
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); } && {
24060 test -z "$ac_c_werror_flag" ||
24061 test ! -s conftest.err
24062 } && test -s conftest.$ac_objext; then
24063 ac_lo=$ac_mid; break
24065 echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24068 ac_hi=`expr '(' $ac_mid ')' - 1`
24069 if test $ac_mid -le $ac_hi; then
24073 ac_mid=`expr 2 '*' $ac_mid`
24076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24079 echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24089 # Binary search between lo and hi bounds.
24090 while test "x$ac_lo" != "x$ac_hi"; do
24091 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24092 cat >conftest.$ac_ext <<_ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h. */
24098 $ac_includes_default
24099 typedef short int ac__type_sizeof_;
24103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24110 rm -f conftest.$ac_objext
24111 if { (ac_try="$ac_compile"
24112 case "(($ac_try" in
24113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114 *) ac_try_echo=$ac_try;;
24116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24117 (eval "$ac_compile") 2>conftest.er1
24119 grep -v '^ *+' conftest.er1 >conftest.err
24121 cat conftest.err >&5
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); } && {
24124 test -z "$ac_c_werror_flag" ||
24125 test ! -s conftest.err
24126 } && test -s conftest.$ac_objext; then
24129 echo "$as_me: failed program was:" >&5
24130 sed 's/^/| /' conftest.$ac_ext >&5
24132 ac_lo=`expr '(' $ac_mid ')' + 1`
24135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24138 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24139 '') if test "$ac_cv_type_short_int" = yes; then
24140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24141 See \`config.log' for more details." >&5
24142 echo "$as_me: error: cannot compute sizeof (short int)
24143 See \`config.log' for more details." >&2;}
24144 { (exit 77); exit 77; }; }
24146 ac_cv_sizeof_short_int=0
24150 cat >conftest.$ac_ext <<_ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h. */
24156 $ac_includes_default
24157 typedef short int ac__type_sizeof_;
24158 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24159 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24161 #include <stdlib.h>
24166 FILE *f = fopen ("conftest.val", "w");
24169 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24171 long int i = longval ();
24172 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24174 fprintf (f, "%ld\n", i);
24178 unsigned long int i = ulongval ();
24179 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24181 fprintf (f, "%lu\n", i);
24183 return ferror (f) || fclose (f) != 0;
24189 rm -f conftest$ac_exeext
24190 if { (ac_try="$ac_link"
24191 case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196 (eval "$ac_link") 2>&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24200 { (case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_try") 2>&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); }; }; then
24209 ac_cv_sizeof_short_int=`cat conftest.val`
24211 echo "$as_me: program exited with status $ac_status" >&5
24212 echo "$as_me: failed program was:" >&5
24213 sed 's/^/| /' conftest.$ac_ext >&5
24215 ( exit $ac_status )
24216 if test "$ac_cv_type_short_int" = yes; then
24217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24218 See \`config.log' for more details." >&5
24219 echo "$as_me: error: cannot compute sizeof (short int)
24220 See \`config.log' for more details." >&2;}
24221 { (exit 77); exit 77; }; }
24223 ac_cv_sizeof_short_int=0
24226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24230 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24231 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24235 cat >>confdefs.h <<_ACEOF
24236 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24240 { echo "$as_me:$LINENO: checking for int" >&5
24241 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24242 if test "${ac_cv_type_int+set}" = set; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24245 cat >conftest.$ac_ext <<_ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h. */
24251 $ac_includes_default
24252 typedef int ac__type_new_;
24256 if ((ac__type_new_ *) 0)
24258 if (sizeof (ac__type_new_))
24264 rm -f conftest.$ac_objext
24265 if { (ac_try="$ac_compile"
24266 case "(($ac_try" in
24267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268 *) ac_try_echo=$ac_try;;
24270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24271 (eval "$ac_compile") 2>conftest.er1
24273 grep -v '^ *+' conftest.er1 >conftest.err
24275 cat conftest.err >&5
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); } && {
24278 test -z "$ac_c_werror_flag" ||
24279 test ! -s conftest.err
24280 } && test -s conftest.$ac_objext; then
24283 echo "$as_me: failed program was:" >&5
24284 sed 's/^/| /' conftest.$ac_ext >&5
24289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24292 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24294 # The cast to long int works around a bug in the HP C Compiler
24295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24297 # This bug is HP SR number 8606223364.
24298 { echo "$as_me:$LINENO: checking size of int" >&5
24299 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24300 if test "${ac_cv_sizeof_int+set}" = set; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 if test "$cross_compiling" = yes; then
24304 # Depending upon the size, compute the lo and hi bounds.
24305 cat >conftest.$ac_ext <<_ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h. */
24311 $ac_includes_default
24312 typedef int ac__type_sizeof_;
24316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24323 rm -f conftest.$ac_objext
24324 if { (ac_try="$ac_compile"
24325 case "(($ac_try" in
24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24330 (eval "$ac_compile") 2>conftest.er1
24332 grep -v '^ *+' conftest.er1 >conftest.err
24334 cat conftest.err >&5
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); } && {
24337 test -z "$ac_c_werror_flag" ||
24338 test ! -s conftest.err
24339 } && test -s conftest.$ac_objext; then
24342 cat >conftest.$ac_ext <<_ACEOF
24345 cat confdefs.h >>conftest.$ac_ext
24346 cat >>conftest.$ac_ext <<_ACEOF
24347 /* end confdefs.h. */
24348 $ac_includes_default
24349 typedef int ac__type_sizeof_;
24353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24360 rm -f conftest.$ac_objext
24361 if { (ac_try="$ac_compile"
24362 case "(($ac_try" in
24363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24364 *) ac_try_echo=$ac_try;;
24366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367 (eval "$ac_compile") 2>conftest.er1
24369 grep -v '^ *+' conftest.er1 >conftest.err
24371 cat conftest.err >&5
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); } && {
24374 test -z "$ac_c_werror_flag" ||
24375 test ! -s conftest.err
24376 } && test -s conftest.$ac_objext; then
24377 ac_hi=$ac_mid; break
24379 echo "$as_me: failed program was:" >&5
24380 sed 's/^/| /' conftest.$ac_ext >&5
24382 ac_lo=`expr $ac_mid + 1`
24383 if test $ac_lo -le $ac_mid; then
24387 ac_mid=`expr 2 '*' $ac_mid + 1`
24390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24393 echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24396 cat >conftest.$ac_ext <<_ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24402 $ac_includes_default
24403 typedef int ac__type_sizeof_;
24407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24414 rm -f conftest.$ac_objext
24415 if { (ac_try="$ac_compile"
24416 case "(($ac_try" in
24417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418 *) ac_try_echo=$ac_try;;
24420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24421 (eval "$ac_compile") 2>conftest.er1
24423 grep -v '^ *+' conftest.er1 >conftest.err
24425 cat conftest.err >&5
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); } && {
24428 test -z "$ac_c_werror_flag" ||
24429 test ! -s conftest.err
24430 } && test -s conftest.$ac_objext; then
24433 cat >conftest.$ac_ext <<_ACEOF
24436 cat confdefs.h >>conftest.$ac_ext
24437 cat >>conftest.$ac_ext <<_ACEOF
24438 /* end confdefs.h. */
24439 $ac_includes_default
24440 typedef int ac__type_sizeof_;
24444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24451 rm -f conftest.$ac_objext
24452 if { (ac_try="$ac_compile"
24453 case "(($ac_try" in
24454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24455 *) ac_try_echo=$ac_try;;
24457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24458 (eval "$ac_compile") 2>conftest.er1
24460 grep -v '^ *+' conftest.er1 >conftest.err
24462 cat conftest.err >&5
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } && {
24465 test -z "$ac_c_werror_flag" ||
24466 test ! -s conftest.err
24467 } && test -s conftest.$ac_objext; then
24468 ac_lo=$ac_mid; break
24470 echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24473 ac_hi=`expr '(' $ac_mid ')' - 1`
24474 if test $ac_mid -le $ac_hi; then
24478 ac_mid=`expr 2 '*' $ac_mid`
24481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24484 echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24494 # Binary search between lo and hi bounds.
24495 while test "x$ac_lo" != "x$ac_hi"; do
24496 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24497 cat >conftest.$ac_ext <<_ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h. */
24503 $ac_includes_default
24504 typedef int ac__type_sizeof_;
24508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_compile") 2>conftest.er1
24524 grep -v '^ *+' conftest.er1 >conftest.err
24526 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } && {
24529 test -z "$ac_c_werror_flag" ||
24530 test ! -s conftest.err
24531 } && test -s conftest.$ac_objext; then
24534 echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24537 ac_lo=`expr '(' $ac_mid ')' + 1`
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24543 ?*) ac_cv_sizeof_int=$ac_lo;;
24544 '') if test "$ac_cv_type_int" = yes; then
24545 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24546 See \`config.log' for more details." >&5
24547 echo "$as_me: error: cannot compute sizeof (int)
24548 See \`config.log' for more details." >&2;}
24549 { (exit 77); exit 77; }; }
24555 cat >conftest.$ac_ext <<_ACEOF
24558 cat confdefs.h >>conftest.$ac_ext
24559 cat >>conftest.$ac_ext <<_ACEOF
24560 /* end confdefs.h. */
24561 $ac_includes_default
24562 typedef int ac__type_sizeof_;
24563 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24564 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24566 #include <stdlib.h>
24571 FILE *f = fopen ("conftest.val", "w");
24574 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24576 long int i = longval ();
24577 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24579 fprintf (f, "%ld\n", i);
24583 unsigned long int i = ulongval ();
24584 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24586 fprintf (f, "%lu\n", i);
24588 return ferror (f) || fclose (f) != 0;
24594 rm -f conftest$ac_exeext
24595 if { (ac_try="$ac_link"
24596 case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601 (eval "$ac_link") 2>&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24605 { (case "(($ac_try" in
24606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607 *) ac_try_echo=$ac_try;;
24609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24610 (eval "$ac_try") 2>&5
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; }; then
24614 ac_cv_sizeof_int=`cat conftest.val`
24616 echo "$as_me: program exited with status $ac_status" >&5
24617 echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24620 ( exit $ac_status )
24621 if test "$ac_cv_type_int" = yes; then
24622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24623 See \`config.log' for more details." >&5
24624 echo "$as_me: error: cannot compute sizeof (int)
24625 See \`config.log' for more details." >&2;}
24626 { (exit 77); exit 77; }; }
24631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24635 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24636 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24640 cat >>confdefs.h <<_ACEOF
24641 #define SIZEOF_INT $ac_cv_sizeof_int
24645 { echo "$as_me:$LINENO: checking for long int" >&5
24646 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24647 if test "${ac_cv_type_long_int+set}" = set; then
24648 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 cat >conftest.$ac_ext <<_ACEOF
24653 cat confdefs.h >>conftest.$ac_ext
24654 cat >>conftest.$ac_ext <<_ACEOF
24655 /* end confdefs.h. */
24656 $ac_includes_default
24657 typedef long int ac__type_new_;
24661 if ((ac__type_new_ *) 0)
24663 if (sizeof (ac__type_new_))
24669 rm -f conftest.$ac_objext
24670 if { (ac_try="$ac_compile"
24671 case "(($ac_try" in
24672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673 *) ac_try_echo=$ac_try;;
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_compile") 2>conftest.er1
24678 grep -v '^ *+' conftest.er1 >conftest.err
24680 cat conftest.err >&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } && {
24683 test -z "$ac_c_werror_flag" ||
24684 test ! -s conftest.err
24685 } && test -s conftest.$ac_objext; then
24686 ac_cv_type_long_int=yes
24688 echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24691 ac_cv_type_long_int=no
24694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24696 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24697 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24699 # The cast to long int works around a bug in the HP C Compiler
24700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24702 # This bug is HP SR number 8606223364.
24703 { echo "$as_me:$LINENO: checking size of long int" >&5
24704 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24705 if test "${ac_cv_sizeof_long_int+set}" = set; then
24706 echo $ECHO_N "(cached) $ECHO_C" >&6
24708 if test "$cross_compiling" = yes; then
24709 # Depending upon the size, compute the lo and hi bounds.
24710 cat >conftest.$ac_ext <<_ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24716 $ac_includes_default
24717 typedef long int ac__type_sizeof_;
24721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24728 rm -f conftest.$ac_objext
24729 if { (ac_try="$ac_compile"
24730 case "(($ac_try" in
24731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732 *) ac_try_echo=$ac_try;;
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735 (eval "$ac_compile") 2>conftest.er1
24737 grep -v '^ *+' conftest.er1 >conftest.err
24739 cat conftest.err >&5
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); } && {
24742 test -z "$ac_c_werror_flag" ||
24743 test ! -s conftest.err
24744 } && test -s conftest.$ac_objext; then
24747 cat >conftest.$ac_ext <<_ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h. */
24753 $ac_includes_default
24754 typedef long int ac__type_sizeof_;
24758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24765 rm -f conftest.$ac_objext
24766 if { (ac_try="$ac_compile"
24767 case "(($ac_try" in
24768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769 *) ac_try_echo=$ac_try;;
24771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772 (eval "$ac_compile") 2>conftest.er1
24774 grep -v '^ *+' conftest.er1 >conftest.err
24776 cat conftest.err >&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } && {
24779 test -z "$ac_c_werror_flag" ||
24780 test ! -s conftest.err
24781 } && test -s conftest.$ac_objext; then
24782 ac_hi=$ac_mid; break
24784 echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24787 ac_lo=`expr $ac_mid + 1`
24788 if test $ac_lo -le $ac_mid; then
24792 ac_mid=`expr 2 '*' $ac_mid + 1`
24795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24798 echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24801 cat >conftest.$ac_ext <<_ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h. */
24807 $ac_includes_default
24808 typedef long int ac__type_sizeof_;
24812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24819 rm -f conftest.$ac_objext
24820 if { (ac_try="$ac_compile"
24821 case "(($ac_try" in
24822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24823 *) ac_try_echo=$ac_try;;
24825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24826 (eval "$ac_compile") 2>conftest.er1
24828 grep -v '^ *+' conftest.er1 >conftest.err
24830 cat conftest.err >&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } && {
24833 test -z "$ac_c_werror_flag" ||
24834 test ! -s conftest.err
24835 } && test -s conftest.$ac_objext; then
24838 cat >conftest.$ac_ext <<_ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24844 $ac_includes_default
24845 typedef long int ac__type_sizeof_;
24849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24856 rm -f conftest.$ac_objext
24857 if { (ac_try="$ac_compile"
24858 case "(($ac_try" in
24859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860 *) ac_try_echo=$ac_try;;
24862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863 (eval "$ac_compile") 2>conftest.er1
24865 grep -v '^ *+' conftest.er1 >conftest.err
24867 cat conftest.err >&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } && {
24870 test -z "$ac_c_werror_flag" ||
24871 test ! -s conftest.err
24872 } && test -s conftest.$ac_objext; then
24873 ac_lo=$ac_mid; break
24875 echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24878 ac_hi=`expr '(' $ac_mid ')' - 1`
24879 if test $ac_mid -le $ac_hi; then
24883 ac_mid=`expr 2 '*' $ac_mid`
24886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889 echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899 # Binary search between lo and hi bounds.
24900 while test "x$ac_lo" != "x$ac_hi"; do
24901 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24902 cat >conftest.$ac_ext <<_ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 $ac_includes_default
24909 typedef long int ac__type_sizeof_;
24913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24920 rm -f conftest.$ac_objext
24921 if { (ac_try="$ac_compile"
24922 case "(($ac_try" in
24923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924 *) ac_try_echo=$ac_try;;
24926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927 (eval "$ac_compile") 2>conftest.er1
24929 grep -v '^ *+' conftest.er1 >conftest.err
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } && {
24934 test -z "$ac_c_werror_flag" ||
24935 test ! -s conftest.err
24936 } && test -s conftest.$ac_objext; then
24939 echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24942 ac_lo=`expr '(' $ac_mid ')' + 1`
24945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24949 '') if test "$ac_cv_type_long_int" = yes; then
24950 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24951 See \`config.log' for more details." >&5
24952 echo "$as_me: error: cannot compute sizeof (long int)
24953 See \`config.log' for more details." >&2;}
24954 { (exit 77); exit 77; }; }
24956 ac_cv_sizeof_long_int=0
24960 cat >conftest.$ac_ext <<_ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h. */
24966 $ac_includes_default
24967 typedef long int ac__type_sizeof_;
24968 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24969 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24971 #include <stdlib.h>
24976 FILE *f = fopen ("conftest.val", "w");
24979 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24981 long int i = longval ();
24982 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24984 fprintf (f, "%ld\n", i);
24988 unsigned long int i = ulongval ();
24989 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24991 fprintf (f, "%lu\n", i);
24993 return ferror (f) || fclose (f) != 0;
24999 rm -f conftest$ac_exeext
25000 if { (ac_try="$ac_link"
25001 case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_link") 2>&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25010 { (case "(($ac_try" in
25011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012 *) ac_try_echo=$ac_try;;
25014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015 (eval "$ac_try") 2>&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); }; }; then
25019 ac_cv_sizeof_long_int=`cat conftest.val`
25021 echo "$as_me: program exited with status $ac_status" >&5
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25025 ( exit $ac_status )
25026 if test "$ac_cv_type_long_int" = yes; then
25027 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25028 See \`config.log' for more details." >&5
25029 echo "$as_me: error: cannot compute sizeof (long int)
25030 See \`config.log' for more details." >&2;}
25031 { (exit 77); exit 77; }; }
25033 ac_cv_sizeof_long_int=0
25036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25040 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25041 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25045 cat >>confdefs.h <<_ACEOF
25046 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25050 { echo "$as_me:$LINENO: checking for long long int" >&5
25051 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25052 if test "${ac_cv_type_long_long_int+set}" = set; then
25053 echo $ECHO_N "(cached) $ECHO_C" >&6
25055 cat >conftest.$ac_ext <<_ACEOF
25058 cat confdefs.h >>conftest.$ac_ext
25059 cat >>conftest.$ac_ext <<_ACEOF
25060 /* end confdefs.h. */
25061 $ac_includes_default
25062 typedef long long int ac__type_new_;
25066 if ((ac__type_new_ *) 0)
25068 if (sizeof (ac__type_new_))
25074 rm -f conftest.$ac_objext
25075 if { (ac_try="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081 (eval "$ac_compile") 2>conftest.er1
25083 grep -v '^ *+' conftest.er1 >conftest.err
25085 cat conftest.err >&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && {
25088 test -z "$ac_c_werror_flag" ||
25089 test ! -s conftest.err
25090 } && test -s conftest.$ac_objext; then
25091 ac_cv_type_long_long_int=yes
25093 echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25096 ac_cv_type_long_long_int=no
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25102 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25104 # The cast to long int works around a bug in the HP C Compiler
25105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25107 # This bug is HP SR number 8606223364.
25108 { echo "$as_me:$LINENO: checking size of long long int" >&5
25109 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25110 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25111 echo $ECHO_N "(cached) $ECHO_C" >&6
25113 if test "$cross_compiling" = yes; then
25114 # Depending upon the size, compute the lo and hi bounds.
25115 cat >conftest.$ac_ext <<_ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h. */
25121 $ac_includes_default
25122 typedef long long int ac__type_sizeof_;
25126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25133 rm -f conftest.$ac_objext
25134 if { (ac_try="$ac_compile"
25135 case "(($ac_try" in
25136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137 *) ac_try_echo=$ac_try;;
25139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140 (eval "$ac_compile") 2>conftest.er1
25142 grep -v '^ *+' conftest.er1 >conftest.err
25144 cat conftest.err >&5
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); } && {
25147 test -z "$ac_c_werror_flag" ||
25148 test ! -s conftest.err
25149 } && test -s conftest.$ac_objext; then
25152 cat >conftest.$ac_ext <<_ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h. */
25158 $ac_includes_default
25159 typedef long long int ac__type_sizeof_;
25163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25170 rm -f conftest.$ac_objext
25171 if { (ac_try="$ac_compile"
25172 case "(($ac_try" in
25173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25174 *) ac_try_echo=$ac_try;;
25176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25177 (eval "$ac_compile") 2>conftest.er1
25179 grep -v '^ *+' conftest.er1 >conftest.err
25181 cat conftest.err >&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } && {
25184 test -z "$ac_c_werror_flag" ||
25185 test ! -s conftest.err
25186 } && test -s conftest.$ac_objext; then
25187 ac_hi=$ac_mid; break
25189 echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25192 ac_lo=`expr $ac_mid + 1`
25193 if test $ac_lo -le $ac_mid; then
25197 ac_mid=`expr 2 '*' $ac_mid + 1`
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25203 echo "$as_me: failed program was:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25206 cat >conftest.$ac_ext <<_ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25212 $ac_includes_default
25213 typedef long long int ac__type_sizeof_;
25217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25224 rm -f conftest.$ac_objext
25225 if { (ac_try="$ac_compile"
25226 case "(($ac_try" in
25227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25228 *) ac_try_echo=$ac_try;;
25230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25231 (eval "$ac_compile") 2>conftest.er1
25233 grep -v '^ *+' conftest.er1 >conftest.err
25235 cat conftest.err >&5
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); } && {
25238 test -z "$ac_c_werror_flag" ||
25239 test ! -s conftest.err
25240 } && test -s conftest.$ac_objext; then
25243 cat >conftest.$ac_ext <<_ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25249 $ac_includes_default
25250 typedef long long int ac__type_sizeof_;
25254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25261 rm -f conftest.$ac_objext
25262 if { (ac_try="$ac_compile"
25263 case "(($ac_try" in
25264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265 *) ac_try_echo=$ac_try;;
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268 (eval "$ac_compile") 2>conftest.er1
25270 grep -v '^ *+' conftest.er1 >conftest.err
25272 cat conftest.err >&5
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); } && {
25275 test -z "$ac_c_werror_flag" ||
25276 test ! -s conftest.err
25277 } && test -s conftest.$ac_objext; then
25278 ac_lo=$ac_mid; break
25280 echo "$as_me: failed program was:" >&5
25281 sed 's/^/| /' conftest.$ac_ext >&5
25283 ac_hi=`expr '(' $ac_mid ')' - 1`
25284 if test $ac_mid -le $ac_hi; then
25288 ac_mid=`expr 2 '*' $ac_mid`
25291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25294 echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25304 # Binary search between lo and hi bounds.
25305 while test "x$ac_lo" != "x$ac_hi"; do
25306 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25307 cat >conftest.$ac_ext <<_ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25313 $ac_includes_default
25314 typedef long long int ac__type_sizeof_;
25318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25325 rm -f conftest.$ac_objext
25326 if { (ac_try="$ac_compile"
25327 case "(($ac_try" in
25328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329 *) ac_try_echo=$ac_try;;
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332 (eval "$ac_compile") 2>conftest.er1
25334 grep -v '^ *+' conftest.er1 >conftest.err
25336 cat conftest.err >&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } && {
25339 test -z "$ac_c_werror_flag" ||
25340 test ! -s conftest.err
25341 } && test -s conftest.$ac_objext; then
25344 echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25347 ac_lo=`expr '(' $ac_mid ')' + 1`
25350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25353 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25354 '') if test "$ac_cv_type_long_long_int" = yes; then
25355 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25356 See \`config.log' for more details." >&5
25357 echo "$as_me: error: cannot compute sizeof (long long int)
25358 See \`config.log' for more details." >&2;}
25359 { (exit 77); exit 77; }; }
25361 ac_cv_sizeof_long_long_int=0
25365 cat >conftest.$ac_ext <<_ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h. */
25371 $ac_includes_default
25372 typedef long long int ac__type_sizeof_;
25373 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25374 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25376 #include <stdlib.h>
25381 FILE *f = fopen ("conftest.val", "w");
25384 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25386 long int i = longval ();
25387 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25389 fprintf (f, "%ld\n", i);
25393 unsigned long int i = ulongval ();
25394 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25396 fprintf (f, "%lu\n", i);
25398 return ferror (f) || fclose (f) != 0;
25404 rm -f conftest$ac_exeext
25405 if { (ac_try="$ac_link"
25406 case "(($ac_try" in
25407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25408 *) ac_try_echo=$ac_try;;
25410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25411 (eval "$ac_link") 2>&5
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25415 { (case "(($ac_try" in
25416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417 *) ac_try_echo=$ac_try;;
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420 (eval "$ac_try") 2>&5
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; }; then
25424 ac_cv_sizeof_long_long_int=`cat conftest.val`
25426 echo "$as_me: program exited with status $ac_status" >&5
25427 echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25430 ( exit $ac_status )
25431 if test "$ac_cv_type_long_long_int" = yes; then
25432 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25433 See \`config.log' for more details." >&5
25434 echo "$as_me: error: cannot compute sizeof (long long int)
25435 See \`config.log' for more details." >&2;}
25436 { (exit 77); exit 77; }; }
25438 ac_cv_sizeof_long_long_int=0
25441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25445 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25446 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25450 cat >>confdefs.h <<_ACEOF
25451 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25455 { echo "$as_me:$LINENO: checking for int *" >&5
25456 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25457 if test "${ac_cv_type_int_p+set}" = set; then
25458 echo $ECHO_N "(cached) $ECHO_C" >&6
25460 cat >conftest.$ac_ext <<_ACEOF
25463 cat confdefs.h >>conftest.$ac_ext
25464 cat >>conftest.$ac_ext <<_ACEOF
25465 /* end confdefs.h. */
25466 $ac_includes_default
25467 typedef int * ac__type_new_;
25471 if ((ac__type_new_ *) 0)
25473 if (sizeof (ac__type_new_))
25479 rm -f conftest.$ac_objext
25480 if { (ac_try="$ac_compile"
25481 case "(($ac_try" in
25482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483 *) ac_try_echo=$ac_try;;
25485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25486 (eval "$ac_compile") 2>conftest.er1
25488 grep -v '^ *+' conftest.er1 >conftest.err
25490 cat conftest.err >&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && {
25493 test -z "$ac_c_werror_flag" ||
25494 test ! -s conftest.err
25495 } && test -s conftest.$ac_objext; then
25496 ac_cv_type_int_p=yes
25498 echo "$as_me: failed program was:" >&5
25499 sed 's/^/| /' conftest.$ac_ext >&5
25501 ac_cv_type_int_p=no
25504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25506 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25507 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25509 # The cast to long int works around a bug in the HP C Compiler
25510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25512 # This bug is HP SR number 8606223364.
25513 { echo "$as_me:$LINENO: checking size of int *" >&5
25514 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25515 if test "${ac_cv_sizeof_int_p+set}" = set; then
25516 echo $ECHO_N "(cached) $ECHO_C" >&6
25518 if test "$cross_compiling" = yes; then
25519 # Depending upon the size, compute the lo and hi bounds.
25520 cat >conftest.$ac_ext <<_ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h. */
25526 $ac_includes_default
25527 typedef int * ac__type_sizeof_;
25531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25538 rm -f conftest.$ac_objext
25539 if { (ac_try="$ac_compile"
25540 case "(($ac_try" in
25541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25542 *) ac_try_echo=$ac_try;;
25544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25545 (eval "$ac_compile") 2>conftest.er1
25547 grep -v '^ *+' conftest.er1 >conftest.err
25549 cat conftest.err >&5
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); } && {
25552 test -z "$ac_c_werror_flag" ||
25553 test ! -s conftest.err
25554 } && test -s conftest.$ac_objext; then
25557 cat >conftest.$ac_ext <<_ACEOF
25560 cat confdefs.h >>conftest.$ac_ext
25561 cat >>conftest.$ac_ext <<_ACEOF
25562 /* end confdefs.h. */
25563 $ac_includes_default
25564 typedef int * ac__type_sizeof_;
25568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25575 rm -f conftest.$ac_objext
25576 if { (ac_try="$ac_compile"
25577 case "(($ac_try" in
25578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25579 *) ac_try_echo=$ac_try;;
25581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25582 (eval "$ac_compile") 2>conftest.er1
25584 grep -v '^ *+' conftest.er1 >conftest.err
25586 cat conftest.err >&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); } && {
25589 test -z "$ac_c_werror_flag" ||
25590 test ! -s conftest.err
25591 } && test -s conftest.$ac_objext; then
25592 ac_hi=$ac_mid; break
25594 echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25597 ac_lo=`expr $ac_mid + 1`
25598 if test $ac_lo -le $ac_mid; then
25602 ac_mid=`expr 2 '*' $ac_mid + 1`
25605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25608 echo "$as_me: failed program was:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25611 cat >conftest.$ac_ext <<_ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h. */
25617 $ac_includes_default
25618 typedef int * ac__type_sizeof_;
25622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25629 rm -f conftest.$ac_objext
25630 if { (ac_try="$ac_compile"
25631 case "(($ac_try" in
25632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633 *) ac_try_echo=$ac_try;;
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636 (eval "$ac_compile") 2>conftest.er1
25638 grep -v '^ *+' conftest.er1 >conftest.err
25640 cat conftest.err >&5
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } && {
25643 test -z "$ac_c_werror_flag" ||
25644 test ! -s conftest.err
25645 } && test -s conftest.$ac_objext; then
25648 cat >conftest.$ac_ext <<_ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h. */
25654 $ac_includes_default
25655 typedef int * ac__type_sizeof_;
25659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25666 rm -f conftest.$ac_objext
25667 if { (ac_try="$ac_compile"
25668 case "(($ac_try" in
25669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670 *) ac_try_echo=$ac_try;;
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673 (eval "$ac_compile") 2>conftest.er1
25675 grep -v '^ *+' conftest.er1 >conftest.err
25677 cat conftest.err >&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } && {
25680 test -z "$ac_c_werror_flag" ||
25681 test ! -s conftest.err
25682 } && test -s conftest.$ac_objext; then
25683 ac_lo=$ac_mid; break
25685 echo "$as_me: failed program was:" >&5
25686 sed 's/^/| /' conftest.$ac_ext >&5
25688 ac_hi=`expr '(' $ac_mid ')' - 1`
25689 if test $ac_mid -le $ac_hi; then
25693 ac_mid=`expr 2 '*' $ac_mid`
25696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25699 echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709 # Binary search between lo and hi bounds.
25710 while test "x$ac_lo" != "x$ac_hi"; do
25711 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25712 cat >conftest.$ac_ext <<_ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 $ac_includes_default
25719 typedef int * ac__type_sizeof_;
25723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25730 rm -f conftest.$ac_objext
25731 if { (ac_try="$ac_compile"
25732 case "(($ac_try" in
25733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734 *) ac_try_echo=$ac_try;;
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737 (eval "$ac_compile") 2>conftest.er1
25739 grep -v '^ *+' conftest.er1 >conftest.err
25741 cat conftest.err >&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } && {
25744 test -z "$ac_c_werror_flag" ||
25745 test ! -s conftest.err
25746 } && test -s conftest.$ac_objext; then
25749 echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25752 ac_lo=`expr '(' $ac_mid ')' + 1`
25755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25758 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25759 '') if test "$ac_cv_type_int_p" = yes; then
25760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25761 See \`config.log' for more details." >&5
25762 echo "$as_me: error: cannot compute sizeof (int *)
25763 See \`config.log' for more details." >&2;}
25764 { (exit 77); exit 77; }; }
25766 ac_cv_sizeof_int_p=0
25770 cat >conftest.$ac_ext <<_ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 $ac_includes_default
25777 typedef int * ac__type_sizeof_;
25778 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25779 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25781 #include <stdlib.h>
25786 FILE *f = fopen ("conftest.val", "w");
25789 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25791 long int i = longval ();
25792 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25794 fprintf (f, "%ld\n", i);
25798 unsigned long int i = ulongval ();
25799 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25801 fprintf (f, "%lu\n", i);
25803 return ferror (f) || fclose (f) != 0;
25809 rm -f conftest$ac_exeext
25810 if { (ac_try="$ac_link"
25811 case "(($ac_try" in
25812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813 *) ac_try_echo=$ac_try;;
25815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816 (eval "$ac_link") 2>&5
25818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25820 { (case "(($ac_try" in
25821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25822 *) ac_try_echo=$ac_try;;
25824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25825 (eval "$ac_try") 2>&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); }; }; then
25829 ac_cv_sizeof_int_p=`cat conftest.val`
25831 echo "$as_me: program exited with status $ac_status" >&5
25832 echo "$as_me: failed program was:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25835 ( exit $ac_status )
25836 if test "$ac_cv_type_int_p" = yes; then
25837 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25838 See \`config.log' for more details." >&5
25839 echo "$as_me: error: cannot compute sizeof (int *)
25840 See \`config.log' for more details." >&2;}
25841 { (exit 77); exit 77; }; }
25843 ac_cv_sizeof_int_p=0
25846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25850 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25851 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25855 cat >>confdefs.h <<_ACEOF
25856 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25861 # Check for sys/types.h types
25862 { echo "$as_me:$LINENO: checking for u_int type" >&5
25863 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25864 if test "${ac_cv_have_u_int+set}" = set; then
25865 echo $ECHO_N "(cached) $ECHO_C" >&6
25868 cat >conftest.$ac_ext <<_ACEOF
25871 cat confdefs.h >>conftest.$ac_ext
25872 cat >>conftest.$ac_ext <<_ACEOF
25873 /* end confdefs.h. */
25874 #include <sys/types.h>
25883 rm -f conftest.$ac_objext
25884 if { (ac_try="$ac_compile"
25885 case "(($ac_try" in
25886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887 *) ac_try_echo=$ac_try;;
25889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890 (eval "$ac_compile") 2>conftest.er1
25892 grep -v '^ *+' conftest.er1 >conftest.err
25894 cat conftest.err >&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } && {
25897 test -z "$ac_c_werror_flag" ||
25898 test ! -s conftest.err
25899 } && test -s conftest.$ac_objext; then
25900 ac_cv_have_u_int="yes"
25902 echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25905 ac_cv_have_u_int="no"
25909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25912 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25913 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25914 if test "x$ac_cv_have_u_int" = "xyes" ; then
25915 cat >>confdefs.h <<\_ACEOF
25916 #define HAVE_U_INT 1
25922 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25923 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25924 if test "${ac_cv_have_intmax_t+set}" = set; then
25925 echo $ECHO_N "(cached) $ECHO_C" >&6
25928 cat >conftest.$ac_ext <<_ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h. */
25934 #include <sys/types.h>
25943 rm -f conftest.$ac_objext
25944 if { (ac_try="$ac_compile"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950 (eval "$ac_compile") 2>conftest.er1
25952 grep -v '^ *+' conftest.er1 >conftest.err
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } && {
25957 test -z "$ac_c_werror_flag" ||
25958 test ! -s conftest.err
25959 } && test -s conftest.$ac_objext; then
25960 ac_cv_have_intmax_t="yes"
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25966 cat >conftest.$ac_ext <<_ACEOF
25969 cat confdefs.h >>conftest.$ac_ext
25970 cat >>conftest.$ac_ext <<_ACEOF
25971 /* end confdefs.h. */
25972 #include <stdint.h>
25981 rm -f conftest.$ac_objext
25982 if { (ac_try="$ac_compile"
25983 case "(($ac_try" in
25984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25985 *) ac_try_echo=$ac_try;;
25987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25988 (eval "$ac_compile") 2>conftest.er1
25990 grep -v '^ *+' conftest.er1 >conftest.err
25992 cat conftest.err >&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } && {
25995 test -z "$ac_c_werror_flag" ||
25996 test ! -s conftest.err
25997 } && test -s conftest.$ac_objext; then
25998 ac_cv_have_intmax_t="yes"
26000 echo "$as_me: failed program was:" >&5
26001 sed 's/^/| /' conftest.$ac_ext >&5
26003 ac_cv_have_intmax_t="no"
26007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26016 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26017 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26018 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26019 cat >>confdefs.h <<\_ACEOF
26020 #define HAVE_INTMAX_T 1
26027 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26028 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26029 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26033 cat >conftest.$ac_ext <<_ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26039 #include <sys/types.h>
26043 u_intmax_t a; a = 1;
26048 rm -f conftest.$ac_objext
26049 if { (ac_try="$ac_compile"
26050 case "(($ac_try" in
26051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26052 *) ac_try_echo=$ac_try;;
26054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26055 (eval "$ac_compile") 2>conftest.er1
26057 grep -v '^ *+' conftest.er1 >conftest.err
26059 cat conftest.err >&5
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); } && {
26062 test -z "$ac_c_werror_flag" ||
26063 test ! -s conftest.err
26064 } && test -s conftest.$ac_objext; then
26065 ac_cv_have_u_intmax_t="yes"
26067 echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26071 cat >conftest.$ac_ext <<_ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h. */
26077 #include <stdint.h>
26081 u_intmax_t a; a = 1;
26086 rm -f conftest.$ac_objext
26087 if { (ac_try="$ac_compile"
26088 case "(($ac_try" in
26089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26090 *) ac_try_echo=$ac_try;;
26092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26093 (eval "$ac_compile") 2>conftest.er1
26095 grep -v '^ *+' conftest.er1 >conftest.err
26097 cat conftest.err >&5
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } && {
26100 test -z "$ac_c_werror_flag" ||
26101 test ! -s conftest.err
26102 } && test -s conftest.$ac_objext; then
26103 ac_cv_have_u_intmax_t="yes"
26105 echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26108 ac_cv_have_u_intmax_t="no"
26112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26120 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26121 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26122 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26123 cat >>confdefs.h <<\_ACEOF
26124 #define HAVE_U_INTMAX_T 1
26131 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26132 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26133 if test "${ac_cv_have_intxx_t+set}" = set; then
26134 echo $ECHO_N "(cached) $ECHO_C" >&6
26137 cat >conftest.$ac_ext <<_ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h. */
26143 #include <sys/types.h>
26147 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26152 rm -f conftest.$ac_objext
26153 if { (ac_try="$ac_compile"
26154 case "(($ac_try" in
26155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156 *) ac_try_echo=$ac_try;;
26158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26159 (eval "$ac_compile") 2>conftest.er1
26161 grep -v '^ *+' conftest.er1 >conftest.err
26163 cat conftest.err >&5
26164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); } && {
26166 test -z "$ac_c_werror_flag" ||
26167 test ! -s conftest.err
26168 } && test -s conftest.$ac_objext; then
26169 ac_cv_have_intxx_t="yes"
26171 echo "$as_me: failed program was:" >&5
26172 sed 's/^/| /' conftest.$ac_ext >&5
26174 ac_cv_have_intxx_t="no"
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26181 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26182 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26183 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26184 cat >>confdefs.h <<\_ACEOF
26185 #define HAVE_INTXX_T 1
26191 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26192 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26193 if test "${ac_cv_have_int64_t+set}" = set; then
26194 echo $ECHO_N "(cached) $ECHO_C" >&6
26197 cat >conftest.$ac_ext <<_ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h. */
26203 #include <sys/types.h>
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 test -z "$ac_c_werror_flag" ||
26227 test ! -s conftest.err
26228 } && test -s conftest.$ac_objext; then
26229 ac_cv_have_int64_t="yes"
26231 echo "$as_me: failed program was:" >&5
26232 sed 's/^/| /' conftest.$ac_ext >&5
26234 ac_cv_have_int64_t="no"
26238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26241 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26242 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26243 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26244 cat >>confdefs.h <<\_ACEOF
26245 #define HAVE_INT64_T 1
26251 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26252 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26253 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26254 echo $ECHO_N "(cached) $ECHO_C" >&6
26257 cat >conftest.$ac_ext <<_ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h. */
26263 #include <sys/types.h>
26267 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26272 rm -f conftest.$ac_objext
26273 if { (ac_try="$ac_compile"
26274 case "(($ac_try" in
26275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26276 *) ac_try_echo=$ac_try;;
26278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26279 (eval "$ac_compile") 2>conftest.er1
26281 grep -v '^ *+' conftest.er1 >conftest.err
26283 cat conftest.err >&5
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); } && {
26286 test -z "$ac_c_werror_flag" ||
26287 test ! -s conftest.err
26288 } && test -s conftest.$ac_objext; then
26289 ac_cv_have_u_intxx_t="yes"
26291 echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26294 ac_cv_have_u_intxx_t="no"
26298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26301 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26302 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26303 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26304 cat >>confdefs.h <<\_ACEOF
26305 #define HAVE_U_INTXX_T 1
26311 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26312 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26313 if test "${ac_cv_have_u_int64_t+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26317 cat >conftest.$ac_ext <<_ACEOF
26320 cat confdefs.h >>conftest.$ac_ext
26321 cat >>conftest.$ac_ext <<_ACEOF
26322 /* end confdefs.h. */
26323 #include <sys/types.h>
26327 u_int64_t a; a = 1;
26332 rm -f conftest.$ac_objext
26333 if { (ac_try="$ac_compile"
26334 case "(($ac_try" in
26335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336 *) ac_try_echo=$ac_try;;
26338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339 (eval "$ac_compile") 2>conftest.er1
26341 grep -v '^ *+' conftest.er1 >conftest.err
26343 cat conftest.err >&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } && {
26346 test -z "$ac_c_werror_flag" ||
26347 test ! -s conftest.err
26348 } && test -s conftest.$ac_objext; then
26349 ac_cv_have_u_int64_t="yes"
26351 echo "$as_me: failed program was:" >&5
26352 sed 's/^/| /' conftest.$ac_ext >&5
26354 ac_cv_have_u_int64_t="no"
26358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26361 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26362 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26363 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26364 cat >>confdefs.h <<\_ACEOF
26365 #define HAVE_U_INT64_T 1
26371 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26372 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26374 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26375 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26376 cat >conftest.$ac_ext <<_ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h. */
26382 #include <sys/bitypes.h>
26386 int8_t a; int16_t b; int32_t c;
26387 u_int8_t e; u_int16_t f; u_int32_t g;
26388 a = b = c = e = f = g = 1;
26393 rm -f conftest.$ac_objext
26394 if { (ac_try="$ac_compile"
26395 case "(($ac_try" in
26396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26397 *) ac_try_echo=$ac_try;;
26399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26400 (eval "$ac_compile") 2>conftest.er1
26402 grep -v '^ *+' conftest.er1 >conftest.err
26404 cat conftest.err >&5
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); } && {
26407 test -z "$ac_c_werror_flag" ||
26408 test ! -s conftest.err
26409 } && test -s conftest.$ac_objext; then
26410 cat >>confdefs.h <<\_ACEOF
26411 #define HAVE_U_INTXX_T 1
26414 cat >>confdefs.h <<\_ACEOF
26415 #define HAVE_INTXX_T 1
26418 cat >>confdefs.h <<\_ACEOF
26419 #define HAVE_SYS_BITYPES_H 1
26422 { echo "$as_me:$LINENO: result: yes" >&5
26423 echo "${ECHO_T}yes" >&6; }
26425 echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26428 { echo "$as_me:$LINENO: result: no" >&5
26429 echo "${ECHO_T}no" >&6; }
26433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436 if test -z "$have_u_intxx_t" ; then
26437 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26438 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26439 if test "${ac_cv_have_uintxx_t+set}" = set; then
26440 echo $ECHO_N "(cached) $ECHO_C" >&6
26443 cat >conftest.$ac_ext <<_ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h. */
26449 #include <sys/types.h>
26453 uint8_t a; uint16_t b;
26454 uint32_t c; a = b = c = 1;
26459 rm -f conftest.$ac_objext
26460 if { (ac_try="$ac_compile"
26461 case "(($ac_try" in
26462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463 *) ac_try_echo=$ac_try;;
26465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26466 (eval "$ac_compile") 2>conftest.er1
26468 grep -v '^ *+' conftest.er1 >conftest.err
26470 cat conftest.err >&5
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); } && {
26473 test -z "$ac_c_werror_flag" ||
26474 test ! -s conftest.err
26475 } && test -s conftest.$ac_objext; then
26476 ac_cv_have_uintxx_t="yes"
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26481 ac_cv_have_uintxx_t="no"
26485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26488 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26489 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26490 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26491 cat >>confdefs.h <<\_ACEOF
26492 #define HAVE_UINTXX_T 1
26498 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26499 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26501 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26502 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26503 cat >conftest.$ac_ext <<_ACEOF
26506 cat confdefs.h >>conftest.$ac_ext
26507 cat >>conftest.$ac_ext <<_ACEOF
26508 /* end confdefs.h. */
26509 #include <sys/bitypes.h>
26513 int64_t a; u_int64_t b;
26519 rm -f conftest.$ac_objext
26520 if { (ac_try="$ac_compile"
26521 case "(($ac_try" in
26522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26523 *) ac_try_echo=$ac_try;;
26525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26526 (eval "$ac_compile") 2>conftest.er1
26528 grep -v '^ *+' conftest.er1 >conftest.err
26530 cat conftest.err >&5
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); } && {
26533 test -z "$ac_c_werror_flag" ||
26534 test ! -s conftest.err
26535 } && test -s conftest.$ac_objext; then
26536 cat >>confdefs.h <<\_ACEOF
26537 #define HAVE_U_INT64_T 1
26540 cat >>confdefs.h <<\_ACEOF
26541 #define HAVE_INT64_T 1
26544 { echo "$as_me:$LINENO: result: yes" >&5
26545 echo "${ECHO_T}yes" >&6; }
26547 echo "$as_me: failed program was:" >&5
26548 sed 's/^/| /' conftest.$ac_ext >&5
26550 { echo "$as_me:$LINENO: result: no" >&5
26551 echo "${ECHO_T}no" >&6; }
26555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26558 if (test -z "$have_uintxx_t" && \
26559 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26561 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26562 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26563 cat >conftest.$ac_ext <<_ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h. */
26569 #include <sys/bitypes.h>
26573 uint8_t a; uint16_t b;
26574 uint32_t c; a = b = c = 1;
26579 rm -f conftest.$ac_objext
26580 if { (ac_try="$ac_compile"
26581 case "(($ac_try" in
26582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583 *) ac_try_echo=$ac_try;;
26585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26586 (eval "$ac_compile") 2>conftest.er1
26588 grep -v '^ *+' conftest.er1 >conftest.err
26590 cat conftest.err >&5
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } && {
26593 test -z "$ac_c_werror_flag" ||
26594 test ! -s conftest.err
26595 } && test -s conftest.$ac_objext; then
26596 cat >>confdefs.h <<\_ACEOF
26597 #define HAVE_UINTXX_T 1
26600 { echo "$as_me:$LINENO: result: yes" >&5
26601 echo "${ECHO_T}yes" >&6; }
26603 echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26606 { echo "$as_me:$LINENO: result: no" >&5
26607 echo "${ECHO_T}no" >&6; }
26611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26651 echo $ECHO_N "(cached) $ECHO_C" >&6
26653 cat >conftest.$ac_ext <<_ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h. */
26659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26661 #define $ac_func innocuous_$ac_func
26663 /* System header to define __stub macros and hopefully few prototypes,
26664 which can conflict with char $ac_func (); below.
26665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26666 <limits.h> exists even on freestanding compilers. */
26669 # include <limits.h>
26671 # include <assert.h>
26676 /* Override any GCC internal prototype to avoid an error.
26677 Use char because int might match the return type of a GCC
26678 builtin and then its argument prototype would still apply. */
26683 /* The GNU C library defines this for functions which it implements
26684 to always fail with ENOSYS. Some functions are actually named
26685 something starting with __ and the normal name is an alias. */
26686 #if defined __stub_$ac_func || defined __stub___$ac_func
26693 return $ac_func ();
26698 rm -f conftest.$ac_objext conftest$ac_exeext
26699 if { (ac_try="$ac_link"
26700 case "(($ac_try" in
26701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26702 *) ac_try_echo=$ac_try;;
26704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26705 (eval "$ac_link") 2>conftest.er1
26707 grep -v '^ *+' conftest.er1 >conftest.err
26709 cat conftest.err >&5
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); } && {
26712 test -z "$ac_c_werror_flag" ||
26713 test ! -s conftest.err
26714 } && test -s conftest$ac_exeext &&
26715 $as_test_x conftest$ac_exeext; then
26716 eval "$as_ac_var=yes"
26718 echo "$as_me: failed program was:" >&5
26719 sed 's/^/| /' conftest.$ac_ext >&5
26721 eval "$as_ac_var=no"
26724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26725 conftest$ac_exeext conftest.$ac_ext
26727 ac_res=`eval echo '${'$as_ac_var'}'`
26728 { echo "$as_me:$LINENO: result: $ac_res" >&5
26729 echo "${ECHO_T}$ac_res" >&6; }
26730 if test `eval echo '${'$as_ac_var'}'` = yes; then
26731 cat >>confdefs.h <<_ACEOF
26732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26736 echo 'configure: cannot find needed function.'; exit 1
26743 for ac_func in fchdir
26745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26749 echo $ECHO_N "(cached) $ECHO_C" >&6
26751 cat >conftest.$ac_ext <<_ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26759 #define $ac_func innocuous_$ac_func
26761 /* System header to define __stub macros and hopefully few prototypes,
26762 which can conflict with char $ac_func (); below.
26763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26764 <limits.h> exists even on freestanding compilers. */
26767 # include <limits.h>
26769 # include <assert.h>
26774 /* Override any GCC internal prototype to avoid an error.
26775 Use char because int might match the return type of a GCC
26776 builtin and then its argument prototype would still apply. */
26781 /* The GNU C library defines this for functions which it implements
26782 to always fail with ENOSYS. Some functions are actually named
26783 something starting with __ and the normal name is an alias. */
26784 #if defined __stub_$ac_func || defined __stub___$ac_func
26791 return $ac_func ();
26796 rm -f conftest.$ac_objext conftest$ac_exeext
26797 if { (ac_try="$ac_link"
26798 case "(($ac_try" in
26799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26800 *) ac_try_echo=$ac_try;;
26802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26803 (eval "$ac_link") 2>conftest.er1
26805 grep -v '^ *+' conftest.er1 >conftest.err
26807 cat conftest.err >&5
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); } && {
26810 test -z "$ac_c_werror_flag" ||
26811 test ! -s conftest.err
26812 } && test -s conftest$ac_exeext &&
26813 $as_test_x conftest$ac_exeext; then
26814 eval "$as_ac_var=yes"
26816 echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26819 eval "$as_ac_var=no"
26822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26823 conftest$ac_exeext conftest.$ac_ext
26825 ac_res=`eval echo '${'$as_ac_var'}'`
26826 { echo "$as_me:$LINENO: result: $ac_res" >&5
26827 echo "${ECHO_T}$ac_res" >&6; }
26828 if test `eval echo '${'$as_ac_var'}'` = yes; then
26829 cat >>confdefs.h <<_ACEOF
26830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26832 cat >>confdefs.h <<\_ACEOF
26833 #define HAVE_FCHDIR 1
26840 for ac_func in strtoll
26842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
26848 cat >conftest.$ac_ext <<_ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h. */
26854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26856 #define $ac_func innocuous_$ac_func
26858 /* System header to define __stub macros and hopefully few prototypes,
26859 which can conflict with char $ac_func (); below.
26860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26861 <limits.h> exists even on freestanding compilers. */
26864 # include <limits.h>
26866 # include <assert.h>
26871 /* Override any GCC internal prototype to avoid an error.
26872 Use char because int might match the return type of a GCC
26873 builtin and then its argument prototype would still apply. */
26878 /* The GNU C library defines this for functions which it implements
26879 to always fail with ENOSYS. Some functions are actually named
26880 something starting with __ and the normal name is an alias. */
26881 #if defined __stub_$ac_func || defined __stub___$ac_func
26888 return $ac_func ();
26893 rm -f conftest.$ac_objext conftest$ac_exeext
26894 if { (ac_try="$ac_link"
26895 case "(($ac_try" in
26896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26897 *) ac_try_echo=$ac_try;;
26899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26900 (eval "$ac_link") 2>conftest.er1
26902 grep -v '^ *+' conftest.er1 >conftest.err
26904 cat conftest.err >&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } && {
26907 test -z "$ac_c_werror_flag" ||
26908 test ! -s conftest.err
26909 } && test -s conftest$ac_exeext &&
26910 $as_test_x conftest$ac_exeext; then
26911 eval "$as_ac_var=yes"
26913 echo "$as_me: failed program was:" >&5
26914 sed 's/^/| /' conftest.$ac_ext >&5
26916 eval "$as_ac_var=no"
26919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26920 conftest$ac_exeext conftest.$ac_ext
26922 ac_res=`eval echo '${'$as_ac_var'}'`
26923 { echo "$as_me:$LINENO: result: $ac_res" >&5
26924 echo "${ECHO_T}$ac_res" >&6; }
26925 if test `eval echo '${'$as_ac_var'}'` = yes; then
26926 cat >>confdefs.h <<_ACEOF
26927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26929 cat >>confdefs.h <<\_ACEOF
26930 #define HAVE_STRTOLL 1
26937 for ac_func in posix_fadvise
26939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26943 echo $ECHO_N "(cached) $ECHO_C" >&6
26945 cat >conftest.$ac_ext <<_ACEOF
26948 cat confdefs.h >>conftest.$ac_ext
26949 cat >>conftest.$ac_ext <<_ACEOF
26950 /* end confdefs.h. */
26951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26953 #define $ac_func innocuous_$ac_func
26955 /* System header to define __stub macros and hopefully few prototypes,
26956 which can conflict with char $ac_func (); below.
26957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26958 <limits.h> exists even on freestanding compilers. */
26961 # include <limits.h>
26963 # include <assert.h>
26968 /* Override any GCC internal prototype to avoid an error.
26969 Use char because int might match the return type of a GCC
26970 builtin and then its argument prototype would still apply. */
26975 /* The GNU C library defines this for functions which it implements
26976 to always fail with ENOSYS. Some functions are actually named
26977 something starting with __ and the normal name is an alias. */
26978 #if defined __stub_$ac_func || defined __stub___$ac_func
26985 return $ac_func ();
26990 rm -f conftest.$ac_objext conftest$ac_exeext
26991 if { (ac_try="$ac_link"
26992 case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997 (eval "$ac_link") 2>conftest.er1
26999 grep -v '^ *+' conftest.er1 >conftest.err
27001 cat conftest.err >&5
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); } && {
27004 test -z "$ac_c_werror_flag" ||
27005 test ! -s conftest.err
27006 } && test -s conftest$ac_exeext &&
27007 $as_test_x conftest$ac_exeext; then
27008 eval "$as_ac_var=yes"
27010 echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27013 eval "$as_ac_var=no"
27016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27017 conftest$ac_exeext conftest.$ac_ext
27019 ac_res=`eval echo '${'$as_ac_var'}'`
27020 { echo "$as_me:$LINENO: result: $ac_res" >&5
27021 echo "${ECHO_T}$ac_res" >&6; }
27022 if test `eval echo '${'$as_ac_var'}'` = yes; then
27023 cat >>confdefs.h <<_ACEOF
27024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27031 for ac_func in fdatasync
27033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27037 echo $ECHO_N "(cached) $ECHO_C" >&6
27039 cat >conftest.$ac_ext <<_ACEOF
27042 cat confdefs.h >>conftest.$ac_ext
27043 cat >>conftest.$ac_ext <<_ACEOF
27044 /* end confdefs.h. */
27045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27047 #define $ac_func innocuous_$ac_func
27049 /* System header to define __stub macros and hopefully few prototypes,
27050 which can conflict with char $ac_func (); below.
27051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27052 <limits.h> exists even on freestanding compilers. */
27055 # include <limits.h>
27057 # include <assert.h>
27062 /* Override any GCC internal prototype to avoid an error.
27063 Use char because int might match the return type of a GCC
27064 builtin and then its argument prototype would still apply. */
27069 /* The GNU C library defines this for functions which it implements
27070 to always fail with ENOSYS. Some functions are actually named
27071 something starting with __ and the normal name is an alias. */
27072 #if defined __stub_$ac_func || defined __stub___$ac_func
27079 return $ac_func ();
27084 rm -f conftest.$ac_objext conftest$ac_exeext
27085 if { (ac_try="$ac_link"
27086 case "(($ac_try" in
27087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088 *) ac_try_echo=$ac_try;;
27090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091 (eval "$ac_link") 2>conftest.er1
27093 grep -v '^ *+' conftest.er1 >conftest.err
27095 cat conftest.err >&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } && {
27098 test -z "$ac_c_werror_flag" ||
27099 test ! -s conftest.err
27100 } && test -s conftest$ac_exeext &&
27101 $as_test_x conftest$ac_exeext; then
27102 eval "$as_ac_var=yes"
27104 echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27107 eval "$as_ac_var=no"
27110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27111 conftest$ac_exeext conftest.$ac_ext
27113 ac_res=`eval echo '${'$as_ac_var'}'`
27114 { echo "$as_me:$LINENO: result: $ac_res" >&5
27115 echo "${ECHO_T}$ac_res" >&6; }
27116 if test `eval echo '${'$as_ac_var'}'` = yes; then
27117 cat >>confdefs.h <<_ACEOF
27118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27126 for ac_func in chflags
27128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27132 echo $ECHO_N "(cached) $ECHO_C" >&6
27134 cat >conftest.$ac_ext <<_ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h. */
27140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27142 #define $ac_func innocuous_$ac_func
27144 /* System header to define __stub macros and hopefully few prototypes,
27145 which can conflict with char $ac_func (); below.
27146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27147 <limits.h> exists even on freestanding compilers. */
27150 # include <limits.h>
27152 # include <assert.h>
27157 /* Override any GCC internal prototype to avoid an error.
27158 Use char because int might match the return type of a GCC
27159 builtin and then its argument prototype would still apply. */
27164 /* The GNU C library defines this for functions which it implements
27165 to always fail with ENOSYS. Some functions are actually named
27166 something starting with __ and the normal name is an alias. */
27167 #if defined __stub_$ac_func || defined __stub___$ac_func
27174 return $ac_func ();
27179 rm -f conftest.$ac_objext conftest$ac_exeext
27180 if { (ac_try="$ac_link"
27181 case "(($ac_try" in
27182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183 *) ac_try_echo=$ac_try;;
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186 (eval "$ac_link") 2>conftest.er1
27188 grep -v '^ *+' conftest.er1 >conftest.err
27190 cat conftest.err >&5
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); } && {
27193 test -z "$ac_c_werror_flag" ||
27194 test ! -s conftest.err
27195 } && test -s conftest$ac_exeext &&
27196 $as_test_x conftest$ac_exeext; then
27197 eval "$as_ac_var=yes"
27199 echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27202 eval "$as_ac_var=no"
27205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27206 conftest$ac_exeext conftest.$ac_ext
27208 ac_res=`eval echo '${'$as_ac_var'}'`
27209 { echo "$as_me:$LINENO: result: $ac_res" >&5
27210 echo "${ECHO_T}$ac_res" >&6; }
27211 if test `eval echo '${'$as_ac_var'}'` = yes; then
27212 cat >>confdefs.h <<_ACEOF
27213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27224 for ac_func in snprintf vsnprintf gethostid fseeko
27226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27230 echo $ECHO_N "(cached) $ECHO_C" >&6
27232 cat >conftest.$ac_ext <<_ACEOF
27235 cat confdefs.h >>conftest.$ac_ext
27236 cat >>conftest.$ac_ext <<_ACEOF
27237 /* end confdefs.h. */
27238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27240 #define $ac_func innocuous_$ac_func
27242 /* System header to define __stub macros and hopefully few prototypes,
27243 which can conflict with char $ac_func (); below.
27244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27245 <limits.h> exists even on freestanding compilers. */
27248 # include <limits.h>
27250 # include <assert.h>
27255 /* Override any GCC internal prototype to avoid an error.
27256 Use char because int might match the return type of a GCC
27257 builtin and then its argument prototype would still apply. */
27262 /* The GNU C library defines this for functions which it implements
27263 to always fail with ENOSYS. Some functions are actually named
27264 something starting with __ and the normal name is an alias. */
27265 #if defined __stub_$ac_func || defined __stub___$ac_func
27272 return $ac_func ();
27277 rm -f conftest.$ac_objext conftest$ac_exeext
27278 if { (ac_try="$ac_link"
27279 case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_link") 2>conftest.er1
27286 grep -v '^ *+' conftest.er1 >conftest.err
27288 cat conftest.err >&5
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } && {
27291 test -z "$ac_c_werror_flag" ||
27292 test ! -s conftest.err
27293 } && test -s conftest$ac_exeext &&
27294 $as_test_x conftest$ac_exeext; then
27295 eval "$as_ac_var=yes"
27297 echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27300 eval "$as_ac_var=no"
27303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27304 conftest$ac_exeext conftest.$ac_ext
27306 ac_res=`eval echo '${'$as_ac_var'}'`
27307 { echo "$as_me:$LINENO: result: $ac_res" >&5
27308 echo "${ECHO_T}$ac_res" >&6; }
27309 if test `eval echo '${'$as_ac_var'}'` = yes; then
27310 cat >>confdefs.h <<_ACEOF
27311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27318 { echo "$as_me:$LINENO: checking for va_copy" >&5
27319 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27320 if test "${ba_cv_va_copy+set}" = set; then
27321 echo $ECHO_N "(cached) $ECHO_C" >&6
27323 cat >conftest.$ac_ext <<_ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27330 #include <stdarg.h>
27331 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27332 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27337 call_use_va_copy(1,2,3)
27342 rm -f conftest.$ac_objext conftest$ac_exeext
27343 if { (ac_try="$ac_link"
27344 case "(($ac_try" in
27345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346 *) ac_try_echo=$ac_try;;
27348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349 (eval "$ac_link") 2>conftest.er1
27351 grep -v '^ *+' conftest.er1 >conftest.err
27353 cat conftest.err >&5
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); } && {
27356 test -z "$ac_c_werror_flag" ||
27357 test ! -s conftest.err
27358 } && test -s conftest$ac_exeext &&
27359 $as_test_x conftest$ac_exeext; then
27362 echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27369 conftest$ac_exeext conftest.$ac_ext
27371 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27372 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27373 test $ba_cv_va_copy = yes &&
27374 cat >>confdefs.h <<\_ACEOF
27375 #define HAVE_VA_COPY 1
27384 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27390 echo $ECHO_N "(cached) $ECHO_C" >&6
27392 cat >conftest.$ac_ext <<_ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h. */
27398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27400 #define $ac_func innocuous_$ac_func
27402 /* System header to define __stub macros and hopefully few prototypes,
27403 which can conflict with char $ac_func (); below.
27404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27405 <limits.h> exists even on freestanding compilers. */
27408 # include <limits.h>
27410 # include <assert.h>
27415 /* Override any GCC internal prototype to avoid an error.
27416 Use char because int might match the return type of a GCC
27417 builtin and then its argument prototype would still apply. */
27422 /* The GNU C library defines this for functions which it implements
27423 to always fail with ENOSYS. Some functions are actually named
27424 something starting with __ and the normal name is an alias. */
27425 #if defined __stub_$ac_func || defined __stub___$ac_func
27432 return $ac_func ();
27437 rm -f conftest.$ac_objext conftest$ac_exeext
27438 if { (ac_try="$ac_link"
27439 case "(($ac_try" in
27440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27441 *) ac_try_echo=$ac_try;;
27443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27444 (eval "$ac_link") 2>conftest.er1
27446 grep -v '^ *+' conftest.er1 >conftest.err
27448 cat conftest.err >&5
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); } && {
27451 test -z "$ac_c_werror_flag" ||
27452 test ! -s conftest.err
27453 } && test -s conftest$ac_exeext &&
27454 $as_test_x conftest$ac_exeext; then
27455 eval "$as_ac_var=yes"
27457 echo "$as_me: failed program was:" >&5
27458 sed 's/^/| /' conftest.$ac_ext >&5
27460 eval "$as_ac_var=no"
27463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27464 conftest$ac_exeext conftest.$ac_ext
27466 ac_res=`eval echo '${'$as_ac_var'}'`
27467 { echo "$as_me:$LINENO: result: $ac_res" >&5
27468 echo "${ECHO_T}$ac_res" >&6; }
27469 if test `eval echo '${'$as_ac_var'}'` = yes; then
27470 cat >>confdefs.h <<_ACEOF
27471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27478 # If resolver functions are not in libc check for -lnsl or -lresolv.
27479 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27480 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27481 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27482 echo $ECHO_N "(cached) $ECHO_C" >&6
27484 cat >conftest.$ac_ext <<_ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h. */
27490 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27492 #define gethostbyname_r innocuous_gethostbyname_r
27494 /* System header to define __stub macros and hopefully few prototypes,
27495 which can conflict with char gethostbyname_r (); below.
27496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27497 <limits.h> exists even on freestanding compilers. */
27500 # include <limits.h>
27502 # include <assert.h>
27505 #undef gethostbyname_r
27507 /* Override any GCC internal prototype to avoid an error.
27508 Use char because int might match the return type of a GCC
27509 builtin and then its argument prototype would still apply. */
27513 char gethostbyname_r ();
27514 /* The GNU C library defines this for functions which it implements
27515 to always fail with ENOSYS. Some functions are actually named
27516 something starting with __ and the normal name is an alias. */
27517 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27524 return gethostbyname_r ();
27529 rm -f conftest.$ac_objext conftest$ac_exeext
27530 if { (ac_try="$ac_link"
27531 case "(($ac_try" in
27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27536 (eval "$ac_link") 2>conftest.er1
27538 grep -v '^ *+' conftest.er1 >conftest.err
27540 cat conftest.err >&5
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); } && {
27543 test -z "$ac_c_werror_flag" ||
27544 test ! -s conftest.err
27545 } && test -s conftest$ac_exeext &&
27546 $as_test_x conftest$ac_exeext; then
27547 ac_cv_func_gethostbyname_r=yes
27549 echo "$as_me: failed program was:" >&5
27550 sed 's/^/| /' conftest.$ac_ext >&5
27552 ac_cv_func_gethostbyname_r=no
27555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27556 conftest$ac_exeext conftest.$ac_ext
27558 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27559 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27560 if test $ac_cv_func_gethostbyname_r = yes; then
27561 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27562 echo "${ECHO_T}using libc's resolver" >&6; }
27565 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27566 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27567 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27568 echo $ECHO_N "(cached) $ECHO_C" >&6
27570 ac_check_lib_save_LIBS=$LIBS
27572 cat >conftest.$ac_ext <<_ACEOF
27575 cat confdefs.h >>conftest.$ac_ext
27576 cat >>conftest.$ac_ext <<_ACEOF
27577 /* end confdefs.h. */
27579 /* Override any GCC internal prototype to avoid an error.
27580 Use char because int might match the return type of a GCC
27581 builtin and then its argument prototype would still apply. */
27585 char gethostbyname_r ();
27589 return gethostbyname_r ();
27594 rm -f conftest.$ac_objext conftest$ac_exeext
27595 if { (ac_try="$ac_link"
27596 case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_link") 2>conftest.er1
27603 grep -v '^ *+' conftest.er1 >conftest.err
27605 cat conftest.err >&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); } && {
27608 test -z "$ac_c_werror_flag" ||
27609 test ! -s conftest.err
27610 } && test -s conftest$ac_exeext &&
27611 $as_test_x conftest$ac_exeext; then
27612 ac_cv_lib_nsl_gethostbyname_r=yes
27614 echo "$as_me: failed program was:" >&5
27615 sed 's/^/| /' conftest.$ac_ext >&5
27617 ac_cv_lib_nsl_gethostbyname_r=no
27620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27621 conftest$ac_exeext conftest.$ac_ext
27622 LIBS=$ac_check_lib_save_LIBS
27624 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27625 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27626 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27627 cat >>confdefs.h <<_ACEOF
27628 #define HAVE_LIBNSL 1
27636 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27637 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27638 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27639 echo $ECHO_N "(cached) $ECHO_C" >&6
27641 ac_check_lib_save_LIBS=$LIBS
27642 LIBS="-lresolv $LIBS"
27643 cat >conftest.$ac_ext <<_ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h. */
27650 /* Override any GCC internal prototype to avoid an error.
27651 Use char because int might match the return type of a GCC
27652 builtin and then its argument prototype would still apply. */
27656 char gethostbyname_r ();
27660 return gethostbyname_r ();
27665 rm -f conftest.$ac_objext conftest$ac_exeext
27666 if { (ac_try="$ac_link"
27667 case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_link") 2>conftest.er1
27674 grep -v '^ *+' conftest.er1 >conftest.err
27676 cat conftest.err >&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } && {
27679 test -z "$ac_c_werror_flag" ||
27680 test ! -s conftest.err
27681 } && test -s conftest$ac_exeext &&
27682 $as_test_x conftest$ac_exeext; then
27683 ac_cv_lib_resolv_gethostbyname_r=yes
27685 echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27688 ac_cv_lib_resolv_gethostbyname_r=no
27691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27692 conftest$ac_exeext conftest.$ac_ext
27693 LIBS=$ac_check_lib_save_LIBS
27695 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27696 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27697 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27698 cat >>confdefs.h <<_ACEOF
27699 #define HAVE_LIBRESOLV 1
27702 LIBS="-lresolv $LIBS"
27712 for ac_func in inet_pton
27714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 cat >conftest.$ac_ext <<_ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h. */
27726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27728 #define $ac_func innocuous_$ac_func
27730 /* System header to define __stub macros and hopefully few prototypes,
27731 which can conflict with char $ac_func (); below.
27732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27733 <limits.h> exists even on freestanding compilers. */
27736 # include <limits.h>
27738 # include <assert.h>
27743 /* Override any GCC internal prototype to avoid an error.
27744 Use char because int might match the return type of a GCC
27745 builtin and then its argument prototype would still apply. */
27750 /* The GNU C library defines this for functions which it implements
27751 to always fail with ENOSYS. Some functions are actually named
27752 something starting with __ and the normal name is an alias. */
27753 #if defined __stub_$ac_func || defined __stub___$ac_func
27760 return $ac_func ();
27765 rm -f conftest.$ac_objext conftest$ac_exeext
27766 if { (ac_try="$ac_link"
27767 case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772 (eval "$ac_link") 2>conftest.er1
27774 grep -v '^ *+' conftest.er1 >conftest.err
27776 cat conftest.err >&5
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } && {
27779 test -z "$ac_c_werror_flag" ||
27780 test ! -s conftest.err
27781 } && test -s conftest$ac_exeext &&
27782 $as_test_x conftest$ac_exeext; then
27783 eval "$as_ac_var=yes"
27785 echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27788 eval "$as_ac_var=no"
27791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27792 conftest$ac_exeext conftest.$ac_ext
27794 ac_res=`eval echo '${'$as_ac_var'}'`
27795 { echo "$as_me:$LINENO: result: $ac_res" >&5
27796 echo "${ECHO_T}$ac_res" >&6; }
27797 if test `eval echo '${'$as_ac_var'}'` = yes; then
27798 cat >>confdefs.h <<_ACEOF
27799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27801 cat >>confdefs.h <<\_ACEOF
27802 #define HAVE_INET_PTON 1
27809 for ac_func in inet_ntop
27811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27815 echo $ECHO_N "(cached) $ECHO_C" >&6
27817 cat >conftest.$ac_ext <<_ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h. */
27823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27825 #define $ac_func innocuous_$ac_func
27827 /* System header to define __stub macros and hopefully few prototypes,
27828 which can conflict with char $ac_func (); below.
27829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27830 <limits.h> exists even on freestanding compilers. */
27833 # include <limits.h>
27835 # include <assert.h>
27840 /* Override any GCC internal prototype to avoid an error.
27841 Use char because int might match the return type of a GCC
27842 builtin and then its argument prototype would still apply. */
27847 /* The GNU C library defines this for functions which it implements
27848 to always fail with ENOSYS. Some functions are actually named
27849 something starting with __ and the normal name is an alias. */
27850 #if defined __stub_$ac_func || defined __stub___$ac_func
27857 return $ac_func ();
27862 rm -f conftest.$ac_objext conftest$ac_exeext
27863 if { (ac_try="$ac_link"
27864 case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869 (eval "$ac_link") 2>conftest.er1
27871 grep -v '^ *+' conftest.er1 >conftest.err
27873 cat conftest.err >&5
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); } && {
27876 test -z "$ac_c_werror_flag" ||
27877 test ! -s conftest.err
27878 } && test -s conftest$ac_exeext &&
27879 $as_test_x conftest$ac_exeext; then
27880 eval "$as_ac_var=yes"
27882 echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27885 eval "$as_ac_var=no"
27888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27889 conftest$ac_exeext conftest.$ac_ext
27891 ac_res=`eval echo '${'$as_ac_var'}'`
27892 { echo "$as_me:$LINENO: result: $ac_res" >&5
27893 echo "${ECHO_T}$ac_res" >&6; }
27894 if test `eval echo '${'$as_ac_var'}'` = yes; then
27895 cat >>confdefs.h <<_ACEOF
27896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27898 cat >>confdefs.h <<\_ACEOF
27899 #define HAVE_INET_NTOP 1
27906 for ac_func in gethostbyname2
27908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27912 echo $ECHO_N "(cached) $ECHO_C" >&6
27914 cat >conftest.$ac_ext <<_ACEOF
27917 cat confdefs.h >>conftest.$ac_ext
27918 cat >>conftest.$ac_ext <<_ACEOF
27919 /* end confdefs.h. */
27920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27922 #define $ac_func innocuous_$ac_func
27924 /* System header to define __stub macros and hopefully few prototypes,
27925 which can conflict with char $ac_func (); below.
27926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27927 <limits.h> exists even on freestanding compilers. */
27930 # include <limits.h>
27932 # include <assert.h>
27937 /* Override any GCC internal prototype to avoid an error.
27938 Use char because int might match the return type of a GCC
27939 builtin and then its argument prototype would still apply. */
27944 /* The GNU C library defines this for functions which it implements
27945 to always fail with ENOSYS. Some functions are actually named
27946 something starting with __ and the normal name is an alias. */
27947 #if defined __stub_$ac_func || defined __stub___$ac_func
27954 return $ac_func ();
27959 rm -f conftest.$ac_objext conftest$ac_exeext
27960 if { (ac_try="$ac_link"
27961 case "(($ac_try" in
27962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963 *) ac_try_echo=$ac_try;;
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_link") 2>conftest.er1
27968 grep -v '^ *+' conftest.er1 >conftest.err
27970 cat conftest.err >&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); } && {
27973 test -z "$ac_c_werror_flag" ||
27974 test ! -s conftest.err
27975 } && test -s conftest$ac_exeext &&
27976 $as_test_x conftest$ac_exeext; then
27977 eval "$as_ac_var=yes"
27979 echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.$ac_ext >&5
27982 eval "$as_ac_var=no"
27985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27986 conftest$ac_exeext conftest.$ac_ext
27988 ac_res=`eval echo '${'$as_ac_var'}'`
27989 { echo "$as_me:$LINENO: result: $ac_res" >&5
27990 echo "${ECHO_T}$ac_res" >&6; }
27991 if test `eval echo '${'$as_ac_var'}'` = yes; then
27992 cat >>confdefs.h <<_ACEOF
27993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27995 cat >>confdefs.h <<\_ACEOF
27996 #define HAVE_GETHOSTBYNAME2 1
28003 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28004 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28005 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28006 echo $ECHO_N "(cached) $ECHO_C" >&6
28008 cat >conftest.$ac_ext <<_ACEOF
28011 cat confdefs.h >>conftest.$ac_ext
28012 cat >>conftest.$ac_ext <<_ACEOF
28013 /* end confdefs.h. */
28014 #include <sys/socket.h>
28018 struct sockaddr s; s.sa_len;
28023 rm -f conftest.$ac_objext
28024 if { (ac_try="$ac_compile"
28025 case "(($ac_try" in
28026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28027 *) ac_try_echo=$ac_try;;
28029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28030 (eval "$ac_compile") 2>conftest.er1
28032 grep -v '^ *+' conftest.er1 >conftest.err
28034 cat conftest.err >&5
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); } && {
28037 test -z "$ac_c_werror_flag" ||
28038 test ! -s conftest.err
28039 } && test -s conftest.$ac_objext; then
28040 ac_cv_struct_sockaddr_sa_len=yes
28042 echo "$as_me: failed program was:" >&5
28043 sed 's/^/| /' conftest.$ac_ext >&5
28045 ac_cv_struct_sockaddr_sa_len=no
28048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28050 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28051 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28053 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28055 cat >>confdefs.h <<\_ACEOF
28056 #define HAVE_SA_LEN 1
28065 for ac_func in strftime
28067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28071 echo $ECHO_N "(cached) $ECHO_C" >&6
28073 cat >conftest.$ac_ext <<_ACEOF
28076 cat confdefs.h >>conftest.$ac_ext
28077 cat >>conftest.$ac_ext <<_ACEOF
28078 /* end confdefs.h. */
28079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28081 #define $ac_func innocuous_$ac_func
28083 /* System header to define __stub macros and hopefully few prototypes,
28084 which can conflict with char $ac_func (); below.
28085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28086 <limits.h> exists even on freestanding compilers. */
28089 # include <limits.h>
28091 # include <assert.h>
28096 /* Override any GCC internal prototype to avoid an error.
28097 Use char because int might match the return type of a GCC
28098 builtin and then its argument prototype would still apply. */
28103 /* The GNU C library defines this for functions which it implements
28104 to always fail with ENOSYS. Some functions are actually named
28105 something starting with __ and the normal name is an alias. */
28106 #if defined __stub_$ac_func || defined __stub___$ac_func
28113 return $ac_func ();
28118 rm -f conftest.$ac_objext conftest$ac_exeext
28119 if { (ac_try="$ac_link"
28120 case "(($ac_try" in
28121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28122 *) ac_try_echo=$ac_try;;
28124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28125 (eval "$ac_link") 2>conftest.er1
28127 grep -v '^ *+' conftest.er1 >conftest.err
28129 cat conftest.err >&5
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); } && {
28132 test -z "$ac_c_werror_flag" ||
28133 test ! -s conftest.err
28134 } && test -s conftest$ac_exeext &&
28135 $as_test_x conftest$ac_exeext; then
28136 eval "$as_ac_var=yes"
28138 echo "$as_me: failed program was:" >&5
28139 sed 's/^/| /' conftest.$ac_ext >&5
28141 eval "$as_ac_var=no"
28144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28145 conftest$ac_exeext conftest.$ac_ext
28147 ac_res=`eval echo '${'$as_ac_var'}'`
28148 { echo "$as_me:$LINENO: result: $ac_res" >&5
28149 echo "${ECHO_T}$ac_res" >&6; }
28150 if test `eval echo '${'$as_ac_var'}'` = yes; then
28151 cat >>confdefs.h <<_ACEOF
28152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28156 # strftime is in -lintl on SCO UNIX.
28157 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28158 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28159 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28162 ac_check_lib_save_LIBS=$LIBS
28163 LIBS="-lintl $LIBS"
28164 cat >conftest.$ac_ext <<_ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h. */
28171 /* Override any GCC internal prototype to avoid an error.
28172 Use char because int might match the return type of a GCC
28173 builtin and then its argument prototype would still apply. */
28181 return strftime ();
28186 rm -f conftest.$ac_objext conftest$ac_exeext
28187 if { (ac_try="$ac_link"
28188 case "(($ac_try" in
28189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28190 *) ac_try_echo=$ac_try;;
28192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28193 (eval "$ac_link") 2>conftest.er1
28195 grep -v '^ *+' conftest.er1 >conftest.err
28197 cat conftest.err >&5
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); } && {
28200 test -z "$ac_c_werror_flag" ||
28201 test ! -s conftest.err
28202 } && test -s conftest$ac_exeext &&
28203 $as_test_x conftest$ac_exeext; then
28204 ac_cv_lib_intl_strftime=yes
28206 echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28209 ac_cv_lib_intl_strftime=no
28212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28213 conftest$ac_exeext conftest.$ac_ext
28214 LIBS=$ac_check_lib_save_LIBS
28216 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28217 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28218 if test $ac_cv_lib_intl_strftime = yes; then
28219 cat >>confdefs.h <<\_ACEOF
28220 #define HAVE_STRFTIME 1
28223 LIBS="-lintl $LIBS"
28230 for ac_func in vprintf
28232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28236 echo $ECHO_N "(cached) $ECHO_C" >&6
28238 cat >conftest.$ac_ext <<_ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h. */
28244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28246 #define $ac_func innocuous_$ac_func
28248 /* System header to define __stub macros and hopefully few prototypes,
28249 which can conflict with char $ac_func (); below.
28250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28251 <limits.h> exists even on freestanding compilers. */
28254 # include <limits.h>
28256 # include <assert.h>
28261 /* Override any GCC internal prototype to avoid an error.
28262 Use char because int might match the return type of a GCC
28263 builtin and then its argument prototype would still apply. */
28268 /* The GNU C library defines this for functions which it implements
28269 to always fail with ENOSYS. Some functions are actually named
28270 something starting with __ and the normal name is an alias. */
28271 #if defined __stub_$ac_func || defined __stub___$ac_func
28278 return $ac_func ();
28283 rm -f conftest.$ac_objext conftest$ac_exeext
28284 if { (ac_try="$ac_link"
28285 case "(($ac_try" in
28286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287 *) ac_try_echo=$ac_try;;
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290 (eval "$ac_link") 2>conftest.er1
28292 grep -v '^ *+' conftest.er1 >conftest.err
28294 cat conftest.err >&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } && {
28297 test -z "$ac_c_werror_flag" ||
28298 test ! -s conftest.err
28299 } && test -s conftest$ac_exeext &&
28300 $as_test_x conftest$ac_exeext; then
28301 eval "$as_ac_var=yes"
28303 echo "$as_me: failed program was:" >&5
28304 sed 's/^/| /' conftest.$ac_ext >&5
28306 eval "$as_ac_var=no"
28309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28310 conftest$ac_exeext conftest.$ac_ext
28312 ac_res=`eval echo '${'$as_ac_var'}'`
28313 { echo "$as_me:$LINENO: result: $ac_res" >&5
28314 echo "${ECHO_T}$ac_res" >&6; }
28315 if test `eval echo '${'$as_ac_var'}'` = yes; then
28316 cat >>confdefs.h <<_ACEOF
28317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28320 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28321 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28322 if test "${ac_cv_func__doprnt+set}" = set; then
28323 echo $ECHO_N "(cached) $ECHO_C" >&6
28325 cat >conftest.$ac_ext <<_ACEOF
28328 cat confdefs.h >>conftest.$ac_ext
28329 cat >>conftest.$ac_ext <<_ACEOF
28330 /* end confdefs.h. */
28331 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28333 #define _doprnt innocuous__doprnt
28335 /* System header to define __stub macros and hopefully few prototypes,
28336 which can conflict with char _doprnt (); below.
28337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28338 <limits.h> exists even on freestanding compilers. */
28341 # include <limits.h>
28343 # include <assert.h>
28348 /* Override any GCC internal prototype to avoid an error.
28349 Use char because int might match the return type of a GCC
28350 builtin and then its argument prototype would still apply. */
28355 /* The GNU C library defines this for functions which it implements
28356 to always fail with ENOSYS. Some functions are actually named
28357 something starting with __ and the normal name is an alias. */
28358 #if defined __stub__doprnt || defined __stub____doprnt
28370 rm -f conftest.$ac_objext conftest$ac_exeext
28371 if { (ac_try="$ac_link"
28372 case "(($ac_try" in
28373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374 *) ac_try_echo=$ac_try;;
28376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28377 (eval "$ac_link") 2>conftest.er1
28379 grep -v '^ *+' conftest.er1 >conftest.err
28381 cat conftest.err >&5
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } && {
28384 test -z "$ac_c_werror_flag" ||
28385 test ! -s conftest.err
28386 } && test -s conftest$ac_exeext &&
28387 $as_test_x conftest$ac_exeext; then
28388 ac_cv_func__doprnt=yes
28390 echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28393 ac_cv_func__doprnt=no
28396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28397 conftest$ac_exeext conftest.$ac_ext
28399 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28400 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28401 if test $ac_cv_func__doprnt = yes; then
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_DOPRNT 1
28413 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28414 # for constant arguments. Useless!
28415 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28416 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28417 if test "${ac_cv_working_alloca_h+set}" = set; then
28418 echo $ECHO_N "(cached) $ECHO_C" >&6
28420 cat >conftest.$ac_ext <<_ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h. */
28426 #include <alloca.h>
28430 char *p = (char *) alloca (2 * sizeof (int));
28436 rm -f conftest.$ac_objext conftest$ac_exeext
28437 if { (ac_try="$ac_link"
28438 case "(($ac_try" in
28439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28440 *) ac_try_echo=$ac_try;;
28442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28443 (eval "$ac_link") 2>conftest.er1
28445 grep -v '^ *+' conftest.er1 >conftest.err
28447 cat conftest.err >&5
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); } && {
28450 test -z "$ac_c_werror_flag" ||
28451 test ! -s conftest.err
28452 } && test -s conftest$ac_exeext &&
28453 $as_test_x conftest$ac_exeext; then
28454 ac_cv_working_alloca_h=yes
28456 echo "$as_me: failed program was:" >&5
28457 sed 's/^/| /' conftest.$ac_ext >&5
28459 ac_cv_working_alloca_h=no
28462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28463 conftest$ac_exeext conftest.$ac_ext
28465 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28466 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28467 if test $ac_cv_working_alloca_h = yes; then
28469 cat >>confdefs.h <<\_ACEOF
28470 #define HAVE_ALLOCA_H 1
28475 { echo "$as_me:$LINENO: checking for alloca" >&5
28476 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28477 if test "${ac_cv_func_alloca_works+set}" = set; then
28478 echo $ECHO_N "(cached) $ECHO_C" >&6
28480 cat >conftest.$ac_ext <<_ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h. */
28487 # define alloca __builtin_alloca
28490 # include <malloc.h>
28491 # define alloca _alloca
28493 # ifdef HAVE_ALLOCA_H
28494 # include <alloca.h>
28499 # ifndef alloca /* predefined by HP cc +Olibcalls */
28510 char *p = (char *) alloca (1);
28516 rm -f conftest.$ac_objext conftest$ac_exeext
28517 if { (ac_try="$ac_link"
28518 case "(($ac_try" in
28519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520 *) ac_try_echo=$ac_try;;
28522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523 (eval "$ac_link") 2>conftest.er1
28525 grep -v '^ *+' conftest.er1 >conftest.err
28527 cat conftest.err >&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); } && {
28530 test -z "$ac_c_werror_flag" ||
28531 test ! -s conftest.err
28532 } && test -s conftest$ac_exeext &&
28533 $as_test_x conftest$ac_exeext; then
28534 ac_cv_func_alloca_works=yes
28536 echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28539 ac_cv_func_alloca_works=no
28542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28543 conftest$ac_exeext conftest.$ac_ext
28545 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28546 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28548 if test $ac_cv_func_alloca_works = yes; then
28550 cat >>confdefs.h <<\_ACEOF
28551 #define HAVE_ALLOCA 1
28555 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28556 # that cause trouble. Some versions do not even contain alloca or
28557 # contain a buggy version. If you still want to use their alloca,
28558 # use ar to extract alloca.o from them instead of compiling alloca.c.
28560 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28562 cat >>confdefs.h <<\_ACEOF
28567 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28568 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28569 if test "${ac_cv_os_cray+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
28572 cat >conftest.$ac_ext <<_ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h. */
28578 #if defined CRAY && ! defined CRAY2
28585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28586 $EGREP "webecray" >/dev/null 2>&1; then
28594 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28595 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28596 if test $ac_cv_os_cray = yes; then
28597 for ac_func in _getb67 GETB67 getb67; do
28598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28602 echo $ECHO_N "(cached) $ECHO_C" >&6
28604 cat >conftest.$ac_ext <<_ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h. */
28610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28612 #define $ac_func innocuous_$ac_func
28614 /* System header to define __stub macros and hopefully few prototypes,
28615 which can conflict with char $ac_func (); below.
28616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28617 <limits.h> exists even on freestanding compilers. */
28620 # include <limits.h>
28622 # include <assert.h>
28627 /* Override any GCC internal prototype to avoid an error.
28628 Use char because int might match the return type of a GCC
28629 builtin and then its argument prototype would still apply. */
28634 /* The GNU C library defines this for functions which it implements
28635 to always fail with ENOSYS. Some functions are actually named
28636 something starting with __ and the normal name is an alias. */
28637 #if defined __stub_$ac_func || defined __stub___$ac_func
28644 return $ac_func ();
28649 rm -f conftest.$ac_objext conftest$ac_exeext
28650 if { (ac_try="$ac_link"
28651 case "(($ac_try" in
28652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653 *) ac_try_echo=$ac_try;;
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_link") 2>conftest.er1
28658 grep -v '^ *+' conftest.er1 >conftest.err
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } && {
28663 test -z "$ac_c_werror_flag" ||
28664 test ! -s conftest.err
28665 } && test -s conftest$ac_exeext &&
28666 $as_test_x conftest$ac_exeext; then
28667 eval "$as_ac_var=yes"
28669 echo "$as_me: failed program was:" >&5
28670 sed 's/^/| /' conftest.$ac_ext >&5
28672 eval "$as_ac_var=no"
28675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28676 conftest$ac_exeext conftest.$ac_ext
28678 ac_res=`eval echo '${'$as_ac_var'}'`
28679 { echo "$as_me:$LINENO: result: $ac_res" >&5
28680 echo "${ECHO_T}$ac_res" >&6; }
28681 if test `eval echo '${'$as_ac_var'}'` = yes; then
28683 cat >>confdefs.h <<_ACEOF
28684 #define CRAY_STACKSEG_END $ac_func
28693 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28694 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28695 if test "${ac_cv_c_stack_direction+set}" = set; then
28696 echo $ECHO_N "(cached) $ECHO_C" >&6
28698 if test "$cross_compiling" = yes; then
28699 ac_cv_c_stack_direction=0
28701 cat >conftest.$ac_ext <<_ACEOF
28704 cat confdefs.h >>conftest.$ac_ext
28705 cat >>conftest.$ac_ext <<_ACEOF
28706 /* end confdefs.h. */
28707 $ac_includes_default
28709 find_stack_direction ()
28711 static char *addr = 0;
28716 return find_stack_direction ();
28719 return (&dummy > addr) ? 1 : -1;
28725 return find_stack_direction () < 0;
28728 rm -f conftest$ac_exeext
28729 if { (ac_try="$ac_link"
28730 case "(($ac_try" in
28731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28732 *) ac_try_echo=$ac_try;;
28734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28735 (eval "$ac_link") 2>&5
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28739 { (case "(($ac_try" in
28740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_try") 2>&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; }; then
28748 ac_cv_c_stack_direction=1
28750 echo "$as_me: program exited with status $ac_status" >&5
28751 echo "$as_me: failed program was:" >&5
28752 sed 's/^/| /' conftest.$ac_ext >&5
28754 ( exit $ac_status )
28755 ac_cv_c_stack_direction=-1
28757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28762 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28763 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28765 cat >>confdefs.h <<_ACEOF
28766 #define STACK_DIRECTION $ac_cv_c_stack_direction
28772 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28773 # -lseq on Dynix/PTX, -lgen on Unixware.
28774 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28775 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28776 if test "${ac_cv_search_getmntent+set}" = set; then
28777 echo $ECHO_N "(cached) $ECHO_C" >&6
28779 ac_func_search_save_LIBS=$LIBS
28780 cat >conftest.$ac_ext <<_ACEOF
28783 cat confdefs.h >>conftest.$ac_ext
28784 cat >>conftest.$ac_ext <<_ACEOF
28785 /* end confdefs.h. */
28787 /* Override any GCC internal prototype to avoid an error.
28788 Use char because int might match the return type of a GCC
28789 builtin and then its argument prototype would still apply. */
28797 return getmntent ();
28802 for ac_lib in '' sun seq gen; do
28803 if test -z "$ac_lib"; then
28804 ac_res="none required"
28807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28809 rm -f conftest.$ac_objext conftest$ac_exeext
28810 if { (ac_try="$ac_link"
28811 case "(($ac_try" in
28812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813 *) ac_try_echo=$ac_try;;
28815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816 (eval "$ac_link") 2>conftest.er1
28818 grep -v '^ *+' conftest.er1 >conftest.err
28820 cat conftest.err >&5
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); } && {
28823 test -z "$ac_c_werror_flag" ||
28824 test ! -s conftest.err
28825 } && test -s conftest$ac_exeext &&
28826 $as_test_x conftest$ac_exeext; then
28827 ac_cv_search_getmntent=$ac_res
28829 echo "$as_me: failed program was:" >&5
28830 sed 's/^/| /' conftest.$ac_ext >&5
28835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28837 if test "${ac_cv_search_getmntent+set}" = set; then
28841 if test "${ac_cv_search_getmntent+set}" = set; then
28844 ac_cv_search_getmntent=no
28846 rm conftest.$ac_ext
28847 LIBS=$ac_func_search_save_LIBS
28849 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28850 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28851 ac_res=$ac_cv_search_getmntent
28852 if test "$ac_res" != no; then
28853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28854 ac_cv_func_getmntent=yes
28856 cat >>confdefs.h <<\_ACEOF
28857 #define HAVE_GETMNTENT 1
28861 ac_cv_func_getmntent=no
28865 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28866 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28867 if test "${ac_cv_func_closedir_void+set}" = set; then
28868 echo $ECHO_N "(cached) $ECHO_C" >&6
28870 if test "$cross_compiling" = yes; then
28871 ac_cv_func_closedir_void=yes
28873 cat >conftest.$ac_ext <<_ACEOF
28876 cat confdefs.h >>conftest.$ac_ext
28877 cat >>conftest.$ac_ext <<_ACEOF
28878 /* end confdefs.h. */
28879 $ac_includes_default
28880 #include <$ac_header_dirent>
28881 #ifndef __cplusplus
28888 return closedir (opendir (".")) != 0;
28893 rm -f conftest$ac_exeext
28894 if { (ac_try="$ac_link"
28895 case "(($ac_try" in
28896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897 *) ac_try_echo=$ac_try;;
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900 (eval "$ac_link") 2>&5
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28904 { (case "(($ac_try" in
28905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28906 *) ac_try_echo=$ac_try;;
28908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28909 (eval "$ac_try") 2>&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; }; then
28913 ac_cv_func_closedir_void=no
28915 echo "$as_me: program exited with status $ac_status" >&5
28916 echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28919 ( exit $ac_status )
28920 ac_cv_func_closedir_void=yes
28922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28927 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28928 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28929 if test $ac_cv_func_closedir_void = yes; then
28931 cat >>confdefs.h <<\_ACEOF
28932 #define CLOSEDIR_VOID 1
28937 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28938 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28939 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28940 echo $ECHO_N "(cached) $ECHO_C" >&6
28942 if test "$cross_compiling" = yes; then
28943 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28944 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28945 { (exit 1); exit 1; }; }
28947 cat >conftest.$ac_ext <<_ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h. */
28953 $ac_includes_default
28957 /* If this system has a BSD-style setpgrp which takes arguments,
28958 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28959 exit successfully. */
28960 return setpgrp (1,1) != -1;
28965 rm -f conftest$ac_exeext
28966 if { (ac_try="$ac_link"
28967 case "(($ac_try" in
28968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969 *) ac_try_echo=$ac_try;;
28971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28972 (eval "$ac_link") 2>&5
28974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28976 { (case "(($ac_try" in
28977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28978 *) ac_try_echo=$ac_try;;
28980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28981 (eval "$ac_try") 2>&5
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); }; }; then
28985 ac_cv_func_setpgrp_void=no
28987 echo "$as_me: program exited with status $ac_status" >&5
28988 echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28991 ( exit $ac_status )
28992 ac_cv_func_setpgrp_void=yes
28994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28999 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29000 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29001 if test $ac_cv_func_setpgrp_void = yes; then
29003 cat >>confdefs.h <<\_ACEOF
29004 #define SETPGRP_VOID 1
29008 # AC_FUNC_FNMATCH dnl use local version
29011 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29012 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29013 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29014 echo $ECHO_N "(cached) $ECHO_C" >&6
29016 ac_check_lib_save_LIBS=$LIBS
29017 LIBS="-lintl $LIBS"
29018 cat >conftest.$ac_ext <<_ACEOF
29021 cat confdefs.h >>conftest.$ac_ext
29022 cat >>conftest.$ac_ext <<_ACEOF
29023 /* end confdefs.h. */
29025 /* Override any GCC internal prototype to avoid an error.
29026 Use char because int might match the return type of a GCC
29027 builtin and then its argument prototype would still apply. */
29040 rm -f conftest.$ac_objext conftest$ac_exeext
29041 if { (ac_try="$ac_link"
29042 case "(($ac_try" in
29043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29044 *) ac_try_echo=$ac_try;;
29046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29047 (eval "$ac_link") 2>conftest.er1
29049 grep -v '^ *+' conftest.er1 >conftest.err
29051 cat conftest.err >&5
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); } && {
29054 test -z "$ac_c_werror_flag" ||
29055 test ! -s conftest.err
29056 } && test -s conftest$ac_exeext &&
29057 $as_test_x conftest$ac_exeext; then
29058 ac_cv_lib_intl_gettext=yes
29060 echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29063 ac_cv_lib_intl_gettext=no
29066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29067 conftest$ac_exeext conftest.$ac_ext
29068 LIBS=$ac_check_lib_save_LIBS
29070 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29071 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29072 if test $ac_cv_lib_intl_gettext = yes; then
29073 LIBS="$LIBS -lintl"
29079 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29080 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29081 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29082 echo $ECHO_N "(cached) $ECHO_C" >&6
29084 ac_check_lib_save_LIBS=$LIBS
29086 cat >conftest.$ac_ext <<_ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h. */
29093 /* Override any GCC internal prototype to avoid an error.
29094 Use char because int might match the return type of a GCC
29095 builtin and then its argument prototype would still apply. */
29103 return getpwnam ();
29108 rm -f conftest.$ac_objext conftest$ac_exeext
29109 if { (ac_try="$ac_link"
29110 case "(($ac_try" in
29111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112 *) ac_try_echo=$ac_try;;
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115 (eval "$ac_link") 2>conftest.er1
29117 grep -v '^ *+' conftest.er1 >conftest.err
29119 cat conftest.err >&5
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); } && {
29122 test -z "$ac_c_werror_flag" ||
29123 test ! -s conftest.err
29124 } && test -s conftest$ac_exeext &&
29125 $as_test_x conftest$ac_exeext; then
29126 ac_cv_lib_sun_getpwnam=yes
29128 echo "$as_me: failed program was:" >&5
29129 sed 's/^/| /' conftest.$ac_ext >&5
29131 ac_cv_lib_sun_getpwnam=no
29134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29135 conftest$ac_exeext conftest.$ac_ext
29136 LIBS=$ac_check_lib_save_LIBS
29138 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29139 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29140 if test $ac_cv_lib_sun_getpwnam = yes; then
29141 cat >>confdefs.h <<_ACEOF
29142 #define HAVE_LIBSUN 1
29151 for ac_header in zlib.h
29153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29160 ac_res=`eval echo '${'$as_ac_Header'}'`
29161 { echo "$as_me:$LINENO: result: $ac_res" >&5
29162 echo "${ECHO_T}$ac_res" >&6; }
29164 # Is the header compilable?
29165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29167 cat >conftest.$ac_ext <<_ACEOF
29170 cat confdefs.h >>conftest.$ac_ext
29171 cat >>conftest.$ac_ext <<_ACEOF
29172 /* end confdefs.h. */
29173 $ac_includes_default
29174 #include <$ac_header>
29176 rm -f conftest.$ac_objext
29177 if { (ac_try="$ac_compile"
29178 case "(($ac_try" in
29179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29180 *) ac_try_echo=$ac_try;;
29182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29183 (eval "$ac_compile") 2>conftest.er1
29185 grep -v '^ *+' conftest.er1 >conftest.err
29187 cat conftest.err >&5
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); } && {
29190 test -z "$ac_c_werror_flag" ||
29191 test ! -s conftest.err
29192 } && test -s conftest.$ac_objext; then
29193 ac_header_compiler=yes
29195 echo "$as_me: failed program was:" >&5
29196 sed 's/^/| /' conftest.$ac_ext >&5
29198 ac_header_compiler=no
29201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29203 echo "${ECHO_T}$ac_header_compiler" >&6; }
29205 # Is the header present?
29206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29208 cat >conftest.$ac_ext <<_ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h. */
29214 #include <$ac_header>
29216 if { (ac_try="$ac_cpp conftest.$ac_ext"
29217 case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29224 grep -v '^ *+' conftest.er1 >conftest.err
29226 cat conftest.err >&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } >/dev/null && {
29229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29230 test ! -s conftest.err
29232 ac_header_preproc=yes
29234 echo "$as_me: failed program was:" >&5
29235 sed 's/^/| /' conftest.$ac_ext >&5
29237 ac_header_preproc=no
29240 rm -f conftest.err conftest.$ac_ext
29241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29242 echo "${ECHO_T}$ac_header_preproc" >&6; }
29244 # So? What about this header?
29245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29251 ac_header_preproc=yes
29254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29272 echo $ECHO_N "(cached) $ECHO_C" >&6
29274 eval "$as_ac_Header=\$ac_header_preproc"
29276 ac_res=`eval echo '${'$as_ac_Header'}'`
29277 { echo "$as_me:$LINENO: result: $ac_res" >&5
29278 echo "${ECHO_T}$ac_res" >&6; }
29281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29282 cat >>confdefs.h <<_ACEOF
29283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29290 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29291 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29292 if test "${ac_cv_lib_z_deflate+set}" = set; then
29293 echo $ECHO_N "(cached) $ECHO_C" >&6
29295 ac_check_lib_save_LIBS=$LIBS
29297 cat >conftest.$ac_ext <<_ACEOF
29300 cat confdefs.h >>conftest.$ac_ext
29301 cat >>conftest.$ac_ext <<_ACEOF
29302 /* end confdefs.h. */
29304 /* Override any GCC internal prototype to avoid an error.
29305 Use char because int might match the return type of a GCC
29306 builtin and then its argument prototype would still apply. */
29319 rm -f conftest.$ac_objext conftest$ac_exeext
29320 if { (ac_try="$ac_link"
29321 case "(($ac_try" in
29322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29323 *) ac_try_echo=$ac_try;;
29325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29326 (eval "$ac_link") 2>conftest.er1
29328 grep -v '^ *+' conftest.er1 >conftest.err
29330 cat conftest.err >&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); } && {
29333 test -z "$ac_c_werror_flag" ||
29334 test ! -s conftest.err
29335 } && test -s conftest$ac_exeext &&
29336 $as_test_x conftest$ac_exeext; then
29337 ac_cv_lib_z_deflate=yes
29339 echo "$as_me: failed program was:" >&5
29340 sed 's/^/| /' conftest.$ac_ext >&5
29342 ac_cv_lib_z_deflate=no
29345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29346 conftest$ac_exeext conftest.$ac_ext
29347 LIBS=$ac_check_lib_save_LIBS
29349 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29350 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29351 if test $ac_cv_lib_z_deflate = yes; then
29356 if test x$FDLIBS = x-lz; then
29357 cat >>confdefs.h <<\_ACEOF
29358 #define HAVE_LIBZ 1
29365 # Check for ACL libraries
29368 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29369 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29370 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29371 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29372 echo $ECHO_N "(cached) $ECHO_C" >&6
29374 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29375 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29377 # Is the header compilable?
29378 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29379 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29380 cat >conftest.$ac_ext <<_ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h. */
29386 $ac_includes_default
29387 #include <sys/acl.h>
29389 rm -f conftest.$ac_objext
29390 if { (ac_try="$ac_compile"
29391 case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396 (eval "$ac_compile") 2>conftest.er1
29398 grep -v '^ *+' conftest.er1 >conftest.err
29400 cat conftest.err >&5
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); } && {
29403 test -z "$ac_c_werror_flag" ||
29404 test ! -s conftest.err
29405 } && test -s conftest.$ac_objext; then
29406 ac_header_compiler=yes
29408 echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29411 ac_header_compiler=no
29414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29416 echo "${ECHO_T}$ac_header_compiler" >&6; }
29418 # Is the header present?
29419 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29420 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29421 cat >conftest.$ac_ext <<_ACEOF
29424 cat confdefs.h >>conftest.$ac_ext
29425 cat >>conftest.$ac_ext <<_ACEOF
29426 /* end confdefs.h. */
29427 #include <sys/acl.h>
29429 if { (ac_try="$ac_cpp conftest.$ac_ext"
29430 case "(($ac_try" in
29431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432 *) ac_try_echo=$ac_try;;
29434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29437 grep -v '^ *+' conftest.er1 >conftest.err
29439 cat conftest.err >&5
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); } >/dev/null && {
29442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29443 test ! -s conftest.err
29445 ac_header_preproc=yes
29447 echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29450 ac_header_preproc=no
29453 rm -f conftest.err conftest.$ac_ext
29454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29455 echo "${ECHO_T}$ac_header_preproc" >&6; }
29457 # So? What about this header?
29458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29460 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29461 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29462 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29463 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29464 ac_header_preproc=yes
29467 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29468 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29469 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29470 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29471 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29472 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29473 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29474 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29475 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29476 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29477 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29478 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29482 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29483 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29484 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29485 echo $ECHO_N "(cached) $ECHO_C" >&6
29487 ac_cv_header_sys_acl_h=$ac_header_preproc
29489 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29490 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29495 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29496 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29497 if test "${ac_cv_func_acl_get_file+set}" = set; then
29498 echo $ECHO_N "(cached) $ECHO_C" >&6
29500 cat >conftest.$ac_ext <<_ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h. */
29506 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29508 #define acl_get_file innocuous_acl_get_file
29510 /* System header to define __stub macros and hopefully few prototypes,
29511 which can conflict with char acl_get_file (); below.
29512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29513 <limits.h> exists even on freestanding compilers. */
29516 # include <limits.h>
29518 # include <assert.h>
29521 #undef acl_get_file
29523 /* Override any GCC internal prototype to avoid an error.
29524 Use char because int might match the return type of a GCC
29525 builtin and then its argument prototype would still apply. */
29529 char acl_get_file ();
29530 /* The GNU C library defines this for functions which it implements
29531 to always fail with ENOSYS. Some functions are actually named
29532 something starting with __ and the normal name is an alias. */
29533 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29540 return acl_get_file ();
29545 rm -f conftest.$ac_objext conftest$ac_exeext
29546 if { (ac_try="$ac_link"
29547 case "(($ac_try" in
29548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549 *) ac_try_echo=$ac_try;;
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552 (eval "$ac_link") 2>conftest.er1
29554 grep -v '^ *+' conftest.er1 >conftest.err
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } && {
29559 test -z "$ac_c_werror_flag" ||
29560 test ! -s conftest.err
29561 } && test -s conftest$ac_exeext &&
29562 $as_test_x conftest$ac_exeext; then
29563 ac_cv_func_acl_get_file=yes
29565 echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29568 ac_cv_func_acl_get_file=no
29571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29572 conftest$ac_exeext conftest.$ac_ext
29574 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29575 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29576 if test $ac_cv_func_acl_get_file = yes; then
29579 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29580 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29581 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29584 ac_check_lib_save_LIBS=$LIBS
29586 cat >conftest.$ac_ext <<_ACEOF
29589 cat confdefs.h >>conftest.$ac_ext
29590 cat >>conftest.$ac_ext <<_ACEOF
29591 /* end confdefs.h. */
29593 /* Override any GCC internal prototype to avoid an error.
29594 Use char because int might match the return type of a GCC
29595 builtin and then its argument prototype would still apply. */
29599 char acl_get_file ();
29603 return acl_get_file ();
29608 rm -f conftest.$ac_objext conftest$ac_exeext
29609 if { (ac_try="$ac_link"
29610 case "(($ac_try" in
29611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29612 *) ac_try_echo=$ac_try;;
29614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29615 (eval "$ac_link") 2>conftest.er1
29617 grep -v '^ *+' conftest.er1 >conftest.err
29619 cat conftest.err >&5
29620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); } && {
29622 test -z "$ac_c_werror_flag" ||
29623 test ! -s conftest.err
29624 } && test -s conftest$ac_exeext &&
29625 $as_test_x conftest$ac_exeext; then
29626 ac_cv_lib_acl_acl_get_file=yes
29628 echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29631 ac_cv_lib_acl_acl_get_file=no
29634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29635 conftest$ac_exeext conftest.$ac_ext
29636 LIBS=$ac_check_lib_save_LIBS
29638 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29639 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29640 if test $ac_cv_lib_acl_acl_get_file = yes; then
29641 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29643 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29644 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29645 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29646 echo $ECHO_N "(cached) $ECHO_C" >&6
29648 ac_check_lib_save_LIBS=$LIBS
29650 cat >conftest.$ac_ext <<_ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h. */
29657 /* Override any GCC internal prototype to avoid an error.
29658 Use char because int might match the return type of a GCC
29659 builtin and then its argument prototype would still apply. */
29667 return acltotext ();
29672 rm -f conftest.$ac_objext conftest$ac_exeext
29673 if { (ac_try="$ac_link"
29674 case "(($ac_try" in
29675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676 *) ac_try_echo=$ac_try;;
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679 (eval "$ac_link") 2>conftest.er1
29681 grep -v '^ *+' conftest.er1 >conftest.err
29683 cat conftest.err >&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } && {
29686 test -z "$ac_c_werror_flag" ||
29687 test ! -s conftest.err
29688 } && test -s conftest$ac_exeext &&
29689 $as_test_x conftest$ac_exeext; then
29690 ac_cv_lib_sec_acltotext=yes
29692 echo "$as_me: failed program was:" >&5
29693 sed 's/^/| /' conftest.$ac_ext >&5
29695 ac_cv_lib_sec_acltotext=no
29698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29699 conftest$ac_exeext conftest.$ac_ext
29700 LIBS=$ac_check_lib_save_LIBS
29702 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29703 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29704 if test $ac_cv_lib_sec_acltotext = yes; then
29705 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29714 if test $have_acl = yes; then
29715 cat >>confdefs.h <<\_ACEOF
29722 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29723 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29724 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29727 ac_check_lib_save_LIBS=$LIBS
29728 LIBS="-lpthread $LIBS"
29729 cat >conftest.$ac_ext <<_ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29736 /* Override any GCC internal prototype to avoid an error.
29737 Use char because int might match the return type of a GCC
29738 builtin and then its argument prototype would still apply. */
29742 char pthread_create ();
29746 return pthread_create ();
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (ac_try="$ac_link"
29753 case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_link") 2>conftest.er1
29760 grep -v '^ *+' conftest.er1 >conftest.err
29762 cat conftest.err >&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); } && {
29765 test -z "$ac_c_werror_flag" ||
29766 test ! -s conftest.err
29767 } && test -s conftest$ac_exeext &&
29768 $as_test_x conftest$ac_exeext; then
29769 ac_cv_lib_pthread_pthread_create=yes
29771 echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29774 ac_cv_lib_pthread_pthread_create=no
29777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29778 conftest$ac_exeext conftest.$ac_ext
29779 LIBS=$ac_check_lib_save_LIBS
29781 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29782 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29783 if test $ac_cv_lib_pthread_pthread_create = yes; then
29784 PTHREAD_LIB="-lpthread"
29786 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29787 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29788 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29789 echo $ECHO_N "(cached) $ECHO_C" >&6
29791 ac_check_lib_save_LIBS=$LIBS
29792 LIBS="-lpthreads $LIBS"
29793 cat >conftest.$ac_ext <<_ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h. */
29800 /* Override any GCC internal prototype to avoid an error.
29801 Use char because int might match the return type of a GCC
29802 builtin and then its argument prototype would still apply. */
29806 char pthread_create ();
29810 return pthread_create ();
29815 rm -f conftest.$ac_objext conftest$ac_exeext
29816 if { (ac_try="$ac_link"
29817 case "(($ac_try" in
29818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819 *) ac_try_echo=$ac_try;;
29821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822 (eval "$ac_link") 2>conftest.er1
29824 grep -v '^ *+' conftest.er1 >conftest.err
29826 cat conftest.err >&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); } && {
29829 test -z "$ac_c_werror_flag" ||
29830 test ! -s conftest.err
29831 } && test -s conftest$ac_exeext &&
29832 $as_test_x conftest$ac_exeext; then
29833 ac_cv_lib_pthreads_pthread_create=yes
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ac_cv_lib_pthreads_pthread_create=no
29841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29842 conftest$ac_exeext conftest.$ac_ext
29843 LIBS=$ac_check_lib_save_LIBS
29845 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29846 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29847 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29848 PTHREAD_LIB="-lpthreads"
29850 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29851 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29852 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29853 echo $ECHO_N "(cached) $ECHO_C" >&6
29855 ac_check_lib_save_LIBS=$LIBS
29857 cat >conftest.$ac_ext <<_ACEOF
29860 cat confdefs.h >>conftest.$ac_ext
29861 cat >>conftest.$ac_ext <<_ACEOF
29862 /* end confdefs.h. */
29864 /* Override any GCC internal prototype to avoid an error.
29865 Use char because int might match the return type of a GCC
29866 builtin and then its argument prototype would still apply. */
29870 char pthread_create ();
29874 return pthread_create ();
29879 rm -f conftest.$ac_objext conftest$ac_exeext
29880 if { (ac_try="$ac_link"
29881 case "(($ac_try" in
29882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883 *) ac_try_echo=$ac_try;;
29885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886 (eval "$ac_link") 2>conftest.er1
29888 grep -v '^ *+' conftest.er1 >conftest.err
29890 cat conftest.err >&5
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); } && {
29893 test -z "$ac_c_werror_flag" ||
29894 test ! -s conftest.err
29895 } && test -s conftest$ac_exeext &&
29896 $as_test_x conftest$ac_exeext; then
29897 ac_cv_lib_c_r_pthread_create=yes
29899 echo "$as_me: failed program was:" >&5
29900 sed 's/^/| /' conftest.$ac_ext >&5
29902 ac_cv_lib_c_r_pthread_create=no
29905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29906 conftest$ac_exeext conftest.$ac_ext
29907 LIBS=$ac_check_lib_save_LIBS
29909 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29910 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29911 if test $ac_cv_lib_c_r_pthread_create = yes; then
29912 PTHREAD_LIB="-lc_r"
29914 { echo "$as_me:$LINENO: checking for pthread_create" >&5
29915 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29916 if test "${ac_cv_func_pthread_create+set}" = set; then
29917 echo $ECHO_N "(cached) $ECHO_C" >&6
29919 cat >conftest.$ac_ext <<_ACEOF
29922 cat confdefs.h >>conftest.$ac_ext
29923 cat >>conftest.$ac_ext <<_ACEOF
29924 /* end confdefs.h. */
29925 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29927 #define pthread_create innocuous_pthread_create
29929 /* System header to define __stub macros and hopefully few prototypes,
29930 which can conflict with char pthread_create (); below.
29931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29932 <limits.h> exists even on freestanding compilers. */
29935 # include <limits.h>
29937 # include <assert.h>
29940 #undef pthread_create
29942 /* Override any GCC internal prototype to avoid an error.
29943 Use char because int might match the return type of a GCC
29944 builtin and then its argument prototype would still apply. */
29948 char pthread_create ();
29949 /* The GNU C library defines this for functions which it implements
29950 to always fail with ENOSYS. Some functions are actually named
29951 something starting with __ and the normal name is an alias. */
29952 #if defined __stub_pthread_create || defined __stub___pthread_create
29959 return pthread_create ();
29964 rm -f conftest.$ac_objext conftest$ac_exeext
29965 if { (ac_try="$ac_link"
29966 case "(($ac_try" in
29967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968 *) ac_try_echo=$ac_try;;
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971 (eval "$ac_link") 2>conftest.er1
29973 grep -v '^ *+' conftest.er1 >conftest.err
29975 cat conftest.err >&5
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); } && {
29978 test -z "$ac_c_werror_flag" ||
29979 test ! -s conftest.err
29980 } && test -s conftest$ac_exeext &&
29981 $as_test_x conftest$ac_exeext; then
29982 ac_cv_func_pthread_create=yes
29984 echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29987 ac_cv_func_pthread_create=no
29990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29991 conftest$ac_exeext conftest.$ac_ext
29993 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29994 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30007 cat >>confdefs.h <<\_ACEOF
30013 CFLAGS=${CFLAGS--O}
30015 if test x$have_gcc = xyes ; then
30016 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30017 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30019 LDFLAGS=${LDFLAGS--O}
30020 DB_LIBS="${SQL_LFLAGS}"
30021 CPPFLAGS="$CPPFLAGS"
30049 # Finally we set appropriate distribution specific
30050 # variables and defaults
30052 # PFILES are platform specific files
30053 PFILES="platforms/Makefile"
30057 hostname=`uname -n | cut -d '.' -f 1`
30058 if test x${hostname} = x ; then
30059 hostname="localhost"
30061 case "$DISTNAME" in
30064 PSCMD="ps -e -o pid,comm"
30065 PFILES="${PFILES} \
30066 platforms/aix/Makefile"
30067 TAPEDRIVE="/dev/rmt0.1"
30071 PTHREAD_LIB="-lpthread -lexc"
30072 if test "${CC}" = "gcc" ; then
30079 TAPEDRIVE="/dev/nrmt0"
30082 DISTVER=`uname -a |awk '{print $3}'`
30083 TAPEDRIVE="/dev/nrmt0"
30084 PTHREAD_LIB="-pthread"
30085 CFLAGS="${CFLAGS} -pthread"
30086 PSCMD="ps -ax -o pid,command"
30089 PFILES="${PFILES} \
30090 platforms/bsdi/Makefile \
30091 platforms/bsdi/bacula-fd \
30092 platforms/bsdi/bacula-sd \
30093 platforms/bsdi/bacula-dir"
30094 largefile_support="yes"
30097 DISTVER=`uname -a |awk '{print $3}'`
30098 TAPEDRIVE="/dev/nrst0"
30100 WCFLAGS="-mwindows"
30101 WLDFLAGS="-mwindows"
30105 TAPEDRIVE="/dev/nst0"
30106 PSCMD="ps -e -o pid,command"
30108 PFILES="${PFILES} \
30109 platforms/darwin/Makefile"
30112 DISTVER=`cat /etc/debian_version`
30113 TAPEDRIVE="/dev/nrst0"
30114 PSCMD="ps -e -o pid,command"
30117 DISTVER=`uname -a |awk '{print $3}'`
30118 VER=`echo $DISTVER | cut -c 1`
30119 if test x$VER = x4 ; then
30120 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30121 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30125 TAPEDRIVE="/dev/nrsa0"
30126 PSCMD="ps -ax -o pid,command"
30127 PFILES="${PFILES} \
30128 platforms/freebsd/Makefile \
30129 platforms/freebsd/bacula-fd \
30130 platforms/freebsd/bacula-sd \
30131 platforms/freebsd/bacula-dir"
30132 largefile_support="yes"
30135 PSCMD="UNIX95=1; ps -e -o pid,comm"
30136 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30138 TAPEDRIVE="/dev/rmt/0hnb"
30139 PTHREAD_LIB="-lpthread"
30140 cat >>confdefs.h <<\_ACEOF
30141 #define _INCLUDE_LONGLONG 1
30147 TAPEDRIVE="/dev/rmt/0cbn"
30148 PSCMD="ps -e -o pid,comm"
30149 PFILES="${PFILES} \
30150 platforms/irix/Makefile \
30151 platforms/irix/bacula-fd \
30152 platforms/irix/bacula-sd \
30153 platforms/irix/bacula-dir"
30156 DISTVER=`uname -a |awk '{print $3}'`
30159 TAPEDRIVE="/dev/nrst0"
30160 PSCMD="ps -ax -o pid,command"
30161 PTHREAD_LIB="-pthread"
30162 CFLAGS="${CFLAGS} -pthread"
30165 DISTVER=`uname -a |awk '{print $3}'`
30168 TAPEDRIVE="/dev/nrst0"
30169 PSCMD="ps -ax -o pid,command"
30170 PTHREAD_LIB="-pthread"
30171 CFLAGS="${CFLAGS} -pthread"
30172 PFILES="${PFILES} \
30173 platforms/openbsd/Makefile \
30174 platforms/openbsd/bacula-fd \
30175 platforms/openbsd/bacula-sd \
30176 platforms/openbsd/bacula-dir"
30179 if test -f /etc/whitebox-release ; then
30180 f=/etc/whitebox-release
30182 f=/etc/redhat-release
30184 if test `cat $f | grep release |\
30185 cut -f 3 -d ' '`x = "Enterprise"x ; then
30186 DISTVER="Enterprise "`cat $f | grep release |\
30189 DISTVER=`cat /etc/redhat-release | grep release |\
30192 TAPEDRIVE="/dev/nst0"
30193 PSCMD="ps -e -o pid,command"
30194 PFILES="${PFILES} \
30195 platforms/redhat/Makefile \
30196 platforms/redhat/bacula-fd \
30197 platforms/redhat/bacula-sd \
30198 platforms/redhat/bacula-dir \
30199 platforms/redhat/bacula.spec \
30203 DISTVER=`cat /etc/mandrake-release | grep release |\
30205 TAPEDRIVE="/dev/nst0"
30206 PSCMD="ps -e -o pid,command"
30207 PFILES="${PFILES} \
30208 platforms/mandrake/Makefile \
30209 platforms/mandrake/bacula-fd \
30210 platforms/mandrake/bacula-sd \
30211 platforms/mandrake/bacula-dir \
30212 platforms/mandrake/bacula.spec \
30216 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30217 TAPEDRIVE="/dev/nst0"
30218 PSCMD="ps -e -o pid,command"
30219 PFILES="${PFILES} \
30220 platforms/gentoo/Makefile \
30221 platforms/gentoo/bacula-init \
30222 platforms/gentoo/bacula-fd \
30223 platforms/gentoo/bacula-sd \
30224 platforms/gentoo/bacula-dir"
30227 DISTVER=`cat /etc/slackware-version`
30228 TAPEDRIVE="/dev/nst0"
30229 PSCMD="ps -e -o pid,command"
30230 PFILES="${PFILES} \
30231 platforms/slackware/Makefile \
30232 platforms/slackware/rc.bacula-fd \
30233 platforms/slackware/rc.bacula-sd \
30234 platforms/slackware/rc.bacula-dir\
30235 platforms/slackware/functions.bacula"
30239 TAPEDRIVE="/dev/rmt/0cbn"
30240 PSCMD="ps -e -o pid,comm"
30241 PFILES="${PFILES} \
30242 platforms/solaris/Makefile \
30243 platforms/solaris/bacula-fd \
30244 platforms/solaris/bacula-sd \
30245 platforms/solaris/bacula-dir"
30246 if test x$DISTVER = x5.6 ; then
30247 cat >>confdefs.h <<\_ACEOF
30248 #define HAVE_OLD_SOCKOPT 1
30252 LIBS="$LIBS -lresolv"
30255 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30257 TAPEDRIVE="/dev/nst0"
30258 PSCMD="ps -e -o pid,command"
30259 PFILES="${PFILES} \
30260 platforms/suse/Makefile \
30261 platforms/suse/bacula-fd \
30262 platforms/suse/bacula-sd \
30263 platforms/suse/bacula-dir \
30264 platforms/suse/bacula \
30265 platforms/suse/bacula.spec"
30270 TAPEDRIVE="/dev/nst0"
30271 PSCMD="ps -e -o pid,command"
30272 PFILES="${PFILES} \
30273 platforms/suse/Makefile \
30274 platforms/suse/bacula-fd \
30275 platforms/suse/bacula-sd \
30276 platforms/suse/bacula-dir"
30280 TAPEDRIVE="/dev/nst0"
30283 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30289 LIBS="$PTHREAD_LIB $LIBS"
30291 cat >>confdefs.h <<_ACEOF
30295 cat >>confdefs.h <<_ACEOF
30306 MCOMMON=./autoconf/Make.common
30309 if test "x${subsysdir}" = "x${sbindir}" ; then
30312 echo "You have set both --sbindir and --with-subsys-dir"
30313 echo " equal to: ${subsysdir} "
30314 echo "This is not permitted. Please reconfigure."
30316 echo "Aborting configuration ..."
30322 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"
30324 ac_config_commands="$ac_config_commands default"
30326 cat >confcache <<\_ACEOF
30327 # This file is a shell script that caches the results of configure
30328 # tests run on this system so they can be shared between configure
30329 # scripts and configure runs, see configure's option --config-cache.
30330 # It is not useful on other systems. If it contains results you don't
30331 # want to keep, you may remove or edit it.
30333 # config.status only pays attention to the cache file if you give it
30334 # the --recheck option to rerun configure.
30336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30338 # following values.
30342 # The following way of writing the cache mishandles newlines in values,
30343 # but we know of no workaround that is simple, portable, and efficient.
30344 # So, we kill variables containing newlines.
30345 # Ultrix sh set writes to stderr and can't be redirected directly,
30346 # and sets the high bit in the cache file unless we assign to the vars.
30348 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30349 eval ac_val=\$$ac_var
30353 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30354 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30357 _ | IFS | as_nl) ;; #(
30358 *) $as_unset $ac_var ;;
30364 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30365 *${as_nl}ac_space=\ *)
30366 # `set' does not quote correctly, so add quotes (double-quote
30367 # substitution turns \\\\ into \\, and sed turns \\ into \).
30370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30373 # `set' quotes correctly as required by POSIX, so do not add quotes.
30374 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30383 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30385 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30387 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30388 if test -w "$cache_file"; then
30389 test "x$cache_file" != "x/dev/null" &&
30390 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30391 echo "$as_me: updating cache $cache_file" >&6;}
30392 cat confcache >$cache_file
30394 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30395 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30401 # Let make expand exec_prefix.
30402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30404 DEFS=-DHAVE_CONFIG_H
30408 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30409 # 1. Remove the extension, and $U if already installed.
30410 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30411 ac_i=`echo "$ac_i" | sed "$ac_script"`
30412 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30413 # will be set to the directory where LIBOBJS objects are built.
30414 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30415 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30417 LIBOBJS=$ac_libobjs
30419 LTLIBOBJS=$ac_ltlibobjs
30423 : ${CONFIG_STATUS=./config.status}
30424 ac_clean_files_save=$ac_clean_files
30425 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30426 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30427 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30428 cat >$CONFIG_STATUS <<_ACEOF
30430 # Generated by $as_me.
30431 # Run this file to recreate the current configuration.
30432 # Compiler output produced by configure, useful for debugging
30433 # configure, is in config.log if it exists.
30436 ac_cs_recheck=false
30438 SHELL=\${CONFIG_SHELL-$SHELL}
30441 cat >>$CONFIG_STATUS <<\_ACEOF
30442 ## --------------------- ##
30443 ## M4sh Initialization. ##
30444 ## --------------------- ##
30446 # Be more Bourne compatible
30447 DUALCASE=1; export DUALCASE # for MKS sh
30448 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30451 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30452 # is contrary to our usage. Disable this feature.
30453 alias -g '${1+"$@"}'='"$@"'
30454 setopt NO_GLOB_SUBST
30456 case `(set -o) 2>/dev/null` in
30457 *posix*) set -o posix ;;
30466 # Avoid depending upon Character Ranges.
30467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30470 as_cr_digits='0123456789'
30471 as_cr_alnum=$as_cr_Letters$as_cr_digits
30473 # The user is always right.
30474 if test "${PATH_SEPARATOR+set}" != set; then
30475 echo "#! /bin/sh" >conf$$.sh
30476 echo "exit 0" >>conf$$.sh
30478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30486 # Support unset when possible.
30487 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30495 # We need space, tab and new line, in precisely that order. Quoting is
30496 # there to prevent editors from complaining about space-tab.
30497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30498 # splitting by setting IFS to empty value.)
30503 # Find who we are. Look in the path if we contain no directory separator.
30505 *[\\/]* ) as_myself=$0 ;;
30506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30507 for as_dir in $PATH
30510 test -z "$as_dir" && as_dir=.
30511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30517 # We did not find ourselves, most probably we were run as `sh COMMAND'
30518 # in which case we are not to be found in the path.
30519 if test "x$as_myself" = x; then
30522 if test ! -f "$as_myself"; then
30523 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30524 { (exit 1); exit 1; }
30527 # Work around bugs in pre-3.0 UWIN ksh.
30528 for as_var in ENV MAIL MAILPATH
30529 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30537 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30538 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30539 LC_TELEPHONE LC_TIME
30541 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30542 eval $as_var=C; export $as_var
30544 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30548 # Required to use basename.
30549 if expr a : '\(a\)' >/dev/null 2>&1 &&
30550 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30556 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30557 as_basename=basename
30563 # Name of the executable.
30564 as_me=`$as_basename -- "$0" ||
30565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30566 X"$0" : 'X\(//\)$' \| \
30567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30569 sed '/^.*\/\([^/][^/]*\)\/*$/{
30588 as_lineno_1=$LINENO
30589 as_lineno_2=$LINENO
30590 test "x$as_lineno_1" != "x$as_lineno_2" &&
30591 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30593 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30594 # uniformly replaced by the line number. The first 'sed' inserts a
30595 # line-number line after each line using $LINENO; the second 'sed'
30596 # does the real work. The second script uses 'N' to pair each
30597 # line-number line with the line containing $LINENO, and appends
30598 # trailing '-' during substitution so that $LINENO is not a special
30599 # case at line end.
30600 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30601 # scripts with optimization help from Paolo Bonzini. Blame Lee
30602 # E. McMahon (1931-1989) for sed's syntax. :-)
30614 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30617 ' >$as_me.lineno &&
30618 chmod +x "$as_me.lineno" ||
30619 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30620 { (exit 1); exit 1; }; }
30622 # Don't try to exec as it changes $[0], causing all sort of problems
30623 # (the dirname of $[0] is not the place where we might find the
30624 # original and so on. Autoconf is especially sensitive to this).
30625 . "./$as_me.lineno"
30626 # Exit status is that of the last command.
30631 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30637 ECHO_C= ECHO_N= ECHO_T=
30638 case `echo -n x` in
30640 case `echo 'x\c'` in
30641 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30648 if expr a : '\(a\)' >/dev/null 2>&1 &&
30649 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30655 rm -f conf$$ conf$$.exe conf$$.file
30656 if test -d conf$$.dir; then
30657 rm -f conf$$.dir/conf$$.file
30663 if ln -s conf$$.file conf$$ 2>/dev/null; then
30665 # ... but there are two gotchas:
30666 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30667 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30668 # In both cases, we have to default to `cp -p'.
30669 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30671 elif ln conf$$.file conf$$ 2>/dev/null; then
30676 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30677 rmdir conf$$.dir 2>/dev/null
30679 if mkdir -p . 2>/dev/null; then
30682 test -d ./-p && rmdir ./-p
30686 if test -x / >/dev/null 2>&1; then
30687 as_test_x='test -x'
30689 if ls -dL / >/dev/null 2>&1; then
30696 if test -d "$1"; then
30702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30703 ???[sx]*):;;*)false;;esac;fi
30707 as_executable_p=$as_test_x
30709 # Sed expression to map a string onto a valid CPP name.
30710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30712 # Sed expression to map a string onto a valid variable name.
30713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30718 # Save the log message, to keep $[0] and so on meaningful, and to
30719 # report actual input values of CONFIG_FILES etc. instead of their
30720 # values after options handling.
30722 This file was extended by $as_me, which was
30723 generated by GNU Autoconf 2.61. Invocation command line was
30725 CONFIG_FILES = $CONFIG_FILES
30726 CONFIG_HEADERS = $CONFIG_HEADERS
30727 CONFIG_LINKS = $CONFIG_LINKS
30728 CONFIG_COMMANDS = $CONFIG_COMMANDS
30731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30736 cat >>$CONFIG_STATUS <<_ACEOF
30737 # Files that config.status was made for.
30738 config_files="$ac_config_files"
30739 config_headers="$ac_config_headers"
30740 config_commands="$ac_config_commands"
30744 cat >>$CONFIG_STATUS <<\_ACEOF
30746 \`$as_me' instantiates files from templates according to the
30747 current configuration.
30749 Usage: $0 [OPTIONS] [FILE]...
30751 -h, --help print this help, then exit
30752 -V, --version print version number and configuration settings, then exit
30753 -q, --quiet do not print progress messages
30754 -d, --debug don't remove temporary files
30755 --recheck update $as_me by reconfiguring in the same conditions
30756 --file=FILE[:TEMPLATE]
30757 instantiate the configuration file FILE
30758 --header=FILE[:TEMPLATE]
30759 instantiate the configuration header FILE
30761 Configuration files:
30764 Configuration headers:
30767 Configuration commands:
30770 Report bugs to <bug-autoconf@gnu.org>."
30773 cat >>$CONFIG_STATUS <<_ACEOF
30776 configured by $0, generated by GNU Autoconf 2.61,
30777 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30779 Copyright (C) 2006 Free Software Foundation, Inc.
30780 This config.status script is free software; the Free Software Foundation
30781 gives unlimited permission to copy, distribute and modify it."
30788 cat >>$CONFIG_STATUS <<\_ACEOF
30789 # If no file are specified by the user, then we need to provide default
30790 # value. By we need to know if files were specified by the user.
30796 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30797 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30808 # Handling of the options.
30809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30811 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30812 echo "$ac_cs_version"; exit ;;
30813 --debug | --debu | --deb | --de | --d | -d )
30815 --file | --fil | --fi | --f )
30817 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30818 ac_need_defaults=false;;
30819 --header | --heade | --head | --hea )
30821 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30822 ac_need_defaults=false;;
30824 # Conflict between --help and --header
30825 { echo "$as_me: error: ambiguous option: $1
30826 Try \`$0 --help' for more information." >&2
30827 { (exit 1); exit 1; }; };;
30828 --help | --hel | -h )
30829 echo "$ac_cs_usage"; exit ;;
30830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30831 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30834 # This is an error.
30835 -*) { echo "$as_me: error: unrecognized option: $1
30836 Try \`$0 --help' for more information." >&2
30837 { (exit 1); exit 1; }; } ;;
30839 *) ac_config_targets="$ac_config_targets $1"
30840 ac_need_defaults=false ;;
30846 ac_configure_extra_args=
30848 if $ac_cs_silent; then
30850 ac_configure_extra_args="$ac_configure_extra_args --silent"
30854 cat >>$CONFIG_STATUS <<_ACEOF
30855 if \$ac_cs_recheck; then
30856 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30857 CONFIG_SHELL=$SHELL
30858 export CONFIG_SHELL
30859 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30863 cat >>$CONFIG_STATUS <<\_ACEOF
30867 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30868 ## Running $as_me. ##
30874 cat >>$CONFIG_STATUS <<_ACEOF
30878 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30879 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30881 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30882 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30883 LINGUAS="${LINGUAS-%UNSET%}"
30888 cat >>$CONFIG_STATUS <<\_ACEOF
30890 # Handling of arguments.
30891 for ac_config_target in $ac_config_targets
30893 case $ac_config_target in
30894 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30895 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30896 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30898 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30899 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30900 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30901 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30902 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30903 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30904 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30905 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30906 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30907 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30908 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30909 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30910 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30911 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30912 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30913 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30914 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30915 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30916 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30917 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30918 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30919 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30920 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30921 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30922 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30923 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30924 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30925 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30926 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30927 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30928 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30929 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30930 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30931 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30932 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30933 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30934 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30935 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30936 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30937 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30938 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30939 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30940 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30941 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30942 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30943 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30944 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30945 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30946 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30947 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30948 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30949 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30950 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30951 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30952 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30953 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30954 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30955 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30956 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30957 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30958 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30959 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30960 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30961 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30962 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30963 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30964 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30965 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30966 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30967 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30968 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30969 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30970 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30971 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30972 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30973 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30974 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30975 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30976 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30977 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30978 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30979 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30980 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30981 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30982 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30983 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30984 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30985 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30986 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30987 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30988 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30989 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30990 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30991 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30992 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30993 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30994 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30995 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30996 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30997 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30998 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30999 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31001 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31003 { (exit 1); exit 1; }; };;
31008 # If the user did not use the arguments to specify the items to instantiate,
31009 # then the envvar interface is used. Set only those that are not.
31010 # We use the long form for the default assignment because of an extremely
31011 # bizarre bug on SunOS 4.1.3.
31012 if $ac_need_defaults; then
31013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31018 # Have a temporary directory for convenience. Make it in the build tree
31019 # simply because there is no reason against having it here, and in addition,
31020 # creating and moving files from /tmp can sometimes cause problems.
31021 # Hook for its removal unless debugging.
31022 # Note that there is a small window in which the directory will not be cleaned:
31023 # after its creation but before its name has been assigned to `$tmp'.
31027 trap 'exit_status=$?
31028 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31030 trap '{ (exit 1); exit 1; }' 1 2 13 15
31032 # Create a (secure) tmp directory for tmp files.
31035 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31036 test -n "$tmp" && test -d "$tmp"
31039 tmp=./conf$$-$RANDOM
31040 (umask 077 && mkdir "$tmp")
31043 echo "$me: cannot create a temporary directory in ." >&2
31044 { (exit 1); exit 1; }
31048 # Set up the sed scripts for CONFIG_FILES section.
31051 # No need to generate the scripts if there are no CONFIG_FILES.
31052 # This happens for instance when ./config.status config.h
31053 if test -n "$CONFIG_FILES"; then
31057 # Create sed commands to just substitute file output variables.
31059 # Remaining file output variables are in a fragment that also has non-file
31065 for ac_last_try in false false false false false :; do
31066 cat >conf$$subs.sed <<_ACEOF
31067 SHELL!$SHELL$ac_delim
31068 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31069 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31070 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31071 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31072 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31073 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31074 exec_prefix!$exec_prefix$ac_delim
31075 prefix!$prefix$ac_delim
31076 program_transform_name!$program_transform_name$ac_delim
31077 bindir!$bindir$ac_delim
31078 sbindir!$sbindir$ac_delim
31079 libexecdir!$libexecdir$ac_delim
31080 datarootdir!$datarootdir$ac_delim
31081 datadir!$datadir$ac_delim
31082 sysconfdir!$sysconfdir$ac_delim
31083 sharedstatedir!$sharedstatedir$ac_delim
31084 localstatedir!$localstatedir$ac_delim
31085 includedir!$includedir$ac_delim
31086 oldincludedir!$oldincludedir$ac_delim
31087 docdir!$docdir$ac_delim
31088 infodir!$infodir$ac_delim
31089 htmldir!$htmldir$ac_delim
31090 dvidir!$dvidir$ac_delim
31091 pdfdir!$pdfdir$ac_delim
31092 psdir!$psdir$ac_delim
31093 libdir!$libdir$ac_delim
31094 localedir!$localedir$ac_delim
31095 mandir!$mandir$ac_delim
31096 DEFS!$DEFS$ac_delim
31097 ECHO_C!$ECHO_C$ac_delim
31098 ECHO_N!$ECHO_N$ac_delim
31099 ECHO_T!$ECHO_T$ac_delim
31100 LIBS!$LIBS$ac_delim
31101 build_alias!$build_alias$ac_delim
31102 host_alias!$host_alias$ac_delim
31103 target_alias!$target_alias$ac_delim
31104 BUILD_DIR!$BUILD_DIR$ac_delim
31105 TOP_DIR!$TOP_DIR$ac_delim
31106 TRUEPRG!$TRUEPRG$ac_delim
31107 FALSEPRG!$FALSEPRG$ac_delim
31108 VERSION!$VERSION$ac_delim
31109 DATE!$DATE$ac_delim
31110 LSMDATE!$LSMDATE$ac_delim
31112 CFLAGS!$CFLAGS$ac_delim
31113 LDFLAGS!$LDFLAGS$ac_delim
31114 CPPFLAGS!$CPPFLAGS$ac_delim
31115 ac_ct_CC!$ac_ct_CC$ac_delim
31116 EXEEXT!$EXEEXT$ac_delim
31117 OBJEXT!$OBJEXT$ac_delim
31119 CXXFLAGS!$CXXFLAGS$ac_delim
31120 ac_ct_CXX!$ac_ct_CXX$ac_delim
31122 GREP!$GREP$ac_delim
31123 EGREP!$EGREP$ac_delim
31124 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31125 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31126 INSTALL_DATA!$INSTALL_DATA$ac_delim
31127 RANLIB!$RANLIB$ac_delim
31132 ECHO!$ECHO$ac_delim
31136 OPENSSL!$OPENSSL$ac_delim
31139 MKISOFS!$MKISOFS$ac_delim
31140 PYTHON!$PYTHON$ac_delim
31141 GROWISOFS!$GROWISOFS$ac_delim
31142 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31143 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31144 PKGCONFIG!$PKGCONFIG$ac_delim
31145 QMAKE!$QMAKE$ac_delim
31146 QMAKEQT4!$QMAKEQT4$ac_delim
31147 WXCONFIG!$WXCONFIG$ac_delim
31148 WXFLAGS!$WXFLAGS$ac_delim
31149 CDRECORD!$CDRECORD$ac_delim
31150 PIDOF!$PIDOF$ac_delim
31152 ARFLAGS!$ARFLAGS$ac_delim
31153 MAKE_SHELL!$MAKE_SHELL$ac_delim
31154 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31155 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31156 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31157 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31158 build!$build$ac_delim
31159 build_cpu!$build_cpu$ac_delim
31160 build_vendor!$build_vendor$ac_delim
31163 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31165 elif $ac_last_try; then
31166 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31167 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31168 { (exit 1); exit 1; }; }
31170 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31174 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31175 if test -n "$ac_eof"; then
31176 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31177 ac_eof=`expr $ac_eof + 1`
31180 cat >>$CONFIG_STATUS <<_ACEOF
31181 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31183 /^[ ]*@MCOMMON@[ ]*$/{
31189 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31190 s/^/s,@/; s/!/@,|#_!!_#|/
31193 s/'"$ac_delim"'$/,g/; t
31195 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31196 ' >>$CONFIG_STATUS <conf$$subs.sed
31197 rm -f conf$$subs.sed
31198 cat >>$CONFIG_STATUS <<_ACEOF
31204 for ac_last_try in false false false false false :; do
31205 cat >conf$$subs.sed <<_ACEOF
31206 build_os!$build_os$ac_delim
31207 host!$host$ac_delim
31208 host_cpu!$host_cpu$ac_delim
31209 host_vendor!$host_vendor$ac_delim
31210 host_os!$host_os$ac_delim
31211 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31212 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31213 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31214 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31215 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31216 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31217 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31218 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31219 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31220 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31221 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31222 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31223 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31224 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31225 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31226 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31227 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31228 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31229 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31230 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31231 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31232 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31233 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31234 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31235 SET_MAKE!$SET_MAKE$ac_delim
31236 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31237 USE_NLS!$USE_NLS$ac_delim
31238 MSGFMT!$MSGFMT$ac_delim
31239 GMSGFMT!$GMSGFMT$ac_delim
31240 XGETTEXT!$XGETTEXT$ac_delim
31241 MSGMERGE!$MSGMERGE$ac_delim
31242 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31243 LIBICONV!$LIBICONV$ac_delim
31244 LTLIBICONV!$LTLIBICONV$ac_delim
31245 INTLLIBS!$INTLLIBS$ac_delim
31246 LIBINTL!$LIBINTL$ac_delim
31247 LTLIBINTL!$LTLIBINTL$ac_delim
31248 POSUB!$POSUB$ac_delim
31249 GLIBC2!$GLIBC2$ac_delim
31250 ALLOCA!$ALLOCA$ac_delim
31251 GLIBC21!$GLIBC21$ac_delim
31252 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31253 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31254 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31255 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31256 INTLBISON!$INTLBISON$ac_delim
31257 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31258 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31259 CATOBJEXT!$CATOBJEXT$ac_delim
31260 DATADIRNAME!$DATADIRNAME$ac_delim
31261 INSTOBJEXT!$INSTOBJEXT$ac_delim
31262 GENCAT!$GENCAT$ac_delim
31263 INTLOBJS!$INTLOBJS$ac_delim
31264 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31265 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31266 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31267 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31268 GNOME_LIBS!$GNOME_LIBS$ac_delim
31269 GNOME_DIR!$GNOME_DIR$ac_delim
31270 BAT_DIR!$BAT_DIR$ac_delim
31271 QWT_INC!$QWT_INC$ac_delim
31272 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31273 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31274 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31275 WX_DIR!$WX_DIR$ac_delim
31276 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31277 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31278 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31279 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31280 STATIC_FD!$STATIC_FD$ac_delim
31281 STATIC_SD!$STATIC_SD$ac_delim
31282 STATIC_DIR!$STATIC_DIR$ac_delim
31283 STATIC_CONS!$STATIC_CONS$ac_delim
31284 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31285 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31286 ALL_DIRS!$ALL_DIRS$ac_delim
31287 DIRD_DIR!$DIRD_DIR$ac_delim
31288 DIR_TOOLS!$DIR_TOOLS$ac_delim
31289 STORED_DIR!$STORED_DIR$ac_delim
31290 CONS_INC!$CONS_INC$ac_delim
31291 CONS_OBJ!$CONS_OBJ$ac_delim
31292 CONS_SRC!$CONS_SRC$ac_delim
31293 CONS_LIBS!$CONS_LIBS$ac_delim
31294 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31295 READLINE_SRC!$READLINE_SRC$ac_delim
31296 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31297 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31298 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31299 OPENSSL_INC!$OPENSSL_INC$ac_delim
31300 working_dir!$working_dir$ac_delim
31301 archivedir!$archivedir$ac_delim
31302 scriptdir!$scriptdir$ac_delim
31305 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31307 elif $ac_last_try; then
31308 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31309 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31310 { (exit 1); exit 1; }; }
31312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31316 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31317 if test -n "$ac_eof"; then
31318 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31319 ac_eof=`expr $ac_eof + 1`
31322 cat >>$CONFIG_STATUS <<_ACEOF
31323 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31327 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31328 s/^/s,@/; s/!/@,|#_!!_#|/
31331 s/'"$ac_delim"'$/,g/; t
31333 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31334 ' >>$CONFIG_STATUS <conf$$subs.sed
31335 rm -f conf$$subs.sed
31336 cat >>$CONFIG_STATUS <<_ACEOF
31342 for ac_last_try in false false false false false :; do
31343 cat >conf$$subs.sed <<_ACEOF
31344 dump_email!$dump_email$ac_delim
31345 job_email!$job_email$ac_delim
31346 smtp_host!$smtp_host$ac_delim
31347 piddir!$piddir$ac_delim
31348 subsysdir!$subsysdir$ac_delim
31349 baseport!$baseport$ac_delim
31350 dir_port!$dir_port$ac_delim
31351 fd_port!$fd_port$ac_delim
31352 sd_port!$sd_port$ac_delim
31353 dir_password!$dir_password$ac_delim
31354 fd_password!$fd_password$ac_delim
31355 sd_password!$sd_password$ac_delim
31356 mon_dir_password!$mon_dir_password$ac_delim
31357 mon_fd_password!$mon_fd_password$ac_delim
31358 mon_sd_password!$mon_sd_password$ac_delim
31359 db_name!$db_name$ac_delim
31360 db_user!$db_user$ac_delim
31361 dir_user!$dir_user$ac_delim
31362 dir_group!$dir_group$ac_delim
31363 sd_user!$sd_user$ac_delim
31364 sd_group!$sd_group$ac_delim
31365 fd_user!$fd_user$ac_delim
31366 fd_group!$fd_group$ac_delim
31367 SBINPERM!$SBINPERM$ac_delim
31368 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31369 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31370 SQL_BINDIR!$SQL_BINDIR$ac_delim
31371 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31372 DB_PROG!$DB_PROG$ac_delim
31373 cats!$cats$ac_delim
31374 DB_TYPE!$DB_TYPE$ac_delim
31375 GETCONF!$GETCONF$ac_delim
31376 XMKMF!$XMKMF$ac_delim
31377 X_CFLAGS!$X_CFLAGS$ac_delim
31378 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31379 X_LIBS!$X_LIBS$ac_delim
31380 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31381 LIBOBJS!$LIBOBJS$ac_delim
31382 FDLIBS!$FDLIBS$ac_delim
31383 DEBUG!$DEBUG$ac_delim
31384 DINCLUDE!$DINCLUDE$ac_delim
31385 DLIB!$DLIB$ac_delim
31386 DB_LIBS!$DB_LIBS$ac_delim
31387 WCFLAGS!$WCFLAGS$ac_delim
31388 WLDFLAGS!$WLDFLAGS$ac_delim
31389 WRAPLIBS!$WRAPLIBS$ac_delim
31390 OBJLIST!$OBJLIST$ac_delim
31391 hostname!$hostname$ac_delim
31392 TAPEDRIVE!$TAPEDRIVE$ac_delim
31393 PSCMD!$PSCMD$ac_delim
31394 WIN32!$WIN32$ac_delim
31395 MACOSX!$MACOSX$ac_delim
31396 DISTNAME!$DISTNAME$ac_delim
31397 DISTVER!$DISTVER$ac_delim
31398 LTLIBOBJS!$LTLIBOBJS$ac_delim
31401 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
31403 elif $ac_last_try; then
31404 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31405 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31406 { (exit 1); exit 1; }; }
31408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31412 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31413 if test -n "$ac_eof"; then
31414 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31415 ac_eof=`expr $ac_eof + 1`
31418 cat >>$CONFIG_STATUS <<_ACEOF
31419 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31423 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31424 s/^/s,@/; s/!/@,|#_!!_#|/
31427 s/'"$ac_delim"'$/,g/; t
31429 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31430 ' >>$CONFIG_STATUS <conf$$subs.sed
31431 rm -f conf$$subs.sed
31432 cat >>$CONFIG_STATUS <<_ACEOF
31439 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31440 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31441 # trailing colons and then remove the whole line if VPATH becomes empty
31442 # (actually we leave an empty line to preserve line numbers).
31443 if test "x$srcdir" = x.; then
31444 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31445 s/:*\$(srcdir):*/:/
31446 s/:*\${srcdir}:*/:/
31448 s/^\([^=]*=[ ]*\):*/\1/
31454 cat >>$CONFIG_STATUS <<\_ACEOF
31455 fi # test -n "$CONFIG_FILES"
31458 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31461 :[FHLC]) ac_mode=$ac_tag; continue;;
31463 case $ac_mode$ac_tag in
31465 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31466 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31467 { (exit 1); exit 1; }; };;
31468 :[FH]-) ac_tag=-:-;;
31469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31486 -) ac_f="$tmp/stdin";;
31487 *) # Look for the file first in the build tree, then in the source tree
31488 # (if the path is not absolute). The absolute path cannot be DOS-style,
31489 # because $ac_f cannot contain `:'.
31493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31495 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31496 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31497 { (exit 1); exit 1; }; };;
31499 ac_file_inputs="$ac_file_inputs $ac_f"
31502 # Let's still pretend it is `configure' which instantiates (i.e., don't
31503 # use $as_me), people would be surprised to read:
31504 # /* config.h. Generated by config.status. */
31505 configure_input="Generated from "`IFS=:
31506 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31507 if test x"$ac_file" != x-; then
31508 configure_input="$ac_file. $configure_input"
31509 { echo "$as_me:$LINENO: creating $ac_file" >&5
31510 echo "$as_me: creating $ac_file" >&6;}
31514 *:-:* | *:-) cat >"$tmp/stdin";;
31519 ac_dir=`$as_dirname -- "$ac_file" ||
31520 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31521 X"$ac_file" : 'X\(//\)[^/]' \| \
31522 X"$ac_file" : 'X\(//\)$' \| \
31523 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31529 /^X\(\/\/\)[^/].*/{
31544 -*) as_dir=./$as_dir;;
31546 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31550 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31551 *) as_qdir=$as_dir;;
31553 as_dirs="'$as_qdir' $as_dirs"
31554 as_dir=`$as_dirname -- "$as_dir" ||
31555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31556 X"$as_dir" : 'X\(//\)[^/]' \| \
31557 X"$as_dir" : 'X\(//\)$' \| \
31558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31564 /^X\(\/\/\)[^/].*/{
31577 test -d "$as_dir" && break
31579 test -z "$as_dirs" || eval "mkdir $as_dirs"
31580 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31581 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31582 { (exit 1); exit 1; }; }; }
31586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31589 # A ".." for each directory in $ac_dir_suffix.
31590 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31591 case $ac_top_builddir_sub in
31592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31596 ac_abs_top_builddir=$ac_pwd
31597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31598 # for backward compatibility:
31599 ac_top_builddir=$ac_top_build_prefix
31602 .) # We are building in place.
31604 ac_top_srcdir=$ac_top_builddir_sub
31605 ac_abs_top_srcdir=$ac_pwd ;;
31606 [\\/]* | ?:[\\/]* ) # Absolute name.
31607 ac_srcdir=$srcdir$ac_dir_suffix;
31608 ac_top_srcdir=$srcdir
31609 ac_abs_top_srcdir=$srcdir ;;
31610 *) # Relative name.
31611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31612 ac_top_srcdir=$ac_top_build_prefix$srcdir
31613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31626 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31630 cat >>$CONFIG_STATUS <<\_ACEOF
31631 # If the template does not know about datarootdir, expand it.
31632 # FIXME: This hack should be removed a few years after 2.60.
31633 ac_datarootdir_hack=; ac_datarootdir_seen=
31635 case `sed -n '/datarootdir/ {
31644 ' $ac_file_inputs` in
31645 *datarootdir*) ac_datarootdir_seen=yes;;
31646 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31647 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31648 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31650 cat >>$CONFIG_STATUS <<_ACEOF
31651 ac_datarootdir_hack='
31652 s&@datadir@&$datadir&g
31653 s&@docdir@&$docdir&g
31654 s&@infodir@&$infodir&g
31655 s&@localedir@&$localedir&g
31656 s&@mandir@&$mandir&g
31657 s&\\\${datarootdir}&$datarootdir&g' ;;
31661 # Neutralize VPATH when `$srcdir' = `.'.
31662 # Shell code in configure.ac might set extrasub.
31663 # FIXME: do we really want to maintain this feature?
31664 cat >>$CONFIG_STATUS <<_ACEOF
31668 cat >>$CONFIG_STATUS <<\_ACEOF
31670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31671 s&@configure_input@&$configure_input&;t t
31672 s&@top_builddir@&$ac_top_builddir_sub&;t t
31673 s&@srcdir@&$ac_srcdir&;t t
31674 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31675 s&@top_srcdir@&$ac_top_srcdir&;t t
31676 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31677 s&@builddir@&$ac_builddir&;t t
31678 s&@abs_builddir@&$ac_abs_builddir&;t t
31679 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31680 s&@INSTALL@&$ac_INSTALL&;t t
31681 $ac_datarootdir_hack
31682 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31684 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31685 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31686 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31687 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31688 which seems to be undefined. Please make sure it is defined." >&5
31689 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31690 which seems to be undefined. Please make sure it is defined." >&2;}
31694 -) cat "$tmp/out"; rm -f "$tmp/out";;
31695 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31704 # Transform confdefs.h into a sed script `conftest.defines', that
31705 # substitutes the proper values into config.h.in to produce config.h.
31706 rm -f conftest.defines conftest.tail
31707 # First, append a space to every undef/define line, to ease matching.
31708 echo 's/$/ /' >conftest.defines
31709 # Then, protect against being on the right side of a sed subst, or in
31710 # an unquoted here document, in config.status. If some macros were
31711 # called several times there might be several #defines for the same
31712 # symbol, which is useless. But do not sort them, since the last
31713 # AC_DEFINE must be honored.
31714 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31715 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31716 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31717 # PARAMS is the parameter list in the macro definition--in most cases, it's
31718 # just an empty string.
31719 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31720 ac_dB='\\)[ (].*,\\1define\\2'
31728 s/^[ ]*#[ ]*define[ ][ ]*//
31733 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31734 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31735 ' >>conftest.defines
31737 # Remove the space that was appended to ease matching.
31738 # Then replace #undef with comments. This is necessary, for
31739 # example, in the case of _POSIX_SOURCE, which is predefined and required
31740 # on some systems where configure will not decide to define it.
31741 # (The regexp can be short, since the line contains either #define or #undef.)
31743 s,^[ #]*u.*,/* & */,' >>conftest.defines
31745 # Break up conftest.defines:
31746 ac_max_sed_lines=50
31748 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31749 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31750 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31752 ac_in='$ac_file_inputs'
31753 ac_out='"$tmp/out1"'
31754 ac_nxt='"$tmp/out2"'
31758 # Write a here document:
31759 cat >>$CONFIG_STATUS <<_ACEOF
31760 # First, check the format of the line:
31761 cat >"\$tmp/defines.sed" <<\\CEOF
31762 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31763 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31767 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31769 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31770 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31771 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31772 grep . conftest.tail >/dev/null || break
31773 rm -f conftest.defines
31774 mv conftest.tail conftest.defines
31776 rm -f conftest.defines conftest.tail
31778 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31779 cat >>$CONFIG_STATUS <<\_ACEOF
31780 if test x"$ac_file" != x-; then
31781 echo "/* $configure_input */" >"$tmp/config.h"
31782 cat "$ac_result" >>"$tmp/config.h"
31783 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31784 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31785 echo "$as_me: $ac_file is unchanged" >&6;}
31788 mv "$tmp/config.h" $ac_file
31791 echo "/* $configure_input */"
31797 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31798 echo "$as_me: executing $ac_file commands" >&6;}
31803 case $ac_file$ac_mode in
31805 for ac_file in $CONFIG_FILES; do
31806 # Support "outfile[:infile[:infile...]]"
31808 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31810 # PO directories have a Makefile.in generated from Makefile.in.in.
31811 case "$ac_file" in */Makefile.in)
31812 # Adjust a relative srcdir.
31813 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31814 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31815 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31816 # In autoconf-2.13 it is called $ac_given_srcdir.
31817 # In autoconf-2.50 it is called $srcdir.
31818 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31819 case "$ac_given_srcdir" in
31820 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31821 /*) top_srcdir="$ac_given_srcdir" ;;
31822 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31824 # Treat a directory as a PO directory if and only if it has a
31825 # POTFILES.in file. This allows packages to have multiple PO
31826 # directories under different names or in different locations.
31827 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31828 rm -f "$ac_dir/POTFILES"
31829 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31830 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31831 POMAKEFILEDEPS="POTFILES.in"
31832 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31833 # on $ac_dir but don't depend on user-specified configuration
31835 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31836 # The LINGUAS file contains the set of available languages.
31837 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31838 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31840 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31841 # Hide the ALL_LINGUAS assigment from automake.
31842 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31843 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31845 # The set of available languages was given in configure.in.
31846 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31849 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31850 # Compute UPDATEPOFILES
31851 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31852 # Compute DUMMYPOFILES
31853 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31855 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31856 case "$ac_given_srcdir" in
31858 *) srcdirpre='$(srcdir)/' ;;
31864 for lang in $ALL_LINGUAS; do
31865 POFILES="$POFILES $srcdirpre$lang.po"
31866 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31867 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31868 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31870 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31871 # environment variable.
31873 if test -n "$ALL_LINGUAS"; then
31874 for presentlang in $ALL_LINGUAS; do
31876 if test "%UNSET%" != "$LINGUAS"; then
31877 desiredlanguages="$LINGUAS"
31879 desiredlanguages="$ALL_LINGUAS"
31881 for desiredlang in $desiredlanguages; do
31882 # Use the presentlang catalog if desiredlang is
31883 # a. equal to presentlang, or
31884 # b. a variant of presentlang (because in this case,
31885 # presentlang can be used as a fallback for messages
31886 # which are not translated in the desiredlang catalog).
31887 case "$desiredlang" in
31888 "$presentlang"*) useit=yes;;
31891 if test $useit = yes; then
31892 INST_LINGUAS="$INST_LINGUAS $presentlang"
31897 if test -n "$INST_LINGUAS"; then
31898 for lang in $INST_LINGUAS; do
31899 CATALOGS="$CATALOGS $lang.gmo"
31902 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31903 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"
31904 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31905 if test -f "$f"; then
31907 *.orig | *.bak | *~) ;;
31908 *) cat "$f" >> "$ac_dir/Makefile" ;;
31923 { (exit 0); exit 0; }
31925 chmod +x $CONFIG_STATUS
31926 ac_clean_files=$ac_clean_files_save
31929 # configure is writing to config.log, and then calls config.status.
31930 # config.status does its own redirection, appending to config.log.
31931 # Unfortunately, on DOS this fails, as config.log is still kept open
31932 # by configure, so config.status won't be able to write to it; its
31933 # output is simply discarded. So we exec the FD to /dev/null,
31934 # effectively closing config.log, so it can be properly (re)opened and
31935 # appended to by config.status. When coming back to configure, we
31936 # need to make the FD available again.
31937 if test "$no_create" != yes; then
31939 ac_config_status_args=
31940 test "$silent" = yes &&
31941 ac_config_status_args="$ac_config_status_args --quiet"
31943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31946 # would make configure fail if this is the last instruction.
31947 $ac_cs_success || { (exit 1); exit 1; }
31951 if test "${support_bat}" = "yes" ; then
31952 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31953 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31959 if test "x$QMAKEQT4" != "xnone"; then
31966 chmod 755 install_conf_file build-depkgs-qt-console
31967 echo "Creating bat Makefile"
31972 echo "Doing make of dependencies"
31973 ${MAKE:-make} depend
31976 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31977 chmod 755 dvd-handler dvd-simulator
31978 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31983 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31984 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31986 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31987 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31989 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31990 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31992 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31993 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31995 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31996 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31998 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31999 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32001 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32002 chmod 755 $c/sqlite
32005 chmod 755 src/win32/build-depkgs-mingw32
32009 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32010 largefile_support="yes"
32014 # A whole lot of hand springs to get the compiler version.
32015 # This is because gcc changed the output in version 3.0
32017 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32018 if test "x${CCVERSION}" = "x" ; then
32019 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32021 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32022 if test x"${CXXVERSION}" = x ; then
32023 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32026 if test "x${subsysdir}" = "x${sbindir}" ; then
32029 echo "You have set --sbindir and --with-subsys-dir"
32030 echo " both equal to: ${subsysdir} "
32031 echo " This is not permitted. Please reconfigure."
32033 echo "Aborting configuration ..."
32039 if test "x${db_type}" = "xInternal" ; then
32042 echo "You have not specified either --enable-client-only or one of the"
32043 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32044 echo " This is not permitted. Please reconfigure."
32046 echo "Aborting the configuration ..."
32053 Configuration on `date`:
32055 Host: $host -- ${DISTNAME} ${DISTVER}
32056 Bacula version: ${VERSION} (${DATE})
32057 Source code location: ${srcdir}
32058 Install binaries: ${sbindir}
32059 Install config files: ${sysconfdir}
32060 Scripts directory: ${scriptdir}
32061 Archive directory: ${archivedir}
32062 Working directory: ${working_dir}
32063 PID directory: ${piddir}
32064 Subsys directory: ${subsysdir}
32065 Man directory: ${mandir}
32066 Data directory: ${datadir}
32067 C Compiler: ${CC} ${CCVERSION}
32068 C++ Compiler: ${CXX} ${CXXVERSION}
32069 Compiler flags: ${WCFLAGS} ${CFLAGS}
32070 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32072 Statically Linked Tools: ${support_static_tools}
32073 Statically Linked FD: ${support_static_fd}
32074 Statically Linked SD: ${support_static_sd}
32075 Statically Linked DIR: ${support_static_dir}
32076 Statically Linked CONS: ${support_static_cons}
32077 Database type: ${db_type}
32078 Database lib: ${DB_LIBS}
32079 Database name: ${db_name}
32080 Database user: ${db_user}
32082 Job Output Email: ${job_email}
32083 Traceback Email: ${dump_email}
32084 SMTP Host Address: ${smtp_host}
32086 Director Port: ${dir_port}
32087 File daemon Port: ${fd_port}
32088 Storage daemon Port: ${sd_port}
32090 Director User: ${dir_user}
32091 Director Group: ${dir_group}
32092 Storage Daemon User: ${sd_user}
32093 Storage DaemonGroup: ${sd_group}
32094 File Daemon User: ${fd_user}
32095 File Daemon Group: ${fd_group}
32097 SQL binaries Directory ${SQL_BINDIR}
32099 Large file support: $largefile_support
32100 Bacula conio support: ${got_conio} ${CONS_LIBS}
32101 readline support: ${got_readline} ${PRTREADLINE_SRC}
32102 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32103 TLS support: ${support_tls}
32104 Encryption support: ${support_crypto}
32105 ZLIB support: ${have_zlib}
32106 enable-smartalloc: ${support_smartalloc}
32107 bat support: ${support_bat} ${QWT_LDFLAGS}
32108 enable-gnome: ${support_gnome} ${gnome_version}
32109 enable-bwx-console: ${support_wx_console} ${wx_version}
32110 enable-tray-monitor: ${support_tray_monitor}
32111 client-only: ${build_client_only}
32112 build-dird: ${build_dird}
32113 build-stored: ${build_stored}
32114 ACL support: ${have_acl}
32115 Python support: ${support_python} ${PYTHON_LIBS}
32116 Batch insert enabled: ${support_batch_insert}