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\\\""
17972 cat >>confdefs.h <<\_ACEOF
17976 { echo "$as_me:$LINENO: result: yes" >&5
17977 echo "${ECHO_T}yes" >&6; }
17984 { echo "$as_me:$LINENO: result: no" >&5
17985 echo "${ECHO_T}no" >&6; }
17990 { echo "$as_me:$LINENO: result: no" >&5
17991 echo "${ECHO_T}no" >&6; }
18005 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18006 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18008 # Check whether --with-dbi-driver was given.
18009 if test "${with_dbi_driver+set}" = set; then
18010 withval=$with_dbi_driver;
18011 if test "$withval" != "no"; then
18015 if test -f /usr/local/mysql/bin/mysql; then
18016 SQL_BINDIR=/usr/local/mysql/bin
18017 elif test -f /usr/bin/mysql; then
18018 SQL_BINDIR=/usr/bin
18019 elif test -f /usr/local/bin/mysql; then
18020 SQL_BINDIR=/usr/local/bin
18022 { echo "$as_me:$LINENO: result: no" >&5
18023 echo "${ECHO_T}no" >&6; }
18024 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18025 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18026 { (exit 1); exit 1; }; }
18030 db_prog="postgresql"
18031 PG_CONFIG=`which pg_config`
18032 if test -n "$PG_CONFIG";then
18033 SQL_BINDIR=`"$PG_CONFIG" --bindir`
18034 elif test -f /usr/local/bin/psql; then
18035 SQL_BINDIR=/usr/local/bin
18036 elif test -f /usr/bin/psql; then
18037 SQL_BINDIR=/usr/bin
18039 { echo "$as_me:$LINENO: result: no" >&5
18040 echo "${ECHO_T}no" >&6; }
18041 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18042 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18043 { (exit 1); exit 1; }; }
18047 { echo "$as_me:$LINENO: result: no" >&5
18048 echo "${ECHO_T}no" >&6; }
18049 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18050 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18051 { (exit 1); exit 1; }; }
18055 { echo "$as_me:$LINENO: result: yes" >&5
18056 echo "${ECHO_T}yes" >&6; }
18060 { echo "$as_me:$LINENO: result: no" >&5
18061 echo "${ECHO_T}no" >&6; }
18066 { echo "$as_me:$LINENO: result: no" >&5
18067 echo "${ECHO_T}no" >&6; }
18079 # -------------------------------------------
18080 # enable batch attribute DB insert (default on)
18081 # -------------------------------------------
18082 support_batch_insert=no
18083 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18085 if test $pkg = 0; then
18086 support_batch_insert=yes
18087 # Check whether --enable-batch-insert was given.
18088 if test "${enable_batch_insert+set}" = set; then
18089 enableval=$enable_batch_insert; if test x$enableval = xno; then
18090 support_batch_insert=no
18092 support_batch_insert=yes
18098 # Check if postgresql support batch mode
18099 if test x$DB_TYPE = xpostgresql; then
18100 A=`nm $SQL_LIB | grep PQputCopyData`
18102 if test $pkg != 0; then
18103 support_batch_insert=no
18107 if test x$DB_TYPE = xdbi; then
18112 if test $support_batch_insert = yes ; then
18114 cat >>confdefs.h <<\_ACEOF
18115 #define HAVE_BATCH_FILE_INSERT 1
18121 cat >>confdefs.h <<\_ACEOF
18122 #define PROTOTYPES 1
18126 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18127 if test -z "$CCOPTS"; then
18128 CCOPTS='-g -O2 -Wall'
18136 largefile_support="no"
18138 # Check whether --enable-largefile was given.
18139 if test "${enable_largefile+set}" = set; then
18140 enableval=$enable_largefile;
18143 if test "$enable_largefile" != no; then
18144 if test -n "$ac_tool_prefix"; then
18145 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18146 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18149 if test "${ac_cv_prog_GETCONF+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 if test -n "$GETCONF"; then
18153 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18156 for as_dir in $PATH
18159 test -z "$as_dir" && as_dir=.
18160 for ac_exec_ext in '' $ac_executable_extensions; do
18161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18162 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18172 GETCONF=$ac_cv_prog_GETCONF
18173 if test -n "$GETCONF"; then
18174 { echo "$as_me:$LINENO: result: $GETCONF" >&5
18175 echo "${ECHO_T}$GETCONF" >&6; }
18177 { echo "$as_me:$LINENO: result: no" >&5
18178 echo "${ECHO_T}no" >&6; }
18183 if test -z "$ac_cv_prog_GETCONF"; then
18184 ac_ct_GETCONF=$GETCONF
18185 # Extract the first word of "getconf", so it can be a program name with args.
18186 set dummy getconf; ac_word=$2
18187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18189 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 if test -n "$ac_ct_GETCONF"; then
18193 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18196 for as_dir in $PATH
18199 test -z "$as_dir" && as_dir=.
18200 for ac_exec_ext in '' $ac_executable_extensions; do
18201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18202 ac_cv_prog_ac_ct_GETCONF="getconf"
18203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18212 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18213 if test -n "$ac_ct_GETCONF"; then
18214 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18215 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18217 { echo "$as_me:$LINENO: result: no" >&5
18218 echo "${ECHO_T}no" >&6; }
18221 if test "x$ac_ct_GETCONF" = x; then
18224 case $cross_compiling:$ac_tool_warned in
18226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18227 whose name does not start with the host triplet. If you think this
18228 configuration is useful to you, please write to autoconf@gnu.org." >&5
18229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18230 whose name does not start with the host triplet. If you think this
18231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18232 ac_tool_warned=yes ;;
18234 GETCONF=$ac_ct_GETCONF
18237 GETCONF="$ac_cv_prog_GETCONF"
18240 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18241 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18242 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18245 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18246 ac_cv_sys_largefile_CFLAGS=no
18248 # IRIX 6.2 and later require cc -n32.
18249 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18250 if test "$GCC" != yes; then
18251 ac_cv_sys_largefile_CFLAGS=-n32
18254 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18255 cat >conftest.$ac_ext <<_ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_link") 2>conftest.er1
18279 grep -v '^ *+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } && {
18284 test -z "$ac_c_werror_flag" ||
18285 test ! -s conftest.err
18286 } && test -s conftest$ac_exeext &&
18287 $as_test_x conftest$ac_exeext; then
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18293 ac_cv_sys_largefile_CFLAGS=no
18296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18297 conftest$ac_exeext conftest.$ac_ext
18302 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18303 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18304 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18305 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18306 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18310 ac_cv_sys_largefile_LDFLAGS=no
18314 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18315 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18316 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18317 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18318 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18322 ac_cv_sys_largefile_LIBS=no
18326 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18327 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18329 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18332 -D_FILE_OFFSET_BITS=*) ;;
18333 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18334 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18339 case "$CPPFLAGS" in
18340 '') CPPFLAGS="$ac_flag" ;;
18341 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18349 '') CFLAGS="$ac_flag" ;;
18350 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18355 case "$ac_cv_sys_largefile_LDFLAGS" in
18359 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18360 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18363 case "$ac_cv_sys_largefile_LIBS" in
18367 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18368 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18371 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18372 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18373 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 ac_cv_sys_file_offset_bits=no
18377 ac_cv_sys_file_offset_bits=64
18378 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18380 -D_FILE_OFFSET_BITS)
18381 ac_cv_sys_file_offset_bits=1 ;;
18382 -D_FILE_OFFSET_BITS=*)
18383 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18388 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18389 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18390 if test "$ac_cv_sys_file_offset_bits" != no; then
18392 cat >>confdefs.h <<_ACEOF
18393 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18397 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18398 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18399 if test "${ac_cv_sys_largefile_source+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18402 ac_cv_sys_largefile_source=no
18403 ac_cv_sys_largefile_source=1
18404 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18406 -D_LARGEFILE_SOURCE)
18407 ac_cv_sys_largefile_source=1 ;;
18408 -D_LARGEFILE_SOURCE=*)
18409 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18414 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18415 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18416 if test "$ac_cv_sys_largefile_source" != no; then
18418 cat >>confdefs.h <<_ACEOF
18419 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18423 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18424 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18425 if test "${ac_cv_sys_large_files+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18428 ac_cv_sys_large_files=no
18429 ac_cv_sys_large_files=1
18430 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18433 ac_cv_sys_large_files=1 ;;
18435 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18440 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18441 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18442 if test "$ac_cv_sys_large_files" != no; then
18444 cat >>confdefs.h <<_ACEOF
18445 #define _LARGE_FILES $ac_cv_sys_large_files
18453 { echo "$as_me:$LINENO: checking for X" >&5
18454 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18457 # Check whether --with-x was given.
18458 if test "${with_x+set}" = set; then
18462 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18463 if test "x$with_x" = xno; then
18464 # The user explicitly disabled X.
18467 case $x_includes,$x_libraries in #(
18468 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18469 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18470 { (exit 1); exit 1; }; };; #(
18471 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 # One or both of the vars are not set, and there is no cached value.
18475 ac_x_includes=no ac_x_libraries=no
18476 rm -f -r conftest.dir
18477 if mkdir conftest.dir; then
18479 cat >Imakefile <<'_ACEOF'
18481 @echo incroot='${INCROOT}'
18483 @echo usrlibdir='${USRLIBDIR}'
18485 @echo libdir='${LIBDIR}'
18487 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18488 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18489 for ac_var in incroot usrlibdir libdir; do
18490 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18492 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18493 for ac_extension in a so sl; do
18494 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18495 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18496 ac_im_usrlibdir=$ac_im_libdir; break
18499 # Screen out bogus values from the imake configuration. They are
18500 # bogus both because they are the default anyway, and because
18501 # using them would break gcc on systems where it needs fixed includes.
18502 case $ac_im_incroot in
18503 /usr/include) ac_x_includes= ;;
18504 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18506 case $ac_im_usrlibdir in
18507 /usr/lib | /lib) ;;
18508 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18512 rm -f -r conftest.dir
18515 # Standard set of common directories for X headers.
18516 # Check X11 before X11Rn because it is often a symlink to the current release.
18528 /usr/local/X11/include
18529 /usr/local/X11R6/include
18530 /usr/local/X11R5/include
18531 /usr/local/X11R4/include
18533 /usr/local/include/X11
18534 /usr/local/include/X11R6
18535 /usr/local/include/X11R5
18536 /usr/local/include/X11R4
18540 /usr/XFree86/include/X11
18544 /usr/unsupported/include
18545 /usr/athena/include
18546 /usr/local/x11r5/include
18547 /usr/lpp/Xamples/include
18549 /usr/openwin/include
18550 /usr/openwin/share/include'
18552 if test "$ac_x_includes" = no; then
18553 # Guess where to find include files, by looking for Xlib.h.
18554 # First, try using that file with no special directory specified.
18555 cat >conftest.$ac_ext <<_ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h. */
18561 #include <X11/Xlib.h>
18563 if { (ac_try="$ac_cpp conftest.$ac_ext"
18564 case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18571 grep -v '^ *+' conftest.er1 >conftest.err
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } >/dev/null && {
18576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18577 test ! -s conftest.err
18579 # We can compile using X headers with no special include directory.
18582 echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18585 for ac_dir in $ac_x_header_dirs; do
18586 if test -r "$ac_dir/X11/Xlib.h"; then
18587 ac_x_includes=$ac_dir
18593 rm -f conftest.err conftest.$ac_ext
18594 fi # $ac_x_includes = no
18596 if test "$ac_x_libraries" = no; then
18597 # Check for the libraries.
18598 # See if we find them without any special options.
18599 # Don't add to $LIBS permanently.
18602 cat >conftest.$ac_ext <<_ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18608 #include <X11/Xlib.h>
18617 rm -f conftest.$ac_objext conftest$ac_exeext
18618 if { (ac_try="$ac_link"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_link") 2>conftest.er1
18626 grep -v '^ *+' conftest.er1 >conftest.err
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } && {
18631 test -z "$ac_c_werror_flag" ||
18632 test ! -s conftest.err
18633 } && test -s conftest$ac_exeext &&
18634 $as_test_x conftest$ac_exeext; then
18636 # We can link X programs with no special library path.
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18643 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18645 # Don't even attempt the hair of trying to link an X program!
18646 for ac_extension in a so sl; do
18647 if test -r "$ac_dir/libX11.$ac_extension"; then
18648 ac_x_libraries=$ac_dir
18655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18656 conftest$ac_exeext conftest.$ac_ext
18657 fi # $ac_x_libraries = no
18659 case $ac_x_includes,$ac_x_libraries in #(
18660 no,* | *,no | *\'*)
18661 # Didn't find X, or a directory has "'" in its name.
18662 ac_cv_have_x="have_x=no";; #(
18664 # Record where we found X for the cache.
18665 ac_cv_have_x="have_x=yes\
18666 ac_x_includes='$ac_x_includes'\
18667 ac_x_libraries='$ac_x_libraries'"
18673 eval "$ac_cv_have_x"
18676 if test "$have_x" != yes; then
18677 { echo "$as_me:$LINENO: result: $have_x" >&5
18678 echo "${ECHO_T}$have_x" >&6; }
18681 # If each of the values was on the command line, it overrides each guess.
18682 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18683 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18684 # Update the cache value to reflect the command line values.
18685 ac_cv_have_x="have_x=yes\
18686 ac_x_includes='$x_includes'\
18687 ac_x_libraries='$x_libraries'"
18688 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18689 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18692 if test "$no_x" = yes; then
18693 # Not all programs may use this symbol, but it does not hurt to define it.
18695 cat >>confdefs.h <<\_ACEOF
18696 #define X_DISPLAY_MISSING 1
18699 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18701 if test -n "$x_includes"; then
18702 X_CFLAGS="$X_CFLAGS -I$x_includes"
18705 # It would also be nice to do this for all -L options, not just this one.
18706 if test -n "$x_libraries"; then
18707 X_LIBS="$X_LIBS -L$x_libraries"
18708 # For Solaris; some versions of Sun CC require a space after -R and
18709 # others require no space. Words are not sufficient . . . .
18710 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18711 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18712 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18713 ac_xsave_c_werror_flag=$ac_c_werror_flag
18714 ac_c_werror_flag=yes
18715 cat >conftest.$ac_ext <<_ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_link") 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && {
18744 test -z "$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 } && test -s conftest$ac_exeext &&
18747 $as_test_x conftest$ac_exeext; then
18748 { echo "$as_me:$LINENO: result: no" >&5
18749 echo "${ECHO_T}no" >&6; }
18750 X_LIBS="$X_LIBS -R$x_libraries"
18752 echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 LIBS="$ac_xsave_LIBS -R $x_libraries"
18756 cat >conftest.$ac_ext <<_ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && {
18785 test -z "$ac_c_werror_flag" ||
18786 test ! -s conftest.err
18787 } && test -s conftest$ac_exeext &&
18788 $as_test_x conftest$ac_exeext; then
18789 { echo "$as_me:$LINENO: result: yes" >&5
18790 echo "${ECHO_T}yes" >&6; }
18791 X_LIBS="$X_LIBS -R $x_libraries"
18793 echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18796 { echo "$as_me:$LINENO: result: neither works" >&5
18797 echo "${ECHO_T}neither works" >&6; }
18800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18801 conftest$ac_exeext conftest.$ac_ext
18804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18805 conftest$ac_exeext conftest.$ac_ext
18806 ac_c_werror_flag=$ac_xsave_c_werror_flag
18807 LIBS=$ac_xsave_LIBS
18810 # Check for system-dependent libraries X programs must link with.
18811 # Do this before checking for the system-independent R6 libraries
18812 # (-lICE), since we may need -lsocket or whatever for X linking.
18814 if test "$ISC" = yes; then
18815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18817 # Martyn Johnson says this is needed for Ultrix, if the X
18818 # libraries were built with DECnet support. And Karl Berry says
18819 # the Alpha needs dnet_stub (dnet does not exist).
18820 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18821 cat >conftest.$ac_ext <<_ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18834 char XOpenDisplay ();
18838 return XOpenDisplay ();
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (ac_try="$ac_link"
18845 case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850 (eval "$ac_link") 2>conftest.er1
18852 grep -v '^ *+' conftest.er1 >conftest.err
18854 cat conftest.err >&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } && {
18857 test -z "$ac_c_werror_flag" ||
18858 test ! -s conftest.err
18859 } && test -s conftest$ac_exeext &&
18860 $as_test_x conftest$ac_exeext; then
18863 echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18866 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18867 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18868 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 ac_check_lib_save_LIBS=$LIBS
18872 LIBS="-ldnet $LIBS"
18873 cat >conftest.$ac_ext <<_ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h. */
18880 /* Override any GCC internal prototype to avoid an error.
18881 Use char because int might match the return type of a GCC
18882 builtin and then its argument prototype would still apply. */
18890 return dnet_ntoa ();
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_link") 2>conftest.er1
18904 grep -v '^ *+' conftest.er1 >conftest.err
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } && {
18909 test -z "$ac_c_werror_flag" ||
18910 test ! -s conftest.err
18911 } && test -s conftest$ac_exeext &&
18912 $as_test_x conftest$ac_exeext; then
18913 ac_cv_lib_dnet_dnet_ntoa=yes
18915 echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18918 ac_cv_lib_dnet_dnet_ntoa=no
18921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18922 conftest$ac_exeext conftest.$ac_ext
18923 LIBS=$ac_check_lib_save_LIBS
18925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18926 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18927 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18928 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18931 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18932 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18933 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18934 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 ac_check_lib_save_LIBS=$LIBS
18938 LIBS="-ldnet_stub $LIBS"
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18946 /* Override any GCC internal prototype to avoid an error.
18947 Use char because int might match the return type of a GCC
18948 builtin and then its argument prototype would still apply. */
18956 return dnet_ntoa ();
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18970 grep -v '^ *+' conftest.er1 >conftest.err
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } && {
18975 test -z "$ac_c_werror_flag" ||
18976 test ! -s conftest.err
18977 } && test -s conftest$ac_exeext &&
18978 $as_test_x conftest$ac_exeext; then
18979 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 ac_cv_lib_dnet_stub_dnet_ntoa=no
18987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18988 conftest$ac_exeext conftest.$ac_ext
18989 LIBS=$ac_check_lib_save_LIBS
18991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18992 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18993 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18994 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19001 conftest$ac_exeext conftest.$ac_ext
19002 LIBS="$ac_xsave_LIBS"
19004 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19005 # to get the SysV transport functions.
19006 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19008 # The nsl library prevents programs from opening the X display
19009 # on Irix 5.2, according to T.E. Dickey.
19010 # The functions gethostbyname, getservbyname, and inet_addr are
19011 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19012 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19013 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19014 if test "${ac_cv_func_gethostbyname+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19025 #define gethostbyname innocuous_gethostbyname
19027 /* System header to define __stub macros and hopefully few prototypes,
19028 which can conflict with char gethostbyname (); below.
19029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19030 <limits.h> exists even on freestanding compilers. */
19033 # include <limits.h>
19035 # include <assert.h>
19038 #undef gethostbyname
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19046 char gethostbyname ();
19047 /* The GNU C library defines this for functions which it implements
19048 to always fail with ENOSYS. Some functions are actually named
19049 something starting with __ and the normal name is an alias. */
19050 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19057 return gethostbyname ();
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (ac_try="$ac_link"
19064 case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_link") 2>conftest.er1
19071 grep -v '^ *+' conftest.er1 >conftest.err
19073 cat conftest.err >&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); } && {
19076 test -z "$ac_c_werror_flag" ||
19077 test ! -s conftest.err
19078 } && test -s conftest$ac_exeext &&
19079 $as_test_x conftest$ac_exeext; then
19080 ac_cv_func_gethostbyname=yes
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19085 ac_cv_func_gethostbyname=no
19088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19089 conftest$ac_exeext conftest.$ac_ext
19091 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19092 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19094 if test $ac_cv_func_gethostbyname = no; then
19095 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19096 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19097 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 ac_check_lib_save_LIBS=$LIBS
19102 cat >conftest.$ac_ext <<_ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19109 /* Override any GCC internal prototype to avoid an error.
19110 Use char because int might match the return type of a GCC
19111 builtin and then its argument prototype would still apply. */
19115 char gethostbyname ();
19119 return gethostbyname ();
19124 rm -f conftest.$ac_objext conftest$ac_exeext
19125 if { (ac_try="$ac_link"
19126 case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_link") 2>conftest.er1
19133 grep -v '^ *+' conftest.er1 >conftest.err
19135 cat conftest.err >&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } && {
19138 test -z "$ac_c_werror_flag" ||
19139 test ! -s conftest.err
19140 } && test -s conftest$ac_exeext &&
19141 $as_test_x conftest$ac_exeext; then
19142 ac_cv_lib_nsl_gethostbyname=yes
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ac_cv_lib_nsl_gethostbyname=no
19150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19151 conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19155 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19156 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19160 if test $ac_cv_lib_nsl_gethostbyname = no; then
19161 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19162 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19163 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19164 echo $ECHO_N "(cached) $ECHO_C" >&6
19166 ac_check_lib_save_LIBS=$LIBS
19168 cat >conftest.$ac_ext <<_ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h. */
19175 /* Override any GCC internal prototype to avoid an error.
19176 Use char because int might match the return type of a GCC
19177 builtin and then its argument prototype would still apply. */
19181 char gethostbyname ();
19185 return gethostbyname ();
19190 rm -f conftest.$ac_objext conftest$ac_exeext
19191 if { (ac_try="$ac_link"
19192 case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_link") 2>conftest.er1
19199 grep -v '^ *+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } && {
19204 test -z "$ac_c_werror_flag" ||
19205 test ! -s conftest.err
19206 } && test -s conftest$ac_exeext &&
19207 $as_test_x conftest$ac_exeext; then
19208 ac_cv_lib_bsd_gethostbyname=yes
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 ac_cv_lib_bsd_gethostbyname=no
19216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19217 conftest$ac_exeext conftest.$ac_ext
19218 LIBS=$ac_check_lib_save_LIBS
19220 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19221 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19222 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19223 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19229 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19230 # socket/setsockopt and other routines are undefined under SCO ODT
19231 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19232 # on later versions), says Simon Leinen: it contains gethostby*
19233 # variants that don't use the name server (or something). -lsocket
19234 # must be given before -lnsl if both are needed. We assume that
19235 # if connect needs -lnsl, so does gethostbyname.
19236 { echo "$as_me:$LINENO: checking for connect" >&5
19237 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19238 if test "${ac_cv_func_connect+set}" = set; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19249 #define connect innocuous_connect
19251 /* System header to define __stub macros and hopefully few prototypes,
19252 which can conflict with char connect (); below.
19253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19254 <limits.h> exists even on freestanding compilers. */
19257 # include <limits.h>
19259 # include <assert.h>
19264 /* Override any GCC internal prototype to avoid an error.
19265 Use char because int might match the return type of a GCC
19266 builtin and then its argument prototype would still apply. */
19271 /* The GNU C library defines this for functions which it implements
19272 to always fail with ENOSYS. Some functions are actually named
19273 something starting with __ and the normal name is an alias. */
19274 #if defined __stub_connect || defined __stub___connect
19286 rm -f conftest.$ac_objext conftest$ac_exeext
19287 if { (ac_try="$ac_link"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_link") 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } && {
19300 test -z "$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19302 } && test -s conftest$ac_exeext &&
19303 $as_test_x conftest$ac_exeext; then
19304 ac_cv_func_connect=yes
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ac_cv_func_connect=no
19312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19313 conftest$ac_exeext conftest.$ac_ext
19315 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19316 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19318 if test $ac_cv_func_connect = no; then
19319 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19320 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19321 if test "${ac_cv_lib_socket_connect+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 ac_check_lib_save_LIBS=$LIBS
19325 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19326 cat >conftest.$ac_ext <<_ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h. */
19333 /* Override any GCC internal prototype to avoid an error.
19334 Use char because int might match the return type of a GCC
19335 builtin and then its argument prototype would still apply. */
19348 rm -f conftest.$ac_objext conftest$ac_exeext
19349 if { (ac_try="$ac_link"
19350 case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355 (eval "$ac_link") 2>conftest.er1
19357 grep -v '^ *+' conftest.er1 >conftest.err
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } && {
19362 test -z "$ac_c_werror_flag" ||
19363 test ! -s conftest.err
19364 } && test -s conftest$ac_exeext &&
19365 $as_test_x conftest$ac_exeext; then
19366 ac_cv_lib_socket_connect=yes
19368 echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19371 ac_cv_lib_socket_connect=no
19374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19375 conftest$ac_exeext conftest.$ac_ext
19376 LIBS=$ac_check_lib_save_LIBS
19378 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19379 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19380 if test $ac_cv_lib_socket_connect = yes; then
19381 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19386 # Guillermo Gomez says -lposix is necessary on A/UX.
19387 { echo "$as_me:$LINENO: checking for remove" >&5
19388 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19389 if test "${ac_cv_func_remove+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19400 #define remove innocuous_remove
19402 /* System header to define __stub macros and hopefully few prototypes,
19403 which can conflict with char remove (); below.
19404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19405 <limits.h> exists even on freestanding compilers. */
19408 # include <limits.h>
19410 # include <assert.h>
19415 /* Override any GCC internal prototype to avoid an error.
19416 Use char because int might match the return type of a GCC
19417 builtin and then its argument prototype would still apply. */
19422 /* The GNU C library defines this for functions which it implements
19423 to always fail with ENOSYS. Some functions are actually named
19424 something starting with __ and the normal name is an alias. */
19425 #if defined __stub_remove || defined __stub___remove
19437 rm -f conftest.$ac_objext conftest$ac_exeext
19438 if { (ac_try="$ac_link"
19439 case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_link") 2>conftest.er1
19446 grep -v '^ *+' conftest.er1 >conftest.err
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } && {
19451 test -z "$ac_c_werror_flag" ||
19452 test ! -s conftest.err
19453 } && test -s conftest$ac_exeext &&
19454 $as_test_x conftest$ac_exeext; then
19455 ac_cv_func_remove=yes
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19460 ac_cv_func_remove=no
19463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19464 conftest$ac_exeext conftest.$ac_ext
19466 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19467 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19469 if test $ac_cv_func_remove = no; then
19470 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19471 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19472 if test "${ac_cv_lib_posix_remove+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-lposix $LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19484 /* Override any GCC internal prototype to avoid an error.
19485 Use char because int might match the return type of a GCC
19486 builtin and then its argument prototype would still apply. */
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_link") 2>conftest.er1
19508 grep -v '^ *+' conftest.er1 >conftest.err
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest$ac_exeext &&
19516 $as_test_x conftest$ac_exeext; then
19517 ac_cv_lib_posix_remove=yes
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 ac_cv_lib_posix_remove=no
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526 conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19529 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19530 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19531 if test $ac_cv_lib_posix_remove = yes; then
19532 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19537 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19538 { echo "$as_me:$LINENO: checking for shmat" >&5
19539 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19540 if test "${ac_cv_func_shmat+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 cat >conftest.$ac_ext <<_ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h. */
19549 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19551 #define shmat innocuous_shmat
19553 /* System header to define __stub macros and hopefully few prototypes,
19554 which can conflict with char shmat (); below.
19555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19556 <limits.h> exists even on freestanding compilers. */
19559 # include <limits.h>
19561 # include <assert.h>
19566 /* Override any GCC internal prototype to avoid an error.
19567 Use char because int might match the return type of a GCC
19568 builtin and then its argument prototype would still apply. */
19573 /* The GNU C library defines this for functions which it implements
19574 to always fail with ENOSYS. Some functions are actually named
19575 something starting with __ and the normal name is an alias. */
19576 #if defined __stub_shmat || defined __stub___shmat
19588 rm -f conftest.$ac_objext conftest$ac_exeext
19589 if { (ac_try="$ac_link"
19590 case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_link") 2>conftest.er1
19597 grep -v '^ *+' conftest.er1 >conftest.err
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } && {
19602 test -z "$ac_c_werror_flag" ||
19603 test ! -s conftest.err
19604 } && test -s conftest$ac_exeext &&
19605 $as_test_x conftest$ac_exeext; then
19606 ac_cv_func_shmat=yes
19608 echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19611 ac_cv_func_shmat=no
19614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19615 conftest$ac_exeext conftest.$ac_ext
19617 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19618 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19620 if test $ac_cv_func_shmat = no; then
19621 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19622 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19623 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 ac_check_lib_save_LIBS=$LIBS
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19635 /* Override any GCC internal prototype to avoid an error.
19636 Use char because int might match the return type of a GCC
19637 builtin and then its argument prototype would still apply. */
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (ac_try="$ac_link"
19652 case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_link") 2>conftest.er1
19659 grep -v '^ *+' conftest.er1 >conftest.err
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } && {
19664 test -z "$ac_c_werror_flag" ||
19665 test ! -s conftest.err
19666 } && test -s conftest$ac_exeext &&
19667 $as_test_x conftest$ac_exeext; then
19668 ac_cv_lib_ipc_shmat=yes
19670 echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19673 ac_cv_lib_ipc_shmat=no
19676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19677 conftest$ac_exeext conftest.$ac_ext
19678 LIBS=$ac_check_lib_save_LIBS
19680 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19681 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19682 if test $ac_cv_lib_ipc_shmat = yes; then
19683 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19689 # Check for libraries that X11R6 Xt/Xaw programs need.
19690 ac_save_LDFLAGS=$LDFLAGS
19691 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19692 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19693 # check for ICE first), but we must link in the order -lSM -lICE or
19694 # we get undefined symbols. So assume we have SM if we have ICE.
19695 # These have to be linked with before -lX11, unlike the other
19696 # libraries we check for below, so use a different variable.
19697 # John Interrante, Karl Berry
19698 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19699 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19700 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19703 ac_check_lib_save_LIBS=$LIBS
19704 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19705 cat >conftest.$ac_ext <<_ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19712 /* Override any GCC internal prototype to avoid an error.
19713 Use char because int might match the return type of a GCC
19714 builtin and then its argument prototype would still apply. */
19718 char IceConnectionNumber ();
19722 return IceConnectionNumber ();
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (ac_try="$ac_link"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_link") 2>conftest.er1
19736 grep -v '^ *+' conftest.er1 >conftest.err
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && {
19741 test -z "$ac_c_werror_flag" ||
19742 test ! -s conftest.err
19743 } && test -s conftest$ac_exeext &&
19744 $as_test_x conftest$ac_exeext; then
19745 ac_cv_lib_ICE_IceConnectionNumber=yes
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 ac_cv_lib_ICE_IceConnectionNumber=no
19753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19754 conftest$ac_exeext conftest.$ac_ext
19755 LIBS=$ac_check_lib_save_LIBS
19757 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19758 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19759 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19760 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19763 LDFLAGS=$ac_save_LDFLAGS
19831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 ac_res=`eval echo '${'$as_ac_Header'}'`
19839 { echo "$as_me:$LINENO: result: $ac_res" >&5
19840 echo "${ECHO_T}$ac_res" >&6; }
19842 # Is the header compilable?
19843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19845 cat >conftest.$ac_ext <<_ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 $ac_includes_default
19852 #include <$ac_header>
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_compile") 2>conftest.er1
19863 grep -v '^ *+' conftest.er1 >conftest.err
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && {
19868 test -z "$ac_c_werror_flag" ||
19869 test ! -s conftest.err
19870 } && test -s conftest.$ac_objext; then
19871 ac_header_compiler=yes
19873 echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19876 ac_header_compiler=no
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19881 echo "${ECHO_T}$ac_header_compiler" >&6; }
19883 # Is the header present?
19884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19886 cat >conftest.$ac_ext <<_ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 #include <$ac_header>
19894 if { (ac_try="$ac_cpp conftest.$ac_ext"
19895 case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19902 grep -v '^ *+' conftest.er1 >conftest.err
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } >/dev/null && {
19907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19908 test ! -s conftest.err
19910 ac_header_preproc=yes
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 ac_header_preproc=no
19918 rm -f conftest.err conftest.$ac_ext
19919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19920 echo "${ECHO_T}$ac_header_preproc" >&6; }
19922 # So? What about this header?
19923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19929 ac_header_preproc=yes
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 eval "$as_ac_Header=\$ac_header_preproc"
19954 ac_res=`eval echo '${'$as_ac_Header'}'`
19955 { echo "$as_me:$LINENO: result: $ac_res" >&5
19956 echo "${ECHO_T}$ac_res" >&6; }
19959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19960 cat >>confdefs.h <<_ACEOF
19961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19968 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19970 if test "${ac_cv_header_stdc+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 cat >conftest.$ac_ext <<_ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19979 #include <stdlib.h>
19980 #include <stdarg.h>
19981 #include <string.h>
19992 rm -f conftest.$ac_objext
19993 if { (ac_try="$ac_compile"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_compile") 2>conftest.er1
20001 grep -v '^ *+' conftest.er1 >conftest.err
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
20009 ac_cv_header_stdc=yes
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20014 ac_cv_header_stdc=no
20017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 if test $ac_cv_header_stdc = yes; then
20020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 #include <string.h>
20030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20031 $EGREP "memchr" >/dev/null 2>&1; then
20034 ac_cv_header_stdc=no
20040 if test $ac_cv_header_stdc = yes; then
20041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20042 cat >conftest.$ac_ext <<_ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h. */
20048 #include <stdlib.h>
20051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20052 $EGREP "free" >/dev/null 2>&1; then
20055 ac_cv_header_stdc=no
20061 if test $ac_cv_header_stdc = yes; then
20062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20063 if test "$cross_compiling" = yes; then
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20073 #include <stdlib.h>
20074 #if ((' ' & 0x0FF) == 0x020)
20075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20078 # define ISLOWER(c) \
20079 (('a' <= (c) && (c) <= 'i') \
20080 || ('j' <= (c) && (c) <= 'r') \
20081 || ('s' <= (c) && (c) <= 'z'))
20082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20090 for (i = 0; i < 256; i++)
20091 if (XOR (islower (i), ISLOWER (i))
20092 || toupper (i) != TOUPPER (i))
20097 rm -f conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_link") 2>&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20108 { (case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_try") 2>&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20119 echo "$as_me: program exited with status $ac_status" >&5
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ( exit $ac_status )
20124 ac_cv_header_stdc=no
20126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20132 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20133 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20134 if test $ac_cv_header_stdc = yes; then
20136 cat >>confdefs.h <<\_ACEOF
20137 #define STDC_HEADERS 1
20142 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20143 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20144 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 #include <sys/types.h>
20157 return makedev(0, 0);
20162 rm -f conftest.$ac_objext conftest$ac_exeext
20163 if { (ac_try="$ac_link"
20164 case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_link") 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest$ac_exeext &&
20179 $as_test_x conftest$ac_exeext; then
20180 ac_cv_header_sys_types_h_makedev=yes
20182 echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20185 ac_cv_header_sys_types_h_makedev=no
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189 conftest$ac_exeext conftest.$ac_ext
20192 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20193 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20195 if test $ac_cv_header_sys_types_h_makedev = no; then
20196 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20197 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20198 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20199 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20200 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20203 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20205 # Is the header compilable?
20206 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20207 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20208 cat >conftest.$ac_ext <<_ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 $ac_includes_default
20215 #include <sys/mkdev.h>
20217 rm -f conftest.$ac_objext
20218 if { (ac_try="$ac_compile"
20219 case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_compile") 2>conftest.er1
20226 grep -v '^ *+' conftest.er1 >conftest.err
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } && {
20231 test -z "$ac_c_werror_flag" ||
20232 test ! -s conftest.err
20233 } && test -s conftest.$ac_objext; then
20234 ac_header_compiler=yes
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ac_header_compiler=no
20242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20244 echo "${ECHO_T}$ac_header_compiler" >&6; }
20246 # Is the header present?
20247 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20248 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 #include <sys/mkdev.h>
20257 if { (ac_try="$ac_cpp conftest.$ac_ext"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } >/dev/null && {
20270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20273 ac_header_preproc=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_header_preproc=no
20281 rm -f conftest.err conftest.$ac_ext
20282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20283 echo "${ECHO_T}$ac_header_preproc" >&6; }
20285 # So? What about this header?
20286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20288 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20289 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20290 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20291 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20292 ac_header_preproc=yes
20295 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20296 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20297 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20298 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20300 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20302 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20304 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20306 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20310 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20311 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20312 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20317 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20318 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20321 if test $ac_cv_header_sys_mkdev_h = yes; then
20323 cat >>confdefs.h <<\_ACEOF
20324 #define MAJOR_IN_MKDEV 1
20331 if test $ac_cv_header_sys_mkdev_h = no; then
20332 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20333 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20334 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20335 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20339 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20341 # Is the header compilable?
20342 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20343 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 $ac_includes_default
20351 #include <sys/sysmacros.h>
20353 rm -f conftest.$ac_objext
20354 if { (ac_try="$ac_compile"
20355 case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360 (eval "$ac_compile") 2>conftest.er1
20362 grep -v '^ *+' conftest.er1 >conftest.err
20364 cat conftest.err >&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); } && {
20367 test -z "$ac_c_werror_flag" ||
20368 test ! -s conftest.err
20369 } && test -s conftest.$ac_objext; then
20370 ac_header_compiler=yes
20372 echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20375 ac_header_compiler=no
20378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20380 echo "${ECHO_T}$ac_header_compiler" >&6; }
20382 # Is the header present?
20383 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20384 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 #include <sys/sysmacros.h>
20393 if { (ac_try="$ac_cpp conftest.$ac_ext"
20394 case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20401 grep -v '^ *+' conftest.er1 >conftest.err
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } >/dev/null && {
20406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20407 test ! -s conftest.err
20409 ac_header_preproc=yes
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20414 ac_header_preproc=no
20417 rm -f conftest.err conftest.$ac_ext
20418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20419 echo "${ECHO_T}$ac_header_preproc" >&6; }
20421 # So? What about this header?
20422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20424 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20425 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20426 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20427 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20428 ac_header_preproc=yes
20431 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20432 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20433 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20434 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20435 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20436 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20437 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20438 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20439 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20440 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20441 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20442 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20446 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20447 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20448 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20453 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20454 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20457 if test $ac_cv_header_sys_sysmacros_h = yes; then
20459 cat >>confdefs.h <<\_ACEOF
20460 #define MAJOR_IN_SYSMACROS 1
20474 ac_header_dirent=no
20475 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20476 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20477 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20478 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 cat >conftest.$ac_ext <<_ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20488 #include <sys/types.h>
20500 rm -f conftest.$ac_objext
20501 if { (ac_try="$ac_compile"
20502 case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_compile") 2>conftest.er1
20509 grep -v '^ *+' conftest.er1 >conftest.err
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } && {
20514 test -z "$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 } && test -s conftest.$ac_objext; then
20517 eval "$as_ac_Header=yes"
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 eval "$as_ac_Header=no"
20525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20527 ac_res=`eval echo '${'$as_ac_Header'}'`
20528 { echo "$as_me:$LINENO: result: $ac_res" >&5
20529 echo "${ECHO_T}$ac_res" >&6; }
20530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20531 cat >>confdefs.h <<_ACEOF
20532 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20535 ac_header_dirent=$ac_hdr; break
20539 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20540 if test $ac_header_dirent = dirent.h; then
20541 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20542 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20543 if test "${ac_cv_search_opendir+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 ac_func_search_save_LIBS=$LIBS
20547 cat >conftest.$ac_ext <<_ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20554 /* Override any GCC internal prototype to avoid an error.
20555 Use char because int might match the return type of a GCC
20556 builtin and then its argument prototype would still apply. */
20569 for ac_lib in '' dir; do
20570 if test -z "$ac_lib"; then
20571 ac_res="none required"
20574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_link") 2>conftest.er1
20585 grep -v '^ *+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest$ac_exeext &&
20593 $as_test_x conftest$ac_exeext; then
20594 ac_cv_search_opendir=$ac_res
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20604 if test "${ac_cv_search_opendir+set}" = set; then
20608 if test "${ac_cv_search_opendir+set}" = set; then
20611 ac_cv_search_opendir=no
20613 rm conftest.$ac_ext
20614 LIBS=$ac_func_search_save_LIBS
20616 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20617 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20618 ac_res=$ac_cv_search_opendir
20619 if test "$ac_res" != no; then
20620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20625 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20626 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20627 if test "${ac_cv_search_opendir+set}" = set; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 ac_func_search_save_LIBS=$LIBS
20631 cat >conftest.$ac_ext <<_ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h. */
20638 /* Override any GCC internal prototype to avoid an error.
20639 Use char because int might match the return type of a GCC
20640 builtin and then its argument prototype would still apply. */
20653 for ac_lib in '' x; do
20654 if test -z "$ac_lib"; then
20655 ac_res="none required"
20658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20660 rm -f conftest.$ac_objext conftest$ac_exeext
20661 if { (ac_try="$ac_link"
20662 case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_link") 2>conftest.er1
20669 grep -v '^ *+' conftest.er1 >conftest.err
20671 cat conftest.err >&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } && {
20674 test -z "$ac_c_werror_flag" ||
20675 test ! -s conftest.err
20676 } && test -s conftest$ac_exeext &&
20677 $as_test_x conftest$ac_exeext; then
20678 ac_cv_search_opendir=$ac_res
20680 echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20688 if test "${ac_cv_search_opendir+set}" = set; then
20692 if test "${ac_cv_search_opendir+set}" = set; then
20695 ac_cv_search_opendir=no
20697 rm conftest.$ac_ext
20698 LIBS=$ac_func_search_save_LIBS
20700 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20701 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20702 ac_res=$ac_cv_search_opendir
20703 if test "$ac_res" != no; then
20704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20710 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20711 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20712 if test "${ac_cv_header_stat_broken+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 cat >conftest.$ac_ext <<_ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20721 #include <sys/types.h>
20722 #include <sys/stat.h>
20724 #if defined S_ISBLK && defined S_IFDIR
20725 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20728 #if defined S_ISBLK && defined S_IFCHR
20729 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20732 #if defined S_ISLNK && defined S_IFREG
20733 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20736 #if defined S_ISSOCK && defined S_IFREG
20737 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20741 rm -f conftest.$ac_objext
20742 if { (ac_try="$ac_compile"
20743 case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_compile") 2>conftest.er1
20750 grep -v '^ *+' conftest.er1 >conftest.err
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && {
20755 test -z "$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20757 } && test -s conftest.$ac_objext; then
20758 ac_cv_header_stat_broken=no
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ac_cv_header_stat_broken=yes
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20768 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20769 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20770 if test $ac_cv_header_stat_broken = yes; then
20772 cat >>confdefs.h <<\_ACEOF
20773 #define STAT_MACROS_BROKEN 1
20778 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20779 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20780 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20783 cat >conftest.$ac_ext <<_ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20789 #include <sys/types.h>
20790 #include <sys/wait.h>
20791 #ifndef WEXITSTATUS
20792 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20795 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20803 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20808 rm -f conftest.$ac_objext
20809 if { (ac_try="$ac_compile"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_compile") 2>conftest.er1
20817 grep -v '^ *+' conftest.er1 >conftest.err
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && {
20822 test -z "$ac_c_werror_flag" ||
20823 test ! -s conftest.err
20824 } && test -s conftest.$ac_objext; then
20825 ac_cv_header_sys_wait_h=yes
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20830 ac_cv_header_sys_wait_h=no
20833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20835 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20836 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20837 if test $ac_cv_header_sys_wait_h = yes; then
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_SYS_WAIT_H 1
20845 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20846 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20847 if test "${ac_cv_header_time+set}" = set; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20850 cat >conftest.$ac_ext <<_ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20856 #include <sys/types.h>
20857 #include <sys/time.h>
20863 if ((struct tm *) 0)
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_compile") 2>conftest.er1
20878 grep -v '^ *+' conftest.er1 >conftest.err
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } && {
20883 test -z "$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 } && test -s conftest.$ac_objext; then
20886 ac_cv_header_time=yes
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 ac_cv_header_time=no
20894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20896 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20897 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20898 if test $ac_cv_header_time = yes; then
20900 cat >>confdefs.h <<\_ACEOF
20901 #define TIME_WITH_SYS_TIME 1
20906 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20907 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20908 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20911 cat >conftest.$ac_ext <<_ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 $ac_includes_default
20921 static struct stat ac_aggr;
20922 if (ac_aggr.st_blksize)
20928 rm -f conftest.$ac_objext
20929 if { (ac_try="$ac_compile"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_compile") 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } && {
20942 test -z "$ac_c_werror_flag" ||
20943 test ! -s conftest.err
20944 } && test -s conftest.$ac_objext; then
20945 ac_cv_member_struct_stat_st_blksize=yes
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 $ac_includes_default
20960 static struct stat ac_aggr;
20961 if (sizeof ac_aggr.st_blksize)
20967 rm -f conftest.$ac_objext
20968 if { (ac_try="$ac_compile"
20969 case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_compile") 2>conftest.er1
20976 grep -v '^ *+' conftest.er1 >conftest.err
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } && {
20981 test -z "$ac_c_werror_flag" ||
20982 test ! -s conftest.err
20983 } && test -s conftest.$ac_objext; then
20984 ac_cv_member_struct_stat_st_blksize=yes
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_cv_member_struct_stat_st_blksize=no
20992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20997 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20998 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20999 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21001 cat >>confdefs.h <<_ACEOF
21002 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21006 cat >>confdefs.h <<\_ACEOF
21007 #define HAVE_ST_BLKSIZE 1
21013 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21014 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21015 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 cat >conftest.$ac_ext <<_ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h. */
21024 $ac_includes_default
21028 static struct stat ac_aggr;
21029 if (ac_aggr.st_blocks)
21035 rm -f conftest.$ac_objext
21036 if { (ac_try="$ac_compile"
21037 case "(($ac_try" in
21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039 *) ac_try_echo=$ac_try;;
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042 (eval "$ac_compile") 2>conftest.er1
21044 grep -v '^ *+' conftest.er1 >conftest.err
21046 cat conftest.err >&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } && {
21049 test -z "$ac_c_werror_flag" ||
21050 test ! -s conftest.err
21051 } && test -s conftest.$ac_objext; then
21052 ac_cv_member_struct_stat_st_blocks=yes
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 cat >conftest.$ac_ext <<_ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21063 $ac_includes_default
21067 static struct stat ac_aggr;
21068 if (sizeof ac_aggr.st_blocks)
21074 rm -f conftest.$ac_objext
21075 if { (ac_try="$ac_compile"
21076 case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_compile") 2>conftest.er1
21083 grep -v '^ *+' conftest.er1 >conftest.err
21085 cat conftest.err >&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } && {
21088 test -z "$ac_c_werror_flag" ||
21089 test ! -s conftest.err
21090 } && test -s conftest.$ac_objext; then
21091 ac_cv_member_struct_stat_st_blocks=yes
21093 echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21096 ac_cv_member_struct_stat_st_blocks=no
21099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21105 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21106 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21108 cat >>confdefs.h <<_ACEOF
21109 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21113 cat >>confdefs.h <<\_ACEOF
21114 #define HAVE_ST_BLOCKS 1
21118 case " $LIBOBJS " in
21119 *" fileblocks.$ac_objext "* ) ;;
21120 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21127 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21128 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21129 if test "${ac_cv_struct_tm+set}" = set; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21132 cat >conftest.$ac_ext <<_ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h. */
21138 #include <sys/types.h>
21145 int *p = &tm.tm_sec;
21151 rm -f conftest.$ac_objext
21152 if { (ac_try="$ac_compile"
21153 case "(($ac_try" in
21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155 *) ac_try_echo=$ac_try;;
21157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21158 (eval "$ac_compile") 2>conftest.er1
21160 grep -v '^ *+' conftest.er1 >conftest.err
21162 cat conftest.err >&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } && {
21165 test -z "$ac_c_werror_flag" ||
21166 test ! -s conftest.err
21167 } && test -s conftest.$ac_objext; then
21168 ac_cv_struct_tm=time.h
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ac_cv_struct_tm=sys/time.h
21176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21178 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21179 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21180 if test $ac_cv_struct_tm = sys/time.h; then
21182 cat >>confdefs.h <<\_ACEOF
21183 #define TM_IN_SYS_TIME 1
21188 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21189 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21190 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 cat >conftest.$ac_ext <<_ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 #include <sys/types.h>
21200 #include <$ac_cv_struct_tm>
21206 static struct tm ac_aggr;
21207 if (ac_aggr.tm_zone)
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_compile") 2>conftest.er1
21222 grep -v '^ *+' conftest.er1 >conftest.err
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } && {
21227 test -z "$ac_c_werror_flag" ||
21228 test ! -s conftest.err
21229 } && test -s conftest.$ac_objext; then
21230 ac_cv_member_struct_tm_tm_zone=yes
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 cat >conftest.$ac_ext <<_ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21241 #include <sys/types.h>
21242 #include <$ac_cv_struct_tm>
21248 static struct tm ac_aggr;
21249 if (sizeof ac_aggr.tm_zone)
21255 rm -f conftest.$ac_objext
21256 if { (ac_try="$ac_compile"
21257 case "(($ac_try" in
21258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259 *) ac_try_echo=$ac_try;;
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262 (eval "$ac_compile") 2>conftest.er1
21264 grep -v '^ *+' conftest.er1 >conftest.err
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } && {
21269 test -z "$ac_c_werror_flag" ||
21270 test ! -s conftest.err
21271 } && test -s conftest.$ac_objext; then
21272 ac_cv_member_struct_tm_tm_zone=yes
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21277 ac_cv_member_struct_tm_tm_zone=no
21280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21286 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21287 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21289 cat >>confdefs.h <<_ACEOF
21290 #define HAVE_STRUCT_TM_TM_ZONE 1
21296 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21298 cat >>confdefs.h <<\_ACEOF
21299 #define HAVE_TM_ZONE 1
21303 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21304 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21305 if test "${ac_cv_have_decl_tzname+set}" = set; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 cat >conftest.$ac_ext <<_ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21327 rm -f conftest.$ac_objext
21328 if { (ac_try="$ac_compile"
21329 case "(($ac_try" in
21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331 *) ac_try_echo=$ac_try;;
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334 (eval "$ac_compile") 2>conftest.er1
21336 grep -v '^ *+' conftest.er1 >conftest.err
21338 cat conftest.err >&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } && {
21341 test -z "$ac_c_werror_flag" ||
21342 test ! -s conftest.err
21343 } && test -s conftest.$ac_objext; then
21344 ac_cv_have_decl_tzname=yes
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ac_cv_have_decl_tzname=no
21352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21355 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21356 if test $ac_cv_have_decl_tzname = yes; then
21358 cat >>confdefs.h <<_ACEOF
21359 #define HAVE_DECL_TZNAME 1
21364 cat >>confdefs.h <<_ACEOF
21365 #define HAVE_DECL_TZNAME 0
21372 { echo "$as_me:$LINENO: checking for tzname" >&5
21373 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21374 if test "${ac_cv_var_tzname+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 cat >conftest.$ac_ext <<_ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h. */
21384 #if !HAVE_DECL_TZNAME
21385 extern char *tzname[];
21391 return tzname[0][0];
21396 rm -f conftest.$ac_objext conftest$ac_exeext
21397 if { (ac_try="$ac_link"
21398 case "(($ac_try" in
21399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400 *) ac_try_echo=$ac_try;;
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403 (eval "$ac_link") 2>conftest.er1
21405 grep -v '^ *+' conftest.er1 >conftest.err
21407 cat conftest.err >&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } && {
21410 test -z "$ac_c_werror_flag" ||
21411 test ! -s conftest.err
21412 } && test -s conftest$ac_exeext &&
21413 $as_test_x conftest$ac_exeext; then
21414 ac_cv_var_tzname=yes
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 ac_cv_var_tzname=no
21422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21423 conftest$ac_exeext conftest.$ac_ext
21425 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21426 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21427 if test $ac_cv_var_tzname = yes; then
21429 cat >>confdefs.h <<\_ACEOF
21430 #define HAVE_TZNAME 1
21437 { echo "$as_me:$LINENO: checking for utime.h" >&5
21438 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21439 if test "${ba_cv_header_utime_h+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21442 cat >conftest.$ac_ext <<_ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21449 #include <sys/types.h>
21459 rm -f conftest.$ac_objext
21460 if { (ac_try="$ac_compile"
21461 case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_compile") 2>conftest.er1
21468 grep -v '^ *+' conftest.er1 >conftest.err
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } && {
21473 test -z "$ac_c_werror_flag" ||
21474 test ! -s conftest.err
21475 } && test -s conftest.$ac_objext; then
21476 ba_cv_header_utime_h=yes
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 ba_cv_header_utime_h=no
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21486 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21487 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21488 test $ba_cv_header_utime_h = yes &&
21489 cat >>confdefs.h <<\_ACEOF
21490 #define HAVE_UTIME_H 1
21494 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21495 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21496 if test "${ba_cv_header_socklen_t+set}" = set; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21499 cat >conftest.$ac_ext <<_ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21506 #include <sys/types.h>
21507 #include <sys/socket.h>
21516 rm -f conftest.$ac_objext
21517 if { (ac_try="$ac_compile"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523 (eval "$ac_compile") 2>conftest.er1
21525 grep -v '^ *+' conftest.er1 >conftest.err
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } && {
21530 test -z "$ac_c_werror_flag" ||
21531 test ! -s conftest.err
21532 } && test -s conftest.$ac_objext; then
21533 ba_cv_header_socklen_t=yes
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21538 ba_cv_header_socklen_t=no
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21544 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21545 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21546 #define HAVE_SOCKLEN_T 1
21550 { echo "$as_me:$LINENO: checking for bigendian" >&5
21551 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21552 if test "${ba_cv_bigendian+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 if test "$cross_compiling" = yes; then
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21566 rm -f conftest$ac_exeext
21567 if { (ac_try="$ac_link"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_link") 2>&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21577 { (case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582 (eval "$ac_try") 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }; then
21586 ba_cv_bigendian=yes
21588 echo "$as_me: program exited with status $ac_status" >&5
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ( exit $ac_status )
21595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21600 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21601 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21602 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21603 #define HAVE_BIGENDIAN 1
21608 ac_cpp='$CXXCPP $CPPFLAGS'
21609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21614 { echo "$as_me:$LINENO: checking for typeof" >&5
21615 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21616 if test "${ba_cv_have_typeof+set}" = set; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 if test "$cross_compiling" = yes; then
21620 ba_cv_have_typeof=no
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 main(){char *a = 0; a = (typeof a)a;}
21630 rm -f conftest$ac_exeext
21631 if { (ac_try="$ac_link"
21632 case "(($ac_try" in
21633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634 *) ac_try_echo=$ac_try;;
21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637 (eval "$ac_link") 2>&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21641 { (case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_try") 2>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 ba_cv_have_typeof=yes
21652 echo "$as_me: program exited with status $ac_status" >&5
21653 echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21656 ( exit $ac_status )
21657 ba_cv_have_typeof=no
21659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21664 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21665 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21666 test $ba_cv_have_typeof = yes &&
21667 cat >>confdefs.h <<\_ACEOF
21668 #define HAVE_TYPEOF 1
21672 ac_cpp='$CPP $CPPFLAGS'
21673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21678 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21679 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21680 if test "${ac_cv_c_const+set}" = set; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 cat >conftest.$ac_ext <<_ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h. */
21693 /* FIXME: Include the comments suggested by Paul. */
21694 #ifndef __cplusplus
21695 /* Ultrix mips cc rejects this. */
21696 typedef int charset[2];
21698 /* SunOS 4.1.1 cc rejects this. */
21699 char const *const *pcpcc;
21701 /* NEC SVR4.0.2 mips cc rejects this. */
21702 struct point {int x, y;};
21703 static struct point const zero = {0,0};
21704 /* AIX XL C 1.02.0.0 rejects this.
21705 It does not let you subtract one const X* pointer from another in
21706 an arm of an if-expression whose if-part is not a constant
21708 const char *g = "string";
21709 pcpcc = &g + (g ? g-g : 0);
21710 /* HPUX 7.0 cc rejects these. */
21712 ppc = (char**) pcpcc;
21713 pcpcc = (char const *const *) ppc;
21714 { /* SCO 3.2v4 cc rejects this. */
21716 char const *s = 0 ? (char *) 0 : (char const *) 0;
21721 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21722 int x[] = {25, 17};
21723 const int *foo = &x[0];
21726 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21727 typedef const int *iptr;
21731 { /* AIX XL C 1.02.0.0 rejects this saying
21732 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21733 struct s { int j; const int *ap[3]; };
21734 struct s *b; b->j = 5;
21736 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21737 const int foo = 10;
21738 if (!foo) return 0;
21740 return !cs[0] && !zero.x;
21747 rm -f conftest.$ac_objext
21748 if { (ac_try="$ac_compile"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754 (eval "$ac_compile") 2>conftest.er1
21756 grep -v '^ *+' conftest.er1 >conftest.err
21758 cat conftest.err >&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } && {
21761 test -z "$ac_c_werror_flag" ||
21762 test ! -s conftest.err
21763 } && test -s conftest.$ac_objext; then
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21775 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21776 if test $ac_cv_c_const = no; then
21778 cat >>confdefs.h <<\_ACEOF
21786 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21787 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21789 # The order of these tests is important.
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 #include <sys/statvfs.h>
21797 #include <sys/fstyp.h>
21799 if { (ac_try="$ac_cpp conftest.$ac_ext"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21807 grep -v '^ *+' conftest.er1 >conftest.err
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } >/dev/null && {
21812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21815 cat >>confdefs.h <<\_ACEOF
21816 #define FSTYPE_STATVFS 1
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21826 rm -f conftest.err conftest.$ac_ext
21827 if test $fstype = no; then
21828 cat >conftest.$ac_ext <<_ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h. */
21834 #include <sys/statfs.h>
21835 #include <sys/fstyp.h>
21837 if { (ac_try="$ac_cpp conftest.$ac_ext"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21845 grep -v '^ *+' conftest.er1 >conftest.err
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } >/dev/null && {
21850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21853 cat >>confdefs.h <<\_ACEOF
21854 #define FSTYPE_USG_STATFS 1
21858 echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21864 rm -f conftest.err conftest.$ac_ext
21866 if test $fstype = no; then
21867 cat >conftest.$ac_ext <<_ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 #include <sys/statfs.h>
21874 #include <sys/vmount.h>
21876 if { (ac_try="$ac_cpp conftest.$ac_ext"
21877 case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21884 grep -v '^ *+' conftest.er1 >conftest.err
21886 cat conftest.err >&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } >/dev/null && {
21889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21890 test ! -s conftest.err
21892 cat >>confdefs.h <<\_ACEOF
21893 #define FSTYPE_AIX_STATFS 1
21897 echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21903 rm -f conftest.err conftest.$ac_ext
21905 if test $fstype = no; then
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 #include <mntent.h>
21914 if { (ac_try="$ac_cpp conftest.$ac_ext"
21915 case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21922 grep -v '^ *+' conftest.er1 >conftest.err
21924 cat conftest.err >&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } >/dev/null && {
21927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21928 test ! -s conftest.err
21930 cat >>confdefs.h <<\_ACEOF
21931 #define FSTYPE_MNTENT 1
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21941 rm -f conftest.err conftest.$ac_ext
21943 if test $fstype = no; then
21944 cat >conftest.$ac_ext <<_ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 #include <sys/mount.h>
21953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21954 $EGREP "f_type;" >/dev/null 2>&1; then
21955 cat >>confdefs.h <<\_ACEOF
21956 #define FSTYPE_STATFS 1
21963 if test $fstype = no; then
21964 cat >conftest.$ac_ext <<_ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21970 #include <sys/mount.h>
21971 #include <sys/fs_types.h>
21973 if { (ac_try="$ac_cpp conftest.$ac_ext"
21974 case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } >/dev/null && {
21986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21987 test ! -s conftest.err
21989 cat >>confdefs.h <<\_ACEOF
21990 #define FSTYPE_GETMNT 1
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
22000 rm -f conftest.err conftest.$ac_ext
22002 { echo "$as_me:$LINENO: result: $fstype" >&5
22003 echo "${ECHO_T}$fstype" >&6; }
22005 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22006 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22007 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22008 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
22011 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22012 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22014 # Is the header compilable?
22015 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22016 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 $ac_includes_default
22024 #include <sys/statvfs.h>
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22043 ac_header_compiler=yes
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_header_compiler=no
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22053 echo "${ECHO_T}$ac_header_compiler" >&6; }
22055 # Is the header present?
22056 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22057 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22058 cat >conftest.$ac_ext <<_ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22064 #include <sys/statvfs.h>
22066 if { (ac_try="$ac_cpp conftest.$ac_ext"
22067 case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22074 grep -v '^ *+' conftest.er1 >conftest.err
22076 cat conftest.err >&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } >/dev/null && {
22079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22080 test ! -s conftest.err
22082 ac_header_preproc=yes
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_header_preproc=no
22090 rm -f conftest.err conftest.$ac_ext
22091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22092 echo "${ECHO_T}$ac_header_preproc" >&6; }
22094 # So? What about this header?
22095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22097 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22098 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22099 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22100 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22101 ac_header_preproc=yes
22104 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22105 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
22107 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
22108 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22109 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22110 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
22111 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22112 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22113 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22114 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22115 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22119 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22120 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22121 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 ac_cv_header_sys_statvfs_h=$ac_header_preproc
22126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22127 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22130 if test $ac_cv_header_sys_statvfs_h = yes; then
22132 cat >>confdefs.h <<\_ACEOF
22133 #define HAVE_SYS_STATVFS_H 1
22140 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22141 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22142 if test "${ac_cv_type_signal+set}" = set; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22145 cat >conftest.$ac_ext <<_ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22151 #include <sys/types.h>
22152 #include <signal.h>
22157 return *(signal (0, 0)) (0) == 1;
22162 rm -f conftest.$ac_objext
22163 if { (ac_try="$ac_compile"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169 (eval "$ac_compile") 2>conftest.er1
22171 grep -v '^ *+' conftest.er1 >conftest.err
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest.$ac_objext; then
22179 ac_cv_type_signal=int
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 ac_cv_type_signal=void
22187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22189 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22190 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22192 cat >>confdefs.h <<_ACEOF
22193 #define RETSIGTYPE $ac_cv_type_signal
22198 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22199 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22200 if test "${bash_cv_signal_vintage+set}" = set; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 cat >conftest.$ac_ext <<_ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210 #include <signal.h>
22216 struct sigaction sa;
22217 sigemptyset(&ss); sigsuspend(&ss);
22218 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22219 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22225 rm -f conftest.$ac_objext conftest$ac_exeext
22226 if { (ac_try="$ac_link"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_link") 2>conftest.er1
22234 grep -v '^ *+' conftest.er1 >conftest.err
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext &&
22242 $as_test_x conftest$ac_exeext; then
22243 bash_cv_signal_vintage="posix"
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 #include <signal.h>
22260 int mask = sigmask(SIGINT);
22261 sigsetmask(mask); sigblock(mask); sigpause(mask);
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (ac_try="$ac_link"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_link") 2>conftest.er1
22276 grep -v '^ *+' conftest.er1 >conftest.err
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } && {
22281 test -z "$ac_c_werror_flag" ||
22282 test ! -s conftest.err
22283 } && test -s conftest$ac_exeext &&
22284 $as_test_x conftest$ac_exeext; then
22285 bash_cv_signal_vintage="4.2bsd"
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22298 #include <signal.h>
22299 RETSIGTYPE foo() { }
22304 int mask = sigmask(SIGINT);
22305 sigset(SIGINT, foo); sigrelse(SIGINT);
22306 sighold(SIGINT); sigpause(SIGINT);
22312 rm -f conftest.$ac_objext conftest$ac_exeext
22313 if { (ac_try="$ac_link"
22314 case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_link") 2>conftest.er1
22321 grep -v '^ *+' conftest.er1 >conftest.err
22323 cat conftest.err >&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } && {
22326 test -z "$ac_c_werror_flag" ||
22327 test ! -s conftest.err
22328 } && test -s conftest$ac_exeext &&
22329 $as_test_x conftest$ac_exeext; then
22330 bash_cv_signal_vintage="svr3"
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22335 bash_cv_signal_vintage="v7"
22339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22340 conftest$ac_exeext conftest.$ac_ext
22344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22345 conftest$ac_exeext conftest.$ac_ext
22349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22350 conftest$ac_exeext conftest.$ac_ext
22354 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22355 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22356 if test "$bash_cv_signal_vintage" = "posix"; then
22357 cat >>confdefs.h <<\_ACEOF
22358 #define HAVE_POSIX_SIGNALS 1
22361 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22362 cat >>confdefs.h <<\_ACEOF
22363 #define HAVE_BSD_SIGNALS 1
22366 elif test "$bash_cv_signal_vintage" = "svr3"; then
22367 cat >>confdefs.h <<\_ACEOF
22368 #define HAVE_USG_SIGHOLD 1
22373 { echo "$as_me:$LINENO: checking for mode_t" >&5
22374 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22375 if test "${ac_cv_type_mode_t+set}" = set; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 cat >conftest.$ac_ext <<_ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22384 $ac_includes_default
22385 typedef mode_t ac__type_new_;
22389 if ((ac__type_new_ *) 0)
22391 if (sizeof (ac__type_new_))
22397 rm -f conftest.$ac_objext
22398 if { (ac_try="$ac_compile"
22399 case "(($ac_try" in
22400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401 *) ac_try_echo=$ac_try;;
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404 (eval "$ac_compile") 2>conftest.er1
22406 grep -v '^ *+' conftest.er1 >conftest.err
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } && {
22411 test -z "$ac_c_werror_flag" ||
22412 test ! -s conftest.err
22413 } && test -s conftest.$ac_objext; then
22414 ac_cv_type_mode_t=yes
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 ac_cv_type_mode_t=no
22422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22424 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22425 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22426 if test $ac_cv_type_mode_t = yes; then
22430 cat >>confdefs.h <<_ACEOF
22436 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22437 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22438 if test "${ac_cv_type_uid_t+set}" = set; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22441 cat >conftest.$ac_ext <<_ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <sys/types.h>
22450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22451 $EGREP "uid_t" >/dev/null 2>&1; then
22452 ac_cv_type_uid_t=yes
22454 ac_cv_type_uid_t=no
22459 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22460 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22461 if test $ac_cv_type_uid_t = no; then
22463 cat >>confdefs.h <<\_ACEOF
22468 cat >>confdefs.h <<\_ACEOF
22474 { echo "$as_me:$LINENO: checking for size_t" >&5
22475 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22476 if test "${ac_cv_type_size_t+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22479 cat >conftest.$ac_ext <<_ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h. */
22485 $ac_includes_default
22486 typedef size_t ac__type_new_;
22490 if ((ac__type_new_ *) 0)
22492 if (sizeof (ac__type_new_))
22498 rm -f conftest.$ac_objext
22499 if { (ac_try="$ac_compile"
22500 case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_compile") 2>conftest.er1
22507 grep -v '^ *+' conftest.er1 >conftest.err
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } && {
22512 test -z "$ac_c_werror_flag" ||
22513 test ! -s conftest.err
22514 } && test -s conftest.$ac_objext; then
22515 ac_cv_type_size_t=yes
22517 echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22520 ac_cv_type_size_t=no
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22526 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22527 if test $ac_cv_type_size_t = yes; then
22531 cat >>confdefs.h <<_ACEOF
22532 #define size_t unsigned int
22537 { echo "$as_me:$LINENO: checking for pid_t" >&5
22538 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22539 if test "${ac_cv_type_pid_t+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 $ac_includes_default
22549 typedef pid_t ac__type_new_;
22553 if ((ac__type_new_ *) 0)
22555 if (sizeof (ac__type_new_))
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_compile") 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest.$ac_objext; then
22578 ac_cv_type_pid_t=yes
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22583 ac_cv_type_pid_t=no
22586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22589 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22590 if test $ac_cv_type_pid_t = yes; then
22594 cat >>confdefs.h <<_ACEOF
22600 { echo "$as_me:$LINENO: checking for off_t" >&5
22601 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22602 if test "${ac_cv_type_off_t+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22605 cat >conftest.$ac_ext <<_ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22611 $ac_includes_default
22612 typedef off_t ac__type_new_;
22616 if ((ac__type_new_ *) 0)
22618 if (sizeof (ac__type_new_))
22624 rm -f conftest.$ac_objext
22625 if { (ac_try="$ac_compile"
22626 case "(($ac_try" in
22627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628 *) ac_try_echo=$ac_try;;
22630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631 (eval "$ac_compile") 2>conftest.er1
22633 grep -v '^ *+' conftest.er1 >conftest.err
22635 cat conftest.err >&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } && {
22638 test -z "$ac_c_werror_flag" ||
22639 test ! -s conftest.err
22640 } && test -s conftest.$ac_objext; then
22641 ac_cv_type_off_t=yes
22643 echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22646 ac_cv_type_off_t=no
22649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22651 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22652 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22653 if test $ac_cv_type_off_t = yes; then
22657 cat >>confdefs.h <<_ACEOF
22658 #define off_t long int
22663 { echo "$as_me:$LINENO: checking for ino_t" >&5
22664 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22665 if test "${ac_cv_type_ino_t+set}" = set; then
22666 echo $ECHO_N "(cached) $ECHO_C" >&6
22668 cat >conftest.$ac_ext <<_ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 $ac_includes_default
22675 typedef ino_t ac__type_new_;
22679 if ((ac__type_new_ *) 0)
22681 if (sizeof (ac__type_new_))
22687 rm -f conftest.$ac_objext
22688 if { (ac_try="$ac_compile"
22689 case "(($ac_try" in
22690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22691 *) ac_try_echo=$ac_try;;
22693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22694 (eval "$ac_compile") 2>conftest.er1
22696 grep -v '^ *+' conftest.er1 >conftest.err
22698 cat conftest.err >&5
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); } && {
22701 test -z "$ac_c_werror_flag" ||
22702 test ! -s conftest.err
22703 } && test -s conftest.$ac_objext; then
22704 ac_cv_type_ino_t=yes
22706 echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.$ac_ext >&5
22709 ac_cv_type_ino_t=no
22712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22714 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22715 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22716 if test $ac_cv_type_ino_t = yes; then
22720 cat >>confdefs.h <<_ACEOF
22721 #define ino_t unsigned long
22726 { echo "$as_me:$LINENO: checking for dev_t" >&5
22727 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22728 if test "${ac_cv_type_dev_t+set}" = set; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 cat >conftest.$ac_ext <<_ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 $ac_includes_default
22738 typedef dev_t ac__type_new_;
22742 if ((ac__type_new_ *) 0)
22744 if (sizeof (ac__type_new_))
22750 rm -f conftest.$ac_objext
22751 if { (ac_try="$ac_compile"
22752 case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_compile") 2>conftest.er1
22759 grep -v '^ *+' conftest.er1 >conftest.err
22761 cat conftest.err >&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); } && {
22764 test -z "$ac_c_werror_flag" ||
22765 test ! -s conftest.err
22766 } && test -s conftest.$ac_objext; then
22767 ac_cv_type_dev_t=yes
22769 echo "$as_me: failed program was:" >&5
22770 sed 's/^/| /' conftest.$ac_ext >&5
22772 ac_cv_type_dev_t=no
22775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22777 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22778 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22779 if test $ac_cv_type_dev_t = yes; then
22783 cat >>confdefs.h <<_ACEOF
22784 #define dev_t unsigned long
22789 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22790 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22791 if test "${ac_cv_type_daddr_t+set}" = set; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22794 cat >conftest.$ac_ext <<_ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h. */
22800 $ac_includes_default
22801 typedef daddr_t ac__type_new_;
22805 if ((ac__type_new_ *) 0)
22807 if (sizeof (ac__type_new_))
22813 rm -f conftest.$ac_objext
22814 if { (ac_try="$ac_compile"
22815 case "(($ac_try" in
22816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22817 *) ac_try_echo=$ac_try;;
22819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22820 (eval "$ac_compile") 2>conftest.er1
22822 grep -v '^ *+' conftest.er1 >conftest.err
22824 cat conftest.err >&5
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } && {
22827 test -z "$ac_c_werror_flag" ||
22828 test ! -s conftest.err
22829 } && test -s conftest.$ac_objext; then
22830 ac_cv_type_daddr_t=yes
22832 echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22835 ac_cv_type_daddr_t=no
22838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22840 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22841 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22842 if test $ac_cv_type_daddr_t = yes; then
22846 cat >>confdefs.h <<_ACEOF
22847 #define daddr_t long
22852 { echo "$as_me:$LINENO: checking for major_t" >&5
22853 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22854 if test "${ac_cv_type_major_t+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 $ac_includes_default
22864 typedef major_t ac__type_new_;
22868 if ((ac__type_new_ *) 0)
22870 if (sizeof (ac__type_new_))
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883 (eval "$ac_compile") 2>conftest.er1
22885 grep -v '^ *+' conftest.er1 >conftest.err
22887 cat conftest.err >&5
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest.$ac_objext; then
22893 ac_cv_type_major_t=yes
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 ac_cv_type_major_t=no
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22904 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22905 if test $ac_cv_type_major_t = yes; then
22909 cat >>confdefs.h <<_ACEOF
22910 #define major_t int
22915 { echo "$as_me:$LINENO: checking for minor_t" >&5
22916 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22917 if test "${ac_cv_type_minor_t+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22920 cat >conftest.$ac_ext <<_ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22926 $ac_includes_default
22927 typedef minor_t ac__type_new_;
22931 if ((ac__type_new_ *) 0)
22933 if (sizeof (ac__type_new_))
22939 rm -f conftest.$ac_objext
22940 if { (ac_try="$ac_compile"
22941 case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_compile") 2>conftest.er1
22948 grep -v '^ *+' conftest.er1 >conftest.err
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } && {
22953 test -z "$ac_c_werror_flag" ||
22954 test ! -s conftest.err
22955 } && test -s conftest.$ac_objext; then
22956 ac_cv_type_minor_t=yes
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22961 ac_cv_type_minor_t=no
22964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22966 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22967 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22968 if test $ac_cv_type_minor_t = yes; then
22972 cat >>confdefs.h <<_ACEOF
22973 #define minor_t int
22978 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22979 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22980 if test "${ac_cv_type_ssize_t+set}" = set; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22983 cat >conftest.$ac_ext <<_ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22989 $ac_includes_default
22990 typedef ssize_t ac__type_new_;
22994 if ((ac__type_new_ *) 0)
22996 if (sizeof (ac__type_new_))
23002 rm -f conftest.$ac_objext
23003 if { (ac_try="$ac_compile"
23004 case "(($ac_try" in
23005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23006 *) ac_try_echo=$ac_try;;
23008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23009 (eval "$ac_compile") 2>conftest.er1
23011 grep -v '^ *+' conftest.er1 >conftest.err
23013 cat conftest.err >&5
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } && {
23016 test -z "$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23018 } && test -s conftest.$ac_objext; then
23019 ac_cv_type_ssize_t=yes
23021 echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23024 ac_cv_type_ssize_t=no
23027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23029 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23030 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23031 if test $ac_cv_type_ssize_t = yes; then
23035 cat >>confdefs.h <<_ACEOF
23036 #define ssize_t int
23041 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23042 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23043 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 cat >conftest.$ac_ext <<_ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 $ac_includes_default
23056 static struct stat ac_aggr;
23057 if (ac_aggr.st_blocks)
23063 rm -f conftest.$ac_objext
23064 if { (ac_try="$ac_compile"
23065 case "(($ac_try" in
23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067 *) ac_try_echo=$ac_try;;
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070 (eval "$ac_compile") 2>conftest.er1
23072 grep -v '^ *+' conftest.er1 >conftest.err
23074 cat conftest.err >&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } && {
23077 test -z "$ac_c_werror_flag" ||
23078 test ! -s conftest.err
23079 } && test -s conftest.$ac_objext; then
23080 ac_cv_member_struct_stat_st_blocks=yes
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23085 cat >conftest.$ac_ext <<_ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 $ac_includes_default
23095 static struct stat ac_aggr;
23096 if (sizeof ac_aggr.st_blocks)
23102 rm -f conftest.$ac_objext
23103 if { (ac_try="$ac_compile"
23104 case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109 (eval "$ac_compile") 2>conftest.er1
23111 grep -v '^ *+' conftest.er1 >conftest.err
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } && {
23116 test -z "$ac_c_werror_flag" ||
23117 test ! -s conftest.err
23118 } && test -s conftest.$ac_objext; then
23119 ac_cv_member_struct_stat_st_blocks=yes
23121 echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23124 ac_cv_member_struct_stat_st_blocks=no
23127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23132 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23133 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23134 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23136 cat >>confdefs.h <<_ACEOF
23137 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23141 cat >>confdefs.h <<\_ACEOF
23142 #define HAVE_ST_BLOCKS 1
23146 case " $LIBOBJS " in
23147 *" fileblocks.$ac_objext "* ) ;;
23148 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23155 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23156 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23157 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23158 echo $ECHO_N "(cached) $ECHO_C" >&6
23160 cat >conftest.$ac_ext <<_ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h. */
23166 $ac_includes_default
23170 static struct stat ac_aggr;
23171 if (ac_aggr.st_rdev)
23177 rm -f conftest.$ac_objext
23178 if { (ac_try="$ac_compile"
23179 case "(($ac_try" in
23180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181 *) ac_try_echo=$ac_try;;
23183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23184 (eval "$ac_compile") 2>conftest.er1
23186 grep -v '^ *+' conftest.er1 >conftest.err
23188 cat conftest.err >&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } && {
23191 test -z "$ac_c_werror_flag" ||
23192 test ! -s conftest.err
23193 } && test -s conftest.$ac_objext; then
23194 ac_cv_member_struct_stat_st_rdev=yes
23196 echo "$as_me: failed program was:" >&5
23197 sed 's/^/| /' conftest.$ac_ext >&5
23199 cat >conftest.$ac_ext <<_ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23205 $ac_includes_default
23209 static struct stat ac_aggr;
23210 if (sizeof ac_aggr.st_rdev)
23216 rm -f conftest.$ac_objext
23217 if { (ac_try="$ac_compile"
23218 case "(($ac_try" in
23219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223 (eval "$ac_compile") 2>conftest.er1
23225 grep -v '^ *+' conftest.er1 >conftest.err
23227 cat conftest.err >&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); } && {
23230 test -z "$ac_c_werror_flag" ||
23231 test ! -s conftest.err
23232 } && test -s conftest.$ac_objext; then
23233 ac_cv_member_struct_stat_st_rdev=yes
23235 echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23238 ac_cv_member_struct_stat_st_rdev=no
23241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23248 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23250 cat >>confdefs.h <<_ACEOF
23251 #define HAVE_STRUCT_STAT_ST_RDEV 1
23255 cat >>confdefs.h <<\_ACEOF
23256 #define HAVE_ST_RDEV 1
23262 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23263 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23264 if test "${ac_cv_struct_tm+set}" = set; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
23267 cat >conftest.$ac_ext <<_ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23273 #include <sys/types.h>
23280 int *p = &tm.tm_sec;
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293 (eval "$ac_compile") 2>conftest.er1
23295 grep -v '^ *+' conftest.er1 >conftest.err
23297 cat conftest.err >&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } && {
23300 test -z "$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 } && test -s conftest.$ac_objext; then
23303 ac_cv_struct_tm=time.h
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 ac_cv_struct_tm=sys/time.h
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23313 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23314 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23315 if test $ac_cv_struct_tm = sys/time.h; then
23317 cat >>confdefs.h <<\_ACEOF
23318 #define TM_IN_SYS_TIME 1
23323 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23324 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23325 if test "${ac_cv_c_const+set}" = set; then
23326 echo $ECHO_N "(cached) $ECHO_C" >&6
23328 cat >conftest.$ac_ext <<_ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h. */
23338 /* FIXME: Include the comments suggested by Paul. */
23339 #ifndef __cplusplus
23340 /* Ultrix mips cc rejects this. */
23341 typedef int charset[2];
23343 /* SunOS 4.1.1 cc rejects this. */
23344 char const *const *pcpcc;
23346 /* NEC SVR4.0.2 mips cc rejects this. */
23347 struct point {int x, y;};
23348 static struct point const zero = {0,0};
23349 /* AIX XL C 1.02.0.0 rejects this.
23350 It does not let you subtract one const X* pointer from another in
23351 an arm of an if-expression whose if-part is not a constant
23353 const char *g = "string";
23354 pcpcc = &g + (g ? g-g : 0);
23355 /* HPUX 7.0 cc rejects these. */
23357 ppc = (char**) pcpcc;
23358 pcpcc = (char const *const *) ppc;
23359 { /* SCO 3.2v4 cc rejects this. */
23361 char const *s = 0 ? (char *) 0 : (char const *) 0;
23366 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23367 int x[] = {25, 17};
23368 const int *foo = &x[0];
23371 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23372 typedef const int *iptr;
23376 { /* AIX XL C 1.02.0.0 rejects this saying
23377 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23378 struct s { int j; const int *ap[3]; };
23379 struct s *b; b->j = 5;
23381 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23382 const int foo = 10;
23383 if (!foo) return 0;
23385 return !cs[0] && !zero.x;
23392 rm -f conftest.$ac_objext
23393 if { (ac_try="$ac_compile"
23394 case "(($ac_try" in
23395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396 *) ac_try_echo=$ac_try;;
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399 (eval "$ac_compile") 2>conftest.er1
23401 grep -v '^ *+' conftest.er1 >conftest.err
23403 cat conftest.err >&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } && {
23406 test -z "$ac_c_werror_flag" ||
23407 test ! -s conftest.err
23408 } && test -s conftest.$ac_objext; then
23411 echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23420 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23421 if test $ac_cv_c_const = no; then
23423 cat >>confdefs.h <<\_ACEOF
23431 { echo "$as_me:$LINENO: checking for char" >&5
23432 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23433 if test "${ac_cv_type_char+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23436 cat >conftest.$ac_ext <<_ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 $ac_includes_default
23443 typedef char ac__type_new_;
23447 if ((ac__type_new_ *) 0)
23449 if (sizeof (ac__type_new_))
23455 rm -f conftest.$ac_objext
23456 if { (ac_try="$ac_compile"
23457 case "(($ac_try" in
23458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23459 *) ac_try_echo=$ac_try;;
23461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23464 grep -v '^ *+' conftest.er1 >conftest.err
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest.$ac_objext; then
23472 ac_cv_type_char=yes
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23482 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23483 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23485 # The cast to long int works around a bug in the HP C Compiler
23486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23488 # This bug is HP SR number 8606223364.
23489 { echo "$as_me:$LINENO: checking size of char" >&5
23490 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23491 if test "${ac_cv_sizeof_char+set}" = set; then
23492 echo $ECHO_N "(cached) $ECHO_C" >&6
23494 if test "$cross_compiling" = yes; then
23495 # Depending upon the size, compute the lo and hi bounds.
23496 cat >conftest.$ac_ext <<_ACEOF
23499 cat confdefs.h >>conftest.$ac_ext
23500 cat >>conftest.$ac_ext <<_ACEOF
23501 /* end confdefs.h. */
23502 $ac_includes_default
23503 typedef char ac__type_sizeof_;
23507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23514 rm -f conftest.$ac_objext
23515 if { (ac_try="$ac_compile"
23516 case "(($ac_try" in
23517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518 *) ac_try_echo=$ac_try;;
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521 (eval "$ac_compile") 2>conftest.er1
23523 grep -v '^ *+' conftest.er1 >conftest.err
23525 cat conftest.err >&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } && {
23528 test -z "$ac_c_werror_flag" ||
23529 test ! -s conftest.err
23530 } && test -s conftest.$ac_objext; then
23533 cat >conftest.$ac_ext <<_ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23539 $ac_includes_default
23540 typedef char ac__type_sizeof_;
23544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23551 rm -f conftest.$ac_objext
23552 if { (ac_try="$ac_compile"
23553 case "(($ac_try" in
23554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555 *) ac_try_echo=$ac_try;;
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558 (eval "$ac_compile") 2>conftest.er1
23560 grep -v '^ *+' conftest.er1 >conftest.err
23562 cat conftest.err >&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } && {
23565 test -z "$ac_c_werror_flag" ||
23566 test ! -s conftest.err
23567 } && test -s conftest.$ac_objext; then
23568 ac_hi=$ac_mid; break
23570 echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23573 ac_lo=`expr $ac_mid + 1`
23574 if test $ac_lo -le $ac_mid; then
23578 ac_mid=`expr 2 '*' $ac_mid + 1`
23581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23584 echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 cat >conftest.$ac_ext <<_ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23593 $ac_includes_default
23594 typedef char ac__type_sizeof_;
23598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23605 rm -f conftest.$ac_objext
23606 if { (ac_try="$ac_compile"
23607 case "(($ac_try" in
23608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23609 *) ac_try_echo=$ac_try;;
23611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23612 (eval "$ac_compile") 2>conftest.er1
23614 grep -v '^ *+' conftest.er1 >conftest.err
23616 cat conftest.err >&5
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } && {
23619 test -z "$ac_c_werror_flag" ||
23620 test ! -s conftest.err
23621 } && test -s conftest.$ac_objext; then
23624 cat >conftest.$ac_ext <<_ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h. */
23630 $ac_includes_default
23631 typedef char ac__type_sizeof_;
23635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23642 rm -f conftest.$ac_objext
23643 if { (ac_try="$ac_compile"
23644 case "(($ac_try" in
23645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646 *) ac_try_echo=$ac_try;;
23648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649 (eval "$ac_compile") 2>conftest.er1
23651 grep -v '^ *+' conftest.er1 >conftest.err
23653 cat conftest.err >&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } && {
23656 test -z "$ac_c_werror_flag" ||
23657 test ! -s conftest.err
23658 } && test -s conftest.$ac_objext; then
23659 ac_lo=$ac_mid; break
23661 echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23664 ac_hi=`expr '(' $ac_mid ')' - 1`
23665 if test $ac_mid -le $ac_hi; then
23669 ac_mid=`expr 2 '*' $ac_mid`
23672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675 echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685 # Binary search between lo and hi bounds.
23686 while test "x$ac_lo" != "x$ac_hi"; do
23687 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23688 cat >conftest.$ac_ext <<_ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23694 $ac_includes_default
23695 typedef char ac__type_sizeof_;
23699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23706 rm -f conftest.$ac_objext
23707 if { (ac_try="$ac_compile"
23708 case "(($ac_try" in
23709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23710 *) ac_try_echo=$ac_try;;
23712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23713 (eval "$ac_compile") 2>conftest.er1
23715 grep -v '^ *+' conftest.er1 >conftest.err
23717 cat conftest.err >&5
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); } && {
23720 test -z "$ac_c_werror_flag" ||
23721 test ! -s conftest.err
23722 } && test -s conftest.$ac_objext; then
23725 echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23728 ac_lo=`expr '(' $ac_mid ')' + 1`
23731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23734 ?*) ac_cv_sizeof_char=$ac_lo;;
23735 '') if test "$ac_cv_type_char" = yes; then
23736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23737 See \`config.log' for more details." >&5
23738 echo "$as_me: error: cannot compute sizeof (char)
23739 See \`config.log' for more details." >&2;}
23740 { (exit 77); exit 77; }; }
23742 ac_cv_sizeof_char=0
23746 cat >conftest.$ac_ext <<_ACEOF
23749 cat confdefs.h >>conftest.$ac_ext
23750 cat >>conftest.$ac_ext <<_ACEOF
23751 /* end confdefs.h. */
23752 $ac_includes_default
23753 typedef char ac__type_sizeof_;
23754 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23755 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23757 #include <stdlib.h>
23762 FILE *f = fopen ("conftest.val", "w");
23765 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23767 long int i = longval ();
23768 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23770 fprintf (f, "%ld\n", i);
23774 unsigned long int i = ulongval ();
23775 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23777 fprintf (f, "%lu\n", i);
23779 return ferror (f) || fclose (f) != 0;
23785 rm -f conftest$ac_exeext
23786 if { (ac_try="$ac_link"
23787 case "(($ac_try" in
23788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23789 *) ac_try_echo=$ac_try;;
23791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23792 (eval "$ac_link") 2>&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23796 { (case "(($ac_try" in
23797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798 *) ac_try_echo=$ac_try;;
23800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23801 (eval "$ac_try") 2>&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); }; }; then
23805 ac_cv_sizeof_char=`cat conftest.val`
23807 echo "$as_me: program exited with status $ac_status" >&5
23808 echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.$ac_ext >&5
23811 ( exit $ac_status )
23812 if test "$ac_cv_type_char" = yes; then
23813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23814 See \`config.log' for more details." >&5
23815 echo "$as_me: error: cannot compute sizeof (char)
23816 See \`config.log' for more details." >&2;}
23817 { (exit 77); exit 77; }; }
23819 ac_cv_sizeof_char=0
23822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23826 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23827 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23831 cat >>confdefs.h <<_ACEOF
23832 #define SIZEOF_CHAR $ac_cv_sizeof_char
23836 { echo "$as_me:$LINENO: checking for short int" >&5
23837 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23838 if test "${ac_cv_type_short_int+set}" = set; then
23839 echo $ECHO_N "(cached) $ECHO_C" >&6
23841 cat >conftest.$ac_ext <<_ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23847 $ac_includes_default
23848 typedef short int ac__type_new_;
23852 if ((ac__type_new_ *) 0)
23854 if (sizeof (ac__type_new_))
23860 rm -f conftest.$ac_objext
23861 if { (ac_try="$ac_compile"
23862 case "(($ac_try" in
23863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864 *) ac_try_echo=$ac_try;;
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867 (eval "$ac_compile") 2>conftest.er1
23869 grep -v '^ *+' conftest.er1 >conftest.err
23871 cat conftest.err >&5
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); } && {
23874 test -z "$ac_c_werror_flag" ||
23875 test ! -s conftest.err
23876 } && test -s conftest.$ac_objext; then
23877 ac_cv_type_short_int=yes
23879 echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23882 ac_cv_type_short_int=no
23885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23887 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23888 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23890 # The cast to long int works around a bug in the HP C Compiler
23891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23893 # This bug is HP SR number 8606223364.
23894 { echo "$as_me:$LINENO: checking size of short int" >&5
23895 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23896 if test "${ac_cv_sizeof_short_int+set}" = set; then
23897 echo $ECHO_N "(cached) $ECHO_C" >&6
23899 if test "$cross_compiling" = yes; then
23900 # Depending upon the size, compute the lo and hi bounds.
23901 cat >conftest.$ac_ext <<_ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h. */
23907 $ac_includes_default
23908 typedef short int ac__type_sizeof_;
23912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23919 rm -f conftest.$ac_objext
23920 if { (ac_try="$ac_compile"
23921 case "(($ac_try" in
23922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923 *) ac_try_echo=$ac_try;;
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926 (eval "$ac_compile") 2>conftest.er1
23928 grep -v '^ *+' conftest.er1 >conftest.err
23930 cat conftest.err >&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); } && {
23933 test -z "$ac_c_werror_flag" ||
23934 test ! -s conftest.err
23935 } && test -s conftest.$ac_objext; then
23938 cat >conftest.$ac_ext <<_ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h. */
23944 $ac_includes_default
23945 typedef short int ac__type_sizeof_;
23949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23956 rm -f conftest.$ac_objext
23957 if { (ac_try="$ac_compile"
23958 case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963 (eval "$ac_compile") 2>conftest.er1
23965 grep -v '^ *+' conftest.er1 >conftest.err
23967 cat conftest.err >&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } && {
23970 test -z "$ac_c_werror_flag" ||
23971 test ! -s conftest.err
23972 } && test -s conftest.$ac_objext; then
23973 ac_hi=$ac_mid; break
23975 echo "$as_me: failed program was:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23978 ac_lo=`expr $ac_mid + 1`
23979 if test $ac_lo -le $ac_mid; then
23983 ac_mid=`expr 2 '*' $ac_mid + 1`
23986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23989 echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23992 cat >conftest.$ac_ext <<_ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */
23998 $ac_includes_default
23999 typedef short int ac__type_sizeof_;
24003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017 (eval "$ac_compile") 2>conftest.er1
24019 grep -v '^ *+' conftest.er1 >conftest.err
24021 cat conftest.err >&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } && {
24024 test -z "$ac_c_werror_flag" ||
24025 test ! -s conftest.err
24026 } && test -s conftest.$ac_objext; then
24029 cat >conftest.$ac_ext <<_ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 $ac_includes_default
24036 typedef short int ac__type_sizeof_;
24040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24047 rm -f conftest.$ac_objext
24048 if { (ac_try="$ac_compile"
24049 case "(($ac_try" in
24050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051 *) ac_try_echo=$ac_try;;
24053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054 (eval "$ac_compile") 2>conftest.er1
24056 grep -v '^ *+' conftest.er1 >conftest.err
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } && {
24061 test -z "$ac_c_werror_flag" ||
24062 test ! -s conftest.err
24063 } && test -s conftest.$ac_objext; then
24064 ac_lo=$ac_mid; break
24066 echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24069 ac_hi=`expr '(' $ac_mid ')' - 1`
24070 if test $ac_mid -le $ac_hi; then
24074 ac_mid=`expr 2 '*' $ac_mid`
24077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24080 echo "$as_me: failed program was:" >&5
24081 sed 's/^/| /' conftest.$ac_ext >&5
24086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24090 # Binary search between lo and hi bounds.
24091 while test "x$ac_lo" != "x$ac_hi"; do
24092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24093 cat >conftest.$ac_ext <<_ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h. */
24099 $ac_includes_default
24100 typedef short int ac__type_sizeof_;
24104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24111 rm -f conftest.$ac_objext
24112 if { (ac_try="$ac_compile"
24113 case "(($ac_try" in
24114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115 *) ac_try_echo=$ac_try;;
24117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118 (eval "$ac_compile") 2>conftest.er1
24120 grep -v '^ *+' conftest.er1 >conftest.err
24122 cat conftest.err >&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); } && {
24125 test -z "$ac_c_werror_flag" ||
24126 test ! -s conftest.err
24127 } && test -s conftest.$ac_objext; then
24130 echo "$as_me: failed program was:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24133 ac_lo=`expr '(' $ac_mid ')' + 1`
24136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24139 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24140 '') if test "$ac_cv_type_short_int" = yes; then
24141 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24142 See \`config.log' for more details." >&5
24143 echo "$as_me: error: cannot compute sizeof (short int)
24144 See \`config.log' for more details." >&2;}
24145 { (exit 77); exit 77; }; }
24147 ac_cv_sizeof_short_int=0
24151 cat >conftest.$ac_ext <<_ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h. */
24157 $ac_includes_default
24158 typedef short int ac__type_sizeof_;
24159 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24160 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24162 #include <stdlib.h>
24167 FILE *f = fopen ("conftest.val", "w");
24170 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24172 long int i = longval ();
24173 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24175 fprintf (f, "%ld\n", i);
24179 unsigned long int i = ulongval ();
24180 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24182 fprintf (f, "%lu\n", i);
24184 return ferror (f) || fclose (f) != 0;
24190 rm -f conftest$ac_exeext
24191 if { (ac_try="$ac_link"
24192 case "(($ac_try" in
24193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24197 (eval "$ac_link") 2>&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24201 { (case "(($ac_try" in
24202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24203 *) ac_try_echo=$ac_try;;
24205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24206 (eval "$ac_try") 2>&5
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); }; }; then
24210 ac_cv_sizeof_short_int=`cat conftest.val`
24212 echo "$as_me: program exited with status $ac_status" >&5
24213 echo "$as_me: failed program was:" >&5
24214 sed 's/^/| /' conftest.$ac_ext >&5
24216 ( exit $ac_status )
24217 if test "$ac_cv_type_short_int" = yes; then
24218 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24219 See \`config.log' for more details." >&5
24220 echo "$as_me: error: cannot compute sizeof (short int)
24221 See \`config.log' for more details." >&2;}
24222 { (exit 77); exit 77; }; }
24224 ac_cv_sizeof_short_int=0
24227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24231 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24232 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24236 cat >>confdefs.h <<_ACEOF
24237 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24241 { echo "$as_me:$LINENO: checking for int" >&5
24242 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24243 if test "${ac_cv_type_int+set}" = set; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24246 cat >conftest.$ac_ext <<_ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h. */
24252 $ac_includes_default
24253 typedef int ac__type_new_;
24257 if ((ac__type_new_ *) 0)
24259 if (sizeof (ac__type_new_))
24265 rm -f conftest.$ac_objext
24266 if { (ac_try="$ac_compile"
24267 case "(($ac_try" in
24268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24269 *) ac_try_echo=$ac_try;;
24271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24272 (eval "$ac_compile") 2>conftest.er1
24274 grep -v '^ *+' conftest.er1 >conftest.err
24276 cat conftest.err >&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); } && {
24279 test -z "$ac_c_werror_flag" ||
24280 test ! -s conftest.err
24281 } && test -s conftest.$ac_objext; then
24284 echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24292 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24293 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24295 # The cast to long int works around a bug in the HP C Compiler
24296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24298 # This bug is HP SR number 8606223364.
24299 { echo "$as_me:$LINENO: checking size of int" >&5
24300 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24301 if test "${ac_cv_sizeof_int+set}" = set; then
24302 echo $ECHO_N "(cached) $ECHO_C" >&6
24304 if test "$cross_compiling" = yes; then
24305 # Depending upon the size, compute the lo and hi bounds.
24306 cat >conftest.$ac_ext <<_ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24312 $ac_includes_default
24313 typedef int ac__type_sizeof_;
24317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24324 rm -f conftest.$ac_objext
24325 if { (ac_try="$ac_compile"
24326 case "(($ac_try" in
24327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328 *) ac_try_echo=$ac_try;;
24330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24331 (eval "$ac_compile") 2>conftest.er1
24333 grep -v '^ *+' conftest.er1 >conftest.err
24335 cat conftest.err >&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } && {
24338 test -z "$ac_c_werror_flag" ||
24339 test ! -s conftest.err
24340 } && test -s conftest.$ac_objext; then
24343 cat >conftest.$ac_ext <<_ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h. */
24349 $ac_includes_default
24350 typedef int ac__type_sizeof_;
24354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24361 rm -f conftest.$ac_objext
24362 if { (ac_try="$ac_compile"
24363 case "(($ac_try" in
24364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365 *) ac_try_echo=$ac_try;;
24367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24368 (eval "$ac_compile") 2>conftest.er1
24370 grep -v '^ *+' conftest.er1 >conftest.err
24372 cat conftest.err >&5
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); } && {
24375 test -z "$ac_c_werror_flag" ||
24376 test ! -s conftest.err
24377 } && test -s conftest.$ac_objext; then
24378 ac_hi=$ac_mid; break
24380 echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24383 ac_lo=`expr $ac_mid + 1`
24384 if test $ac_lo -le $ac_mid; then
24388 ac_mid=`expr 2 '*' $ac_mid + 1`
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394 echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24397 cat >conftest.$ac_ext <<_ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h. */
24403 $ac_includes_default
24404 typedef int ac__type_sizeof_;
24408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24415 rm -f conftest.$ac_objext
24416 if { (ac_try="$ac_compile"
24417 case "(($ac_try" in
24418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419 *) ac_try_echo=$ac_try;;
24421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422 (eval "$ac_compile") 2>conftest.er1
24424 grep -v '^ *+' conftest.er1 >conftest.err
24426 cat conftest.err >&5
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } && {
24429 test -z "$ac_c_werror_flag" ||
24430 test ! -s conftest.err
24431 } && test -s conftest.$ac_objext; then
24434 cat >conftest.$ac_ext <<_ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h. */
24440 $ac_includes_default
24441 typedef int ac__type_sizeof_;
24445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24452 rm -f conftest.$ac_objext
24453 if { (ac_try="$ac_compile"
24454 case "(($ac_try" in
24455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24456 *) ac_try_echo=$ac_try;;
24458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24459 (eval "$ac_compile") 2>conftest.er1
24461 grep -v '^ *+' conftest.er1 >conftest.err
24463 cat conftest.err >&5
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); } && {
24466 test -z "$ac_c_werror_flag" ||
24467 test ! -s conftest.err
24468 } && test -s conftest.$ac_objext; then
24469 ac_lo=$ac_mid; break
24471 echo "$as_me: failed program was:" >&5
24472 sed 's/^/| /' conftest.$ac_ext >&5
24474 ac_hi=`expr '(' $ac_mid ')' - 1`
24475 if test $ac_mid -le $ac_hi; then
24479 ac_mid=`expr 2 '*' $ac_mid`
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24485 echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24495 # Binary search between lo and hi bounds.
24496 while test "x$ac_lo" != "x$ac_hi"; do
24497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24498 cat >conftest.$ac_ext <<_ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h. */
24504 $ac_includes_default
24505 typedef int ac__type_sizeof_;
24509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24516 rm -f conftest.$ac_objext
24517 if { (ac_try="$ac_compile"
24518 case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523 (eval "$ac_compile") 2>conftest.er1
24525 grep -v '^ *+' conftest.er1 >conftest.err
24527 cat conftest.err >&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } && {
24530 test -z "$ac_c_werror_flag" ||
24531 test ! -s conftest.err
24532 } && test -s conftest.$ac_objext; then
24535 echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24538 ac_lo=`expr '(' $ac_mid ')' + 1`
24541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24544 ?*) ac_cv_sizeof_int=$ac_lo;;
24545 '') if test "$ac_cv_type_int" = yes; then
24546 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24547 See \`config.log' for more details." >&5
24548 echo "$as_me: error: cannot compute sizeof (int)
24549 See \`config.log' for more details." >&2;}
24550 { (exit 77); exit 77; }; }
24556 cat >conftest.$ac_ext <<_ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 $ac_includes_default
24563 typedef int ac__type_sizeof_;
24564 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24565 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24567 #include <stdlib.h>
24572 FILE *f = fopen ("conftest.val", "w");
24575 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24577 long int i = longval ();
24578 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24580 fprintf (f, "%ld\n", i);
24584 unsigned long int i = ulongval ();
24585 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24587 fprintf (f, "%lu\n", i);
24589 return ferror (f) || fclose (f) != 0;
24595 rm -f conftest$ac_exeext
24596 if { (ac_try="$ac_link"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_link") 2>&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24606 { (case "(($ac_try" in
24607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608 *) ac_try_echo=$ac_try;;
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611 (eval "$ac_try") 2>&5
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); }; }; then
24615 ac_cv_sizeof_int=`cat conftest.val`
24617 echo "$as_me: program exited with status $ac_status" >&5
24618 echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24621 ( exit $ac_status )
24622 if test "$ac_cv_type_int" = yes; then
24623 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24624 See \`config.log' for more details." >&5
24625 echo "$as_me: error: cannot compute sizeof (int)
24626 See \`config.log' for more details." >&2;}
24627 { (exit 77); exit 77; }; }
24632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24636 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24637 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24641 cat >>confdefs.h <<_ACEOF
24642 #define SIZEOF_INT $ac_cv_sizeof_int
24646 { echo "$as_me:$LINENO: checking for long int" >&5
24647 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24648 if test "${ac_cv_type_long_int+set}" = set; then
24649 echo $ECHO_N "(cached) $ECHO_C" >&6
24651 cat >conftest.$ac_ext <<_ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h. */
24657 $ac_includes_default
24658 typedef long int ac__type_new_;
24662 if ((ac__type_new_ *) 0)
24664 if (sizeof (ac__type_new_))
24670 rm -f conftest.$ac_objext
24671 if { (ac_try="$ac_compile"
24672 case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_compile") 2>conftest.er1
24679 grep -v '^ *+' conftest.er1 >conftest.err
24681 cat conftest.err >&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } && {
24684 test -z "$ac_c_werror_flag" ||
24685 test ! -s conftest.err
24686 } && test -s conftest.$ac_objext; then
24687 ac_cv_type_long_int=yes
24689 echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692 ac_cv_type_long_int=no
24695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24697 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24698 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24700 # The cast to long int works around a bug in the HP C Compiler
24701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24703 # This bug is HP SR number 8606223364.
24704 { echo "$as_me:$LINENO: checking size of long int" >&5
24705 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24706 if test "${ac_cv_sizeof_long_int+set}" = set; then
24707 echo $ECHO_N "(cached) $ECHO_C" >&6
24709 if test "$cross_compiling" = yes; then
24710 # Depending upon the size, compute the lo and hi bounds.
24711 cat >conftest.$ac_ext <<_ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h. */
24717 $ac_includes_default
24718 typedef long int ac__type_sizeof_;
24722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24729 rm -f conftest.$ac_objext
24730 if { (ac_try="$ac_compile"
24731 case "(($ac_try" in
24732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24733 *) ac_try_echo=$ac_try;;
24735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24736 (eval "$ac_compile") 2>conftest.er1
24738 grep -v '^ *+' conftest.er1 >conftest.err
24740 cat conftest.err >&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); } && {
24743 test -z "$ac_c_werror_flag" ||
24744 test ! -s conftest.err
24745 } && test -s conftest.$ac_objext; then
24748 cat >conftest.$ac_ext <<_ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h. */
24754 $ac_includes_default
24755 typedef long int ac__type_sizeof_;
24759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24766 rm -f conftest.$ac_objext
24767 if { (ac_try="$ac_compile"
24768 case "(($ac_try" in
24769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24770 *) ac_try_echo=$ac_try;;
24772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24773 (eval "$ac_compile") 2>conftest.er1
24775 grep -v '^ *+' conftest.er1 >conftest.err
24777 cat conftest.err >&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); } && {
24780 test -z "$ac_c_werror_flag" ||
24781 test ! -s conftest.err
24782 } && test -s conftest.$ac_objext; then
24783 ac_hi=$ac_mid; break
24785 echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24788 ac_lo=`expr $ac_mid + 1`
24789 if test $ac_lo -le $ac_mid; then
24793 ac_mid=`expr 2 '*' $ac_mid + 1`
24796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24799 echo "$as_me: failed program was:" >&5
24800 sed 's/^/| /' conftest.$ac_ext >&5
24802 cat >conftest.$ac_ext <<_ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h. */
24808 $ac_includes_default
24809 typedef long int ac__type_sizeof_;
24813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24820 rm -f conftest.$ac_objext
24821 if { (ac_try="$ac_compile"
24822 case "(($ac_try" in
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24827 (eval "$ac_compile") 2>conftest.er1
24829 grep -v '^ *+' conftest.er1 >conftest.err
24831 cat conftest.err >&5
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } && {
24834 test -z "$ac_c_werror_flag" ||
24835 test ! -s conftest.err
24836 } && test -s conftest.$ac_objext; then
24839 cat >conftest.$ac_ext <<_ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24845 $ac_includes_default
24846 typedef long int ac__type_sizeof_;
24850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24857 rm -f conftest.$ac_objext
24858 if { (ac_try="$ac_compile"
24859 case "(($ac_try" in
24860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24861 *) ac_try_echo=$ac_try;;
24863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24864 (eval "$ac_compile") 2>conftest.er1
24866 grep -v '^ *+' conftest.er1 >conftest.err
24868 cat conftest.err >&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } && {
24871 test -z "$ac_c_werror_flag" ||
24872 test ! -s conftest.err
24873 } && test -s conftest.$ac_objext; then
24874 ac_lo=$ac_mid; break
24876 echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24879 ac_hi=`expr '(' $ac_mid ')' - 1`
24880 if test $ac_mid -le $ac_hi; then
24884 ac_mid=`expr 2 '*' $ac_mid`
24887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24890 echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24900 # Binary search between lo and hi bounds.
24901 while test "x$ac_lo" != "x$ac_hi"; do
24902 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24903 cat >conftest.$ac_ext <<_ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h. */
24909 $ac_includes_default
24910 typedef long int ac__type_sizeof_;
24914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24921 rm -f conftest.$ac_objext
24922 if { (ac_try="$ac_compile"
24923 case "(($ac_try" in
24924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925 *) ac_try_echo=$ac_try;;
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928 (eval "$ac_compile") 2>conftest.er1
24930 grep -v '^ *+' conftest.er1 >conftest.err
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } && {
24935 test -z "$ac_c_werror_flag" ||
24936 test ! -s conftest.err
24937 } && test -s conftest.$ac_objext; then
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24943 ac_lo=`expr '(' $ac_mid ')' + 1`
24946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24949 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24950 '') if test "$ac_cv_type_long_int" = yes; then
24951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24952 See \`config.log' for more details." >&5
24953 echo "$as_me: error: cannot compute sizeof (long int)
24954 See \`config.log' for more details." >&2;}
24955 { (exit 77); exit 77; }; }
24957 ac_cv_sizeof_long_int=0
24961 cat >conftest.$ac_ext <<_ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h. */
24967 $ac_includes_default
24968 typedef long int ac__type_sizeof_;
24969 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24970 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24972 #include <stdlib.h>
24977 FILE *f = fopen ("conftest.val", "w");
24980 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24982 long int i = longval ();
24983 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24985 fprintf (f, "%ld\n", i);
24989 unsigned long int i = ulongval ();
24990 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24992 fprintf (f, "%lu\n", i);
24994 return ferror (f) || fclose (f) != 0;
25000 rm -f conftest$ac_exeext
25001 if { (ac_try="$ac_link"
25002 case "(($ac_try" in
25003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004 *) ac_try_echo=$ac_try;;
25006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25007 (eval "$ac_link") 2>&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25011 { (case "(($ac_try" in
25012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013 *) ac_try_echo=$ac_try;;
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_try") 2>&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25020 ac_cv_sizeof_long_int=`cat conftest.val`
25022 echo "$as_me: program exited with status $ac_status" >&5
25023 echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25026 ( exit $ac_status )
25027 if test "$ac_cv_type_long_int" = yes; then
25028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25029 See \`config.log' for more details." >&5
25030 echo "$as_me: error: cannot compute sizeof (long int)
25031 See \`config.log' for more details." >&2;}
25032 { (exit 77); exit 77; }; }
25034 ac_cv_sizeof_long_int=0
25037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25041 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25042 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25046 cat >>confdefs.h <<_ACEOF
25047 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25051 { echo "$as_me:$LINENO: checking for long long int" >&5
25052 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25053 if test "${ac_cv_type_long_long_int+set}" = set; then
25054 echo $ECHO_N "(cached) $ECHO_C" >&6
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 $ac_includes_default
25063 typedef long long int ac__type_new_;
25067 if ((ac__type_new_ *) 0)
25069 if (sizeof (ac__type_new_))
25075 rm -f conftest.$ac_objext
25076 if { (ac_try="$ac_compile"
25077 case "(($ac_try" in
25078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079 *) ac_try_echo=$ac_try;;
25081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25082 (eval "$ac_compile") 2>conftest.er1
25084 grep -v '^ *+' conftest.er1 >conftest.err
25086 cat conftest.err >&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } && {
25089 test -z "$ac_c_werror_flag" ||
25090 test ! -s conftest.err
25091 } && test -s conftest.$ac_objext; then
25092 ac_cv_type_long_long_int=yes
25094 echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25097 ac_cv_type_long_long_int=no
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25102 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25103 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25105 # The cast to long int works around a bug in the HP C Compiler
25106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25108 # This bug is HP SR number 8606223364.
25109 { echo "$as_me:$LINENO: checking size of long long int" >&5
25110 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25111 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25112 echo $ECHO_N "(cached) $ECHO_C" >&6
25114 if test "$cross_compiling" = yes; then
25115 # Depending upon the size, compute the lo and hi bounds.
25116 cat >conftest.$ac_ext <<_ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h. */
25122 $ac_includes_default
25123 typedef long long int ac__type_sizeof_;
25127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25134 rm -f conftest.$ac_objext
25135 if { (ac_try="$ac_compile"
25136 case "(($ac_try" in
25137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138 *) ac_try_echo=$ac_try;;
25140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25141 (eval "$ac_compile") 2>conftest.er1
25143 grep -v '^ *+' conftest.er1 >conftest.err
25145 cat conftest.err >&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); } && {
25148 test -z "$ac_c_werror_flag" ||
25149 test ! -s conftest.err
25150 } && test -s conftest.$ac_objext; then
25153 cat >conftest.$ac_ext <<_ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25159 $ac_includes_default
25160 typedef long long int ac__type_sizeof_;
25164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25171 rm -f conftest.$ac_objext
25172 if { (ac_try="$ac_compile"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178 (eval "$ac_compile") 2>conftest.er1
25180 grep -v '^ *+' conftest.er1 >conftest.err
25182 cat conftest.err >&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } && {
25185 test -z "$ac_c_werror_flag" ||
25186 test ! -s conftest.err
25187 } && test -s conftest.$ac_objext; then
25188 ac_hi=$ac_mid; break
25190 echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25193 ac_lo=`expr $ac_mid + 1`
25194 if test $ac_lo -le $ac_mid; then
25198 ac_mid=`expr 2 '*' $ac_mid + 1`
25201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25204 echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25207 cat >conftest.$ac_ext <<_ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h. */
25213 $ac_includes_default
25214 typedef long long int ac__type_sizeof_;
25218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25225 rm -f conftest.$ac_objext
25226 if { (ac_try="$ac_compile"
25227 case "(($ac_try" in
25228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229 *) ac_try_echo=$ac_try;;
25231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25232 (eval "$ac_compile") 2>conftest.er1
25234 grep -v '^ *+' conftest.er1 >conftest.err
25236 cat conftest.err >&5
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); } && {
25239 test -z "$ac_c_werror_flag" ||
25240 test ! -s conftest.err
25241 } && test -s conftest.$ac_objext; then
25244 cat >conftest.$ac_ext <<_ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25250 $ac_includes_default
25251 typedef long long int ac__type_sizeof_;
25255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25262 rm -f conftest.$ac_objext
25263 if { (ac_try="$ac_compile"
25264 case "(($ac_try" in
25265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266 *) ac_try_echo=$ac_try;;
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269 (eval "$ac_compile") 2>conftest.er1
25271 grep -v '^ *+' conftest.er1 >conftest.err
25273 cat conftest.err >&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); } && {
25276 test -z "$ac_c_werror_flag" ||
25277 test ! -s conftest.err
25278 } && test -s conftest.$ac_objext; then
25279 ac_lo=$ac_mid; break
25281 echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25284 ac_hi=`expr '(' $ac_mid ')' - 1`
25285 if test $ac_mid -le $ac_hi; then
25289 ac_mid=`expr 2 '*' $ac_mid`
25292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25295 echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25305 # Binary search between lo and hi bounds.
25306 while test "x$ac_lo" != "x$ac_hi"; do
25307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25308 cat >conftest.$ac_ext <<_ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25314 $ac_includes_default
25315 typedef long long int ac__type_sizeof_;
25319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25326 rm -f conftest.$ac_objext
25327 if { (ac_try="$ac_compile"
25328 case "(($ac_try" in
25329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330 *) ac_try_echo=$ac_try;;
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333 (eval "$ac_compile") 2>conftest.er1
25335 grep -v '^ *+' conftest.er1 >conftest.err
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } && {
25340 test -z "$ac_c_werror_flag" ||
25341 test ! -s conftest.err
25342 } && test -s conftest.$ac_objext; then
25345 echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25348 ac_lo=`expr '(' $ac_mid ')' + 1`
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25354 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25355 '') if test "$ac_cv_type_long_long_int" = yes; then
25356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25357 See \`config.log' for more details." >&5
25358 echo "$as_me: error: cannot compute sizeof (long long int)
25359 See \`config.log' for more details." >&2;}
25360 { (exit 77); exit 77; }; }
25362 ac_cv_sizeof_long_long_int=0
25366 cat >conftest.$ac_ext <<_ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h. */
25372 $ac_includes_default
25373 typedef long long int ac__type_sizeof_;
25374 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25375 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25377 #include <stdlib.h>
25382 FILE *f = fopen ("conftest.val", "w");
25385 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25387 long int i = longval ();
25388 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25390 fprintf (f, "%ld\n", i);
25394 unsigned long int i = ulongval ();
25395 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25397 fprintf (f, "%lu\n", i);
25399 return ferror (f) || fclose (f) != 0;
25405 rm -f conftest$ac_exeext
25406 if { (ac_try="$ac_link"
25407 case "(($ac_try" in
25408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25409 *) ac_try_echo=$ac_try;;
25411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25412 (eval "$ac_link") 2>&5
25414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25416 { (case "(($ac_try" in
25417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25418 *) ac_try_echo=$ac_try;;
25420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25421 (eval "$ac_try") 2>&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); }; }; then
25425 ac_cv_sizeof_long_long_int=`cat conftest.val`
25427 echo "$as_me: program exited with status $ac_status" >&5
25428 echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25431 ( exit $ac_status )
25432 if test "$ac_cv_type_long_long_int" = yes; then
25433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25434 See \`config.log' for more details." >&5
25435 echo "$as_me: error: cannot compute sizeof (long long int)
25436 See \`config.log' for more details." >&2;}
25437 { (exit 77); exit 77; }; }
25439 ac_cv_sizeof_long_long_int=0
25442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25446 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25447 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25451 cat >>confdefs.h <<_ACEOF
25452 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25456 { echo "$as_me:$LINENO: checking for int *" >&5
25457 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25458 if test "${ac_cv_type_int_p+set}" = set; then
25459 echo $ECHO_N "(cached) $ECHO_C" >&6
25461 cat >conftest.$ac_ext <<_ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h. */
25467 $ac_includes_default
25468 typedef int * ac__type_new_;
25472 if ((ac__type_new_ *) 0)
25474 if (sizeof (ac__type_new_))
25480 rm -f conftest.$ac_objext
25481 if { (ac_try="$ac_compile"
25482 case "(($ac_try" in
25483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487 (eval "$ac_compile") 2>conftest.er1
25489 grep -v '^ *+' conftest.er1 >conftest.err
25491 cat conftest.err >&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } && {
25494 test -z "$ac_c_werror_flag" ||
25495 test ! -s conftest.err
25496 } && test -s conftest.$ac_objext; then
25497 ac_cv_type_int_p=yes
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25502 ac_cv_type_int_p=no
25505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25507 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25508 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25510 # The cast to long int works around a bug in the HP C Compiler
25511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25513 # This bug is HP SR number 8606223364.
25514 { echo "$as_me:$LINENO: checking size of int *" >&5
25515 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25516 if test "${ac_cv_sizeof_int_p+set}" = set; then
25517 echo $ECHO_N "(cached) $ECHO_C" >&6
25519 if test "$cross_compiling" = yes; then
25520 # Depending upon the size, compute the lo and hi bounds.
25521 cat >conftest.$ac_ext <<_ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h. */
25527 $ac_includes_default
25528 typedef int * ac__type_sizeof_;
25532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25539 rm -f conftest.$ac_objext
25540 if { (ac_try="$ac_compile"
25541 case "(($ac_try" in
25542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25543 *) ac_try_echo=$ac_try;;
25545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25546 (eval "$ac_compile") 2>conftest.er1
25548 grep -v '^ *+' conftest.er1 >conftest.err
25550 cat conftest.err >&5
25551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552 (exit $ac_status); } && {
25553 test -z "$ac_c_werror_flag" ||
25554 test ! -s conftest.err
25555 } && test -s conftest.$ac_objext; then
25558 cat >conftest.$ac_ext <<_ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 $ac_includes_default
25565 typedef int * ac__type_sizeof_;
25569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25576 rm -f conftest.$ac_objext
25577 if { (ac_try="$ac_compile"
25578 case "(($ac_try" in
25579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580 *) ac_try_echo=$ac_try;;
25582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25583 (eval "$ac_compile") 2>conftest.er1
25585 grep -v '^ *+' conftest.er1 >conftest.err
25587 cat conftest.err >&5
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); } && {
25590 test -z "$ac_c_werror_flag" ||
25591 test ! -s conftest.err
25592 } && test -s conftest.$ac_objext; then
25593 ac_hi=$ac_mid; break
25595 echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25598 ac_lo=`expr $ac_mid + 1`
25599 if test $ac_lo -le $ac_mid; then
25603 ac_mid=`expr 2 '*' $ac_mid + 1`
25606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25609 echo "$as_me: failed program was:" >&5
25610 sed 's/^/| /' conftest.$ac_ext >&5
25612 cat >conftest.$ac_ext <<_ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25618 $ac_includes_default
25619 typedef int * ac__type_sizeof_;
25623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25630 rm -f conftest.$ac_objext
25631 if { (ac_try="$ac_compile"
25632 case "(($ac_try" in
25633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634 *) ac_try_echo=$ac_try;;
25636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25637 (eval "$ac_compile") 2>conftest.er1
25639 grep -v '^ *+' conftest.er1 >conftest.err
25641 cat conftest.err >&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); } && {
25644 test -z "$ac_c_werror_flag" ||
25645 test ! -s conftest.err
25646 } && test -s conftest.$ac_objext; then
25649 cat >conftest.$ac_ext <<_ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h. */
25655 $ac_includes_default
25656 typedef int * ac__type_sizeof_;
25660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25667 rm -f conftest.$ac_objext
25668 if { (ac_try="$ac_compile"
25669 case "(($ac_try" in
25670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25671 *) ac_try_echo=$ac_try;;
25673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25674 (eval "$ac_compile") 2>conftest.er1
25676 grep -v '^ *+' conftest.er1 >conftest.err
25678 cat conftest.err >&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } && {
25681 test -z "$ac_c_werror_flag" ||
25682 test ! -s conftest.err
25683 } && test -s conftest.$ac_objext; then
25684 ac_lo=$ac_mid; break
25686 echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25689 ac_hi=`expr '(' $ac_mid ')' - 1`
25690 if test $ac_mid -le $ac_hi; then
25694 ac_mid=`expr 2 '*' $ac_mid`
25697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25700 echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25710 # Binary search between lo and hi bounds.
25711 while test "x$ac_lo" != "x$ac_hi"; do
25712 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25713 cat >conftest.$ac_ext <<_ACEOF
25716 cat confdefs.h >>conftest.$ac_ext
25717 cat >>conftest.$ac_ext <<_ACEOF
25718 /* end confdefs.h. */
25719 $ac_includes_default
25720 typedef int * ac__type_sizeof_;
25724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25731 rm -f conftest.$ac_objext
25732 if { (ac_try="$ac_compile"
25733 case "(($ac_try" in
25734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25735 *) ac_try_echo=$ac_try;;
25737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25738 (eval "$ac_compile") 2>conftest.er1
25740 grep -v '^ *+' conftest.er1 >conftest.err
25742 cat conftest.err >&5
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); } && {
25745 test -z "$ac_c_werror_flag" ||
25746 test ! -s conftest.err
25747 } && test -s conftest.$ac_objext; then
25750 echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25753 ac_lo=`expr '(' $ac_mid ')' + 1`
25756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25759 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25760 '') if test "$ac_cv_type_int_p" = yes; then
25761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25762 See \`config.log' for more details." >&5
25763 echo "$as_me: error: cannot compute sizeof (int *)
25764 See \`config.log' for more details." >&2;}
25765 { (exit 77); exit 77; }; }
25767 ac_cv_sizeof_int_p=0
25771 cat >conftest.$ac_ext <<_ACEOF
25774 cat confdefs.h >>conftest.$ac_ext
25775 cat >>conftest.$ac_ext <<_ACEOF
25776 /* end confdefs.h. */
25777 $ac_includes_default
25778 typedef int * ac__type_sizeof_;
25779 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25780 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25782 #include <stdlib.h>
25787 FILE *f = fopen ("conftest.val", "w");
25790 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25792 long int i = longval ();
25793 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25795 fprintf (f, "%ld\n", i);
25799 unsigned long int i = ulongval ();
25800 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25802 fprintf (f, "%lu\n", i);
25804 return ferror (f) || fclose (f) != 0;
25810 rm -f conftest$ac_exeext
25811 if { (ac_try="$ac_link"
25812 case "(($ac_try" in
25813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25814 *) ac_try_echo=$ac_try;;
25816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25817 (eval "$ac_link") 2>&5
25819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25821 { (case "(($ac_try" in
25822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823 *) ac_try_echo=$ac_try;;
25825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25826 (eval "$ac_try") 2>&5
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); }; }; then
25830 ac_cv_sizeof_int_p=`cat conftest.val`
25832 echo "$as_me: program exited with status $ac_status" >&5
25833 echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25836 ( exit $ac_status )
25837 if test "$ac_cv_type_int_p" = yes; then
25838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25839 See \`config.log' for more details." >&5
25840 echo "$as_me: error: cannot compute sizeof (int *)
25841 See \`config.log' for more details." >&2;}
25842 { (exit 77); exit 77; }; }
25844 ac_cv_sizeof_int_p=0
25847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25851 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25852 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25856 cat >>confdefs.h <<_ACEOF
25857 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25862 # Check for sys/types.h types
25863 { echo "$as_me:$LINENO: checking for u_int type" >&5
25864 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25865 if test "${ac_cv_have_u_int+set}" = set; then
25866 echo $ECHO_N "(cached) $ECHO_C" >&6
25869 cat >conftest.$ac_ext <<_ACEOF
25872 cat confdefs.h >>conftest.$ac_ext
25873 cat >>conftest.$ac_ext <<_ACEOF
25874 /* end confdefs.h. */
25875 #include <sys/types.h>
25884 rm -f conftest.$ac_objext
25885 if { (ac_try="$ac_compile"
25886 case "(($ac_try" in
25887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25888 *) ac_try_echo=$ac_try;;
25890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25891 (eval "$ac_compile") 2>conftest.er1
25893 grep -v '^ *+' conftest.er1 >conftest.err
25895 cat conftest.err >&5
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); } && {
25898 test -z "$ac_c_werror_flag" ||
25899 test ! -s conftest.err
25900 } && test -s conftest.$ac_objext; then
25901 ac_cv_have_u_int="yes"
25903 echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 ac_cv_have_u_int="no"
25910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25913 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25914 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25915 if test "x$ac_cv_have_u_int" = "xyes" ; then
25916 cat >>confdefs.h <<\_ACEOF
25917 #define HAVE_U_INT 1
25923 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25924 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25925 if test "${ac_cv_have_intmax_t+set}" = set; then
25926 echo $ECHO_N "(cached) $ECHO_C" >&6
25929 cat >conftest.$ac_ext <<_ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25935 #include <sys/types.h>
25944 rm -f conftest.$ac_objext
25945 if { (ac_try="$ac_compile"
25946 case "(($ac_try" in
25947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25948 *) ac_try_echo=$ac_try;;
25950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25951 (eval "$ac_compile") 2>conftest.er1
25953 grep -v '^ *+' conftest.er1 >conftest.err
25955 cat conftest.err >&5
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); } && {
25958 test -z "$ac_c_werror_flag" ||
25959 test ! -s conftest.err
25960 } && test -s conftest.$ac_objext; then
25961 ac_cv_have_intmax_t="yes"
25963 echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25967 cat >conftest.$ac_ext <<_ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h. */
25973 #include <stdint.h>
25982 rm -f conftest.$ac_objext
25983 if { (ac_try="$ac_compile"
25984 case "(($ac_try" in
25985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989 (eval "$ac_compile") 2>conftest.er1
25991 grep -v '^ *+' conftest.er1 >conftest.err
25993 cat conftest.err >&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); } && {
25996 test -z "$ac_c_werror_flag" ||
25997 test ! -s conftest.err
25998 } && test -s conftest.$ac_objext; then
25999 ac_cv_have_intmax_t="yes"
26001 echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26004 ac_cv_have_intmax_t="no"
26008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26017 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26018 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26019 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26020 cat >>confdefs.h <<\_ACEOF
26021 #define HAVE_INTMAX_T 1
26028 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26029 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26030 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26031 echo $ECHO_N "(cached) $ECHO_C" >&6
26034 cat >conftest.$ac_ext <<_ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h. */
26040 #include <sys/types.h>
26044 u_intmax_t a; a = 1;
26049 rm -f conftest.$ac_objext
26050 if { (ac_try="$ac_compile"
26051 case "(($ac_try" in
26052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26053 *) ac_try_echo=$ac_try;;
26055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26056 (eval "$ac_compile") 2>conftest.er1
26058 grep -v '^ *+' conftest.er1 >conftest.err
26060 cat conftest.err >&5
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062 (exit $ac_status); } && {
26063 test -z "$ac_c_werror_flag" ||
26064 test ! -s conftest.err
26065 } && test -s conftest.$ac_objext; then
26066 ac_cv_have_u_intmax_t="yes"
26068 echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26072 cat >conftest.$ac_ext <<_ACEOF
26075 cat confdefs.h >>conftest.$ac_ext
26076 cat >>conftest.$ac_ext <<_ACEOF
26077 /* end confdefs.h. */
26078 #include <stdint.h>
26082 u_intmax_t a; a = 1;
26087 rm -f conftest.$ac_objext
26088 if { (ac_try="$ac_compile"
26089 case "(($ac_try" in
26090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091 *) ac_try_echo=$ac_try;;
26093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26094 (eval "$ac_compile") 2>conftest.er1
26096 grep -v '^ *+' conftest.er1 >conftest.err
26098 cat conftest.err >&5
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); } && {
26101 test -z "$ac_c_werror_flag" ||
26102 test ! -s conftest.err
26103 } && test -s conftest.$ac_objext; then
26104 ac_cv_have_u_intmax_t="yes"
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26109 ac_cv_have_u_intmax_t="no"
26113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26121 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26122 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26123 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26124 cat >>confdefs.h <<\_ACEOF
26125 #define HAVE_U_INTMAX_T 1
26132 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26133 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26134 if test "${ac_cv_have_intxx_t+set}" = set; then
26135 echo $ECHO_N "(cached) $ECHO_C" >&6
26138 cat >conftest.$ac_ext <<_ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h. */
26144 #include <sys/types.h>
26148 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26153 rm -f conftest.$ac_objext
26154 if { (ac_try="$ac_compile"
26155 case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160 (eval "$ac_compile") 2>conftest.er1
26162 grep -v '^ *+' conftest.er1 >conftest.err
26164 cat conftest.err >&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } && {
26167 test -z "$ac_c_werror_flag" ||
26168 test ! -s conftest.err
26169 } && test -s conftest.$ac_objext; then
26170 ac_cv_have_intxx_t="yes"
26172 echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26175 ac_cv_have_intxx_t="no"
26179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26182 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26183 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26184 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26185 cat >>confdefs.h <<\_ACEOF
26186 #define HAVE_INTXX_T 1
26192 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26193 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26194 if test "${ac_cv_have_int64_t+set}" = set; then
26195 echo $ECHO_N "(cached) $ECHO_C" >&6
26198 cat >conftest.$ac_ext <<_ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h. */
26204 #include <sys/types.h>
26213 rm -f conftest.$ac_objext
26214 if { (ac_try="$ac_compile"
26215 case "(($ac_try" in
26216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217 *) ac_try_echo=$ac_try;;
26219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26220 (eval "$ac_compile") 2>conftest.er1
26222 grep -v '^ *+' conftest.er1 >conftest.err
26224 cat conftest.err >&5
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); } && {
26227 test -z "$ac_c_werror_flag" ||
26228 test ! -s conftest.err
26229 } && test -s conftest.$ac_objext; then
26230 ac_cv_have_int64_t="yes"
26232 echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26235 ac_cv_have_int64_t="no"
26239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26242 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26243 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26244 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26245 cat >>confdefs.h <<\_ACEOF
26246 #define HAVE_INT64_T 1
26252 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26253 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26254 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26255 echo $ECHO_N "(cached) $ECHO_C" >&6
26258 cat >conftest.$ac_ext <<_ACEOF
26261 cat confdefs.h >>conftest.$ac_ext
26262 cat >>conftest.$ac_ext <<_ACEOF
26263 /* end confdefs.h. */
26264 #include <sys/types.h>
26268 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26273 rm -f conftest.$ac_objext
26274 if { (ac_try="$ac_compile"
26275 case "(($ac_try" in
26276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26277 *) ac_try_echo=$ac_try;;
26279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26280 (eval "$ac_compile") 2>conftest.er1
26282 grep -v '^ *+' conftest.er1 >conftest.err
26284 cat conftest.err >&5
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); } && {
26287 test -z "$ac_c_werror_flag" ||
26288 test ! -s conftest.err
26289 } && test -s conftest.$ac_objext; then
26290 ac_cv_have_u_intxx_t="yes"
26292 echo "$as_me: failed program was:" >&5
26293 sed 's/^/| /' conftest.$ac_ext >&5
26295 ac_cv_have_u_intxx_t="no"
26299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26303 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26304 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26305 cat >>confdefs.h <<\_ACEOF
26306 #define HAVE_U_INTXX_T 1
26312 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26313 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26314 if test "${ac_cv_have_u_int64_t+set}" = set; then
26315 echo $ECHO_N "(cached) $ECHO_C" >&6
26318 cat >conftest.$ac_ext <<_ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h. */
26324 #include <sys/types.h>
26328 u_int64_t a; a = 1;
26333 rm -f conftest.$ac_objext
26334 if { (ac_try="$ac_compile"
26335 case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340 (eval "$ac_compile") 2>conftest.er1
26342 grep -v '^ *+' conftest.er1 >conftest.err
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } && {
26347 test -z "$ac_c_werror_flag" ||
26348 test ! -s conftest.err
26349 } && test -s conftest.$ac_objext; then
26350 ac_cv_have_u_int64_t="yes"
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26355 ac_cv_have_u_int64_t="no"
26359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26362 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26363 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26364 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26365 cat >>confdefs.h <<\_ACEOF
26366 #define HAVE_U_INT64_T 1
26372 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26373 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26375 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26376 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26377 cat >conftest.$ac_ext <<_ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h. */
26383 #include <sys/bitypes.h>
26387 int8_t a; int16_t b; int32_t c;
26388 u_int8_t e; u_int16_t f; u_int32_t g;
26389 a = b = c = e = f = g = 1;
26394 rm -f conftest.$ac_objext
26395 if { (ac_try="$ac_compile"
26396 case "(($ac_try" in
26397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398 *) ac_try_echo=$ac_try;;
26400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401 (eval "$ac_compile") 2>conftest.er1
26403 grep -v '^ *+' conftest.er1 >conftest.err
26405 cat conftest.err >&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); } && {
26408 test -z "$ac_c_werror_flag" ||
26409 test ! -s conftest.err
26410 } && test -s conftest.$ac_objext; then
26411 cat >>confdefs.h <<\_ACEOF
26412 #define HAVE_U_INTXX_T 1
26415 cat >>confdefs.h <<\_ACEOF
26416 #define HAVE_INTXX_T 1
26419 cat >>confdefs.h <<\_ACEOF
26420 #define HAVE_SYS_BITYPES_H 1
26423 { echo "$as_me:$LINENO: result: yes" >&5
26424 echo "${ECHO_T}yes" >&6; }
26426 echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26429 { echo "$as_me:$LINENO: result: no" >&5
26430 echo "${ECHO_T}no" >&6; }
26434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26437 if test -z "$have_u_intxx_t" ; then
26438 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26439 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26440 if test "${ac_cv_have_uintxx_t+set}" = set; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26444 cat >conftest.$ac_ext <<_ACEOF
26447 cat confdefs.h >>conftest.$ac_ext
26448 cat >>conftest.$ac_ext <<_ACEOF
26449 /* end confdefs.h. */
26450 #include <sys/types.h>
26454 uint8_t a; uint16_t b;
26455 uint32_t c; a = b = c = 1;
26460 rm -f conftest.$ac_objext
26461 if { (ac_try="$ac_compile"
26462 case "(($ac_try" in
26463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26464 *) ac_try_echo=$ac_try;;
26466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26467 (eval "$ac_compile") 2>conftest.er1
26469 grep -v '^ *+' conftest.er1 >conftest.err
26471 cat conftest.err >&5
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } && {
26474 test -z "$ac_c_werror_flag" ||
26475 test ! -s conftest.err
26476 } && test -s conftest.$ac_objext; then
26477 ac_cv_have_uintxx_t="yes"
26479 echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26482 ac_cv_have_uintxx_t="no"
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26489 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26490 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26491 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26492 cat >>confdefs.h <<\_ACEOF
26493 #define HAVE_UINTXX_T 1
26499 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26500 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26502 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26503 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26504 cat >conftest.$ac_ext <<_ACEOF
26507 cat confdefs.h >>conftest.$ac_ext
26508 cat >>conftest.$ac_ext <<_ACEOF
26509 /* end confdefs.h. */
26510 #include <sys/bitypes.h>
26514 int64_t a; u_int64_t b;
26520 rm -f conftest.$ac_objext
26521 if { (ac_try="$ac_compile"
26522 case "(($ac_try" in
26523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524 *) ac_try_echo=$ac_try;;
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527 (eval "$ac_compile") 2>conftest.er1
26529 grep -v '^ *+' conftest.er1 >conftest.err
26531 cat conftest.err >&5
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); } && {
26534 test -z "$ac_c_werror_flag" ||
26535 test ! -s conftest.err
26536 } && test -s conftest.$ac_objext; then
26537 cat >>confdefs.h <<\_ACEOF
26538 #define HAVE_U_INT64_T 1
26541 cat >>confdefs.h <<\_ACEOF
26542 #define HAVE_INT64_T 1
26545 { echo "$as_me:$LINENO: result: yes" >&5
26546 echo "${ECHO_T}yes" >&6; }
26548 echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26551 { echo "$as_me:$LINENO: result: no" >&5
26552 echo "${ECHO_T}no" >&6; }
26556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26559 if (test -z "$have_uintxx_t" && \
26560 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26562 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26563 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26564 cat >conftest.$ac_ext <<_ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h. */
26570 #include <sys/bitypes.h>
26574 uint8_t a; uint16_t b;
26575 uint32_t c; a = b = c = 1;
26580 rm -f conftest.$ac_objext
26581 if { (ac_try="$ac_compile"
26582 case "(($ac_try" in
26583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584 *) ac_try_echo=$ac_try;;
26586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26587 (eval "$ac_compile") 2>conftest.er1
26589 grep -v '^ *+' conftest.er1 >conftest.err
26591 cat conftest.err >&5
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); } && {
26594 test -z "$ac_c_werror_flag" ||
26595 test ! -s conftest.err
26596 } && test -s conftest.$ac_objext; then
26597 cat >>confdefs.h <<\_ACEOF
26598 #define HAVE_UINTXX_T 1
26601 { echo "$as_me:$LINENO: result: yes" >&5
26602 echo "${ECHO_T}yes" >&6; }
26604 echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26607 { echo "$as_me:$LINENO: result: no" >&5
26608 echo "${ECHO_T}no" >&6; }
26612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26654 cat >conftest.$ac_ext <<_ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h. */
26660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26662 #define $ac_func innocuous_$ac_func
26664 /* System header to define __stub macros and hopefully few prototypes,
26665 which can conflict with char $ac_func (); below.
26666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26667 <limits.h> exists even on freestanding compilers. */
26670 # include <limits.h>
26672 # include <assert.h>
26677 /* Override any GCC internal prototype to avoid an error.
26678 Use char because int might match the return type of a GCC
26679 builtin and then its argument prototype would still apply. */
26684 /* The GNU C library defines this for functions which it implements
26685 to always fail with ENOSYS. Some functions are actually named
26686 something starting with __ and the normal name is an alias. */
26687 #if defined __stub_$ac_func || defined __stub___$ac_func
26694 return $ac_func ();
26699 rm -f conftest.$ac_objext conftest$ac_exeext
26700 if { (ac_try="$ac_link"
26701 case "(($ac_try" in
26702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703 *) ac_try_echo=$ac_try;;
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706 (eval "$ac_link") 2>conftest.er1
26708 grep -v '^ *+' conftest.er1 >conftest.err
26710 cat conftest.err >&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); } && {
26713 test -z "$ac_c_werror_flag" ||
26714 test ! -s conftest.err
26715 } && test -s conftest$ac_exeext &&
26716 $as_test_x conftest$ac_exeext; then
26717 eval "$as_ac_var=yes"
26719 echo "$as_me: failed program was:" >&5
26720 sed 's/^/| /' conftest.$ac_ext >&5
26722 eval "$as_ac_var=no"
26725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26726 conftest$ac_exeext conftest.$ac_ext
26728 ac_res=`eval echo '${'$as_ac_var'}'`
26729 { echo "$as_me:$LINENO: result: $ac_res" >&5
26730 echo "${ECHO_T}$ac_res" >&6; }
26731 if test `eval echo '${'$as_ac_var'}'` = yes; then
26732 cat >>confdefs.h <<_ACEOF
26733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26737 echo 'configure: cannot find needed function.'; exit 1
26744 for ac_func in fchdir
26746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26750 echo $ECHO_N "(cached) $ECHO_C" >&6
26752 cat >conftest.$ac_ext <<_ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26760 #define $ac_func innocuous_$ac_func
26762 /* System header to define __stub macros and hopefully few prototypes,
26763 which can conflict with char $ac_func (); below.
26764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26765 <limits.h> exists even on freestanding compilers. */
26768 # include <limits.h>
26770 # include <assert.h>
26775 /* Override any GCC internal prototype to avoid an error.
26776 Use char because int might match the return type of a GCC
26777 builtin and then its argument prototype would still apply. */
26782 /* The GNU C library defines this for functions which it implements
26783 to always fail with ENOSYS. Some functions are actually named
26784 something starting with __ and the normal name is an alias. */
26785 #if defined __stub_$ac_func || defined __stub___$ac_func
26792 return $ac_func ();
26797 rm -f conftest.$ac_objext conftest$ac_exeext
26798 if { (ac_try="$ac_link"
26799 case "(($ac_try" in
26800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801 *) ac_try_echo=$ac_try;;
26803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804 (eval "$ac_link") 2>conftest.er1
26806 grep -v '^ *+' conftest.er1 >conftest.err
26808 cat conftest.err >&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } && {
26811 test -z "$ac_c_werror_flag" ||
26812 test ! -s conftest.err
26813 } && test -s conftest$ac_exeext &&
26814 $as_test_x conftest$ac_exeext; then
26815 eval "$as_ac_var=yes"
26817 echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26820 eval "$as_ac_var=no"
26823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26824 conftest$ac_exeext conftest.$ac_ext
26826 ac_res=`eval echo '${'$as_ac_var'}'`
26827 { echo "$as_me:$LINENO: result: $ac_res" >&5
26828 echo "${ECHO_T}$ac_res" >&6; }
26829 if test `eval echo '${'$as_ac_var'}'` = yes; then
26830 cat >>confdefs.h <<_ACEOF
26831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26833 cat >>confdefs.h <<\_ACEOF
26834 #define HAVE_FCHDIR 1
26841 for ac_func in strtoll
26843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26847 echo $ECHO_N "(cached) $ECHO_C" >&6
26849 cat >conftest.$ac_ext <<_ACEOF
26852 cat confdefs.h >>conftest.$ac_ext
26853 cat >>conftest.$ac_ext <<_ACEOF
26854 /* end confdefs.h. */
26855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26857 #define $ac_func innocuous_$ac_func
26859 /* System header to define __stub macros and hopefully few prototypes,
26860 which can conflict with char $ac_func (); below.
26861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26862 <limits.h> exists even on freestanding compilers. */
26865 # include <limits.h>
26867 # include <assert.h>
26872 /* Override any GCC internal prototype to avoid an error.
26873 Use char because int might match the return type of a GCC
26874 builtin and then its argument prototype would still apply. */
26879 /* The GNU C library defines this for functions which it implements
26880 to always fail with ENOSYS. Some functions are actually named
26881 something starting with __ and the normal name is an alias. */
26882 #if defined __stub_$ac_func || defined __stub___$ac_func
26889 return $ac_func ();
26894 rm -f conftest.$ac_objext conftest$ac_exeext
26895 if { (ac_try="$ac_link"
26896 case "(($ac_try" in
26897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898 *) ac_try_echo=$ac_try;;
26900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26901 (eval "$ac_link") 2>conftest.er1
26903 grep -v '^ *+' conftest.er1 >conftest.err
26905 cat conftest.err >&5
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } && {
26908 test -z "$ac_c_werror_flag" ||
26909 test ! -s conftest.err
26910 } && test -s conftest$ac_exeext &&
26911 $as_test_x conftest$ac_exeext; then
26912 eval "$as_ac_var=yes"
26914 echo "$as_me: failed program was:" >&5
26915 sed 's/^/| /' conftest.$ac_ext >&5
26917 eval "$as_ac_var=no"
26920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26921 conftest$ac_exeext conftest.$ac_ext
26923 ac_res=`eval echo '${'$as_ac_var'}'`
26924 { echo "$as_me:$LINENO: result: $ac_res" >&5
26925 echo "${ECHO_T}$ac_res" >&6; }
26926 if test `eval echo '${'$as_ac_var'}'` = yes; then
26927 cat >>confdefs.h <<_ACEOF
26928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26930 cat >>confdefs.h <<\_ACEOF
26931 #define HAVE_STRTOLL 1
26938 for ac_func in posix_fadvise
26940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26944 echo $ECHO_N "(cached) $ECHO_C" >&6
26946 cat >conftest.$ac_ext <<_ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h. */
26952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26954 #define $ac_func innocuous_$ac_func
26956 /* System header to define __stub macros and hopefully few prototypes,
26957 which can conflict with char $ac_func (); below.
26958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26959 <limits.h> exists even on freestanding compilers. */
26962 # include <limits.h>
26964 # include <assert.h>
26969 /* Override any GCC internal prototype to avoid an error.
26970 Use char because int might match the return type of a GCC
26971 builtin and then its argument prototype would still apply. */
26976 /* The GNU C library defines this for functions which it implements
26977 to always fail with ENOSYS. Some functions are actually named
26978 something starting with __ and the normal name is an alias. */
26979 #if defined __stub_$ac_func || defined __stub___$ac_func
26986 return $ac_func ();
26991 rm -f conftest.$ac_objext conftest$ac_exeext
26992 if { (ac_try="$ac_link"
26993 case "(($ac_try" in
26994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26995 *) ac_try_echo=$ac_try;;
26997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26998 (eval "$ac_link") 2>conftest.er1
27000 grep -v '^ *+' conftest.er1 >conftest.err
27002 cat conftest.err >&5
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); } && {
27005 test -z "$ac_c_werror_flag" ||
27006 test ! -s conftest.err
27007 } && test -s conftest$ac_exeext &&
27008 $as_test_x conftest$ac_exeext; then
27009 eval "$as_ac_var=yes"
27011 echo "$as_me: failed program was:" >&5
27012 sed 's/^/| /' conftest.$ac_ext >&5
27014 eval "$as_ac_var=no"
27017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27018 conftest$ac_exeext conftest.$ac_ext
27020 ac_res=`eval echo '${'$as_ac_var'}'`
27021 { echo "$as_me:$LINENO: result: $ac_res" >&5
27022 echo "${ECHO_T}$ac_res" >&6; }
27023 if test `eval echo '${'$as_ac_var'}'` = yes; then
27024 cat >>confdefs.h <<_ACEOF
27025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27032 for ac_func in fdatasync
27034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27040 cat >conftest.$ac_ext <<_ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h. */
27046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27048 #define $ac_func innocuous_$ac_func
27050 /* System header to define __stub macros and hopefully few prototypes,
27051 which can conflict with char $ac_func (); below.
27052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27053 <limits.h> exists even on freestanding compilers. */
27056 # include <limits.h>
27058 # include <assert.h>
27063 /* Override any GCC internal prototype to avoid an error.
27064 Use char because int might match the return type of a GCC
27065 builtin and then its argument prototype would still apply. */
27070 /* The GNU C library defines this for functions which it implements
27071 to always fail with ENOSYS. Some functions are actually named
27072 something starting with __ and the normal name is an alias. */
27073 #if defined __stub_$ac_func || defined __stub___$ac_func
27080 return $ac_func ();
27085 rm -f conftest.$ac_objext conftest$ac_exeext
27086 if { (ac_try="$ac_link"
27087 case "(($ac_try" in
27088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27089 *) ac_try_echo=$ac_try;;
27091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27092 (eval "$ac_link") 2>conftest.er1
27094 grep -v '^ *+' conftest.er1 >conftest.err
27096 cat conftest.err >&5
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); } && {
27099 test -z "$ac_c_werror_flag" ||
27100 test ! -s conftest.err
27101 } && test -s conftest$ac_exeext &&
27102 $as_test_x conftest$ac_exeext; then
27103 eval "$as_ac_var=yes"
27105 echo "$as_me: failed program was:" >&5
27106 sed 's/^/| /' conftest.$ac_ext >&5
27108 eval "$as_ac_var=no"
27111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27112 conftest$ac_exeext conftest.$ac_ext
27114 ac_res=`eval echo '${'$as_ac_var'}'`
27115 { echo "$as_me:$LINENO: result: $ac_res" >&5
27116 echo "${ECHO_T}$ac_res" >&6; }
27117 if test `eval echo '${'$as_ac_var'}'` = yes; then
27118 cat >>confdefs.h <<_ACEOF
27119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27127 for ac_func in chflags
27129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27133 echo $ECHO_N "(cached) $ECHO_C" >&6
27135 cat >conftest.$ac_ext <<_ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h. */
27141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27143 #define $ac_func innocuous_$ac_func
27145 /* System header to define __stub macros and hopefully few prototypes,
27146 which can conflict with char $ac_func (); below.
27147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27148 <limits.h> exists even on freestanding compilers. */
27151 # include <limits.h>
27153 # include <assert.h>
27158 /* Override any GCC internal prototype to avoid an error.
27159 Use char because int might match the return type of a GCC
27160 builtin and then its argument prototype would still apply. */
27165 /* The GNU C library defines this for functions which it implements
27166 to always fail with ENOSYS. Some functions are actually named
27167 something starting with __ and the normal name is an alias. */
27168 #if defined __stub_$ac_func || defined __stub___$ac_func
27175 return $ac_func ();
27180 rm -f conftest.$ac_objext conftest$ac_exeext
27181 if { (ac_try="$ac_link"
27182 case "(($ac_try" in
27183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27184 *) ac_try_echo=$ac_try;;
27186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27187 (eval "$ac_link") 2>conftest.er1
27189 grep -v '^ *+' conftest.er1 >conftest.err
27191 cat conftest.err >&5
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); } && {
27194 test -z "$ac_c_werror_flag" ||
27195 test ! -s conftest.err
27196 } && test -s conftest$ac_exeext &&
27197 $as_test_x conftest$ac_exeext; then
27198 eval "$as_ac_var=yes"
27200 echo "$as_me: failed program was:" >&5
27201 sed 's/^/| /' conftest.$ac_ext >&5
27203 eval "$as_ac_var=no"
27206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27207 conftest$ac_exeext conftest.$ac_ext
27209 ac_res=`eval echo '${'$as_ac_var'}'`
27210 { echo "$as_me:$LINENO: result: $ac_res" >&5
27211 echo "${ECHO_T}$ac_res" >&6; }
27212 if test `eval echo '${'$as_ac_var'}'` = yes; then
27213 cat >>confdefs.h <<_ACEOF
27214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27225 for ac_func in snprintf vsnprintf gethostid fseeko
27227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27231 echo $ECHO_N "(cached) $ECHO_C" >&6
27233 cat >conftest.$ac_ext <<_ACEOF
27236 cat confdefs.h >>conftest.$ac_ext
27237 cat >>conftest.$ac_ext <<_ACEOF
27238 /* end confdefs.h. */
27239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27241 #define $ac_func innocuous_$ac_func
27243 /* System header to define __stub macros and hopefully few prototypes,
27244 which can conflict with char $ac_func (); below.
27245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27246 <limits.h> exists even on freestanding compilers. */
27249 # include <limits.h>
27251 # include <assert.h>
27256 /* Override any GCC internal prototype to avoid an error.
27257 Use char because int might match the return type of a GCC
27258 builtin and then its argument prototype would still apply. */
27263 /* The GNU C library defines this for functions which it implements
27264 to always fail with ENOSYS. Some functions are actually named
27265 something starting with __ and the normal name is an alias. */
27266 #if defined __stub_$ac_func || defined __stub___$ac_func
27273 return $ac_func ();
27278 rm -f conftest.$ac_objext conftest$ac_exeext
27279 if { (ac_try="$ac_link"
27280 case "(($ac_try" in
27281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282 *) ac_try_echo=$ac_try;;
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285 (eval "$ac_link") 2>conftest.er1
27287 grep -v '^ *+' conftest.er1 >conftest.err
27289 cat conftest.err >&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); } && {
27292 test -z "$ac_c_werror_flag" ||
27293 test ! -s conftest.err
27294 } && test -s conftest$ac_exeext &&
27295 $as_test_x conftest$ac_exeext; then
27296 eval "$as_ac_var=yes"
27298 echo "$as_me: failed program was:" >&5
27299 sed 's/^/| /' conftest.$ac_ext >&5
27301 eval "$as_ac_var=no"
27304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27305 conftest$ac_exeext conftest.$ac_ext
27307 ac_res=`eval echo '${'$as_ac_var'}'`
27308 { echo "$as_me:$LINENO: result: $ac_res" >&5
27309 echo "${ECHO_T}$ac_res" >&6; }
27310 if test `eval echo '${'$as_ac_var'}'` = yes; then
27311 cat >>confdefs.h <<_ACEOF
27312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27319 { echo "$as_me:$LINENO: checking for va_copy" >&5
27320 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27321 if test "${ba_cv_va_copy+set}" = set; then
27322 echo $ECHO_N "(cached) $ECHO_C" >&6
27324 cat >conftest.$ac_ext <<_ACEOF
27327 cat confdefs.h >>conftest.$ac_ext
27328 cat >>conftest.$ac_ext <<_ACEOF
27329 /* end confdefs.h. */
27331 #include <stdarg.h>
27332 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27333 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27338 call_use_va_copy(1,2,3)
27343 rm -f conftest.$ac_objext conftest$ac_exeext
27344 if { (ac_try="$ac_link"
27345 case "(($ac_try" in
27346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347 *) ac_try_echo=$ac_try;;
27349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350 (eval "$ac_link") 2>conftest.er1
27352 grep -v '^ *+' conftest.er1 >conftest.err
27354 cat conftest.err >&5
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); } && {
27357 test -z "$ac_c_werror_flag" ||
27358 test ! -s conftest.err
27359 } && test -s conftest$ac_exeext &&
27360 $as_test_x conftest$ac_exeext; then
27363 echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27370 conftest$ac_exeext conftest.$ac_ext
27372 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27373 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27374 test $ba_cv_va_copy = yes &&
27375 cat >>confdefs.h <<\_ACEOF
27376 #define HAVE_VA_COPY 1
27385 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27391 echo $ECHO_N "(cached) $ECHO_C" >&6
27393 cat >conftest.$ac_ext <<_ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h. */
27399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27401 #define $ac_func innocuous_$ac_func
27403 /* System header to define __stub macros and hopefully few prototypes,
27404 which can conflict with char $ac_func (); below.
27405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27406 <limits.h> exists even on freestanding compilers. */
27409 # include <limits.h>
27411 # include <assert.h>
27416 /* Override any GCC internal prototype to avoid an error.
27417 Use char because int might match the return type of a GCC
27418 builtin and then its argument prototype would still apply. */
27423 /* The GNU C library defines this for functions which it implements
27424 to always fail with ENOSYS. Some functions are actually named
27425 something starting with __ and the normal name is an alias. */
27426 #if defined __stub_$ac_func || defined __stub___$ac_func
27433 return $ac_func ();
27438 rm -f conftest.$ac_objext conftest$ac_exeext
27439 if { (ac_try="$ac_link"
27440 case "(($ac_try" in
27441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442 *) ac_try_echo=$ac_try;;
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445 (eval "$ac_link") 2>conftest.er1
27447 grep -v '^ *+' conftest.er1 >conftest.err
27449 cat conftest.err >&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } && {
27452 test -z "$ac_c_werror_flag" ||
27453 test ! -s conftest.err
27454 } && test -s conftest$ac_exeext &&
27455 $as_test_x conftest$ac_exeext; then
27456 eval "$as_ac_var=yes"
27458 echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27461 eval "$as_ac_var=no"
27464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27465 conftest$ac_exeext conftest.$ac_ext
27467 ac_res=`eval echo '${'$as_ac_var'}'`
27468 { echo "$as_me:$LINENO: result: $ac_res" >&5
27469 echo "${ECHO_T}$ac_res" >&6; }
27470 if test `eval echo '${'$as_ac_var'}'` = yes; then
27471 cat >>confdefs.h <<_ACEOF
27472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27479 # If resolver functions are not in libc check for -lnsl or -lresolv.
27480 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27481 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27482 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27483 echo $ECHO_N "(cached) $ECHO_C" >&6
27485 cat >conftest.$ac_ext <<_ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h. */
27491 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27493 #define gethostbyname_r innocuous_gethostbyname_r
27495 /* System header to define __stub macros and hopefully few prototypes,
27496 which can conflict with char gethostbyname_r (); below.
27497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27498 <limits.h> exists even on freestanding compilers. */
27501 # include <limits.h>
27503 # include <assert.h>
27506 #undef gethostbyname_r
27508 /* Override any GCC internal prototype to avoid an error.
27509 Use char because int might match the return type of a GCC
27510 builtin and then its argument prototype would still apply. */
27514 char gethostbyname_r ();
27515 /* The GNU C library defines this for functions which it implements
27516 to always fail with ENOSYS. Some functions are actually named
27517 something starting with __ and the normal name is an alias. */
27518 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27525 return gethostbyname_r ();
27530 rm -f conftest.$ac_objext conftest$ac_exeext
27531 if { (ac_try="$ac_link"
27532 case "(($ac_try" in
27533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534 *) ac_try_echo=$ac_try;;
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_link") 2>conftest.er1
27539 grep -v '^ *+' conftest.er1 >conftest.err
27541 cat conftest.err >&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } && {
27544 test -z "$ac_c_werror_flag" ||
27545 test ! -s conftest.err
27546 } && test -s conftest$ac_exeext &&
27547 $as_test_x conftest$ac_exeext; then
27548 ac_cv_func_gethostbyname_r=yes
27550 echo "$as_me: failed program was:" >&5
27551 sed 's/^/| /' conftest.$ac_ext >&5
27553 ac_cv_func_gethostbyname_r=no
27556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27557 conftest$ac_exeext conftest.$ac_ext
27559 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27560 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27561 if test $ac_cv_func_gethostbyname_r = yes; then
27562 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27563 echo "${ECHO_T}using libc's resolver" >&6; }
27566 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27567 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27568 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27569 echo $ECHO_N "(cached) $ECHO_C" >&6
27571 ac_check_lib_save_LIBS=$LIBS
27573 cat >conftest.$ac_ext <<_ACEOF
27576 cat confdefs.h >>conftest.$ac_ext
27577 cat >>conftest.$ac_ext <<_ACEOF
27578 /* end confdefs.h. */
27580 /* Override any GCC internal prototype to avoid an error.
27581 Use char because int might match the return type of a GCC
27582 builtin and then its argument prototype would still apply. */
27586 char gethostbyname_r ();
27590 return gethostbyname_r ();
27595 rm -f conftest.$ac_objext conftest$ac_exeext
27596 if { (ac_try="$ac_link"
27597 case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602 (eval "$ac_link") 2>conftest.er1
27604 grep -v '^ *+' conftest.er1 >conftest.err
27606 cat conftest.err >&5
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); } && {
27609 test -z "$ac_c_werror_flag" ||
27610 test ! -s conftest.err
27611 } && test -s conftest$ac_exeext &&
27612 $as_test_x conftest$ac_exeext; then
27613 ac_cv_lib_nsl_gethostbyname_r=yes
27615 echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27618 ac_cv_lib_nsl_gethostbyname_r=no
27621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27622 conftest$ac_exeext conftest.$ac_ext
27623 LIBS=$ac_check_lib_save_LIBS
27625 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27626 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27627 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27628 cat >>confdefs.h <<_ACEOF
27629 #define HAVE_LIBNSL 1
27637 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27638 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27639 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27640 echo $ECHO_N "(cached) $ECHO_C" >&6
27642 ac_check_lib_save_LIBS=$LIBS
27643 LIBS="-lresolv $LIBS"
27644 cat >conftest.$ac_ext <<_ACEOF
27647 cat confdefs.h >>conftest.$ac_ext
27648 cat >>conftest.$ac_ext <<_ACEOF
27649 /* end confdefs.h. */
27651 /* Override any GCC internal prototype to avoid an error.
27652 Use char because int might match the return type of a GCC
27653 builtin and then its argument prototype would still apply. */
27657 char gethostbyname_r ();
27661 return gethostbyname_r ();
27666 rm -f conftest.$ac_objext conftest$ac_exeext
27667 if { (ac_try="$ac_link"
27668 case "(($ac_try" in
27669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27670 *) ac_try_echo=$ac_try;;
27672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27673 (eval "$ac_link") 2>conftest.er1
27675 grep -v '^ *+' conftest.er1 >conftest.err
27677 cat conftest.err >&5
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); } && {
27680 test -z "$ac_c_werror_flag" ||
27681 test ! -s conftest.err
27682 } && test -s conftest$ac_exeext &&
27683 $as_test_x conftest$ac_exeext; then
27684 ac_cv_lib_resolv_gethostbyname_r=yes
27686 echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27689 ac_cv_lib_resolv_gethostbyname_r=no
27692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27693 conftest$ac_exeext conftest.$ac_ext
27694 LIBS=$ac_check_lib_save_LIBS
27696 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27697 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27698 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27699 cat >>confdefs.h <<_ACEOF
27700 #define HAVE_LIBRESOLV 1
27703 LIBS="-lresolv $LIBS"
27713 for ac_func in inet_pton
27715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27719 echo $ECHO_N "(cached) $ECHO_C" >&6
27721 cat >conftest.$ac_ext <<_ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h. */
27727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27729 #define $ac_func innocuous_$ac_func
27731 /* System header to define __stub macros and hopefully few prototypes,
27732 which can conflict with char $ac_func (); below.
27733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27734 <limits.h> exists even on freestanding compilers. */
27737 # include <limits.h>
27739 # include <assert.h>
27744 /* Override any GCC internal prototype to avoid an error.
27745 Use char because int might match the return type of a GCC
27746 builtin and then its argument prototype would still apply. */
27751 /* The GNU C library defines this for functions which it implements
27752 to always fail with ENOSYS. Some functions are actually named
27753 something starting with __ and the normal name is an alias. */
27754 #if defined __stub_$ac_func || defined __stub___$ac_func
27761 return $ac_func ();
27766 rm -f conftest.$ac_objext conftest$ac_exeext
27767 if { (ac_try="$ac_link"
27768 case "(($ac_try" in
27769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770 *) ac_try_echo=$ac_try;;
27772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773 (eval "$ac_link") 2>conftest.er1
27775 grep -v '^ *+' conftest.er1 >conftest.err
27777 cat conftest.err >&5
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } && {
27780 test -z "$ac_c_werror_flag" ||
27781 test ! -s conftest.err
27782 } && test -s conftest$ac_exeext &&
27783 $as_test_x conftest$ac_exeext; then
27784 eval "$as_ac_var=yes"
27786 echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.$ac_ext >&5
27789 eval "$as_ac_var=no"
27792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27793 conftest$ac_exeext conftest.$ac_ext
27795 ac_res=`eval echo '${'$as_ac_var'}'`
27796 { echo "$as_me:$LINENO: result: $ac_res" >&5
27797 echo "${ECHO_T}$ac_res" >&6; }
27798 if test `eval echo '${'$as_ac_var'}'` = yes; then
27799 cat >>confdefs.h <<_ACEOF
27800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27802 cat >>confdefs.h <<\_ACEOF
27803 #define HAVE_INET_PTON 1
27810 for ac_func in inet_ntop
27812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27816 echo $ECHO_N "(cached) $ECHO_C" >&6
27818 cat >conftest.$ac_ext <<_ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h. */
27824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27826 #define $ac_func innocuous_$ac_func
27828 /* System header to define __stub macros and hopefully few prototypes,
27829 which can conflict with char $ac_func (); below.
27830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27831 <limits.h> exists even on freestanding compilers. */
27834 # include <limits.h>
27836 # include <assert.h>
27841 /* Override any GCC internal prototype to avoid an error.
27842 Use char because int might match the return type of a GCC
27843 builtin and then its argument prototype would still apply. */
27848 /* The GNU C library defines this for functions which it implements
27849 to always fail with ENOSYS. Some functions are actually named
27850 something starting with __ and the normal name is an alias. */
27851 #if defined __stub_$ac_func || defined __stub___$ac_func
27858 return $ac_func ();
27863 rm -f conftest.$ac_objext conftest$ac_exeext
27864 if { (ac_try="$ac_link"
27865 case "(($ac_try" in
27866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867 *) ac_try_echo=$ac_try;;
27869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870 (eval "$ac_link") 2>conftest.er1
27872 grep -v '^ *+' conftest.er1 >conftest.err
27874 cat conftest.err >&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } && {
27877 test -z "$ac_c_werror_flag" ||
27878 test ! -s conftest.err
27879 } && test -s conftest$ac_exeext &&
27880 $as_test_x conftest$ac_exeext; then
27881 eval "$as_ac_var=yes"
27883 echo "$as_me: failed program was:" >&5
27884 sed 's/^/| /' conftest.$ac_ext >&5
27886 eval "$as_ac_var=no"
27889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27890 conftest$ac_exeext conftest.$ac_ext
27892 ac_res=`eval echo '${'$as_ac_var'}'`
27893 { echo "$as_me:$LINENO: result: $ac_res" >&5
27894 echo "${ECHO_T}$ac_res" >&6; }
27895 if test `eval echo '${'$as_ac_var'}'` = yes; then
27896 cat >>confdefs.h <<_ACEOF
27897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27899 cat >>confdefs.h <<\_ACEOF
27900 #define HAVE_INET_NTOP 1
27907 for ac_func in gethostbyname2
27909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27913 echo $ECHO_N "(cached) $ECHO_C" >&6
27915 cat >conftest.$ac_ext <<_ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h. */
27921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27923 #define $ac_func innocuous_$ac_func
27925 /* System header to define __stub macros and hopefully few prototypes,
27926 which can conflict with char $ac_func (); below.
27927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27928 <limits.h> exists even on freestanding compilers. */
27931 # include <limits.h>
27933 # include <assert.h>
27938 /* Override any GCC internal prototype to avoid an error.
27939 Use char because int might match the return type of a GCC
27940 builtin and then its argument prototype would still apply. */
27945 /* The GNU C library defines this for functions which it implements
27946 to always fail with ENOSYS. Some functions are actually named
27947 something starting with __ and the normal name is an alias. */
27948 #if defined __stub_$ac_func || defined __stub___$ac_func
27955 return $ac_func ();
27960 rm -f conftest.$ac_objext conftest$ac_exeext
27961 if { (ac_try="$ac_link"
27962 case "(($ac_try" in
27963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27964 *) ac_try_echo=$ac_try;;
27966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27967 (eval "$ac_link") 2>conftest.er1
27969 grep -v '^ *+' conftest.er1 >conftest.err
27971 cat conftest.err >&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); } && {
27974 test -z "$ac_c_werror_flag" ||
27975 test ! -s conftest.err
27976 } && test -s conftest$ac_exeext &&
27977 $as_test_x conftest$ac_exeext; then
27978 eval "$as_ac_var=yes"
27980 echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27983 eval "$as_ac_var=no"
27986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27987 conftest$ac_exeext conftest.$ac_ext
27989 ac_res=`eval echo '${'$as_ac_var'}'`
27990 { echo "$as_me:$LINENO: result: $ac_res" >&5
27991 echo "${ECHO_T}$ac_res" >&6; }
27992 if test `eval echo '${'$as_ac_var'}'` = yes; then
27993 cat >>confdefs.h <<_ACEOF
27994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27996 cat >>confdefs.h <<\_ACEOF
27997 #define HAVE_GETHOSTBYNAME2 1
28004 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28005 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28006 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28007 echo $ECHO_N "(cached) $ECHO_C" >&6
28009 cat >conftest.$ac_ext <<_ACEOF
28012 cat confdefs.h >>conftest.$ac_ext
28013 cat >>conftest.$ac_ext <<_ACEOF
28014 /* end confdefs.h. */
28015 #include <sys/socket.h>
28019 struct sockaddr s; s.sa_len;
28024 rm -f conftest.$ac_objext
28025 if { (ac_try="$ac_compile"
28026 case "(($ac_try" in
28027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28028 *) ac_try_echo=$ac_try;;
28030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28031 (eval "$ac_compile") 2>conftest.er1
28033 grep -v '^ *+' conftest.er1 >conftest.err
28035 cat conftest.err >&5
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); } && {
28038 test -z "$ac_c_werror_flag" ||
28039 test ! -s conftest.err
28040 } && test -s conftest.$ac_objext; then
28041 ac_cv_struct_sockaddr_sa_len=yes
28043 echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28046 ac_cv_struct_sockaddr_sa_len=no
28049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28051 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28052 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28054 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28056 cat >>confdefs.h <<\_ACEOF
28057 #define HAVE_SA_LEN 1
28066 for ac_func in strftime
28068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28072 echo $ECHO_N "(cached) $ECHO_C" >&6
28074 cat >conftest.$ac_ext <<_ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h. */
28080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28082 #define $ac_func innocuous_$ac_func
28084 /* System header to define __stub macros and hopefully few prototypes,
28085 which can conflict with char $ac_func (); below.
28086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28087 <limits.h> exists even on freestanding compilers. */
28090 # include <limits.h>
28092 # include <assert.h>
28097 /* Override any GCC internal prototype to avoid an error.
28098 Use char because int might match the return type of a GCC
28099 builtin and then its argument prototype would still apply. */
28104 /* The GNU C library defines this for functions which it implements
28105 to always fail with ENOSYS. Some functions are actually named
28106 something starting with __ and the normal name is an alias. */
28107 #if defined __stub_$ac_func || defined __stub___$ac_func
28114 return $ac_func ();
28119 rm -f conftest.$ac_objext conftest$ac_exeext
28120 if { (ac_try="$ac_link"
28121 case "(($ac_try" in
28122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123 *) ac_try_echo=$ac_try;;
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126 (eval "$ac_link") 2>conftest.er1
28128 grep -v '^ *+' conftest.er1 >conftest.err
28130 cat conftest.err >&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); } && {
28133 test -z "$ac_c_werror_flag" ||
28134 test ! -s conftest.err
28135 } && test -s conftest$ac_exeext &&
28136 $as_test_x conftest$ac_exeext; then
28137 eval "$as_ac_var=yes"
28139 echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28142 eval "$as_ac_var=no"
28145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28146 conftest$ac_exeext conftest.$ac_ext
28148 ac_res=`eval echo '${'$as_ac_var'}'`
28149 { echo "$as_me:$LINENO: result: $ac_res" >&5
28150 echo "${ECHO_T}$ac_res" >&6; }
28151 if test `eval echo '${'$as_ac_var'}'` = yes; then
28152 cat >>confdefs.h <<_ACEOF
28153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28157 # strftime is in -lintl on SCO UNIX.
28158 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28159 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28160 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28163 ac_check_lib_save_LIBS=$LIBS
28164 LIBS="-lintl $LIBS"
28165 cat >conftest.$ac_ext <<_ACEOF
28168 cat confdefs.h >>conftest.$ac_ext
28169 cat >>conftest.$ac_ext <<_ACEOF
28170 /* end confdefs.h. */
28172 /* Override any GCC internal prototype to avoid an error.
28173 Use char because int might match the return type of a GCC
28174 builtin and then its argument prototype would still apply. */
28182 return strftime ();
28187 rm -f conftest.$ac_objext conftest$ac_exeext
28188 if { (ac_try="$ac_link"
28189 case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_link") 2>conftest.er1
28196 grep -v '^ *+' conftest.er1 >conftest.err
28198 cat conftest.err >&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } && {
28201 test -z "$ac_c_werror_flag" ||
28202 test ! -s conftest.err
28203 } && test -s conftest$ac_exeext &&
28204 $as_test_x conftest$ac_exeext; then
28205 ac_cv_lib_intl_strftime=yes
28207 echo "$as_me: failed program was:" >&5
28208 sed 's/^/| /' conftest.$ac_ext >&5
28210 ac_cv_lib_intl_strftime=no
28213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28214 conftest$ac_exeext conftest.$ac_ext
28215 LIBS=$ac_check_lib_save_LIBS
28217 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28218 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28219 if test $ac_cv_lib_intl_strftime = yes; then
28220 cat >>confdefs.h <<\_ACEOF
28221 #define HAVE_STRFTIME 1
28224 LIBS="-lintl $LIBS"
28231 for ac_func in vprintf
28233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28239 cat >conftest.$ac_ext <<_ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h. */
28245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28247 #define $ac_func innocuous_$ac_func
28249 /* System header to define __stub macros and hopefully few prototypes,
28250 which can conflict with char $ac_func (); below.
28251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28252 <limits.h> exists even on freestanding compilers. */
28255 # include <limits.h>
28257 # include <assert.h>
28262 /* Override any GCC internal prototype to avoid an error.
28263 Use char because int might match the return type of a GCC
28264 builtin and then its argument prototype would still apply. */
28269 /* The GNU C library defines this for functions which it implements
28270 to always fail with ENOSYS. Some functions are actually named
28271 something starting with __ and the normal name is an alias. */
28272 #if defined __stub_$ac_func || defined __stub___$ac_func
28279 return $ac_func ();
28284 rm -f conftest.$ac_objext conftest$ac_exeext
28285 if { (ac_try="$ac_link"
28286 case "(($ac_try" in
28287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288 *) ac_try_echo=$ac_try;;
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291 (eval "$ac_link") 2>conftest.er1
28293 grep -v '^ *+' conftest.er1 >conftest.err
28295 cat conftest.err >&5
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); } && {
28298 test -z "$ac_c_werror_flag" ||
28299 test ! -s conftest.err
28300 } && test -s conftest$ac_exeext &&
28301 $as_test_x conftest$ac_exeext; then
28302 eval "$as_ac_var=yes"
28304 echo "$as_me: failed program was:" >&5
28305 sed 's/^/| /' conftest.$ac_ext >&5
28307 eval "$as_ac_var=no"
28310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28311 conftest$ac_exeext conftest.$ac_ext
28313 ac_res=`eval echo '${'$as_ac_var'}'`
28314 { echo "$as_me:$LINENO: result: $ac_res" >&5
28315 echo "${ECHO_T}$ac_res" >&6; }
28316 if test `eval echo '${'$as_ac_var'}'` = yes; then
28317 cat >>confdefs.h <<_ACEOF
28318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28321 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28322 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28323 if test "${ac_cv_func__doprnt+set}" = set; then
28324 echo $ECHO_N "(cached) $ECHO_C" >&6
28326 cat >conftest.$ac_ext <<_ACEOF
28329 cat confdefs.h >>conftest.$ac_ext
28330 cat >>conftest.$ac_ext <<_ACEOF
28331 /* end confdefs.h. */
28332 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28334 #define _doprnt innocuous__doprnt
28336 /* System header to define __stub macros and hopefully few prototypes,
28337 which can conflict with char _doprnt (); below.
28338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28339 <limits.h> exists even on freestanding compilers. */
28342 # include <limits.h>
28344 # include <assert.h>
28349 /* Override any GCC internal prototype to avoid an error.
28350 Use char because int might match the return type of a GCC
28351 builtin and then its argument prototype would still apply. */
28356 /* The GNU C library defines this for functions which it implements
28357 to always fail with ENOSYS. Some functions are actually named
28358 something starting with __ and the normal name is an alias. */
28359 #if defined __stub__doprnt || defined __stub____doprnt
28371 rm -f conftest.$ac_objext conftest$ac_exeext
28372 if { (ac_try="$ac_link"
28373 case "(($ac_try" in
28374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28375 *) ac_try_echo=$ac_try;;
28377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28378 (eval "$ac_link") 2>conftest.er1
28380 grep -v '^ *+' conftest.er1 >conftest.err
28382 cat conftest.err >&5
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); } && {
28385 test -z "$ac_c_werror_flag" ||
28386 test ! -s conftest.err
28387 } && test -s conftest$ac_exeext &&
28388 $as_test_x conftest$ac_exeext; then
28389 ac_cv_func__doprnt=yes
28391 echo "$as_me: failed program was:" >&5
28392 sed 's/^/| /' conftest.$ac_ext >&5
28394 ac_cv_func__doprnt=no
28397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28398 conftest$ac_exeext conftest.$ac_ext
28400 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28401 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28402 if test $ac_cv_func__doprnt = yes; then
28404 cat >>confdefs.h <<\_ACEOF
28405 #define HAVE_DOPRNT 1
28414 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28415 # for constant arguments. Useless!
28416 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28417 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28418 if test "${ac_cv_working_alloca_h+set}" = set; then
28419 echo $ECHO_N "(cached) $ECHO_C" >&6
28421 cat >conftest.$ac_ext <<_ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h. */
28427 #include <alloca.h>
28431 char *p = (char *) alloca (2 * sizeof (int));
28437 rm -f conftest.$ac_objext conftest$ac_exeext
28438 if { (ac_try="$ac_link"
28439 case "(($ac_try" in
28440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28441 *) ac_try_echo=$ac_try;;
28443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28444 (eval "$ac_link") 2>conftest.er1
28446 grep -v '^ *+' conftest.er1 >conftest.err
28448 cat conftest.err >&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } && {
28451 test -z "$ac_c_werror_flag" ||
28452 test ! -s conftest.err
28453 } && test -s conftest$ac_exeext &&
28454 $as_test_x conftest$ac_exeext; then
28455 ac_cv_working_alloca_h=yes
28457 echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28460 ac_cv_working_alloca_h=no
28463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28464 conftest$ac_exeext conftest.$ac_ext
28466 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28467 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28468 if test $ac_cv_working_alloca_h = yes; then
28470 cat >>confdefs.h <<\_ACEOF
28471 #define HAVE_ALLOCA_H 1
28476 { echo "$as_me:$LINENO: checking for alloca" >&5
28477 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28478 if test "${ac_cv_func_alloca_works+set}" = set; then
28479 echo $ECHO_N "(cached) $ECHO_C" >&6
28481 cat >conftest.$ac_ext <<_ACEOF
28484 cat confdefs.h >>conftest.$ac_ext
28485 cat >>conftest.$ac_ext <<_ACEOF
28486 /* end confdefs.h. */
28488 # define alloca __builtin_alloca
28491 # include <malloc.h>
28492 # define alloca _alloca
28494 # ifdef HAVE_ALLOCA_H
28495 # include <alloca.h>
28500 # ifndef alloca /* predefined by HP cc +Olibcalls */
28511 char *p = (char *) alloca (1);
28517 rm -f conftest.$ac_objext conftest$ac_exeext
28518 if { (ac_try="$ac_link"
28519 case "(($ac_try" in
28520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28521 *) ac_try_echo=$ac_try;;
28523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28524 (eval "$ac_link") 2>conftest.er1
28526 grep -v '^ *+' conftest.er1 >conftest.err
28528 cat conftest.err >&5
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); } && {
28531 test -z "$ac_c_werror_flag" ||
28532 test ! -s conftest.err
28533 } && test -s conftest$ac_exeext &&
28534 $as_test_x conftest$ac_exeext; then
28535 ac_cv_func_alloca_works=yes
28537 echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28540 ac_cv_func_alloca_works=no
28543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28544 conftest$ac_exeext conftest.$ac_ext
28546 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28547 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28549 if test $ac_cv_func_alloca_works = yes; then
28551 cat >>confdefs.h <<\_ACEOF
28552 #define HAVE_ALLOCA 1
28556 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28557 # that cause trouble. Some versions do not even contain alloca or
28558 # contain a buggy version. If you still want to use their alloca,
28559 # use ar to extract alloca.o from them instead of compiling alloca.c.
28561 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28563 cat >>confdefs.h <<\_ACEOF
28568 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28569 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28570 if test "${ac_cv_os_cray+set}" = set; then
28571 echo $ECHO_N "(cached) $ECHO_C" >&6
28573 cat >conftest.$ac_ext <<_ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h. */
28579 #if defined CRAY && ! defined CRAY2
28586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28587 $EGREP "webecray" >/dev/null 2>&1; then
28595 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28596 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28597 if test $ac_cv_os_cray = yes; then
28598 for ac_func in _getb67 GETB67 getb67; do
28599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28603 echo $ECHO_N "(cached) $ECHO_C" >&6
28605 cat >conftest.$ac_ext <<_ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h. */
28611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28613 #define $ac_func innocuous_$ac_func
28615 /* System header to define __stub macros and hopefully few prototypes,
28616 which can conflict with char $ac_func (); below.
28617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28618 <limits.h> exists even on freestanding compilers. */
28621 # include <limits.h>
28623 # include <assert.h>
28628 /* Override any GCC internal prototype to avoid an error.
28629 Use char because int might match the return type of a GCC
28630 builtin and then its argument prototype would still apply. */
28635 /* The GNU C library defines this for functions which it implements
28636 to always fail with ENOSYS. Some functions are actually named
28637 something starting with __ and the normal name is an alias. */
28638 #if defined __stub_$ac_func || defined __stub___$ac_func
28645 return $ac_func ();
28650 rm -f conftest.$ac_objext conftest$ac_exeext
28651 if { (ac_try="$ac_link"
28652 case "(($ac_try" in
28653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28654 *) ac_try_echo=$ac_try;;
28656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28657 (eval "$ac_link") 2>conftest.er1
28659 grep -v '^ *+' conftest.er1 >conftest.err
28661 cat conftest.err >&5
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); } && {
28664 test -z "$ac_c_werror_flag" ||
28665 test ! -s conftest.err
28666 } && test -s conftest$ac_exeext &&
28667 $as_test_x conftest$ac_exeext; then
28668 eval "$as_ac_var=yes"
28670 echo "$as_me: failed program was:" >&5
28671 sed 's/^/| /' conftest.$ac_ext >&5
28673 eval "$as_ac_var=no"
28676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28677 conftest$ac_exeext conftest.$ac_ext
28679 ac_res=`eval echo '${'$as_ac_var'}'`
28680 { echo "$as_me:$LINENO: result: $ac_res" >&5
28681 echo "${ECHO_T}$ac_res" >&6; }
28682 if test `eval echo '${'$as_ac_var'}'` = yes; then
28684 cat >>confdefs.h <<_ACEOF
28685 #define CRAY_STACKSEG_END $ac_func
28694 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28695 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28696 if test "${ac_cv_c_stack_direction+set}" = set; then
28697 echo $ECHO_N "(cached) $ECHO_C" >&6
28699 if test "$cross_compiling" = yes; then
28700 ac_cv_c_stack_direction=0
28702 cat >conftest.$ac_ext <<_ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h. */
28708 $ac_includes_default
28710 find_stack_direction ()
28712 static char *addr = 0;
28717 return find_stack_direction ();
28720 return (&dummy > addr) ? 1 : -1;
28726 return find_stack_direction () < 0;
28729 rm -f conftest$ac_exeext
28730 if { (ac_try="$ac_link"
28731 case "(($ac_try" in
28732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733 *) ac_try_echo=$ac_try;;
28735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736 (eval "$ac_link") 2>&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28740 { (case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745 (eval "$ac_try") 2>&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; }; then
28749 ac_cv_c_stack_direction=1
28751 echo "$as_me: program exited with status $ac_status" >&5
28752 echo "$as_me: failed program was:" >&5
28753 sed 's/^/| /' conftest.$ac_ext >&5
28755 ( exit $ac_status )
28756 ac_cv_c_stack_direction=-1
28758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28763 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28764 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28766 cat >>confdefs.h <<_ACEOF
28767 #define STACK_DIRECTION $ac_cv_c_stack_direction
28773 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28774 # -lseq on Dynix/PTX, -lgen on Unixware.
28775 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28776 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28777 if test "${ac_cv_search_getmntent+set}" = set; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28780 ac_func_search_save_LIBS=$LIBS
28781 cat >conftest.$ac_ext <<_ACEOF
28784 cat confdefs.h >>conftest.$ac_ext
28785 cat >>conftest.$ac_ext <<_ACEOF
28786 /* end confdefs.h. */
28788 /* Override any GCC internal prototype to avoid an error.
28789 Use char because int might match the return type of a GCC
28790 builtin and then its argument prototype would still apply. */
28798 return getmntent ();
28803 for ac_lib in '' sun seq gen; do
28804 if test -z "$ac_lib"; then
28805 ac_res="none required"
28808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28810 rm -f conftest.$ac_objext conftest$ac_exeext
28811 if { (ac_try="$ac_link"
28812 case "(($ac_try" in
28813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814 *) ac_try_echo=$ac_try;;
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817 (eval "$ac_link") 2>conftest.er1
28819 grep -v '^ *+' conftest.er1 >conftest.err
28821 cat conftest.err >&5
28822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); } && {
28824 test -z "$ac_c_werror_flag" ||
28825 test ! -s conftest.err
28826 } && test -s conftest$ac_exeext &&
28827 $as_test_x conftest$ac_exeext; then
28828 ac_cv_search_getmntent=$ac_res
28830 echo "$as_me: failed program was:" >&5
28831 sed 's/^/| /' conftest.$ac_ext >&5
28836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28838 if test "${ac_cv_search_getmntent+set}" = set; then
28842 if test "${ac_cv_search_getmntent+set}" = set; then
28845 ac_cv_search_getmntent=no
28847 rm conftest.$ac_ext
28848 LIBS=$ac_func_search_save_LIBS
28850 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28851 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28852 ac_res=$ac_cv_search_getmntent
28853 if test "$ac_res" != no; then
28854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28855 ac_cv_func_getmntent=yes
28857 cat >>confdefs.h <<\_ACEOF
28858 #define HAVE_GETMNTENT 1
28862 ac_cv_func_getmntent=no
28866 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28867 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28868 if test "${ac_cv_func_closedir_void+set}" = set; then
28869 echo $ECHO_N "(cached) $ECHO_C" >&6
28871 if test "$cross_compiling" = yes; then
28872 ac_cv_func_closedir_void=yes
28874 cat >conftest.$ac_ext <<_ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h. */
28880 $ac_includes_default
28881 #include <$ac_header_dirent>
28882 #ifndef __cplusplus
28889 return closedir (opendir (".")) != 0;
28894 rm -f conftest$ac_exeext
28895 if { (ac_try="$ac_link"
28896 case "(($ac_try" in
28897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898 *) ac_try_echo=$ac_try;;
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901 (eval "$ac_link") 2>&5
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28905 { (case "(($ac_try" in
28906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907 *) ac_try_echo=$ac_try;;
28909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910 (eval "$ac_try") 2>&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); }; }; then
28914 ac_cv_func_closedir_void=no
28916 echo "$as_me: program exited with status $ac_status" >&5
28917 echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28920 ( exit $ac_status )
28921 ac_cv_func_closedir_void=yes
28923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28928 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28929 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28930 if test $ac_cv_func_closedir_void = yes; then
28932 cat >>confdefs.h <<\_ACEOF
28933 #define CLOSEDIR_VOID 1
28938 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28939 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28940 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28943 if test "$cross_compiling" = yes; then
28944 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28945 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28946 { (exit 1); exit 1; }; }
28948 cat >conftest.$ac_ext <<_ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h. */
28954 $ac_includes_default
28958 /* If this system has a BSD-style setpgrp which takes arguments,
28959 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28960 exit successfully. */
28961 return setpgrp (1,1) != -1;
28966 rm -f conftest$ac_exeext
28967 if { (ac_try="$ac_link"
28968 case "(($ac_try" in
28969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970 *) ac_try_echo=$ac_try;;
28972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28973 (eval "$ac_link") 2>&5
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28977 { (case "(($ac_try" in
28978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28979 *) ac_try_echo=$ac_try;;
28981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28982 (eval "$ac_try") 2>&5
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; }; then
28986 ac_cv_func_setpgrp_void=no
28988 echo "$as_me: program exited with status $ac_status" >&5
28989 echo "$as_me: failed program was:" >&5
28990 sed 's/^/| /' conftest.$ac_ext >&5
28992 ( exit $ac_status )
28993 ac_cv_func_setpgrp_void=yes
28995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29000 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29001 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29002 if test $ac_cv_func_setpgrp_void = yes; then
29004 cat >>confdefs.h <<\_ACEOF
29005 #define SETPGRP_VOID 1
29009 # AC_FUNC_FNMATCH dnl use local version
29012 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29013 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29014 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29015 echo $ECHO_N "(cached) $ECHO_C" >&6
29017 ac_check_lib_save_LIBS=$LIBS
29018 LIBS="-lintl $LIBS"
29019 cat >conftest.$ac_ext <<_ACEOF
29022 cat confdefs.h >>conftest.$ac_ext
29023 cat >>conftest.$ac_ext <<_ACEOF
29024 /* end confdefs.h. */
29026 /* Override any GCC internal prototype to avoid an error.
29027 Use char because int might match the return type of a GCC
29028 builtin and then its argument prototype would still apply. */
29041 rm -f conftest.$ac_objext conftest$ac_exeext
29042 if { (ac_try="$ac_link"
29043 case "(($ac_try" in
29044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29045 *) ac_try_echo=$ac_try;;
29047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29048 (eval "$ac_link") 2>conftest.er1
29050 grep -v '^ *+' conftest.er1 >conftest.err
29052 cat conftest.err >&5
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); } && {
29055 test -z "$ac_c_werror_flag" ||
29056 test ! -s conftest.err
29057 } && test -s conftest$ac_exeext &&
29058 $as_test_x conftest$ac_exeext; then
29059 ac_cv_lib_intl_gettext=yes
29061 echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29064 ac_cv_lib_intl_gettext=no
29067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29068 conftest$ac_exeext conftest.$ac_ext
29069 LIBS=$ac_check_lib_save_LIBS
29071 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29072 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29073 if test $ac_cv_lib_intl_gettext = yes; then
29074 LIBS="$LIBS -lintl"
29080 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29081 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29082 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29083 echo $ECHO_N "(cached) $ECHO_C" >&6
29085 ac_check_lib_save_LIBS=$LIBS
29087 cat >conftest.$ac_ext <<_ACEOF
29090 cat confdefs.h >>conftest.$ac_ext
29091 cat >>conftest.$ac_ext <<_ACEOF
29092 /* end confdefs.h. */
29094 /* Override any GCC internal prototype to avoid an error.
29095 Use char because int might match the return type of a GCC
29096 builtin and then its argument prototype would still apply. */
29104 return getpwnam ();
29109 rm -f conftest.$ac_objext conftest$ac_exeext
29110 if { (ac_try="$ac_link"
29111 case "(($ac_try" in
29112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29113 *) ac_try_echo=$ac_try;;
29115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29116 (eval "$ac_link") 2>conftest.er1
29118 grep -v '^ *+' conftest.er1 >conftest.err
29120 cat conftest.err >&5
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); } && {
29123 test -z "$ac_c_werror_flag" ||
29124 test ! -s conftest.err
29125 } && test -s conftest$ac_exeext &&
29126 $as_test_x conftest$ac_exeext; then
29127 ac_cv_lib_sun_getpwnam=yes
29129 echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29132 ac_cv_lib_sun_getpwnam=no
29135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29136 conftest$ac_exeext conftest.$ac_ext
29137 LIBS=$ac_check_lib_save_LIBS
29139 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29140 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29141 if test $ac_cv_lib_sun_getpwnam = yes; then
29142 cat >>confdefs.h <<_ACEOF
29143 #define HAVE_LIBSUN 1
29152 for ac_header in zlib.h
29154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29159 echo $ECHO_N "(cached) $ECHO_C" >&6
29161 ac_res=`eval echo '${'$as_ac_Header'}'`
29162 { echo "$as_me:$LINENO: result: $ac_res" >&5
29163 echo "${ECHO_T}$ac_res" >&6; }
29165 # Is the header compilable?
29166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29168 cat >conftest.$ac_ext <<_ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h. */
29174 $ac_includes_default
29175 #include <$ac_header>
29177 rm -f conftest.$ac_objext
29178 if { (ac_try="$ac_compile"
29179 case "(($ac_try" in
29180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181 *) ac_try_echo=$ac_try;;
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184 (eval "$ac_compile") 2>conftest.er1
29186 grep -v '^ *+' conftest.er1 >conftest.err
29188 cat conftest.err >&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } && {
29191 test -z "$ac_c_werror_flag" ||
29192 test ! -s conftest.err
29193 } && test -s conftest.$ac_objext; then
29194 ac_header_compiler=yes
29196 echo "$as_me: failed program was:" >&5
29197 sed 's/^/| /' conftest.$ac_ext >&5
29199 ac_header_compiler=no
29202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29204 echo "${ECHO_T}$ac_header_compiler" >&6; }
29206 # Is the header present?
29207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29209 cat >conftest.$ac_ext <<_ACEOF
29212 cat confdefs.h >>conftest.$ac_ext
29213 cat >>conftest.$ac_ext <<_ACEOF
29214 /* end confdefs.h. */
29215 #include <$ac_header>
29217 if { (ac_try="$ac_cpp conftest.$ac_ext"
29218 case "(($ac_try" in
29219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220 *) ac_try_echo=$ac_try;;
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29225 grep -v '^ *+' conftest.er1 >conftest.err
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } >/dev/null && {
29230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29231 test ! -s conftest.err
29233 ac_header_preproc=yes
29235 echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29238 ac_header_preproc=no
29241 rm -f conftest.err conftest.$ac_ext
29242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29243 echo "${ECHO_T}$ac_header_preproc" >&6; }
29245 # So? What about this header?
29246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29252 ac_header_preproc=yes
29255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29273 echo $ECHO_N "(cached) $ECHO_C" >&6
29275 eval "$as_ac_Header=\$ac_header_preproc"
29277 ac_res=`eval echo '${'$as_ac_Header'}'`
29278 { echo "$as_me:$LINENO: result: $ac_res" >&5
29279 echo "${ECHO_T}$ac_res" >&6; }
29282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29283 cat >>confdefs.h <<_ACEOF
29284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29291 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29292 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29293 if test "${ac_cv_lib_z_deflate+set}" = set; then
29294 echo $ECHO_N "(cached) $ECHO_C" >&6
29296 ac_check_lib_save_LIBS=$LIBS
29298 cat >conftest.$ac_ext <<_ACEOF
29301 cat confdefs.h >>conftest.$ac_ext
29302 cat >>conftest.$ac_ext <<_ACEOF
29303 /* end confdefs.h. */
29305 /* Override any GCC internal prototype to avoid an error.
29306 Use char because int might match the return type of a GCC
29307 builtin and then its argument prototype would still apply. */
29320 rm -f conftest.$ac_objext conftest$ac_exeext
29321 if { (ac_try="$ac_link"
29322 case "(($ac_try" in
29323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29324 *) ac_try_echo=$ac_try;;
29326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29327 (eval "$ac_link") 2>conftest.er1
29329 grep -v '^ *+' conftest.er1 >conftest.err
29331 cat conftest.err >&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); } && {
29334 test -z "$ac_c_werror_flag" ||
29335 test ! -s conftest.err
29336 } && test -s conftest$ac_exeext &&
29337 $as_test_x conftest$ac_exeext; then
29338 ac_cv_lib_z_deflate=yes
29340 echo "$as_me: failed program was:" >&5
29341 sed 's/^/| /' conftest.$ac_ext >&5
29343 ac_cv_lib_z_deflate=no
29346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29347 conftest$ac_exeext conftest.$ac_ext
29348 LIBS=$ac_check_lib_save_LIBS
29350 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29351 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29352 if test $ac_cv_lib_z_deflate = yes; then
29357 if test x$FDLIBS = x-lz; then
29358 cat >>confdefs.h <<\_ACEOF
29359 #define HAVE_LIBZ 1
29366 # Check for ACL libraries
29369 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29370 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29371 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29372 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29375 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29376 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29378 # Is the header compilable?
29379 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29380 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29381 cat >conftest.$ac_ext <<_ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h. */
29387 $ac_includes_default
29388 #include <sys/acl.h>
29390 rm -f conftest.$ac_objext
29391 if { (ac_try="$ac_compile"
29392 case "(($ac_try" in
29393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394 *) ac_try_echo=$ac_try;;
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397 (eval "$ac_compile") 2>conftest.er1
29399 grep -v '^ *+' conftest.er1 >conftest.err
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } && {
29404 test -z "$ac_c_werror_flag" ||
29405 test ! -s conftest.err
29406 } && test -s conftest.$ac_objext; then
29407 ac_header_compiler=yes
29409 echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29412 ac_header_compiler=no
29415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29417 echo "${ECHO_T}$ac_header_compiler" >&6; }
29419 # Is the header present?
29420 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29421 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29422 cat >conftest.$ac_ext <<_ACEOF
29425 cat confdefs.h >>conftest.$ac_ext
29426 cat >>conftest.$ac_ext <<_ACEOF
29427 /* end confdefs.h. */
29428 #include <sys/acl.h>
29430 if { (ac_try="$ac_cpp conftest.$ac_ext"
29431 case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29438 grep -v '^ *+' conftest.er1 >conftest.err
29440 cat conftest.err >&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); } >/dev/null && {
29443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29444 test ! -s conftest.err
29446 ac_header_preproc=yes
29448 echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29451 ac_header_preproc=no
29454 rm -f conftest.err conftest.$ac_ext
29455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29456 echo "${ECHO_T}$ac_header_preproc" >&6; }
29458 # So? What about this header?
29459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29461 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29462 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29463 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29464 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29465 ac_header_preproc=yes
29468 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29469 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29470 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29471 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29472 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29473 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29474 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29475 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29476 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29477 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29478 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29479 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29483 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29484 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29485 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29488 ac_cv_header_sys_acl_h=$ac_header_preproc
29490 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29491 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29496 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29497 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29498 if test "${ac_cv_func_acl_get_file+set}" = set; then
29499 echo $ECHO_N "(cached) $ECHO_C" >&6
29501 cat >conftest.$ac_ext <<_ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h. */
29507 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29509 #define acl_get_file innocuous_acl_get_file
29511 /* System header to define __stub macros and hopefully few prototypes,
29512 which can conflict with char acl_get_file (); below.
29513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29514 <limits.h> exists even on freestanding compilers. */
29517 # include <limits.h>
29519 # include <assert.h>
29522 #undef acl_get_file
29524 /* Override any GCC internal prototype to avoid an error.
29525 Use char because int might match the return type of a GCC
29526 builtin and then its argument prototype would still apply. */
29530 char acl_get_file ();
29531 /* The GNU C library defines this for functions which it implements
29532 to always fail with ENOSYS. Some functions are actually named
29533 something starting with __ and the normal name is an alias. */
29534 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29541 return acl_get_file ();
29546 rm -f conftest.$ac_objext conftest$ac_exeext
29547 if { (ac_try="$ac_link"
29548 case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_link") 2>conftest.er1
29555 grep -v '^ *+' conftest.er1 >conftest.err
29557 cat conftest.err >&5
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); } && {
29560 test -z "$ac_c_werror_flag" ||
29561 test ! -s conftest.err
29562 } && test -s conftest$ac_exeext &&
29563 $as_test_x conftest$ac_exeext; then
29564 ac_cv_func_acl_get_file=yes
29566 echo "$as_me: failed program was:" >&5
29567 sed 's/^/| /' conftest.$ac_ext >&5
29569 ac_cv_func_acl_get_file=no
29572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29573 conftest$ac_exeext conftest.$ac_ext
29575 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29576 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29577 if test $ac_cv_func_acl_get_file = yes; then
29580 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29581 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29582 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29585 ac_check_lib_save_LIBS=$LIBS
29587 cat >conftest.$ac_ext <<_ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h. */
29594 /* Override any GCC internal prototype to avoid an error.
29595 Use char because int might match the return type of a GCC
29596 builtin and then its argument prototype would still apply. */
29600 char acl_get_file ();
29604 return acl_get_file ();
29609 rm -f conftest.$ac_objext conftest$ac_exeext
29610 if { (ac_try="$ac_link"
29611 case "(($ac_try" in
29612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613 *) ac_try_echo=$ac_try;;
29615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29616 (eval "$ac_link") 2>conftest.er1
29618 grep -v '^ *+' conftest.er1 >conftest.err
29620 cat conftest.err >&5
29621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622 (exit $ac_status); } && {
29623 test -z "$ac_c_werror_flag" ||
29624 test ! -s conftest.err
29625 } && test -s conftest$ac_exeext &&
29626 $as_test_x conftest$ac_exeext; then
29627 ac_cv_lib_acl_acl_get_file=yes
29629 echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.$ac_ext >&5
29632 ac_cv_lib_acl_acl_get_file=no
29635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29636 conftest$ac_exeext conftest.$ac_ext
29637 LIBS=$ac_check_lib_save_LIBS
29639 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29640 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29641 if test $ac_cv_lib_acl_acl_get_file = yes; then
29642 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29644 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29645 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29646 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29647 echo $ECHO_N "(cached) $ECHO_C" >&6
29649 ac_check_lib_save_LIBS=$LIBS
29651 cat >conftest.$ac_ext <<_ACEOF
29654 cat confdefs.h >>conftest.$ac_ext
29655 cat >>conftest.$ac_ext <<_ACEOF
29656 /* end confdefs.h. */
29658 /* Override any GCC internal prototype to avoid an error.
29659 Use char because int might match the return type of a GCC
29660 builtin and then its argument prototype would still apply. */
29668 return acltotext ();
29673 rm -f conftest.$ac_objext conftest$ac_exeext
29674 if { (ac_try="$ac_link"
29675 case "(($ac_try" in
29676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677 *) ac_try_echo=$ac_try;;
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680 (eval "$ac_link") 2>conftest.er1
29682 grep -v '^ *+' conftest.er1 >conftest.err
29684 cat conftest.err >&5
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); } && {
29687 test -z "$ac_c_werror_flag" ||
29688 test ! -s conftest.err
29689 } && test -s conftest$ac_exeext &&
29690 $as_test_x conftest$ac_exeext; then
29691 ac_cv_lib_sec_acltotext=yes
29693 echo "$as_me: failed program was:" >&5
29694 sed 's/^/| /' conftest.$ac_ext >&5
29696 ac_cv_lib_sec_acltotext=no
29699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29700 conftest$ac_exeext conftest.$ac_ext
29701 LIBS=$ac_check_lib_save_LIBS
29703 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29704 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29705 if test $ac_cv_lib_sec_acltotext = yes; then
29706 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29715 if test $have_acl = yes; then
29716 cat >>confdefs.h <<\_ACEOF
29723 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29724 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29725 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29726 echo $ECHO_N "(cached) $ECHO_C" >&6
29728 ac_check_lib_save_LIBS=$LIBS
29729 LIBS="-lpthread $LIBS"
29730 cat >conftest.$ac_ext <<_ACEOF
29733 cat confdefs.h >>conftest.$ac_ext
29734 cat >>conftest.$ac_ext <<_ACEOF
29735 /* end confdefs.h. */
29737 /* Override any GCC internal prototype to avoid an error.
29738 Use char because int might match the return type of a GCC
29739 builtin and then its argument prototype would still apply. */
29743 char pthread_create ();
29747 return pthread_create ();
29752 rm -f conftest.$ac_objext conftest$ac_exeext
29753 if { (ac_try="$ac_link"
29754 case "(($ac_try" in
29755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756 *) ac_try_echo=$ac_try;;
29758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759 (eval "$ac_link") 2>conftest.er1
29761 grep -v '^ *+' conftest.er1 >conftest.err
29763 cat conftest.err >&5
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); } && {
29766 test -z "$ac_c_werror_flag" ||
29767 test ! -s conftest.err
29768 } && test -s conftest$ac_exeext &&
29769 $as_test_x conftest$ac_exeext; then
29770 ac_cv_lib_pthread_pthread_create=yes
29772 echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29775 ac_cv_lib_pthread_pthread_create=no
29778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29779 conftest$ac_exeext conftest.$ac_ext
29780 LIBS=$ac_check_lib_save_LIBS
29782 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29783 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29784 if test $ac_cv_lib_pthread_pthread_create = yes; then
29785 PTHREAD_LIB="-lpthread"
29787 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29788 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29789 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29792 ac_check_lib_save_LIBS=$LIBS
29793 LIBS="-lpthreads $LIBS"
29794 cat >conftest.$ac_ext <<_ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h. */
29801 /* Override any GCC internal prototype to avoid an error.
29802 Use char because int might match the return type of a GCC
29803 builtin and then its argument prototype would still apply. */
29807 char pthread_create ();
29811 return pthread_create ();
29816 rm -f conftest.$ac_objext conftest$ac_exeext
29817 if { (ac_try="$ac_link"
29818 case "(($ac_try" in
29819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820 *) ac_try_echo=$ac_try;;
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823 (eval "$ac_link") 2>conftest.er1
29825 grep -v '^ *+' conftest.er1 >conftest.err
29827 cat conftest.err >&5
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } && {
29830 test -z "$ac_c_werror_flag" ||
29831 test ! -s conftest.err
29832 } && test -s conftest$ac_exeext &&
29833 $as_test_x conftest$ac_exeext; then
29834 ac_cv_lib_pthreads_pthread_create=yes
29836 echo "$as_me: failed program was:" >&5
29837 sed 's/^/| /' conftest.$ac_ext >&5
29839 ac_cv_lib_pthreads_pthread_create=no
29842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29843 conftest$ac_exeext conftest.$ac_ext
29844 LIBS=$ac_check_lib_save_LIBS
29846 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29847 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29848 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29849 PTHREAD_LIB="-lpthreads"
29851 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29852 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29853 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29854 echo $ECHO_N "(cached) $ECHO_C" >&6
29856 ac_check_lib_save_LIBS=$LIBS
29858 cat >conftest.$ac_ext <<_ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h. */
29865 /* Override any GCC internal prototype to avoid an error.
29866 Use char because int might match the return type of a GCC
29867 builtin and then its argument prototype would still apply. */
29871 char pthread_create ();
29875 return pthread_create ();
29880 rm -f conftest.$ac_objext conftest$ac_exeext
29881 if { (ac_try="$ac_link"
29882 case "(($ac_try" in
29883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884 *) ac_try_echo=$ac_try;;
29886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887 (eval "$ac_link") 2>conftest.er1
29889 grep -v '^ *+' conftest.er1 >conftest.err
29891 cat conftest.err >&5
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); } && {
29894 test -z "$ac_c_werror_flag" ||
29895 test ! -s conftest.err
29896 } && test -s conftest$ac_exeext &&
29897 $as_test_x conftest$ac_exeext; then
29898 ac_cv_lib_c_r_pthread_create=yes
29900 echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29903 ac_cv_lib_c_r_pthread_create=no
29906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29907 conftest$ac_exeext conftest.$ac_ext
29908 LIBS=$ac_check_lib_save_LIBS
29910 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29911 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29912 if test $ac_cv_lib_c_r_pthread_create = yes; then
29913 PTHREAD_LIB="-lc_r"
29915 { echo "$as_me:$LINENO: checking for pthread_create" >&5
29916 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29917 if test "${ac_cv_func_pthread_create+set}" = set; then
29918 echo $ECHO_N "(cached) $ECHO_C" >&6
29920 cat >conftest.$ac_ext <<_ACEOF
29923 cat confdefs.h >>conftest.$ac_ext
29924 cat >>conftest.$ac_ext <<_ACEOF
29925 /* end confdefs.h. */
29926 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29928 #define pthread_create innocuous_pthread_create
29930 /* System header to define __stub macros and hopefully few prototypes,
29931 which can conflict with char pthread_create (); below.
29932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29933 <limits.h> exists even on freestanding compilers. */
29936 # include <limits.h>
29938 # include <assert.h>
29941 #undef pthread_create
29943 /* Override any GCC internal prototype to avoid an error.
29944 Use char because int might match the return type of a GCC
29945 builtin and then its argument prototype would still apply. */
29949 char pthread_create ();
29950 /* The GNU C library defines this for functions which it implements
29951 to always fail with ENOSYS. Some functions are actually named
29952 something starting with __ and the normal name is an alias. */
29953 #if defined __stub_pthread_create || defined __stub___pthread_create
29960 return pthread_create ();
29965 rm -f conftest.$ac_objext conftest$ac_exeext
29966 if { (ac_try="$ac_link"
29967 case "(($ac_try" in
29968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969 *) ac_try_echo=$ac_try;;
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972 (eval "$ac_link") 2>conftest.er1
29974 grep -v '^ *+' conftest.er1 >conftest.err
29976 cat conftest.err >&5
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); } && {
29979 test -z "$ac_c_werror_flag" ||
29980 test ! -s conftest.err
29981 } && test -s conftest$ac_exeext &&
29982 $as_test_x conftest$ac_exeext; then
29983 ac_cv_func_pthread_create=yes
29985 echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29988 ac_cv_func_pthread_create=no
29991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29992 conftest$ac_exeext conftest.$ac_ext
29994 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29995 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30008 cat >>confdefs.h <<\_ACEOF
30014 CFLAGS=${CFLAGS--O}
30016 if test x$have_gcc = xyes ; then
30017 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30018 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30020 LDFLAGS=${LDFLAGS--O}
30021 DB_LIBS="${SQL_LFLAGS}"
30022 CPPFLAGS="$CPPFLAGS"
30050 # Finally we set appropriate distribution specific
30051 # variables and defaults
30053 # PFILES are platform specific files
30054 PFILES="platforms/Makefile"
30058 hostname=`uname -n | cut -d '.' -f 1`
30059 if test x${hostname} = x ; then
30060 hostname="localhost"
30062 case "$DISTNAME" in
30065 PSCMD="ps -e -o pid,comm"
30066 PFILES="${PFILES} \
30067 platforms/aix/Makefile"
30068 TAPEDRIVE="/dev/rmt0.1"
30072 PTHREAD_LIB="-lpthread -lexc"
30073 if test "${CC}" = "gcc" ; then
30080 TAPEDRIVE="/dev/nrmt0"
30083 DISTVER=`uname -a |awk '{print $3}'`
30084 TAPEDRIVE="/dev/nrmt0"
30085 PTHREAD_LIB="-pthread"
30086 CFLAGS="${CFLAGS} -pthread"
30087 PSCMD="ps -ax -o pid,command"
30090 PFILES="${PFILES} \
30091 platforms/bsdi/Makefile \
30092 platforms/bsdi/bacula-fd \
30093 platforms/bsdi/bacula-sd \
30094 platforms/bsdi/bacula-dir"
30095 largefile_support="yes"
30098 DISTVER=`uname -a |awk '{print $3}'`
30099 TAPEDRIVE="/dev/nrst0"
30101 WCFLAGS="-mwindows"
30102 WLDFLAGS="-mwindows"
30106 TAPEDRIVE="/dev/nst0"
30107 PSCMD="ps -e -o pid,command"
30109 PFILES="${PFILES} \
30110 platforms/darwin/Makefile"
30113 if `grep -q ubuntu /etc/apt/sources.list`; then
30116 DISTVER=`cat /etc/debian_version`
30117 if test -f /etc/lsb-release ; then
30119 if test "x$DISTRIB_ID" != "x" ; then
30120 DISTNAME=$DISTRIB_ID
30122 if test "x$DISTRIB_RELEASE" != "x" ; then
30123 DISTVER=$DISTRIB_RELEASE
30126 if test "$DISTNAME" = "Ubuntu" ; then
30129 TAPEDRIVE="/dev/nst0"
30130 PSCMD="ps -e -o pid,command"
30131 if test "$DISTNAME" = "ubuntu" ; then
30132 PFILES="${PFILES} \
30133 platforms/ubuntu/Makefile \
30134 platforms/ubuntu/bacula-fd \
30135 platforms/ubuntu/bacula-sd \
30136 platforms/ubuntu/bacula-dir"
30138 PFILES="${PFILES} \
30139 platforms/debian/Makefile \
30140 platforms/debian/bacula-fd \
30141 platforms/debian/bacula-sd \
30142 platforms/debian/bacula-dir"
30146 DISTVER=`uname -a |awk '{print $3}'`
30147 VER=`echo $DISTVER | cut -c 1`
30148 if test x$VER = x4 ; then
30149 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30150 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30154 TAPEDRIVE="/dev/nrsa0"
30155 PSCMD="ps -ax -o pid,command"
30156 PFILES="${PFILES} \
30157 platforms/freebsd/Makefile \
30158 platforms/freebsd/bacula-fd \
30159 platforms/freebsd/bacula-sd \
30160 platforms/freebsd/bacula-dir"
30161 largefile_support="yes"
30164 PSCMD="UNIX95=1; ps -e -o pid,comm"
30165 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30167 TAPEDRIVE="/dev/rmt/0hnb"
30168 PTHREAD_LIB="-lpthread"
30169 cat >>confdefs.h <<\_ACEOF
30170 #define _INCLUDE_LONGLONG 1
30176 TAPEDRIVE="/dev/rmt/0cbn"
30177 PSCMD="ps -e -o pid,comm"
30178 PFILES="${PFILES} \
30179 platforms/irix/Makefile \
30180 platforms/irix/bacula-fd \
30181 platforms/irix/bacula-sd \
30182 platforms/irix/bacula-dir"
30185 DISTVER=`uname -a |awk '{print $3}'`
30188 TAPEDRIVE="/dev/nrst0"
30189 PSCMD="ps -ax -o pid,command"
30190 PTHREAD_LIB="-pthread"
30191 CFLAGS="${CFLAGS} -pthread"
30194 DISTVER=`uname -a |awk '{print $3}'`
30197 TAPEDRIVE="/dev/nrst0"
30198 PSCMD="ps -ax -o pid,command"
30199 PTHREAD_LIB="-pthread"
30200 CFLAGS="${CFLAGS} -pthread"
30201 PFILES="${PFILES} \
30202 platforms/openbsd/Makefile \
30203 platforms/openbsd/bacula-fd \
30204 platforms/openbsd/bacula-sd \
30205 platforms/openbsd/bacula-dir"
30208 if test -f /etc/whitebox-release ; then
30209 f=/etc/whitebox-release
30211 f=/etc/redhat-release
30213 if test `cat $f | grep release |\
30214 cut -f 3 -d ' '`x = "Enterprise"x ; then
30215 DISTVER="Enterprise "`cat $f | grep release |\
30218 DISTVER=`cat /etc/redhat-release | grep release |\
30221 TAPEDRIVE="/dev/nst0"
30222 PSCMD="ps -e -o pid,command"
30223 PFILES="${PFILES} \
30224 platforms/redhat/Makefile \
30225 platforms/redhat/bacula-fd \
30226 platforms/redhat/bacula-sd \
30227 platforms/redhat/bacula-dir \
30228 platforms/redhat/bacula.spec \
30232 DISTVER=`cat /etc/mandrake-release | grep release |\
30234 TAPEDRIVE="/dev/nst0"
30235 PSCMD="ps -e -o pid,command"
30236 PFILES="${PFILES} \
30237 platforms/mandrake/Makefile \
30238 platforms/mandrake/bacula-fd \
30239 platforms/mandrake/bacula-sd \
30240 platforms/mandrake/bacula-dir \
30241 platforms/mandrake/bacula.spec \
30245 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30246 TAPEDRIVE="/dev/nst0"
30247 PSCMD="ps -e -o pid,command"
30248 PFILES="${PFILES} \
30249 platforms/gentoo/Makefile \
30250 platforms/gentoo/bacula-init \
30251 platforms/gentoo/bacula-fd \
30252 platforms/gentoo/bacula-sd \
30253 platforms/gentoo/bacula-dir"
30256 DISTVER=`cat /etc/slackware-version`
30257 TAPEDRIVE="/dev/nst0"
30258 PSCMD="ps -e -o pid,command"
30259 PFILES="${PFILES} \
30260 platforms/slackware/Makefile \
30261 platforms/slackware/rc.bacula-fd \
30262 platforms/slackware/rc.bacula-sd \
30263 platforms/slackware/rc.bacula-dir\
30264 platforms/slackware/functions.bacula"
30268 TAPEDRIVE="/dev/rmt/0cbn"
30269 PSCMD="ps -e -o pid,comm"
30270 PFILES="${PFILES} \
30271 platforms/solaris/Makefile \
30272 platforms/solaris/bacula-fd \
30273 platforms/solaris/bacula-sd \
30274 platforms/solaris/bacula-dir"
30275 if test x$DISTVER = x5.6 ; then
30276 cat >>confdefs.h <<\_ACEOF
30277 #define HAVE_OLD_SOCKOPT 1
30281 LIBS="$LIBS -lresolv"
30284 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30286 TAPEDRIVE="/dev/nst0"
30287 PSCMD="ps -e -o pid,command"
30288 PFILES="${PFILES} \
30289 platforms/suse/Makefile \
30290 platforms/suse/bacula-fd \
30291 platforms/suse/bacula-sd \
30292 platforms/suse/bacula-dir \
30293 platforms/suse/bacula \
30294 platforms/suse/bacula.spec"
30299 TAPEDRIVE="/dev/nst0"
30300 PSCMD="ps -e -o pid,command"
30301 PFILES="${PFILES} \
30302 platforms/suse/Makefile \
30303 platforms/suse/bacula-fd \
30304 platforms/suse/bacula-sd \
30305 platforms/suse/bacula-dir"
30309 TAPEDRIVE="/dev/nst0"
30312 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30318 LIBS="$PTHREAD_LIB $LIBS"
30320 cat >>confdefs.h <<_ACEOF
30324 cat >>confdefs.h <<_ACEOF
30335 MCOMMON=./autoconf/Make.common
30338 if test "x${subsysdir}" = "x${sbindir}" ; then
30341 echo "You have set both --sbindir and --with-subsys-dir"
30342 echo " equal to: ${subsysdir} "
30343 echo "This is not permitted. Please reconfigure."
30345 echo "Aborting configuration ..."
30351 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
30353 ac_config_commands="$ac_config_commands default"
30355 cat >confcache <<\_ACEOF
30356 # This file is a shell script that caches the results of configure
30357 # tests run on this system so they can be shared between configure
30358 # scripts and configure runs, see configure's option --config-cache.
30359 # It is not useful on other systems. If it contains results you don't
30360 # want to keep, you may remove or edit it.
30362 # config.status only pays attention to the cache file if you give it
30363 # the --recheck option to rerun configure.
30365 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30366 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30367 # following values.
30371 # The following way of writing the cache mishandles newlines in values,
30372 # but we know of no workaround that is simple, portable, and efficient.
30373 # So, we kill variables containing newlines.
30374 # Ultrix sh set writes to stderr and can't be redirected directly,
30375 # and sets the high bit in the cache file unless we assign to the vars.
30377 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30378 eval ac_val=\$$ac_var
30382 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30383 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30386 _ | IFS | as_nl) ;; #(
30387 *) $as_unset $ac_var ;;
30393 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30394 *${as_nl}ac_space=\ *)
30395 # `set' does not quote correctly, so add quotes (double-quote
30396 # substitution turns \\\\ into \\, and sed turns \\ into \).
30399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30402 # `set' quotes correctly as required by POSIX, so do not add quotes.
30403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30416 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30417 if test -w "$cache_file"; then
30418 test "x$cache_file" != "x/dev/null" &&
30419 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30420 echo "$as_me: updating cache $cache_file" >&6;}
30421 cat confcache >$cache_file
30423 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30424 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30430 # Let make expand exec_prefix.
30431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30433 DEFS=-DHAVE_CONFIG_H
30437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30438 # 1. Remove the extension, and $U if already installed.
30439 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30440 ac_i=`echo "$ac_i" | sed "$ac_script"`
30441 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30442 # will be set to the directory where LIBOBJS objects are built.
30443 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30444 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30446 LIBOBJS=$ac_libobjs
30448 LTLIBOBJS=$ac_ltlibobjs
30452 : ${CONFIG_STATUS=./config.status}
30453 ac_clean_files_save=$ac_clean_files
30454 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30455 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30456 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30457 cat >$CONFIG_STATUS <<_ACEOF
30459 # Generated by $as_me.
30460 # Run this file to recreate the current configuration.
30461 # Compiler output produced by configure, useful for debugging
30462 # configure, is in config.log if it exists.
30465 ac_cs_recheck=false
30467 SHELL=\${CONFIG_SHELL-$SHELL}
30470 cat >>$CONFIG_STATUS <<\_ACEOF
30471 ## --------------------- ##
30472 ## M4sh Initialization. ##
30473 ## --------------------- ##
30475 # Be more Bourne compatible
30476 DUALCASE=1; export DUALCASE # for MKS sh
30477 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30480 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30481 # is contrary to our usage. Disable this feature.
30482 alias -g '${1+"$@"}'='"$@"'
30483 setopt NO_GLOB_SUBST
30485 case `(set -o) 2>/dev/null` in
30486 *posix*) set -o posix ;;
30495 # Avoid depending upon Character Ranges.
30496 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30497 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30498 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30499 as_cr_digits='0123456789'
30500 as_cr_alnum=$as_cr_Letters$as_cr_digits
30502 # The user is always right.
30503 if test "${PATH_SEPARATOR+set}" != set; then
30504 echo "#! /bin/sh" >conf$$.sh
30505 echo "exit 0" >>conf$$.sh
30507 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30515 # Support unset when possible.
30516 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30524 # We need space, tab and new line, in precisely that order. Quoting is
30525 # there to prevent editors from complaining about space-tab.
30526 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30527 # splitting by setting IFS to empty value.)
30532 # Find who we are. Look in the path if we contain no directory separator.
30534 *[\\/]* ) as_myself=$0 ;;
30535 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30536 for as_dir in $PATH
30539 test -z "$as_dir" && as_dir=.
30540 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30546 # We did not find ourselves, most probably we were run as `sh COMMAND'
30547 # in which case we are not to be found in the path.
30548 if test "x$as_myself" = x; then
30551 if test ! -f "$as_myself"; then
30552 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30553 { (exit 1); exit 1; }
30556 # Work around bugs in pre-3.0 UWIN ksh.
30557 for as_var in ENV MAIL MAILPATH
30558 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30566 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30567 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30568 LC_TELEPHONE LC_TIME
30570 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30571 eval $as_var=C; export $as_var
30573 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30577 # Required to use basename.
30578 if expr a : '\(a\)' >/dev/null 2>&1 &&
30579 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30585 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30586 as_basename=basename
30592 # Name of the executable.
30593 as_me=`$as_basename -- "$0" ||
30594 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30595 X"$0" : 'X\(//\)$' \| \
30596 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30598 sed '/^.*\/\([^/][^/]*\)\/*$/{
30617 as_lineno_1=$LINENO
30618 as_lineno_2=$LINENO
30619 test "x$as_lineno_1" != "x$as_lineno_2" &&
30620 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30622 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30623 # uniformly replaced by the line number. The first 'sed' inserts a
30624 # line-number line after each line using $LINENO; the second 'sed'
30625 # does the real work. The second script uses 'N' to pair each
30626 # line-number line with the line containing $LINENO, and appends
30627 # trailing '-' during substitution so that $LINENO is not a special
30628 # case at line end.
30629 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30630 # scripts with optimization help from Paolo Bonzini. Blame Lee
30631 # E. McMahon (1931-1989) for sed's syntax. :-)
30643 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30646 ' >$as_me.lineno &&
30647 chmod +x "$as_me.lineno" ||
30648 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30649 { (exit 1); exit 1; }; }
30651 # Don't try to exec as it changes $[0], causing all sort of problems
30652 # (the dirname of $[0] is not the place where we might find the
30653 # original and so on. Autoconf is especially sensitive to this).
30654 . "./$as_me.lineno"
30655 # Exit status is that of the last command.
30660 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30666 ECHO_C= ECHO_N= ECHO_T=
30667 case `echo -n x` in
30669 case `echo 'x\c'` in
30670 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30677 if expr a : '\(a\)' >/dev/null 2>&1 &&
30678 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30684 rm -f conf$$ conf$$.exe conf$$.file
30685 if test -d conf$$.dir; then
30686 rm -f conf$$.dir/conf$$.file
30692 if ln -s conf$$.file conf$$ 2>/dev/null; then
30694 # ... but there are two gotchas:
30695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30697 # In both cases, we have to default to `cp -p'.
30698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30700 elif ln conf$$.file conf$$ 2>/dev/null; then
30705 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30706 rmdir conf$$.dir 2>/dev/null
30708 if mkdir -p . 2>/dev/null; then
30711 test -d ./-p && rmdir ./-p
30715 if test -x / >/dev/null 2>&1; then
30716 as_test_x='test -x'
30718 if ls -dL / >/dev/null 2>&1; then
30725 if test -d "$1"; then
30731 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30732 ???[sx]*):;;*)false;;esac;fi
30736 as_executable_p=$as_test_x
30738 # Sed expression to map a string onto a valid CPP name.
30739 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30741 # Sed expression to map a string onto a valid variable name.
30742 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30747 # Save the log message, to keep $[0] and so on meaningful, and to
30748 # report actual input values of CONFIG_FILES etc. instead of their
30749 # values after options handling.
30751 This file was extended by $as_me, which was
30752 generated by GNU Autoconf 2.61. Invocation command line was
30754 CONFIG_FILES = $CONFIG_FILES
30755 CONFIG_HEADERS = $CONFIG_HEADERS
30756 CONFIG_LINKS = $CONFIG_LINKS
30757 CONFIG_COMMANDS = $CONFIG_COMMANDS
30760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30765 cat >>$CONFIG_STATUS <<_ACEOF
30766 # Files that config.status was made for.
30767 config_files="$ac_config_files"
30768 config_headers="$ac_config_headers"
30769 config_commands="$ac_config_commands"
30773 cat >>$CONFIG_STATUS <<\_ACEOF
30775 \`$as_me' instantiates files from templates according to the
30776 current configuration.
30778 Usage: $0 [OPTIONS] [FILE]...
30780 -h, --help print this help, then exit
30781 -V, --version print version number and configuration settings, then exit
30782 -q, --quiet do not print progress messages
30783 -d, --debug don't remove temporary files
30784 --recheck update $as_me by reconfiguring in the same conditions
30785 --file=FILE[:TEMPLATE]
30786 instantiate the configuration file FILE
30787 --header=FILE[:TEMPLATE]
30788 instantiate the configuration header FILE
30790 Configuration files:
30793 Configuration headers:
30796 Configuration commands:
30799 Report bugs to <bug-autoconf@gnu.org>."
30802 cat >>$CONFIG_STATUS <<_ACEOF
30805 configured by $0, generated by GNU Autoconf 2.61,
30806 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30808 Copyright (C) 2006 Free Software Foundation, Inc.
30809 This config.status script is free software; the Free Software Foundation
30810 gives unlimited permission to copy, distribute and modify it."
30817 cat >>$CONFIG_STATUS <<\_ACEOF
30818 # If no file are specified by the user, then we need to provide default
30819 # value. By we need to know if files were specified by the user.
30825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30837 # Handling of the options.
30838 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30840 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30841 echo "$ac_cs_version"; exit ;;
30842 --debug | --debu | --deb | --de | --d | -d )
30844 --file | --fil | --fi | --f )
30846 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30847 ac_need_defaults=false;;
30848 --header | --heade | --head | --hea )
30850 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30851 ac_need_defaults=false;;
30853 # Conflict between --help and --header
30854 { echo "$as_me: error: ambiguous option: $1
30855 Try \`$0 --help' for more information." >&2
30856 { (exit 1); exit 1; }; };;
30857 --help | --hel | -h )
30858 echo "$ac_cs_usage"; exit ;;
30859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30860 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30863 # This is an error.
30864 -*) { echo "$as_me: error: unrecognized option: $1
30865 Try \`$0 --help' for more information." >&2
30866 { (exit 1); exit 1; }; } ;;
30868 *) ac_config_targets="$ac_config_targets $1"
30869 ac_need_defaults=false ;;
30875 ac_configure_extra_args=
30877 if $ac_cs_silent; then
30879 ac_configure_extra_args="$ac_configure_extra_args --silent"
30883 cat >>$CONFIG_STATUS <<_ACEOF
30884 if \$ac_cs_recheck; then
30885 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30886 CONFIG_SHELL=$SHELL
30887 export CONFIG_SHELL
30888 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30892 cat >>$CONFIG_STATUS <<\_ACEOF
30896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30897 ## Running $as_me. ##
30903 cat >>$CONFIG_STATUS <<_ACEOF
30907 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30908 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30910 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30911 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30912 LINGUAS="${LINGUAS-%UNSET%}"
30917 cat >>$CONFIG_STATUS <<\_ACEOF
30919 # Handling of arguments.
30920 for ac_config_target in $ac_config_targets
30922 case $ac_config_target in
30923 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30924 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30925 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30927 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30928 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30929 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30930 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30931 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30932 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30933 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30934 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30935 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30936 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30937 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30938 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30939 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30940 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30941 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30942 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30943 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30944 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30945 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30946 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30947 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30948 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30949 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30950 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30951 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30952 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30953 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30954 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30955 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30956 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30957 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30958 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30959 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30960 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30961 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30962 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30963 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30964 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30965 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30966 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30967 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30968 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30969 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30970 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30971 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30972 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30973 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30974 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30975 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30976 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30977 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30978 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30979 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30980 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30981 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30982 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30983 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30984 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30985 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30986 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30987 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30988 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30989 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30990 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30991 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30992 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30993 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30994 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30995 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30996 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30997 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30998 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30999 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31000 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31001 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31002 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31003 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31004 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31005 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31006 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31007 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31008 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31009 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31010 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31011 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31012 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31013 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31014 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31015 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31016 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31017 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31018 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31019 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31020 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31021 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31022 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31023 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31024 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31025 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31026 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31027 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31028 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31029 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31030 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31031 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31032 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31034 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31035 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31036 { (exit 1); exit 1; }; };;
31041 # If the user did not use the arguments to specify the items to instantiate,
31042 # then the envvar interface is used. Set only those that are not.
31043 # We use the long form for the default assignment because of an extremely
31044 # bizarre bug on SunOS 4.1.3.
31045 if $ac_need_defaults; then
31046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31048 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31051 # Have a temporary directory for convenience. Make it in the build tree
31052 # simply because there is no reason against having it here, and in addition,
31053 # creating and moving files from /tmp can sometimes cause problems.
31054 # Hook for its removal unless debugging.
31055 # Note that there is a small window in which the directory will not be cleaned:
31056 # after its creation but before its name has been assigned to `$tmp'.
31060 trap 'exit_status=$?
31061 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31063 trap '{ (exit 1); exit 1; }' 1 2 13 15
31065 # Create a (secure) tmp directory for tmp files.
31068 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31069 test -n "$tmp" && test -d "$tmp"
31072 tmp=./conf$$-$RANDOM
31073 (umask 077 && mkdir "$tmp")
31076 echo "$me: cannot create a temporary directory in ." >&2
31077 { (exit 1); exit 1; }
31081 # Set up the sed scripts for CONFIG_FILES section.
31084 # No need to generate the scripts if there are no CONFIG_FILES.
31085 # This happens for instance when ./config.status config.h
31086 if test -n "$CONFIG_FILES"; then
31090 # Create sed commands to just substitute file output variables.
31092 # Remaining file output variables are in a fragment that also has non-file
31098 for ac_last_try in false false false false false :; do
31099 cat >conf$$subs.sed <<_ACEOF
31100 SHELL!$SHELL$ac_delim
31101 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31102 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31103 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31104 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31105 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31106 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31107 exec_prefix!$exec_prefix$ac_delim
31108 prefix!$prefix$ac_delim
31109 program_transform_name!$program_transform_name$ac_delim
31110 bindir!$bindir$ac_delim
31111 sbindir!$sbindir$ac_delim
31112 libexecdir!$libexecdir$ac_delim
31113 datarootdir!$datarootdir$ac_delim
31114 datadir!$datadir$ac_delim
31115 sysconfdir!$sysconfdir$ac_delim
31116 sharedstatedir!$sharedstatedir$ac_delim
31117 localstatedir!$localstatedir$ac_delim
31118 includedir!$includedir$ac_delim
31119 oldincludedir!$oldincludedir$ac_delim
31120 docdir!$docdir$ac_delim
31121 infodir!$infodir$ac_delim
31122 htmldir!$htmldir$ac_delim
31123 dvidir!$dvidir$ac_delim
31124 pdfdir!$pdfdir$ac_delim
31125 psdir!$psdir$ac_delim
31126 libdir!$libdir$ac_delim
31127 localedir!$localedir$ac_delim
31128 mandir!$mandir$ac_delim
31129 DEFS!$DEFS$ac_delim
31130 ECHO_C!$ECHO_C$ac_delim
31131 ECHO_N!$ECHO_N$ac_delim
31132 ECHO_T!$ECHO_T$ac_delim
31133 LIBS!$LIBS$ac_delim
31134 build_alias!$build_alias$ac_delim
31135 host_alias!$host_alias$ac_delim
31136 target_alias!$target_alias$ac_delim
31137 BUILD_DIR!$BUILD_DIR$ac_delim
31138 TOP_DIR!$TOP_DIR$ac_delim
31139 TRUEPRG!$TRUEPRG$ac_delim
31140 FALSEPRG!$FALSEPRG$ac_delim
31141 VERSION!$VERSION$ac_delim
31142 DATE!$DATE$ac_delim
31143 LSMDATE!$LSMDATE$ac_delim
31145 CFLAGS!$CFLAGS$ac_delim
31146 LDFLAGS!$LDFLAGS$ac_delim
31147 CPPFLAGS!$CPPFLAGS$ac_delim
31148 ac_ct_CC!$ac_ct_CC$ac_delim
31149 EXEEXT!$EXEEXT$ac_delim
31150 OBJEXT!$OBJEXT$ac_delim
31152 CXXFLAGS!$CXXFLAGS$ac_delim
31153 ac_ct_CXX!$ac_ct_CXX$ac_delim
31155 GREP!$GREP$ac_delim
31156 EGREP!$EGREP$ac_delim
31157 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31158 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31159 INSTALL_DATA!$INSTALL_DATA$ac_delim
31160 RANLIB!$RANLIB$ac_delim
31165 ECHO!$ECHO$ac_delim
31169 OPENSSL!$OPENSSL$ac_delim
31172 MKISOFS!$MKISOFS$ac_delim
31173 PYTHON!$PYTHON$ac_delim
31174 GROWISOFS!$GROWISOFS$ac_delim
31175 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31176 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31177 PKGCONFIG!$PKGCONFIG$ac_delim
31178 QMAKE!$QMAKE$ac_delim
31179 QMAKEQT4!$QMAKEQT4$ac_delim
31180 WXCONFIG!$WXCONFIG$ac_delim
31181 WXFLAGS!$WXFLAGS$ac_delim
31182 CDRECORD!$CDRECORD$ac_delim
31183 PIDOF!$PIDOF$ac_delim
31185 ARFLAGS!$ARFLAGS$ac_delim
31186 MAKE_SHELL!$MAKE_SHELL$ac_delim
31187 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31188 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31189 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31190 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31191 build!$build$ac_delim
31192 build_cpu!$build_cpu$ac_delim
31193 build_vendor!$build_vendor$ac_delim
31196 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31198 elif $ac_last_try; then
31199 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31200 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31201 { (exit 1); exit 1; }; }
31203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31207 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31208 if test -n "$ac_eof"; then
31209 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31210 ac_eof=`expr $ac_eof + 1`
31213 cat >>$CONFIG_STATUS <<_ACEOF
31214 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31215 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31216 /^[ ]*@MCOMMON@[ ]*$/{
31222 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31223 s/^/s,@/; s/!/@,|#_!!_#|/
31226 s/'"$ac_delim"'$/,g/; t
31228 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31229 ' >>$CONFIG_STATUS <conf$$subs.sed
31230 rm -f conf$$subs.sed
31231 cat >>$CONFIG_STATUS <<_ACEOF
31237 for ac_last_try in false false false false false :; do
31238 cat >conf$$subs.sed <<_ACEOF
31239 build_os!$build_os$ac_delim
31240 host!$host$ac_delim
31241 host_cpu!$host_cpu$ac_delim
31242 host_vendor!$host_vendor$ac_delim
31243 host_os!$host_os$ac_delim
31244 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31245 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31246 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31247 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31248 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31249 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31250 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31251 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31252 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31253 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31254 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31255 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31256 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31257 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31258 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31259 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31260 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31261 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31262 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31263 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31264 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31265 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31266 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31267 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31268 SET_MAKE!$SET_MAKE$ac_delim
31269 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31270 USE_NLS!$USE_NLS$ac_delim
31271 MSGFMT!$MSGFMT$ac_delim
31272 GMSGFMT!$GMSGFMT$ac_delim
31273 XGETTEXT!$XGETTEXT$ac_delim
31274 MSGMERGE!$MSGMERGE$ac_delim
31275 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31276 LIBICONV!$LIBICONV$ac_delim
31277 LTLIBICONV!$LTLIBICONV$ac_delim
31278 INTLLIBS!$INTLLIBS$ac_delim
31279 LIBINTL!$LIBINTL$ac_delim
31280 LTLIBINTL!$LTLIBINTL$ac_delim
31281 POSUB!$POSUB$ac_delim
31282 GLIBC2!$GLIBC2$ac_delim
31283 ALLOCA!$ALLOCA$ac_delim
31284 GLIBC21!$GLIBC21$ac_delim
31285 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31286 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31287 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31288 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31289 INTLBISON!$INTLBISON$ac_delim
31290 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31291 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31292 CATOBJEXT!$CATOBJEXT$ac_delim
31293 DATADIRNAME!$DATADIRNAME$ac_delim
31294 INSTOBJEXT!$INSTOBJEXT$ac_delim
31295 GENCAT!$GENCAT$ac_delim
31296 INTLOBJS!$INTLOBJS$ac_delim
31297 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31298 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31299 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31300 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31301 GNOME_LIBS!$GNOME_LIBS$ac_delim
31302 GNOME_DIR!$GNOME_DIR$ac_delim
31303 BAT_DIR!$BAT_DIR$ac_delim
31304 QWT_INC!$QWT_INC$ac_delim
31305 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31306 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31307 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31308 WX_DIR!$WX_DIR$ac_delim
31309 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31310 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31311 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31312 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31313 STATIC_FD!$STATIC_FD$ac_delim
31314 STATIC_SD!$STATIC_SD$ac_delim
31315 STATIC_DIR!$STATIC_DIR$ac_delim
31316 STATIC_CONS!$STATIC_CONS$ac_delim
31317 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31318 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31319 ALL_DIRS!$ALL_DIRS$ac_delim
31320 DIRD_DIR!$DIRD_DIR$ac_delim
31321 DIR_TOOLS!$DIR_TOOLS$ac_delim
31322 STORED_DIR!$STORED_DIR$ac_delim
31323 CONS_INC!$CONS_INC$ac_delim
31324 CONS_OBJ!$CONS_OBJ$ac_delim
31325 CONS_SRC!$CONS_SRC$ac_delim
31326 CONS_LIBS!$CONS_LIBS$ac_delim
31327 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31328 READLINE_SRC!$READLINE_SRC$ac_delim
31329 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31330 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31331 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31332 OPENSSL_INC!$OPENSSL_INC$ac_delim
31333 working_dir!$working_dir$ac_delim
31334 archivedir!$archivedir$ac_delim
31335 scriptdir!$scriptdir$ac_delim
31338 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31340 elif $ac_last_try; then
31341 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31342 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31343 { (exit 1); exit 1; }; }
31345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31349 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31350 if test -n "$ac_eof"; then
31351 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31352 ac_eof=`expr $ac_eof + 1`
31355 cat >>$CONFIG_STATUS <<_ACEOF
31356 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31360 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31361 s/^/s,@/; s/!/@,|#_!!_#|/
31364 s/'"$ac_delim"'$/,g/; t
31366 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31367 ' >>$CONFIG_STATUS <conf$$subs.sed
31368 rm -f conf$$subs.sed
31369 cat >>$CONFIG_STATUS <<_ACEOF
31375 for ac_last_try in false false false false false :; do
31376 cat >conf$$subs.sed <<_ACEOF
31377 dump_email!$dump_email$ac_delim
31378 job_email!$job_email$ac_delim
31379 smtp_host!$smtp_host$ac_delim
31380 piddir!$piddir$ac_delim
31381 subsysdir!$subsysdir$ac_delim
31382 baseport!$baseport$ac_delim
31383 dir_port!$dir_port$ac_delim
31384 fd_port!$fd_port$ac_delim
31385 sd_port!$sd_port$ac_delim
31386 dir_password!$dir_password$ac_delim
31387 fd_password!$fd_password$ac_delim
31388 sd_password!$sd_password$ac_delim
31389 mon_dir_password!$mon_dir_password$ac_delim
31390 mon_fd_password!$mon_fd_password$ac_delim
31391 mon_sd_password!$mon_sd_password$ac_delim
31392 db_name!$db_name$ac_delim
31393 db_user!$db_user$ac_delim
31394 dir_user!$dir_user$ac_delim
31395 dir_group!$dir_group$ac_delim
31396 sd_user!$sd_user$ac_delim
31397 sd_group!$sd_group$ac_delim
31398 fd_user!$fd_user$ac_delim
31399 fd_group!$fd_group$ac_delim
31400 SBINPERM!$SBINPERM$ac_delim
31401 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31402 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31403 SQL_BINDIR!$SQL_BINDIR$ac_delim
31404 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31405 DB_PROG!$DB_PROG$ac_delim
31406 cats!$cats$ac_delim
31407 DB_TYPE!$DB_TYPE$ac_delim
31408 GETCONF!$GETCONF$ac_delim
31409 XMKMF!$XMKMF$ac_delim
31410 X_CFLAGS!$X_CFLAGS$ac_delim
31411 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31412 X_LIBS!$X_LIBS$ac_delim
31413 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31414 LIBOBJS!$LIBOBJS$ac_delim
31415 FDLIBS!$FDLIBS$ac_delim
31416 DEBUG!$DEBUG$ac_delim
31417 DINCLUDE!$DINCLUDE$ac_delim
31418 DLIB!$DLIB$ac_delim
31419 DB_LIBS!$DB_LIBS$ac_delim
31420 WCFLAGS!$WCFLAGS$ac_delim
31421 WLDFLAGS!$WLDFLAGS$ac_delim
31422 WRAPLIBS!$WRAPLIBS$ac_delim
31423 OBJLIST!$OBJLIST$ac_delim
31424 hostname!$hostname$ac_delim
31425 TAPEDRIVE!$TAPEDRIVE$ac_delim
31426 PSCMD!$PSCMD$ac_delim
31427 WIN32!$WIN32$ac_delim
31428 MACOSX!$MACOSX$ac_delim
31429 DISTNAME!$DISTNAME$ac_delim
31430 DISTVER!$DISTVER$ac_delim
31431 LTLIBOBJS!$LTLIBOBJS$ac_delim
31434 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
31436 elif $ac_last_try; then
31437 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31438 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31439 { (exit 1); exit 1; }; }
31441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31445 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31446 if test -n "$ac_eof"; then
31447 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31448 ac_eof=`expr $ac_eof + 1`
31451 cat >>$CONFIG_STATUS <<_ACEOF
31452 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31456 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31457 s/^/s,@/; s/!/@,|#_!!_#|/
31460 s/'"$ac_delim"'$/,g/; t
31462 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31463 ' >>$CONFIG_STATUS <conf$$subs.sed
31464 rm -f conf$$subs.sed
31465 cat >>$CONFIG_STATUS <<_ACEOF
31472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31474 # trailing colons and then remove the whole line if VPATH becomes empty
31475 # (actually we leave an empty line to preserve line numbers).
31476 if test "x$srcdir" = x.; then
31477 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31478 s/:*\$(srcdir):*/:/
31479 s/:*\${srcdir}:*/:/
31481 s/^\([^=]*=[ ]*\):*/\1/
31487 cat >>$CONFIG_STATUS <<\_ACEOF
31488 fi # test -n "$CONFIG_FILES"
31491 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31494 :[FHLC]) ac_mode=$ac_tag; continue;;
31496 case $ac_mode$ac_tag in
31498 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31499 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31500 { (exit 1); exit 1; }; };;
31501 :[FH]-) ac_tag=-:-;;
31502 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31519 -) ac_f="$tmp/stdin";;
31520 *) # Look for the file first in the build tree, then in the source tree
31521 # (if the path is not absolute). The absolute path cannot be DOS-style,
31522 # because $ac_f cannot contain `:'.
31526 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31528 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31529 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31530 { (exit 1); exit 1; }; };;
31532 ac_file_inputs="$ac_file_inputs $ac_f"
31535 # Let's still pretend it is `configure' which instantiates (i.e., don't
31536 # use $as_me), people would be surprised to read:
31537 # /* config.h. Generated by config.status. */
31538 configure_input="Generated from "`IFS=:
31539 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31540 if test x"$ac_file" != x-; then
31541 configure_input="$ac_file. $configure_input"
31542 { echo "$as_me:$LINENO: creating $ac_file" >&5
31543 echo "$as_me: creating $ac_file" >&6;}
31547 *:-:* | *:-) cat >"$tmp/stdin";;
31552 ac_dir=`$as_dirname -- "$ac_file" ||
31553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31554 X"$ac_file" : 'X\(//\)[^/]' \| \
31555 X"$ac_file" : 'X\(//\)$' \| \
31556 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31562 /^X\(\/\/\)[^/].*/{
31577 -*) as_dir=./$as_dir;;
31579 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31583 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31584 *) as_qdir=$as_dir;;
31586 as_dirs="'$as_qdir' $as_dirs"
31587 as_dir=`$as_dirname -- "$as_dir" ||
31588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31589 X"$as_dir" : 'X\(//\)[^/]' \| \
31590 X"$as_dir" : 'X\(//\)$' \| \
31591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31597 /^X\(\/\/\)[^/].*/{
31610 test -d "$as_dir" && break
31612 test -z "$as_dirs" || eval "mkdir $as_dirs"
31613 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31614 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31615 { (exit 1); exit 1; }; }; }
31619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31622 # A ".." for each directory in $ac_dir_suffix.
31623 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31624 case $ac_top_builddir_sub in
31625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31629 ac_abs_top_builddir=$ac_pwd
31630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31631 # for backward compatibility:
31632 ac_top_builddir=$ac_top_build_prefix
31635 .) # We are building in place.
31637 ac_top_srcdir=$ac_top_builddir_sub
31638 ac_abs_top_srcdir=$ac_pwd ;;
31639 [\\/]* | ?:[\\/]* ) # Absolute name.
31640 ac_srcdir=$srcdir$ac_dir_suffix;
31641 ac_top_srcdir=$srcdir
31642 ac_abs_top_srcdir=$srcdir ;;
31643 *) # Relative name.
31644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31645 ac_top_srcdir=$ac_top_build_prefix$srcdir
31646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31663 cat >>$CONFIG_STATUS <<\_ACEOF
31664 # If the template does not know about datarootdir, expand it.
31665 # FIXME: This hack should be removed a few years after 2.60.
31666 ac_datarootdir_hack=; ac_datarootdir_seen=
31668 case `sed -n '/datarootdir/ {
31677 ' $ac_file_inputs` in
31678 *datarootdir*) ac_datarootdir_seen=yes;;
31679 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31680 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31681 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31683 cat >>$CONFIG_STATUS <<_ACEOF
31684 ac_datarootdir_hack='
31685 s&@datadir@&$datadir&g
31686 s&@docdir@&$docdir&g
31687 s&@infodir@&$infodir&g
31688 s&@localedir@&$localedir&g
31689 s&@mandir@&$mandir&g
31690 s&\\\${datarootdir}&$datarootdir&g' ;;
31694 # Neutralize VPATH when `$srcdir' = `.'.
31695 # Shell code in configure.ac might set extrasub.
31696 # FIXME: do we really want to maintain this feature?
31697 cat >>$CONFIG_STATUS <<_ACEOF
31701 cat >>$CONFIG_STATUS <<\_ACEOF
31703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31704 s&@configure_input@&$configure_input&;t t
31705 s&@top_builddir@&$ac_top_builddir_sub&;t t
31706 s&@srcdir@&$ac_srcdir&;t t
31707 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31708 s&@top_srcdir@&$ac_top_srcdir&;t t
31709 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31710 s&@builddir@&$ac_builddir&;t t
31711 s&@abs_builddir@&$ac_abs_builddir&;t t
31712 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31713 s&@INSTALL@&$ac_INSTALL&;t t
31714 $ac_datarootdir_hack
31715 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31717 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31718 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31719 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31720 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31721 which seems to be undefined. Please make sure it is defined." >&5
31722 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31723 which seems to be undefined. Please make sure it is defined." >&2;}
31727 -) cat "$tmp/out"; rm -f "$tmp/out";;
31728 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31737 # Transform confdefs.h into a sed script `conftest.defines', that
31738 # substitutes the proper values into config.h.in to produce config.h.
31739 rm -f conftest.defines conftest.tail
31740 # First, append a space to every undef/define line, to ease matching.
31741 echo 's/$/ /' >conftest.defines
31742 # Then, protect against being on the right side of a sed subst, or in
31743 # an unquoted here document, in config.status. If some macros were
31744 # called several times there might be several #defines for the same
31745 # symbol, which is useless. But do not sort them, since the last
31746 # AC_DEFINE must be honored.
31747 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31748 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31749 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31750 # PARAMS is the parameter list in the macro definition--in most cases, it's
31751 # just an empty string.
31752 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31753 ac_dB='\\)[ (].*,\\1define\\2'
31761 s/^[ ]*#[ ]*define[ ][ ]*//
31766 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31767 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31768 ' >>conftest.defines
31770 # Remove the space that was appended to ease matching.
31771 # Then replace #undef with comments. This is necessary, for
31772 # example, in the case of _POSIX_SOURCE, which is predefined and required
31773 # on some systems where configure will not decide to define it.
31774 # (The regexp can be short, since the line contains either #define or #undef.)
31776 s,^[ #]*u.*,/* & */,' >>conftest.defines
31778 # Break up conftest.defines:
31779 ac_max_sed_lines=50
31781 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31782 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31783 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31785 ac_in='$ac_file_inputs'
31786 ac_out='"$tmp/out1"'
31787 ac_nxt='"$tmp/out2"'
31791 # Write a here document:
31792 cat >>$CONFIG_STATUS <<_ACEOF
31793 # First, check the format of the line:
31794 cat >"\$tmp/defines.sed" <<\\CEOF
31795 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31796 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31800 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31802 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31803 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31804 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31805 grep . conftest.tail >/dev/null || break
31806 rm -f conftest.defines
31807 mv conftest.tail conftest.defines
31809 rm -f conftest.defines conftest.tail
31811 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31812 cat >>$CONFIG_STATUS <<\_ACEOF
31813 if test x"$ac_file" != x-; then
31814 echo "/* $configure_input */" >"$tmp/config.h"
31815 cat "$ac_result" >>"$tmp/config.h"
31816 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31817 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31818 echo "$as_me: $ac_file is unchanged" >&6;}
31821 mv "$tmp/config.h" $ac_file
31824 echo "/* $configure_input */"
31830 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31831 echo "$as_me: executing $ac_file commands" >&6;}
31836 case $ac_file$ac_mode in
31838 for ac_file in $CONFIG_FILES; do
31839 # Support "outfile[:infile[:infile...]]"
31841 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31843 # PO directories have a Makefile.in generated from Makefile.in.in.
31844 case "$ac_file" in */Makefile.in)
31845 # Adjust a relative srcdir.
31846 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31847 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31848 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31849 # In autoconf-2.13 it is called $ac_given_srcdir.
31850 # In autoconf-2.50 it is called $srcdir.
31851 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31852 case "$ac_given_srcdir" in
31853 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31854 /*) top_srcdir="$ac_given_srcdir" ;;
31855 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31857 # Treat a directory as a PO directory if and only if it has a
31858 # POTFILES.in file. This allows packages to have multiple PO
31859 # directories under different names or in different locations.
31860 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31861 rm -f "$ac_dir/POTFILES"
31862 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31863 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31864 POMAKEFILEDEPS="POTFILES.in"
31865 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31866 # on $ac_dir but don't depend on user-specified configuration
31868 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31869 # The LINGUAS file contains the set of available languages.
31870 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31871 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31873 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31874 # Hide the ALL_LINGUAS assigment from automake.
31875 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31876 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31878 # The set of available languages was given in configure.in.
31879 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31882 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31883 # Compute UPDATEPOFILES
31884 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31885 # Compute DUMMYPOFILES
31886 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31888 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31889 case "$ac_given_srcdir" in
31891 *) srcdirpre='$(srcdir)/' ;;
31897 for lang in $ALL_LINGUAS; do
31898 POFILES="$POFILES $srcdirpre$lang.po"
31899 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31900 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31901 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31903 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31904 # environment variable.
31906 if test -n "$ALL_LINGUAS"; then
31907 for presentlang in $ALL_LINGUAS; do
31909 if test "%UNSET%" != "$LINGUAS"; then
31910 desiredlanguages="$LINGUAS"
31912 desiredlanguages="$ALL_LINGUAS"
31914 for desiredlang in $desiredlanguages; do
31915 # Use the presentlang catalog if desiredlang is
31916 # a. equal to presentlang, or
31917 # b. a variant of presentlang (because in this case,
31918 # presentlang can be used as a fallback for messages
31919 # which are not translated in the desiredlang catalog).
31920 case "$desiredlang" in
31921 "$presentlang"*) useit=yes;;
31924 if test $useit = yes; then
31925 INST_LINGUAS="$INST_LINGUAS $presentlang"
31930 if test -n "$INST_LINGUAS"; then
31931 for lang in $INST_LINGUAS; do
31932 CATALOGS="$CATALOGS $lang.gmo"
31935 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31936 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"
31937 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31938 if test -f "$f"; then
31940 *.orig | *.bak | *~) ;;
31941 *) cat "$f" >> "$ac_dir/Makefile" ;;
31956 { (exit 0); exit 0; }
31958 chmod +x $CONFIG_STATUS
31959 ac_clean_files=$ac_clean_files_save
31962 # configure is writing to config.log, and then calls config.status.
31963 # config.status does its own redirection, appending to config.log.
31964 # Unfortunately, on DOS this fails, as config.log is still kept open
31965 # by configure, so config.status won't be able to write to it; its
31966 # output is simply discarded. So we exec the FD to /dev/null,
31967 # effectively closing config.log, so it can be properly (re)opened and
31968 # appended to by config.status. When coming back to configure, we
31969 # need to make the FD available again.
31970 if test "$no_create" != yes; then
31972 ac_config_status_args=
31973 test "$silent" = yes &&
31974 ac_config_status_args="$ac_config_status_args --quiet"
31976 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31978 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31979 # would make configure fail if this is the last instruction.
31980 $ac_cs_success || { (exit 1); exit 1; }
31984 if test "${support_bat}" = "yes" ; then
31985 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31986 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31992 if test "x$QMAKEQT4" != "xnone"; then
31999 chmod 755 install_conf_file build-depkgs-qt-console
32000 echo "Creating bat Makefile"
32005 echo "Doing make of dependencies"
32006 ${MAKE:-make} depend
32009 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32010 chmod 755 dvd-handler dvd-simulator
32011 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32015 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32016 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
32020 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32021 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32023 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32024 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32026 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32027 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32029 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32030 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32032 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32033 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32035 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32036 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32038 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32039 chmod 755 $c/sqlite
32042 chmod 755 src/win32/build-depkgs-mingw32
32046 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32047 largefile_support="yes"
32051 # A whole lot of hand springs to get the compiler version.
32052 # This is because gcc changed the output in version 3.0
32054 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32055 if test "x${CCVERSION}" = "x" ; then
32056 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32058 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32059 if test x"${CXXVERSION}" = x ; then
32060 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32063 if test "x${subsysdir}" = "x${sbindir}" ; then
32066 echo "You have set --sbindir and --with-subsys-dir"
32067 echo " both equal to: ${subsysdir} "
32068 echo " This is not permitted. Please reconfigure."
32070 echo "Aborting configuration ..."
32076 if test "x${db_type}" = "xInternal" ; then
32079 echo "You have not specified either --enable-client-only or one of the"
32080 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32081 echo " This is not permitted. Please reconfigure."
32083 echo "Aborting the configuration ..."
32090 Configuration on `date`:
32092 Host: $host -- ${DISTNAME} ${DISTVER}
32093 Bacula version: ${VERSION} (${DATE})
32094 Source code location: ${srcdir}
32095 Install binaries: ${sbindir}
32096 Install config files: ${sysconfdir}
32097 Scripts directory: ${scriptdir}
32098 Archive directory: ${archivedir}
32099 Working directory: ${working_dir}
32100 PID directory: ${piddir}
32101 Subsys directory: ${subsysdir}
32102 Man directory: ${mandir}
32103 Data directory: ${datadir}
32104 C Compiler: ${CC} ${CCVERSION}
32105 C++ Compiler: ${CXX} ${CXXVERSION}
32106 Compiler flags: ${WCFLAGS} ${CFLAGS}
32107 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32109 Statically Linked Tools: ${support_static_tools}
32110 Statically Linked FD: ${support_static_fd}
32111 Statically Linked SD: ${support_static_sd}
32112 Statically Linked DIR: ${support_static_dir}
32113 Statically Linked CONS: ${support_static_cons}
32114 Database type: ${db_type}
32115 Database lib: ${DB_LIBS}
32116 Database name: ${db_name}
32117 Database user: ${db_user}
32119 Job Output Email: ${job_email}
32120 Traceback Email: ${dump_email}
32121 SMTP Host Address: ${smtp_host}
32123 Director Port: ${dir_port}
32124 File daemon Port: ${fd_port}
32125 Storage daemon Port: ${sd_port}
32127 Director User: ${dir_user}
32128 Director Group: ${dir_group}
32129 Storage Daemon User: ${sd_user}
32130 Storage DaemonGroup: ${sd_group}
32131 File Daemon User: ${fd_user}
32132 File Daemon Group: ${fd_group}
32134 SQL binaries Directory ${SQL_BINDIR}
32136 Large file support: $largefile_support
32137 Bacula conio support: ${got_conio} ${CONS_LIBS}
32138 readline support: ${got_readline} ${PRTREADLINE_SRC}
32139 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32140 TLS support: ${support_tls}
32141 Encryption support: ${support_crypto}
32142 ZLIB support: ${have_zlib}
32143 enable-smartalloc: ${support_smartalloc}
32144 bat support: ${support_bat} ${QWT_LDFLAGS}
32145 enable-gnome: ${support_gnome} ${gnome_version}
32146 enable-bwx-console: ${support_wx_console} ${wx_version}
32147 enable-tray-monitor: ${support_tray_monitor}
32148 client-only: ${build_client_only}
32149 build-dird: ${build_dird}
32150 build-stored: ${build_stored}
32151 ACL support: ${have_acl}
32152 Python support: ${support_python} ${PYTHON_LIBS}
32153 Batch insert enabled: ${support_batch_insert}