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
782 TRAY_MONITOR_CPPFLAGS
865 ac_subst_files='MCOMMON'
866 ac_precious_vars='build_alias
883 # Initialize some variables set by options.
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
895 program_transform_name=s,x,x,
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
969 cache_file=config.cache ;;
971 -datadir | --datadir | --datadi | --datad)
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
983 -disable-* | --disable-*)
984 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
987 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988 { (exit 1); exit 1; }; }
989 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
990 eval enable_$ac_feature=no ;;
992 -docdir | --docdir | --docdi | --doc | --do)
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1002 -enable-* | --enable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1173 -site=* | --site=* | --sit=*)
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1200 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 { echo "$as_me: error: invalid package name: $ac_package" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1206 eval with_$ac_package=\$ac_optarg ;;
1208 -without-* | --without-*)
1209 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid package name: $ac_package" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215 eval with_$ac_package=no ;;
1218 # Obsolete; use --with-x.
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1235 -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237 { (exit 1); exit 1; }; }
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245 { (exit 1); exit 1; }; }
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1250 # FIXME: should be removed in autoconf 3.0.
1251 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 { echo "$as_me: error: missing argument to $ac_option" >&2
1263 { (exit 1); exit 1; }; }
1266 # Be sure to have absolute directory names.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1272 eval ac_val=\$$ac_var
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278 { (exit 1); exit 1; }; }
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 { echo "$as_me: error: Working directory cannot be determined" >&2
1309 { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 { echo "$as_me: error: pwd does not report name of working directory" >&2
1312 { (exit 1); exit 1; }; }
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$0" : 'X\(//\)[^/]' \| \
1322 X"$0" : 'X\(//\)$' \| \
1323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1347 ac_srcdir_defaulted=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352 { (exit 1); exit 1; }; }
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357 { (exit 1); exit 1; }; }
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1383 \`configure' configures this package to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1441 --x-includes=DIR X include files are in DIR
1442 --x-libraries=DIR X library files are in DIR
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 if test -n "$ac_init_help"; then
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --disable-nls do not use Native Language Support
1458 --disable-rpath do not hardcode runtime library paths
1459 --enable-gnome enable build of bgnome-console GUI disabled
1460 --enable-bat enable build of bat Qt4 GUI disabled
1461 --enable-bwx-console enable build of wxWidgets console disabled
1462 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1463 --enable-smartalloc enable smartalloc debugging support disabled
1464 --enable-static-tools enable static tape tools disabled
1465 --enable-static-fd enable static File daemon disabled
1466 --enable-static-sd enable static Storage daemon disabled
1467 --enable-static-dir enable static Director disabled
1468 --enable-static-cons enable static Console disabled
1469 --enable-client-only build client (File daemon) only disabled
1470 --enable-build-dird enable building of dird (Director) enabled
1471 --enable-build-stored enable building of stored (Storage daemon) enabled
1472 --disable-conio disable conio support enabled
1474 --enable-ipv6 enable ipv6 support enabled
1476 --disable-readline disable readline support disable
1478 --enable-batch-insert enable the DB batch insert code disabled
1479 --enable-batch-insert enable the DB batch insert code disabled
1480 --disable-largefile omit support for large files
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-gnu-ld assume the C compiler uses GNU ld default=no
1486 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1487 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1488 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1489 --without-libintl-prefix don't search for libintl in includedir and libdir
1490 --with-included-gettext use the GNU gettext library included here
1491 --with-qwt[=DIR] specify qwt library directory
1492 --with-readline[=DIR] specify readline library directory
1494 --with-python[=DIR] Include Python support. DIR is the Python base
1495 install directory, default is to search through
1496 a number of common places for the Python files.
1497 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1498 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1499 --with-working-dir=PATH specify path of Bacula working directory
1500 --with-archivedir=PATH specify path of SD archive directory
1501 --with-scriptdir=PATH specify path of Bacula scripts directory
1502 --with-dump-email=EMAIL dump email address
1503 --with-job-email=EMAIL job output email address
1504 --with-smtp-host=HOST SMTP mail host address
1505 --with-pid-dir=PATH specify location of Bacula pid files
1506 --with-subsys-dir=PATH specify location of Bacula subsys file
1507 --with-baseport=PORT specify base port address for daemons
1508 --with-dir-password=PASSWORD specify Director's password
1509 --with-fd-password=PASSWORD specify Client's password
1510 --with-sd-password=PASSWORD specify Storage daemon's password
1511 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1512 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1513 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1514 --with-db-name=DBNAME specify database name (default bacula)
1515 --with-db-user=UNAME specify database user (default bacula)
1516 --with-dir-user=USER specify user for Director daemon
1517 --with-dir-group=GROUP specify group for Director daemon
1518 --with-sd-user=USER specify user for Storage daemon
1519 --with-sd-group=GROUP specify group for Storage daemon
1520 --with-fd-user=USER specify user for File daemon
1521 --with-fd-group=GROUP specify group for File daemon
1522 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1523 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1524 base install directory, defaults to /usr/local/pgsql
1526 --with-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-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1531 install directory, default is to search through
1532 a number of common places for the MySQL files.
1534 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1535 install directory, default is to search through
1536 a number of common places for the SQLite3 files.
1538 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1539 install directory, default is to search through
1540 a number of common places for the SQLite files.
1542 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1543 install directory, default is to search through
1544 a number of common places for the DBI files.
1546 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1547 the one DBI driver like Mysql, Postgresql, others.
1548 Default is to not configure any driver.
1549 --with-x use the X Window System
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
1562 WXCONFIG wx-config command. On some systems, you must set it to
1563 wx-config-2.6 to use wxWidgets 2.6.
1564 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1565 XMKMF Path to xmkmf, Makefile generator for X Window System
1567 Use these variables to override the choices made by `configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1574 if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577 test -d "$ac_dir" || continue
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1597 .) # We are building in place.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1621 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1631 generated by GNU Autoconf 2.61
1633 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1640 cat >config.log <<_ACEOF
1641 This file contains any messages produced by compilers while
1642 running configure, to aid debugging if configure makes a mistake.
1644 It was created by $as_me, which was
1645 generated by GNU Autoconf 2.61. Invocation command line was
1657 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1658 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1659 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1660 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1661 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1664 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1666 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1667 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1668 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1669 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1670 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1671 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1672 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 test -z "$as_dir" && as_dir=.
1681 echo "PATH: $as_dir"
1697 # Keep a trace of the command line.
1698 # Strip out --no-create and --no-recursion so they do not pile up.
1699 # Strip out --silent because we don't want to record it for future runs.
1700 # Also quote any args containing shell meta-characters.
1701 # Make two passes to allow for proper duplicate-argument suppression.
1705 ac_must_keep_next=false
1711 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1713 | -silent | --silent | --silen | --sile | --sil)
1716 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1721 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1722 if test $ac_must_keep_next = true; then
1723 ac_must_keep_next=false # Got value, back to normal.
1726 *=* | --config-cache | -C | -disable-* | --disable-* \
1727 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1728 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1729 | -with-* | --with-* | -without-* | --without-* | --x)
1730 case "$ac_configure_args0 " in
1731 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734 -* ) ac_must_keep_next=true ;;
1737 ac_configure_args="$ac_configure_args '$ac_arg'"
1742 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1743 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1745 # When interrupted or exit'd, cleanup temporary files, and complete
1746 # config.log. We remove comments because anyway the quotes in there
1747 # would cause problems or look ugly.
1748 # WARNING: Use '\'' to represent an apostrophe within the trap.
1749 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1750 trap 'exit_status=$?
1751 # Save into config.log some information that might help in debugging.
1756 ## ---------------- ##
1757 ## Cache variables. ##
1758 ## ---------------- ##
1761 # The following way of writing the cache mishandles newlines in values,
1763 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1764 eval ac_val=\$$ac_var
1768 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1769 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1772 _ | IFS | as_nl) ;; #(
1773 *) $as_unset $ac_var ;;
1778 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779 *${as_nl}ac_space=\ *)
1781 "s/'\''/'\''\\\\'\'''\''/g;
1782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1798 for ac_var in $ac_subst_vars
1800 eval ac_val=\$$ac_var
1802 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 echo "$ac_var='\''$ac_val'\''"
1808 if test -n "$ac_subst_files"; then
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1815 for ac_var in $ac_subst_files
1817 eval ac_val=\$$ac_var
1819 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 echo "$ac_var='\''$ac_val'\''"
1826 if test -s confdefs.h; then
1836 test "$ac_signal" != 0 &&
1837 echo "$as_me: caught signal $ac_signal"
1838 echo "$as_me: exit $exit_status"
1840 rm -f core *.core core.conftest.* &&
1841 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844 for ac_signal in 1 2 13 15; do
1845 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1852 # Predefined preprocessor variables.
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer explicitly selected file to automatically selected ones.
1881 if test -n "$CONFIG_SITE"; then
1882 set x "$CONFIG_SITE"
1883 elif test "x$prefix" != xNONE; then
1884 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1886 set x "$ac_default_prefix/share/config.site" \
1887 "$ac_default_prefix/etc/config.site"
1892 if test -r "$ac_site_file"; then
1893 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1894 echo "$as_me: loading site script $ac_site_file" >&6;}
1895 sed 's/^/| /' "$ac_site_file" >&5
1900 if test -r "$cache_file"; then
1901 # Some versions of bash will fail to source /dev/null (special
1902 # files actually), so we avoid doing that.
1903 if test -f "$cache_file"; then
1904 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1905 echo "$as_me: loading cache $cache_file" >&6;}
1907 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1908 *) . "./$cache_file";;
1912 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1913 echo "$as_me: creating cache $cache_file" >&6;}
1917 # Check that the precious variables saved in the cache have kept the same
1919 ac_cache_corrupted=false
1920 for ac_var in $ac_precious_vars; do
1921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1922 eval ac_new_set=\$ac_env_${ac_var}_set
1923 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1924 eval ac_new_val=\$ac_env_${ac_var}_value
1925 case $ac_old_set,$ac_new_set in
1927 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1928 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1929 ac_cache_corrupted=: ;;
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1936 if test "x$ac_old_val" != "x$ac_new_val"; then
1937 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1938 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1939 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1940 echo "$as_me: former value: $ac_old_val" >&2;}
1941 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1942 echo "$as_me: current value: $ac_new_val" >&2;}
1943 ac_cache_corrupted=:
1946 # Pass precious variables to config.status.
1947 if test "$ac_new_set" = set; then
1949 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 *) ac_arg=$ac_var=$ac_new_val ;;
1952 case " $ac_configure_args " in
1953 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1954 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1958 if $ac_cache_corrupted; then
1959 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1960 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1961 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1962 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1963 { (exit 1); exit 1; }; }
1983 ac_cpp='$CPP $CPPFLAGS'
1984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1997 if test -f "$ac_dir/install-sh"; then
1999 ac_install_sh="$ac_aux_dir/install-sh -c"
2001 elif test -f "$ac_dir/install.sh"; then
2003 ac_install_sh="$ac_aux_dir/install.sh -c"
2005 elif test -f "$ac_dir/shtool"; then
2007 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 if test -z "$ac_aux_dir"; then
2012 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2014 { (exit 1); exit 1; }; }
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2026 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2034 # Extract the first word of "$ac_prog", so it can be a program name with args.
2035 set dummy $ac_prog; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 TRUEPRG=$ac_cv_path_TRUEPRG
2065 if test -n "$TRUEPRG"; then
2066 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2067 echo "${ECHO_T}$TRUEPRG" >&6; }
2069 { echo "$as_me:$LINENO: result: no" >&5
2070 echo "${ECHO_T}no" >&6; }
2074 test -n "$TRUEPRG" && break
2076 test -n "$TRUEPRG" || TRUEPRG=":"
2078 for ac_prog in false
2080 # Extract the first word of "$ac_prog", so it can be a program name with args.
2081 set dummy $ac_prog; ac_word=$2
2082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 FALSEPRG=$ac_cv_path_FALSEPRG
2111 if test -n "$FALSEPRG"; then
2112 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2113 echo "${ECHO_T}$FALSEPRG" >&6; }
2115 { echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6; }
2120 test -n "$FALSEPRG" && break
2122 test -n "$FALSEPRG" || FALSEPRG=":"
2126 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2127 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2128 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2129 echo "configuring for bacula $VERSION ($DATE)"
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138 if test -n "$ac_tool_prefix"; then
2139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2143 if test "${ac_cv_prog_CC+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test -n "$CC"; then
2147 ac_cv_prog_CC="$CC" # Let the user override the test.
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 if test -n "$CC"; then
2168 { echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6; }
2171 { echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6; }
2177 if test -z "$ac_cv_prog_CC"; then
2179 # Extract the first word of "gcc", so it can be a program name with args.
2180 set dummy gcc; ac_word=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 if test -n "$ac_ct_CC"; then
2187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 ac_cv_prog_ac_ct_CC="gcc"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2207 if test -n "$ac_ct_CC"; then
2208 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2209 echo "${ECHO_T}$ac_ct_CC" >&6; }
2211 { echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6; }
2215 if test "x$ac_ct_CC" = x; then
2218 case $cross_compiling:$ac_tool_warned in
2220 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2221 whose name does not start with the host triplet. If you think this
2222 configuration is useful to you, please write to autoconf@gnu.org." >&5
2223 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2224 whose name does not start with the host triplet. If you think this
2225 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2226 ac_tool_warned=yes ;;
2234 if test -z "$CC"; then
2235 if test -n "$ac_tool_prefix"; then
2236 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2237 set dummy ${ac_tool_prefix}cc; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_CC="${ac_tool_prefix}cc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 if test -n "$CC"; then
2265 { echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6; }
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2275 if test -z "$CC"; then
2276 # Extract the first word of "cc", so it can be a program name with args.
2277 set dummy cc; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 if test -n "$CC"; then
2284 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2295 ac_prog_rejected=yes
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 if test $ac_prog_rejected = yes; then
2307 # We found a bogon in the path, so make sure we never use it.
2308 set dummy $ac_cv_prog_CC
2310 if test $# != 0; then
2311 # We chose a different compiler from the bogus one.
2312 # However, it has the same basename, so the bogon will be chosen
2313 # first if we set CC to just the basename; use the full file name.
2315 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2321 if test -n "$CC"; then
2322 { echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6; }
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2331 if test -z "$CC"; then
2332 if test -n "$ac_tool_prefix"; then
2333 for ac_prog in cl.exe
2335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 if test -n "$CC"; then
2364 { echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6; }
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2372 test -n "$CC" && break
2375 if test -z "$CC"; then
2377 for ac_prog in cl.exe
2379 # Extract the first word of "$ac_prog", so it can be a program name with args.
2380 set dummy $ac_prog; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$ac_ct_CC"; then
2387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 ac_cv_prog_ac_ct_CC="$ac_prog"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2407 if test -n "$ac_ct_CC"; then
2408 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2409 echo "${ECHO_T}$ac_ct_CC" >&6; }
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2416 test -n "$ac_ct_CC" && break
2419 if test "x$ac_ct_CC" = x; then
2422 case $cross_compiling:$ac_tool_warned in
2424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet. If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2439 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2440 See \`config.log' for more details." >&5
2441 echo "$as_me: error: no acceptable C compiler found in \$PATH
2442 See \`config.log' for more details." >&2;}
2443 { (exit 1); exit 1; }; }
2445 # Provide some information about the compiler.
2446 echo "$as_me:$LINENO: checking for C compiler version" >&5
2447 ac_compiler=`set X $ac_compile; echo $2`
2448 { (ac_try="$ac_compiler --version >&5"
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_compiler --version >&5") 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }
2458 { (ac_try="$ac_compiler -v >&5"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compiler -v >&5") 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }
2468 { (ac_try="$ac_compiler -V >&5"
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474 (eval "$ac_compiler -V >&5") 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }
2479 cat >conftest.$ac_ext <<_ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2494 ac_clean_files_save=$ac_clean_files
2495 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2496 # Try to create an executable without -o first, disregard a.out.
2497 # It will help us diagnose broken compilers, and finding out an intuition
2499 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2500 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2501 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2503 # List of possible output files, starting from the most likely.
2504 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2505 # only as a last resort. b.out is created by i960 compilers.
2506 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2508 # The IRIX 6 linker writes into existing files which may not be
2509 # executable, retaining their permissions. Remove them first so a
2510 # subsequent execution test works.
2512 for ac_file in $ac_files
2515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2516 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2521 if { (ac_try="$ac_link_default"
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_link_default") 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; then
2531 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2532 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2533 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2534 # so that the user can short-circuit this test for compilers unknown to
2536 for ac_file in $ac_files ''
2538 test -f "$ac_file" || continue
2540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2543 # We found the default executable, but exeext='' is most
2547 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2549 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2551 # We set ac_cv_exeext here because the later test for it is not
2552 # safe: cross compilers may not add the suffix if given an `-o'
2553 # argument, so we may need to know it at that point already.
2554 # Even if this section looks crufty: it has the advantage of
2561 test "$ac_cv_exeext" = no && ac_cv_exeext=
2567 { echo "$as_me:$LINENO: result: $ac_file" >&5
2568 echo "${ECHO_T}$ac_file" >&6; }
2569 if test -z "$ac_file"; then
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2573 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2574 See \`config.log' for more details." >&5
2575 echo "$as_me: error: C compiler cannot create executables
2576 See \`config.log' for more details." >&2;}
2577 { (exit 77); exit 77; }; }
2580 ac_exeext=$ac_cv_exeext
2582 # Check that the compiler produces executables we can run. If not, either
2583 # the compiler is broken, or we cross compile.
2584 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2585 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2586 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2587 # If not cross compiling, check that we can run a simple program.
2588 if test "$cross_compiling" != yes; then
2589 if { ac_try='./$ac_file'
2590 { (case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_try") 2>&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 if test "$cross_compiling" = maybe; then
2604 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2605 If you meant to cross compile, use \`--host'.
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot run C compiled programs.
2608 If you meant to cross compile, use \`--host'.
2609 See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }
2614 { echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6; }
2617 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2618 ac_clean_files=$ac_clean_files_save
2619 # Check that the compiler produces executables we can run. If not, either
2620 # the compiler is broken, or we cross compile.
2621 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2622 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2623 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2624 echo "${ECHO_T}$cross_compiling" >&6; }
2626 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2627 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2628 if { (ac_try="$ac_link"
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634 (eval "$ac_link") 2>&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; then
2638 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2639 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2640 # work properly (i.e., refer to `conftest.exe'), while it won't with
2642 for ac_file in conftest.exe conftest conftest.*; do
2643 test -f "$ac_file" || continue
2645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2646 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2653 See \`config.log' for more details." >&5
2654 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2655 See \`config.log' for more details." >&2;}
2656 { (exit 1); exit 1; }; }
2659 rm -f conftest$ac_cv_exeext
2660 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2661 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2663 rm -f conftest.$ac_ext
2664 EXEEXT=$ac_cv_exeext
2666 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2667 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2668 if test "${ac_cv_objext+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 cat >conftest.$ac_ext <<_ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2686 rm -f conftest.o conftest.obj
2687 if { (ac_try="$ac_compile"
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compile") 2>&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; then
2697 for ac_file in conftest.o conftest.obj conftest.*; do
2698 test -f "$ac_file" || continue;
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2718 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6; }
2720 OBJEXT=$ac_cv_objext
2722 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 cat >conftest.$ac_ext <<_ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2745 rm -f conftest.$ac_objext
2746 if { (ac_try="$ac_compile"
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compile") 2>conftest.er1
2754 grep -v '^ *+' conftest.er1 >conftest.err
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } && {
2759 test -z "$ac_c_werror_flag" ||
2760 test ! -s conftest.err
2761 } && test -s conftest.$ac_objext; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2774 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2775 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2776 GCC=`test $ac_compiler_gnu = yes && echo yes`
2777 ac_test_CFLAGS=${CFLAGS+set}
2778 ac_save_CFLAGS=$CFLAGS
2779 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_cc_g+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 ac_save_c_werror_flag=$ac_c_werror_flag
2785 ac_c_werror_flag=yes
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2803 rm -f conftest.$ac_objext
2804 if { (ac_try="$ac_compile"
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_compile") 2>conftest.er1
2812 grep -v '^ *+' conftest.er1 >conftest.err
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } && {
2817 test -z "$ac_c_werror_flag" ||
2818 test ! -s conftest.err
2819 } && test -s conftest.$ac_objext; then
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2826 cat >conftest.$ac_ext <<_ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2841 rm -f conftest.$ac_objext
2842 if { (ac_try="$ac_compile"
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_compile") 2>conftest.er1
2850 grep -v '^ *+' conftest.er1 >conftest.err
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } && {
2855 test -z "$ac_c_werror_flag" ||
2856 test ! -s conftest.err
2857 } && test -s conftest.$ac_objext; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 ac_c_werror_flag=$ac_save_c_werror_flag
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2880 rm -f conftest.$ac_objext
2881 if { (ac_try="$ac_compile"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compile") 2>conftest.er1
2889 grep -v '^ *+' conftest.er1 >conftest.err
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } && {
2894 test -z "$ac_c_werror_flag" ||
2895 test ! -s conftest.err
2896 } && test -s conftest.$ac_objext; then
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 ac_c_werror_flag=$ac_save_c_werror_flag
2914 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2915 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2916 if test "$ac_test_CFLAGS" = set; then
2917 CFLAGS=$ac_save_CFLAGS
2918 elif test $ac_cv_prog_cc_g = yes; then
2919 if test "$GCC" = yes; then
2925 if test "$GCC" = yes; then
2931 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2932 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_cc_c89+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 ac_cv_prog_cc_c89=no
2938 cat >conftest.$ac_ext <<_ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2946 #include <sys/types.h>
2947 #include <sys/stat.h>
2948 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2949 struct buf { int x; };
2950 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2951 static char *e (p, i)
2957 static char *f (char * (*g) (char **, int), char **p, ...)
2962 s = g (p, va_arg (v,int));
2967 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2968 function prototypes and stuff, but not '\xHH' hex character constants.
2969 These don't provoke an error unfortunately, instead are silently treated
2970 as 'x'. The following induces an error, until -std is added to get
2971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2972 array size at least. It's necessary to write '\x00'==0 to get something
2973 that's true only with -std. */
2974 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2976 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2977 inside strings and character constants. */
2979 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2981 int test (int i, double x);
2982 struct s1 {int (*f) (int a);};
2983 struct s2 {int (*f) (double a);};
2984 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2990 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2995 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2998 CC="$ac_save_CC $ac_arg"
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3016 ac_cv_prog_cc_c89=$ac_arg
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3024 rm -f core conftest.err conftest.$ac_objext
3025 test "x$ac_cv_prog_cc_c89" != "xno" && break
3027 rm -f conftest.$ac_ext
3032 case "x$ac_cv_prog_cc_c89" in
3034 { echo "$as_me:$LINENO: result: none needed" >&5
3035 echo "${ECHO_T}none needed" >&6; } ;;
3037 { echo "$as_me:$LINENO: result: unsupported" >&5
3038 echo "${ECHO_T}unsupported" >&6; } ;;
3040 CC="$CC $ac_cv_prog_cc_c89"
3041 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3042 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3047 ac_cpp='$CPP $CPPFLAGS'
3048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 ac_cpp='$CXXCPP $CPPFLAGS'
3054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3057 if test -z "$CXX"; then
3058 if test -n "$CCC"; then
3061 if test -n "$ac_tool_prefix"; then
3062 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3068 if test "${ac_cv_prog_CXX+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 if test -n "$CXX"; then
3072 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 if test -n "$CXX"; then
3093 { echo "$as_me:$LINENO: result: $CXX" >&5
3094 echo "${ECHO_T}$CXX" >&6; }
3096 { echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6; }
3101 test -n "$CXX" && break
3104 if test -z "$CXX"; then
3106 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3108 # Extract the first word of "$ac_prog", so it can be a program name with args.
3109 set dummy $ac_prog; ac_word=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if test -n "$ac_ct_CXX"; then
3116 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_ac_ct_CXX="$ac_prog"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3136 if test -n "$ac_ct_CXX"; then
3137 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3138 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3140 { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3145 test -n "$ac_ct_CXX" && break
3148 if test "x$ac_ct_CXX" = x; then
3151 case $cross_compiling:$ac_tool_warned in
3153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3154 whose name does not start with the host triplet. If you think this
3155 configuration is useful to you, please write to autoconf@gnu.org." >&5
3156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3157 whose name does not start with the host triplet. If you think this
3158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3159 ac_tool_warned=yes ;;
3167 # Provide some information about the compiler.
3168 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3169 ac_compiler=`set X $ac_compile; echo $2`
3170 { (ac_try="$ac_compiler --version >&5"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compiler --version >&5") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }
3180 { (ac_try="$ac_compiler -v >&5"
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compiler -v >&5") 2>&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3190 { (ac_try="$ac_compiler -V >&5"
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_compiler -V >&5") 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }
3201 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3202 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3203 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_cxx_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3253 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3254 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3255 GXX=`test $ac_compiler_gnu = yes && echo yes`
3256 ac_test_CXXFLAGS=${CXXFLAGS+set}
3257 ac_save_CXXFLAGS=$CXXFLAGS
3258 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3259 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3260 if test "${ac_cv_prog_cxx_g+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3264 ac_cxx_werror_flag=yes
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3282 rm -f conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_compile") 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } && {
3296 test -z "$ac_cxx_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest.$ac_objext; then
3299 ac_cv_prog_cxx_g=yes
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3320 rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compile") 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } && {
3334 test -z "$ac_cxx_werror_flag" ||
3335 test ! -s conftest.err
3336 } && test -s conftest.$ac_objext; then
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3359 rm -f conftest.$ac_objext
3360 if { (ac_try="$ac_compile"
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_compile") 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } && {
3373 test -z "$ac_cxx_werror_flag" ||
3374 test ! -s conftest.err
3375 } && test -s conftest.$ac_objext; then
3376 ac_cv_prog_cxx_g=yes
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3394 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3395 if test "$ac_test_CXXFLAGS" = set; then
3396 CXXFLAGS=$ac_save_CXXFLAGS
3397 elif test $ac_cv_prog_cxx_g = yes; then
3398 if test "$GXX" = yes; then
3404 if test "$GXX" = yes; then
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416 if test "x$CC" != xcc; then
3417 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3418 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3420 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3421 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3423 set dummy $CC; ac_cc=`echo $2 |
3424 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3425 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 # Make sure it works both with $CC and with simple cc.
3444 # We do the test twice because some compilers refuse to overwrite an
3445 # existing .o file with -o, though they will create one.
3446 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3448 if { (case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_try") 2>&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_try") 2>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); };
3467 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3468 if test "x$CC" != xcc; then
3469 # Test first that cc exists at all.
3470 if { ac_try='cc -c conftest.$ac_ext >&5'
3471 { (case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_try") 2>&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3482 if { (case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_try") 2>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } &&
3491 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_try") 2>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); };
3504 # cc exists but doesn't like -o.
3505 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3510 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3512 rm -f core conftest*
3515 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3516 { echo "$as_me:$LINENO: result: yes" >&5
3517 echo "${ECHO_T}yes" >&6; }
3519 { echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6; }
3522 cat >>confdefs.h <<\_ACEOF
3523 #define NO_MINUS_C_MINUS_O 1
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3534 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3535 # On Suns, sometimes $CPP names a directory.
3536 if test -n "$CPP" && test -d "$CPP"; then
3539 if test -z "$CPP"; then
3540 if test "${ac_cv_prog_CPP+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 # Double quotes because CPP needs to be expanded
3544 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3547 for ac_c_preproc_warn_flag in '' yes
3549 # Use a header file that comes with gcc, so configuring glibc
3550 # with a fresh cross-compiler works.
3551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552 # <limits.h> exists even on freestanding compilers.
3553 # On the NeXT, cc -E runs the code through the compiler's parser,
3554 # not just through cpp. "Syntax error" is here to catch this case.
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3562 # include <limits.h>
3564 # include <assert.h>
3568 if { (ac_try="$ac_cpp conftest.$ac_ext"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } >/dev/null && {
3581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 # Broken: fails on valid input.
3593 rm -f conftest.err conftest.$ac_ext
3595 # OK, works on sane cases. Now check whether nonexistent headers
3596 # can be detected and how.
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #include <ac_nonexistent.h>
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 grep -v '^ *+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev/null && {
3618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3621 # Broken: success on invalid input.
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 # Passes both tests.
3632 rm -f conftest.err conftest.$ac_ext
3635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636 rm -f conftest.err conftest.$ac_ext
3637 if $ac_preproc_ok; then
3649 { echo "$as_me:$LINENO: result: $CPP" >&5
3650 echo "${ECHO_T}$CPP" >&6; }
3652 for ac_c_preproc_warn_flag in '' yes
3654 # Use a header file that comes with gcc, so configuring glibc
3655 # with a fresh cross-compiler works.
3656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3657 # <limits.h> exists even on freestanding compilers.
3658 # On the NeXT, cc -E runs the code through the compiler's parser,
3659 # not just through cpp. "Syntax error" is here to catch this case.
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3667 # include <limits.h>
3669 # include <assert.h>
3673 if { (ac_try="$ac_cpp conftest.$ac_ext"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3681 grep -v '^ *+' conftest.er1 >conftest.err
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } >/dev/null && {
3686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3687 test ! -s conftest.err
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 # Broken: fails on valid input.
3698 rm -f conftest.err conftest.$ac_ext
3700 # OK, works on sane cases. Now check whether nonexistent headers
3701 # can be detected and how.
3702 cat >conftest.$ac_ext <<_ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 #include <ac_nonexistent.h>
3710 if { (ac_try="$ac_cpp conftest.$ac_ext"
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null && {
3723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3726 # Broken: success on invalid input.
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3732 # Passes both tests.
3737 rm -f conftest.err conftest.$ac_ext
3740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3741 rm -f conftest.err conftest.$ac_ext
3742 if $ac_preproc_ok; then
3745 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3746 See \`config.log' for more details." >&5
3747 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3748 See \`config.log' for more details." >&2;}
3749 { (exit 1); exit 1; }; }
3753 ac_cpp='$CPP $CPPFLAGS'
3754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3760 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3761 if test "${ac_cv_path_GREP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 # Extract the first word of "grep ggrep" to use in msg output
3765 if test -z "$GREP"; then
3766 set dummy grep ggrep; ac_prog_name=$2
3767 if test "${ac_cv_path_GREP+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 ac_path_GREP_found=false
3771 # Loop through the user's path and test for each of PROGNAME-LIST
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3776 test -z "$as_dir" && as_dir=.
3777 for ac_prog in grep ggrep; do
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3780 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3781 # Check for GNU ac_path_GREP and select it if it is found.
3782 # Check for GNU $ac_path_GREP
3783 case `"$ac_path_GREP" --version 2>&1` in
3785 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3788 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3791 cat "conftest.in" "conftest.in" >"conftest.tmp"
3792 mv "conftest.tmp" "conftest.in"
3793 cp "conftest.in" "conftest.nl"
3794 echo 'GREP' >> "conftest.nl"
3795 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3797 ac_count=`expr $ac_count + 1`
3798 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3799 # Best one so far, save it but keep looking for a better one
3800 ac_cv_path_GREP="$ac_path_GREP"
3801 ac_path_GREP_max=$ac_count
3803 # 10*(2^10) chars as input seems more than enough
3804 test $ac_count -gt 10 && break
3806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3810 $ac_path_GREP_found && break 3
3820 GREP="$ac_cv_path_GREP"
3821 if test -z "$GREP"; then
3822 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3823 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3824 { (exit 1); exit 1; }; }
3828 ac_cv_path_GREP=$GREP
3833 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3834 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3835 GREP="$ac_cv_path_GREP"
3838 { echo "$as_me:$LINENO: checking for egrep" >&5
3839 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3840 if test "${ac_cv_path_EGREP+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3844 then ac_cv_path_EGREP="$GREP -E"
3846 # Extract the first word of "egrep" to use in msg output
3847 if test -z "$EGREP"; then
3848 set dummy egrep; ac_prog_name=$2
3849 if test "${ac_cv_path_EGREP+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 ac_path_EGREP_found=false
3853 # Loop through the user's path and test for each of PROGNAME-LIST
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3858 test -z "$as_dir" && as_dir=.
3859 for ac_prog in egrep; do
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3862 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3863 # Check for GNU ac_path_EGREP and select it if it is found.
3864 # Check for GNU $ac_path_EGREP
3865 case `"$ac_path_EGREP" --version 2>&1` in
3867 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3870 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3873 cat "conftest.in" "conftest.in" >"conftest.tmp"
3874 mv "conftest.tmp" "conftest.in"
3875 cp "conftest.in" "conftest.nl"
3876 echo 'EGREP' >> "conftest.nl"
3877 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3879 ac_count=`expr $ac_count + 1`
3880 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3881 # Best one so far, save it but keep looking for a better one
3882 ac_cv_path_EGREP="$ac_path_EGREP"
3883 ac_path_EGREP_max=$ac_count
3885 # 10*(2^10) chars as input seems more than enough
3886 test $ac_count -gt 10 && break
3888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3892 $ac_path_EGREP_found && break 3
3902 EGREP="$ac_cv_path_EGREP"
3903 if test -z "$EGREP"; then
3904 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3905 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3906 { (exit 1); exit 1; }; }
3910 ac_cv_path_EGREP=$EGREP
3916 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3917 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3918 EGREP="$ac_cv_path_EGREP"
3921 if test $ac_cv_c_compiler_gnu = yes; then
3922 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3923 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3924 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 ac_pattern="Autoconf.*'x'"
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3939 ac_cv_prog_gcc_traditional=yes
3941 ac_cv_prog_gcc_traditional=no
3946 if test $ac_cv_prog_gcc_traditional = no; then
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3958 ac_cv_prog_gcc_traditional=yes
3964 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3965 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3966 if test $ac_cv_prog_gcc_traditional = yes; then
3967 CC="$CC -traditional"
3971 BASECC=`basename $CC`
3973 if test "x$BASECC" = xgcc; then
3974 cat >>confdefs.h <<\_ACEOF
3980 # Extract the first word of "$CXX", so it can be a program name with args.
3981 set dummy $CXX; ac_word=$2
3982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3984 if test "${ac_cv_path_CXX+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4012 if test -n "$CXX"; then
4013 { echo "$as_me:$LINENO: result: $CXX" >&5
4014 echo "${ECHO_T}$CXX" >&6; }
4016 { echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6; }
4021 if test ! -e $CXX; then
4022 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4023 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4024 { (exit 1); exit 1; }; }
4027 # Find a good install program. We prefer a C program (faster),
4028 # so one script is as good as another. But avoid the broken or
4029 # incompatible versions:
4030 # SysV /etc/install, /usr/sbin/install
4031 # SunOS /usr/etc/install
4032 # IRIX /sbin/install
4034 # AmigaOS /C/install, which installs bootblocks on floppy discs
4035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4038 # OS/2's system install, which has a completely different semantic
4039 # ./install, which can be erroneously created by make from ./install.sh.
4040 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4041 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4042 if test -z "$INSTALL"; then
4043 if test "${ac_cv_path_install+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir=.
4051 # Account for people who put trailing slashes in PATH elements.
4053 ./ | .// | /cC/* | \
4054 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4055 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4058 # OSF1 and SCO ODT 3.0 have their own names for install.
4059 # Don't use installbsd from OSF since it installs stuff as root
4061 for ac_prog in ginstall scoinst install; do
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4064 if test $ac_prog = install &&
4065 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4066 # AIX install. It has an incompatible calling convention.
4068 elif test $ac_prog = install &&
4069 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4070 # program-specific install script used by HP pwplus--don't use.
4073 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4086 if test "${ac_cv_path_install+set}" = set; then
4087 INSTALL=$ac_cv_path_install
4089 # As a last resort, use the slow shell script. Don't cache a
4090 # value for INSTALL within a source directory, because that will
4091 # break other packages using the cache if that directory is
4092 # removed, or if the value is a relative name.
4093 INSTALL=$ac_install_sh
4096 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4097 echo "${ECHO_T}$INSTALL" >&6; }
4099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4100 # It thinks the first close brace ends the variable substitution.
4101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4112 if test "${ac_cv_prog_RANLIB+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test -n "$RANLIB"; then
4116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 RANLIB=$ac_cv_prog_RANLIB
4136 if test -n "$RANLIB"; then
4137 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4138 echo "${ECHO_T}$RANLIB" >&6; }
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4146 if test -z "$ac_cv_prog_RANLIB"; then
4147 ac_ct_RANLIB=$RANLIB
4148 # Extract the first word of "ranlib", so it can be a program name with args.
4149 set dummy ranlib; ac_word=$2
4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 if test -n "$ac_ct_RANLIB"; then
4156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_ac_ct_RANLIB="ranlib"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4176 if test -n "$ac_ct_RANLIB"; then
4177 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4178 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4180 { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4184 if test "x$ac_ct_RANLIB" = x; then
4187 case $cross_compiling:$ac_tool_warned in
4189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4190 whose name does not start with the host triplet. If you think this
4191 configuration is useful to you, please write to autoconf@gnu.org." >&5
4192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4193 whose name does not start with the host triplet. If you think this
4194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4195 ac_tool_warned=yes ;;
4197 RANLIB=$ac_ct_RANLIB
4200 RANLIB="$ac_cv_prog_RANLIB"
4203 # Extract the first word of "mv", so it can be a program name with args.
4204 set dummy mv; ac_word=$2
4205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4207 if test "${ac_cv_path_MV+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4235 if test -n "$MV"; then
4236 { echo "$as_me:$LINENO: result: $MV" >&5
4237 echo "${ECHO_T}$MV" >&6; }
4239 { echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6; }
4244 # Extract the first word of "rm", so it can be a program name with args.
4245 set dummy rm; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_path_RM+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4276 if test -n "$RM"; then
4277 { echo "$as_me:$LINENO: result: $RM" >&5
4278 echo "${ECHO_T}$RM" >&6; }
4280 { echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6; }
4285 # Extract the first word of "cp", so it can be a program name with args.
4286 set dummy cp; ac_word=$2
4287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4289 if test "${ac_cv_path_CP+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4304 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4317 if test -n "$CP"; then
4318 { echo "$as_me:$LINENO: result: $CP" >&5
4319 echo "${ECHO_T}$CP" >&6; }
4321 { echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6; }
4326 # Extract the first word of "sed", so it can be a program name with args.
4327 set dummy sed; ac_word=$2
4328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4330 if test "${ac_cv_path_SED+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4358 if test -n "$SED"; then
4359 { echo "$as_me:$LINENO: result: $SED" >&5
4360 echo "${ECHO_T}$SED" >&6; }
4362 { echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6; }
4367 # Extract the first word of "echo", so it can be a program name with args.
4368 set dummy echo; ac_word=$2
4369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4371 if test "${ac_cv_path_ECHO+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4398 ECHO=$ac_cv_path_ECHO
4399 if test -n "$ECHO"; then
4400 { echo "$as_me:$LINENO: result: $ECHO" >&5
4401 echo "${ECHO_T}$ECHO" >&6; }
4403 { echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6; }
4408 # Extract the first word of "cmp", so it can be a program name with args.
4409 set dummy cmp; ac_word=$2
4410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412 if test "${ac_cv_path_CMP+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4440 if test -n "$CMP"; then
4441 { echo "$as_me:$LINENO: result: $CMP" >&5
4442 echo "${ECHO_T}$CMP" >&6; }
4444 { echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6; }
4449 # Extract the first word of "tbl", so it can be a program name with args.
4450 set dummy tbl; ac_word=$2
4451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453 if test "${ac_cv_path_TBL+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4481 if test -n "$TBL"; then
4482 { echo "$as_me:$LINENO: result: $TBL" >&5
4483 echo "${ECHO_T}$TBL" >&6; }
4485 { echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6; }
4490 # Extract the first word of "ar", so it can be a program name with args.
4491 set dummy ar; ac_word=$2
4492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494 if test "${ac_cv_path_AR+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4522 if test -n "$AR"; then
4523 { echo "$as_me:$LINENO: result: $AR" >&5
4524 echo "${ECHO_T}$AR" >&6; }
4526 { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4531 # Extract the first word of "openssl", so it can be a program name with args.
4532 set dummy openssl; ac_word=$2
4533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4535 if test "${ac_cv_path_OPENSSL+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4562 OPENSSL=$ac_cv_path_OPENSSL
4563 if test -n "$OPENSSL"; then
4564 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4565 echo "${ECHO_T}$OPENSSL" >&6; }
4567 { echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6; }
4572 # Extract the first word of "mtx", so it can be a program name with args.
4573 set dummy mtx; ac_word=$2
4574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4576 if test "${ac_cv_path_MTX+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4604 if test -n "$MTX"; then
4605 { echo "$as_me:$LINENO: result: $MTX" >&5
4606 echo "${ECHO_T}$MTX" >&6; }
4608 { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4613 # Extract the first word of "dd", so it can be a program name with args.
4614 set dummy dd; ac_word=$2
4615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4617 if test "${ac_cv_path_DD+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4645 if test -n "$DD"; then
4646 { echo "$as_me:$LINENO: result: $DD" >&5
4647 echo "${ECHO_T}$DD" >&6; }
4649 { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4654 # Extract the first word of "mkisofs", so it can be a program name with args.
4655 set dummy mkisofs; ac_word=$2
4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658 if test "${ac_cv_path_MKISOFS+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4685 MKISOFS=$ac_cv_path_MKISOFS
4686 if test -n "$MKISOFS"; then
4687 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4688 echo "${ECHO_T}$MKISOFS" >&6; }
4690 { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4695 # Extract the first word of "python", so it can be a program name with args.
4696 set dummy python; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_path_PYTHON+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4726 PYTHON=$ac_cv_path_PYTHON
4727 if test -n "$PYTHON"; then
4728 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4729 echo "${ECHO_T}$PYTHON" >&6; }
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4736 # Extract the first word of "growisofs", so it can be a program name with args.
4737 set dummy growisofs; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4767 GROWISOFS=$ac_cv_path_GROWISOFS
4768 if test -n "$GROWISOFS"; then
4769 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4770 echo "${ECHO_T}$GROWISOFS" >&6; }
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4777 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4778 set dummy dvd+rw-mediainfo; ac_word=$2
4779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4781 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 case $DVDRWMEDIAINFO in
4786 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4808 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4809 if test -n "$DVDRWMEDIAINFO"; then
4810 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4811 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4818 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4819 set dummy dvd+rw-format; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 case $DVDRWFORMAT in
4827 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4849 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4850 if test -n "$DVDRWFORMAT"; then
4851 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4852 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4859 # Extract the first word of "pkg-config", so it can be a program name with args.
4860 set dummy pkg-config; ac_word=$2
4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4890 PKGCONFIG=$ac_cv_path_PKGCONFIG
4891 if test -n "$PKGCONFIG"; then
4892 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4893 echo "${ECHO_T}$PKGCONFIG" >&6; }
4895 { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4900 # Extract the first word of "qmake", so it can be a program name with args.
4901 set dummy qmake; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_path_QMAKE+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4931 QMAKE=$ac_cv_path_QMAKE
4932 if test -n "$QMAKE"; then
4933 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4934 echo "${ECHO_T}$QMAKE" >&6; }
4936 { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4941 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4942 set dummy qmake-qt4; ac_word=$2
4943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4945 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4972 QMAKEQT4=$ac_cv_path_QMAKEQT4
4973 if test -n "$QMAKEQT4"; then
4974 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4975 echo "${ECHO_T}$QMAKEQT4" >&6; }
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4983 if test "x$WXCONFIG" = x; then
4986 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4987 set dummy ${WXCONFIG}; ac_word=$2
4988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4990 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5017 WXCONFIG=$ac_cv_path_WXCONFIG
5018 if test -n "$WXCONFIG"; then
5019 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5020 echo "${ECHO_T}$WXCONFIG" >&6; }
5022 { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5028 # Extract the first word of "cdrecord", so it can be a program name with args.
5029 set dummy cdrecord; ac_word=$2
5030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5032 if test "${ac_cv_path_CDRECORD+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5059 CDRECORD=$ac_cv_path_CDRECORD
5060 if test -n "$CDRECORD"; then
5061 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5062 echo "${ECHO_T}$CDRECORD" >&6; }
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5069 # Extract the first word of "pidof", so it can be a program name with args.
5070 set dummy pidof; ac_word=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_path_PIDOF+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5100 PIDOF=$ac_cv_path_PIDOF
5101 if test -n "$PIDOF"; then
5102 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5103 echo "${ECHO_T}$PIDOF" >&6; }
5105 { echo "$as_me:$LINENO: result: no" >&5
5106 echo "${ECHO_T}no" >&6; }
5110 for ac_prog in gawk mawk nawk awk
5112 # Extract the first word of "$ac_prog", so it can be a program name with args.
5113 set dummy $ac_prog; ac_word=$2
5114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5116 if test "${ac_cv_prog_AWK+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 if test -n "$AWK"; then
5120 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_AWK="$ac_prog"
5130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 if test -n "$AWK"; then
5141 { echo "$as_me:$LINENO: result: $AWK" >&5
5142 echo "${ECHO_T}$AWK" >&6; }
5144 { echo "$as_me:$LINENO: result: no" >&5
5145 echo "${ECHO_T}no" >&6; }
5149 test -n "$AWK" && break
5152 # Some AWK programs fail, so test it and warn the user
5153 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5154 { if ((prog == $2) || (("(" prog ")") == $2) ||
5155 (("" prog "") == $2) ||
5156 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5158 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5159 The regex engine of $AWK is too broken to be used you
5160 might want to install GNU AWK.
5161 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5162 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5163 The regex engine of $AWK is too broken to be used you
5164 might want to install GNU AWK.
5165 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5166 { (exit 1); exit 1; }; }
5169 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5170 set dummy $THE_AWK; ac_word=$2
5171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173 if test "${ac_cv_path_AWK+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5201 if test -n "$AWK"; then
5202 { echo "$as_me:$LINENO: result: $AWK" >&5
5203 echo "${ECHO_T}$AWK" >&6; }
5205 { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5212 test -n "$ARFLAG" || ARFLAGS="cr"
5223 # Make sure we can run config.sub.
5224 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5225 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5226 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5227 { (exit 1); exit 1; }; }
5229 { echo "$as_me:$LINENO: checking build system type" >&5
5230 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5231 if test "${ac_cv_build+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 ac_build_alias=$build_alias
5235 test "x$ac_build_alias" = x &&
5236 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5237 test "x$ac_build_alias" = x &&
5238 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5239 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5240 { (exit 1); exit 1; }; }
5241 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5242 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5243 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5244 { (exit 1); exit 1; }; }
5247 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5248 echo "${ECHO_T}$ac_cv_build" >&6; }
5249 case $ac_cv_build in
5251 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5252 echo "$as_me: error: invalid value of canonical build" >&2;}
5253 { (exit 1); exit 1; }; };;
5256 ac_save_IFS=$IFS; IFS='-'
5262 # Remember, the first character of IFS is used to create $*,
5263 # except with old shells:
5266 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5270 { echo "$as_me:$LINENO: checking host system type" >&5
5271 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5272 if test "${ac_cv_host+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 if test "x$host_alias" = x; then
5276 ac_cv_host=$ac_cv_build
5278 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5279 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5280 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5281 { (exit 1); exit 1; }; }
5285 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5286 echo "${ECHO_T}$ac_cv_host" >&6; }
5289 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5290 echo "$as_me: error: invalid value of canonical host" >&2;}
5291 { (exit 1); exit 1; }; };;
5294 ac_save_IFS=$IFS; IFS='-'
5300 # Remember, the first character of IFS is used to create $*,
5301 # except with old shells:
5304 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5308 *cygwin* ) CYGWIN=yes;;
5312 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5318 HAVE_SUN_OS_FALSE='#'
5320 HAVE_SUN_OS_TRUE='#'
5323 cat >>confdefs.h <<\_ACEOF
5324 #define HAVE_SUN_OS 1
5332 HAVE_SUN_OS_FALSE='#'
5334 HAVE_SUN_OS_TRUE='#'
5339 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5345 HAVE_OSF1_OS_FALSE='#'
5347 HAVE_OSF1_OS_TRUE='#'
5350 cat >>confdefs.h <<\_ACEOF
5351 #define HAVE_OSF1_OS 1
5359 HAVE_OSF1_OS_FALSE='#'
5361 HAVE_OSF1_OS_TRUE='#'
5366 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5372 HAVE_AIX_OS_FALSE='#'
5374 HAVE_AIX_OS_TRUE='#'
5377 cat >>confdefs.h <<\_ACEOF
5378 #define HAVE_AIX_OS 1
5386 HAVE_AIX_OS_FALSE='#'
5388 HAVE_AIX_OS_TRUE='#'
5393 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5399 HAVE_HPUX_OS_FALSE='#'
5401 HAVE_HPUX_OS_TRUE='#'
5404 cat >>confdefs.h <<\_ACEOF
5405 #define HAVE_HPUX_OS 1
5413 HAVE_HPUX_OS_FALSE='#'
5415 HAVE_HPUX_OS_TRUE='#'
5420 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5426 HAVE_LINUX_OS_FALSE='#'
5428 HAVE_LINUX_OS_TRUE='#'
5429 HAVE_LINUX_OS_FALSE=
5431 cat >>confdefs.h <<\_ACEOF
5432 #define HAVE_LINUX_OS 1
5440 HAVE_LINUX_OS_FALSE='#'
5442 HAVE_LINUX_OS_TRUE='#'
5443 HAVE_LINUX_OS_FALSE=
5447 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5452 HAVE_FREEBSD_OS_TRUE=
5453 HAVE_FREEBSD_OS_FALSE='#'
5455 HAVE_FREEBSD_OS_TRUE='#'
5456 HAVE_FREEBSD_OS_FALSE=
5458 cat >>confdefs.h <<\_ACEOF
5459 #define HAVE_FREEBSD_OS 1
5466 HAVE_FREEBSD_OS_TRUE=
5467 HAVE_FREEBSD_OS_FALSE='#'
5469 HAVE_FREEBSD_OS_TRUE='#'
5470 HAVE_FREEBSD_OS_FALSE=
5474 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5479 HAVE_NETBSD_OS_TRUE=
5480 HAVE_NETBSD_OS_FALSE='#'
5482 HAVE_NETBSD_OS_TRUE='#'
5483 HAVE_NETBSD_OS_FALSE=
5485 cat >>confdefs.h <<\_ACEOF
5486 #define HAVE_NETBSD_OS 1
5493 HAVE_NETBSD_OS_TRUE=
5494 HAVE_NETBSD_OS_FALSE='#'
5496 HAVE_NETBSD_OS_TRUE='#'
5497 HAVE_NETBSD_OS_FALSE=
5501 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5506 HAVE_OPENBSD_OS_TRUE=
5507 HAVE_OPENBSD_OS_FALSE='#'
5509 HAVE_OPENBSD_OS_TRUE='#'
5510 HAVE_OPENBSD_OS_FALSE=
5512 cat >>confdefs.h <<\_ACEOF
5513 #define HAVE_OPENBSD_OS 1
5520 HAVE_OPENBSD_OS_TRUE=
5521 HAVE_OPENBSD_OS_FALSE='#'
5523 HAVE_OPENBSD_OS_TRUE='#'
5524 HAVE_OPENBSD_OS_FALSE=
5528 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5534 HAVE_BSDI_OS_FALSE='#'
5536 HAVE_BSDI_OS_TRUE='#'
5539 cat >>confdefs.h <<\_ACEOF
5540 #define HAVE_BSDI_OS 1
5548 HAVE_BSDI_OS_FALSE='#'
5550 HAVE_BSDI_OS_TRUE='#'
5555 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5561 HAVE_SGI_OS_FALSE='#'
5563 HAVE_SGI_OS_TRUE='#'
5566 cat >>confdefs.h <<\_ACEOF
5567 #define HAVE_SGI_OS 1
5575 HAVE_SGI_OS_FALSE='#'
5577 HAVE_SGI_OS_TRUE='#'
5582 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5588 HAVE_IRIX_OS_FALSE='#'
5590 HAVE_IRIX_OS_TRUE='#'
5593 cat >>confdefs.h <<\_ACEOF
5594 #define HAVE_IRIX_OS 1
5602 HAVE_IRIX_OS_FALSE='#'
5604 HAVE_IRIX_OS_TRUE='#'
5609 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5614 HAVE_DARWIN_OS_TRUE=
5615 HAVE_DARWIN_OS_FALSE='#'
5617 HAVE_DARWIN_OS_TRUE='#'
5618 HAVE_DARWIN_OS_FALSE=
5620 cat >>confdefs.h <<\_ACEOF
5621 #define HAVE_DARWIN_OS 1
5628 HAVE_DARWIN_OS_TRUE=
5629 HAVE_DARWIN_OS_FALSE='#'
5631 HAVE_DARWIN_OS_TRUE='#'
5632 HAVE_DARWIN_OS_FALSE=
5637 # -----------------------------------------------------------
5638 # ----------------------------------------------------------
5639 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5640 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5641 if test "x$DISTNAME" != "x"
5643 echo "distname set to $DISTNAME"
5644 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5647 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5650 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5653 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5656 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5659 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5662 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5665 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5668 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5671 elif test -f /etc/SuSE-release
5674 elif test -d /etc/SuSEconfig
5677 elif test -f /etc/mandrake-release
5680 elif test -f /etc/whitebox-release
5683 elif test -f /etc/redhat-release
5686 elif test -f /etc/gentoo-release
5689 elif test -f /etc/debian_version
5692 elif test -f /etc/slackware-version
5695 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5698 elif test -f /etc/engarde-version
5701 elif test "$CYGWIN" = yes
5704 cat >>confdefs.h <<\_ACEOF
5705 #define HAVE_CYGWIN 1
5711 { echo "$as_me:$LINENO: result: done" >&5
5712 echo "${ECHO_T}done" >&6; }
5715 # --------------------------------------------------
5716 # Suppport for gettext (translations)
5717 # By default, $datadir is ${prefix}/share
5718 # --------------------------------------------------
5719 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5720 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5721 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5722 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 cat >conftest.make <<\_ACEOF
5728 @echo '@@@%%%=$(MAKE)=@@@%%%'
5730 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5731 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5733 eval ac_cv_prog_make_${ac_make}_set=yes;;
5735 eval ac_cv_prog_make_${ac_make}_set=no;;
5739 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5740 { echo "$as_me:$LINENO: result: yes" >&5
5741 echo "${ECHO_T}yes" >&6; }
5744 { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5746 SET_MAKE="MAKE=${MAKE-make}"
5752 if test -n "$ac_aux_dir"; then
5753 case "$ac_aux_dir" in
5754 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5755 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5758 if test -z "$MKINSTALLDIRS"; then
5759 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5764 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5765 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5766 # Check whether --enable-nls was given.
5767 if test "${enable_nls+set}" = set; then
5768 enableval=$enable_nls; USE_NLS=$enableval
5773 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5774 echo "${ECHO_T}$USE_NLS" >&6; }
5781 # Prepare PATH_SEPARATOR.
5782 # The user is always right.
5783 if test "${PATH_SEPARATOR+set}" != set; then
5784 echo "#! /bin/sh" >conf$$.sh
5785 echo "exit 0" >>conf$$.sh
5787 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5795 # Find out how to test for executable files. Don't use a zero-byte file,
5796 # as systems may use methods other than mode bits to determine executability.
5797 cat >conf$$.file <<_ASEOF
5801 chmod +x conf$$.file
5802 if test -x conf$$.file >/dev/null 2>&1; then
5803 ac_executable_p="test -x"
5805 ac_executable_p="test -f"
5809 # Extract the first word of "msgfmt", so it can be a program name with args.
5810 set dummy msgfmt; ac_word=$2
5811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5813 if test "${ac_cv_path_MSGFMT+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5821 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5822 for ac_dir in $PATH; do
5824 test -z "$ac_dir" && ac_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5827 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5828 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5829 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5830 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5837 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5841 MSGFMT="$ac_cv_path_MSGFMT"
5842 if test "$MSGFMT" != ":"; then
5843 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5844 echo "${ECHO_T}$MSGFMT" >&6; }
5846 { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5850 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5851 set dummy gmsgfmt; ac_word=$2
5852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5854 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5869 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5881 GMSGFMT=$ac_cv_path_GMSGFMT
5882 if test -n "$GMSGFMT"; then
5883 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5884 echo "${ECHO_T}$GMSGFMT" >&6; }
5886 { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5893 # Prepare PATH_SEPARATOR.
5894 # The user is always right.
5895 if test "${PATH_SEPARATOR+set}" != set; then
5896 echo "#! /bin/sh" >conf$$.sh
5897 echo "exit 0" >>conf$$.sh
5899 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5907 # Find out how to test for executable files. Don't use a zero-byte file,
5908 # as systems may use methods other than mode bits to determine executability.
5909 cat >conf$$.file <<_ASEOF
5913 chmod +x conf$$.file
5914 if test -x conf$$.file >/dev/null 2>&1; then
5915 ac_executable_p="test -x"
5917 ac_executable_p="test -f"
5921 # Extract the first word of "xgettext", so it can be a program name with args.
5922 set dummy xgettext; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5933 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5934 for ac_dir in $PATH; do
5936 test -z "$ac_dir" && ac_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5939 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5940 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5941 (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
5942 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5949 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5953 XGETTEXT="$ac_cv_path_XGETTEXT"
5954 if test "$XGETTEXT" != ":"; then
5955 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5956 echo "${ECHO_T}$XGETTEXT" >&6; }
5958 { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5965 # Prepare PATH_SEPARATOR.
5966 # The user is always right.
5967 if test "${PATH_SEPARATOR+set}" != set; then
5968 echo "#! /bin/sh" >conf$$.sh
5969 echo "exit 0" >>conf$$.sh
5971 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5979 # Find out how to test for executable files. Don't use a zero-byte file,
5980 # as systems may use methods other than mode bits to determine executability.
5981 cat >conf$$.file <<_ASEOF
5985 chmod +x conf$$.file
5986 if test -x conf$$.file >/dev/null 2>&1; then
5987 ac_executable_p="test -x"
5989 ac_executable_p="test -f"
5993 # Extract the first word of "msgmerge", so it can be a program name with args.
5994 set dummy msgmerge; ac_word=$2
5995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6005 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6006 for ac_dir in $PATH; do
6008 test -z "$ac_dir" && ac_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6011 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6012 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6013 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6020 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6024 MSGMERGE="$ac_cv_path_MSGMERGE"
6025 if test "$MSGMERGE" != ":"; then
6026 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6027 echo "${ECHO_T}$MSGMERGE" >&6; }
6029 { echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6; }
6034 if test "$GMSGFMT" != ":"; then
6035 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6036 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6039 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6040 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6041 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6046 if test "$XGETTEXT" != ":"; then
6047 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6048 (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
6051 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6052 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6058 ac_config_commands="$ac_config_commands default-1"
6062 if test "X$prefix" = "XNONE"; then
6063 acl_final_prefix="$ac_default_prefix"
6065 acl_final_prefix="$prefix"
6067 if test "X$exec_prefix" = "XNONE"; then
6068 acl_final_exec_prefix='${prefix}'
6070 acl_final_exec_prefix="$exec_prefix"
6072 acl_save_prefix="$prefix"
6073 prefix="$acl_final_prefix"
6074 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6075 prefix="$acl_save_prefix"
6078 # Check whether --with-gnu-ld was given.
6079 if test "${with_gnu_ld+set}" = set; then
6080 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6085 # Prepare PATH_SEPARATOR.
6086 # The user is always right.
6087 if test "${PATH_SEPARATOR+set}" != set; then
6088 echo "#! /bin/sh" >conf$$.sh
6089 echo "exit 0" >>conf$$.sh
6091 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6099 if test "$GCC" = yes; then
6100 # Check if gcc -print-prog-name=ld gives a path.
6101 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6102 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6105 # gcc leaves a trailing carriage return which upsets mingw
6106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6111 # Accept absolute paths.
6112 [\\/]* | [A-Za-z]:[\\/]*)
6113 re_direlt='/[^/][^/]*/\.\./'
6114 # Canonicalize the path of ld
6115 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6117 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6119 test -z "$LD" && LD="$ac_prog"
6122 # If it fails, then pretend we aren't using GCC.
6126 # If it is relative, then search for the first ld in PATH.
6130 elif test "$with_gnu_ld" = yes; then
6131 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6132 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6134 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6135 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6137 if test "${acl_cv_path_LD+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 if test -z "$LD"; then
6141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6142 for ac_dir in $PATH; do
6143 test -z "$ac_dir" && ac_dir=.
6144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6145 acl_cv_path_LD="$ac_dir/$ac_prog"
6146 # Check to see if the program is GNU ld. I'd rather use --version,
6147 # but apparently some GNU ld's only accept -v.
6148 # Break only if it was the GNU/non-GNU ld that we prefer.
6149 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6150 *GNU* | *'with BFD'*)
6151 test "$with_gnu_ld" != no && break ;;
6153 test "$with_gnu_ld" != yes && break ;;
6159 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6163 LD="$acl_cv_path_LD"
6164 if test -n "$LD"; then
6165 { echo "$as_me:$LINENO: result: $LD" >&5
6166 echo "${ECHO_T}$LD" >&6; }
6168 { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6171 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6172 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6173 { (exit 1); exit 1; }; }
6174 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6175 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6176 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6180 case `$LD -v 2>&1 </dev/null` in
6181 *GNU* | *'with BFD'*)
6182 acl_cv_prog_gnu_ld=yes ;;
6184 acl_cv_prog_gnu_ld=no ;;
6187 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6188 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6189 with_gnu_ld=$acl_cv_prog_gnu_ld
6194 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6195 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6196 if test "${acl_cv_rpath+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6201 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6207 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6208 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6210 libext="$acl_cv_libext"
6211 shlibext="$acl_cv_shlibext"
6212 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6213 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6214 hardcode_direct="$acl_cv_hardcode_direct"
6215 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6216 # Check whether --enable-rpath was given.
6217 if test "${enable_rpath+set}" = set; then
6218 enableval=$enable_rpath; :
6232 acl_save_prefix="$prefix"
6233 prefix="$acl_final_prefix"
6234 acl_save_exec_prefix="$exec_prefix"
6235 exec_prefix="$acl_final_exec_prefix"
6237 eval additional_includedir=\"$includedir\"
6238 eval additional_libdir=\"$libdir\"
6240 exec_prefix="$acl_save_exec_prefix"
6241 prefix="$acl_save_prefix"
6244 # Check whether --with-libiconv-prefix was given.
6245 if test "${with_libiconv_prefix+set}" = set; then
6246 withval=$with_libiconv_prefix;
6247 if test "X$withval" = "Xno"; then
6250 if test "X$withval" = "X"; then
6252 acl_save_prefix="$prefix"
6253 prefix="$acl_final_prefix"
6254 acl_save_exec_prefix="$exec_prefix"
6255 exec_prefix="$acl_final_exec_prefix"
6257 eval additional_includedir=\"$includedir\"
6258 eval additional_libdir=\"$libdir\"
6260 exec_prefix="$acl_save_exec_prefix"
6261 prefix="$acl_save_prefix"
6264 additional_includedir="$withval/include"
6265 additional_libdir="$withval/lib"
6276 names_already_handled=
6277 names_next_round='iconv '
6278 while test -n "$names_next_round"; do
6279 names_this_round="$names_next_round"
6281 for name in $names_this_round; do
6283 for n in $names_already_handled; do
6284 if test "$n" = "$name"; then
6289 if test -z "$already_handled"; then
6290 names_already_handled="$names_already_handled $name"
6291 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6292 eval value=\"\$HAVE_LIB$uppername\"
6293 if test -n "$value"; then
6294 if test "$value" = yes; then
6295 eval value=\"\$LIB$uppername\"
6296 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6297 eval value=\"\$LTLIB$uppername\"
6298 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6307 if test $use_additional = yes; then
6308 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6309 found_dir="$additional_libdir"
6310 found_so="$additional_libdir/lib$name.$shlibext"
6311 if test -f "$additional_libdir/lib$name.la"; then
6312 found_la="$additional_libdir/lib$name.la"
6315 if test -f "$additional_libdir/lib$name.$libext"; then
6316 found_dir="$additional_libdir"
6317 found_a="$additional_libdir/lib$name.$libext"
6318 if test -f "$additional_libdir/lib$name.la"; then
6319 found_la="$additional_libdir/lib$name.la"
6324 if test "X$found_dir" = "X"; then
6325 for x in $LDFLAGS $LTLIBICONV; do
6327 acl_save_prefix="$prefix"
6328 prefix="$acl_final_prefix"
6329 acl_save_exec_prefix="$exec_prefix"
6330 exec_prefix="$acl_final_exec_prefix"
6332 exec_prefix="$acl_save_exec_prefix"
6333 prefix="$acl_save_prefix"
6337 dir=`echo "X$x" | sed -e 's/^X-L//'`
6338 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6340 found_so="$dir/lib$name.$shlibext"
6341 if test -f "$dir/lib$name.la"; then
6342 found_la="$dir/lib$name.la"
6345 if test -f "$dir/lib$name.$libext"; then
6347 found_a="$dir/lib$name.$libext"
6348 if test -f "$dir/lib$name.la"; then
6349 found_la="$dir/lib$name.la"
6355 if test "X$found_dir" != "X"; then
6360 if test "X$found_dir" != "X"; then
6361 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6362 if test "X$found_so" != "X"; then
6363 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6364 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6367 for x in $ltrpathdirs; do
6368 if test "X$x" = "X$found_dir"; then
6373 if test -z "$haveit"; then
6374 ltrpathdirs="$ltrpathdirs $found_dir"
6376 if test "$hardcode_direct" = yes; then
6377 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6379 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6380 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6382 for x in $rpathdirs; do
6383 if test "X$x" = "X$found_dir"; then
6388 if test -z "$haveit"; then
6389 rpathdirs="$rpathdirs $found_dir"
6393 for x in $LDFLAGS $LIBICONV; do
6395 acl_save_prefix="$prefix"
6396 prefix="$acl_final_prefix"
6397 acl_save_exec_prefix="$exec_prefix"
6398 exec_prefix="$acl_final_exec_prefix"
6400 exec_prefix="$acl_save_exec_prefix"
6401 prefix="$acl_save_prefix"
6403 if test "X$x" = "X-L$found_dir"; then
6408 if test -z "$haveit"; then
6409 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6411 if test "$hardcode_minus_L" != no; then
6412 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6414 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6420 if test "X$found_a" != "X"; then
6421 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6423 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6426 additional_includedir=
6427 case "$found_dir" in
6429 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6430 additional_includedir="$basedir/include"
6433 if test "X$additional_includedir" != "X"; then
6434 if test "X$additional_includedir" != "X/usr/include"; then
6436 if test "X$additional_includedir" = "X/usr/local/include"; then
6437 if test -n "$GCC"; then
6439 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6443 if test -z "$haveit"; then
6444 for x in $CPPFLAGS $INCICONV; do
6446 acl_save_prefix="$prefix"
6447 prefix="$acl_final_prefix"
6448 acl_save_exec_prefix="$exec_prefix"
6449 exec_prefix="$acl_final_exec_prefix"
6451 exec_prefix="$acl_save_exec_prefix"
6452 prefix="$acl_save_prefix"
6454 if test "X$x" = "X-I$additional_includedir"; then
6459 if test -z "$haveit"; then
6460 if test -d "$additional_includedir"; then
6461 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6467 if test -n "$found_la"; then
6468 save_libdir="$libdir"
6470 */* | *\\*) . "$found_la" ;;
6471 *) . "./$found_la" ;;
6473 libdir="$save_libdir"
6474 for dep in $dependency_libs; do
6477 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6478 if test "X$additional_libdir" != "X/usr/lib"; then
6480 if test "X$additional_libdir" = "X/usr/local/lib"; then
6481 if test -n "$GCC"; then
6483 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6487 if test -z "$haveit"; then
6489 for x in $LDFLAGS $LIBICONV; do
6491 acl_save_prefix="$prefix"
6492 prefix="$acl_final_prefix"
6493 acl_save_exec_prefix="$exec_prefix"
6494 exec_prefix="$acl_final_exec_prefix"
6496 exec_prefix="$acl_save_exec_prefix"
6497 prefix="$acl_save_prefix"
6499 if test "X$x" = "X-L$additional_libdir"; then
6504 if test -z "$haveit"; then
6505 if test -d "$additional_libdir"; then
6506 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6510 for x in $LDFLAGS $LTLIBICONV; do
6512 acl_save_prefix="$prefix"
6513 prefix="$acl_final_prefix"
6514 acl_save_exec_prefix="$exec_prefix"
6515 exec_prefix="$acl_final_exec_prefix"
6517 exec_prefix="$acl_save_exec_prefix"
6518 prefix="$acl_save_prefix"
6520 if test "X$x" = "X-L$additional_libdir"; then
6525 if test -z "$haveit"; then
6526 if test -d "$additional_libdir"; then
6527 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6534 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6535 if test "$enable_rpath" != no; then
6537 for x in $rpathdirs; do
6538 if test "X$x" = "X$dir"; then
6543 if test -z "$haveit"; then
6544 rpathdirs="$rpathdirs $dir"
6547 for x in $ltrpathdirs; do
6548 if test "X$x" = "X$dir"; then
6553 if test -z "$haveit"; then
6554 ltrpathdirs="$ltrpathdirs $dir"
6559 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6562 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6565 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6566 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6572 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6573 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6579 if test "X$rpathdirs" != "X"; then
6580 if test -n "$hardcode_libdir_separator"; then
6582 for found_dir in $rpathdirs; do
6583 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6585 acl_save_libdir="$libdir"
6587 eval flag=\"$hardcode_libdir_flag_spec\"
6588 libdir="$acl_save_libdir"
6589 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6591 for found_dir in $rpathdirs; do
6592 acl_save_libdir="$libdir"
6594 eval flag=\"$hardcode_libdir_flag_spec\"
6595 libdir="$acl_save_libdir"
6596 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6600 if test "X$ltrpathdirs" != "X"; then
6601 for found_dir in $ltrpathdirs; do
6602 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6623 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6624 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6625 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 gt_save_CPPFLAGS="$CPPFLAGS"
6629 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6630 gt_save_LIBS="$LIBS"
6631 LIBS="$LIBS -framework CoreFoundation"
6632 cat >conftest.$ac_ext <<_ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638 #include <CFPreferences.h>
6642 CFPreferencesCopyAppValue(NULL, NULL)
6647 rm -f conftest.$ac_objext conftest$ac_exeext
6648 if { (ac_try="$ac_link"
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_link") 2>conftest.er1
6656 grep -v '^ *+' conftest.er1 >conftest.err
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest$ac_exeext &&
6664 $as_test_x conftest$ac_exeext; then
6665 gt_cv_func_CFPreferencesCopyAppValue=yes
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 gt_cv_func_CFPreferencesCopyAppValue=no
6673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6674 conftest$ac_exeext conftest.$ac_ext
6675 CPPFLAGS="$gt_save_CPPFLAGS"
6676 LIBS="$gt_save_LIBS"
6678 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6679 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6680 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6687 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6688 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6689 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 gt_save_CPPFLAGS="$CPPFLAGS"
6693 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6694 gt_save_LIBS="$LIBS"
6695 LIBS="$LIBS -framework CoreFoundation"
6696 cat >conftest.$ac_ext <<_ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 #include <CFLocale.h>
6706 CFLocaleCopyCurrent();
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (ac_try="$ac_link"
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_link") 2>conftest.er1
6720 grep -v '^ *+' conftest.er1 >conftest.err
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest$ac_exeext &&
6728 $as_test_x conftest$ac_exeext; then
6729 gt_cv_func_CFLocaleCopyCurrent=yes
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6734 gt_cv_func_CFLocaleCopyCurrent=no
6737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6738 conftest$ac_exeext conftest.$ac_ext
6739 CPPFLAGS="$gt_save_CPPFLAGS"
6740 LIBS="$gt_save_LIBS"
6742 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6743 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6744 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6746 cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_CFLOCALECOPYCURRENT 1
6752 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6753 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6759 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6760 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6761 # Check whether --enable-nls was given.
6762 if test "${enable_nls+set}" = set; then
6763 enableval=$enable_nls; USE_NLS=$enableval
6768 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6769 echo "${ECHO_T}$USE_NLS" >&6; }
6778 if test "$USE_NLS" = "yes"; then
6779 gt_use_preinstalled_gnugettext=no
6786 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6787 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6788 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 cat >conftest.$ac_ext <<_ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 #include <libintl.h>
6798 extern int _nl_msg_cat_cntr;
6799 extern int *_nl_domain_bindings;
6803 bindtextdomain ("", "");
6804 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (ac_try="$ac_link"
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_link") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1 >conftest.err
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest$ac_exeext &&
6826 $as_test_x conftest$ac_exeext; then
6827 gt_cv_func_gnugettext1_libc=yes
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 gt_cv_func_gnugettext1_libc=no
6835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6836 conftest$ac_exeext conftest.$ac_ext
6838 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6839 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6841 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6847 am_save_CPPFLAGS="$CPPFLAGS"
6849 for element in $INCICONV; do
6851 for x in $CPPFLAGS; do
6853 acl_save_prefix="$prefix"
6854 prefix="$acl_final_prefix"
6855 acl_save_exec_prefix="$exec_prefix"
6856 exec_prefix="$acl_final_exec_prefix"
6858 exec_prefix="$acl_save_exec_prefix"
6859 prefix="$acl_save_prefix"
6861 if test "X$x" = "X$element"; then
6866 if test -z "$haveit"; then
6867 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6872 { echo "$as_me:$LINENO: checking for iconv" >&5
6873 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6874 if test "${am_cv_func_iconv+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 am_cv_func_iconv="no, consider installing GNU libiconv"
6880 cat >conftest.$ac_ext <<_ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6891 iconv_t cd = iconv_open("","");
6892 iconv(cd,NULL,NULL,NULL,NULL);
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (ac_try="$ac_link"
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_link") 2>conftest.er1
6907 grep -v '^ *+' conftest.er1 >conftest.err
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest$ac_exeext &&
6915 $as_test_x conftest$ac_exeext; then
6916 am_cv_func_iconv=yes
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6925 conftest$ac_exeext conftest.$ac_ext
6926 if test "$am_cv_func_iconv" != yes; then
6927 am_save_LIBS="$LIBS"
6928 LIBS="$LIBS $LIBICONV"
6929 cat >conftest.$ac_ext <<_ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6940 iconv_t cd = iconv_open("","");
6941 iconv(cd,NULL,NULL,NULL,NULL);
6947 rm -f conftest.$ac_objext conftest$ac_exeext
6948 if { (ac_try="$ac_link"
6950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6951 *) ac_try_echo=$ac_try;;
6953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6954 (eval "$ac_link") 2>conftest.er1
6956 grep -v '^ *+' conftest.er1 >conftest.err
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && {
6961 test -z "$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6963 } && test -s conftest$ac_exeext &&
6964 $as_test_x conftest$ac_exeext; then
6966 am_cv_func_iconv=yes
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6975 conftest$ac_exeext conftest.$ac_ext
6976 LIBS="$am_save_LIBS"
6980 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6981 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6982 if test "$am_cv_func_iconv" = yes; then
6984 cat >>confdefs.h <<\_ACEOF
6985 #define HAVE_ICONV 1
6989 if test "$am_cv_lib_iconv" = yes; then
6990 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6991 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6992 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6993 echo "${ECHO_T}$LIBICONV" >&6; }
6995 CPPFLAGS="$am_save_CPPFLAGS"
7007 acl_save_prefix="$prefix"
7008 prefix="$acl_final_prefix"
7009 acl_save_exec_prefix="$exec_prefix"
7010 exec_prefix="$acl_final_exec_prefix"
7012 eval additional_includedir=\"$includedir\"
7013 eval additional_libdir=\"$libdir\"
7015 exec_prefix="$acl_save_exec_prefix"
7016 prefix="$acl_save_prefix"
7019 # Check whether --with-libintl-prefix was given.
7020 if test "${with_libintl_prefix+set}" = set; then
7021 withval=$with_libintl_prefix;
7022 if test "X$withval" = "Xno"; then
7025 if test "X$withval" = "X"; then
7027 acl_save_prefix="$prefix"
7028 prefix="$acl_final_prefix"
7029 acl_save_exec_prefix="$exec_prefix"
7030 exec_prefix="$acl_final_exec_prefix"
7032 eval additional_includedir=\"$includedir\"
7033 eval additional_libdir=\"$libdir\"
7035 exec_prefix="$acl_save_exec_prefix"
7036 prefix="$acl_save_prefix"
7039 additional_includedir="$withval/include"
7040 additional_libdir="$withval/lib"
7051 names_already_handled=
7052 names_next_round='intl '
7053 while test -n "$names_next_round"; do
7054 names_this_round="$names_next_round"
7056 for name in $names_this_round; do
7058 for n in $names_already_handled; do
7059 if test "$n" = "$name"; then
7064 if test -z "$already_handled"; then
7065 names_already_handled="$names_already_handled $name"
7066 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7067 eval value=\"\$HAVE_LIB$uppername\"
7068 if test -n "$value"; then
7069 if test "$value" = yes; then
7070 eval value=\"\$LIB$uppername\"
7071 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7072 eval value=\"\$LTLIB$uppername\"
7073 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7082 if test $use_additional = yes; then
7083 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7084 found_dir="$additional_libdir"
7085 found_so="$additional_libdir/lib$name.$shlibext"
7086 if test -f "$additional_libdir/lib$name.la"; then
7087 found_la="$additional_libdir/lib$name.la"
7090 if test -f "$additional_libdir/lib$name.$libext"; then
7091 found_dir="$additional_libdir"
7092 found_a="$additional_libdir/lib$name.$libext"
7093 if test -f "$additional_libdir/lib$name.la"; then
7094 found_la="$additional_libdir/lib$name.la"
7099 if test "X$found_dir" = "X"; then
7100 for x in $LDFLAGS $LTLIBINTL; do
7102 acl_save_prefix="$prefix"
7103 prefix="$acl_final_prefix"
7104 acl_save_exec_prefix="$exec_prefix"
7105 exec_prefix="$acl_final_exec_prefix"
7107 exec_prefix="$acl_save_exec_prefix"
7108 prefix="$acl_save_prefix"
7112 dir=`echo "X$x" | sed -e 's/^X-L//'`
7113 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7115 found_so="$dir/lib$name.$shlibext"
7116 if test -f "$dir/lib$name.la"; then
7117 found_la="$dir/lib$name.la"
7120 if test -f "$dir/lib$name.$libext"; then
7122 found_a="$dir/lib$name.$libext"
7123 if test -f "$dir/lib$name.la"; then
7124 found_la="$dir/lib$name.la"
7130 if test "X$found_dir" != "X"; then
7135 if test "X$found_dir" != "X"; then
7136 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7137 if test "X$found_so" != "X"; then
7138 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7139 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7142 for x in $ltrpathdirs; do
7143 if test "X$x" = "X$found_dir"; then
7148 if test -z "$haveit"; then
7149 ltrpathdirs="$ltrpathdirs $found_dir"
7151 if test "$hardcode_direct" = yes; then
7152 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7154 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7155 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7157 for x in $rpathdirs; do
7158 if test "X$x" = "X$found_dir"; then
7163 if test -z "$haveit"; then
7164 rpathdirs="$rpathdirs $found_dir"
7168 for x in $LDFLAGS $LIBINTL; do
7170 acl_save_prefix="$prefix"
7171 prefix="$acl_final_prefix"
7172 acl_save_exec_prefix="$exec_prefix"
7173 exec_prefix="$acl_final_exec_prefix"
7175 exec_prefix="$acl_save_exec_prefix"
7176 prefix="$acl_save_prefix"
7178 if test "X$x" = "X-L$found_dir"; then
7183 if test -z "$haveit"; then
7184 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7186 if test "$hardcode_minus_L" != no; then
7187 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7189 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7195 if test "X$found_a" != "X"; then
7196 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7198 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7201 additional_includedir=
7202 case "$found_dir" in
7204 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7205 additional_includedir="$basedir/include"
7208 if test "X$additional_includedir" != "X"; then
7209 if test "X$additional_includedir" != "X/usr/include"; then
7211 if test "X$additional_includedir" = "X/usr/local/include"; then
7212 if test -n "$GCC"; then
7214 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7218 if test -z "$haveit"; then
7219 for x in $CPPFLAGS $INCINTL; do
7221 acl_save_prefix="$prefix"
7222 prefix="$acl_final_prefix"
7223 acl_save_exec_prefix="$exec_prefix"
7224 exec_prefix="$acl_final_exec_prefix"
7226 exec_prefix="$acl_save_exec_prefix"
7227 prefix="$acl_save_prefix"
7229 if test "X$x" = "X-I$additional_includedir"; then
7234 if test -z "$haveit"; then
7235 if test -d "$additional_includedir"; then
7236 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7242 if test -n "$found_la"; then
7243 save_libdir="$libdir"
7245 */* | *\\*) . "$found_la" ;;
7246 *) . "./$found_la" ;;
7248 libdir="$save_libdir"
7249 for dep in $dependency_libs; do
7252 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7253 if test "X$additional_libdir" != "X/usr/lib"; then
7255 if test "X$additional_libdir" = "X/usr/local/lib"; then
7256 if test -n "$GCC"; then
7258 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7262 if test -z "$haveit"; then
7264 for x in $LDFLAGS $LIBINTL; do
7266 acl_save_prefix="$prefix"
7267 prefix="$acl_final_prefix"
7268 acl_save_exec_prefix="$exec_prefix"
7269 exec_prefix="$acl_final_exec_prefix"
7271 exec_prefix="$acl_save_exec_prefix"
7272 prefix="$acl_save_prefix"
7274 if test "X$x" = "X-L$additional_libdir"; then
7279 if test -z "$haveit"; then
7280 if test -d "$additional_libdir"; then
7281 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7285 for x in $LDFLAGS $LTLIBINTL; do
7287 acl_save_prefix="$prefix"
7288 prefix="$acl_final_prefix"
7289 acl_save_exec_prefix="$exec_prefix"
7290 exec_prefix="$acl_final_exec_prefix"
7292 exec_prefix="$acl_save_exec_prefix"
7293 prefix="$acl_save_prefix"
7295 if test "X$x" = "X-L$additional_libdir"; then
7300 if test -z "$haveit"; then
7301 if test -d "$additional_libdir"; then
7302 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7309 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7310 if test "$enable_rpath" != no; then
7312 for x in $rpathdirs; do
7313 if test "X$x" = "X$dir"; then
7318 if test -z "$haveit"; then
7319 rpathdirs="$rpathdirs $dir"
7322 for x in $ltrpathdirs; do
7323 if test "X$x" = "X$dir"; then
7328 if test -z "$haveit"; then
7329 ltrpathdirs="$ltrpathdirs $dir"
7334 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7337 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7340 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7341 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7347 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7348 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7354 if test "X$rpathdirs" != "X"; then
7355 if test -n "$hardcode_libdir_separator"; then
7357 for found_dir in $rpathdirs; do
7358 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7360 acl_save_libdir="$libdir"
7362 eval flag=\"$hardcode_libdir_flag_spec\"
7363 libdir="$acl_save_libdir"
7364 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7366 for found_dir in $rpathdirs; do
7367 acl_save_libdir="$libdir"
7369 eval flag=\"$hardcode_libdir_flag_spec\"
7370 libdir="$acl_save_libdir"
7371 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7375 if test "X$ltrpathdirs" != "X"; then
7376 for found_dir in $ltrpathdirs; do
7377 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7381 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7382 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7383 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 gt_save_CPPFLAGS="$CPPFLAGS"
7387 CPPFLAGS="$CPPFLAGS $INCINTL"
7388 gt_save_LIBS="$LIBS"
7389 LIBS="$LIBS $LIBINTL"
7390 cat >conftest.$ac_ext <<_ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7396 #include <libintl.h>
7397 extern int _nl_msg_cat_cntr;
7402 const char *_nl_expand_alias (const char *);
7406 bindtextdomain ("", "");
7407 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7412 rm -f conftest.$ac_objext conftest$ac_exeext
7413 if { (ac_try="$ac_link"
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419 (eval "$ac_link") 2>conftest.er1
7421 grep -v '^ *+' conftest.er1 >conftest.err
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest$ac_exeext &&
7429 $as_test_x conftest$ac_exeext; then
7430 gt_cv_func_gnugettext1_libintl=yes
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 gt_cv_func_gnugettext1_libintl=no
7438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439 conftest$ac_exeext conftest.$ac_ext
7440 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7441 LIBS="$LIBS $LIBICONV"
7442 cat >conftest.$ac_ext <<_ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h. */
7448 #include <libintl.h>
7449 extern int _nl_msg_cat_cntr;
7454 const char *_nl_expand_alias (const char *);
7458 bindtextdomain ("", "");
7459 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7464 rm -f conftest.$ac_objext conftest$ac_exeext
7465 if { (ac_try="$ac_link"
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_link") 2>conftest.er1
7473 grep -v '^ *+' conftest.er1 >conftest.err
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest$ac_exeext &&
7481 $as_test_x conftest$ac_exeext; then
7482 LIBINTL="$LIBINTL $LIBICONV"
7483 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7484 gt_cv_func_gnugettext1_libintl=yes
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7494 conftest$ac_exeext conftest.$ac_ext
7496 CPPFLAGS="$gt_save_CPPFLAGS"
7497 LIBS="$gt_save_LIBS"
7499 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7500 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7503 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7504 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7505 && test "$PACKAGE" != gettext-runtime \
7506 && test "$PACKAGE" != gettext-tools; }; then
7507 gt_use_preinstalled_gnugettext=yes
7516 if test -n "$INTL_MACOSX_LIBS"; then
7517 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7518 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7519 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7520 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7524 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7525 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7527 cat >>confdefs.h <<\_ACEOF
7528 #define ENABLE_NLS 1
7536 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7537 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7538 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7539 echo "${ECHO_T}$USE_NLS" >&6; }
7540 if test "$USE_NLS" = "yes"; then
7541 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7542 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7543 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7544 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7545 gt_source="external libintl"
7550 gt_source="included intl directory"
7552 { echo "$as_me:$LINENO: result: $gt_source" >&5
7553 echo "${ECHO_T}$gt_source" >&6; }
7556 if test "$USE_NLS" = "yes"; then
7558 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7559 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7560 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7561 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7562 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7563 echo "${ECHO_T}$LIBINTL" >&6; }
7565 for element in $INCINTL; do
7567 for x in $CPPFLAGS; do
7569 acl_save_prefix="$prefix"
7570 prefix="$acl_final_prefix"
7571 acl_save_exec_prefix="$exec_prefix"
7572 exec_prefix="$acl_final_exec_prefix"
7574 exec_prefix="$acl_save_exec_prefix"
7575 prefix="$acl_save_prefix"
7577 if test "X$x" = "X$element"; then
7582 if test -z "$haveit"; then
7583 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_GETTEXT 1
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_DCGETTEXT 1
7613 if test x${prefix} = xNONE ; then
7614 if test `eval echo ${datadir}` = NONE/share ; then
7619 # ------------------------------------------------------------------
7620 # If the user has not set --prefix, we set our default to nothing.
7621 # In this case, if the user has not set --sysconfdir, we set it
7622 # to the package default of /etc/bacula. If either --prefix or
7623 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7624 # ------------------------------------------------------------------
7625 if test x${prefix} = xNONE ; then
7626 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7627 sysconfdir=/etc/bacula
7631 sysconfdir=`eval echo ${sysconfdir}`
7632 datadir=`eval echo ${datadir}`
7633 localedir=`eval echo ${datadir}/locale`
7634 cat >>confdefs.h <<_ACEOF
7635 #define LOCALEDIR "$localedir"
7638 cat >>confdefs.h <<_ACEOF
7639 #define SYSCONFDIR "$sysconfdir"
7643 # -------------------------------------------------------------------------
7644 # If the user has not set --exec-prefix, we default to ${prefix}
7645 # -------------------------------------------------------------------------
7646 if test x${exec_prefix} = xNONE ; then
7647 exec_prefix=${prefix}
7650 # ------------------------------------------------------------------
7651 # If the user has not set --sbindir, we set our default as /sbin
7652 # ------------------------------------------------------------------
7653 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7654 sbindir=${exec_prefix}/sbin
7656 sbindir=`eval echo ${sbindir}`
7659 # -------------------------------------------------------------------------
7660 # If the user has not set --mandir, we default to /usr/share/man
7661 # -------------------------------------------------------------------------
7662 if test x$mandir = x'${prefix}/man' ; then
7663 mandir=/usr/share/man
7667 for ac_prog in msgfmt
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_MSGFMT+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 MSGFMT=$ac_cv_path_MSGFMT
7700 if test -n "$MSGFMT"; then
7701 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7702 echo "${ECHO_T}$MSGFMT" >&6; }
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7709 test -n "$MSGFMT" && break
7711 test -n "$MSGFMT" || MSGFMT="no"
7713 if test "$MSGFMT" = "no"
7715 echo 'msgfmt program not found, disabling NLS !'
7717 USE_INCLUDED_LIBINTL=no
7720 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7721 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7722 if test "${ac_cv_gnu_library_2+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 cat >conftest.$ac_ext <<_ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7732 #include <features.h>
7733 #ifdef __GNU_LIBRARY__
7734 #if (__GLIBC__ >= 2)
7740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7742 ac_cv_gnu_library_2=yes
7744 ac_cv_gnu_library_2=no
7751 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7752 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7754 GLIBC2="$ac_cv_gnu_library_2"
7758 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7759 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7760 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 ac_check_lib_save_LIBS=$LIBS
7764 LIBS="-lcposix $LIBS"
7765 cat >conftest.$ac_ext <<_ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7772 /* Override any GCC internal prototype to avoid an error.
7773 Use char because int might match the return type of a GCC
7774 builtin and then its argument prototype would still apply. */
7787 rm -f conftest.$ac_objext conftest$ac_exeext
7788 if { (ac_try="$ac_link"
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794 (eval "$ac_link") 2>conftest.er1
7796 grep -v '^ *+' conftest.er1 >conftest.err
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } && {
7801 test -z "$ac_c_werror_flag" ||
7802 test ! -s conftest.err
7803 } && test -s conftest$ac_exeext &&
7804 $as_test_x conftest$ac_exeext; then
7805 ac_cv_lib_cposix_strerror=yes
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 ac_cv_lib_cposix_strerror=no
7813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7814 conftest$ac_exeext conftest.$ac_ext
7815 LIBS=$ac_check_lib_save_LIBS
7817 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7818 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7819 if test $ac_cv_lib_cposix_strerror = yes; then
7820 LIBS="$LIBS -lcposix"
7825 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7827 if test "${ac_cv_header_stdc+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 cat >conftest.$ac_ext <<_ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7849 rm -f conftest.$ac_objext
7850 if { (ac_try="$ac_compile"
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_compile") 2>conftest.er1
7858 grep -v '^ *+' conftest.er1 >conftest.err
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } && {
7863 test -z "$ac_c_werror_flag" ||
7864 test ! -s conftest.err
7865 } && test -s conftest.$ac_objext; then
7866 ac_cv_header_stdc=yes
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7871 ac_cv_header_stdc=no
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876 if test $ac_cv_header_stdc = yes; then
7877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7878 cat >conftest.$ac_ext <<_ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7888 $EGREP "memchr" >/dev/null 2>&1; then
7891 ac_cv_header_stdc=no
7897 if test $ac_cv_header_stdc = yes; then
7898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909 $EGREP "free" >/dev/null 2>&1; then
7912 ac_cv_header_stdc=no
7918 if test $ac_cv_header_stdc = yes; then
7919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7920 if test "$cross_compiling" = yes; then
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7931 #if ((' ' & 0x0FF) == 0x020)
7932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7935 # define ISLOWER(c) \
7936 (('a' <= (c) && (c) <= 'i') \
7937 || ('j' <= (c) && (c) <= 'r') \
7938 || ('s' <= (c) && (c) <= 'z'))
7939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7947 for (i = 0; i < 256; i++)
7948 if (XOR (islower (i), ISLOWER (i))
7949 || toupper (i) != TOUPPER (i))
7954 rm -f conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961 (eval "$ac_link") 2>&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7965 { (case "(($ac_try" in
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970 (eval "$ac_try") 2>&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7976 echo "$as_me: program exited with status $ac_status" >&5
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7981 ac_cv_header_stdc=no
7983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7991 if test $ac_cv_header_stdc = yes; then
7993 cat >>confdefs.h <<\_ACEOF
7994 #define STDC_HEADERS 1
7999 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8000 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8001 if test "${ac_cv_c_const+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 cat >conftest.$ac_ext <<_ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8014 /* FIXME: Include the comments suggested by Paul. */
8016 /* Ultrix mips cc rejects this. */
8017 typedef int charset[2];
8019 /* SunOS 4.1.1 cc rejects this. */
8020 char const *const *pcpcc;
8022 /* NEC SVR4.0.2 mips cc rejects this. */
8023 struct point {int x, y;};
8024 static struct point const zero = {0,0};
8025 /* AIX XL C 1.02.0.0 rejects this.
8026 It does not let you subtract one const X* pointer from another in
8027 an arm of an if-expression whose if-part is not a constant
8029 const char *g = "string";
8030 pcpcc = &g + (g ? g-g : 0);
8031 /* HPUX 7.0 cc rejects these. */
8033 ppc = (char**) pcpcc;
8034 pcpcc = (char const *const *) ppc;
8035 { /* SCO 3.2v4 cc rejects this. */
8037 char const *s = 0 ? (char *) 0 : (char const *) 0;
8042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8044 const int *foo = &x[0];
8047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8048 typedef const int *iptr;
8052 { /* AIX XL C 1.02.0.0 rejects this saying
8053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8054 struct s { int j; const int *ap[3]; };
8055 struct s *b; b->j = 5;
8057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8061 return !cs[0] && !zero.x;
8068 rm -f conftest.$ac_objext
8069 if { (ac_try="$ac_compile"
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.$ac_objext; then
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8096 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8097 if test $ac_cv_c_const = no; then
8099 cat >>confdefs.h <<\_ACEOF
8106 { echo "$as_me:$LINENO: checking for signed" >&5
8107 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8108 if test "${bh_cv_c_signed+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 cat >conftest.$ac_ext <<_ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8126 rm -f conftest.$ac_objext
8127 if { (ac_try="$ac_compile"
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_compile") 2>conftest.er1
8135 grep -v '^ *+' conftest.er1 >conftest.err
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } && {
8140 test -z "$ac_c_werror_flag" ||
8141 test ! -s conftest.err
8142 } && test -s conftest.$ac_objext; then
8145 echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8154 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8155 if test $bh_cv_c_signed = no; then
8157 cat >>confdefs.h <<\_ACEOF
8163 { echo "$as_me:$LINENO: checking for inline" >&5
8164 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8165 if test "${ac_cv_c_inline+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 for ac_kw in inline __inline__ __inline; do
8170 cat >conftest.$ac_ext <<_ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8178 static $ac_kw foo_t static_foo () {return 0; }
8179 $ac_kw foo_t foo () {return 0; }
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_compile") 2>conftest.er1
8192 grep -v '^ *+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest.$ac_objext; then
8200 ac_cv_c_inline=$ac_kw
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 test "$ac_cv_c_inline" != no && break
8213 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8214 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8217 case $ac_cv_c_inline in
8220 case $ac_cv_c_inline in
8222 *) ac_val=$ac_cv_c_inline;;
8224 cat >>confdefs.h <<_ACEOF
8226 #define inline $ac_val
8232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8243 inttypes.h stdint.h unistd.h
8245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 $ac_includes_default
8259 #include <$ac_header>
8261 rm -f conftest.$ac_objext
8262 if { (ac_try="$ac_compile"
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
8278 eval "$as_ac_Header=yes"
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 eval "$as_ac_Header=no"
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 ac_res=`eval echo '${'$as_ac_Header'}'`
8289 { echo "$as_me:$LINENO: result: $ac_res" >&5
8290 echo "${ECHO_T}$ac_res" >&6; }
8291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8292 cat >>confdefs.h <<_ACEOF
8293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8301 { echo "$as_me:$LINENO: checking for off_t" >&5
8302 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8303 if test "${ac_cv_type_off_t+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 $ac_includes_default
8313 typedef off_t ac__type_new_;
8317 if ((ac__type_new_ *) 0)
8319 if (sizeof (ac__type_new_))
8325 rm -f conftest.$ac_objext
8326 if { (ac_try="$ac_compile"
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_compile") 2>conftest.er1
8334 grep -v '^ *+' conftest.er1 >conftest.err
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && {
8339 test -z "$ac_c_werror_flag" ||
8340 test ! -s conftest.err
8341 } && test -s conftest.$ac_objext; then
8342 ac_cv_type_off_t=yes
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8353 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8354 if test $ac_cv_type_off_t = yes; then
8358 cat >>confdefs.h <<_ACEOF
8359 #define off_t long int
8364 { echo "$as_me:$LINENO: checking for size_t" >&5
8365 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8366 if test "${ac_cv_type_size_t+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 cat >conftest.$ac_ext <<_ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8375 $ac_includes_default
8376 typedef size_t ac__type_new_;
8380 if ((ac__type_new_ *) 0)
8382 if (sizeof (ac__type_new_))
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8405 ac_cv_type_size_t=yes
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ac_cv_type_size_t=no
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8416 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8417 if test $ac_cv_type_size_t = yes; then
8421 cat >>confdefs.h <<_ACEOF
8422 #define size_t unsigned int
8428 { echo "$as_me:$LINENO: checking for long long" >&5
8429 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8430 if test "${ac_cv_type_long_long+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 cat >conftest.$ac_ext <<_ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 long long ll = 1LL; int i = 63;
8443 long long llmax = (long long) -1;
8444 return ll << i | ll >> i | llmax / ll | llmax % ll;
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (ac_try="$ac_link"
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_link") 2>conftest.er1
8458 grep -v '^ *+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && {
8463 test -z "$ac_c_werror_flag" ||
8464 test ! -s conftest.err
8465 } && test -s conftest$ac_exeext &&
8466 $as_test_x conftest$ac_exeext; then
8467 ac_cv_type_long_long=yes
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_cv_type_long_long=no
8475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8476 conftest$ac_exeext conftest.$ac_ext
8478 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8479 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8480 if test $ac_cv_type_long_long = yes; then
8482 cat >>confdefs.h <<\_ACEOF
8483 #define HAVE_LONG_LONG 1
8489 { echo "$as_me:$LINENO: checking for long double" >&5
8490 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8491 if test "${gt_cv_c_long_double+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 if test "$GCC" = yes; then
8495 gt_cv_c_long_double=yes
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8504 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8505 long double foo = 0.0;
8506 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8507 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524 (eval "$ac_compile") 2>conftest.er1
8526 grep -v '^ *+' conftest.er1 >conftest.err
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } && {
8531 test -z "$ac_c_werror_flag" ||
8532 test ! -s conftest.err
8533 } && test -s conftest.$ac_objext; then
8534 gt_cv_c_long_double=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 gt_cv_c_long_double=no
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8546 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8547 if test $gt_cv_c_long_double = yes; then
8549 cat >>confdefs.h <<\_ACEOF
8550 #define HAVE_LONG_DOUBLE 1
8556 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8557 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8558 if test "${gt_cv_c_wchar_t+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 cat >conftest.$ac_ext <<_ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8568 wchar_t foo = (wchar_t)'\0';
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1 >conftest.err
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.$ac_objext; then
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8605 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8606 if test $gt_cv_c_wchar_t = yes; then
8608 cat >>confdefs.h <<\_ACEOF
8609 #define HAVE_WCHAR_T 1
8615 { echo "$as_me:$LINENO: checking for wint_t" >&5
8616 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8617 if test "${gt_cv_c_wint_t+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 cat >conftest.$ac_ext <<_ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8627 wint_t foo = (wchar_t)'\0';
8636 rm -f conftest.$ac_objext
8637 if { (ac_try="$ac_compile"
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_compile") 2>conftest.er1
8645 grep -v '^ *+' conftest.er1 >conftest.err
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } && {
8650 test -z "$ac_c_werror_flag" ||
8651 test ! -s conftest.err
8652 } && test -s conftest.$ac_objext; then
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8664 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8665 if test $gt_cv_c_wint_t = yes; then
8667 cat >>confdefs.h <<\_ACEOF
8668 #define HAVE_WINT_T 1
8674 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8675 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8676 if test "${gl_cv_header_inttypes_h+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 cat >conftest.$ac_ext <<_ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 #include <sys/types.h>
8686 #include <inttypes.h>
8690 uintmax_t i = (uintmax_t) -1;
8695 rm -f conftest.$ac_objext
8696 if { (ac_try="$ac_compile"
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_compile") 2>conftest.er1
8704 grep -v '^ *+' conftest.er1 >conftest.err
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } && {
8709 test -z "$ac_c_werror_flag" ||
8710 test ! -s conftest.err
8711 } && test -s conftest.$ac_objext; then
8712 gl_cv_header_inttypes_h=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 gl_cv_header_inttypes_h=no
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8723 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8724 if test $gl_cv_header_inttypes_h = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8733 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8734 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8735 if test "${gl_cv_header_stdint_h+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 cat >conftest.$ac_ext <<_ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 #include <sys/types.h>
8749 uintmax_t i = (uintmax_t) -1;
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_compile") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest.$ac_objext; then
8771 gl_cv_header_stdint_h=yes
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 gl_cv_header_stdint_h=no
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8782 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8783 if test $gl_cv_header_stdint_h = yes; then
8785 cat >>confdefs.h <<_ACEOF
8786 #define HAVE_STDINT_H_WITH_UINTMAX 1
8794 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8795 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8796 if test "${gt_cv_c_intmax_t+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 cat >conftest.$ac_ext <<_ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8808 #if HAVE_STDINT_H_WITH_UINTMAX
8811 #if HAVE_INTTYPES_H_WITH_UINTMAX
8812 #include <inttypes.h>
8823 rm -f conftest.$ac_objext
8824 if { (ac_try="$ac_compile"
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_compile") 2>conftest.er1
8832 grep -v '^ *+' conftest.er1 >conftest.err
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } && {
8837 test -z "$ac_c_werror_flag" ||
8838 test ! -s conftest.err
8839 } && test -s conftest.$ac_objext; then
8840 gt_cv_c_intmax_t=yes
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8851 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8852 if test $gt_cv_c_intmax_t = yes; then
8854 cat >>confdefs.h <<\_ACEOF
8855 #define HAVE_INTMAX_T 1
8862 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8863 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8864 if test "${gt_cv_func_printf_posix+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 if test "$cross_compiling" = yes; then
8870 cat >conftest.$ac_ext <<_ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8877 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8883 $EGREP "notposix" >/dev/null 2>&1; then
8884 gt_cv_func_printf_posix="guessing no"
8886 gt_cv_func_printf_posix="guessing yes"
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8901 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8902 dollar expansion (possibly an autoconf bug). */
8903 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8904 static char buf[100];
8907 sprintf (buf, format, 33, 55);
8908 return (strcmp (buf, "55 33") != 0);
8911 rm -f conftest$ac_exeext
8912 if { (ac_try="$ac_link"
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_link") 2>&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8922 { (case "(($ac_try" in
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927 (eval "$ac_try") 2>&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 gt_cv_func_printf_posix=yes
8933 echo "$as_me: program exited with status $ac_status" >&5
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8938 gt_cv_func_printf_posix=no
8940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8946 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8947 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8948 case $gt_cv_func_printf_posix in
8951 cat >>confdefs.h <<\_ACEOF
8952 #define HAVE_POSIX_PRINTF 1
8958 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8959 # for constant arguments. Useless!
8960 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8961 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8962 if test "${ac_cv_working_alloca_h+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8975 char *p = (char *) alloca (2 * sizeof (int));
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (ac_try="$ac_link"
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_link") 2>conftest.er1
8990 grep -v '^ *+' conftest.er1 >conftest.err
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } && {
8995 test -z "$ac_c_werror_flag" ||
8996 test ! -s conftest.err
8997 } && test -s conftest$ac_exeext &&
8998 $as_test_x conftest$ac_exeext; then
8999 ac_cv_working_alloca_h=yes
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 ac_cv_working_alloca_h=no
9007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9008 conftest$ac_exeext conftest.$ac_ext
9010 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9011 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9012 if test $ac_cv_working_alloca_h = yes; then
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_ALLOCA_H 1
9020 { echo "$as_me:$LINENO: checking for alloca" >&5
9021 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9022 if test "${ac_cv_func_alloca_works+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 cat >conftest.$ac_ext <<_ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9032 # define alloca __builtin_alloca
9035 # include <malloc.h>
9036 # define alloca _alloca
9038 # ifdef HAVE_ALLOCA_H
9039 # include <alloca.h>
9044 # ifndef alloca /* predefined by HP cc +Olibcalls */
9055 char *p = (char *) alloca (1);
9061 rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (ac_try="$ac_link"
9064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068 (eval "$ac_link") 2>conftest.er1
9070 grep -v '^ *+' conftest.er1 >conftest.err
9072 cat conftest.err >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } && {
9075 test -z "$ac_c_werror_flag" ||
9076 test ! -s conftest.err
9077 } && test -s conftest$ac_exeext &&
9078 $as_test_x conftest$ac_exeext; then
9079 ac_cv_func_alloca_works=yes
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 ac_cv_func_alloca_works=no
9087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9088 conftest$ac_exeext conftest.$ac_ext
9090 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9091 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9093 if test $ac_cv_func_alloca_works = yes; then
9095 cat >>confdefs.h <<\_ACEOF
9096 #define HAVE_ALLOCA 1
9100 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9101 # that cause trouble. Some versions do not even contain alloca or
9102 # contain a buggy version. If you still want to use their alloca,
9103 # use ar to extract alloca.o from them instead of compiling alloca.c.
9105 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9107 cat >>confdefs.h <<\_ACEOF
9112 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9113 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9114 if test "${ac_cv_os_cray+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 cat >conftest.$ac_ext <<_ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9123 #if defined CRAY && ! defined CRAY2
9130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9131 $EGREP "webecray" >/dev/null 2>&1; then
9139 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9140 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9141 if test $ac_cv_os_cray = yes; then
9142 for ac_func in _getb67 GETB67 getb67; do
9143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 cat >conftest.$ac_ext <<_ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9157 #define $ac_func innocuous_$ac_func
9159 /* System header to define __stub macros and hopefully few prototypes,
9160 which can conflict with char $ac_func (); below.
9161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9162 <limits.h> exists even on freestanding compilers. */
9165 # include <limits.h>
9167 # include <assert.h>
9172 /* Override any GCC internal prototype to avoid an error.
9173 Use char because int might match the return type of a GCC
9174 builtin and then its argument prototype would still apply. */
9179 /* The GNU C library defines this for functions which it implements
9180 to always fail with ENOSYS. Some functions are actually named
9181 something starting with __ and the normal name is an alias. */
9182 #if defined __stub_$ac_func || defined __stub___$ac_func
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_link") 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest$ac_exeext &&
9211 $as_test_x conftest$ac_exeext; then
9212 eval "$as_ac_var=yes"
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 eval "$as_ac_var=no"
9220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9221 conftest$ac_exeext conftest.$ac_ext
9223 ac_res=`eval echo '${'$as_ac_var'}'`
9224 { echo "$as_me:$LINENO: result: $ac_res" >&5
9225 echo "${ECHO_T}$ac_res" >&6; }
9226 if test `eval echo '${'$as_ac_var'}'` = yes; then
9228 cat >>confdefs.h <<_ACEOF
9229 #define CRAY_STACKSEG_END $ac_func
9238 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9239 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9240 if test "${ac_cv_c_stack_direction+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 if test "$cross_compiling" = yes; then
9244 ac_cv_c_stack_direction=0
9246 cat >conftest.$ac_ext <<_ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 $ac_includes_default
9254 find_stack_direction ()
9256 static char *addr = 0;
9261 return find_stack_direction ();
9264 return (&dummy > addr) ? 1 : -1;
9270 return find_stack_direction () < 0;
9273 rm -f conftest$ac_exeext
9274 if { (ac_try="$ac_link"
9276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277 *) ac_try_echo=$ac_try;;
9279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9280 (eval "$ac_link") 2>&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9284 { (case "(($ac_try" in
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_try") 2>&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; }; then
9293 ac_cv_c_stack_direction=1
9295 echo "$as_me: program exited with status $ac_status" >&5
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_cv_c_stack_direction=-1
9302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9307 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9308 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9310 cat >>confdefs.h <<_ACEOF
9311 #define STACK_DIRECTION $ac_cv_c_stack_direction
9319 for ac_header in stdlib.h unistd.h
9321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 ac_res=`eval echo '${'$as_ac_Header'}'`
9329 { echo "$as_me:$LINENO: result: $ac_res" >&5
9330 echo "${ECHO_T}$ac_res" >&6; }
9332 # Is the header compilable?
9333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9335 cat >conftest.$ac_ext <<_ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9341 $ac_includes_default
9342 #include <$ac_header>
9344 rm -f conftest.$ac_objext
9345 if { (ac_try="$ac_compile"
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_compile") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && {
9358 test -z "$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 } && test -s conftest.$ac_objext; then
9361 ac_header_compiler=yes
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_header_compiler=no
9369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9371 echo "${ECHO_T}$ac_header_compiler" >&6; }
9373 # Is the header present?
9374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9376 cat >conftest.$ac_ext <<_ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 #include <$ac_header>
9384 if { (ac_try="$ac_cpp conftest.$ac_ext"
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9392 grep -v '^ *+' conftest.er1 >conftest.err
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } >/dev/null && {
9397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9400 ac_header_preproc=yes
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_header_preproc=no
9408 rm -f conftest.err conftest.$ac_ext
9409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9410 echo "${ECHO_T}$ac_header_preproc" >&6; }
9412 # So? What about this header?
9413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9419 ac_header_preproc=yes
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 eval "$as_ac_Header=\$ac_header_preproc"
9444 ac_res=`eval echo '${'$as_ac_Header'}'`
9445 { echo "$as_me:$LINENO: result: $ac_res" >&5
9446 echo "${ECHO_T}$ac_res" >&6; }
9449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9450 cat >>confdefs.h <<_ACEOF
9451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9459 for ac_func in getpagesize
9461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 cat >conftest.$ac_ext <<_ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9475 #define $ac_func innocuous_$ac_func
9477 /* System header to define __stub macros and hopefully few prototypes,
9478 which can conflict with char $ac_func (); below.
9479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9480 <limits.h> exists even on freestanding compilers. */
9483 # include <limits.h>
9485 # include <assert.h>
9490 /* Override any GCC internal prototype to avoid an error.
9491 Use char because int might match the return type of a GCC
9492 builtin and then its argument prototype would still apply. */
9497 /* The GNU C library defines this for functions which it implements
9498 to always fail with ENOSYS. Some functions are actually named
9499 something starting with __ and the normal name is an alias. */
9500 #if defined __stub_$ac_func || defined __stub___$ac_func
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (ac_try="$ac_link"
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_link") 2>conftest.er1
9521 grep -v '^ *+' conftest.er1 >conftest.err
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest$ac_exeext &&
9529 $as_test_x conftest$ac_exeext; then
9530 eval "$as_ac_var=yes"
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 eval "$as_ac_var=no"
9538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9539 conftest$ac_exeext conftest.$ac_ext
9541 ac_res=`eval echo '${'$as_ac_var'}'`
9542 { echo "$as_me:$LINENO: result: $ac_res" >&5
9543 echo "${ECHO_T}$ac_res" >&6; }
9544 if test `eval echo '${'$as_ac_var'}'` = yes; then
9545 cat >>confdefs.h <<_ACEOF
9546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9552 { echo "$as_me:$LINENO: checking for working mmap" >&5
9553 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9554 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 if test "$cross_compiling" = yes; then
9558 ac_cv_func_mmap_fixed_mapped=no
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 $ac_includes_default
9567 /* malloc might have been renamed as rpl_malloc. */
9570 /* Thanks to Mike Haertel and Jim Avera for this test.
9571 Here is a matrix of mmap possibilities:
9572 mmap private not fixed
9573 mmap private fixed at somewhere currently unmapped
9574 mmap private fixed at somewhere already mapped
9575 mmap shared not fixed
9576 mmap shared fixed at somewhere currently unmapped
9577 mmap shared fixed at somewhere already mapped
9578 For private mappings, we should verify that changes cannot be read()
9579 back from the file, nor mmap's back from the file at a different
9580 address. (There have been systems where private was not correctly
9581 implemented like the infamous i386 svr4.0, and systems where the
9582 VM page cache was not coherent with the file system buffer cache
9583 like early versions of FreeBSD and possibly contemporary NetBSD.)
9584 For shared mappings, we should conversely verify that changes get
9585 propagated back to all the places they're supposed to be.
9587 Grep wants private fixed already mapped.
9588 The main things grep needs to know about mmap are:
9589 * does it exist and is it safe to write into the mmap'd area
9590 * how to use it (BSD variants) */
9593 #include <sys/mman.h>
9595 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9599 /* This mess was copied from the GNU getpagesize.h. */
9600 #ifndef HAVE_GETPAGESIZE
9601 /* Assume that all systems that can run configure have sys/param.h. */
9602 # ifndef HAVE_SYS_PARAM_H
9603 # define HAVE_SYS_PARAM_H 1
9606 # ifdef _SC_PAGESIZE
9607 # define getpagesize() sysconf(_SC_PAGESIZE)
9608 # else /* no _SC_PAGESIZE */
9609 # ifdef HAVE_SYS_PARAM_H
9610 # include <sys/param.h>
9611 # ifdef EXEC_PAGESIZE
9612 # define getpagesize() EXEC_PAGESIZE
9613 # else /* no EXEC_PAGESIZE */
9615 # define getpagesize() NBPG * CLSIZE
9618 # endif /* no CLSIZE */
9619 # else /* no NBPG */
9621 # define getpagesize() NBPC
9622 # else /* no NBPC */
9624 # define getpagesize() PAGESIZE
9625 # endif /* PAGESIZE */
9626 # endif /* no NBPC */
9627 # endif /* no NBPG */
9628 # endif /* no EXEC_PAGESIZE */
9629 # else /* no HAVE_SYS_PARAM_H */
9630 # define getpagesize() 8192 /* punt totally */
9631 # endif /* no HAVE_SYS_PARAM_H */
9632 # endif /* no _SC_PAGESIZE */
9634 #endif /* no HAVE_GETPAGESIZE */
9639 char *data, *data2, *data3;
9643 pagesize = getpagesize ();
9645 /* First, make a file with some known garbage in it. */
9646 data = (char *) malloc (pagesize);
9649 for (i = 0; i < pagesize; ++i)
9650 *(data + i) = rand ();
9652 fd = creat ("conftest.mmap", 0600);
9655 if (write (fd, data, pagesize) != pagesize)
9659 /* Next, try to mmap the file at a fixed address which already has
9660 something else allocated at it. If we can, also make sure that
9661 we see the same garbage. */
9662 fd = open ("conftest.mmap", O_RDWR);
9665 data2 = (char *) malloc (2 * pagesize);
9668 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9669 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9670 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9672 for (i = 0; i < pagesize; ++i)
9673 if (*(data + i) != *(data2 + i))
9676 /* Finally, make sure that changes to the mapped area do not
9677 percolate back to the file as seen by read(). (This is a bug on
9678 some variants of i386 svr4.0.) */
9679 for (i = 0; i < pagesize; ++i)
9680 *(data2 + i) = *(data2 + i) + 1;
9681 data3 = (char *) malloc (pagesize);
9684 if (read (fd, data3, pagesize) != pagesize)
9686 for (i = 0; i < pagesize; ++i)
9687 if (*(data + i) != *(data3 + i))
9693 rm -f conftest$ac_exeext
9694 if { (ac_try="$ac_link"
9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697 *) ac_try_echo=$ac_try;;
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700 (eval "$ac_link") 2>&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9704 { (case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_try") 2>&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_cv_func_mmap_fixed_mapped=yes
9715 echo "$as_me: program exited with status $ac_status" >&5
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_cv_func_mmap_fixed_mapped=no
9722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9727 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9728 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9729 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9731 cat >>confdefs.h <<\_ACEOF
9739 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9740 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9741 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 cat >conftest.$ac_ext <<_ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9751 #include <features.h>
9752 #ifdef __GNU_LIBRARY__
9753 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9760 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9761 ac_cv_gnu_library_2_1=yes
9763 ac_cv_gnu_library_2_1=no
9770 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9771 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9773 GLIBC21="$ac_cv_gnu_library_2_1"
9778 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9779 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9780 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 if test "$cross_compiling" = yes; then
9786 # Guess based on the CPU.
9788 alpha* | i3456786 | m68k | s390*)
9789 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9791 gt_cv_int_divbyzero_sigfpe="guessing no";;
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9807 sigfpe_handler (int sig)
9809 sigfpe_handler (sig) int sig;
9812 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9813 exit (sig != SIGFPE);
9823 signal (SIGFPE, sigfpe_handler);
9824 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9825 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9826 signal (SIGTRAP, sigfpe_handler);
9828 /* Linux/SPARC yields signal SIGILL. */
9829 #if defined (__sparc__) && defined (__linux__)
9830 signal (SIGILL, sigfpe_handler);
9839 rm -f conftest$ac_exeext
9840 if { (ac_try="$ac_link"
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_link") 2>&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9850 { (case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_try") 2>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 gt_cv_int_divbyzero_sigfpe=yes
9861 echo "$as_me: program exited with status $ac_status" >&5
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9866 gt_cv_int_divbyzero_sigfpe=no
9868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9874 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9875 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9876 case "$gt_cv_int_divbyzero_sigfpe" in
9881 cat >>confdefs.h <<_ACEOF
9882 #define INTDIV0_RAISES_SIGFPE $value
9887 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9888 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9889 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 unsigned long long ull = 1ULL; int i = 63;
9902 unsigned long long ullmax = (unsigned long long) -1;
9903 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9908 rm -f conftest.$ac_objext conftest$ac_exeext
9909 if { (ac_try="$ac_link"
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_link") 2>conftest.er1
9917 grep -v '^ *+' conftest.er1 >conftest.err
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } && {
9922 test -z "$ac_c_werror_flag" ||
9923 test ! -s conftest.err
9924 } && test -s conftest$ac_exeext &&
9925 $as_test_x conftest$ac_exeext; then
9926 ac_cv_type_unsigned_long_long=yes
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_cv_type_unsigned_long_long=no
9934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9935 conftest$ac_exeext conftest.$ac_ext
9937 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9938 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9939 if test $ac_cv_type_unsigned_long_long = yes; then
9941 cat >>confdefs.h <<\_ACEOF
9942 #define HAVE_UNSIGNED_LONG_LONG 1
9950 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9952 test $ac_cv_type_unsigned_long_long = yes \
9953 && ac_type='unsigned long long' \
9954 || ac_type='unsigned long'
9956 cat >>confdefs.h <<_ACEOF
9957 #define uintmax_t $ac_type
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_UINTMAX_T 1
9969 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9970 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9971 if test "${gt_cv_header_inttypes_h+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 cat >conftest.$ac_ext <<_ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 #include <sys/types.h>
9982 #include <inttypes.h>
9991 rm -f conftest.$ac_objext
9992 if { (ac_try="$ac_compile"
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_compile") 2>conftest.er1
10000 grep -v '^ *+' conftest.er1 >conftest.err
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest.$ac_objext; then
10008 gt_cv_header_inttypes_h=yes
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 gt_cv_header_inttypes_h=no
10016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10020 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10021 if test $gt_cv_header_inttypes_h = yes; then
10023 cat >>confdefs.h <<_ACEOF
10024 #define HAVE_INTTYPES_H 1
10031 if test $gt_cv_header_inttypes_h = yes; then
10032 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10033 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10034 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 cat >conftest.$ac_ext <<_ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10044 #include <inttypes.h>
10057 rm -f conftest.$ac_objext
10058 if { (ac_try="$ac_compile"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_compile") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_c_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest.$ac_objext; then
10074 gt_cv_inttypes_pri_broken=no
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 gt_cv_inttypes_pri_broken=yes
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10085 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10086 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10088 if test "$gt_cv_inttypes_pri_broken" = yes; then
10090 cat >>confdefs.h <<_ACEOF
10091 #define PRI_MACROS_BROKEN 1
10098 for ac_header in stdint.h
10100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 ac_res=`eval echo '${'$as_ac_Header'}'`
10108 { echo "$as_me:$LINENO: result: $ac_res" >&5
10109 echo "${ECHO_T}$ac_res" >&6; }
10111 # Is the header compilable?
10112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10114 cat >conftest.$ac_ext <<_ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 $ac_includes_default
10121 #include <$ac_header>
10123 rm -f conftest.$ac_objext
10124 if { (ac_try="$ac_compile"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_compile") 2>conftest.er1
10132 grep -v '^ *+' conftest.er1 >conftest.err
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && {
10137 test -z "$ac_c_werror_flag" ||
10138 test ! -s conftest.err
10139 } && test -s conftest.$ac_objext; then
10140 ac_header_compiler=yes
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10145 ac_header_compiler=no
10148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10150 echo "${ECHO_T}$ac_header_compiler" >&6; }
10152 # Is the header present?
10153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10155 cat >conftest.$ac_ext <<_ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161 #include <$ac_header>
10163 if { (ac_try="$ac_cpp conftest.$ac_ext"
10164 case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10171 grep -v '^ *+' conftest.er1 >conftest.err
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } >/dev/null && {
10176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10177 test ! -s conftest.err
10179 ac_header_preproc=yes
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_header_preproc=no
10187 rm -f conftest.err conftest.$ac_ext
10188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10189 echo "${ECHO_T}$ac_header_preproc" >&6; }
10191 # So? What about this header?
10192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10198 ac_header_preproc=yes
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 eval "$as_ac_Header=\$ac_header_preproc"
10223 ac_res=`eval echo '${'$as_ac_Header'}'`
10224 { echo "$as_me:$LINENO: result: $ac_res" >&5
10225 echo "${ECHO_T}$ac_res" >&6; }
10228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10229 cat >>confdefs.h <<_ACEOF
10230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10237 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10238 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10240 cat >conftest.$ac_ext <<_ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10247 #include <limits.h>
10249 #include <stdint.h>
10256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10257 $EGREP "Found it" >/dev/null 2>&1; then
10262 if test -z "$result"; then
10263 if test "$cross_compiling" = yes; then
10264 # Depending upon the size, compute the lo and hi bounds.
10265 cat >conftest.$ac_ext <<_ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 #include <stddef.h>
10275 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10282 rm -f conftest.$ac_objext
10283 if { (ac_try="$ac_compile"
10284 case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_compile") 2>conftest.er1
10291 grep -v '^ *+' conftest.er1 >conftest.err
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } && {
10296 test -z "$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 } && test -s conftest.$ac_objext; then
10301 cat >conftest.$ac_ext <<_ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 #include <stddef.h>
10311 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10318 rm -f conftest.$ac_objext
10319 if { (ac_try="$ac_compile"
10320 case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_compile") 2>conftest.er1
10327 grep -v '^ *+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest.$ac_objext; then
10335 ac_hi=$ac_mid; break
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_lo=`expr $ac_mid + 1`
10341 if test $ac_lo -le $ac_mid; then
10345 ac_mid=`expr 2 '*' $ac_mid + 1`
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 cat >conftest.$ac_ext <<_ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10360 #include <stddef.h>
10364 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10371 rm -f conftest.$ac_objext
10372 if { (ac_try="$ac_compile"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_compile") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1 >conftest.err
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && {
10385 test -z "$ac_c_werror_flag" ||
10386 test ! -s conftest.err
10387 } && test -s conftest.$ac_objext; then
10390 cat >conftest.$ac_ext <<_ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 #include <stddef.h>
10400 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10407 rm -f conftest.$ac_objext
10408 if { (ac_try="$ac_compile"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_compile") 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest.$ac_objext; then
10424 ac_lo=$ac_mid; break
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_hi=`expr '(' $ac_mid ')' - 1`
10430 if test $ac_mid -le $ac_hi; then
10434 ac_mid=`expr 2 '*' $ac_mid`
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 # Binary search between lo and hi bounds.
10451 while test "x$ac_lo" != "x$ac_hi"; do
10452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10453 cat >conftest.$ac_ext <<_ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 #include <stddef.h>
10463 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10470 rm -f conftest.$ac_objext
10471 if { (ac_try="$ac_compile"
10472 case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_compile") 2>conftest.er1
10479 grep -v '^ *+' conftest.er1 >conftest.err
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest.$ac_objext; then
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 ac_lo=`expr '(' $ac_mid ')' + 1`
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10498 ?*) res_hi=$ac_lo;;
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 #include <stddef.h>
10509 static long int longval () { return ~(size_t)0 / 10; }
10510 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10512 #include <stdlib.h>
10517 FILE *f = fopen ("conftest.val", "w");
10520 if ((~(size_t)0 / 10) < 0)
10522 long int i = longval ();
10523 if (i != (~(size_t)0 / 10))
10525 fprintf (f, "%ld\n", i);
10529 unsigned long int i = ulongval ();
10530 if (i != (~(size_t)0 / 10))
10532 fprintf (f, "%lu\n", i);
10534 return ferror (f) || fclose (f) != 0;
10540 rm -f conftest$ac_exeext
10541 if { (ac_try="$ac_link"
10542 case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_link") 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10551 { (case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_try") 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 res_hi=`cat conftest.val`
10562 echo "$as_me: program exited with status $ac_status" >&5
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 ( exit $ac_status )
10569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10573 if test "$cross_compiling" = yes; then
10574 # Depending upon the size, compute the lo and hi bounds.
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 #include <stddef.h>
10585 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10592 rm -f conftest.$ac_objext
10593 if { (ac_try="$ac_compile"
10594 case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_compile") 2>conftest.er1
10601 grep -v '^ *+' conftest.er1 >conftest.err
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } && {
10606 test -z "$ac_c_werror_flag" ||
10607 test ! -s conftest.err
10608 } && test -s conftest.$ac_objext; then
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 #include <stddef.h>
10621 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10628 rm -f conftest.$ac_objext
10629 if { (ac_try="$ac_compile"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_compile") 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } && {
10642 test -z "$ac_c_werror_flag" ||
10643 test ! -s conftest.err
10644 } && test -s conftest.$ac_objext; then
10645 ac_hi=$ac_mid; break
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10650 ac_lo=`expr $ac_mid + 1`
10651 if test $ac_lo -le $ac_mid; then
10655 ac_mid=`expr 2 '*' $ac_mid + 1`
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 cat >conftest.$ac_ext <<_ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 #include <stddef.h>
10674 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10681 rm -f conftest.$ac_objext
10682 if { (ac_try="$ac_compile"
10683 case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_compile") 2>conftest.er1
10690 grep -v '^ *+' conftest.er1 >conftest.err
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } && {
10695 test -z "$ac_c_werror_flag" ||
10696 test ! -s conftest.err
10697 } && test -s conftest.$ac_objext; then
10700 cat >conftest.$ac_ext <<_ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 #include <stddef.h>
10710 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10717 rm -f conftest.$ac_objext
10718 if { (ac_try="$ac_compile"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_compile") 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && {
10731 test -z "$ac_c_werror_flag" ||
10732 test ! -s conftest.err
10733 } && test -s conftest.$ac_objext; then
10734 ac_lo=$ac_mid; break
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ac_hi=`expr '(' $ac_mid ')' - 1`
10740 if test $ac_mid -le $ac_hi; then
10744 ac_mid=`expr 2 '*' $ac_mid`
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 # Binary search between lo and hi bounds.
10761 while test "x$ac_lo" != "x$ac_hi"; do
10762 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10763 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 #include <stddef.h>
10773 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10780 rm -f conftest.$ac_objext
10781 if { (ac_try="$ac_compile"
10782 case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_compile") 2>conftest.er1
10789 grep -v '^ *+' conftest.er1 >conftest.err
10791 cat conftest.err >&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest.$ac_objext; then
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_lo=`expr '(' $ac_mid ')' + 1`
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 ?*) res_lo=$ac_lo;;
10812 cat >conftest.$ac_ext <<_ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 #include <stddef.h>
10819 static long int longval () { return ~(size_t)0 % 10; }
10820 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10822 #include <stdlib.h>
10827 FILE *f = fopen ("conftest.val", "w");
10830 if ((~(size_t)0 % 10) < 0)
10832 long int i = longval ();
10833 if (i != (~(size_t)0 % 10))
10835 fprintf (f, "%ld\n", i);
10839 unsigned long int i = ulongval ();
10840 if (i != (~(size_t)0 % 10))
10842 fprintf (f, "%lu\n", i);
10844 return ferror (f) || fclose (f) != 0;
10850 rm -f conftest$ac_exeext
10851 if { (ac_try="$ac_link"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10861 { (case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_try") 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 res_lo=`cat conftest.val`
10872 echo "$as_me: program exited with status $ac_status" >&5
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 ( exit $ac_status )
10879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10883 if test "$cross_compiling" = yes; then
10884 # Depending upon the size, compute the lo and hi bounds.
10885 cat >conftest.$ac_ext <<_ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 #include <stddef.h>
10895 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10902 rm -f conftest.$ac_objext
10903 if { (ac_try="$ac_compile"
10904 case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_compile") 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest.$ac_objext; then
10921 cat >conftest.$ac_ext <<_ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 #include <stddef.h>
10931 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10938 rm -f conftest.$ac_objext
10939 if { (ac_try="$ac_compile"
10940 case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_compile") 2>conftest.er1
10947 grep -v '^ *+' conftest.er1 >conftest.err
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } && {
10952 test -z "$ac_c_werror_flag" ||
10953 test ! -s conftest.err
10954 } && test -s conftest.$ac_objext; then
10955 ac_hi=$ac_mid; break
10957 echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10960 ac_lo=`expr $ac_mid + 1`
10961 if test $ac_lo -le $ac_mid; then
10965 ac_mid=`expr 2 '*' $ac_mid + 1`
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 cat >conftest.$ac_ext <<_ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10980 #include <stddef.h>
10984 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10991 rm -f conftest.$ac_objext
10992 if { (ac_try="$ac_compile"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_compile") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest.$ac_objext; then
11010 cat >conftest.$ac_ext <<_ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 #include <stddef.h>
11020 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11027 rm -f conftest.$ac_objext
11028 if { (ac_try="$ac_compile"
11029 case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_compile") 2>conftest.er1
11036 grep -v '^ *+' conftest.er1 >conftest.err
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } && {
11041 test -z "$ac_c_werror_flag" ||
11042 test ! -s conftest.err
11043 } && test -s conftest.$ac_objext; then
11044 ac_lo=$ac_mid; break
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 ac_hi=`expr '(' $ac_mid ')' - 1`
11050 if test $ac_mid -le $ac_hi; then
11054 ac_mid=`expr 2 '*' $ac_mid`
11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070 # Binary search between lo and hi bounds.
11071 while test "x$ac_lo" != "x$ac_hi"; do
11072 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11073 cat >conftest.$ac_ext <<_ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 #include <stddef.h>
11083 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11090 rm -f conftest.$ac_objext
11091 if { (ac_try="$ac_compile"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_compile") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1 >conftest.err
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && {
11104 test -z "$ac_c_werror_flag" ||
11105 test ! -s conftest.err
11106 } && test -s conftest.$ac_objext; then
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11112 ac_lo=`expr '(' $ac_mid ')' + 1`
11115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 ?*) fits_in_uint=$ac_lo;;
11122 cat >conftest.$ac_ext <<_ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11128 #include <stddef.h>
11129 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11130 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11132 #include <stdlib.h>
11137 FILE *f = fopen ("conftest.val", "w");
11140 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11142 long int i = longval ();
11143 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11145 fprintf (f, "%ld\n", i);
11149 unsigned long int i = ulongval ();
11150 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11152 fprintf (f, "%lu\n", i);
11154 return ferror (f) || fclose (f) != 0;
11160 rm -f conftest$ac_exeext
11161 if { (ac_try="$ac_link"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_link") 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11171 { (case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_try") 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 fits_in_uint=`cat conftest.val`
11182 echo "$as_me: program exited with status $ac_status" >&5
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11186 ( exit $ac_status )
11189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11193 if test "$fits_in_uint" = 1; then
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 #include <stddef.h>
11202 extern unsigned long foo;
11212 rm -f conftest.$ac_objext
11213 if { (ac_try="$ac_compile"
11214 case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_compile") 2>conftest.er1
11221 grep -v '^ *+' conftest.er1 >conftest.err
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } && {
11226 test -z "$ac_c_werror_flag" ||
11227 test ! -s conftest.err
11228 } && test -s conftest.$ac_objext; then
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 if test -z "$result"; then
11240 if test "$fits_in_uint" = 1; then
11241 result="$res_hi$res_lo"U
11243 result="$res_hi$res_lo"UL
11246 result='~(size_t)0'
11249 { echo "$as_me:$LINENO: result: $result" >&5
11250 echo "${ECHO_T}$result" >&6; }
11251 if test "$result" != yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define SIZE_MAX $result
11263 for ac_header in stdint.h
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273 { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11276 # Is the header compilable?
11277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 $ac_includes_default
11286 #include <$ac_header>
11288 rm -f conftest.$ac_objext
11289 if { (ac_try="$ac_compile"
11290 case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_compile") 2>conftest.er1
11297 grep -v '^ *+' conftest.er1 >conftest.err
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } && {
11302 test -z "$ac_c_werror_flag" ||
11303 test ! -s conftest.err
11304 } && test -s conftest.$ac_objext; then
11305 ac_header_compiler=yes
11307 echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11310 ac_header_compiler=no
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315 echo "${ECHO_T}$ac_header_compiler" >&6; }
11317 # Is the header present?
11318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11320 cat >conftest.$ac_ext <<_ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 #include <$ac_header>
11328 if { (ac_try="$ac_cpp conftest.$ac_ext"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } >/dev/null && {
11341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11344 ac_header_preproc=yes
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 ac_header_preproc=no
11352 rm -f conftest.err conftest.$ac_ext
11353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11354 echo "${ECHO_T}$ac_header_preproc" >&6; }
11356 # So? What about this header?
11357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11363 ac_header_preproc=yes
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 eval "$as_ac_Header=\$ac_header_preproc"
11388 ac_res=`eval echo '${'$as_ac_Header'}'`
11389 { echo "$as_me:$LINENO: result: $ac_res" >&5
11390 echo "${ECHO_T}$ac_res" >&6; }
11393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11409 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11410 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11411 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 cat >conftest.$ac_ext <<_ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 $ac_includes_default
11421 typedef ptrdiff_t ac__type_new_;
11425 if ((ac__type_new_ *) 0)
11427 if (sizeof (ac__type_new_))
11433 rm -f conftest.$ac_objext
11434 if { (ac_try="$ac_compile"
11435 case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_compile") 2>conftest.er1
11442 grep -v '^ *+' conftest.er1 >conftest.err
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && {
11447 test -z "$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 } && test -s conftest.$ac_objext; then
11450 ac_cv_type_ptrdiff_t=yes
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_cv_type_ptrdiff_t=no
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11460 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11461 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11462 if test $ac_cv_type_ptrdiff_t = yes; then
11466 cat >>confdefs.h <<\_ACEOF
11467 #define ptrdiff_t long
11483 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11484 stdlib.h string.h unistd.h sys/param.h
11486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 ac_res=`eval echo '${'$as_ac_Header'}'`
11494 { echo "$as_me:$LINENO: result: $ac_res" >&5
11495 echo "${ECHO_T}$ac_res" >&6; }
11497 # Is the header compilable?
11498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11500 cat >conftest.$ac_ext <<_ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 $ac_includes_default
11507 #include <$ac_header>
11509 rm -f conftest.$ac_objext
11510 if { (ac_try="$ac_compile"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_compile") 2>conftest.er1
11518 grep -v '^ *+' conftest.er1 >conftest.err
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } && {
11523 test -z "$ac_c_werror_flag" ||
11524 test ! -s conftest.err
11525 } && test -s conftest.$ac_objext; then
11526 ac_header_compiler=yes
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_header_compiler=no
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11536 echo "${ECHO_T}$ac_header_compiler" >&6; }
11538 # Is the header present?
11539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 #include <$ac_header>
11549 if { (ac_try="$ac_cpp conftest.$ac_ext"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11557 grep -v '^ *+' conftest.er1 >conftest.err
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } >/dev/null && {
11562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11565 ac_header_preproc=yes
11567 echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11570 ac_header_preproc=no
11573 rm -f conftest.err conftest.$ac_ext
11574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11575 echo "${ECHO_T}$ac_header_preproc" >&6; }
11577 # So? What about this header?
11578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11584 ac_header_preproc=yes
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 eval "$as_ac_Header=\$ac_header_preproc"
11609 ac_res=`eval echo '${'$as_ac_Header'}'`
11610 { echo "$as_me:$LINENO: result: $ac_res" >&5
11611 echo "${ECHO_T}$ac_res" >&6; }
11614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11615 cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11646 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11647 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11648 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11665 #define $ac_func innocuous_$ac_func
11667 /* System header to define __stub macros and hopefully few prototypes,
11668 which can conflict with char $ac_func (); below.
11669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11670 <limits.h> exists even on freestanding compilers. */
11673 # include <limits.h>
11675 # include <assert.h>
11680 /* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11687 /* The GNU C library defines this for functions which it implements
11688 to always fail with ENOSYS. Some functions are actually named
11689 something starting with __ and the normal name is an alias. */
11690 #if defined __stub_$ac_func || defined __stub___$ac_func
11697 return $ac_func ();
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (ac_try="$ac_link"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_link") 2>conftest.er1
11711 grep -v '^ *+' conftest.er1 >conftest.err
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest$ac_exeext &&
11719 $as_test_x conftest$ac_exeext; then
11720 eval "$as_ac_var=yes"
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 eval "$as_ac_var=no"
11728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11729 conftest$ac_exeext conftest.$ac_ext
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11744 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11745 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11746 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 cat >conftest.$ac_ext <<_ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11761 char *p = (char *) _snprintf;
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_cv_have_decl__snprintf=yes
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_cv_have_decl__snprintf=no
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11796 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11797 if test $ac_cv_have_decl__snprintf = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 #define HAVE_DECL__SNPRINTF $gt_value
11809 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11810 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11811 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 cat >conftest.$ac_ext <<_ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11826 char *p = (char *) _snwprintf;
11833 rm -f conftest.$ac_objext
11834 if { (ac_try="$ac_compile"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_compile") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1 >conftest.err
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest.$ac_objext; then
11850 ac_cv_have_decl__snwprintf=yes
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 ac_cv_have_decl__snwprintf=no
11858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11861 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11862 if test $ac_cv_have_decl__snwprintf = yes; then
11868 cat >>confdefs.h <<_ACEOF
11869 #define HAVE_DECL__SNWPRINTF $gt_value
11875 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11876 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11877 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11891 #ifndef feof_unlocked
11892 char *p = (char *) feof_unlocked;
11899 rm -f conftest.$ac_objext
11900 if { (ac_try="$ac_compile"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_compile") 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } && {
11913 test -z "$ac_c_werror_flag" ||
11914 test ! -s conftest.err
11915 } && test -s conftest.$ac_objext; then
11916 ac_cv_have_decl_feof_unlocked=yes
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 ac_cv_have_decl_feof_unlocked=no
11924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11927 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11928 if test $ac_cv_have_decl_feof_unlocked = yes; then
11934 cat >>confdefs.h <<_ACEOF
11935 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11940 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11941 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11942 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11956 #ifndef fgets_unlocked
11957 char *p = (char *) fgets_unlocked;
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_compile") 2>conftest.er1
11973 grep -v '^ *+' conftest.er1 >conftest.err
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest.$ac_objext; then
11981 ac_cv_have_decl_fgets_unlocked=yes
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_cv_have_decl_fgets_unlocked=no
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11992 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11993 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11999 cat >>confdefs.h <<_ACEOF
12000 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12005 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12006 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12007 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 cat >conftest.$ac_ext <<_ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12021 #ifndef getc_unlocked
12022 char *p = (char *) getc_unlocked;
12029 rm -f conftest.$ac_objext
12030 if { (ac_try="$ac_compile"
12031 case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_compile") 2>conftest.er1
12038 grep -v '^ *+' conftest.er1 >conftest.err
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } && {
12043 test -z "$ac_c_werror_flag" ||
12044 test ! -s conftest.err
12045 } && test -s conftest.$ac_objext; then
12046 ac_cv_have_decl_getc_unlocked=yes
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_cv_have_decl_getc_unlocked=no
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12057 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12058 if test $ac_cv_have_decl_getc_unlocked = yes; then
12064 cat >>confdefs.h <<_ACEOF
12065 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12070 case $gt_cv_func_printf_posix in
12071 *yes) HAVE_POSIX_PRINTF=1 ;;
12072 *) HAVE_POSIX_PRINTF=0 ;;
12075 if test "$ac_cv_func_asprintf" = yes; then
12081 if test "$ac_cv_func_snprintf" = yes; then
12087 if test "$ac_cv_func_wprintf" = yes; then
12099 am_save_CPPFLAGS="$CPPFLAGS"
12101 for element in $INCICONV; do
12103 for x in $CPPFLAGS; do
12105 acl_save_prefix="$prefix"
12106 prefix="$acl_final_prefix"
12107 acl_save_exec_prefix="$exec_prefix"
12108 exec_prefix="$acl_final_exec_prefix"
12110 exec_prefix="$acl_save_exec_prefix"
12111 prefix="$acl_save_prefix"
12113 if test "X$x" = "X$element"; then
12118 if test -z "$haveit"; then
12119 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12124 { echo "$as_me:$LINENO: checking for iconv" >&5
12125 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12126 if test "${am_cv_func_iconv+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 am_cv_func_iconv="no, consider installing GNU libiconv"
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 #include <stdlib.h>
12143 iconv_t cd = iconv_open("","");
12144 iconv(cd,NULL,NULL,NULL,NULL);
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (ac_try="$ac_link"
12152 case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_link") 2>conftest.er1
12159 grep -v '^ *+' conftest.er1 >conftest.err
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } && {
12164 test -z "$ac_c_werror_flag" ||
12165 test ! -s conftest.err
12166 } && test -s conftest$ac_exeext &&
12167 $as_test_x conftest$ac_exeext; then
12168 am_cv_func_iconv=yes
12170 echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12177 conftest$ac_exeext conftest.$ac_ext
12178 if test "$am_cv_func_iconv" != yes; then
12179 am_save_LIBS="$LIBS"
12180 LIBS="$LIBS $LIBICONV"
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 #include <stdlib.h>
12192 iconv_t cd = iconv_open("","");
12193 iconv(cd,NULL,NULL,NULL,NULL);
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_link") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest$ac_exeext &&
12216 $as_test_x conftest$ac_exeext; then
12217 am_cv_lib_iconv=yes
12218 am_cv_func_iconv=yes
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227 conftest$ac_exeext conftest.$ac_ext
12228 LIBS="$am_save_LIBS"
12232 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12233 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12234 if test "$am_cv_func_iconv" = yes; then
12236 cat >>confdefs.h <<\_ACEOF
12237 #define HAVE_ICONV 1
12241 if test "$am_cv_lib_iconv" = yes; then
12242 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12243 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12244 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12245 echo "${ECHO_T}$LIBICONV" >&6; }
12247 CPPFLAGS="$am_save_CPPFLAGS"
12254 if test "$am_cv_func_iconv" = yes; then
12255 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12256 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12257 if test "${am_cv_proto_iconv+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 cat >conftest.$ac_ext <<_ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12268 #include <stdlib.h>
12274 #if defined(__STDC__) || defined(__cplusplus)
12275 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12288 rm -f conftest.$ac_objext
12289 if { (ac_try="$ac_compile"
12290 case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_compile") 2>conftest.er1
12297 grep -v '^ *+' conftest.er1 >conftest.err
12299 cat conftest.err >&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } && {
12302 test -z "$ac_c_werror_flag" ||
12303 test ! -s conftest.err
12304 } && test -s conftest.$ac_objext; then
12305 am_cv_proto_iconv_arg1=""
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12310 am_cv_proto_iconv_arg1="const"
12313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314 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);"
12317 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12318 { echo "$as_me:$LINENO: result: ${ac_t:-
12319 }$am_cv_proto_iconv" >&5
12320 echo "${ECHO_T}${ac_t:-
12321 }$am_cv_proto_iconv" >&6; }
12323 cat >>confdefs.h <<_ACEOF
12324 #define ICONV_CONST $am_cv_proto_iconv_arg1
12330 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12331 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12332 if test "${am_cv_langinfo_codeset+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 cat >conftest.$ac_ext <<_ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341 #include <langinfo.h>
12345 char* cs = nl_langinfo(CODESET);
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (ac_try="$ac_link"
12352 case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_link") 2>conftest.er1
12359 grep -v '^ *+' conftest.er1 >conftest.err
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && {
12364 test -z "$ac_c_werror_flag" ||
12365 test ! -s conftest.err
12366 } && test -s conftest$ac_exeext &&
12367 $as_test_x conftest$ac_exeext; then
12368 am_cv_langinfo_codeset=yes
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 am_cv_langinfo_codeset=no
12376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12377 conftest$ac_exeext conftest.$ac_ext
12380 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12381 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12382 if test $am_cv_langinfo_codeset = yes; then
12384 cat >>confdefs.h <<\_ACEOF
12385 #define HAVE_LANGINFO_CODESET 1
12390 if test $ac_cv_header_locale_h = yes; then
12392 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12393 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12394 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 cat >conftest.$ac_ext <<_ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12403 #include <locale.h>
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (ac_try="$ac_link"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_link") 2>conftest.er1
12421 grep -v '^ *+' conftest.er1 >conftest.err
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && {
12426 test -z "$ac_c_werror_flag" ||
12427 test ! -s conftest.err
12428 } && test -s conftest$ac_exeext &&
12429 $as_test_x conftest$ac_exeext; then
12430 gt_cv_val_LC_MESSAGES=yes
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 gt_cv_val_LC_MESSAGES=no
12438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12439 conftest$ac_exeext conftest.$ac_ext
12441 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12442 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12443 if test $gt_cv_val_LC_MESSAGES = yes; then
12445 cat >>confdefs.h <<\_ACEOF
12446 #define HAVE_LC_MESSAGES 1
12453 if test -n "$INTL_MACOSX_LIBS"; then
12454 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12457 for ac_prog in bison
12459 # Extract the first word of "$ac_prog", so it can be a program name with args.
12460 set dummy $ac_prog; ac_word=$2
12461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12463 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 if test -n "$INTLBISON"; then
12467 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470 for as_dir in $PATH
12473 test -z "$as_dir" && as_dir=.
12474 for ac_exec_ext in '' $ac_executable_extensions; do
12475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12476 ac_cv_prog_INTLBISON="$ac_prog"
12477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12486 INTLBISON=$ac_cv_prog_INTLBISON
12487 if test -n "$INTLBISON"; then
12488 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12489 echo "${ECHO_T}$INTLBISON" >&6; }
12491 { echo "$as_me:$LINENO: result: no" >&5
12492 echo "${ECHO_T}no" >&6; }
12496 test -n "$INTLBISON" && break
12499 if test -z "$INTLBISON"; then
12502 { echo "$as_me:$LINENO: checking version of bison" >&5
12503 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12504 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12505 case $ac_prog_version in
12506 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12507 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12508 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12509 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12511 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12512 echo "${ECHO_T}$ac_prog_version" >&6; }
12514 if test $ac_verc_fail = yes; then
12533 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12534 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12535 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 gt_save_CPPFLAGS="$CPPFLAGS"
12539 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12540 gt_save_LIBS="$LIBS"
12541 LIBS="$LIBS -framework CoreFoundation"
12542 cat >conftest.$ac_ext <<_ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 #include <CFPreferences.h>
12552 CFPreferencesCopyAppValue(NULL, NULL)
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (ac_try="$ac_link"
12559 case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_link") 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } && {
12571 test -z "$ac_c_werror_flag" ||
12572 test ! -s conftest.err
12573 } && test -s conftest$ac_exeext &&
12574 $as_test_x conftest$ac_exeext; then
12575 gt_cv_func_CFPreferencesCopyAppValue=yes
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12580 gt_cv_func_CFPreferencesCopyAppValue=no
12583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12584 conftest$ac_exeext conftest.$ac_ext
12585 CPPFLAGS="$gt_save_CPPFLAGS"
12586 LIBS="$gt_save_LIBS"
12588 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12589 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12590 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12592 cat >>confdefs.h <<\_ACEOF
12593 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12597 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12598 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12599 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 gt_save_CPPFLAGS="$CPPFLAGS"
12603 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12604 gt_save_LIBS="$LIBS"
12605 LIBS="$LIBS -framework CoreFoundation"
12606 cat >conftest.$ac_ext <<_ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 #include <CFLocale.h>
12616 CFLocaleCopyCurrent();
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_link") 2>conftest.er1
12630 grep -v '^ *+' conftest.er1 >conftest.err
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest$ac_exeext &&
12638 $as_test_x conftest$ac_exeext; then
12639 gt_cv_func_CFLocaleCopyCurrent=yes
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 gt_cv_func_CFLocaleCopyCurrent=no
12647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12648 conftest$ac_exeext conftest.$ac_ext
12649 CPPFLAGS="$gt_save_CPPFLAGS"
12650 LIBS="$gt_save_LIBS"
12652 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12653 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12654 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_CFLOCALECOPYCURRENT 1
12662 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12663 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12669 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12670 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12671 # Check whether --enable-nls was given.
12672 if test "${enable_nls+set}" = set; then
12673 enableval=$enable_nls; USE_NLS=$enableval
12678 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12679 echo "${ECHO_T}$USE_NLS" >&6; }
12684 BUILD_INCLUDED_LIBINTL=no
12685 USE_INCLUDED_LIBINTL=no
12691 if test "$USE_NLS" = "yes"; then
12692 gt_use_preinstalled_gnugettext=no
12694 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12695 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12697 # Check whether --with-included-gettext was given.
12698 if test "${with_included_gettext+set}" = set; then
12699 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12701 nls_cv_force_use_gnu_gettext=no
12704 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12705 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12707 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12708 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12715 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12716 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12717 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12720 cat >conftest.$ac_ext <<_ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 #include <libintl.h>
12727 extern int _nl_msg_cat_cntr;
12728 extern int *_nl_domain_bindings;
12732 bindtextdomain ("", "");
12733 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (ac_try="$ac_link"
12740 case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_link") 2>conftest.er1
12747 grep -v '^ *+' conftest.er1 >conftest.err
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && {
12752 test -z "$ac_c_werror_flag" ||
12753 test ! -s conftest.err
12754 } && test -s conftest$ac_exeext &&
12755 $as_test_x conftest$ac_exeext; then
12756 gt_cv_func_gnugettext1_libc=yes
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 gt_cv_func_gnugettext1_libc=no
12764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12765 conftest$ac_exeext conftest.$ac_ext
12767 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12768 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12770 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12776 acl_save_prefix="$prefix"
12777 prefix="$acl_final_prefix"
12778 acl_save_exec_prefix="$exec_prefix"
12779 exec_prefix="$acl_final_exec_prefix"
12781 eval additional_includedir=\"$includedir\"
12782 eval additional_libdir=\"$libdir\"
12784 exec_prefix="$acl_save_exec_prefix"
12785 prefix="$acl_save_prefix"
12788 # Check whether --with-libintl-prefix was given.
12789 if test "${with_libintl_prefix+set}" = set; then
12790 withval=$with_libintl_prefix;
12791 if test "X$withval" = "Xno"; then
12794 if test "X$withval" = "X"; then
12796 acl_save_prefix="$prefix"
12797 prefix="$acl_final_prefix"
12798 acl_save_exec_prefix="$exec_prefix"
12799 exec_prefix="$acl_final_exec_prefix"
12801 eval additional_includedir=\"$includedir\"
12802 eval additional_libdir=\"$libdir\"
12804 exec_prefix="$acl_save_exec_prefix"
12805 prefix="$acl_save_prefix"
12808 additional_includedir="$withval/include"
12809 additional_libdir="$withval/lib"
12820 names_already_handled=
12821 names_next_round='intl '
12822 while test -n "$names_next_round"; do
12823 names_this_round="$names_next_round"
12825 for name in $names_this_round; do
12827 for n in $names_already_handled; do
12828 if test "$n" = "$name"; then
12829 already_handled=yes
12833 if test -z "$already_handled"; then
12834 names_already_handled="$names_already_handled $name"
12835 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12836 eval value=\"\$HAVE_LIB$uppername\"
12837 if test -n "$value"; then
12838 if test "$value" = yes; then
12839 eval value=\"\$LIB$uppername\"
12840 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12841 eval value=\"\$LTLIB$uppername\"
12842 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12851 if test $use_additional = yes; then
12852 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12853 found_dir="$additional_libdir"
12854 found_so="$additional_libdir/lib$name.$shlibext"
12855 if test -f "$additional_libdir/lib$name.la"; then
12856 found_la="$additional_libdir/lib$name.la"
12859 if test -f "$additional_libdir/lib$name.$libext"; then
12860 found_dir="$additional_libdir"
12861 found_a="$additional_libdir/lib$name.$libext"
12862 if test -f "$additional_libdir/lib$name.la"; then
12863 found_la="$additional_libdir/lib$name.la"
12868 if test "X$found_dir" = "X"; then
12869 for x in $LDFLAGS $LTLIBINTL; do
12871 acl_save_prefix="$prefix"
12872 prefix="$acl_final_prefix"
12873 acl_save_exec_prefix="$exec_prefix"
12874 exec_prefix="$acl_final_exec_prefix"
12876 exec_prefix="$acl_save_exec_prefix"
12877 prefix="$acl_save_prefix"
12881 dir=`echo "X$x" | sed -e 's/^X-L//'`
12882 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12884 found_so="$dir/lib$name.$shlibext"
12885 if test -f "$dir/lib$name.la"; then
12886 found_la="$dir/lib$name.la"
12889 if test -f "$dir/lib$name.$libext"; then
12891 found_a="$dir/lib$name.$libext"
12892 if test -f "$dir/lib$name.la"; then
12893 found_la="$dir/lib$name.la"
12899 if test "X$found_dir" != "X"; then
12904 if test "X$found_dir" != "X"; then
12905 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12906 if test "X$found_so" != "X"; then
12907 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12908 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12911 for x in $ltrpathdirs; do
12912 if test "X$x" = "X$found_dir"; then
12917 if test -z "$haveit"; then
12918 ltrpathdirs="$ltrpathdirs $found_dir"
12920 if test "$hardcode_direct" = yes; then
12921 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12923 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12924 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12926 for x in $rpathdirs; do
12927 if test "X$x" = "X$found_dir"; then
12932 if test -z "$haveit"; then
12933 rpathdirs="$rpathdirs $found_dir"
12937 for x in $LDFLAGS $LIBINTL; do
12939 acl_save_prefix="$prefix"
12940 prefix="$acl_final_prefix"
12941 acl_save_exec_prefix="$exec_prefix"
12942 exec_prefix="$acl_final_exec_prefix"
12944 exec_prefix="$acl_save_exec_prefix"
12945 prefix="$acl_save_prefix"
12947 if test "X$x" = "X-L$found_dir"; then
12952 if test -z "$haveit"; then
12953 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12955 if test "$hardcode_minus_L" != no; then
12956 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12958 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12964 if test "X$found_a" != "X"; then
12965 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12967 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12970 additional_includedir=
12971 case "$found_dir" in
12973 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12974 additional_includedir="$basedir/include"
12977 if test "X$additional_includedir" != "X"; then
12978 if test "X$additional_includedir" != "X/usr/include"; then
12980 if test "X$additional_includedir" = "X/usr/local/include"; then
12981 if test -n "$GCC"; then
12983 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12987 if test -z "$haveit"; then
12988 for x in $CPPFLAGS $INCINTL; do
12990 acl_save_prefix="$prefix"
12991 prefix="$acl_final_prefix"
12992 acl_save_exec_prefix="$exec_prefix"
12993 exec_prefix="$acl_final_exec_prefix"
12995 exec_prefix="$acl_save_exec_prefix"
12996 prefix="$acl_save_prefix"
12998 if test "X$x" = "X-I$additional_includedir"; then
13003 if test -z "$haveit"; then
13004 if test -d "$additional_includedir"; then
13005 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13011 if test -n "$found_la"; then
13012 save_libdir="$libdir"
13013 case "$found_la" in
13014 */* | *\\*) . "$found_la" ;;
13015 *) . "./$found_la" ;;
13017 libdir="$save_libdir"
13018 for dep in $dependency_libs; do
13021 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13022 if test "X$additional_libdir" != "X/usr/lib"; then
13024 if test "X$additional_libdir" = "X/usr/local/lib"; then
13025 if test -n "$GCC"; then
13027 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13031 if test -z "$haveit"; then
13033 for x in $LDFLAGS $LIBINTL; do
13035 acl_save_prefix="$prefix"
13036 prefix="$acl_final_prefix"
13037 acl_save_exec_prefix="$exec_prefix"
13038 exec_prefix="$acl_final_exec_prefix"
13040 exec_prefix="$acl_save_exec_prefix"
13041 prefix="$acl_save_prefix"
13043 if test "X$x" = "X-L$additional_libdir"; then
13048 if test -z "$haveit"; then
13049 if test -d "$additional_libdir"; then
13050 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13054 for x in $LDFLAGS $LTLIBINTL; do
13056 acl_save_prefix="$prefix"
13057 prefix="$acl_final_prefix"
13058 acl_save_exec_prefix="$exec_prefix"
13059 exec_prefix="$acl_final_exec_prefix"
13061 exec_prefix="$acl_save_exec_prefix"
13062 prefix="$acl_save_prefix"
13064 if test "X$x" = "X-L$additional_libdir"; then
13069 if test -z "$haveit"; then
13070 if test -d "$additional_libdir"; then
13071 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13078 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13079 if test "$enable_rpath" != no; then
13081 for x in $rpathdirs; do
13082 if test "X$x" = "X$dir"; then
13087 if test -z "$haveit"; then
13088 rpathdirs="$rpathdirs $dir"
13091 for x in $ltrpathdirs; do
13092 if test "X$x" = "X$dir"; then
13097 if test -z "$haveit"; then
13098 ltrpathdirs="$ltrpathdirs $dir"
13103 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13106 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13109 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13110 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13116 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13117 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13123 if test "X$rpathdirs" != "X"; then
13124 if test -n "$hardcode_libdir_separator"; then
13126 for found_dir in $rpathdirs; do
13127 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13129 acl_save_libdir="$libdir"
13131 eval flag=\"$hardcode_libdir_flag_spec\"
13132 libdir="$acl_save_libdir"
13133 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13135 for found_dir in $rpathdirs; do
13136 acl_save_libdir="$libdir"
13137 libdir="$found_dir"
13138 eval flag=\"$hardcode_libdir_flag_spec\"
13139 libdir="$acl_save_libdir"
13140 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13144 if test "X$ltrpathdirs" != "X"; then
13145 for found_dir in $ltrpathdirs; do
13146 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13150 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13151 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13152 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 gt_save_CPPFLAGS="$CPPFLAGS"
13156 CPPFLAGS="$CPPFLAGS $INCINTL"
13157 gt_save_LIBS="$LIBS"
13158 LIBS="$LIBS $LIBINTL"
13159 cat >conftest.$ac_ext <<_ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13165 #include <libintl.h>
13166 extern int _nl_msg_cat_cntr;
13171 const char *_nl_expand_alias (const char *);
13175 bindtextdomain ("", "");
13176 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (ac_try="$ac_link"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_link") 2>conftest.er1
13190 grep -v '^ *+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } && {
13195 test -z "$ac_c_werror_flag" ||
13196 test ! -s conftest.err
13197 } && test -s conftest$ac_exeext &&
13198 $as_test_x conftest$ac_exeext; then
13199 gt_cv_func_gnugettext1_libintl=yes
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13204 gt_cv_func_gnugettext1_libintl=no
13207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13208 conftest$ac_exeext conftest.$ac_ext
13209 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13210 LIBS="$LIBS $LIBICONV"
13211 cat >conftest.$ac_ext <<_ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13217 #include <libintl.h>
13218 extern int _nl_msg_cat_cntr;
13223 const char *_nl_expand_alias (const char *);
13227 bindtextdomain ("", "");
13228 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13233 rm -f conftest.$ac_objext conftest$ac_exeext
13234 if { (ac_try="$ac_link"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_link") 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } && {
13247 test -z "$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 } && test -s conftest$ac_exeext &&
13250 $as_test_x conftest$ac_exeext; then
13251 LIBINTL="$LIBINTL $LIBICONV"
13252 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13253 gt_cv_func_gnugettext1_libintl=yes
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13263 conftest$ac_exeext conftest.$ac_ext
13265 CPPFLAGS="$gt_save_CPPFLAGS"
13266 LIBS="$gt_save_LIBS"
13268 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13269 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13272 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13273 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13274 && test "$PACKAGE" != gettext-runtime \
13275 && test "$PACKAGE" != gettext-tools; }; then
13276 gt_use_preinstalled_gnugettext=yes
13284 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13285 nls_cv_use_gnu_gettext=yes
13289 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13290 BUILD_INCLUDED_LIBINTL=yes
13291 USE_INCLUDED_LIBINTL=yes
13292 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13293 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13294 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13298 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13299 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13304 if test -n "$INTL_MACOSX_LIBS"; then
13305 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13306 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13307 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13308 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13312 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13313 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13315 cat >>confdefs.h <<\_ACEOF
13316 #define ENABLE_NLS 1
13324 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13325 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13326 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13327 echo "${ECHO_T}$USE_NLS" >&6; }
13328 if test "$USE_NLS" = "yes"; then
13329 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13330 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13331 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13332 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13333 gt_source="external libintl"
13338 gt_source="included intl directory"
13340 { echo "$as_me:$LINENO: result: $gt_source" >&5
13341 echo "${ECHO_T}$gt_source" >&6; }
13344 if test "$USE_NLS" = "yes"; then
13346 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13347 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13348 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13349 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13350 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13351 echo "${ECHO_T}$LIBINTL" >&6; }
13353 for element in $INCINTL; do
13355 for x in $CPPFLAGS; do
13357 acl_save_prefix="$prefix"
13358 prefix="$acl_final_prefix"
13359 acl_save_exec_prefix="$exec_prefix"
13360 exec_prefix="$acl_final_exec_prefix"
13362 exec_prefix="$acl_save_exec_prefix"
13363 prefix="$acl_save_prefix"
13365 if test "X$x" = "X$element"; then
13370 if test -z "$haveit"; then
13371 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13378 cat >>confdefs.h <<\_ACEOF
13379 #define HAVE_GETTEXT 1
13383 cat >>confdefs.h <<\_ACEOF
13384 #define HAVE_DCGETTEXT 1
13393 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13394 BUILD_INCLUDED_LIBINTL=yes
13401 nls_cv_header_intl=
13402 nls_cv_header_libgt=
13414 if test "$USE_INCLUDED_LIBINTL" = yes; then
13415 INTLOBJS="\$(GETTOBJS)"
13419 INTL_LIBTOOL_SUFFIX_PREFIX=
13423 INTLLIBS="$LIBINTL"
13435 support_postgresql=no
13437 support_smartalloc=yes
13438 support_readline=yes
13442 support_wx_console=no
13447 support_static_tools=no
13448 support_static_fd=no
13449 support_static_sd=no
13450 support_static_dir=no
13451 support_static_cons=no
13453 build_client_only=no
13461 # -------------------------------------------
13462 # gnome (default off)
13463 # -------------------------------------------
13464 # Check whether --enable-gnome was given.
13465 if test "${enable_gnome+set}" = set; then
13466 enableval=$enable_gnome; if test x$enableval = xyes; then
13473 if test x$support_gnome = xyes; then
13474 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13476 if test $pkg = 0; then
13477 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13478 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13479 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13480 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13485 GNOME_DIR=src/gnome2-console
13486 gnome_version="Version 2.x"
13488 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13489 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13490 { (exit 1); exit 1; }; }
13495 # -------------------------------------------
13496 # bat (default off)
13497 # -------------------------------------------
13498 # Check whether --enable-bat was given.
13499 if test "${enable_bat+set}" = set; then
13500 enableval=$enable_bat; if test x$enableval = xyes; then
13502 cat >>confdefs.h <<\_ACEOF
13512 if test x$support_bat = xyes; then
13513 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13515 if test $pkg = 0; then
13516 BAT_DIR=src/qt-console
13518 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13519 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13520 { (exit 1); exit 1; }; }
13525 # If bat is enabled, we need the qwt library
13532 if test x$support_bat = xyes; then
13533 { echo "$as_me:$LINENO: checking for qwt support" >&5
13534 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13536 # Check whether --with-qwt was given.
13537 if test "${with_qwt+set}" = set; then
13539 case "$with_qwt" in
13544 if test -f ${with_qwt}/include/qwt.h; then
13545 QWT_INC="${with_qwt}/include"
13546 QWT_LDFLAGS="-L${with_qwt}/lib"
13557 # Search in standard places, or --with-qwt not specified
13559 if test $no_qwt = no; then
13560 if test x$QWT_INC = x; then
13561 for root in /usr /usr/local; do
13562 for ver in qwt qwt5 qwt-qt4; do
13563 if test -f ${root}/include/${ver}/qwt.h; then
13564 QWT_INC="${root}/include/${ver}"
13565 if test -d ${root}/lib64/; then
13566 QWT_LDFLAGS="-L${root}/lib64"
13568 QWT_LDFLAGS="-L${root}/lib"
13579 if test x$QWT_INC = x; then
13580 { echo "$as_me:$LINENO: result: no" >&5
13581 echo "${ECHO_T}no" >&6; }
13584 cat >>confdefs.h <<\_ACEOF
13588 { echo "$as_me:$LINENO: result: yes" >&5
13589 echo "${ECHO_T}yes" >&6; }
13600 # -------------------------------------------
13601 # bwx-console (default off)
13602 # -------------------------------------------
13603 # Check whether --enable-bwx-console was given.
13604 if test "${enable_bwx_console+set}" = set; then
13605 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13606 support_wx_console=yes
13612 if test x$support_wx_console = xyes; then
13613 abc=`$WXCONFIG $WXFLAGS --cppflags`
13615 if test $pkg = 0; then
13616 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13617 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13618 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13622 WX_DIR=src/wx-console
13625 echo "wx-config program not found. bwx-console disabled."
13627 support_wx_console=no
13633 # -------------------------------------------
13634 # tray-monitor (default off)
13635 # -------------------------------------------
13636 # Check whether --enable-tray-monitor was given.
13637 if test "${enable_tray_monitor+set}" = set; then
13638 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13639 support_tray_monitor=yes
13645 if test x$support_tray_monitor = xyes; then
13646 abc=`$PKGCONFIG --exists gtk+-2.0`
13648 if test $pkg = 0; then
13649 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13650 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13653 TRAY_MONITOR_DIR=src/tray-monitor
13654 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13656 if test $pkg = 0; then
13658 cat >>confdefs.h <<\_ACEOF
13659 #define HAVE_GTK_2_4 1
13667 # -------------------------------------------
13668 # smartalloc (default off)
13669 # -------------------------------------------
13670 # Check whether --enable-smartalloc was given.
13671 if test "${enable_smartalloc+set}" = set; then
13672 enableval=$enable_smartalloc; if test x$enableval = xno; then
13673 support_smartalloc=no
13678 if test x$support_smartalloc = xyes; then
13680 cat >>confdefs.h <<\_ACEOF
13681 #define SMARTALLOC 1
13686 # -------------------------------------------
13687 # static-tools (default off)
13688 # -------------------------------------------
13689 # Check whether --enable-static-tools was given.
13690 if test "${enable_static_tools+set}" = set; then
13691 enableval=$enable_static_tools; if test x$enableval = xyes; then
13692 support_static_tools=yes
13698 if test x$support_static_tools = xyes; then
13699 TTOOL_LDFLAGS="-static"
13703 # -------------------------------------------
13704 # static-fd (default off)
13705 # -------------------------------------------
13706 # Check whether --enable-static-fd was given.
13707 if test "${enable_static_fd+set}" = set; then
13708 enableval=$enable_static_fd; if test x$enableval = xyes; then
13709 support_static_fd=yes
13715 if test x$support_static_fd = xyes; then
13716 STATIC_FD="static-bacula-fd"
13720 # -------------------------------------------
13721 # static-sd (default off)
13722 # -------------------------------------------
13723 # Check whether --enable-static-sd was given.
13724 if test "${enable_static_sd+set}" = set; then
13725 enableval=$enable_static_sd; if test x$enableval = xyes; then
13726 support_static_sd=yes
13732 if test x$support_static_sd = xyes; then
13733 STATIC_SD="static-bacula-sd"
13737 # -------------------------------------------
13738 # static-dir (default off)
13739 # -------------------------------------------
13740 # Check whether --enable-static-dir was given.
13741 if test "${enable_static_dir+set}" = set; then
13742 enableval=$enable_static_dir; if test x$enableval = xyes; then
13743 support_static_dir=yes
13749 if test x$support_static_dir = xyes; then
13750 STATIC_DIR="static-bacula-dir"
13754 # -------------------------------------------
13755 # static-cons (default off)
13756 # -------------------------------------------
13757 # Check whether --enable-static-cons was given.
13758 if test "${enable_static_cons+set}" = set; then
13759 enableval=$enable_static_cons; if test x$enableval = xyes; then
13760 support_static_cons=yes
13768 if test x$support_static_cons = xyes; then
13769 STATIC_CONS="static-bconsole"
13770 STATIC_GNOME_CONS="static-bgnome-console"
13771 STATIC_WX_CONS="static-bwx-console"
13777 # -------------------------------------------
13778 # client_only (default off)
13779 # -------------------------------------------
13780 # Check whether --enable-client-only was given.
13781 if test "${enable_client_only+set}" = set; then
13782 enableval=$enable_client_only; if test x$enableval = xyes; then
13783 build_client_only=yes
13789 if test x$build_client_only = xno; then
13796 # -------------------------------------------
13797 # director (default on)
13798 # -------------------------------------------
13799 # Check whether --enable-build-dird was given.
13800 if test "${enable_build_dird+set}" = set; then
13801 enableval=$enable_build_dird; if test x$enableval = xno; then
13806 if test x$build_dird = xyes; then
13807 DIRD_DIR="src/dird"
13808 DIR_TOOLS="DIRTOOLS"
13811 DIR_TOOLS="NODIRTOOLS"
13816 # -------------------------------------------
13817 # stored (default on)
13818 # -------------------------------------------
13819 # Check whether --enable-build-stored was given.
13820 if test "${enable_build_stored+set}" = set; then
13821 enableval=$enable_build_stored; if test x$enableval = xno; then
13826 if test x$build_stored = xyes; then
13827 STORED_DIR="src/stored"
13833 # ---------------------------------------------------
13834 # Check for conio (Bacula readline substitute)(
13835 # ---------------------------------------------------
13836 # this allows you to turn it completely off
13837 # Check whether --enable-conio was given.
13838 if test "${enable_conio+set}" = set; then
13839 enableval=$enable_conio; if test x$enableval = xno; then
13847 # ---------------------------------------------------
13848 # Check for IPv6 support
13849 # ---------------------------------------------------
13850 # this allows you to turn it completely off
13852 # Check whether --enable-ipv6 was given.
13853 if test "${enable_ipv6+set}" = set; then
13854 enableval=$enable_ipv6; if test x$enableval = xno; then
13861 if test x$support_ipv6 = xyes; then
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 #include <sys/types.h>
13869 #include <sys/socket.h>
13870 #include <netinet/in.h>
13874 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (ac_try="$ac_link"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_link") 2>conftest.er1
13888 grep -v '^ *+' conftest.er1 >conftest.err
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && {
13893 test -z "$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13895 } && test -s conftest$ac_exeext &&
13896 $as_test_x conftest$ac_exeext; then
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13906 conftest$ac_exeext conftest.$ac_ext
13909 if test x$support_ipv6 = xyes; then
13911 cat >>confdefs.h <<\_ACEOF
13912 #define HAVE_IPV6 1
13920 if test x$support_conio = xyes; then
13921 if test "${ac_cv_header_termcap_h+set}" = set; then
13922 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13923 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13924 if test "${ac_cv_header_termcap_h+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13928 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13930 # Is the header compilable?
13931 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13932 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13933 cat >conftest.$ac_ext <<_ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 $ac_includes_default
13940 #include <termcap.h>
13942 rm -f conftest.$ac_objext
13943 if { (ac_try="$ac_compile"
13944 case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_compile") 2>conftest.er1
13951 grep -v '^ *+' conftest.er1 >conftest.err
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && {
13956 test -z "$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13958 } && test -s conftest.$ac_objext; then
13959 ac_header_compiler=yes
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13964 ac_header_compiler=no
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13969 echo "${ECHO_T}$ac_header_compiler" >&6; }
13971 # Is the header present?
13972 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13973 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 #include <termcap.h>
13982 if { (ac_try="$ac_cpp conftest.$ac_ext"
13983 case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13990 grep -v '^ *+' conftest.er1 >conftest.err
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } >/dev/null && {
13995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13996 test ! -s conftest.err
13998 ac_header_preproc=yes
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ac_header_preproc=no
14006 rm -f conftest.err conftest.$ac_ext
14007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14008 echo "${ECHO_T}$ac_header_preproc" >&6; }
14010 # So? What about this header?
14011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14013 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14014 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14016 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14017 ac_header_preproc=yes
14020 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14021 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14023 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14025 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14027 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14029 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14031 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14035 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14036 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14037 if test "${ac_cv_header_termcap_h+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 ac_cv_header_termcap_h=$ac_header_preproc
14042 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14043 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14046 if test $ac_cv_header_termcap_h = yes; then
14047 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14048 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14049 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 ac_check_lib_save_LIBS=$LIBS
14053 LIBS="-ltermcap $LIBS"
14054 cat >conftest.$ac_ext <<_ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14061 /* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply. */
14076 rm -f conftest.$ac_objext conftest$ac_exeext
14077 if { (ac_try="$ac_link"
14078 case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_link") 2>conftest.er1
14085 grep -v '^ *+' conftest.er1 >conftest.err
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } && {
14090 test -z "$ac_c_werror_flag" ||
14091 test ! -s conftest.err
14092 } && test -s conftest$ac_exeext &&
14093 $as_test_x conftest$ac_exeext; then
14094 ac_cv_lib_termcap_tgetent=yes
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14099 ac_cv_lib_termcap_tgetent=no
14102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14103 conftest$ac_exeext conftest.$ac_ext
14104 LIBS=$ac_check_lib_save_LIBS
14106 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14107 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14108 if test $ac_cv_lib_termcap_tgetent = yes; then
14109 CONS_LIBS="-ltermcap"
14113 support_readline=no
14115 cat >>confdefs.h <<\_ACEOF
14116 #define HAVE_CONIO 1
14121 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14122 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14123 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 ac_check_lib_save_LIBS=$LIBS
14127 LIBS="-lncurses $LIBS"
14128 cat >conftest.$ac_ext <<_ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14135 /* Override any GCC internal prototype to avoid an error.
14136 Use char because int might match the return type of a GCC
14137 builtin and then its argument prototype would still apply. */
14150 rm -f conftest.$ac_objext conftest$ac_exeext
14151 if { (ac_try="$ac_link"
14152 case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_link") 2>conftest.er1
14159 grep -v '^ *+' conftest.er1 >conftest.err
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } && {
14164 test -z "$ac_c_werror_flag" ||
14165 test ! -s conftest.err
14166 } && test -s conftest$ac_exeext &&
14167 $as_test_x conftest$ac_exeext; then
14168 ac_cv_lib_ncurses_tgetent=yes
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14173 ac_cv_lib_ncurses_tgetent=no
14176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14177 conftest$ac_exeext conftest.$ac_ext
14178 LIBS=$ac_check_lib_save_LIBS
14180 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14181 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14182 if test $ac_cv_lib_ncurses_tgetent = yes; then
14183 CONS_LIBS="-lncurses"
14187 support_readline=no
14189 cat >>confdefs.h <<\_ACEOF
14190 #define HAVE_CONIO 1
14203 for ac_header in curses.h
14205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 ac_res=`eval echo '${'$as_ac_Header'}'`
14213 { echo "$as_me:$LINENO: result: $ac_res" >&5
14214 echo "${ECHO_T}$ac_res" >&6; }
14216 # Is the header compilable?
14217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14219 cat >conftest.$ac_ext <<_ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 $ac_includes_default
14226 #include <$ac_header>
14228 rm -f conftest.$ac_objext
14229 if { (ac_try="$ac_compile"
14230 case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_compile") 2>conftest.er1
14237 grep -v '^ *+' conftest.er1 >conftest.err
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } && {
14242 test -z "$ac_c_werror_flag" ||
14243 test ! -s conftest.err
14244 } && test -s conftest.$ac_objext; then
14245 ac_header_compiler=yes
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14250 ac_header_compiler=no
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14255 echo "${ECHO_T}$ac_header_compiler" >&6; }
14257 # Is the header present?
14258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14260 cat >conftest.$ac_ext <<_ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 #include <$ac_header>
14268 if { (ac_try="$ac_cpp conftest.$ac_ext"
14269 case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14276 grep -v '^ *+' conftest.er1 >conftest.err
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } >/dev/null && {
14281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14282 test ! -s conftest.err
14284 ac_header_preproc=yes
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14289 ac_header_preproc=no
14292 rm -f conftest.err conftest.$ac_ext
14293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14294 echo "${ECHO_T}$ac_header_preproc" >&6; }
14296 # So? What about this header?
14297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14303 ac_header_preproc=yes
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 eval "$as_ac_Header=\$ac_header_preproc"
14328 ac_res=`eval echo '${'$as_ac_Header'}'`
14329 { echo "$as_me:$LINENO: result: $ac_res" >&5
14330 echo "${ECHO_T}$ac_res" >&6; }
14333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14334 cat >>confdefs.h <<_ACEOF
14335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14342 { echo "$as_me:$LINENO: checking for term.h" >&5
14343 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14344 if test "${ac_cv_header_term_h+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 #include <curses.h>
14360 rm -f conftest.$ac_objext
14361 if { (ac_try="$ac_compile"
14362 case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_compile") 2>conftest.er1
14369 grep -v '^ *+' conftest.er1 >conftest.err
14371 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } && {
14374 test -z "$ac_c_werror_flag" ||
14375 test ! -s conftest.err
14376 } && test -s conftest.$ac_objext; then
14377 ac_cv_header_term_h=yes
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_cv_header_term_h=no
14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14387 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14388 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14389 if test $ac_cv_header_term_h = yes; then
14390 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14391 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14392 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 ac_check_lib_save_LIBS=$LIBS
14396 LIBS="-lcurses $LIBS"
14397 cat >conftest.$ac_ext <<_ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14404 /* Override any GCC internal prototype to avoid an error.
14405 Use char because int might match the return type of a GCC
14406 builtin and then its argument prototype would still apply. */
14419 rm -f conftest.$ac_objext conftest$ac_exeext
14420 if { (ac_try="$ac_link"
14421 case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_link") 2>conftest.er1
14428 grep -v '^ *+' conftest.er1 >conftest.err
14430 cat conftest.err >&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } && {
14433 test -z "$ac_c_werror_flag" ||
14434 test ! -s conftest.err
14435 } && test -s conftest$ac_exeext &&
14436 $as_test_x conftest$ac_exeext; then
14437 ac_cv_lib_curses_tgetent=yes
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14442 ac_cv_lib_curses_tgetent=no
14445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14446 conftest$ac_exeext conftest.$ac_ext
14447 LIBS=$ac_check_lib_save_LIBS
14449 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14450 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14451 if test $ac_cv_lib_curses_tgetent = yes; then
14452 CONS_LIBS="-lcurses"
14456 support_readline=no
14458 cat >>confdefs.h <<\_ACEOF
14459 #define HAVE_CONIO 1
14467 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14478 # ---------------------------------------------------
14479 # Check for readline support/directory (default off)
14480 # ---------------------------------------------------
14481 # this allows you to turn it completely off
14482 # Check whether --enable-readline was given.
14483 if test "${enable_readline+set}" = set; then
14484 enableval=$enable_readline; if test x$enableval = xno; then
14485 support_readline=no
14492 if test x$support_readline = xyes; then
14494 # Check whether --with-readline was given.
14495 if test "${with_readline+set}" = set; then
14496 withval=$with_readline;
14497 case "$with_readline" in
14500 if test -f ${with_readline}/readline.h; then
14501 CONS_INC="-I${with_readline}"
14502 CONS_LDFLAGS="-L$with_readline"
14503 elif test -f ${with_readline}/include/readline/readline.h; then
14504 CONS_INC="-I${with_readline}/include/readline"
14505 CONS_LDFLAGS="-L${with_readline}/lib"
14506 with_readline="${with_readline}/include/readline"
14508 with_readline="/usr/include/readline"
14510 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14512 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14513 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 ac_res=`eval echo '${'$as_ac_Header'}'`
14518 { echo "$as_me:$LINENO: result: $ac_res" >&5
14519 echo "${ECHO_T}$ac_res" >&6; }
14521 # Is the header compilable?
14522 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14523 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14524 cat >conftest.$ac_ext <<_ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 $ac_includes_default
14531 #include <${with_readline}/readline.h>
14533 rm -f conftest.$ac_objext
14534 if { (ac_try="$ac_compile"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_compile") 2>conftest.er1
14542 grep -v '^ *+' conftest.er1 >conftest.err
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } && {
14547 test -z "$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 } && test -s conftest.$ac_objext; then
14550 ac_header_compiler=yes
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 ac_header_compiler=no
14558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14560 echo "${ECHO_T}$ac_header_compiler" >&6; }
14562 # Is the header present?
14563 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14564 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14565 cat >conftest.$ac_ext <<_ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 #include <${with_readline}/readline.h>
14573 if { (ac_try="$ac_cpp conftest.$ac_ext"
14574 case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14581 grep -v '^ *+' conftest.er1 >conftest.err
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } >/dev/null && {
14586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14587 test ! -s conftest.err
14589 ac_header_preproc=yes
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 ac_header_preproc=no
14597 rm -f conftest.err conftest.$ac_ext
14598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14599 echo "${ECHO_T}$ac_header_preproc" >&6; }
14601 # So? What about this header?
14602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14604 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14605 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14607 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14608 ac_header_preproc=yes
14611 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14612 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14614 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14616 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14618 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14620 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14621 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14622 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14626 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14627 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 eval "$as_ac_Header=\$ac_header_preproc"
14633 ac_res=`eval echo '${'$as_ac_Header'}'`
14634 { echo "$as_me:$LINENO: result: $ac_res" >&5
14635 echo "${ECHO_T}$ac_res" >&6; }
14638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14640 cat >>confdefs.h <<\_ACEOF
14641 #define HAVE_READLINE 1
14644 CONS_LIBS="-lreadline -lhistory -ltermcap"
14649 echo "readline.h not found. readline turned off ..."
14661 # check for standard readline library
14662 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14663 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14664 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14665 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14669 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14671 # Is the header compilable?
14672 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14673 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14674 cat >conftest.$ac_ext <<_ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 $ac_includes_default
14681 #include </usr/include/readline/readline.h>
14683 rm -f conftest.$ac_objext
14684 if { (ac_try="$ac_compile"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_compile") 2>conftest.er1
14692 grep -v '^ *+' conftest.er1 >conftest.err
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } && {
14697 test -z "$ac_c_werror_flag" ||
14698 test ! -s conftest.err
14699 } && test -s conftest.$ac_objext; then
14700 ac_header_compiler=yes
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ac_header_compiler=no
14708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14710 echo "${ECHO_T}$ac_header_compiler" >&6; }
14712 # Is the header present?
14713 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14714 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14715 cat >conftest.$ac_ext <<_ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h. */
14721 #include </usr/include/readline/readline.h>
14723 if { (ac_try="$ac_cpp conftest.$ac_ext"
14724 case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14731 grep -v '^ *+' conftest.er1 >conftest.err
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } >/dev/null && {
14736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14737 test ! -s conftest.err
14739 ac_header_preproc=yes
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ac_header_preproc=no
14747 rm -f conftest.err conftest.$ac_ext
14748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14749 echo "${ECHO_T}$ac_header_preproc" >&6; }
14751 # So? What about this header?
14752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14754 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14755 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14757 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14758 ac_header_preproc=yes
14761 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14762 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14764 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14766 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14768 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14770 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14772 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14776 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14777 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14778 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14783 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14784 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14787 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14789 cat >>confdefs.h <<\_ACEOF
14790 #define HAVE_READLINE 1
14794 CONS_INC="-I/usr/include/readline"
14795 CONS_LIBS="-lreadline -ltermcap"
14799 # Did not find standard library, so try Bacula's default
14800 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14802 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14803 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 ac_res=`eval echo '${'$as_ac_Header'}'`
14808 { echo "$as_me:$LINENO: result: $ac_res" >&5
14809 echo "${ECHO_T}$ac_res" >&6; }
14811 # Is the header compilable?
14812 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14813 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14814 cat >conftest.$ac_ext <<_ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14820 $ac_includes_default
14821 #include <${TOP_DIR}/depkgs/readline/readline.h>
14823 rm -f conftest.$ac_objext
14824 if { (ac_try="$ac_compile"
14825 case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_compile") 2>conftest.er1
14832 grep -v '^ *+' conftest.er1 >conftest.err
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } && {
14837 test -z "$ac_c_werror_flag" ||
14838 test ! -s conftest.err
14839 } && test -s conftest.$ac_objext; then
14840 ac_header_compiler=yes
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14845 ac_header_compiler=no
14848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14850 echo "${ECHO_T}$ac_header_compiler" >&6; }
14852 # Is the header present?
14853 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14854 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14855 cat >conftest.$ac_ext <<_ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 #include <${TOP_DIR}/depkgs/readline/readline.h>
14863 if { (ac_try="$ac_cpp conftest.$ac_ext"
14864 case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14871 grep -v '^ *+' conftest.er1 >conftest.err
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } >/dev/null && {
14876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14877 test ! -s conftest.err
14879 ac_header_preproc=yes
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 ac_header_preproc=no
14887 rm -f conftest.err conftest.$ac_ext
14888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14889 echo "${ECHO_T}$ac_header_preproc" >&6; }
14891 # So? What about this header?
14892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14894 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14895 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14897 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14898 ac_header_preproc=yes
14901 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14902 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14904 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14906 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14908 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14910 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14912 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14916 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14917 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 eval "$as_ac_Header=\$ac_header_preproc"
14923 ac_res=`eval echo '${'$as_ac_Header'}'`
14924 { echo "$as_me:$LINENO: result: $ac_res" >&5
14925 echo "${ECHO_T}$ac_res" >&6; }
14928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14930 cat >>confdefs.h <<\_ACEOF
14931 #define HAVE_READLINE 1
14935 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14936 CONS_LIBS="-lreadline -lhistory -ltermcap"
14937 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14938 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14942 echo "readline.h not found. readline turned off ..."
14969 # Minimal stuff for readline Makefile configuration
14972 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14973 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14974 if test "${ac_cv_header_stat_broken+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 cat >conftest.$ac_ext <<_ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 #include <sys/types.h>
14984 #include <sys/stat.h>
14986 #if defined S_ISBLK && defined S_IFDIR
14987 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14990 #if defined S_ISBLK && defined S_IFCHR
14991 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14994 #if defined S_ISLNK && defined S_IFREG
14995 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14998 #if defined S_ISSOCK && defined S_IFREG
14999 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15003 rm -f conftest.$ac_objext
15004 if { (ac_try="$ac_compile"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_compile") 2>conftest.er1
15012 grep -v '^ *+' conftest.er1 >conftest.err
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } && {
15017 test -z "$ac_c_werror_flag" ||
15018 test ! -s conftest.err
15019 } && test -s conftest.$ac_objext; then
15020 ac_cv_header_stat_broken=no
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15025 ac_cv_header_stat_broken=yes
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15031 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15032 if test $ac_cv_header_stat_broken = yes; then
15034 cat >>confdefs.h <<\_ACEOF
15035 #define STAT_MACROS_BROKEN 1
15045 ac_header_dirent=no
15046 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15047 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15048 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15049 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15053 cat >conftest.$ac_ext <<_ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15059 #include <sys/types.h>
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_compile") 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } && {
15085 test -z "$ac_c_werror_flag" ||
15086 test ! -s conftest.err
15087 } && test -s conftest.$ac_objext; then
15088 eval "$as_ac_Header=yes"
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 eval "$as_ac_Header=no"
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 ac_res=`eval echo '${'$as_ac_Header'}'`
15099 { echo "$as_me:$LINENO: result: $ac_res" >&5
15100 echo "${ECHO_T}$ac_res" >&6; }
15101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15106 ac_header_dirent=$ac_hdr; break
15110 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15111 if test $ac_header_dirent = dirent.h; then
15112 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15113 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15114 if test "${ac_cv_search_opendir+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 ac_func_search_save_LIBS=$LIBS
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15125 /* Override any GCC internal prototype to avoid an error.
15126 Use char because int might match the return type of a GCC
15127 builtin and then its argument prototype would still apply. */
15140 for ac_lib in '' dir; do
15141 if test -z "$ac_lib"; then
15142 ac_res="none required"
15145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (ac_try="$ac_link"
15149 case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_link") 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext &&
15164 $as_test_x conftest$ac_exeext; then
15165 ac_cv_search_opendir=$ac_res
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15175 if test "${ac_cv_search_opendir+set}" = set; then
15179 if test "${ac_cv_search_opendir+set}" = set; then
15182 ac_cv_search_opendir=no
15184 rm conftest.$ac_ext
15185 LIBS=$ac_func_search_save_LIBS
15187 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15188 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15189 ac_res=$ac_cv_search_opendir
15190 if test "$ac_res" != no; then
15191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15196 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15197 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15198 if test "${ac_cv_search_opendir+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 ac_func_search_save_LIBS=$LIBS
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15209 /* Override any GCC internal prototype to avoid an error.
15210 Use char because int might match the return type of a GCC
15211 builtin and then its argument prototype would still apply. */
15224 for ac_lib in '' x; do
15225 if test -z "$ac_lib"; then
15226 ac_res="none required"
15229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15231 rm -f conftest.$ac_objext conftest$ac_exeext
15232 if { (ac_try="$ac_link"
15233 case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_link") 2>conftest.er1
15240 grep -v '^ *+' conftest.er1 >conftest.err
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && {
15245 test -z "$ac_c_werror_flag" ||
15246 test ! -s conftest.err
15247 } && test -s conftest$ac_exeext &&
15248 $as_test_x conftest$ac_exeext; then
15249 ac_cv_search_opendir=$ac_res
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15259 if test "${ac_cv_search_opendir+set}" = set; then
15263 if test "${ac_cv_search_opendir+set}" = set; then
15266 ac_cv_search_opendir=no
15268 rm conftest.$ac_ext
15269 LIBS=$ac_func_search_save_LIBS
15271 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15272 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15273 ac_res=$ac_cv_search_opendir
15274 if test "$ac_res" != no; then
15275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15288 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15304 #define $ac_func innocuous_$ac_func
15306 /* System header to define __stub macros and hopefully few prototypes,
15307 which can conflict with char $ac_func (); below.
15308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15309 <limits.h> exists even on freestanding compilers. */
15312 # include <limits.h>
15314 # include <assert.h>
15319 /* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply. */
15326 /* The GNU C library defines this for functions which it implements
15327 to always fail with ENOSYS. Some functions are actually named
15328 something starting with __ and the normal name is an alias. */
15329 #if defined __stub_$ac_func || defined __stub___$ac_func
15336 return $ac_func ();
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (ac_try="$ac_link"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_link") 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext &&
15358 $as_test_x conftest$ac_exeext; then
15359 eval "$as_ac_var=yes"
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 eval "$as_ac_var=no"
15367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15368 conftest$ac_exeext conftest.$ac_ext
15370 ac_res=`eval echo '${'$as_ac_var'}'`
15371 { echo "$as_me:$LINENO: result: $ac_res" >&5
15372 echo "${ECHO_T}$ac_res" >&6; }
15373 if test `eval echo '${'$as_ac_var'}'` = yes; then
15374 cat >>confdefs.h <<_ACEOF
15375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15383 for ac_func in nanosleep nl_langinfo
15385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 cat >conftest.$ac_ext <<_ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15399 #define $ac_func innocuous_$ac_func
15401 /* System header to define __stub macros and hopefully few prototypes,
15402 which can conflict with char $ac_func (); below.
15403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15404 <limits.h> exists even on freestanding compilers. */
15407 # include <limits.h>
15409 # include <assert.h>
15414 /* Override any GCC internal prototype to avoid an error.
15415 Use char because int might match the return type of a GCC
15416 builtin and then its argument prototype would still apply. */
15421 /* The GNU C library defines this for functions which it implements
15422 to always fail with ENOSYS. Some functions are actually named
15423 something starting with __ and the normal name is an alias. */
15424 #if defined __stub_$ac_func || defined __stub___$ac_func
15431 return $ac_func ();
15436 rm -f conftest.$ac_objext conftest$ac_exeext
15437 if { (ac_try="$ac_link"
15438 case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_link") 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } && {
15450 test -z "$ac_c_werror_flag" ||
15451 test ! -s conftest.err
15452 } && test -s conftest$ac_exeext &&
15453 $as_test_x conftest$ac_exeext; then
15454 eval "$as_ac_var=yes"
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 eval "$as_ac_var=no"
15462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15463 conftest$ac_exeext conftest.$ac_ext
15465 ac_res=`eval echo '${'$as_ac_var'}'`
15466 { echo "$as_me:$LINENO: result: $ac_res" >&5
15467 echo "${ECHO_T}$ac_res" >&6; }
15468 if test `eval echo '${'$as_ac_var'}'` = yes; then
15469 cat >>confdefs.h <<_ACEOF
15470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15477 for ac_header in varargs.h
15479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 ac_res=`eval echo '${'$as_ac_Header'}'`
15487 { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15490 # Is the header compilable?
15491 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15493 cat >conftest.$ac_ext <<_ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 $ac_includes_default
15500 #include <$ac_header>
15502 rm -f conftest.$ac_objext
15503 if { (ac_try="$ac_compile"
15504 case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_compile") 2>conftest.er1
15511 grep -v '^ *+' conftest.er1 >conftest.err
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } && {
15516 test -z "$ac_c_werror_flag" ||
15517 test ! -s conftest.err
15518 } && test -s conftest.$ac_objext; then
15519 ac_header_compiler=yes
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ac_header_compiler=no
15527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15529 echo "${ECHO_T}$ac_header_compiler" >&6; }
15531 # Is the header present?
15532 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540 #include <$ac_header>
15542 if { (ac_try="$ac_cpp conftest.$ac_ext"
15543 case "(($ac_try" in
15544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545 *) ac_try_echo=$ac_try;;
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15550 grep -v '^ *+' conftest.er1 >conftest.err
15552 cat conftest.err >&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } >/dev/null && {
15555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15556 test ! -s conftest.err
15558 ac_header_preproc=yes
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 ac_header_preproc=no
15566 rm -f conftest.err conftest.$ac_ext
15567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15568 echo "${ECHO_T}$ac_header_preproc" >&6; }
15570 # So? What about this header?
15571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15577 ac_header_preproc=yes
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 eval "$as_ac_Header=\$ac_header_preproc"
15602 ac_res=`eval echo '${'$as_ac_Header'}'`
15603 { echo "$as_me:$LINENO: result: $ac_res" >&5
15604 echo "${ECHO_T}$ac_res" >&6; }
15607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15608 cat >>confdefs.h <<_ACEOF
15609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15617 # End of readline/conio stuff
15618 # -----------------------------------------------------------------------
15620 # -----------------------------------------------------------------------
15621 # Check for Python support
15623 { echo "$as_me:$LINENO: checking for Python support" >&5
15624 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15626 # Check whether --with-python was given.
15627 if test "${with_python+set}" = set; then
15628 withval=$with_python;
15631 if test "$withval" != "no"; then
15632 if test "$withval" = "yes"; then
15633 for python_root in /usr /usr/local /usr/sfw; do
15634 for ver in python2.2 python2.3 python2.4 python2.5; do
15635 if test -f $python_root/include/${ver}/Python.h; then
15636 PYTHON_INCDIR=-I$python_root/include/${ver}
15637 if test -d $python_root/lib64/${ver}/config; then
15638 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15640 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15646 if test x$PYTHON_INCDIR = x; then
15647 if test -f $prefix/include/Python.h; then
15648 PYTHON_INCDIR=-I$prefix/include
15649 if test -d $prefix/lib64/config; then
15650 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15652 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15655 { echo "$as_me:$LINENO: result: no" >&5
15656 echo "${ECHO_T}no" >&6; }
15657 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15658 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15659 { (exit 1); exit 1; }; }
15663 if test -f $withval/Python.h; then
15664 PYTHON_INCDIR=-I$withval
15665 PYTHON_LIBS="-L$withval/config -lpython"
15666 elif test -f $withval/include/Python.h; then
15667 PYTHON_INCDIR=-I$withval/include
15668 if test -d $withval/lib64/config; then
15669 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15671 PYTHON_LIBS="-L$withval/lib/config -lpython"
15673 elif test -f $withval/include/python/Python.h; then
15674 PYTHON_INCDIR=-I$withval/include/python
15675 if test -d $withval/lib64/python/config; then
15676 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15678 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15681 { echo "$as_me:$LINENO: result: no" >&5
15682 echo "${ECHO_T}no" >&6; }
15683 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15684 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15685 { (exit 1); exit 1; }; }
15688 cat >>confdefs.h <<\_ACEOF
15689 #define HAVE_PYTHON 1
15692 { echo "$as_me:$LINENO: result: yes" >&5
15693 echo "${ECHO_T}yes" >&6; }
15695 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15696 echo "$as_me: checking for more Python libs" >&6;}
15697 saved_LIBS="$LIBS"; LIBS=
15698 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15699 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15700 if test "${ac_cv_search_shm_open+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 ac_func_search_save_LIBS=$LIBS
15704 cat >conftest.$ac_ext <<_ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15711 /* Override any GCC internal prototype to avoid an error.
15712 Use char because int might match the return type of a GCC
15713 builtin and then its argument prototype would still apply. */
15721 return shm_open ();
15726 for ac_lib in '' rt; do
15727 if test -z "$ac_lib"; then
15728 ac_res="none required"
15731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15733 rm -f conftest.$ac_objext conftest$ac_exeext
15734 if { (ac_try="$ac_link"
15735 case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_link") 2>conftest.er1
15742 grep -v '^ *+' conftest.er1 >conftest.err
15744 cat conftest.err >&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } && {
15747 test -z "$ac_c_werror_flag" ||
15748 test ! -s conftest.err
15749 } && test -s conftest$ac_exeext &&
15750 $as_test_x conftest$ac_exeext; then
15751 ac_cv_search_shm_open=$ac_res
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15761 if test "${ac_cv_search_shm_open+set}" = set; then
15765 if test "${ac_cv_search_shm_open+set}" = set; then
15768 ac_cv_search_shm_open=no
15770 rm conftest.$ac_ext
15771 LIBS=$ac_func_search_save_LIBS
15773 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15774 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15775 ac_res=$ac_cv_search_shm_open
15776 if test "$ac_res" != no; then
15777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15782 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15783 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15784 if test "${ac_cv_lib_util_openpty+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 ac_check_lib_save_LIBS=$LIBS
15788 LIBS="-lutil $LIBS"
15789 cat >conftest.$ac_ext <<_ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15796 /* Override any GCC internal prototype to avoid an error.
15797 Use char because int might match the return type of a GCC
15798 builtin and then its argument prototype would still apply. */
15811 rm -f conftest.$ac_objext conftest$ac_exeext
15812 if { (ac_try="$ac_link"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_link") 2>conftest.er1
15820 grep -v '^ *+' conftest.er1 >conftest.err
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } && {
15825 test -z "$ac_c_werror_flag" ||
15826 test ! -s conftest.err
15827 } && test -s conftest$ac_exeext &&
15828 $as_test_x conftest$ac_exeext; then
15829 ac_cv_lib_util_openpty=yes
15831 echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15834 ac_cv_lib_util_openpty=no
15837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15838 conftest$ac_exeext conftest.$ac_ext
15839 LIBS=$ac_check_lib_save_LIBS
15841 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15842 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15843 if test $ac_cv_lib_util_openpty = yes; then
15844 cat >>confdefs.h <<_ACEOF
15845 #define HAVE_LIBUTIL 1
15848 LIBS="-lutil $LIBS"
15852 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15855 { echo "$as_me:$LINENO: result: no" >&5
15856 echo "${ECHO_T}no" >&6; }
15861 { echo "$as_me:$LINENO: result: no" >&5
15862 echo "${ECHO_T}no" >&6; }
15870 # Find where sockets are (especially for Solaris)
15871 # Do this before the TCP Wrappers test since tcp wrappers
15872 # uses the socket library and some linkers are stupid.
15874 { echo "$as_me:$LINENO: checking for socket" >&5
15875 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15876 if test "${ac_cv_func_socket+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15887 #define socket innocuous_socket
15889 /* System header to define __stub macros and hopefully few prototypes,
15890 which can conflict with char socket (); below.
15891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15892 <limits.h> exists even on freestanding compilers. */
15895 # include <limits.h>
15897 # include <assert.h>
15902 /* Override any GCC internal prototype to avoid an error.
15903 Use char because int might match the return type of a GCC
15904 builtin and then its argument prototype would still apply. */
15909 /* The GNU C library defines this for functions which it implements
15910 to always fail with ENOSYS. Some functions are actually named
15911 something starting with __ and the normal name is an alias. */
15912 #if defined __stub_socket || defined __stub___socket
15924 rm -f conftest.$ac_objext conftest$ac_exeext
15925 if { (ac_try="$ac_link"
15926 case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_link") 2>conftest.er1
15933 grep -v '^ *+' conftest.er1 >conftest.err
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest$ac_exeext &&
15941 $as_test_x conftest$ac_exeext; then
15942 ac_cv_func_socket=yes
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 ac_cv_func_socket=no
15950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15951 conftest$ac_exeext conftest.$ac_ext
15953 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15954 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15955 if test $ac_cv_func_socket = yes; then
15956 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15957 echo "${ECHO_T}using libc's socket" >&6; }
15960 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15961 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15962 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 ac_check_lib_save_LIBS=$LIBS
15966 LIBS="-lxnet $LIBS"
15967 cat >conftest.$ac_ext <<_ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15974 /* Override any GCC internal prototype to avoid an error.
15975 Use char because int might match the return type of a GCC
15976 builtin and then its argument prototype would still apply. */
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (ac_try="$ac_link"
15991 case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_link") 2>conftest.er1
15998 grep -v '^ *+' conftest.er1 >conftest.err
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } && {
16003 test -z "$ac_c_werror_flag" ||
16004 test ! -s conftest.err
16005 } && test -s conftest$ac_exeext &&
16006 $as_test_x conftest$ac_exeext; then
16007 ac_cv_lib_xnet_socket=yes
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_cv_lib_xnet_socket=no
16015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16016 conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16019 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16020 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16021 if test $ac_cv_lib_xnet_socket = yes; then
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_LIBXNET 1
16026 LIBS="-lxnet $LIBS"
16031 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16032 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16033 if test "${ac_cv_lib_socket_socket+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 ac_check_lib_save_LIBS=$LIBS
16037 LIBS="-lsocket $LIBS"
16038 cat >conftest.$ac_ext <<_ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16045 /* Override any GCC internal prototype to avoid an error.
16046 Use char because int might match the return type of a GCC
16047 builtin and then its argument prototype would still apply. */
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_link") 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } && {
16074 test -z "$ac_c_werror_flag" ||
16075 test ! -s conftest.err
16076 } && test -s conftest$ac_exeext &&
16077 $as_test_x conftest$ac_exeext; then
16078 ac_cv_lib_socket_socket=yes
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16083 ac_cv_lib_socket_socket=no
16086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16087 conftest$ac_exeext conftest.$ac_ext
16088 LIBS=$ac_check_lib_save_LIBS
16090 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16091 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16092 if test $ac_cv_lib_socket_socket = yes; then
16093 cat >>confdefs.h <<_ACEOF
16094 #define HAVE_LIBSOCKET 1
16097 LIBS="-lsocket $LIBS"
16102 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16103 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16104 if test "${ac_cv_lib_inet_socket+set}" = set; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 ac_check_lib_save_LIBS=$LIBS
16108 LIBS="-linet $LIBS"
16109 cat >conftest.$ac_ext <<_ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16116 /* Override any GCC internal prototype to avoid an error.
16117 Use char because int might match the return type of a GCC
16118 builtin and then its argument prototype would still apply. */
16131 rm -f conftest.$ac_objext conftest$ac_exeext
16132 if { (ac_try="$ac_link"
16133 case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_link") 2>conftest.er1
16140 grep -v '^ *+' conftest.er1 >conftest.err
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } && {
16145 test -z "$ac_c_werror_flag" ||
16146 test ! -s conftest.err
16147 } && test -s conftest$ac_exeext &&
16148 $as_test_x conftest$ac_exeext; then
16149 ac_cv_lib_inet_socket=yes
16151 echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16154 ac_cv_lib_inet_socket=no
16157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16158 conftest$ac_exeext conftest.$ac_ext
16159 LIBS=$ac_check_lib_save_LIBS
16161 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16162 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16163 if test $ac_cv_lib_inet_socket = yes; then
16164 cat >>confdefs.h <<_ACEOF
16165 #define HAVE_LIBINET 1
16168 LIBS="-linet $LIBS"
16176 # -----------------------------------------------------------
16177 # Check whether user wants TCP wrappers support (default off)
16178 # -----------------------------------------------------------
16182 # Check whether --with-tcp-wrappers was given.
16183 if test "${with_tcp_wrappers+set}" = set; then
16184 withval=$with_tcp_wrappers;
16185 if test "x$withval" != "xno" ; then
16187 LIBS="$saved_LIBS -lwrap"
16188 { echo "$as_me:$LINENO: checking for libwrap" >&5
16189 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16190 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16191 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16192 if test "${ac_cv_search_nanosleep+set}" = set; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16195 ac_func_search_save_LIBS=$LIBS
16196 cat >conftest.$ac_ext <<_ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16203 /* Override any GCC internal prototype to avoid an error.
16204 Use char because int might match the return type of a GCC
16205 builtin and then its argument prototype would still apply. */
16213 return nanosleep ();
16218 for ac_lib in '' rt; do
16219 if test -z "$ac_lib"; then
16220 ac_res="none required"
16223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16225 rm -f conftest.$ac_objext conftest$ac_exeext
16226 if { (ac_try="$ac_link"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_link") 2>conftest.er1
16234 grep -v '^ *+' conftest.er1 >conftest.err
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } && {
16239 test -z "$ac_c_werror_flag" ||
16240 test ! -s conftest.err
16241 } && test -s conftest$ac_exeext &&
16242 $as_test_x conftest$ac_exeext; then
16243 ac_cv_search_nanosleep=$ac_res
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16253 if test "${ac_cv_search_nanosleep+set}" = set; then
16257 if test "${ac_cv_search_nanosleep+set}" = set; then
16260 ac_cv_search_nanosleep=no
16262 rm conftest.$ac_ext
16263 LIBS=$ac_func_search_save_LIBS
16265 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16266 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16267 ac_res=$ac_cv_search_nanosleep
16268 if test "$ac_res" != no; then
16269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16273 cat >conftest.$ac_ext <<_ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16279 #include <sys/types.h>
16281 int deny_severity = 0;
16282 int allow_severity = 0;
16283 struct request_info *req;
16292 rm -f conftest.$ac_objext conftest$ac_exeext
16293 if { (ac_try="$ac_link"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_link") 2>conftest.er1
16301 grep -v '^ *+' conftest.er1 >conftest.err
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } && {
16306 test -z "$ac_c_werror_flag" ||
16307 test ! -s conftest.err
16308 } && test -s conftest$ac_exeext &&
16309 $as_test_x conftest$ac_exeext; then
16311 { echo "$as_me:$LINENO: result: yes" >&5
16312 echo "${ECHO_T}yes" >&6; }
16314 cat >>confdefs.h <<\_ACEOF
16315 #define HAVE_LIBWRAP 1
16323 echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16327 LIBS="$saved_LIBS -lwrap -lnsl"
16328 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16329 cat >conftest.$ac_ext <<_ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16335 #include <sys/types.h>
16337 int deny_severity = 0;
16338 int allow_severity = 0;
16339 struct request_info *req;
16348 rm -f conftest.$ac_objext conftest$ac_exeext
16349 if { (ac_try="$ac_link"
16350 case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_link") 2>conftest.er1
16357 grep -v '^ *+' conftest.er1 >conftest.err
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } && {
16362 test -z "$ac_c_werror_flag" ||
16363 test ! -s conftest.err
16364 } && test -s conftest$ac_exeext &&
16365 $as_test_x conftest$ac_exeext; then
16367 { echo "$as_me:$LINENO: result: yes" >&5
16368 echo "${ECHO_T}yes" >&6; }
16370 cat >>confdefs.h <<\_ACEOF
16371 #define HAVE_LIBWRAP 1
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16383 echo "$as_me: error: *** libwrap missing" >&2;}
16384 { (exit 1); exit 1; }; }
16388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16389 conftest$ac_exeext conftest.$ac_ext
16393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16394 conftest$ac_exeext conftest.$ac_ext
16401 # -----------------------------------------------------------
16402 # Check whether OpenSSL is available
16403 # -----------------------------------------------------------
16404 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16405 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16407 # Check whether --with-openssl was given.
16408 if test "${with_openssl+set}" = set; then
16409 withval=$with_openssl; with_openssl_directory=${withval}
16413 if test "x$with_openssl_directory" != "x"; then
16414 OPENSSL_LIBS="-lssl -lcrypto"
16417 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16418 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16419 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16422 saved_LIBS="${LIBS}"
16423 saved_CFLAGS="${CFLAGS}"
16424 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16425 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 #include <openssl/ssl.h>
16437 CRYPTO_set_id_callback(NULL);
16442 rm -f conftest.$ac_objext conftest$ac_exeext
16443 if { (ac_try="$ac_link"
16444 case "(($ac_try" in
16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446 *) ac_try_echo=$ac_try;;
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449 (eval "$ac_link") 2>conftest.er1
16451 grep -v '^ *+' conftest.er1 >conftest.err
16453 cat conftest.err >&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } && {
16456 test -z "$ac_c_werror_flag" ||
16457 test ! -s conftest.err
16458 } && test -s conftest$ac_exeext &&
16459 $as_test_x conftest$ac_exeext; then
16462 support_crypto="yes"
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16473 conftest$ac_exeext conftest.$ac_ext
16475 cat >conftest.$ac_ext <<_ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 #include <openssl/evp.h>
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (ac_try="$ac_link"
16492 case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_link") 2>conftest.er1
16499 grep -v '^ *+' conftest.er1 >conftest.err
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } && {
16504 test -z "$ac_c_werror_flag" ||
16505 test ! -s conftest.err
16506 } && test -s conftest$ac_exeext &&
16507 $as_test_x conftest$ac_exeext; then
16508 ac_cv_openssl_sha2="yes"
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 ac_cv_openssl_sha2="no"
16517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16518 conftest$ac_exeext conftest.$ac_ext
16520 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16521 # implementation, presumably for export reasons. If 192bit AES
16522 # is available, we assume that we're running with a 'non-export'
16524 cat >conftest.$ac_ext <<_ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16530 #include <openssl/evp.h>
16539 rm -f conftest.$ac_objext conftest$ac_exeext
16540 if { (ac_try="$ac_link"
16541 case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_link") 2>conftest.er1
16548 grep -v '^ *+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } && {
16553 test -z "$ac_c_werror_flag" ||
16554 test ! -s conftest.err
16555 } && test -s conftest$ac_exeext &&
16556 $as_test_x conftest$ac_exeext; then
16557 ac_cv_openssl_export="no"
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16562 ac_cv_openssl_export="yes"
16566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16567 conftest$ac_exeext conftest.$ac_ext
16569 LIBS="${saved_LIBS}"
16570 CFLAGS="${saved_CFLAGS}"
16572 if test "$support_tls" = "yes"; then
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_OPENSSL 1
16579 cat >>confdefs.h <<\_ACEOF
16584 cat >>confdefs.h <<\_ACEOF
16585 #define HAVE_CRYPTO 1
16590 if test "$ac_cv_openssl_sha2" = "yes"; then
16592 cat >>confdefs.h <<\_ACEOF
16593 #define HAVE_SHA2 1
16598 if test "$ac_cv_openssl_export" = "yes"; then
16600 cat >>confdefs.h <<\_ACEOF
16601 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16607 support_crypto="no"
16612 { echo "$as_me:$LINENO: result: $support_tls" >&5
16613 echo "${ECHO_T}$support_tls" >&6; }
16618 # -----------------------------------------------------------
16619 # dlopen is needed for plugins
16620 # -----------------------------------------------------------
16621 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16622 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16623 if test "${ac_cv_search_dlopen+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 ac_func_search_save_LIBS=$LIBS
16627 cat >conftest.$ac_ext <<_ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16634 /* Override any GCC internal prototype to avoid an error.
16635 Use char because int might match the return type of a GCC
16636 builtin and then its argument prototype would still apply. */
16649 for ac_lib in '' dl; do
16650 if test -z "$ac_lib"; then
16651 ac_res="none required"
16654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (ac_try="$ac_link"
16658 case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_link") 2>conftest.er1
16665 grep -v '^ *+' conftest.er1 >conftest.err
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } && {
16670 test -z "$ac_c_werror_flag" ||
16671 test ! -s conftest.err
16672 } && test -s conftest$ac_exeext &&
16673 $as_test_x conftest$ac_exeext; then
16674 ac_cv_search_dlopen=$ac_res
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16684 if test "${ac_cv_search_dlopen+set}" = set; then
16688 if test "${ac_cv_search_dlopen+set}" = set; then
16691 ac_cv_search_dlopen=no
16693 rm conftest.$ac_ext
16694 LIBS=$ac_func_search_save_LIBS
16696 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16697 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16698 ac_res=$ac_cv_search_dlopen
16699 if test "$ac_res" != no; then
16700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16705 # ------------------------------------------
16706 # Where to place working dir
16707 # ------------------------------------------
16708 working_dir=`eval echo ${prefix}/var/bacula/working`
16710 # Check whether --with-working-dir was given.
16711 if test "${with_working_dir+set}" = set; then
16712 withval=$with_working_dir;
16713 if test "x$withval" != "xno" ; then
16714 working_dir=$withval
16723 # ------------------------------------------------------------------
16724 # If the user has not set archivedir, we set our default as /tmp
16725 # ------------------------------------------------------------------
16728 # Check whether --with-archivedir was given.
16729 if test "${with_archivedir+set}" = set; then
16730 withval=$with_archivedir;
16731 if test "x$withval" != "xno" ; then
16732 archivedir=$withval
16743 # ------------------------------------------
16744 # Where to place scriptdir (script files)
16745 # ------------------------------------------
16746 scriptdir=`eval echo ${sysconfdir}`
16748 # Check whether --with-scriptdir was given.
16749 if test "${with_scriptdir+set}" = set; then
16750 withval=$with_scriptdir;
16751 if test "x$withval" != "xno" ; then
16762 # ------------------------------------------
16763 # Where to send dump email
16764 # ------------------------------------------
16765 dump_email=root@localhost
16767 # Check whether --with-dump-email was given.
16768 if test "${with_dump_email+set}" = set; then
16769 withval=$with_dump_email;
16770 if test "x$withval" != "xno" ; then
16771 dump_email=$withval
16780 # ------------------------------------------
16781 # Where to send job email
16782 # ------------------------------------------
16783 job_email=root@localhost
16785 # Check whether --with-job-email was given.
16786 if test "${with_job_email+set}" = set; then
16787 withval=$with_job_email;
16788 if test "x$withval" != "xno" ; then
16798 # ------------------------------------------
16799 # Where to find smtp host
16800 # ------------------------------------------
16801 smtp_host=localhost
16803 # Check whether --with-smtp_host was given.
16804 if test "${with_smtp_host+set}" = set; then
16805 withval=$with_smtp_host;
16806 if test "x$withval" != "xno" ; then
16817 # ------------------------------------
16818 # Where to place pid files
16819 # ------------------------------------
16822 # Check whether --with-pid-dir was given.
16823 if test "${with_pid_dir+set}" = set; then
16824 withval=$with_pid_dir;
16825 if test "x$withval" != "xno" ; then
16833 cat >>confdefs.h <<_ACEOF
16834 #define _PATH_BACULA_PIDDIR "$piddir"
16840 # ------------------------------------
16841 # Where to place subsys "lock file"
16842 # ------------------------------------
16843 subsysdir=/var/run/subsys
16844 if test -d /var/run/subsys; then
16845 subsysdir=/var/run/subsys
16846 elif test -d /var/lock/subsys; then
16847 subsysdir=/var/lock/subsys
16849 subsysdir=/var/run/subsys
16852 # Check whether --with-subsys-dir was given.
16853 if test "${with_subsys_dir+set}" = set; then
16854 withval=$with_subsys_dir;
16855 if test "x$withval" != "xno" ; then
16867 # ------------------------------------
16868 # Where to start assigning ports
16869 # ------------------------------------
16872 # Check whether --with-baseport was given.
16873 if test "${with_baseport+set}" = set; then
16874 withval=$with_baseport;
16875 if test "x$withval" != "xno" ; then
16884 dir_port=`expr $baseport`
16885 fd_port=`expr $baseport + 1`
16886 sd_port=`expr $fd_port + 1`
16893 # ------------------------------------------
16894 # Generate passwords
16895 # ------------------------------------------
16898 # Check whether --with-dir-password was given.
16899 if test "${with_dir_password+set}" = set; then
16900 withval=$with_dir_password;
16901 if test "x$withval" != "xno" ; then
16902 dir_password=$withval
16909 if test "x$dir_password" = "x" ; then
16910 if test "x$OPENSSL" = "xnone" ; then
16911 key=`autoconf/randpass 33`
16913 key=`openssl rand -base64 33`
16920 # Check whether --with-fd-password was given.
16921 if test "${with_fd_password+set}" = set; then
16922 withval=$with_fd_password;
16923 if test "x$withval" != "xno" ; then
16924 fd_password=$withval
16931 if test "x$fd_password" = "x" ; then
16932 if test "x$OPENSSL" = "xnone" ; then
16933 key=`autoconf/randpass 37`
16935 key=`openssl rand -base64 33`
16942 # Check whether --with-sd-password was given.
16943 if test "${with_sd_password+set}" = set; then
16944 withval=$with_sd_password;
16945 if test "x$withval" != "xno" ; then
16946 sd_password=$withval
16953 if test "x$sd_password" = "x" ; then
16954 if test "x$OPENSSL" = "xnone" ; then
16955 key=`autoconf/randpass 41`
16957 key=`openssl rand -base64 33`
16964 # Check whether --with-mon-dir-password was given.
16965 if test "${with_mon_dir_password+set}" = set; then
16966 withval=$with_mon_dir_password;
16967 if test "x$withval" != "xno" ; then
16968 mon_dir_password=$withval
16975 if test "x$mon_dir_password" = "x" ; then
16976 if test "x$OPENSSL" = "xnone" ; then
16977 key=`autoconf/randpass 33`
16979 key=`openssl rand -base64 33`
16981 mon_dir_password=$key
16986 # Check whether --with-mon-fd-password was given.
16987 if test "${with_mon_fd_password+set}" = set; then
16988 withval=$with_mon_fd_password;
16989 if test "x$withval" != "xno" ; then
16990 mon_fd_password=$withval
16997 if test "x$mon_fd_password" = "x" ; then
16998 if test "x$OPENSSL" = "xnone" ; then
16999 key=`autoconf/randpass 37`
17001 key=`openssl rand -base64 33`
17003 mon_fd_password=$key
17008 # Check whether --with-mon-sd-password was given.
17009 if test "${with_mon_sd_password+set}" = set; then
17010 withval=$with_mon_sd_password;
17011 if test "x$withval" != "xno" ; then
17012 mon_sd_password=$withval
17019 if test "x$mon_sd_password" = "x" ; then
17020 if test "x$OPENSSL" = "xnone" ; then
17021 key=`autoconf/randpass 41`
17023 key=`openssl rand -base64 33`
17025 mon_sd_password=$key
17036 # Pickup any database name
17040 # Check whether --with-db_name was given.
17041 if test "${with_db_name+set}" = set; then
17042 withval=$with_db_name;
17043 if test "x$withval" != "x" ; then
17054 # Check whether --with-db_user was given.
17055 if test "${with_db_user+set}" = set; then
17056 withval=$with_db_user;
17057 if test "x$withval" != "x" ; then
17068 # Handle users and groups for each daemon
17072 # Check whether --with-dir_user was given.
17073 if test "${with_dir_user+set}" = set; then
17074 withval=$with_dir_user;
17075 if test "x$withval" != "x" ; then
17085 # Check whether --with-dir_group was given.
17086 if test "${with_dir_group+set}" = set; then
17087 withval=$with_dir_group;
17088 if test "x$withval" != "x" ; then
17098 # Check whether --with-sd_user was given.
17099 if test "${with_sd_user+set}" = set; then
17100 withval=$with_sd_user;
17101 if test "x$withval" != "x" ; then
17111 # Check whether --with-sd_group was given.
17112 if test "${with_sd_group+set}" = set; then
17113 withval=$with_sd_group;
17114 if test "x$withval" != "x" ; then
17124 # Check whether --with-fd_user was given.
17125 if test "${with_fd_user+set}" = set; then
17126 withval=$with_fd_user;
17127 if test "x$withval" != "x" ; then
17137 # Check whether --with-fd_group was given.
17138 if test "${with_fd_group+set}" = set; then
17139 withval=$with_fd_group;
17140 if test "x$withval" != "x" ; then
17156 # allow setting default executable permissions
17160 # Check whether --with-sbin-perm was given.
17161 if test "${with_sbin_perm+set}" = set; then
17162 withval=$with_sbin_perm;
17163 if test "x$withval" != "x" ; then
17173 # ------------------------------------------------
17174 # Bacula check for various SQL database engines
17175 # ------------------------------------------------
17179 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17180 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17182 # Check whether --with-postgresql was given.
17183 if test "${with_postgresql+set}" = set; then
17184 withval=$with_postgresql;
17185 if test "$withval" != "no"; then
17186 if test "$db_found" = "yes"; then
17187 { echo "$as_me:$LINENO: result: error" >&5
17188 echo "${ECHO_T}error" >&6; }
17189 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17190 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17191 { (exit 1); exit 1; }; };
17193 if test "$withval" = "yes"; then
17194 PG_CONFIG=`which pg_config`
17195 if test -n "$PG_CONFIG";then
17196 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17197 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17198 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17199 elif test -f /usr/local/include/libpq-fe.h; then
17200 POSTGRESQL_INCDIR=/usr/local/include
17201 if test -d /usr/local/lib64; then
17202 POSTGRESQL_LIBDIR=/usr/local/lib64
17204 POSTGRESQL_LIBDIR=/usr/local/lib
17206 POSTGRESQL_BINDIR=/usr/local/bin
17207 elif test -f /usr/include/libpq-fe.h; then
17208 POSTGRESQL_INCDIR=/usr/include
17209 if test -d /usr/lib64; then
17210 POSTGRESQL_LIBDIR=/usr/lib64
17212 POSTGRESQL_LIBDIR=/usr/lib
17214 POSTGRESQL_BINDIR=/usr/bin
17215 elif test -f /usr/include/pgsql/libpq-fe.h; then
17216 POSTGRESQL_INCDIR=/usr/include/pgsql
17217 if test -d /usr/lib64/pgsql; then
17218 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17220 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17222 POSTGRESQL_BINDIR=/usr/bin
17223 elif test -f /usr/include/postgresql/libpq-fe.h; then
17224 POSTGRESQL_INCDIR=/usr/include/postgresql
17225 if test -d /usr/lib64/postgresql; then
17226 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17228 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17230 POSTGRESQL_BINDIR=/usr/bin
17232 { echo "$as_me:$LINENO: result: no" >&5
17233 echo "${ECHO_T}no" >&6; }
17234 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17235 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17236 { (exit 1); exit 1; }; }
17238 elif test -f $withval/include/libpq-fe.h; then
17239 POSTGRESQL_INCDIR=$withval/include
17240 POSTGRESQL_LIBDIR=$withval/lib
17241 POSTGRESQL_BINDIR=$withval/bin
17242 elif test -f $withval/include/postgresql/libpq-fe.h; then
17243 POSTGRESQL_INCDIR=$withval/include/postgresql
17244 if test -d $withval/lib64; then
17245 POSTGRESQL_LIBDIR=$withval/lib64
17247 POSTGRESQL_LIBDIR=$withval/lib
17249 POSTGRESQL_BINDIR=$withval/bin
17251 { echo "$as_me:$LINENO: result: no" >&5
17252 echo "${ECHO_T}no" >&6; }
17253 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17254 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17255 { (exit 1); exit 1; }; }
17257 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17258 { echo "$as_me:$LINENO: checking for crypt" >&5
17259 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17260 if test "${ac_cv_func_crypt+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 cat >conftest.$ac_ext <<_ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h. */
17269 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17271 #define crypt innocuous_crypt
17273 /* System header to define __stub macros and hopefully few prototypes,
17274 which can conflict with char crypt (); below.
17275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17276 <limits.h> exists even on freestanding compilers. */
17279 # include <limits.h>
17281 # include <assert.h>
17286 /* Override any GCC internal prototype to avoid an error.
17287 Use char because int might match the return type of a GCC
17288 builtin and then its argument prototype would still apply. */
17293 /* The GNU C library defines this for functions which it implements
17294 to always fail with ENOSYS. Some functions are actually named
17295 something starting with __ and the normal name is an alias. */
17296 #if defined __stub_crypt || defined __stub___crypt
17308 rm -f conftest.$ac_objext conftest$ac_exeext
17309 if { (ac_try="$ac_link"
17310 case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_link") 2>conftest.er1
17317 grep -v '^ *+' conftest.er1 >conftest.err
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } && {
17322 test -z "$ac_c_werror_flag" ||
17323 test ! -s conftest.err
17324 } && test -s conftest$ac_exeext &&
17325 $as_test_x conftest$ac_exeext; then
17326 ac_cv_func_crypt=yes
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_cv_func_crypt=no
17334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17335 conftest$ac_exeext conftest.$ac_ext
17337 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17338 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17339 if test $ac_cv_func_crypt = yes; then
17342 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17343 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17344 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 ac_check_lib_save_LIBS=$LIBS
17348 LIBS="-lcrypt $LIBS"
17349 cat >conftest.$ac_ext <<_ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17356 /* Override any GCC internal prototype to avoid an error.
17357 Use char because int might match the return type of a GCC
17358 builtin and then its argument prototype would still apply. */
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17380 grep -v '^ *+' conftest.er1 >conftest.err
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } && {
17385 test -z "$ac_c_werror_flag" ||
17386 test ! -s conftest.err
17387 } && test -s conftest$ac_exeext &&
17388 $as_test_x conftest$ac_exeext; then
17389 ac_cv_lib_crypt_crypt=yes
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ac_cv_lib_crypt_crypt=no
17397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17398 conftest$ac_exeext conftest.$ac_ext
17399 LIBS=$ac_check_lib_save_LIBS
17401 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17402 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17403 if test $ac_cv_lib_crypt_crypt = yes; then
17404 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17409 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17410 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17411 SQL_BINDIR=$POSTGRESQL_BINDIR
17412 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17414 cat >>confdefs.h <<\_ACEOF
17415 #define HAVE_POSTGRESQL 1
17418 { echo "$as_me:$LINENO: result: yes" >&5
17419 echo "${ECHO_T}yes" >&6; }
17421 support_postgresql=yes
17425 { echo "$as_me:$LINENO: result: no" >&5
17426 echo "${ECHO_T}no" >&6; }
17431 { echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6; }
17444 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17445 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17447 # Check whether --with-mysql was given.
17448 if test "${with_mysql+set}" = set; then
17449 withval=$with_mysql;
17450 if test "$withval" != "no"; then
17451 if test "$withval" = "yes"; then
17452 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17453 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17454 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17455 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17456 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17458 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17460 MYSQL_BINDIR=/usr/local/mysql/bin
17461 elif test -f /usr/include/mysql/mysql.h; then
17462 MYSQL_INCDIR=/usr/include/mysql
17463 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17464 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17465 MYSQL_LIBDIR=/usr/lib64/mysql
17466 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17467 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17468 MYSQL_LIBDIR=/usr/lib/mysql
17470 MYSQL_LIBDIR=/usr/lib
17472 MYSQL_BINDIR=/usr/bin
17473 elif test -f /usr/include/mysql.h; then
17474 MYSQL_INCDIR=/usr/include
17475 if test -f /usr/lib64/libmysqlclient_r.a \
17476 -o -f /usr/lib64/libmysqlclient_r.so; then
17477 MYSQL_LIBDIR=/usr/lib64
17479 MYSQL_LIBDIR=/usr/lib
17481 MYSQL_BINDIR=/usr/bin
17482 elif test -f /usr/local/include/mysql/mysql.h; then
17483 MYSQL_INCDIR=/usr/local/include/mysql
17484 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17485 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17486 MYSQL_LIBDIR=/usr/local/lib64/mysql
17488 MYSQL_LIBDIR=/usr/local/lib/mysql
17490 MYSQL_BINDIR=/usr/local/bin
17491 elif test -f /usr/local/include/mysql.h; then
17492 MYSQL_INCDIR=/usr/local/include
17493 if test -f /usr/local/lib64/libmysqlclient_r.a \
17494 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17495 MYSQL_LIBDIR=/usr/local/lib64
17497 MYSQL_LIBDIR=/usr/local/lib
17499 MYSQL_BINDIR=/usr/local/bin
17501 { echo "$as_me:$LINENO: result: no" >&5
17502 echo "${ECHO_T}no" >&6; }
17503 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17504 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17505 { (exit 1); exit 1; }; }
17508 if test -f $withval/include/mysql/mysql.h; then
17509 MYSQL_INCDIR=$withval/include/mysql
17510 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17511 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17512 MYSQL_LIBDIR=$withval/lib64/mysql
17514 MYSQL_LIBDIR=$withval/lib/mysql
17516 if test -f $withval/lib/libmysqlclient_r.so; then
17517 MYSQL_LIBDIR=$withval/lib
17520 MYSQL_BINDIR=$withval/bin
17521 elif test -f $withval/include/mysql.h; then
17522 MYSQL_INCDIR=$withval/include
17523 if test -f $withval/lib64/libmysqlclient_r.a \
17524 -o -f $withval/lib64/libmysqlclient_r.so; then
17525 MYSQL_LIBDIR=$withval/lib64
17527 MYSQL_LIBDIR=$withval/lib
17529 MYSQL_BINDIR=$withval/bin
17531 { echo "$as_me:$LINENO: result: no" >&5
17532 echo "${ECHO_T}no" >&6; }
17533 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17534 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17535 { (exit 1); exit 1; }; }
17538 SQL_INCLUDE=-I$MYSQL_INCDIR
17539 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17540 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17541 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17542 cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_THREAD_SAFE_MYSQL 1
17547 SQL_BINDIR=$MYSQL_BINDIR
17548 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17550 cat >>confdefs.h <<\_ACEOF
17551 #define HAVE_MYSQL 1
17554 { echo "$as_me:$LINENO: result: yes" >&5
17555 echo "${ECHO_T}yes" >&6; }
17562 { echo "$as_me:$LINENO: result: no" >&5
17563 echo "${ECHO_T}no" >&6; }
17571 # Check whether --with-embedded-mysql was given.
17572 if test "${with_embedded_mysql+set}" = set; then
17573 withval=$with_embedded_mysql;
17574 if test "$withval" != "no"; then
17575 if test "$withval" = "yes"; then
17576 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17577 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17578 if test -d /usr/local/mysql/lib64/mysql; then
17579 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17581 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17583 MYSQL_BINDIR=/usr/local/mysql/bin
17584 elif test -f /usr/include/mysql/mysql.h; then
17585 MYSQL_INCDIR=/usr/include/mysql
17586 if test -d /usr/lib64/mysql; then
17587 MYSQL_LIBDIR=/usr/lib64/mysql
17589 MYSQL_LIBDIR=/usr/lib/mysql
17591 MYSQL_BINDIR=/usr/bin
17592 elif test -f /usr/include/mysql.h; then
17593 MYSQL_INCDIR=/usr/include
17594 if test -d /usr/lib64; then
17595 MYSQL_LIBDIR=/usr/lib64
17597 MYSQL_LIBDIR=/usr/lib
17599 MYSQL_BINDIR=/usr/bin
17600 elif test -f /usr/local/include/mysql/mysql.h; then
17601 MYSQL_INCDIR=/usr/local/include/mysql
17602 if test -d /usr/local/lib64/mysql; then
17603 MYSQL_LIBDIR=/usr/local/lib64/mysql
17605 MYSQL_LIBDIR=/usr/local/lib/mysql
17607 MYSQL_BINDIR=/usr/local/bin
17608 elif test -f /usr/local/include/mysql.h; then
17609 MYSQL_INCDIR=/usr/local/include
17610 if test -d /usr/local/lib64; then
17611 MYSQL_LIBDIR=/usr/local/lib64
17613 MYSQL_LIBDIR=/usr/local/lib
17615 MYSQL_BINDIR=/usr/local/bin
17617 { echo "$as_me:$LINENO: result: no" >&5
17618 echo "${ECHO_T}no" >&6; }
17619 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17620 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17621 { (exit 1); exit 1; }; }
17624 if test -f $withval/include/mysql/mysql.h; then
17625 MYSQL_INCDIR=$withval/include/mysql
17626 if test -d $withval/lib64/mysql; then
17627 MYSQL_LIBDIR=$withval/lib64/mysql
17629 MYSQL_LIBDIR=$withval/lib/mysql
17631 MYSQL_BINDIR=$withval/bin
17632 elif test -f $withval/include/mysql.h; then
17633 MYSQL_INCDIR=$withval/include
17634 if test -d $withval/lib64; then
17635 MYSQL_LIBDIR=$withval/lib64
17637 MYSQL_LIBDIR=$withval/lib
17639 MYSQL_BINDIR=$withval/bin
17641 { echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6; }
17643 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17644 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17645 { (exit 1); exit 1; }; }
17648 SQL_INCLUDE=-I$MYSQL_INCDIR
17649 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17650 SQL_BINDIR=$MYSQL_BINDIR
17651 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17653 cat >>confdefs.h <<\_ACEOF
17654 #define HAVE_MYSQL 1
17657 cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_EMBEDDED_MYSQL 1
17661 { echo "$as_me:$LINENO: result: yes" >&5
17662 echo "${ECHO_T}yes" >&6; }
17669 { echo "$as_me:$LINENO: result: no" >&5
17670 echo "${ECHO_T}no" >&6; }
17686 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17687 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17689 # Check whether --with-sqlite3 was given.
17690 if test "${with_sqlite3+set}" = set; then
17691 withval=$with_sqlite3;
17692 if test "$withval" != "no"; then
17693 if test "$withval" = "yes"; then
17694 if test -f /usr/local/include/sqlite3.h; then
17695 SQLITE_INCDIR=/usr/local/include
17696 if test -d /usr/local/lib64; then
17697 SQLITE_LIBDIR=/usr/local/lib64
17699 SQLITE_LIBDIR=/usr/local/lib
17701 SQLITE_BINDIR=/usr/local/bin
17702 elif test -f /usr/include/sqlite3.h; then
17703 SQLITE_INCDIR=/usr/include
17704 if test -d /usr/lib64; then
17705 SQLITE_LIBDIR=/usr/lib64
17707 SQLITE_LIBDIR=/usr/lib
17709 SQLITE_BINDIR=/usr/bin
17710 elif test -f $prefix/include/sqlite3.h; then
17711 SQLITE_INCDIR=$prefix/include
17712 if test -d $prefix/lib64; then
17713 SQLITE_LIBDIR=$prefix/lib64
17715 SQLITE_LIBDIR=$prefix/lib
17717 SQLITE_BINDIR=$prefix/bin
17719 { echo "$as_me:$LINENO: result: no" >&5
17720 echo "${ECHO_T}no" >&6; }
17721 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17722 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17723 { (exit 1); exit 1; }; }
17726 if test -f $withval/sqlite3.h; then
17727 SQLITE_INCDIR=$withval
17728 SQLITE_LIBDIR=$withval
17729 SQLITE_BINDIR=$withval
17730 elif test -f $withval/include/sqlite3.h; then
17731 SQLITE_INCDIR=$withval/include
17732 if test -d $withval/lib64; then
17733 SQLITE_LIBDIR=$withval/lib64
17735 SQLITE_LIBDIR=$withval/lib
17737 SQLITE_BINDIR=$withval/bin
17739 { echo "$as_me:$LINENO: result: no" >&5
17740 echo "${ECHO_T}no" >&6; }
17741 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17742 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17743 { (exit 1); exit 1; }; }
17746 SQL_INCLUDE=-I$SQLITE_INCDIR
17747 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17748 SQL_BINDIR=$SQLITE_BINDIR
17749 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17751 cat >>confdefs.h <<\_ACEOF
17752 #define HAVE_SQLITE3 1
17755 { echo "$as_me:$LINENO: result: yes" >&5
17756 echo "${ECHO_T}yes" >&6; }
17758 support_sqlite3=yes
17763 { echo "$as_me:$LINENO: result: no" >&5
17764 echo "${ECHO_T}no" >&6; }
17769 { echo "$as_me:$LINENO: result: no" >&5
17770 echo "${ECHO_T}no" >&6; }
17782 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17783 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17785 # Check whether --with-sqlite was given.
17786 if test "${with_sqlite+set}" = set; then
17787 withval=$with_sqlite;
17788 if test "$withval" != "no"; then
17789 if test "$withval" = "yes"; then
17790 if test -f /usr/local/include/sqlite.h; then
17791 SQLITE_INCDIR=/usr/local/include
17792 if test -d /usr/local/lib64; then
17793 SQLITE_LIBDIR=/usr/local/lib64
17795 SQLITE_LIBDIR=/usr/local/lib
17797 SQLITE_BINDIR=/usr/local/bin
17798 elif test -f /usr/include/sqlite.h; then
17799 SQLITE_INCDIR=/usr/include
17800 if test -d /usr/lib64; then
17801 SQLITE_LIBDIR=/usr/lib64
17803 SQLITE_LIBDIR=/usr/lib
17805 SQLITE_BINDIR=/usr/bin
17806 elif test -f $prefix/include/sqlite.h; then
17807 SQLITE_INCDIR=$prefix/include
17808 if test -d $prefix/lib64; then
17809 SQLITE_LIBDIR=$prefix/lib64
17811 SQLITE_LIBDIR=$prefix/lib
17813 SQLITE_BINDIR=$prefix/bin
17815 { echo "$as_me:$LINENO: result: no" >&5
17816 echo "${ECHO_T}no" >&6; }
17817 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17818 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17819 { (exit 1); exit 1; }; }
17822 if test -f $withval/sqlite.h; then
17823 SQLITE_INCDIR=$withval
17824 SQLITE_LIBDIR=$withval
17825 SQLITE_BINDIR=$withval
17826 elif test -f $withval/include/sqlite.h; then
17827 SQLITE_INCDIR=$withval/include
17828 if test -d $withval/lib64; then
17829 SQLITE_LIBDIR=$withval/lib64
17831 SQLITE_LIBDIR=$withval/lib
17833 SQLITE_BINDIR=$withval/bin
17835 { echo "$as_me:$LINENO: result: no" >&5
17836 echo "${ECHO_T}no" >&6; }
17837 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17838 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17839 { (exit 1); exit 1; }; }
17842 SQL_INCLUDE=-I$SQLITE_INCDIR
17843 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17844 SQL_BINDIR=$SQLITE_BINDIR
17845 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17847 cat >>confdefs.h <<\_ACEOF
17848 #define HAVE_SQLITE 1
17851 { echo "$as_me:$LINENO: result: yes" >&5
17852 echo "${ECHO_T}yes" >&6; }
17859 { echo "$as_me:$LINENO: result: no" >&5
17860 echo "${ECHO_T}no" >&6; }
17865 { echo "$as_me:$LINENO: result: no" >&5
17866 echo "${ECHO_T}no" >&6; }
17878 { echo "$as_me:$LINENO: checking for DBI support" >&5
17879 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17881 # Check whether --with-dbi was given.
17882 if test "${with_dbi+set}" = set; then
17884 if test "$withval" != "no"; then
17885 if test "$withval" = "yes"; then
17886 if test -f /usr/local/include/dbi/dbi.h; then
17887 DBI_INCDIR=/usr/local/dbi/include
17888 if test -d /usr/local/lib64; then
17889 DBI_LIBDIR=/usr/local/lib64
17891 DBI_LIBDIR=/usr/local/lib
17893 DBI_BINDIR=/usr/local/bin
17894 elif test -f /usr/include/dbi/dbi.h; then
17895 DBI_INCDIR=/usr/include
17896 if test -d /usr/lib64; then
17897 DBI_LIBDIR=/usr/lib64
17899 DBI_LIBDIR=/usr/lib
17901 DBI_BINDIR=/usr/bin
17902 elif test -f $prefix/include/dbi/dbi.h; then
17903 DBI_INCDIR=$prefix/include
17904 if test -d $prefix/lib64; then
17905 DBI_LIBDIR=$prefix/lib64
17907 DBI_LIBDIR=$prefix/lib
17909 DBI_BINDIR=$prefix/bin
17911 { echo "$as_me:$LINENO: result: no" >&5
17912 echo "${ECHO_T}no" >&6; }
17913 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17914 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17915 { (exit 1); exit 1; }; }
17917 if test -d /usr/local/lib/dbd; then
17918 DRIVERDIR=/usr/local/lib/dbd
17919 if test -d /usr/local/lib64/dbd; then
17920 DRIVERDIR=/usr/local/lib64/dbd
17922 DRIVERDIR=/usr/local/lib/dbd
17924 elif test -d /usr/lib/dbd; then
17925 DRIVERDIR=/usr/lib/dbd
17926 if test -d /usr/lib64/dbd; then
17927 DRIVERDIR=/usr/lib64/dbd
17929 DRIVERDIR=/usr/lib/dbd
17931 elif test -d $prefix/lib/dbd; then
17932 if test -d $prefix/lib64/dbd; then
17933 DRIVERDIR=$prefix/lib64/dbd
17935 DRIVERDIR=$prefix/lib/dbd
17938 { echo "$as_me:$LINENO: result: no" >&5
17939 echo "${ECHO_T}no" >&6; }
17940 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17941 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17942 { (exit 1); exit 1; }; }
17945 if test -f $withval/dbi.h; then
17946 DBI_INCDIR=$withval
17947 DBI_LIBDIR=$withval
17948 DBI_BINDIR=$withval
17949 elif test -f $withval/include/dbi/dbi.h; then
17950 DBI_INCDIR=$withval/include
17951 if test -d $withval/lib64; then
17952 DBI_LIBDIR=$withval/lib64
17954 DBI_LIBDIR=$withval/lib
17956 DBI_BINDIR=$withval/bin
17958 { echo "$as_me:$LINENO: result: no" >&5
17959 echo "${ECHO_T}no" >&6; }
17960 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17961 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17962 { (exit 1); exit 1; }; }
17964 if test -d $withval/dbd; then
17965 DRIVERDIR=$withval/dbd
17966 elif test -d $withval/lib/; then
17967 if test -d $withval/lib64/dbd; then
17968 DRIVERDIR=$withval/lib64/dbd
17970 DRIVERDIR=$withval/lib/dbd
17973 { echo "$as_me:$LINENO: result: no" >&5
17974 echo "${ECHO_T}no" >&6; }
17975 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17976 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17977 { (exit 1); exit 1; }; }
17980 SQL_INCLUDE=-I$DBI_INCDIR
17981 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17982 SQL_BINDIR=$DBI_BINDIR
17983 SQL_LIB=$DBI_LIBDIR/libdbi.a
17984 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
17987 cat >>confdefs.h <<\_ACEOF
17991 { echo "$as_me:$LINENO: result: yes" >&5
17992 echo "${ECHO_T}yes" >&6; }
17999 { echo "$as_me:$LINENO: result: no" >&5
18000 echo "${ECHO_T}no" >&6; }
18005 { echo "$as_me:$LINENO: result: no" >&5
18006 echo "${ECHO_T}no" >&6; }
18020 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18021 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18023 # Check whether --with-dbi-driver was given.
18024 if test "${with_dbi_driver+set}" = set; then
18025 withval=$with_dbi_driver;
18026 if test "$withval" != "no"; then
18030 if test -f /usr/local/mysql/bin/mysql; then
18031 SQL_BINDIR=/usr/local/mysql/bin
18032 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18033 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18034 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18036 SQL_LIBDIR=/usr/local/mysql/lib/mysql
18038 elif test -f /usr/bin/mysql; then
18039 SQL_BINDIR=/usr/bin
18040 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18041 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18042 SQL_LIBDIR=/usr/lib64/mysql
18043 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18044 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18045 SQL_LIBDIR=/usr/lib/mysql
18047 SQL_LIBDIR=/usr/lib
18049 elif test -f /usr/local/bin/mysql; then
18050 SQL_BINDIR=/usr/local/bin
18051 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18052 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18053 SQL_LIBDIR=/usr/local/lib64/mysql
18054 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18055 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18056 SQL_LIBDIR=/usr/local/lib/mysql
18058 SQL_LIBDIR=/usr/local/lib
18060 elif test -f $withval/bin/mysql; then
18061 SQL_BINDIR=$withval/bin
18062 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18063 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18064 SQL_LIBDIR=$withval/lib64/mysql
18065 elif test -f $withval/lib64/libmysqlclient_r.a \
18066 -o -f $withval/lib64/libmysqlclient_r.so; then
18067 SQL_LIBDIR=$withval/lib64
18068 elif test -f $withval/lib/libmysqlclient_r.a \
18069 -o -f $withval/lib/libmysqlclient_r.so; then
18070 SQL_LIBDIR=$withval/lib/
18072 SQL_LIBDIR=$withval/lib/mysql
18075 { echo "$as_me:$LINENO: result: no" >&5
18076 echo "${ECHO_T}no" >&6; }
18077 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18078 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18079 { (exit 1); exit 1; }; }
18081 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18084 db_prog="postgresql"
18085 PG_CONFIG=`which pg_config`
18086 if test -n "$PG_CONFIG"; then
18087 SQL_BINDIR=`"$PG_CONFIG" --bindir`
18088 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18089 elif test -f /usr/local/bin/psql; then
18090 SQL_BINDIR=/usr/local/bin
18091 if test -d /usr/local/lib64; then
18092 SQL_LIBDIR=/usr/local/lib64
18094 SQL_LIBDIR=/usr/local/lib
18096 elif test -f /usr/bin/psql; then
18097 SQL_BINDIR=/usr/local/bin
18098 if test -d /usr/lib64/postgresql; then
18099 SQL_LIBDIR=/usr/lib64/postgresql
18100 elif test -d /usr/lib/postgresql; then
18101 SQL_LIBDIR=/usr/lib/postgresql
18102 elif test -d /usr/lib64; then
18103 SQL_LIBDIR=/usr/lib64
18105 SQL_LIBDIR=/usr/lib
18107 elif test -f $withval/bin/psql; then
18108 SQL_BINDIR=$withval/bin
18109 if test -d $withval/lib64; then
18110 SQL_LIBDIR=$withval/lib64
18112 SQL_LIBDIR=$withval/lib
18115 { echo "$as_me:$LINENO: result: no" >&5
18116 echo "${ECHO_T}no" >&6; }
18117 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18118 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18119 { (exit 1); exit 1; }; }
18121 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18124 { echo "$as_me:$LINENO: result: no" >&5
18125 echo "${ECHO_T}no" >&6; }
18126 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18127 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18128 { (exit 1); exit 1; }; }
18132 { echo "$as_me:$LINENO: result: yes" >&5
18133 echo "${ECHO_T}yes" >&6; }
18136 { echo "$as_me:$LINENO: result: no" >&5
18137 echo "${ECHO_T}no" >&6; }
18142 { echo "$as_me:$LINENO: result: no" >&5
18143 echo "${ECHO_T}no" >&6; }
18156 # -------------------------------------------
18157 # enable batch attribute DB insert (default on)
18158 # -------------------------------------------
18159 support_batch_insert=no
18160 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18162 if test $pkg = 0; then
18163 support_batch_insert=yes
18164 # Check whether --enable-batch-insert was given.
18165 if test "${enable_batch_insert+set}" = set; then
18166 enableval=$enable_batch_insert; if test x$enableval = xno; then
18167 support_batch_insert=no
18169 support_batch_insert=yes
18175 # Check if postgresql support batch mode
18176 if test x$DB_TYPE = xpostgresql; then
18177 A=`nm $SQL_LIB | grep PQputCopyData`
18179 if test $pkg != 0; then
18180 support_batch_insert=no
18184 if test x$DB_TYPE = xdbi; then
18188 # Check for batch insert
18189 if test $DB_PROG = postgresql; then
18190 A=`nm $DB_PROG_LIB | grep PQputCopyData`
18194 if test $DB_PROG = mysql; then
18195 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18199 if test $pkg = 0; then
18200 # Check whether --enable-batch-insert was given.
18201 if test "${enable_batch_insert+set}" = set; then
18202 enableval=$enable_batch_insert; if test x$enableval = xno; then
18203 support_batch_insert=no
18205 support_batch_insert=yes
18212 if test $support_batch_insert = yes ; then
18214 cat >>confdefs.h <<\_ACEOF
18215 #define HAVE_BATCH_FILE_INSERT 1
18221 cat >>confdefs.h <<\_ACEOF
18222 #define PROTOTYPES 1
18226 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18227 if test -z "$CCOPTS"; then
18228 CCOPTS='-g -O2 -Wall'
18236 largefile_support="no"
18238 # Check whether --enable-largefile was given.
18239 if test "${enable_largefile+set}" = set; then
18240 enableval=$enable_largefile;
18243 if test "$enable_largefile" != no; then
18244 if test -n "$ac_tool_prefix"; then
18245 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18246 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18249 if test "${ac_cv_prog_GETCONF+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 if test -n "$GETCONF"; then
18253 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18256 for as_dir in $PATH
18259 test -z "$as_dir" && as_dir=.
18260 for ac_exec_ext in '' $ac_executable_extensions; do
18261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18262 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18272 GETCONF=$ac_cv_prog_GETCONF
18273 if test -n "$GETCONF"; then
18274 { echo "$as_me:$LINENO: result: $GETCONF" >&5
18275 echo "${ECHO_T}$GETCONF" >&6; }
18277 { echo "$as_me:$LINENO: result: no" >&5
18278 echo "${ECHO_T}no" >&6; }
18283 if test -z "$ac_cv_prog_GETCONF"; then
18284 ac_ct_GETCONF=$GETCONF
18285 # Extract the first word of "getconf", so it can be a program name with args.
18286 set dummy getconf; ac_word=$2
18287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18289 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18292 if test -n "$ac_ct_GETCONF"; then
18293 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18296 for as_dir in $PATH
18299 test -z "$as_dir" && as_dir=.
18300 for ac_exec_ext in '' $ac_executable_extensions; do
18301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18302 ac_cv_prog_ac_ct_GETCONF="getconf"
18303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18312 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18313 if test -n "$ac_ct_GETCONF"; then
18314 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18315 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18317 { echo "$as_me:$LINENO: result: no" >&5
18318 echo "${ECHO_T}no" >&6; }
18321 if test "x$ac_ct_GETCONF" = x; then
18324 case $cross_compiling:$ac_tool_warned in
18326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18327 whose name does not start with the host triplet. If you think this
18328 configuration is useful to you, please write to autoconf@gnu.org." >&5
18329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18330 whose name does not start with the host triplet. If you think this
18331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18332 ac_tool_warned=yes ;;
18334 GETCONF=$ac_ct_GETCONF
18337 GETCONF="$ac_cv_prog_GETCONF"
18340 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18341 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18342 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18343 echo $ECHO_N "(cached) $ECHO_C" >&6
18345 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18346 ac_cv_sys_largefile_CFLAGS=no
18348 # IRIX 6.2 and later require cc -n32.
18349 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18350 if test "$GCC" != yes; then
18351 ac_cv_sys_largefile_CFLAGS=-n32
18354 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18355 cat >conftest.$ac_ext <<_ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18370 rm -f conftest.$ac_objext conftest$ac_exeext
18371 if { (ac_try="$ac_link"
18372 case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_link") 2>conftest.er1
18379 grep -v '^ *+' conftest.er1 >conftest.err
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } && {
18384 test -z "$ac_c_werror_flag" ||
18385 test ! -s conftest.err
18386 } && test -s conftest$ac_exeext &&
18387 $as_test_x conftest$ac_exeext; then
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ac_cv_sys_largefile_CFLAGS=no
18396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18397 conftest$ac_exeext conftest.$ac_ext
18402 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18403 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18404 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18405 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18406 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18410 ac_cv_sys_largefile_LDFLAGS=no
18414 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18415 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18416 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18417 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18418 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18421 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18422 ac_cv_sys_largefile_LIBS=no
18426 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18427 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18429 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18432 -D_FILE_OFFSET_BITS=*) ;;
18433 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18434 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18439 case "$CPPFLAGS" in
18440 '') CPPFLAGS="$ac_flag" ;;
18441 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18449 '') CFLAGS="$ac_flag" ;;
18450 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18455 case "$ac_cv_sys_largefile_LDFLAGS" in
18459 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18460 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18463 case "$ac_cv_sys_largefile_LIBS" in
18467 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18468 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18471 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18472 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18473 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 ac_cv_sys_file_offset_bits=no
18477 ac_cv_sys_file_offset_bits=64
18478 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18480 -D_FILE_OFFSET_BITS)
18481 ac_cv_sys_file_offset_bits=1 ;;
18482 -D_FILE_OFFSET_BITS=*)
18483 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18488 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18489 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18490 if test "$ac_cv_sys_file_offset_bits" != no; then
18492 cat >>confdefs.h <<_ACEOF
18493 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18497 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18498 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18499 if test "${ac_cv_sys_largefile_source+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 ac_cv_sys_largefile_source=no
18503 ac_cv_sys_largefile_source=1
18504 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18506 -D_LARGEFILE_SOURCE)
18507 ac_cv_sys_largefile_source=1 ;;
18508 -D_LARGEFILE_SOURCE=*)
18509 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18514 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18515 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18516 if test "$ac_cv_sys_largefile_source" != no; then
18518 cat >>confdefs.h <<_ACEOF
18519 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18523 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18524 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18525 if test "${ac_cv_sys_large_files+set}" = set; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
18528 ac_cv_sys_large_files=no
18529 ac_cv_sys_large_files=1
18530 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18533 ac_cv_sys_large_files=1 ;;
18535 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18540 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18541 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18542 if test "$ac_cv_sys_large_files" != no; then
18544 cat >>confdefs.h <<_ACEOF
18545 #define _LARGE_FILES $ac_cv_sys_large_files
18553 { echo "$as_me:$LINENO: checking for X" >&5
18554 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18557 # Check whether --with-x was given.
18558 if test "${with_x+set}" = set; then
18562 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18563 if test "x$with_x" = xno; then
18564 # The user explicitly disabled X.
18567 case $x_includes,$x_libraries in #(
18568 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18569 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18570 { (exit 1); exit 1; }; };; #(
18571 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 # One or both of the vars are not set, and there is no cached value.
18575 ac_x_includes=no ac_x_libraries=no
18576 rm -f -r conftest.dir
18577 if mkdir conftest.dir; then
18579 cat >Imakefile <<'_ACEOF'
18581 @echo incroot='${INCROOT}'
18583 @echo usrlibdir='${USRLIBDIR}'
18585 @echo libdir='${LIBDIR}'
18587 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18588 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18589 for ac_var in incroot usrlibdir libdir; do
18590 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18592 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18593 for ac_extension in a so sl; do
18594 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18595 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18596 ac_im_usrlibdir=$ac_im_libdir; break
18599 # Screen out bogus values from the imake configuration. They are
18600 # bogus both because they are the default anyway, and because
18601 # using them would break gcc on systems where it needs fixed includes.
18602 case $ac_im_incroot in
18603 /usr/include) ac_x_includes= ;;
18604 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18606 case $ac_im_usrlibdir in
18607 /usr/lib | /lib) ;;
18608 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18612 rm -f -r conftest.dir
18615 # Standard set of common directories for X headers.
18616 # Check X11 before X11Rn because it is often a symlink to the current release.
18628 /usr/local/X11/include
18629 /usr/local/X11R6/include
18630 /usr/local/X11R5/include
18631 /usr/local/X11R4/include
18633 /usr/local/include/X11
18634 /usr/local/include/X11R6
18635 /usr/local/include/X11R5
18636 /usr/local/include/X11R4
18640 /usr/XFree86/include/X11
18644 /usr/unsupported/include
18645 /usr/athena/include
18646 /usr/local/x11r5/include
18647 /usr/lpp/Xamples/include
18649 /usr/openwin/include
18650 /usr/openwin/share/include'
18652 if test "$ac_x_includes" = no; then
18653 # Guess where to find include files, by looking for Xlib.h.
18654 # First, try using that file with no special directory specified.
18655 cat >conftest.$ac_ext <<_ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18661 #include <X11/Xlib.h>
18663 if { (ac_try="$ac_cpp conftest.$ac_ext"
18664 case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18671 grep -v '^ *+' conftest.er1 >conftest.err
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } >/dev/null && {
18676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18677 test ! -s conftest.err
18679 # We can compile using X headers with no special include directory.
18682 echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18685 for ac_dir in $ac_x_header_dirs; do
18686 if test -r "$ac_dir/X11/Xlib.h"; then
18687 ac_x_includes=$ac_dir
18693 rm -f conftest.err conftest.$ac_ext
18694 fi # $ac_x_includes = no
18696 if test "$ac_x_libraries" = no; then
18697 # Check for the libraries.
18698 # See if we find them without any special options.
18699 # Don't add to $LIBS permanently.
18702 cat >conftest.$ac_ext <<_ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18708 #include <X11/Xlib.h>
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_link") 2>conftest.er1
18726 grep -v '^ *+' conftest.er1 >conftest.err
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } && {
18731 test -z "$ac_c_werror_flag" ||
18732 test ! -s conftest.err
18733 } && test -s conftest$ac_exeext &&
18734 $as_test_x conftest$ac_exeext; then
18736 # We can link X programs with no special library path.
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18743 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18745 # Don't even attempt the hair of trying to link an X program!
18746 for ac_extension in a so sl; do
18747 if test -r "$ac_dir/libX11.$ac_extension"; then
18748 ac_x_libraries=$ac_dir
18755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18756 conftest$ac_exeext conftest.$ac_ext
18757 fi # $ac_x_libraries = no
18759 case $ac_x_includes,$ac_x_libraries in #(
18760 no,* | *,no | *\'*)
18761 # Didn't find X, or a directory has "'" in its name.
18762 ac_cv_have_x="have_x=no";; #(
18764 # Record where we found X for the cache.
18765 ac_cv_have_x="have_x=yes\
18766 ac_x_includes='$ac_x_includes'\
18767 ac_x_libraries='$ac_x_libraries'"
18773 eval "$ac_cv_have_x"
18776 if test "$have_x" != yes; then
18777 { echo "$as_me:$LINENO: result: $have_x" >&5
18778 echo "${ECHO_T}$have_x" >&6; }
18781 # If each of the values was on the command line, it overrides each guess.
18782 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18783 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18784 # Update the cache value to reflect the command line values.
18785 ac_cv_have_x="have_x=yes\
18786 ac_x_includes='$x_includes'\
18787 ac_x_libraries='$x_libraries'"
18788 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18789 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18792 if test "$no_x" = yes; then
18793 # Not all programs may use this symbol, but it does not hurt to define it.
18795 cat >>confdefs.h <<\_ACEOF
18796 #define X_DISPLAY_MISSING 1
18799 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18801 if test -n "$x_includes"; then
18802 X_CFLAGS="$X_CFLAGS -I$x_includes"
18805 # It would also be nice to do this for all -L options, not just this one.
18806 if test -n "$x_libraries"; then
18807 X_LIBS="$X_LIBS -L$x_libraries"
18808 # For Solaris; some versions of Sun CC require a space after -R and
18809 # others require no space. Words are not sufficient . . . .
18810 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18811 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18812 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18813 ac_xsave_c_werror_flag=$ac_c_werror_flag
18814 ac_c_werror_flag=yes
18815 cat >conftest.$ac_ext <<_ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (ac_try="$ac_link"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_link") 2>conftest.er1
18839 grep -v '^ *+' conftest.er1 >conftest.err
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } && {
18844 test -z "$ac_c_werror_flag" ||
18845 test ! -s conftest.err
18846 } && test -s conftest$ac_exeext &&
18847 $as_test_x conftest$ac_exeext; then
18848 { echo "$as_me:$LINENO: result: no" >&5
18849 echo "${ECHO_T}no" >&6; }
18850 X_LIBS="$X_LIBS -R$x_libraries"
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18855 LIBS="$ac_xsave_LIBS -R $x_libraries"
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18880 grep -v '^ *+' conftest.er1 >conftest.err
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } && {
18885 test -z "$ac_c_werror_flag" ||
18886 test ! -s conftest.err
18887 } && test -s conftest$ac_exeext &&
18888 $as_test_x conftest$ac_exeext; then
18889 { echo "$as_me:$LINENO: result: yes" >&5
18890 echo "${ECHO_T}yes" >&6; }
18891 X_LIBS="$X_LIBS -R $x_libraries"
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18896 { echo "$as_me:$LINENO: result: neither works" >&5
18897 echo "${ECHO_T}neither works" >&6; }
18900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18901 conftest$ac_exeext conftest.$ac_ext
18904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18905 conftest$ac_exeext conftest.$ac_ext
18906 ac_c_werror_flag=$ac_xsave_c_werror_flag
18907 LIBS=$ac_xsave_LIBS
18910 # Check for system-dependent libraries X programs must link with.
18911 # Do this before checking for the system-independent R6 libraries
18912 # (-lICE), since we may need -lsocket or whatever for X linking.
18914 if test "$ISC" = yes; then
18915 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18917 # Martyn Johnson says this is needed for Ultrix, if the X
18918 # libraries were built with DECnet support. And Karl Berry says
18919 # the Alpha needs dnet_stub (dnet does not exist).
18920 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18921 cat >conftest.$ac_ext <<_ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18928 /* Override any GCC internal prototype to avoid an error.
18929 Use char because int might match the return type of a GCC
18930 builtin and then its argument prototype would still apply. */
18934 char XOpenDisplay ();
18938 return XOpenDisplay ();
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (ac_try="$ac_link"
18945 case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_link") 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } && {
18957 test -z "$ac_c_werror_flag" ||
18958 test ! -s conftest.err
18959 } && test -s conftest$ac_exeext &&
18960 $as_test_x conftest$ac_exeext; then
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18966 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18967 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18968 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18969 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 ac_check_lib_save_LIBS=$LIBS
18972 LIBS="-ldnet $LIBS"
18973 cat >conftest.$ac_ext <<_ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h. */
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18990 return dnet_ntoa ();
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>conftest.er1
19004 grep -v '^ *+' conftest.er1 >conftest.err
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest$ac_exeext &&
19012 $as_test_x conftest$ac_exeext; then
19013 ac_cv_lib_dnet_dnet_ntoa=yes
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_cv_lib_dnet_dnet_ntoa=no
19021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19022 conftest$ac_exeext conftest.$ac_ext
19023 LIBS=$ac_check_lib_save_LIBS
19025 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19026 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19027 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19028 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19031 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19032 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19033 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19034 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 ac_check_lib_save_LIBS=$LIBS
19038 LIBS="-ldnet_stub $LIBS"
19039 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19046 /* Override any GCC internal prototype to avoid an error.
19047 Use char because int might match the return type of a GCC
19048 builtin and then its argument prototype would still apply. */
19056 return dnet_ntoa ();
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } && {
19075 test -z "$ac_c_werror_flag" ||
19076 test ! -s conftest.err
19077 } && test -s conftest$ac_exeext &&
19078 $as_test_x conftest$ac_exeext; then
19079 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_lib_dnet_stub_dnet_ntoa=no
19087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19088 conftest$ac_exeext conftest.$ac_ext
19089 LIBS=$ac_check_lib_save_LIBS
19091 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19092 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19093 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19094 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19101 conftest$ac_exeext conftest.$ac_ext
19102 LIBS="$ac_xsave_LIBS"
19104 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19105 # to get the SysV transport functions.
19106 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19108 # The nsl library prevents programs from opening the X display
19109 # on Irix 5.2, according to T.E. Dickey.
19110 # The functions gethostbyname, getservbyname, and inet_addr are
19111 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19112 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19113 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19114 if test "${ac_cv_func_gethostbyname+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19123 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19125 #define gethostbyname innocuous_gethostbyname
19127 /* System header to define __stub macros and hopefully few prototypes,
19128 which can conflict with char gethostbyname (); below.
19129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19130 <limits.h> exists even on freestanding compilers. */
19133 # include <limits.h>
19135 # include <assert.h>
19138 #undef gethostbyname
19140 /* Override any GCC internal prototype to avoid an error.
19141 Use char because int might match the return type of a GCC
19142 builtin and then its argument prototype would still apply. */
19146 char gethostbyname ();
19147 /* The GNU C library defines this for functions which it implements
19148 to always fail with ENOSYS. Some functions are actually named
19149 something starting with __ and the normal name is an alias. */
19150 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19157 return gethostbyname ();
19162 rm -f conftest.$ac_objext conftest$ac_exeext
19163 if { (ac_try="$ac_link"
19164 case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_link") 2>conftest.er1
19171 grep -v '^ *+' conftest.er1 >conftest.err
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } && {
19176 test -z "$ac_c_werror_flag" ||
19177 test ! -s conftest.err
19178 } && test -s conftest$ac_exeext &&
19179 $as_test_x conftest$ac_exeext; then
19180 ac_cv_func_gethostbyname=yes
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19185 ac_cv_func_gethostbyname=no
19188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19189 conftest$ac_exeext conftest.$ac_ext
19191 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19192 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19194 if test $ac_cv_func_gethostbyname = no; then
19195 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19196 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19197 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19200 ac_check_lib_save_LIBS=$LIBS
19202 cat >conftest.$ac_ext <<_ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19209 /* Override any GCC internal prototype to avoid an error.
19210 Use char because int might match the return type of a GCC
19211 builtin and then its argument prototype would still apply. */
19215 char gethostbyname ();
19219 return gethostbyname ();
19224 rm -f conftest.$ac_objext conftest$ac_exeext
19225 if { (ac_try="$ac_link"
19226 case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_link") 2>conftest.er1
19233 grep -v '^ *+' conftest.er1 >conftest.err
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } && {
19238 test -z "$ac_c_werror_flag" ||
19239 test ! -s conftest.err
19240 } && test -s conftest$ac_exeext &&
19241 $as_test_x conftest$ac_exeext; then
19242 ac_cv_lib_nsl_gethostbyname=yes
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_cv_lib_nsl_gethostbyname=no
19250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19251 conftest$ac_exeext conftest.$ac_ext
19252 LIBS=$ac_check_lib_save_LIBS
19254 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19255 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19256 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19257 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19260 if test $ac_cv_lib_nsl_gethostbyname = no; then
19261 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19262 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19263 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 ac_check_lib_save_LIBS=$LIBS
19268 cat >conftest.$ac_ext <<_ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19275 /* Override any GCC internal prototype to avoid an error.
19276 Use char because int might match the return type of a GCC
19277 builtin and then its argument prototype would still apply. */
19281 char gethostbyname ();
19285 return gethostbyname ();
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (ac_try="$ac_link"
19292 case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_link") 2>conftest.er1
19299 grep -v '^ *+' conftest.er1 >conftest.err
19301 cat conftest.err >&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } && {
19304 test -z "$ac_c_werror_flag" ||
19305 test ! -s conftest.err
19306 } && test -s conftest$ac_exeext &&
19307 $as_test_x conftest$ac_exeext; then
19308 ac_cv_lib_bsd_gethostbyname=yes
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 ac_cv_lib_bsd_gethostbyname=no
19316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19317 conftest$ac_exeext conftest.$ac_ext
19318 LIBS=$ac_check_lib_save_LIBS
19320 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19321 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19322 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19329 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19330 # socket/setsockopt and other routines are undefined under SCO ODT
19331 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19332 # on later versions), says Simon Leinen: it contains gethostby*
19333 # variants that don't use the name server (or something). -lsocket
19334 # must be given before -lnsl if both are needed. We assume that
19335 # if connect needs -lnsl, so does gethostbyname.
19336 { echo "$as_me:$LINENO: checking for connect" >&5
19337 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19338 if test "${ac_cv_func_connect+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19347 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19349 #define connect innocuous_connect
19351 /* System header to define __stub macros and hopefully few prototypes,
19352 which can conflict with char connect (); below.
19353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19354 <limits.h> exists even on freestanding compilers. */
19357 # include <limits.h>
19359 # include <assert.h>
19364 /* Override any GCC internal prototype to avoid an error.
19365 Use char because int might match the return type of a GCC
19366 builtin and then its argument prototype would still apply. */
19371 /* The GNU C library defines this for functions which it implements
19372 to always fail with ENOSYS. Some functions are actually named
19373 something starting with __ and the normal name is an alias. */
19374 #if defined __stub_connect || defined __stub___connect
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (ac_try="$ac_link"
19388 case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_link") 2>conftest.er1
19395 grep -v '^ *+' conftest.er1 >conftest.err
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } && {
19400 test -z "$ac_c_werror_flag" ||
19401 test ! -s conftest.err
19402 } && test -s conftest$ac_exeext &&
19403 $as_test_x conftest$ac_exeext; then
19404 ac_cv_func_connect=yes
19406 echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19409 ac_cv_func_connect=no
19412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19413 conftest$ac_exeext conftest.$ac_ext
19415 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19416 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19418 if test $ac_cv_func_connect = no; then
19419 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19420 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19421 if test "${ac_cv_lib_socket_connect+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 ac_check_lib_save_LIBS=$LIBS
19425 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19426 cat >conftest.$ac_ext <<_ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19433 /* Override any GCC internal prototype to avoid an error.
19434 Use char because int might match the return type of a GCC
19435 builtin and then its argument prototype would still apply. */
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_link") 2>conftest.er1
19457 grep -v '^ *+' conftest.er1 >conftest.err
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } && {
19462 test -z "$ac_c_werror_flag" ||
19463 test ! -s conftest.err
19464 } && test -s conftest$ac_exeext &&
19465 $as_test_x conftest$ac_exeext; then
19466 ac_cv_lib_socket_connect=yes
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 ac_cv_lib_socket_connect=no
19474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19475 conftest$ac_exeext conftest.$ac_ext
19476 LIBS=$ac_check_lib_save_LIBS
19478 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19479 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19480 if test $ac_cv_lib_socket_connect = yes; then
19481 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19486 # Guillermo Gomez says -lposix is necessary on A/UX.
19487 { echo "$as_me:$LINENO: checking for remove" >&5
19488 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19489 if test "${ac_cv_func_remove+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 cat >conftest.$ac_ext <<_ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19500 #define remove innocuous_remove
19502 /* System header to define __stub macros and hopefully few prototypes,
19503 which can conflict with char remove (); below.
19504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19505 <limits.h> exists even on freestanding compilers. */
19508 # include <limits.h>
19510 # include <assert.h>
19515 /* Override any GCC internal prototype to avoid an error.
19516 Use char because int might match the return type of a GCC
19517 builtin and then its argument prototype would still apply. */
19522 /* The GNU C library defines this for functions which it implements
19523 to always fail with ENOSYS. Some functions are actually named
19524 something starting with __ and the normal name is an alias. */
19525 #if defined __stub_remove || defined __stub___remove
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_link") 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } && {
19551 test -z "$ac_c_werror_flag" ||
19552 test ! -s conftest.err
19553 } && test -s conftest$ac_exeext &&
19554 $as_test_x conftest$ac_exeext; then
19555 ac_cv_func_remove=yes
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ac_cv_func_remove=no
19563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19564 conftest$ac_exeext conftest.$ac_ext
19566 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19567 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19569 if test $ac_cv_func_remove = no; then
19570 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19571 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19572 if test "${ac_cv_lib_posix_remove+set}" = set; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 ac_check_lib_save_LIBS=$LIBS
19576 LIBS="-lposix $LIBS"
19577 cat >conftest.$ac_ext <<_ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h. */
19584 /* Override any GCC internal prototype to avoid an error.
19585 Use char because int might match the return type of a GCC
19586 builtin and then its argument prototype would still apply. */
19599 rm -f conftest.$ac_objext conftest$ac_exeext
19600 if { (ac_try="$ac_link"
19601 case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_link") 2>conftest.er1
19608 grep -v '^ *+' conftest.er1 >conftest.err
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } && {
19613 test -z "$ac_c_werror_flag" ||
19614 test ! -s conftest.err
19615 } && test -s conftest$ac_exeext &&
19616 $as_test_x conftest$ac_exeext; then
19617 ac_cv_lib_posix_remove=yes
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 ac_cv_lib_posix_remove=no
19625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19626 conftest$ac_exeext conftest.$ac_ext
19627 LIBS=$ac_check_lib_save_LIBS
19629 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19630 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19631 if test $ac_cv_lib_posix_remove = yes; then
19632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19637 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19638 { echo "$as_me:$LINENO: checking for shmat" >&5
19639 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19640 if test "${ac_cv_func_shmat+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19643 cat >conftest.$ac_ext <<_ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19651 #define shmat innocuous_shmat
19653 /* System header to define __stub macros and hopefully few prototypes,
19654 which can conflict with char shmat (); below.
19655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19656 <limits.h> exists even on freestanding compilers. */
19659 # include <limits.h>
19661 # include <assert.h>
19666 /* Override any GCC internal prototype to avoid an error.
19667 Use char because int might match the return type of a GCC
19668 builtin and then its argument prototype would still apply. */
19673 /* The GNU C library defines this for functions which it implements
19674 to always fail with ENOSYS. Some functions are actually named
19675 something starting with __ and the normal name is an alias. */
19676 #if defined __stub_shmat || defined __stub___shmat
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_link") 2>conftest.er1
19697 grep -v '^ *+' conftest.er1 >conftest.err
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } && {
19702 test -z "$ac_c_werror_flag" ||
19703 test ! -s conftest.err
19704 } && test -s conftest$ac_exeext &&
19705 $as_test_x conftest$ac_exeext; then
19706 ac_cv_func_shmat=yes
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_cv_func_shmat=no
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715 conftest$ac_exeext conftest.$ac_ext
19717 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19718 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19720 if test $ac_cv_func_shmat = no; then
19721 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19722 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19723 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 ac_check_lib_save_LIBS=$LIBS
19728 cat >conftest.$ac_ext <<_ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19735 /* Override any GCC internal prototype to avoid an error.
19736 Use char because int might match the return type of a GCC
19737 builtin and then its argument prototype would still apply. */
19750 rm -f conftest.$ac_objext conftest$ac_exeext
19751 if { (ac_try="$ac_link"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_link") 2>conftest.er1
19759 grep -v '^ *+' conftest.er1 >conftest.err
19761 cat conftest.err >&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } && {
19764 test -z "$ac_c_werror_flag" ||
19765 test ! -s conftest.err
19766 } && test -s conftest$ac_exeext &&
19767 $as_test_x conftest$ac_exeext; then
19768 ac_cv_lib_ipc_shmat=yes
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 ac_cv_lib_ipc_shmat=no
19776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19777 conftest$ac_exeext conftest.$ac_ext
19778 LIBS=$ac_check_lib_save_LIBS
19780 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19781 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19782 if test $ac_cv_lib_ipc_shmat = yes; then
19783 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19789 # Check for libraries that X11R6 Xt/Xaw programs need.
19790 ac_save_LDFLAGS=$LDFLAGS
19791 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19792 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19793 # check for ICE first), but we must link in the order -lSM -lICE or
19794 # we get undefined symbols. So assume we have SM if we have ICE.
19795 # These have to be linked with before -lX11, unlike the other
19796 # libraries we check for below, so use a different variable.
19797 # John Interrante, Karl Berry
19798 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19799 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19800 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19818 char IceConnectionNumber ();
19822 return IceConnectionNumber ();
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_link") 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest$ac_exeext &&
19844 $as_test_x conftest$ac_exeext; then
19845 ac_cv_lib_ICE_IceConnectionNumber=yes
19847 echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19850 ac_cv_lib_ICE_IceConnectionNumber=no
19853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19854 conftest$ac_exeext conftest.$ac_ext
19855 LIBS=$ac_check_lib_save_LIBS
19857 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19858 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19859 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19860 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19863 LDFLAGS=$ac_save_LDFLAGS
19931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 ac_res=`eval echo '${'$as_ac_Header'}'`
19939 { echo "$as_me:$LINENO: result: $ac_res" >&5
19940 echo "${ECHO_T}$ac_res" >&6; }
19942 # Is the header compilable?
19943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19945 cat >conftest.$ac_ext <<_ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951 $ac_includes_default
19952 #include <$ac_header>
19954 rm -f conftest.$ac_objext
19955 if { (ac_try="$ac_compile"
19956 case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_compile") 2>conftest.er1
19963 grep -v '^ *+' conftest.er1 >conftest.err
19965 cat conftest.err >&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); } && {
19968 test -z "$ac_c_werror_flag" ||
19969 test ! -s conftest.err
19970 } && test -s conftest.$ac_objext; then
19971 ac_header_compiler=yes
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19976 ac_header_compiler=no
19979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981 echo "${ECHO_T}$ac_header_compiler" >&6; }
19983 # Is the header present?
19984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 #include <$ac_header>
19994 if { (ac_try="$ac_cpp conftest.$ac_ext"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } >/dev/null && {
20007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20010 ac_header_preproc=yes
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_header_preproc=no
20018 rm -f conftest.err conftest.$ac_ext
20019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20020 echo "${ECHO_T}$ac_header_preproc" >&6; }
20022 # So? What about this header?
20023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20029 ac_header_preproc=yes
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 eval "$as_ac_Header=\$ac_header_preproc"
20054 ac_res=`eval echo '${'$as_ac_Header'}'`
20055 { echo "$as_me:$LINENO: result: $ac_res" >&5
20056 echo "${ECHO_T}$ac_res" >&6; }
20059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20060 cat >>confdefs.h <<_ACEOF
20061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20068 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20069 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20070 if test "${ac_cv_header_stdc+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 cat >conftest.$ac_ext <<_ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079 #include <stdlib.h>
20080 #include <stdarg.h>
20081 #include <string.h>
20092 rm -f conftest.$ac_objext
20093 if { (ac_try="$ac_compile"
20094 case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_compile") 2>conftest.er1
20101 grep -v '^ *+' conftest.er1 >conftest.err
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } && {
20106 test -z "$ac_c_werror_flag" ||
20107 test ! -s conftest.err
20108 } && test -s conftest.$ac_objext; then
20109 ac_cv_header_stdc=yes
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20114 ac_cv_header_stdc=no
20117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119 if test $ac_cv_header_stdc = yes; then
20120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20121 cat >conftest.$ac_ext <<_ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 #include <string.h>
20130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20131 $EGREP "memchr" >/dev/null 2>&1; then
20134 ac_cv_header_stdc=no
20140 if test $ac_cv_header_stdc = yes; then
20141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20142 cat >conftest.$ac_ext <<_ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <stdlib.h>
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152 $EGREP "free" >/dev/null 2>&1; then
20155 ac_cv_header_stdc=no
20161 if test $ac_cv_header_stdc = yes; then
20162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20163 if test "$cross_compiling" = yes; then
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20173 #include <stdlib.h>
20174 #if ((' ' & 0x0FF) == 0x020)
20175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20178 # define ISLOWER(c) \
20179 (('a' <= (c) && (c) <= 'i') \
20180 || ('j' <= (c) && (c) <= 'r') \
20181 || ('s' <= (c) && (c) <= 'z'))
20182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20190 for (i = 0; i < 256; i++)
20191 if (XOR (islower (i), ISLOWER (i))
20192 || toupper (i) != TOUPPER (i))
20197 rm -f conftest$ac_exeext
20198 if { (ac_try="$ac_link"
20199 case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_link") 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20208 { (case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_try") 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; }; then
20219 echo "$as_me: program exited with status $ac_status" >&5
20220 echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20223 ( exit $ac_status )
20224 ac_cv_header_stdc=no
20226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20232 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20233 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20234 if test $ac_cv_header_stdc = yes; then
20236 cat >>confdefs.h <<\_ACEOF
20237 #define STDC_HEADERS 1
20242 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20243 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20244 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 cat >conftest.$ac_ext <<_ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 #include <sys/types.h>
20257 return makedev(0, 0);
20262 rm -f conftest.$ac_objext conftest$ac_exeext
20263 if { (ac_try="$ac_link"
20264 case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_link") 2>conftest.er1
20271 grep -v '^ *+' conftest.er1 >conftest.err
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } && {
20276 test -z "$ac_c_werror_flag" ||
20277 test ! -s conftest.err
20278 } && test -s conftest$ac_exeext &&
20279 $as_test_x conftest$ac_exeext; then
20280 ac_cv_header_sys_types_h_makedev=yes
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ac_cv_header_sys_types_h_makedev=no
20288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20289 conftest$ac_exeext conftest.$ac_ext
20292 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20293 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20295 if test $ac_cv_header_sys_types_h_makedev = no; then
20296 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20297 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20298 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20299 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20302 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20303 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20305 # Is the header compilable?
20306 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20307 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20308 cat >conftest.$ac_ext <<_ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 $ac_includes_default
20315 #include <sys/mkdev.h>
20317 rm -f conftest.$ac_objext
20318 if { (ac_try="$ac_compile"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_compile") 2>conftest.er1
20326 grep -v '^ *+' conftest.er1 >conftest.err
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } && {
20331 test -z "$ac_c_werror_flag" ||
20332 test ! -s conftest.err
20333 } && test -s conftest.$ac_objext; then
20334 ac_header_compiler=yes
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ac_header_compiler=no
20342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20344 echo "${ECHO_T}$ac_header_compiler" >&6; }
20346 # Is the header present?
20347 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20348 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20349 cat >conftest.$ac_ext <<_ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 #include <sys/mkdev.h>
20357 if { (ac_try="$ac_cpp conftest.$ac_ext"
20358 case "(($ac_try" in
20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360 *) ac_try_echo=$ac_try;;
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20365 grep -v '^ *+' conftest.er1 >conftest.err
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } >/dev/null && {
20370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20371 test ! -s conftest.err
20373 ac_header_preproc=yes
20375 echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20378 ac_header_preproc=no
20381 rm -f conftest.err conftest.$ac_ext
20382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20383 echo "${ECHO_T}$ac_header_preproc" >&6; }
20385 # So? What about this header?
20386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20388 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20389 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20391 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20392 ac_header_preproc=yes
20395 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20396 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20398 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20400 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20402 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20403 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20404 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20406 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20410 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20411 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20412 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20417 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20418 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20421 if test $ac_cv_header_sys_mkdev_h = yes; then
20423 cat >>confdefs.h <<\_ACEOF
20424 #define MAJOR_IN_MKDEV 1
20431 if test $ac_cv_header_sys_mkdev_h = no; then
20432 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20433 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20434 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20435 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20439 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20441 # Is the header compilable?
20442 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20443 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 $ac_includes_default
20451 #include <sys/sysmacros.h>
20453 rm -f conftest.$ac_objext
20454 if { (ac_try="$ac_compile"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_compile") 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest.$ac_objext; then
20470 ac_header_compiler=yes
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_header_compiler=no
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20480 echo "${ECHO_T}$ac_header_compiler" >&6; }
20482 # Is the header present?
20483 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20484 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20485 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 #include <sys/sysmacros.h>
20493 if { (ac_try="$ac_cpp conftest.$ac_ext"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } >/dev/null && {
20506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20509 ac_header_preproc=yes
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ac_header_preproc=no
20517 rm -f conftest.err conftest.$ac_ext
20518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20519 echo "${ECHO_T}$ac_header_preproc" >&6; }
20521 # So? What about this header?
20522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20524 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20525 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20526 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20527 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20528 ac_header_preproc=yes
20531 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20532 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20534 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20535 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20536 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20538 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20539 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20540 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20542 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20546 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20547 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20548 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20553 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20554 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20557 if test $ac_cv_header_sys_sysmacros_h = yes; then
20559 cat >>confdefs.h <<\_ACEOF
20560 #define MAJOR_IN_SYSMACROS 1
20574 ac_header_dirent=no
20575 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20576 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20577 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20578 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 #include <sys/types.h>
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_compile") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest.$ac_objext; then
20617 eval "$as_ac_Header=yes"
20619 echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20622 eval "$as_ac_Header=no"
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 ac_res=`eval echo '${'$as_ac_Header'}'`
20628 { echo "$as_me:$LINENO: result: $ac_res" >&5
20629 echo "${ECHO_T}$ac_res" >&6; }
20630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20631 cat >>confdefs.h <<_ACEOF
20632 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20635 ac_header_dirent=$ac_hdr; break
20639 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20640 if test $ac_header_dirent = dirent.h; then
20641 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20642 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20643 if test "${ac_cv_search_opendir+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 ac_func_search_save_LIBS=$LIBS
20647 cat >conftest.$ac_ext <<_ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20654 /* Override any GCC internal prototype to avoid an error.
20655 Use char because int might match the return type of a GCC
20656 builtin and then its argument prototype would still apply. */
20669 for ac_lib in '' dir; do
20670 if test -z "$ac_lib"; then
20671 ac_res="none required"
20674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20676 rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (ac_try="$ac_link"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_link") 2>conftest.er1
20685 grep -v '^ *+' conftest.er1 >conftest.err
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } && {
20690 test -z "$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20692 } && test -s conftest$ac_exeext &&
20693 $as_test_x conftest$ac_exeext; then
20694 ac_cv_search_opendir=$ac_res
20696 echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20704 if test "${ac_cv_search_opendir+set}" = set; then
20708 if test "${ac_cv_search_opendir+set}" = set; then
20711 ac_cv_search_opendir=no
20713 rm conftest.$ac_ext
20714 LIBS=$ac_func_search_save_LIBS
20716 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20717 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20718 ac_res=$ac_cv_search_opendir
20719 if test "$ac_res" != no; then
20720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20725 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20726 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20727 if test "${ac_cv_search_opendir+set}" = set; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 ac_func_search_save_LIBS=$LIBS
20731 cat >conftest.$ac_ext <<_ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20738 /* Override any GCC internal prototype to avoid an error.
20739 Use char because int might match the return type of a GCC
20740 builtin and then its argument prototype would still apply. */
20753 for ac_lib in '' x; do
20754 if test -z "$ac_lib"; then
20755 ac_res="none required"
20758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_link") 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && {
20774 test -z "$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 } && test -s conftest$ac_exeext &&
20777 $as_test_x conftest$ac_exeext; then
20778 ac_cv_search_opendir=$ac_res
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20788 if test "${ac_cv_search_opendir+set}" = set; then
20792 if test "${ac_cv_search_opendir+set}" = set; then
20795 ac_cv_search_opendir=no
20797 rm conftest.$ac_ext
20798 LIBS=$ac_func_search_save_LIBS
20800 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20801 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20802 ac_res=$ac_cv_search_opendir
20803 if test "$ac_res" != no; then
20804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20810 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20811 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20812 if test "${ac_cv_header_stat_broken+set}" = set; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 cat >conftest.$ac_ext <<_ACEOF
20818 cat confdefs.h >>conftest.$ac_ext
20819 cat >>conftest.$ac_ext <<_ACEOF
20820 /* end confdefs.h. */
20821 #include <sys/types.h>
20822 #include <sys/stat.h>
20824 #if defined S_ISBLK && defined S_IFDIR
20825 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20828 #if defined S_ISBLK && defined S_IFCHR
20829 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20832 #if defined S_ISLNK && defined S_IFREG
20833 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20836 #if defined S_ISSOCK && defined S_IFREG
20837 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20841 rm -f conftest.$ac_objext
20842 if { (ac_try="$ac_compile"
20843 case "(($ac_try" in
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845 *) ac_try_echo=$ac_try;;
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848 (eval "$ac_compile") 2>conftest.er1
20850 grep -v '^ *+' conftest.er1 >conftest.err
20852 cat conftest.err >&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } && {
20855 test -z "$ac_c_werror_flag" ||
20856 test ! -s conftest.err
20857 } && test -s conftest.$ac_objext; then
20858 ac_cv_header_stat_broken=no
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20863 ac_cv_header_stat_broken=yes
20866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20869 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20870 if test $ac_cv_header_stat_broken = yes; then
20872 cat >>confdefs.h <<\_ACEOF
20873 #define STAT_MACROS_BROKEN 1
20878 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20879 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20880 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20881 echo $ECHO_N "(cached) $ECHO_C" >&6
20883 cat >conftest.$ac_ext <<_ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20889 #include <sys/types.h>
20890 #include <sys/wait.h>
20891 #ifndef WEXITSTATUS
20892 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20895 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20903 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20908 rm -f conftest.$ac_objext
20909 if { (ac_try="$ac_compile"
20910 case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_compile") 2>conftest.er1
20917 grep -v '^ *+' conftest.er1 >conftest.err
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } && {
20922 test -z "$ac_c_werror_flag" ||
20923 test ! -s conftest.err
20924 } && test -s conftest.$ac_objext; then
20925 ac_cv_header_sys_wait_h=yes
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20930 ac_cv_header_sys_wait_h=no
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20936 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20937 if test $ac_cv_header_sys_wait_h = yes; then
20939 cat >>confdefs.h <<\_ACEOF
20940 #define HAVE_SYS_WAIT_H 1
20945 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20946 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20947 if test "${ac_cv_header_time+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 #include <sys/types.h>
20957 #include <sys/time.h>
20963 if ((struct tm *) 0)
20969 rm -f conftest.$ac_objext
20970 if { (ac_try="$ac_compile"
20971 case "(($ac_try" in
20972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973 *) ac_try_echo=$ac_try;;
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976 (eval "$ac_compile") 2>conftest.er1
20978 grep -v '^ *+' conftest.er1 >conftest.err
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } && {
20983 test -z "$ac_c_werror_flag" ||
20984 test ! -s conftest.err
20985 } && test -s conftest.$ac_objext; then
20986 ac_cv_header_time=yes
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20991 ac_cv_header_time=no
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20997 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20998 if test $ac_cv_header_time = yes; then
21000 cat >>confdefs.h <<\_ACEOF
21001 #define TIME_WITH_SYS_TIME 1
21006 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21007 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21008 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 $ac_includes_default
21021 static struct stat ac_aggr;
21022 if (ac_aggr.st_blksize)
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21037 grep -v '^ *+' conftest.er1 >conftest.err
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } && {
21042 test -z "$ac_c_werror_flag" ||
21043 test ! -s conftest.err
21044 } && test -s conftest.$ac_objext; then
21045 ac_cv_member_struct_stat_st_blksize=yes
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 cat >conftest.$ac_ext <<_ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 $ac_includes_default
21060 static struct stat ac_aggr;
21061 if (sizeof ac_aggr.st_blksize)
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21076 grep -v '^ *+' conftest.er1 >conftest.err
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } && {
21081 test -z "$ac_c_werror_flag" ||
21082 test ! -s conftest.err
21083 } && test -s conftest.$ac_objext; then
21084 ac_cv_member_struct_stat_st_blksize=yes
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 ac_cv_member_struct_stat_st_blksize=no
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21098 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21099 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21101 cat >>confdefs.h <<_ACEOF
21102 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_ST_BLKSIZE 1
21113 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21114 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21115 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 cat >conftest.$ac_ext <<_ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 $ac_includes_default
21128 static struct stat ac_aggr;
21129 if (ac_aggr.st_blocks)
21135 rm -f conftest.$ac_objext
21136 if { (ac_try="$ac_compile"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_compile") 2>conftest.er1
21144 grep -v '^ *+' conftest.er1 >conftest.err
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } && {
21149 test -z "$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21151 } && test -s conftest.$ac_objext; then
21152 ac_cv_member_struct_stat_st_blocks=yes
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 $ac_includes_default
21167 static struct stat ac_aggr;
21168 if (sizeof ac_aggr.st_blocks)
21174 rm -f conftest.$ac_objext
21175 if { (ac_try="$ac_compile"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_compile") 2>conftest.er1
21183 grep -v '^ *+' conftest.er1 >conftest.err
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest.$ac_objext; then
21191 ac_cv_member_struct_stat_st_blocks=yes
21193 echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21196 ac_cv_member_struct_stat_st_blocks=no
21199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21204 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21205 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21206 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21208 cat >>confdefs.h <<_ACEOF
21209 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_ST_BLOCKS 1
21218 case " $LIBOBJS " in
21219 *" fileblocks.$ac_objext "* ) ;;
21220 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21227 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21228 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21229 if test "${ac_cv_struct_tm+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 #include <sys/types.h>
21245 int *p = &tm.tm_sec;
21251 rm -f conftest.$ac_objext
21252 if { (ac_try="$ac_compile"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258 (eval "$ac_compile") 2>conftest.er1
21260 grep -v '^ *+' conftest.er1 >conftest.err
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest.$ac_objext; then
21268 ac_cv_struct_tm=time.h
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21273 ac_cv_struct_tm=sys/time.h
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21279 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21280 if test $ac_cv_struct_tm = sys/time.h; then
21282 cat >>confdefs.h <<\_ACEOF
21283 #define TM_IN_SYS_TIME 1
21288 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21289 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21290 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21293 cat >conftest.$ac_ext <<_ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 #include <sys/types.h>
21300 #include <$ac_cv_struct_tm>
21306 static struct tm ac_aggr;
21307 if (ac_aggr.tm_zone)
21313 rm -f conftest.$ac_objext
21314 if { (ac_try="$ac_compile"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_compile") 2>conftest.er1
21322 grep -v '^ *+' conftest.er1 >conftest.err
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest.$ac_objext; then
21330 ac_cv_member_struct_tm_tm_zone=yes
21332 echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21335 cat >conftest.$ac_ext <<_ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341 #include <sys/types.h>
21342 #include <$ac_cv_struct_tm>
21348 static struct tm ac_aggr;
21349 if (sizeof ac_aggr.tm_zone)
21355 rm -f conftest.$ac_objext
21356 if { (ac_try="$ac_compile"
21357 case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_compile") 2>conftest.er1
21364 grep -v '^ *+' conftest.er1 >conftest.err
21366 cat conftest.err >&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } && {
21369 test -z "$ac_c_werror_flag" ||
21370 test ! -s conftest.err
21371 } && test -s conftest.$ac_objext; then
21372 ac_cv_member_struct_tm_tm_zone=yes
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21377 ac_cv_member_struct_tm_tm_zone=no
21380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21386 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21387 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21389 cat >>confdefs.h <<_ACEOF
21390 #define HAVE_STRUCT_TM_TM_ZONE 1
21396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21398 cat >>confdefs.h <<\_ACEOF
21399 #define HAVE_TM_ZONE 1
21403 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21404 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21405 if test "${ac_cv_have_decl_tzname+set}" = set; then
21406 echo $ECHO_N "(cached) $ECHO_C" >&6
21408 cat >conftest.$ac_ext <<_ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21427 rm -f conftest.$ac_objext
21428 if { (ac_try="$ac_compile"
21429 case "(($ac_try" in
21430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_compile") 2>conftest.er1
21436 grep -v '^ *+' conftest.er1 >conftest.err
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && {
21441 test -z "$ac_c_werror_flag" ||
21442 test ! -s conftest.err
21443 } && test -s conftest.$ac_objext; then
21444 ac_cv_have_decl_tzname=yes
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21449 ac_cv_have_decl_tzname=no
21452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21455 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21456 if test $ac_cv_have_decl_tzname = yes; then
21458 cat >>confdefs.h <<_ACEOF
21459 #define HAVE_DECL_TZNAME 1
21464 cat >>confdefs.h <<_ACEOF
21465 #define HAVE_DECL_TZNAME 0
21472 { echo "$as_me:$LINENO: checking for tzname" >&5
21473 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21474 if test "${ac_cv_var_tzname+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21477 cat >conftest.$ac_ext <<_ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21484 #if !HAVE_DECL_TZNAME
21485 extern char *tzname[];
21491 return tzname[0][0];
21496 rm -f conftest.$ac_objext conftest$ac_exeext
21497 if { (ac_try="$ac_link"
21498 case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_link") 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } && {
21510 test -z "$ac_c_werror_flag" ||
21511 test ! -s conftest.err
21512 } && test -s conftest$ac_exeext &&
21513 $as_test_x conftest$ac_exeext; then
21514 ac_cv_var_tzname=yes
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 ac_cv_var_tzname=no
21522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21523 conftest$ac_exeext conftest.$ac_ext
21525 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21526 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21527 if test $ac_cv_var_tzname = yes; then
21529 cat >>confdefs.h <<\_ACEOF
21530 #define HAVE_TZNAME 1
21537 { echo "$as_me:$LINENO: checking for utime.h" >&5
21538 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21539 if test "${ba_cv_header_utime_h+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 cat >conftest.$ac_ext <<_ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21549 #include <sys/types.h>
21559 rm -f conftest.$ac_objext
21560 if { (ac_try="$ac_compile"
21561 case "(($ac_try" in
21562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563 *) ac_try_echo=$ac_try;;
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566 (eval "$ac_compile") 2>conftest.er1
21568 grep -v '^ *+' conftest.er1 >conftest.err
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } && {
21573 test -z "$ac_c_werror_flag" ||
21574 test ! -s conftest.err
21575 } && test -s conftest.$ac_objext; then
21576 ba_cv_header_utime_h=yes
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21581 ba_cv_header_utime_h=no
21584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21587 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21588 test $ba_cv_header_utime_h = yes &&
21589 cat >>confdefs.h <<\_ACEOF
21590 #define HAVE_UTIME_H 1
21594 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21595 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21596 if test "${ba_cv_header_socklen_t+set}" = set; then
21597 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 cat >conftest.$ac_ext <<_ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21606 #include <sys/types.h>
21607 #include <sys/socket.h>
21616 rm -f conftest.$ac_objext
21617 if { (ac_try="$ac_compile"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_compile") 2>conftest.er1
21625 grep -v '^ *+' conftest.er1 >conftest.err
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest.$ac_objext; then
21633 ba_cv_header_socklen_t=yes
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ba_cv_header_socklen_t=no
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21644 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21645 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21646 #define HAVE_SOCKLEN_T 1
21650 { echo "$as_me:$LINENO: checking for bigendian" >&5
21651 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21652 if test "${ba_cv_bigendian+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 if test "$cross_compiling" = yes; then
21658 cat >conftest.$ac_ext <<_ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21666 rm -f conftest$ac_exeext
21667 if { (ac_try="$ac_link"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_link") 2>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21677 { (case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_try") 2>&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }; then
21686 ba_cv_bigendian=yes
21688 echo "$as_me: program exited with status $ac_status" >&5
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 ( exit $ac_status )
21695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21700 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21701 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21702 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21703 #define HAVE_BIGENDIAN 1
21708 ac_cpp='$CXXCPP $CPPFLAGS'
21709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21714 { echo "$as_me:$LINENO: checking for typeof" >&5
21715 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21716 if test "${ba_cv_have_typeof+set}" = set; then
21717 echo $ECHO_N "(cached) $ECHO_C" >&6
21719 if test "$cross_compiling" = yes; then
21720 ba_cv_have_typeof=no
21722 cat >conftest.$ac_ext <<_ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h. */
21728 main(){char *a = 0; a = (typeof a)a;}
21730 rm -f conftest$ac_exeext
21731 if { (ac_try="$ac_link"
21732 case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737 (eval "$ac_link") 2>&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21741 { (case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_try") 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ba_cv_have_typeof=yes
21752 echo "$as_me: program exited with status $ac_status" >&5
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ( exit $ac_status )
21757 ba_cv_have_typeof=no
21759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21764 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21765 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21766 test $ba_cv_have_typeof = yes &&
21767 cat >>confdefs.h <<\_ACEOF
21768 #define HAVE_TYPEOF 1
21772 ac_cpp='$CPP $CPPFLAGS'
21773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21778 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21779 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21780 if test "${ac_cv_c_const+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 cat >conftest.$ac_ext <<_ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21793 /* FIXME: Include the comments suggested by Paul. */
21794 #ifndef __cplusplus
21795 /* Ultrix mips cc rejects this. */
21796 typedef int charset[2];
21798 /* SunOS 4.1.1 cc rejects this. */
21799 char const *const *pcpcc;
21801 /* NEC SVR4.0.2 mips cc rejects this. */
21802 struct point {int x, y;};
21803 static struct point const zero = {0,0};
21804 /* AIX XL C 1.02.0.0 rejects this.
21805 It does not let you subtract one const X* pointer from another in
21806 an arm of an if-expression whose if-part is not a constant
21808 const char *g = "string";
21809 pcpcc = &g + (g ? g-g : 0);
21810 /* HPUX 7.0 cc rejects these. */
21812 ppc = (char**) pcpcc;
21813 pcpcc = (char const *const *) ppc;
21814 { /* SCO 3.2v4 cc rejects this. */
21816 char const *s = 0 ? (char *) 0 : (char const *) 0;
21821 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21822 int x[] = {25, 17};
21823 const int *foo = &x[0];
21826 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21827 typedef const int *iptr;
21831 { /* AIX XL C 1.02.0.0 rejects this saying
21832 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21833 struct s { int j; const int *ap[3]; };
21834 struct s *b; b->j = 5;
21836 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21837 const int foo = 10;
21838 if (!foo) return 0;
21840 return !cs[0] && !zero.x;
21847 rm -f conftest.$ac_objext
21848 if { (ac_try="$ac_compile"
21849 case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_compile") 2>conftest.er1
21856 grep -v '^ *+' conftest.er1 >conftest.err
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } && {
21861 test -z "$ac_c_werror_flag" ||
21862 test ! -s conftest.err
21863 } && test -s conftest.$ac_objext; then
21866 echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21874 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21875 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21876 if test $ac_cv_c_const = no; then
21878 cat >>confdefs.h <<\_ACEOF
21886 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21887 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21889 # The order of these tests is important.
21890 cat >conftest.$ac_ext <<_ACEOF
21893 cat confdefs.h >>conftest.$ac_ext
21894 cat >>conftest.$ac_ext <<_ACEOF
21895 /* end confdefs.h. */
21896 #include <sys/statvfs.h>
21897 #include <sys/fstyp.h>
21899 if { (ac_try="$ac_cpp conftest.$ac_ext"
21900 case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21907 grep -v '^ *+' conftest.er1 >conftest.err
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } >/dev/null && {
21912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21913 test ! -s conftest.err
21915 cat >>confdefs.h <<\_ACEOF
21916 #define FSTYPE_STATVFS 1
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21926 rm -f conftest.err conftest.$ac_ext
21927 if test $fstype = no; then
21928 cat >conftest.$ac_ext <<_ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h. */
21934 #include <sys/statfs.h>
21935 #include <sys/fstyp.h>
21937 if { (ac_try="$ac_cpp conftest.$ac_ext"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21945 grep -v '^ *+' conftest.er1 >conftest.err
21947 cat conftest.err >&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } >/dev/null && {
21950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21951 test ! -s conftest.err
21953 cat >>confdefs.h <<\_ACEOF
21954 #define FSTYPE_USG_STATFS 1
21958 echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21964 rm -f conftest.err conftest.$ac_ext
21966 if test $fstype = no; then
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 #include <sys/statfs.h>
21974 #include <sys/vmount.h>
21976 if { (ac_try="$ac_cpp conftest.$ac_ext"
21977 case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21984 grep -v '^ *+' conftest.er1 >conftest.err
21986 cat conftest.err >&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } >/dev/null && {
21989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21990 test ! -s conftest.err
21992 cat >>confdefs.h <<\_ACEOF
21993 #define FSTYPE_AIX_STATFS 1
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
22003 rm -f conftest.err conftest.$ac_ext
22005 if test $fstype = no; then
22006 cat >conftest.$ac_ext <<_ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h. */
22012 #include <mntent.h>
22014 if { (ac_try="$ac_cpp conftest.$ac_ext"
22015 case "(($ac_try" in
22016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017 *) ac_try_echo=$ac_try;;
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22022 grep -v '^ *+' conftest.er1 >conftest.err
22024 cat conftest.err >&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } >/dev/null && {
22027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22028 test ! -s conftest.err
22030 cat >>confdefs.h <<\_ACEOF
22031 #define FSTYPE_MNTENT 1
22035 echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22041 rm -f conftest.err conftest.$ac_ext
22043 if test $fstype = no; then
22044 cat >conftest.$ac_ext <<_ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22050 #include <sys/mount.h>
22053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22054 $EGREP "f_type;" >/dev/null 2>&1; then
22055 cat >>confdefs.h <<\_ACEOF
22056 #define FSTYPE_STATFS 1
22063 if test $fstype = no; then
22064 cat >conftest.$ac_ext <<_ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 #include <sys/mount.h>
22071 #include <sys/fs_types.h>
22073 if { (ac_try="$ac_cpp conftest.$ac_ext"
22074 case "(($ac_try" in
22075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076 *) ac_try_echo=$ac_try;;
22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22081 grep -v '^ *+' conftest.er1 >conftest.err
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } >/dev/null && {
22086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22087 test ! -s conftest.err
22089 cat >>confdefs.h <<\_ACEOF
22090 #define FSTYPE_GETMNT 1
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22100 rm -f conftest.err conftest.$ac_ext
22102 { echo "$as_me:$LINENO: result: $fstype" >&5
22103 echo "${ECHO_T}$fstype" >&6; }
22105 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22106 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22107 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22108 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22112 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22114 # Is the header compilable?
22115 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22116 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22117 cat >conftest.$ac_ext <<_ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 $ac_includes_default
22124 #include <sys/statvfs.h>
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_compile") 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && {
22140 test -z "$ac_c_werror_flag" ||
22141 test ! -s conftest.err
22142 } && test -s conftest.$ac_objext; then
22143 ac_header_compiler=yes
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ac_header_compiler=no
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22153 echo "${ECHO_T}$ac_header_compiler" >&6; }
22155 # Is the header present?
22156 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22157 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22158 cat >conftest.$ac_ext <<_ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 #include <sys/statvfs.h>
22166 if { (ac_try="$ac_cpp conftest.$ac_ext"
22167 case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22174 grep -v '^ *+' conftest.er1 >conftest.err
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } >/dev/null && {
22179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22180 test ! -s conftest.err
22182 ac_header_preproc=yes
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ac_header_preproc=no
22190 rm -f conftest.err conftest.$ac_ext
22191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22192 echo "${ECHO_T}$ac_header_preproc" >&6; }
22194 # So? What about this header?
22195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22197 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22198 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22200 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22201 ac_header_preproc=yes
22204 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22205 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22206 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
22207 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22209 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22210 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
22211 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22212 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22213 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22214 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22215 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22219 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22220 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22221 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22224 ac_cv_header_sys_statvfs_h=$ac_header_preproc
22226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22227 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22230 if test $ac_cv_header_sys_statvfs_h = yes; then
22232 cat >>confdefs.h <<\_ACEOF
22233 #define HAVE_SYS_STATVFS_H 1
22240 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22241 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22242 if test "${ac_cv_type_signal+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 cat >conftest.$ac_ext <<_ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22251 #include <sys/types.h>
22252 #include <signal.h>
22257 return *(signal (0, 0)) (0) == 1;
22262 rm -f conftest.$ac_objext
22263 if { (ac_try="$ac_compile"
22264 case "(($ac_try" in
22265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266 *) ac_try_echo=$ac_try;;
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269 (eval "$ac_compile") 2>conftest.er1
22271 grep -v '^ *+' conftest.er1 >conftest.err
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } && {
22276 test -z "$ac_c_werror_flag" ||
22277 test ! -s conftest.err
22278 } && test -s conftest.$ac_objext; then
22279 ac_cv_type_signal=int
22281 echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22284 ac_cv_type_signal=void
22287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22289 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22290 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22292 cat >>confdefs.h <<_ACEOF
22293 #define RETSIGTYPE $ac_cv_type_signal
22298 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22299 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22300 if test "${bash_cv_signal_vintage+set}" = set; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 cat >conftest.$ac_ext <<_ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 #include <signal.h>
22316 struct sigaction sa;
22317 sigemptyset(&ss); sigsuspend(&ss);
22318 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22319 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22325 rm -f conftest.$ac_objext conftest$ac_exeext
22326 if { (ac_try="$ac_link"
22327 case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_link") 2>conftest.er1
22334 grep -v '^ *+' conftest.er1 >conftest.err
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } && {
22339 test -z "$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22341 } && test -s conftest$ac_exeext &&
22342 $as_test_x conftest$ac_exeext; then
22343 bash_cv_signal_vintage="posix"
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22349 cat >conftest.$ac_ext <<_ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 #include <signal.h>
22360 int mask = sigmask(SIGINT);
22361 sigsetmask(mask); sigblock(mask); sigpause(mask);
22367 rm -f conftest.$ac_objext conftest$ac_exeext
22368 if { (ac_try="$ac_link"
22369 case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_link") 2>conftest.er1
22376 grep -v '^ *+' conftest.er1 >conftest.err
22378 cat conftest.err >&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && {
22381 test -z "$ac_c_werror_flag" ||
22382 test ! -s conftest.err
22383 } && test -s conftest$ac_exeext &&
22384 $as_test_x conftest$ac_exeext; then
22385 bash_cv_signal_vintage="4.2bsd"
22387 echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22391 cat >conftest.$ac_ext <<_ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22398 #include <signal.h>
22399 RETSIGTYPE foo() { }
22404 int mask = sigmask(SIGINT);
22405 sigset(SIGINT, foo); sigrelse(SIGINT);
22406 sighold(SIGINT); sigpause(SIGINT);
22412 rm -f conftest.$ac_objext conftest$ac_exeext
22413 if { (ac_try="$ac_link"
22414 case "(($ac_try" in
22415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416 *) ac_try_echo=$ac_try;;
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419 (eval "$ac_link") 2>conftest.er1
22421 grep -v '^ *+' conftest.er1 >conftest.err
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest$ac_exeext &&
22429 $as_test_x conftest$ac_exeext; then
22430 bash_cv_signal_vintage="svr3"
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22435 bash_cv_signal_vintage="v7"
22439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22440 conftest$ac_exeext conftest.$ac_ext
22444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22445 conftest$ac_exeext conftest.$ac_ext
22449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22450 conftest$ac_exeext conftest.$ac_ext
22454 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22455 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22456 if test "$bash_cv_signal_vintage" = "posix"; then
22457 cat >>confdefs.h <<\_ACEOF
22458 #define HAVE_POSIX_SIGNALS 1
22461 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22462 cat >>confdefs.h <<\_ACEOF
22463 #define HAVE_BSD_SIGNALS 1
22466 elif test "$bash_cv_signal_vintage" = "svr3"; then
22467 cat >>confdefs.h <<\_ACEOF
22468 #define HAVE_USG_SIGHOLD 1
22473 { echo "$as_me:$LINENO: checking for mode_t" >&5
22474 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22475 if test "${ac_cv_type_mode_t+set}" = set; then
22476 echo $ECHO_N "(cached) $ECHO_C" >&6
22478 cat >conftest.$ac_ext <<_ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 $ac_includes_default
22485 typedef mode_t ac__type_new_;
22489 if ((ac__type_new_ *) 0)
22491 if (sizeof (ac__type_new_))
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504 (eval "$ac_compile") 2>conftest.er1
22506 grep -v '^ *+' conftest.er1 >conftest.err
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } && {
22511 test -z "$ac_c_werror_flag" ||
22512 test ! -s conftest.err
22513 } && test -s conftest.$ac_objext; then
22514 ac_cv_type_mode_t=yes
22516 echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22519 ac_cv_type_mode_t=no
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22525 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22526 if test $ac_cv_type_mode_t = yes; then
22530 cat >>confdefs.h <<_ACEOF
22536 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22537 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22538 if test "${ac_cv_type_uid_t+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 cat >conftest.$ac_ext <<_ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22547 #include <sys/types.h>
22550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22551 $EGREP "uid_t" >/dev/null 2>&1; then
22552 ac_cv_type_uid_t=yes
22554 ac_cv_type_uid_t=no
22559 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22560 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22561 if test $ac_cv_type_uid_t = no; then
22563 cat >>confdefs.h <<\_ACEOF
22568 cat >>confdefs.h <<\_ACEOF
22574 { echo "$as_me:$LINENO: checking for size_t" >&5
22575 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22576 if test "${ac_cv_type_size_t+set}" = set; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22579 cat >conftest.$ac_ext <<_ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 $ac_includes_default
22586 typedef size_t ac__type_new_;
22590 if ((ac__type_new_ *) 0)
22592 if (sizeof (ac__type_new_))
22598 rm -f conftest.$ac_objext
22599 if { (ac_try="$ac_compile"
22600 case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605 (eval "$ac_compile") 2>conftest.er1
22607 grep -v '^ *+' conftest.er1 >conftest.err
22609 cat conftest.err >&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } && {
22612 test -z "$ac_c_werror_flag" ||
22613 test ! -s conftest.err
22614 } && test -s conftest.$ac_objext; then
22615 ac_cv_type_size_t=yes
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22620 ac_cv_type_size_t=no
22623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22625 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22626 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22627 if test $ac_cv_type_size_t = yes; then
22631 cat >>confdefs.h <<_ACEOF
22632 #define size_t unsigned int
22637 { echo "$as_me:$LINENO: checking for pid_t" >&5
22638 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22639 if test "${ac_cv_type_pid_t+set}" = set; then
22640 echo $ECHO_N "(cached) $ECHO_C" >&6
22642 cat >conftest.$ac_ext <<_ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h. */
22648 $ac_includes_default
22649 typedef pid_t ac__type_new_;
22653 if ((ac__type_new_ *) 0)
22655 if (sizeof (ac__type_new_))
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_compile") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest.$ac_objext; then
22678 ac_cv_type_pid_t=yes
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_cv_type_pid_t=no
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22689 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22690 if test $ac_cv_type_pid_t = yes; then
22694 cat >>confdefs.h <<_ACEOF
22700 { echo "$as_me:$LINENO: checking for off_t" >&5
22701 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22702 if test "${ac_cv_type_off_t+set}" = set; then
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22711 $ac_includes_default
22712 typedef off_t ac__type_new_;
22716 if ((ac__type_new_ *) 0)
22718 if (sizeof (ac__type_new_))
22724 rm -f conftest.$ac_objext
22725 if { (ac_try="$ac_compile"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_compile") 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } && {
22738 test -z "$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22740 } && test -s conftest.$ac_objext; then
22741 ac_cv_type_off_t=yes
22743 echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22746 ac_cv_type_off_t=no
22749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22752 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22753 if test $ac_cv_type_off_t = yes; then
22757 cat >>confdefs.h <<_ACEOF
22758 #define off_t long int
22763 { echo "$as_me:$LINENO: checking for ino_t" >&5
22764 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22765 if test "${ac_cv_type_ino_t+set}" = set; then
22766 echo $ECHO_N "(cached) $ECHO_C" >&6
22768 cat >conftest.$ac_ext <<_ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h. */
22774 $ac_includes_default
22775 typedef ino_t ac__type_new_;
22779 if ((ac__type_new_ *) 0)
22781 if (sizeof (ac__type_new_))
22787 rm -f conftest.$ac_objext
22788 if { (ac_try="$ac_compile"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_compile") 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } && {
22801 test -z "$ac_c_werror_flag" ||
22802 test ! -s conftest.err
22803 } && test -s conftest.$ac_objext; then
22804 ac_cv_type_ino_t=yes
22806 echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22809 ac_cv_type_ino_t=no
22812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22814 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22815 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22816 if test $ac_cv_type_ino_t = yes; then
22820 cat >>confdefs.h <<_ACEOF
22821 #define ino_t unsigned long
22826 { echo "$as_me:$LINENO: checking for dev_t" >&5
22827 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22828 if test "${ac_cv_type_dev_t+set}" = set; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 $ac_includes_default
22838 typedef dev_t ac__type_new_;
22842 if ((ac__type_new_ *) 0)
22844 if (sizeof (ac__type_new_))
22850 rm -f conftest.$ac_objext
22851 if { (ac_try="$ac_compile"
22852 case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857 (eval "$ac_compile") 2>conftest.er1
22859 grep -v '^ *+' conftest.er1 >conftest.err
22861 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } && {
22864 test -z "$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22866 } && test -s conftest.$ac_objext; then
22867 ac_cv_type_dev_t=yes
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 ac_cv_type_dev_t=no
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22878 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22879 if test $ac_cv_type_dev_t = yes; then
22883 cat >>confdefs.h <<_ACEOF
22884 #define dev_t unsigned long
22889 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22890 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22891 if test "${ac_cv_type_daddr_t+set}" = set; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22894 cat >conftest.$ac_ext <<_ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22900 $ac_includes_default
22901 typedef daddr_t ac__type_new_;
22905 if ((ac__type_new_ *) 0)
22907 if (sizeof (ac__type_new_))
22913 rm -f conftest.$ac_objext
22914 if { (ac_try="$ac_compile"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_compile") 2>conftest.er1
22922 grep -v '^ *+' conftest.er1 >conftest.err
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest.$ac_objext; then
22930 ac_cv_type_daddr_t=yes
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 ac_cv_type_daddr_t=no
22938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22941 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22942 if test $ac_cv_type_daddr_t = yes; then
22946 cat >>confdefs.h <<_ACEOF
22947 #define daddr_t long
22952 { echo "$as_me:$LINENO: checking for major_t" >&5
22953 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22954 if test "${ac_cv_type_major_t+set}" = set; then
22955 echo $ECHO_N "(cached) $ECHO_C" >&6
22957 cat >conftest.$ac_ext <<_ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22963 $ac_includes_default
22964 typedef major_t ac__type_new_;
22968 if ((ac__type_new_ *) 0)
22970 if (sizeof (ac__type_new_))
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22985 grep -v '^ *+' conftest.er1 >conftest.err
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_cv_type_major_t=yes
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_cv_type_major_t=no
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23003 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23004 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23005 if test $ac_cv_type_major_t = yes; then
23009 cat >>confdefs.h <<_ACEOF
23010 #define major_t int
23015 { echo "$as_me:$LINENO: checking for minor_t" >&5
23016 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23017 if test "${ac_cv_type_minor_t+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 $ac_includes_default
23027 typedef minor_t ac__type_new_;
23031 if ((ac__type_new_ *) 0)
23033 if (sizeof (ac__type_new_))
23039 rm -f conftest.$ac_objext
23040 if { (ac_try="$ac_compile"
23041 case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_compile") 2>conftest.er1
23048 grep -v '^ *+' conftest.er1 >conftest.err
23050 cat conftest.err >&5
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); } && {
23053 test -z "$ac_c_werror_flag" ||
23054 test ! -s conftest.err
23055 } && test -s conftest.$ac_objext; then
23056 ac_cv_type_minor_t=yes
23058 echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23061 ac_cv_type_minor_t=no
23064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23066 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23067 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23068 if test $ac_cv_type_minor_t = yes; then
23072 cat >>confdefs.h <<_ACEOF
23073 #define minor_t int
23078 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23079 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23080 if test "${ac_cv_type_ssize_t+set}" = set; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 cat >conftest.$ac_ext <<_ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 $ac_includes_default
23090 typedef ssize_t ac__type_new_;
23094 if ((ac__type_new_ *) 0)
23096 if (sizeof (ac__type_new_))
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_type_ssize_t=yes
23121 echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23124 ac_cv_type_ssize_t=no
23127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23129 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23130 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23131 if test $ac_cv_type_ssize_t = yes; then
23135 cat >>confdefs.h <<_ACEOF
23136 #define ssize_t int
23141 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23142 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23143 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23146 cat >conftest.$ac_ext <<_ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h. */
23152 $ac_includes_default
23156 static struct stat ac_aggr;
23157 if (ac_aggr.st_blocks)
23163 rm -f conftest.$ac_objext
23164 if { (ac_try="$ac_compile"
23165 case "(($ac_try" in
23166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167 *) ac_try_echo=$ac_try;;
23169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170 (eval "$ac_compile") 2>conftest.er1
23172 grep -v '^ *+' conftest.er1 >conftest.err
23174 cat conftest.err >&5
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); } && {
23177 test -z "$ac_c_werror_flag" ||
23178 test ! -s conftest.err
23179 } && test -s conftest.$ac_objext; then
23180 ac_cv_member_struct_stat_st_blocks=yes
23182 echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23185 cat >conftest.$ac_ext <<_ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 $ac_includes_default
23195 static struct stat ac_aggr;
23196 if (sizeof ac_aggr.st_blocks)
23202 rm -f conftest.$ac_objext
23203 if { (ac_try="$ac_compile"
23204 case "(($ac_try" in
23205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206 *) ac_try_echo=$ac_try;;
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209 (eval "$ac_compile") 2>conftest.er1
23211 grep -v '^ *+' conftest.er1 >conftest.err
23213 cat conftest.err >&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); } && {
23216 test -z "$ac_c_werror_flag" ||
23217 test ! -s conftest.err
23218 } && test -s conftest.$ac_objext; then
23219 ac_cv_member_struct_stat_st_blocks=yes
23221 echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23224 ac_cv_member_struct_stat_st_blocks=no
23227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23232 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23233 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23234 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23236 cat >>confdefs.h <<_ACEOF
23237 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_ST_BLOCKS 1
23246 case " $LIBOBJS " in
23247 *" fileblocks.$ac_objext "* ) ;;
23248 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23255 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23256 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23257 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23258 echo $ECHO_N "(cached) $ECHO_C" >&6
23260 cat >conftest.$ac_ext <<_ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23266 $ac_includes_default
23270 static struct stat ac_aggr;
23271 if (ac_aggr.st_rdev)
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284 (eval "$ac_compile") 2>conftest.er1
23286 grep -v '^ *+' conftest.er1 >conftest.err
23288 cat conftest.err >&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } && {
23291 test -z "$ac_c_werror_flag" ||
23292 test ! -s conftest.err
23293 } && test -s conftest.$ac_objext; then
23294 ac_cv_member_struct_stat_st_rdev=yes
23296 echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23299 cat >conftest.$ac_ext <<_ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h. */
23305 $ac_includes_default
23309 static struct stat ac_aggr;
23310 if (sizeof ac_aggr.st_rdev)
23316 rm -f conftest.$ac_objext
23317 if { (ac_try="$ac_compile"
23318 case "(($ac_try" in
23319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320 *) ac_try_echo=$ac_try;;
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323 (eval "$ac_compile") 2>conftest.er1
23325 grep -v '^ *+' conftest.er1 >conftest.err
23327 cat conftest.err >&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } && {
23330 test -z "$ac_c_werror_flag" ||
23331 test ! -s conftest.err
23332 } && test -s conftest.$ac_objext; then
23333 ac_cv_member_struct_stat_st_rdev=yes
23335 echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23338 ac_cv_member_struct_stat_st_rdev=no
23341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23347 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23348 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23350 cat >>confdefs.h <<_ACEOF
23351 #define HAVE_STRUCT_STAT_ST_RDEV 1
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_ST_RDEV 1
23362 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23363 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23364 if test "${ac_cv_struct_tm+set}" = set; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
23367 cat >conftest.$ac_ext <<_ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23373 #include <sys/types.h>
23380 int *p = &tm.tm_sec;
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393 (eval "$ac_compile") 2>conftest.er1
23395 grep -v '^ *+' conftest.er1 >conftest.err
23397 cat conftest.err >&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } && {
23400 test -z "$ac_c_werror_flag" ||
23401 test ! -s conftest.err
23402 } && test -s conftest.$ac_objext; then
23403 ac_cv_struct_tm=time.h
23405 echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23408 ac_cv_struct_tm=sys/time.h
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23414 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23415 if test $ac_cv_struct_tm = sys/time.h; then
23417 cat >>confdefs.h <<\_ACEOF
23418 #define TM_IN_SYS_TIME 1
23423 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23424 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23425 if test "${ac_cv_c_const+set}" = set; then
23426 echo $ECHO_N "(cached) $ECHO_C" >&6
23428 cat >conftest.$ac_ext <<_ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h. */
23438 /* FIXME: Include the comments suggested by Paul. */
23439 #ifndef __cplusplus
23440 /* Ultrix mips cc rejects this. */
23441 typedef int charset[2];
23443 /* SunOS 4.1.1 cc rejects this. */
23444 char const *const *pcpcc;
23446 /* NEC SVR4.0.2 mips cc rejects this. */
23447 struct point {int x, y;};
23448 static struct point const zero = {0,0};
23449 /* AIX XL C 1.02.0.0 rejects this.
23450 It does not let you subtract one const X* pointer from another in
23451 an arm of an if-expression whose if-part is not a constant
23453 const char *g = "string";
23454 pcpcc = &g + (g ? g-g : 0);
23455 /* HPUX 7.0 cc rejects these. */
23457 ppc = (char**) pcpcc;
23458 pcpcc = (char const *const *) ppc;
23459 { /* SCO 3.2v4 cc rejects this. */
23461 char const *s = 0 ? (char *) 0 : (char const *) 0;
23466 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23467 int x[] = {25, 17};
23468 const int *foo = &x[0];
23471 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23472 typedef const int *iptr;
23476 { /* AIX XL C 1.02.0.0 rejects this saying
23477 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23478 struct s { int j; const int *ap[3]; };
23479 struct s *b; b->j = 5;
23481 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23482 const int foo = 10;
23483 if (!foo) return 0;
23485 return !cs[0] && !zero.x;
23492 rm -f conftest.$ac_objext
23493 if { (ac_try="$ac_compile"
23494 case "(($ac_try" in
23495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23499 (eval "$ac_compile") 2>conftest.er1
23501 grep -v '^ *+' conftest.er1 >conftest.err
23503 cat conftest.err >&5
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); } && {
23506 test -z "$ac_c_werror_flag" ||
23507 test ! -s conftest.err
23508 } && test -s conftest.$ac_objext; then
23511 echo "$as_me: failed program was:" >&5
23512 sed 's/^/| /' conftest.$ac_ext >&5
23517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23519 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23520 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23521 if test $ac_cv_c_const = no; then
23523 cat >>confdefs.h <<\_ACEOF
23531 { echo "$as_me:$LINENO: checking for char" >&5
23532 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23533 if test "${ac_cv_type_char+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
23536 cat >conftest.$ac_ext <<_ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23542 $ac_includes_default
23543 typedef char ac__type_new_;
23547 if ((ac__type_new_ *) 0)
23549 if (sizeof (ac__type_new_))
23555 rm -f conftest.$ac_objext
23556 if { (ac_try="$ac_compile"
23557 case "(($ac_try" in
23558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23559 *) ac_try_echo=$ac_try;;
23561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23562 (eval "$ac_compile") 2>conftest.er1
23564 grep -v '^ *+' conftest.er1 >conftest.err
23566 cat conftest.err >&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } && {
23569 test -z "$ac_c_werror_flag" ||
23570 test ! -s conftest.err
23571 } && test -s conftest.$ac_objext; then
23572 ac_cv_type_char=yes
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23582 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23583 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23585 # The cast to long int works around a bug in the HP C Compiler
23586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23588 # This bug is HP SR number 8606223364.
23589 { echo "$as_me:$LINENO: checking size of char" >&5
23590 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23591 if test "${ac_cv_sizeof_char+set}" = set; then
23592 echo $ECHO_N "(cached) $ECHO_C" >&6
23594 if test "$cross_compiling" = yes; then
23595 # Depending upon the size, compute the lo and hi bounds.
23596 cat >conftest.$ac_ext <<_ACEOF
23599 cat confdefs.h >>conftest.$ac_ext
23600 cat >>conftest.$ac_ext <<_ACEOF
23601 /* end confdefs.h. */
23602 $ac_includes_default
23603 typedef char ac__type_sizeof_;
23607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23614 rm -f conftest.$ac_objext
23615 if { (ac_try="$ac_compile"
23616 case "(($ac_try" in
23617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618 *) ac_try_echo=$ac_try;;
23620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621 (eval "$ac_compile") 2>conftest.er1
23623 grep -v '^ *+' conftest.er1 >conftest.err
23625 cat conftest.err >&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); } && {
23628 test -z "$ac_c_werror_flag" ||
23629 test ! -s conftest.err
23630 } && test -s conftest.$ac_objext; then
23633 cat >conftest.$ac_ext <<_ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 $ac_includes_default
23640 typedef char ac__type_sizeof_;
23644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23651 rm -f conftest.$ac_objext
23652 if { (ac_try="$ac_compile"
23653 case "(($ac_try" in
23654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655 *) ac_try_echo=$ac_try;;
23657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658 (eval "$ac_compile") 2>conftest.er1
23660 grep -v '^ *+' conftest.er1 >conftest.err
23662 cat conftest.err >&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } && {
23665 test -z "$ac_c_werror_flag" ||
23666 test ! -s conftest.err
23667 } && test -s conftest.$ac_objext; then
23668 ac_hi=$ac_mid; break
23670 echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23673 ac_lo=`expr $ac_mid + 1`
23674 if test $ac_lo -le $ac_mid; then
23678 ac_mid=`expr 2 '*' $ac_mid + 1`
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23687 cat >conftest.$ac_ext <<_ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h. */
23693 $ac_includes_default
23694 typedef char ac__type_sizeof_;
23698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23705 rm -f conftest.$ac_objext
23706 if { (ac_try="$ac_compile"
23707 case "(($ac_try" in
23708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709 *) ac_try_echo=$ac_try;;
23711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23712 (eval "$ac_compile") 2>conftest.er1
23714 grep -v '^ *+' conftest.er1 >conftest.err
23716 cat conftest.err >&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } && {
23719 test -z "$ac_c_werror_flag" ||
23720 test ! -s conftest.err
23721 } && test -s conftest.$ac_objext; then
23724 cat >conftest.$ac_ext <<_ACEOF
23727 cat confdefs.h >>conftest.$ac_ext
23728 cat >>conftest.$ac_ext <<_ACEOF
23729 /* end confdefs.h. */
23730 $ac_includes_default
23731 typedef char ac__type_sizeof_;
23735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23742 rm -f conftest.$ac_objext
23743 if { (ac_try="$ac_compile"
23744 case "(($ac_try" in
23745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_compile") 2>conftest.er1
23751 grep -v '^ *+' conftest.er1 >conftest.err
23753 cat conftest.err >&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && {
23756 test -z "$ac_c_werror_flag" ||
23757 test ! -s conftest.err
23758 } && test -s conftest.$ac_objext; then
23759 ac_lo=$ac_mid; break
23761 echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23764 ac_hi=`expr '(' $ac_mid ')' - 1`
23765 if test $ac_mid -le $ac_hi; then
23769 ac_mid=`expr 2 '*' $ac_mid`
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23775 echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785 # Binary search between lo and hi bounds.
23786 while test "x$ac_lo" != "x$ac_hi"; do
23787 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23788 cat >conftest.$ac_ext <<_ACEOF
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h. */
23794 $ac_includes_default
23795 typedef char ac__type_sizeof_;
23799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23806 rm -f conftest.$ac_objext
23807 if { (ac_try="$ac_compile"
23808 case "(($ac_try" in
23809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810 *) ac_try_echo=$ac_try;;
23812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23813 (eval "$ac_compile") 2>conftest.er1
23815 grep -v '^ *+' conftest.er1 >conftest.err
23817 cat conftest.err >&5
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); } && {
23820 test -z "$ac_c_werror_flag" ||
23821 test ! -s conftest.err
23822 } && test -s conftest.$ac_objext; then
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23828 ac_lo=`expr '(' $ac_mid ')' + 1`
23831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23834 ?*) ac_cv_sizeof_char=$ac_lo;;
23835 '') if test "$ac_cv_type_char" = yes; then
23836 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23837 See \`config.log' for more details." >&5
23838 echo "$as_me: error: cannot compute sizeof (char)
23839 See \`config.log' for more details." >&2;}
23840 { (exit 77); exit 77; }; }
23842 ac_cv_sizeof_char=0
23846 cat >conftest.$ac_ext <<_ACEOF
23849 cat confdefs.h >>conftest.$ac_ext
23850 cat >>conftest.$ac_ext <<_ACEOF
23851 /* end confdefs.h. */
23852 $ac_includes_default
23853 typedef char ac__type_sizeof_;
23854 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23855 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23857 #include <stdlib.h>
23862 FILE *f = fopen ("conftest.val", "w");
23865 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23867 long int i = longval ();
23868 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23870 fprintf (f, "%ld\n", i);
23874 unsigned long int i = ulongval ();
23875 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23877 fprintf (f, "%lu\n", i);
23879 return ferror (f) || fclose (f) != 0;
23885 rm -f conftest$ac_exeext
23886 if { (ac_try="$ac_link"
23887 case "(($ac_try" in
23888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23889 *) ac_try_echo=$ac_try;;
23891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23892 (eval "$ac_link") 2>&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23896 { (case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901 (eval "$ac_try") 2>&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); }; }; then
23905 ac_cv_sizeof_char=`cat conftest.val`
23907 echo "$as_me: program exited with status $ac_status" >&5
23908 echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23911 ( exit $ac_status )
23912 if test "$ac_cv_type_char" = yes; then
23913 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23914 See \`config.log' for more details." >&5
23915 echo "$as_me: error: cannot compute sizeof (char)
23916 See \`config.log' for more details." >&2;}
23917 { (exit 77); exit 77; }; }
23919 ac_cv_sizeof_char=0
23922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23926 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23927 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23931 cat >>confdefs.h <<_ACEOF
23932 #define SIZEOF_CHAR $ac_cv_sizeof_char
23936 { echo "$as_me:$LINENO: checking for short int" >&5
23937 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23938 if test "${ac_cv_type_short_int+set}" = set; then
23939 echo $ECHO_N "(cached) $ECHO_C" >&6
23941 cat >conftest.$ac_ext <<_ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23947 $ac_includes_default
23948 typedef short int ac__type_new_;
23952 if ((ac__type_new_ *) 0)
23954 if (sizeof (ac__type_new_))
23960 rm -f conftest.$ac_objext
23961 if { (ac_try="$ac_compile"
23962 case "(($ac_try" in
23963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964 *) ac_try_echo=$ac_try;;
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967 (eval "$ac_compile") 2>conftest.er1
23969 grep -v '^ *+' conftest.er1 >conftest.err
23971 cat conftest.err >&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); } && {
23974 test -z "$ac_c_werror_flag" ||
23975 test ! -s conftest.err
23976 } && test -s conftest.$ac_objext; then
23977 ac_cv_type_short_int=yes
23979 echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23982 ac_cv_type_short_int=no
23985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23987 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23988 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23990 # The cast to long int works around a bug in the HP C Compiler
23991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23993 # This bug is HP SR number 8606223364.
23994 { echo "$as_me:$LINENO: checking size of short int" >&5
23995 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23996 if test "${ac_cv_sizeof_short_int+set}" = set; then
23997 echo $ECHO_N "(cached) $ECHO_C" >&6
23999 if test "$cross_compiling" = yes; then
24000 # Depending upon the size, compute the lo and hi bounds.
24001 cat >conftest.$ac_ext <<_ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24007 $ac_includes_default
24008 typedef short int ac__type_sizeof_;
24012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24019 rm -f conftest.$ac_objext
24020 if { (ac_try="$ac_compile"
24021 case "(($ac_try" in
24022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023 *) ac_try_echo=$ac_try;;
24025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24026 (eval "$ac_compile") 2>conftest.er1
24028 grep -v '^ *+' conftest.er1 >conftest.err
24030 cat conftest.err >&5
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); } && {
24033 test -z "$ac_c_werror_flag" ||
24034 test ! -s conftest.err
24035 } && test -s conftest.$ac_objext; then
24038 cat >conftest.$ac_ext <<_ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h. */
24044 $ac_includes_default
24045 typedef short int ac__type_sizeof_;
24049 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24056 rm -f conftest.$ac_objext
24057 if { (ac_try="$ac_compile"
24058 case "(($ac_try" in
24059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060 *) ac_try_echo=$ac_try;;
24062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24063 (eval "$ac_compile") 2>conftest.er1
24065 grep -v '^ *+' conftest.er1 >conftest.err
24067 cat conftest.err >&5
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); } && {
24070 test -z "$ac_c_werror_flag" ||
24071 test ! -s conftest.err
24072 } && test -s conftest.$ac_objext; then
24073 ac_hi=$ac_mid; break
24075 echo "$as_me: failed program was:" >&5
24076 sed 's/^/| /' conftest.$ac_ext >&5
24078 ac_lo=`expr $ac_mid + 1`
24079 if test $ac_lo -le $ac_mid; then
24083 ac_mid=`expr 2 '*' $ac_mid + 1`
24086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24089 echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24092 cat >conftest.$ac_ext <<_ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h. */
24098 $ac_includes_default
24099 typedef short int ac__type_sizeof_;
24103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24110 rm -f conftest.$ac_objext
24111 if { (ac_try="$ac_compile"
24112 case "(($ac_try" in
24113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114 *) ac_try_echo=$ac_try;;
24116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24117 (eval "$ac_compile") 2>conftest.er1
24119 grep -v '^ *+' conftest.er1 >conftest.err
24121 cat conftest.err >&5
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); } && {
24124 test -z "$ac_c_werror_flag" ||
24125 test ! -s conftest.err
24126 } && test -s conftest.$ac_objext; then
24129 cat >conftest.$ac_ext <<_ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h. */
24135 $ac_includes_default
24136 typedef short int ac__type_sizeof_;
24140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24154 (eval "$ac_compile") 2>conftest.er1
24156 grep -v '^ *+' conftest.er1 >conftest.err
24158 cat conftest.err >&5
24159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); } && {
24161 test -z "$ac_c_werror_flag" ||
24162 test ! -s conftest.err
24163 } && test -s conftest.$ac_objext; then
24164 ac_lo=$ac_mid; break
24166 echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24169 ac_hi=`expr '(' $ac_mid ')' - 1`
24170 if test $ac_mid -le $ac_hi; then
24174 ac_mid=`expr 2 '*' $ac_mid`
24177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 echo "$as_me: failed program was:" >&5
24181 sed 's/^/| /' conftest.$ac_ext >&5
24186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24190 # Binary search between lo and hi bounds.
24191 while test "x$ac_lo" != "x$ac_hi"; do
24192 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24193 cat >conftest.$ac_ext <<_ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h. */
24199 $ac_includes_default
24200 typedef short int ac__type_sizeof_;
24204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24211 rm -f conftest.$ac_objext
24212 if { (ac_try="$ac_compile"
24213 case "(($ac_try" in
24214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215 *) ac_try_echo=$ac_try;;
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218 (eval "$ac_compile") 2>conftest.er1
24220 grep -v '^ *+' conftest.er1 >conftest.err
24222 cat conftest.err >&5
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); } && {
24225 test -z "$ac_c_werror_flag" ||
24226 test ! -s conftest.err
24227 } && test -s conftest.$ac_objext; then
24230 echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24233 ac_lo=`expr '(' $ac_mid ')' + 1`
24236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24239 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24240 '') if test "$ac_cv_type_short_int" = yes; then
24241 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24242 See \`config.log' for more details." >&5
24243 echo "$as_me: error: cannot compute sizeof (short int)
24244 See \`config.log' for more details." >&2;}
24245 { (exit 77); exit 77; }; }
24247 ac_cv_sizeof_short_int=0
24251 cat >conftest.$ac_ext <<_ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h. */
24257 $ac_includes_default
24258 typedef short int ac__type_sizeof_;
24259 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24260 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24262 #include <stdlib.h>
24267 FILE *f = fopen ("conftest.val", "w");
24270 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24272 long int i = longval ();
24273 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24275 fprintf (f, "%ld\n", i);
24279 unsigned long int i = ulongval ();
24280 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24282 fprintf (f, "%lu\n", i);
24284 return ferror (f) || fclose (f) != 0;
24290 rm -f conftest$ac_exeext
24291 if { (ac_try="$ac_link"
24292 case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_link") 2>&5
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24301 { (case "(($ac_try" in
24302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303 *) ac_try_echo=$ac_try;;
24305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306 (eval "$ac_try") 2>&5
24308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 (exit $ac_status); }; }; then
24310 ac_cv_sizeof_short_int=`cat conftest.val`
24312 echo "$as_me: program exited with status $ac_status" >&5
24313 echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24316 ( exit $ac_status )
24317 if test "$ac_cv_type_short_int" = yes; then
24318 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24319 See \`config.log' for more details." >&5
24320 echo "$as_me: error: cannot compute sizeof (short int)
24321 See \`config.log' for more details." >&2;}
24322 { (exit 77); exit 77; }; }
24324 ac_cv_sizeof_short_int=0
24327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24331 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24332 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24336 cat >>confdefs.h <<_ACEOF
24337 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24341 { echo "$as_me:$LINENO: checking for int" >&5
24342 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24343 if test "${ac_cv_type_int+set}" = set; then
24344 echo $ECHO_N "(cached) $ECHO_C" >&6
24346 cat >conftest.$ac_ext <<_ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h. */
24352 $ac_includes_default
24353 typedef int ac__type_new_;
24357 if ((ac__type_new_ *) 0)
24359 if (sizeof (ac__type_new_))
24365 rm -f conftest.$ac_objext
24366 if { (ac_try="$ac_compile"
24367 case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_compile") 2>conftest.er1
24374 grep -v '^ *+' conftest.er1 >conftest.err
24376 cat conftest.err >&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } && {
24379 test -z "$ac_c_werror_flag" ||
24380 test ! -s conftest.err
24381 } && test -s conftest.$ac_objext; then
24384 echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24392 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24393 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24395 # The cast to long int works around a bug in the HP C Compiler
24396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24398 # This bug is HP SR number 8606223364.
24399 { echo "$as_me:$LINENO: checking size of int" >&5
24400 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24401 if test "${ac_cv_sizeof_int+set}" = set; then
24402 echo $ECHO_N "(cached) $ECHO_C" >&6
24404 if test "$cross_compiling" = yes; then
24405 # Depending upon the size, compute the lo and hi bounds.
24406 cat >conftest.$ac_ext <<_ACEOF
24409 cat confdefs.h >>conftest.$ac_ext
24410 cat >>conftest.$ac_ext <<_ACEOF
24411 /* end confdefs.h. */
24412 $ac_includes_default
24413 typedef int ac__type_sizeof_;
24417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24424 rm -f conftest.$ac_objext
24425 if { (ac_try="$ac_compile"
24426 case "(($ac_try" in
24427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428 *) ac_try_echo=$ac_try;;
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_compile") 2>conftest.er1
24433 grep -v '^ *+' conftest.er1 >conftest.err
24435 cat conftest.err >&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } && {
24438 test -z "$ac_c_werror_flag" ||
24439 test ! -s conftest.err
24440 } && test -s conftest.$ac_objext; then
24443 cat >conftest.$ac_ext <<_ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24449 $ac_includes_default
24450 typedef int ac__type_sizeof_;
24454 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24461 rm -f conftest.$ac_objext
24462 if { (ac_try="$ac_compile"
24463 case "(($ac_try" in
24464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465 *) ac_try_echo=$ac_try;;
24467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24468 (eval "$ac_compile") 2>conftest.er1
24470 grep -v '^ *+' conftest.er1 >conftest.err
24472 cat conftest.err >&5
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); } && {
24475 test -z "$ac_c_werror_flag" ||
24476 test ! -s conftest.err
24477 } && test -s conftest.$ac_objext; then
24478 ac_hi=$ac_mid; break
24480 echo "$as_me: failed program was:" >&5
24481 sed 's/^/| /' conftest.$ac_ext >&5
24483 ac_lo=`expr $ac_mid + 1`
24484 if test $ac_lo -le $ac_mid; then
24488 ac_mid=`expr 2 '*' $ac_mid + 1`
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24494 echo "$as_me: failed program was:" >&5
24495 sed 's/^/| /' conftest.$ac_ext >&5
24497 cat >conftest.$ac_ext <<_ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h. */
24503 $ac_includes_default
24504 typedef int ac__type_sizeof_;
24508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_compile") 2>conftest.er1
24524 grep -v '^ *+' conftest.er1 >conftest.err
24526 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } && {
24529 test -z "$ac_c_werror_flag" ||
24530 test ! -s conftest.err
24531 } && test -s conftest.$ac_objext; then
24534 cat >conftest.$ac_ext <<_ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h. */
24540 $ac_includes_default
24541 typedef int ac__type_sizeof_;
24545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24552 rm -f conftest.$ac_objext
24553 if { (ac_try="$ac_compile"
24554 case "(($ac_try" in
24555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556 *) ac_try_echo=$ac_try;;
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559 (eval "$ac_compile") 2>conftest.er1
24561 grep -v '^ *+' conftest.er1 >conftest.err
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } && {
24566 test -z "$ac_c_werror_flag" ||
24567 test ! -s conftest.err
24568 } && test -s conftest.$ac_objext; then
24569 ac_lo=$ac_mid; break
24571 echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24574 ac_hi=`expr '(' $ac_mid ')' - 1`
24575 if test $ac_mid -le $ac_hi; then
24579 ac_mid=`expr 2 '*' $ac_mid`
24582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24585 echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24595 # Binary search between lo and hi bounds.
24596 while test "x$ac_lo" != "x$ac_hi"; do
24597 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24598 cat >conftest.$ac_ext <<_ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h. */
24604 $ac_includes_default
24605 typedef int ac__type_sizeof_;
24609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24616 rm -f conftest.$ac_objext
24617 if { (ac_try="$ac_compile"
24618 case "(($ac_try" in
24619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620 *) ac_try_echo=$ac_try;;
24622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623 (eval "$ac_compile") 2>conftest.er1
24625 grep -v '^ *+' conftest.er1 >conftest.err
24627 cat conftest.err >&5
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); } && {
24630 test -z "$ac_c_werror_flag" ||
24631 test ! -s conftest.err
24632 } && test -s conftest.$ac_objext; then
24635 echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24638 ac_lo=`expr '(' $ac_mid ')' + 1`
24641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24644 ?*) ac_cv_sizeof_int=$ac_lo;;
24645 '') if test "$ac_cv_type_int" = yes; then
24646 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24647 See \`config.log' for more details." >&5
24648 echo "$as_me: error: cannot compute sizeof (int)
24649 See \`config.log' for more details." >&2;}
24650 { (exit 77); exit 77; }; }
24656 cat >conftest.$ac_ext <<_ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h. */
24662 $ac_includes_default
24663 typedef int ac__type_sizeof_;
24664 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24665 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24667 #include <stdlib.h>
24672 FILE *f = fopen ("conftest.val", "w");
24675 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24677 long int i = longval ();
24678 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24680 fprintf (f, "%ld\n", i);
24684 unsigned long int i = ulongval ();
24685 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24687 fprintf (f, "%lu\n", i);
24689 return ferror (f) || fclose (f) != 0;
24695 rm -f conftest$ac_exeext
24696 if { (ac_try="$ac_link"
24697 case "(($ac_try" in
24698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699 *) ac_try_echo=$ac_try;;
24701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24702 (eval "$ac_link") 2>&5
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24706 { (case "(($ac_try" in
24707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708 *) ac_try_echo=$ac_try;;
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_try") 2>&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); }; }; then
24715 ac_cv_sizeof_int=`cat conftest.val`
24717 echo "$as_me: program exited with status $ac_status" >&5
24718 echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24721 ( exit $ac_status )
24722 if test "$ac_cv_type_int" = yes; then
24723 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24724 See \`config.log' for more details." >&5
24725 echo "$as_me: error: cannot compute sizeof (int)
24726 See \`config.log' for more details." >&2;}
24727 { (exit 77); exit 77; }; }
24732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24736 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24737 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24741 cat >>confdefs.h <<_ACEOF
24742 #define SIZEOF_INT $ac_cv_sizeof_int
24746 { echo "$as_me:$LINENO: checking for long int" >&5
24747 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24748 if test "${ac_cv_type_long_int+set}" = set; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 cat >conftest.$ac_ext <<_ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 $ac_includes_default
24758 typedef long int ac__type_new_;
24762 if ((ac__type_new_ *) 0)
24764 if (sizeof (ac__type_new_))
24770 rm -f conftest.$ac_objext
24771 if { (ac_try="$ac_compile"
24772 case "(($ac_try" in
24773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774 *) ac_try_echo=$ac_try;;
24776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24777 (eval "$ac_compile") 2>conftest.er1
24779 grep -v '^ *+' conftest.er1 >conftest.err
24781 cat conftest.err >&5
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); } && {
24784 test -z "$ac_c_werror_flag" ||
24785 test ! -s conftest.err
24786 } && test -s conftest.$ac_objext; then
24787 ac_cv_type_long_int=yes
24789 echo "$as_me: failed program was:" >&5
24790 sed 's/^/| /' conftest.$ac_ext >&5
24792 ac_cv_type_long_int=no
24795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24797 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24798 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24800 # The cast to long int works around a bug in the HP C Compiler
24801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24803 # This bug is HP SR number 8606223364.
24804 { echo "$as_me:$LINENO: checking size of long int" >&5
24805 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24806 if test "${ac_cv_sizeof_long_int+set}" = set; then
24807 echo $ECHO_N "(cached) $ECHO_C" >&6
24809 if test "$cross_compiling" = yes; then
24810 # Depending upon the size, compute the lo and hi bounds.
24811 cat >conftest.$ac_ext <<_ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h. */
24817 $ac_includes_default
24818 typedef long int ac__type_sizeof_;
24822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24829 rm -f conftest.$ac_objext
24830 if { (ac_try="$ac_compile"
24831 case "(($ac_try" in
24832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24833 *) ac_try_echo=$ac_try;;
24835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24836 (eval "$ac_compile") 2>conftest.er1
24838 grep -v '^ *+' conftest.er1 >conftest.err
24840 cat conftest.err >&5
24841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); } && {
24843 test -z "$ac_c_werror_flag" ||
24844 test ! -s conftest.err
24845 } && test -s conftest.$ac_objext; then
24848 cat >conftest.$ac_ext <<_ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24854 $ac_includes_default
24855 typedef long int ac__type_sizeof_;
24859 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24866 rm -f conftest.$ac_objext
24867 if { (ac_try="$ac_compile"
24868 case "(($ac_try" in
24869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870 *) ac_try_echo=$ac_try;;
24872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873 (eval "$ac_compile") 2>conftest.er1
24875 grep -v '^ *+' conftest.er1 >conftest.err
24877 cat conftest.err >&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); } && {
24880 test -z "$ac_c_werror_flag" ||
24881 test ! -s conftest.err
24882 } && test -s conftest.$ac_objext; then
24883 ac_hi=$ac_mid; break
24885 echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24888 ac_lo=`expr $ac_mid + 1`
24889 if test $ac_lo -le $ac_mid; then
24893 ac_mid=`expr 2 '*' $ac_mid + 1`
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899 echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24902 cat >conftest.$ac_ext <<_ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 $ac_includes_default
24909 typedef long int ac__type_sizeof_;
24913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24920 rm -f conftest.$ac_objext
24921 if { (ac_try="$ac_compile"
24922 case "(($ac_try" in
24923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924 *) ac_try_echo=$ac_try;;
24926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927 (eval "$ac_compile") 2>conftest.er1
24929 grep -v '^ *+' conftest.er1 >conftest.err
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } && {
24934 test -z "$ac_c_werror_flag" ||
24935 test ! -s conftest.err
24936 } && test -s conftest.$ac_objext; then
24939 cat >conftest.$ac_ext <<_ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h. */
24945 $ac_includes_default
24946 typedef long int ac__type_sizeof_;
24950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24957 rm -f conftest.$ac_objext
24958 if { (ac_try="$ac_compile"
24959 case "(($ac_try" in
24960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961 *) ac_try_echo=$ac_try;;
24963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24964 (eval "$ac_compile") 2>conftest.er1
24966 grep -v '^ *+' conftest.er1 >conftest.err
24968 cat conftest.err >&5
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); } && {
24971 test -z "$ac_c_werror_flag" ||
24972 test ! -s conftest.err
24973 } && test -s conftest.$ac_objext; then
24974 ac_lo=$ac_mid; break
24976 echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24979 ac_hi=`expr '(' $ac_mid ')' - 1`
24980 if test $ac_mid -le $ac_hi; then
24984 ac_mid=`expr 2 '*' $ac_mid`
24987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24990 echo "$as_me: failed program was:" >&5
24991 sed 's/^/| /' conftest.$ac_ext >&5
24996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25000 # Binary search between lo and hi bounds.
25001 while test "x$ac_lo" != "x$ac_hi"; do
25002 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25003 cat >conftest.$ac_ext <<_ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h. */
25009 $ac_includes_default
25010 typedef long int ac__type_sizeof_;
25014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25021 rm -f conftest.$ac_objext
25022 if { (ac_try="$ac_compile"
25023 case "(($ac_try" in
25024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25025 *) ac_try_echo=$ac_try;;
25027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25028 (eval "$ac_compile") 2>conftest.er1
25030 grep -v '^ *+' conftest.er1 >conftest.err
25032 cat conftest.err >&5
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); } && {
25035 test -z "$ac_c_werror_flag" ||
25036 test ! -s conftest.err
25037 } && test -s conftest.$ac_objext; then
25040 echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25043 ac_lo=`expr '(' $ac_mid ')' + 1`
25046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25050 '') if test "$ac_cv_type_long_int" = yes; then
25051 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25052 See \`config.log' for more details." >&5
25053 echo "$as_me: error: cannot compute sizeof (long int)
25054 See \`config.log' for more details." >&2;}
25055 { (exit 77); exit 77; }; }
25057 ac_cv_sizeof_long_int=0
25061 cat >conftest.$ac_ext <<_ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h. */
25067 $ac_includes_default
25068 typedef long int ac__type_sizeof_;
25069 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25070 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25072 #include <stdlib.h>
25077 FILE *f = fopen ("conftest.val", "w");
25080 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25082 long int i = longval ();
25083 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25085 fprintf (f, "%ld\n", i);
25089 unsigned long int i = ulongval ();
25090 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25092 fprintf (f, "%lu\n", i);
25094 return ferror (f) || fclose (f) != 0;
25100 rm -f conftest$ac_exeext
25101 if { (ac_try="$ac_link"
25102 case "(($ac_try" in
25103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25104 *) ac_try_echo=$ac_try;;
25106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107 (eval "$ac_link") 2>&5
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25111 { (case "(($ac_try" in
25112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113 *) ac_try_echo=$ac_try;;
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116 (eval "$ac_try") 2>&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }; then
25120 ac_cv_sizeof_long_int=`cat conftest.val`
25122 echo "$as_me: program exited with status $ac_status" >&5
25123 echo "$as_me: failed program was:" >&5
25124 sed 's/^/| /' conftest.$ac_ext >&5
25126 ( exit $ac_status )
25127 if test "$ac_cv_type_long_int" = yes; then
25128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25129 See \`config.log' for more details." >&5
25130 echo "$as_me: error: cannot compute sizeof (long int)
25131 See \`config.log' for more details." >&2;}
25132 { (exit 77); exit 77; }; }
25134 ac_cv_sizeof_long_int=0
25137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25141 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25142 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25146 cat >>confdefs.h <<_ACEOF
25147 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25151 { echo "$as_me:$LINENO: checking for long long int" >&5
25152 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25153 if test "${ac_cv_type_long_long_int+set}" = set; then
25154 echo $ECHO_N "(cached) $ECHO_C" >&6
25156 cat >conftest.$ac_ext <<_ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h. */
25162 $ac_includes_default
25163 typedef long long int ac__type_new_;
25167 if ((ac__type_new_ *) 0)
25169 if (sizeof (ac__type_new_))
25175 rm -f conftest.$ac_objext
25176 if { (ac_try="$ac_compile"
25177 case "(($ac_try" in
25178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179 *) ac_try_echo=$ac_try;;
25181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25182 (eval "$ac_compile") 2>conftest.er1
25184 grep -v '^ *+' conftest.er1 >conftest.err
25186 cat conftest.err >&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); } && {
25189 test -z "$ac_c_werror_flag" ||
25190 test ! -s conftest.err
25191 } && test -s conftest.$ac_objext; then
25192 ac_cv_type_long_long_int=yes
25194 echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25197 ac_cv_type_long_long_int=no
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25202 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25203 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25205 # The cast to long int works around a bug in the HP C Compiler
25206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25208 # This bug is HP SR number 8606223364.
25209 { echo "$as_me:$LINENO: checking size of long long int" >&5
25210 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25211 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25212 echo $ECHO_N "(cached) $ECHO_C" >&6
25214 if test "$cross_compiling" = yes; then
25215 # Depending upon the size, compute the lo and hi bounds.
25216 cat >conftest.$ac_ext <<_ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h. */
25222 $ac_includes_default
25223 typedef long long int ac__type_sizeof_;
25227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25234 rm -f conftest.$ac_objext
25235 if { (ac_try="$ac_compile"
25236 case "(($ac_try" in
25237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25238 *) ac_try_echo=$ac_try;;
25240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25241 (eval "$ac_compile") 2>conftest.er1
25243 grep -v '^ *+' conftest.er1 >conftest.err
25245 cat conftest.err >&5
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); } && {
25248 test -z "$ac_c_werror_flag" ||
25249 test ! -s conftest.err
25250 } && test -s conftest.$ac_objext; then
25253 cat >conftest.$ac_ext <<_ACEOF
25256 cat confdefs.h >>conftest.$ac_ext
25257 cat >>conftest.$ac_ext <<_ACEOF
25258 /* end confdefs.h. */
25259 $ac_includes_default
25260 typedef long long int ac__type_sizeof_;
25264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278 (eval "$ac_compile") 2>conftest.er1
25280 grep -v '^ *+' conftest.er1 >conftest.err
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } && {
25285 test -z "$ac_c_werror_flag" ||
25286 test ! -s conftest.err
25287 } && test -s conftest.$ac_objext; then
25288 ac_hi=$ac_mid; break
25290 echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25293 ac_lo=`expr $ac_mid + 1`
25294 if test $ac_lo -le $ac_mid; then
25298 ac_mid=`expr 2 '*' $ac_mid + 1`
25301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25304 echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25307 cat >conftest.$ac_ext <<_ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25313 $ac_includes_default
25314 typedef long long int ac__type_sizeof_;
25318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25325 rm -f conftest.$ac_objext
25326 if { (ac_try="$ac_compile"
25327 case "(($ac_try" in
25328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329 *) ac_try_echo=$ac_try;;
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332 (eval "$ac_compile") 2>conftest.er1
25334 grep -v '^ *+' conftest.er1 >conftest.err
25336 cat conftest.err >&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } && {
25339 test -z "$ac_c_werror_flag" ||
25340 test ! -s conftest.err
25341 } && test -s conftest.$ac_objext; then
25344 cat >conftest.$ac_ext <<_ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h. */
25350 $ac_includes_default
25351 typedef long long int ac__type_sizeof_;
25355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25362 rm -f conftest.$ac_objext
25363 if { (ac_try="$ac_compile"
25364 case "(($ac_try" in
25365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25366 *) ac_try_echo=$ac_try;;
25368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25369 (eval "$ac_compile") 2>conftest.er1
25371 grep -v '^ *+' conftest.er1 >conftest.err
25373 cat conftest.err >&5
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); } && {
25376 test -z "$ac_c_werror_flag" ||
25377 test ! -s conftest.err
25378 } && test -s conftest.$ac_objext; then
25379 ac_lo=$ac_mid; break
25381 echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25384 ac_hi=`expr '(' $ac_mid ')' - 1`
25385 if test $ac_mid -le $ac_hi; then
25389 ac_mid=`expr 2 '*' $ac_mid`
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395 echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25405 # Binary search between lo and hi bounds.
25406 while test "x$ac_lo" != "x$ac_hi"; do
25407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25408 cat >conftest.$ac_ext <<_ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h. */
25414 $ac_includes_default
25415 typedef long long int ac__type_sizeof_;
25419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25426 rm -f conftest.$ac_objext
25427 if { (ac_try="$ac_compile"
25428 case "(($ac_try" in
25429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430 *) ac_try_echo=$ac_try;;
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433 (eval "$ac_compile") 2>conftest.er1
25435 grep -v '^ *+' conftest.er1 >conftest.err
25437 cat conftest.err >&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } && {
25440 test -z "$ac_c_werror_flag" ||
25441 test ! -s conftest.err
25442 } && test -s conftest.$ac_objext; then
25445 echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25448 ac_lo=`expr '(' $ac_mid ')' + 1`
25451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25454 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25455 '') if test "$ac_cv_type_long_long_int" = yes; then
25456 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25457 See \`config.log' for more details." >&5
25458 echo "$as_me: error: cannot compute sizeof (long long int)
25459 See \`config.log' for more details." >&2;}
25460 { (exit 77); exit 77; }; }
25462 ac_cv_sizeof_long_long_int=0
25466 cat >conftest.$ac_ext <<_ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h. */
25472 $ac_includes_default
25473 typedef long long int ac__type_sizeof_;
25474 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25475 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25477 #include <stdlib.h>
25482 FILE *f = fopen ("conftest.val", "w");
25485 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25487 long int i = longval ();
25488 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25490 fprintf (f, "%ld\n", i);
25494 unsigned long int i = ulongval ();
25495 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25497 fprintf (f, "%lu\n", i);
25499 return ferror (f) || fclose (f) != 0;
25505 rm -f conftest$ac_exeext
25506 if { (ac_try="$ac_link"
25507 case "(($ac_try" in
25508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509 *) ac_try_echo=$ac_try;;
25511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512 (eval "$ac_link") 2>&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25516 { (case "(($ac_try" in
25517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25518 *) ac_try_echo=$ac_try;;
25520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25521 (eval "$ac_try") 2>&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; }; then
25525 ac_cv_sizeof_long_long_int=`cat conftest.val`
25527 echo "$as_me: program exited with status $ac_status" >&5
25528 echo "$as_me: failed program was:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25531 ( exit $ac_status )
25532 if test "$ac_cv_type_long_long_int" = yes; then
25533 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25534 See \`config.log' for more details." >&5
25535 echo "$as_me: error: cannot compute sizeof (long long int)
25536 See \`config.log' for more details." >&2;}
25537 { (exit 77); exit 77; }; }
25539 ac_cv_sizeof_long_long_int=0
25542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25546 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25547 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25551 cat >>confdefs.h <<_ACEOF
25552 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25556 { echo "$as_me:$LINENO: checking for int *" >&5
25557 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25558 if test "${ac_cv_type_int_p+set}" = set; then
25559 echo $ECHO_N "(cached) $ECHO_C" >&6
25561 cat >conftest.$ac_ext <<_ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h. */
25567 $ac_includes_default
25568 typedef int * ac__type_new_;
25572 if ((ac__type_new_ *) 0)
25574 if (sizeof (ac__type_new_))
25580 rm -f conftest.$ac_objext
25581 if { (ac_try="$ac_compile"
25582 case "(($ac_try" in
25583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584 *) ac_try_echo=$ac_try;;
25586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25587 (eval "$ac_compile") 2>conftest.er1
25589 grep -v '^ *+' conftest.er1 >conftest.err
25591 cat conftest.err >&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } && {
25594 test -z "$ac_c_werror_flag" ||
25595 test ! -s conftest.err
25596 } && test -s conftest.$ac_objext; then
25597 ac_cv_type_int_p=yes
25599 echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25602 ac_cv_type_int_p=no
25605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25607 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25608 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25610 # The cast to long int works around a bug in the HP C Compiler
25611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25613 # This bug is HP SR number 8606223364.
25614 { echo "$as_me:$LINENO: checking size of int *" >&5
25615 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25616 if test "${ac_cv_sizeof_int_p+set}" = set; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
25619 if test "$cross_compiling" = yes; then
25620 # Depending upon the size, compute the lo and hi bounds.
25621 cat >conftest.$ac_ext <<_ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h. */
25627 $ac_includes_default
25628 typedef int * ac__type_sizeof_;
25632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25639 rm -f conftest.$ac_objext
25640 if { (ac_try="$ac_compile"
25641 case "(($ac_try" in
25642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25643 *) ac_try_echo=$ac_try;;
25645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25646 (eval "$ac_compile") 2>conftest.er1
25648 grep -v '^ *+' conftest.er1 >conftest.err
25650 cat conftest.err >&5
25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); } && {
25653 test -z "$ac_c_werror_flag" ||
25654 test ! -s conftest.err
25655 } && test -s conftest.$ac_objext; then
25658 cat >conftest.$ac_ext <<_ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h. */
25664 $ac_includes_default
25665 typedef int * ac__type_sizeof_;
25669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25676 rm -f conftest.$ac_objext
25677 if { (ac_try="$ac_compile"
25678 case "(($ac_try" in
25679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680 *) ac_try_echo=$ac_try;;
25682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683 (eval "$ac_compile") 2>conftest.er1
25685 grep -v '^ *+' conftest.er1 >conftest.err
25687 cat conftest.err >&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } && {
25690 test -z "$ac_c_werror_flag" ||
25691 test ! -s conftest.err
25692 } && test -s conftest.$ac_objext; then
25693 ac_hi=$ac_mid; break
25695 echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25698 ac_lo=`expr $ac_mid + 1`
25699 if test $ac_lo -le $ac_mid; then
25703 ac_mid=`expr 2 '*' $ac_mid + 1`
25706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709 echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25712 cat >conftest.$ac_ext <<_ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 $ac_includes_default
25719 typedef int * ac__type_sizeof_;
25723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25730 rm -f conftest.$ac_objext
25731 if { (ac_try="$ac_compile"
25732 case "(($ac_try" in
25733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734 *) ac_try_echo=$ac_try;;
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737 (eval "$ac_compile") 2>conftest.er1
25739 grep -v '^ *+' conftest.er1 >conftest.err
25741 cat conftest.err >&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } && {
25744 test -z "$ac_c_werror_flag" ||
25745 test ! -s conftest.err
25746 } && test -s conftest.$ac_objext; then
25749 cat >conftest.$ac_ext <<_ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h. */
25755 $ac_includes_default
25756 typedef int * ac__type_sizeof_;
25760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25767 rm -f conftest.$ac_objext
25768 if { (ac_try="$ac_compile"
25769 case "(($ac_try" in
25770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25771 *) ac_try_echo=$ac_try;;
25773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25774 (eval "$ac_compile") 2>conftest.er1
25776 grep -v '^ *+' conftest.er1 >conftest.err
25778 cat conftest.err >&5
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); } && {
25781 test -z "$ac_c_werror_flag" ||
25782 test ! -s conftest.err
25783 } && test -s conftest.$ac_objext; then
25784 ac_lo=$ac_mid; break
25786 echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25789 ac_hi=`expr '(' $ac_mid ')' - 1`
25790 if test $ac_mid -le $ac_hi; then
25794 ac_mid=`expr 2 '*' $ac_mid`
25797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25800 echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25810 # Binary search between lo and hi bounds.
25811 while test "x$ac_lo" != "x$ac_hi"; do
25812 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25813 cat >conftest.$ac_ext <<_ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 $ac_includes_default
25820 typedef int * ac__type_sizeof_;
25824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25831 rm -f conftest.$ac_objext
25832 if { (ac_try="$ac_compile"
25833 case "(($ac_try" in
25834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835 *) ac_try_echo=$ac_try;;
25837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25838 (eval "$ac_compile") 2>conftest.er1
25840 grep -v '^ *+' conftest.er1 >conftest.err
25842 cat conftest.err >&5
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); } && {
25845 test -z "$ac_c_werror_flag" ||
25846 test ! -s conftest.err
25847 } && test -s conftest.$ac_objext; then
25850 echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25853 ac_lo=`expr '(' $ac_mid ')' + 1`
25856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25859 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25860 '') if test "$ac_cv_type_int_p" = yes; then
25861 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25862 See \`config.log' for more details." >&5
25863 echo "$as_me: error: cannot compute sizeof (int *)
25864 See \`config.log' for more details." >&2;}
25865 { (exit 77); exit 77; }; }
25867 ac_cv_sizeof_int_p=0
25871 cat >conftest.$ac_ext <<_ACEOF
25874 cat confdefs.h >>conftest.$ac_ext
25875 cat >>conftest.$ac_ext <<_ACEOF
25876 /* end confdefs.h. */
25877 $ac_includes_default
25878 typedef int * ac__type_sizeof_;
25879 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25880 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25882 #include <stdlib.h>
25887 FILE *f = fopen ("conftest.val", "w");
25890 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25892 long int i = longval ();
25893 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25895 fprintf (f, "%ld\n", i);
25899 unsigned long int i = ulongval ();
25900 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25902 fprintf (f, "%lu\n", i);
25904 return ferror (f) || fclose (f) != 0;
25910 rm -f conftest$ac_exeext
25911 if { (ac_try="$ac_link"
25912 case "(($ac_try" in
25913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25914 *) ac_try_echo=$ac_try;;
25916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25917 (eval "$ac_link") 2>&5
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25921 { (case "(($ac_try" in
25922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25923 *) ac_try_echo=$ac_try;;
25925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25926 (eval "$ac_try") 2>&5
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); }; }; then
25930 ac_cv_sizeof_int_p=`cat conftest.val`
25932 echo "$as_me: program exited with status $ac_status" >&5
25933 echo "$as_me: failed program was:" >&5
25934 sed 's/^/| /' conftest.$ac_ext >&5
25936 ( exit $ac_status )
25937 if test "$ac_cv_type_int_p" = yes; then
25938 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25939 See \`config.log' for more details." >&5
25940 echo "$as_me: error: cannot compute sizeof (int *)
25941 See \`config.log' for more details." >&2;}
25942 { (exit 77); exit 77; }; }
25944 ac_cv_sizeof_int_p=0
25947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25951 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25952 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25956 cat >>confdefs.h <<_ACEOF
25957 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25962 # Check for sys/types.h types
25963 { echo "$as_me:$LINENO: checking for u_int type" >&5
25964 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25965 if test "${ac_cv_have_u_int+set}" = set; then
25966 echo $ECHO_N "(cached) $ECHO_C" >&6
25969 cat >conftest.$ac_ext <<_ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975 #include <sys/types.h>
25984 rm -f conftest.$ac_objext
25985 if { (ac_try="$ac_compile"
25986 case "(($ac_try" in
25987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25988 *) ac_try_echo=$ac_try;;
25990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25991 (eval "$ac_compile") 2>conftest.er1
25993 grep -v '^ *+' conftest.er1 >conftest.err
25995 cat conftest.err >&5
25996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997 (exit $ac_status); } && {
25998 test -z "$ac_c_werror_flag" ||
25999 test ! -s conftest.err
26000 } && test -s conftest.$ac_objext; then
26001 ac_cv_have_u_int="yes"
26003 echo "$as_me: failed program was:" >&5
26004 sed 's/^/| /' conftest.$ac_ext >&5
26006 ac_cv_have_u_int="no"
26010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26014 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26015 if test "x$ac_cv_have_u_int" = "xyes" ; then
26016 cat >>confdefs.h <<\_ACEOF
26017 #define HAVE_U_INT 1
26023 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26024 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26025 if test "${ac_cv_have_intmax_t+set}" = set; then
26026 echo $ECHO_N "(cached) $ECHO_C" >&6
26029 cat >conftest.$ac_ext <<_ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h. */
26035 #include <sys/types.h>
26044 rm -f conftest.$ac_objext
26045 if { (ac_try="$ac_compile"
26046 case "(($ac_try" in
26047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26048 *) ac_try_echo=$ac_try;;
26050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26051 (eval "$ac_compile") 2>conftest.er1
26053 grep -v '^ *+' conftest.er1 >conftest.err
26055 cat conftest.err >&5
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); } && {
26058 test -z "$ac_c_werror_flag" ||
26059 test ! -s conftest.err
26060 } && test -s conftest.$ac_objext; then
26061 ac_cv_have_intmax_t="yes"
26063 echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26067 cat >conftest.$ac_ext <<_ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h. */
26073 #include <stdint.h>
26082 rm -f conftest.$ac_objext
26083 if { (ac_try="$ac_compile"
26084 case "(($ac_try" in
26085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26086 *) ac_try_echo=$ac_try;;
26088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26089 (eval "$ac_compile") 2>conftest.er1
26091 grep -v '^ *+' conftest.er1 >conftest.err
26093 cat conftest.err >&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } && {
26096 test -z "$ac_c_werror_flag" ||
26097 test ! -s conftest.err
26098 } && test -s conftest.$ac_objext; then
26099 ac_cv_have_intmax_t="yes"
26101 echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26104 ac_cv_have_intmax_t="no"
26108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26117 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26118 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26119 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26120 cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_INTMAX_T 1
26128 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26129 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26130 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26131 echo $ECHO_N "(cached) $ECHO_C" >&6
26134 cat >conftest.$ac_ext <<_ACEOF
26137 cat confdefs.h >>conftest.$ac_ext
26138 cat >>conftest.$ac_ext <<_ACEOF
26139 /* end confdefs.h. */
26140 #include <sys/types.h>
26144 u_intmax_t a; a = 1;
26149 rm -f conftest.$ac_objext
26150 if { (ac_try="$ac_compile"
26151 case "(($ac_try" in
26152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153 *) ac_try_echo=$ac_try;;
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156 (eval "$ac_compile") 2>conftest.er1
26158 grep -v '^ *+' conftest.er1 >conftest.err
26160 cat conftest.err >&5
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } && {
26163 test -z "$ac_c_werror_flag" ||
26164 test ! -s conftest.err
26165 } && test -s conftest.$ac_objext; then
26166 ac_cv_have_u_intmax_t="yes"
26168 echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26172 cat >conftest.$ac_ext <<_ACEOF
26175 cat confdefs.h >>conftest.$ac_ext
26176 cat >>conftest.$ac_ext <<_ACEOF
26177 /* end confdefs.h. */
26178 #include <stdint.h>
26182 u_intmax_t a; a = 1;
26187 rm -f conftest.$ac_objext
26188 if { (ac_try="$ac_compile"
26189 case "(($ac_try" in
26190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26191 *) ac_try_echo=$ac_try;;
26193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26194 (eval "$ac_compile") 2>conftest.er1
26196 grep -v '^ *+' conftest.er1 >conftest.err
26198 cat conftest.err >&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); } && {
26201 test -z "$ac_c_werror_flag" ||
26202 test ! -s conftest.err
26203 } && test -s conftest.$ac_objext; then
26204 ac_cv_have_u_intmax_t="yes"
26206 echo "$as_me: failed program was:" >&5
26207 sed 's/^/| /' conftest.$ac_ext >&5
26209 ac_cv_have_u_intmax_t="no"
26213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26221 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26222 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26223 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26224 cat >>confdefs.h <<\_ACEOF
26225 #define HAVE_U_INTMAX_T 1
26232 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26233 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26234 if test "${ac_cv_have_intxx_t+set}" = set; then
26235 echo $ECHO_N "(cached) $ECHO_C" >&6
26238 cat >conftest.$ac_ext <<_ACEOF
26241 cat confdefs.h >>conftest.$ac_ext
26242 cat >>conftest.$ac_ext <<_ACEOF
26243 /* end confdefs.h. */
26244 #include <sys/types.h>
26248 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26253 rm -f conftest.$ac_objext
26254 if { (ac_try="$ac_compile"
26255 case "(($ac_try" in
26256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26257 *) ac_try_echo=$ac_try;;
26259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26260 (eval "$ac_compile") 2>conftest.er1
26262 grep -v '^ *+' conftest.er1 >conftest.err
26264 cat conftest.err >&5
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); } && {
26267 test -z "$ac_c_werror_flag" ||
26268 test ! -s conftest.err
26269 } && test -s conftest.$ac_objext; then
26270 ac_cv_have_intxx_t="yes"
26272 echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26275 ac_cv_have_intxx_t="no"
26279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26282 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26283 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26284 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26285 cat >>confdefs.h <<\_ACEOF
26286 #define HAVE_INTXX_T 1
26292 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26293 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26294 if test "${ac_cv_have_int64_t+set}" = set; then
26295 echo $ECHO_N "(cached) $ECHO_C" >&6
26298 cat >conftest.$ac_ext <<_ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h. */
26304 #include <sys/types.h>
26313 rm -f conftest.$ac_objext
26314 if { (ac_try="$ac_compile"
26315 case "(($ac_try" in
26316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317 *) ac_try_echo=$ac_try;;
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320 (eval "$ac_compile") 2>conftest.er1
26322 grep -v '^ *+' conftest.er1 >conftest.err
26324 cat conftest.err >&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); } && {
26327 test -z "$ac_c_werror_flag" ||
26328 test ! -s conftest.err
26329 } && test -s conftest.$ac_objext; then
26330 ac_cv_have_int64_t="yes"
26332 echo "$as_me: failed program was:" >&5
26333 sed 's/^/| /' conftest.$ac_ext >&5
26335 ac_cv_have_int64_t="no"
26339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26342 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26343 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26344 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26345 cat >>confdefs.h <<\_ACEOF
26346 #define HAVE_INT64_T 1
26352 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26353 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26354 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26355 echo $ECHO_N "(cached) $ECHO_C" >&6
26358 cat >conftest.$ac_ext <<_ACEOF
26361 cat confdefs.h >>conftest.$ac_ext
26362 cat >>conftest.$ac_ext <<_ACEOF
26363 /* end confdefs.h. */
26364 #include <sys/types.h>
26368 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26373 rm -f conftest.$ac_objext
26374 if { (ac_try="$ac_compile"
26375 case "(($ac_try" in
26376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26377 *) ac_try_echo=$ac_try;;
26379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26380 (eval "$ac_compile") 2>conftest.er1
26382 grep -v '^ *+' conftest.er1 >conftest.err
26384 cat conftest.err >&5
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); } && {
26387 test -z "$ac_c_werror_flag" ||
26388 test ! -s conftest.err
26389 } && test -s conftest.$ac_objext; then
26390 ac_cv_have_u_intxx_t="yes"
26392 echo "$as_me: failed program was:" >&5
26393 sed 's/^/| /' conftest.$ac_ext >&5
26395 ac_cv_have_u_intxx_t="no"
26399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26402 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26403 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26404 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26405 cat >>confdefs.h <<\_ACEOF
26406 #define HAVE_U_INTXX_T 1
26412 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26413 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26414 if test "${ac_cv_have_u_int64_t+set}" = set; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26418 cat >conftest.$ac_ext <<_ACEOF
26421 cat confdefs.h >>conftest.$ac_ext
26422 cat >>conftest.$ac_ext <<_ACEOF
26423 /* end confdefs.h. */
26424 #include <sys/types.h>
26428 u_int64_t a; a = 1;
26433 rm -f conftest.$ac_objext
26434 if { (ac_try="$ac_compile"
26435 case "(($ac_try" in
26436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437 *) ac_try_echo=$ac_try;;
26439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26440 (eval "$ac_compile") 2>conftest.er1
26442 grep -v '^ *+' conftest.er1 >conftest.err
26444 cat conftest.err >&5
26445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); } && {
26447 test -z "$ac_c_werror_flag" ||
26448 test ! -s conftest.err
26449 } && test -s conftest.$ac_objext; then
26450 ac_cv_have_u_int64_t="yes"
26452 echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26455 ac_cv_have_u_int64_t="no"
26459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26462 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26463 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26464 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26465 cat >>confdefs.h <<\_ACEOF
26466 #define HAVE_U_INT64_T 1
26472 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26473 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26475 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26476 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26477 cat >conftest.$ac_ext <<_ACEOF
26480 cat confdefs.h >>conftest.$ac_ext
26481 cat >>conftest.$ac_ext <<_ACEOF
26482 /* end confdefs.h. */
26483 #include <sys/bitypes.h>
26487 int8_t a; int16_t b; int32_t c;
26488 u_int8_t e; u_int16_t f; u_int32_t g;
26489 a = b = c = e = f = g = 1;
26494 rm -f conftest.$ac_objext
26495 if { (ac_try="$ac_compile"
26496 case "(($ac_try" in
26497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498 *) ac_try_echo=$ac_try;;
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501 (eval "$ac_compile") 2>conftest.er1
26503 grep -v '^ *+' conftest.er1 >conftest.err
26505 cat conftest.err >&5
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); } && {
26508 test -z "$ac_c_werror_flag" ||
26509 test ! -s conftest.err
26510 } && test -s conftest.$ac_objext; then
26511 cat >>confdefs.h <<\_ACEOF
26512 #define HAVE_U_INTXX_T 1
26515 cat >>confdefs.h <<\_ACEOF
26516 #define HAVE_INTXX_T 1
26519 cat >>confdefs.h <<\_ACEOF
26520 #define HAVE_SYS_BITYPES_H 1
26523 { echo "$as_me:$LINENO: result: yes" >&5
26524 echo "${ECHO_T}yes" >&6; }
26526 echo "$as_me: failed program was:" >&5
26527 sed 's/^/| /' conftest.$ac_ext >&5
26529 { echo "$as_me:$LINENO: result: no" >&5
26530 echo "${ECHO_T}no" >&6; }
26534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26537 if test -z "$have_u_intxx_t" ; then
26538 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26539 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26540 if test "${ac_cv_have_uintxx_t+set}" = set; then
26541 echo $ECHO_N "(cached) $ECHO_C" >&6
26544 cat >conftest.$ac_ext <<_ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h. */
26550 #include <sys/types.h>
26554 uint8_t a; uint16_t b;
26555 uint32_t c; a = b = c = 1;
26560 rm -f conftest.$ac_objext
26561 if { (ac_try="$ac_compile"
26562 case "(($ac_try" in
26563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26564 *) ac_try_echo=$ac_try;;
26566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26567 (eval "$ac_compile") 2>conftest.er1
26569 grep -v '^ *+' conftest.er1 >conftest.err
26571 cat conftest.err >&5
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } && {
26574 test -z "$ac_c_werror_flag" ||
26575 test ! -s conftest.err
26576 } && test -s conftest.$ac_objext; then
26577 ac_cv_have_uintxx_t="yes"
26579 echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26582 ac_cv_have_uintxx_t="no"
26586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26589 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26590 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26591 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26592 cat >>confdefs.h <<\_ACEOF
26593 #define HAVE_UINTXX_T 1
26599 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26600 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26602 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26603 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26604 cat >conftest.$ac_ext <<_ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h. */
26610 #include <sys/bitypes.h>
26614 int64_t a; u_int64_t b;
26620 rm -f conftest.$ac_objext
26621 if { (ac_try="$ac_compile"
26622 case "(($ac_try" in
26623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26624 *) ac_try_echo=$ac_try;;
26626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26627 (eval "$ac_compile") 2>conftest.er1
26629 grep -v '^ *+' conftest.er1 >conftest.err
26631 cat conftest.err >&5
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); } && {
26634 test -z "$ac_c_werror_flag" ||
26635 test ! -s conftest.err
26636 } && test -s conftest.$ac_objext; then
26637 cat >>confdefs.h <<\_ACEOF
26638 #define HAVE_U_INT64_T 1
26641 cat >>confdefs.h <<\_ACEOF
26642 #define HAVE_INT64_T 1
26645 { echo "$as_me:$LINENO: result: yes" >&5
26646 echo "${ECHO_T}yes" >&6; }
26648 echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26651 { echo "$as_me:$LINENO: result: no" >&5
26652 echo "${ECHO_T}no" >&6; }
26656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26659 if (test -z "$have_uintxx_t" && \
26660 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26662 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26663 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26664 cat >conftest.$ac_ext <<_ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h. */
26670 #include <sys/bitypes.h>
26674 uint8_t a; uint16_t b;
26675 uint32_t c; a = b = c = 1;
26680 rm -f conftest.$ac_objext
26681 if { (ac_try="$ac_compile"
26682 case "(($ac_try" in
26683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684 *) ac_try_echo=$ac_try;;
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687 (eval "$ac_compile") 2>conftest.er1
26689 grep -v '^ *+' conftest.er1 >conftest.err
26691 cat conftest.err >&5
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } && {
26694 test -z "$ac_c_werror_flag" ||
26695 test ! -s conftest.err
26696 } && test -s conftest.$ac_objext; then
26697 cat >>confdefs.h <<\_ACEOF
26698 #define HAVE_UINTXX_T 1
26701 { echo "$as_me:$LINENO: result: yes" >&5
26702 echo "${ECHO_T}yes" >&6; }
26704 echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26707 { echo "$as_me:$LINENO: result: no" >&5
26708 echo "${ECHO_T}no" >&6; }
26712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26752 echo $ECHO_N "(cached) $ECHO_C" >&6
26754 cat >conftest.$ac_ext <<_ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h. */
26760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26762 #define $ac_func innocuous_$ac_func
26764 /* System header to define __stub macros and hopefully few prototypes,
26765 which can conflict with char $ac_func (); below.
26766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26767 <limits.h> exists even on freestanding compilers. */
26770 # include <limits.h>
26772 # include <assert.h>
26777 /* Override any GCC internal prototype to avoid an error.
26778 Use char because int might match the return type of a GCC
26779 builtin and then its argument prototype would still apply. */
26784 /* The GNU C library defines this for functions which it implements
26785 to always fail with ENOSYS. Some functions are actually named
26786 something starting with __ and the normal name is an alias. */
26787 #if defined __stub_$ac_func || defined __stub___$ac_func
26794 return $ac_func ();
26799 rm -f conftest.$ac_objext conftest$ac_exeext
26800 if { (ac_try="$ac_link"
26801 case "(($ac_try" in
26802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803 *) ac_try_echo=$ac_try;;
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806 (eval "$ac_link") 2>conftest.er1
26808 grep -v '^ *+' conftest.er1 >conftest.err
26810 cat conftest.err >&5
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } && {
26813 test -z "$ac_c_werror_flag" ||
26814 test ! -s conftest.err
26815 } && test -s conftest$ac_exeext &&
26816 $as_test_x conftest$ac_exeext; then
26817 eval "$as_ac_var=yes"
26819 echo "$as_me: failed program was:" >&5
26820 sed 's/^/| /' conftest.$ac_ext >&5
26822 eval "$as_ac_var=no"
26825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26826 conftest$ac_exeext conftest.$ac_ext
26828 ac_res=`eval echo '${'$as_ac_var'}'`
26829 { echo "$as_me:$LINENO: result: $ac_res" >&5
26830 echo "${ECHO_T}$ac_res" >&6; }
26831 if test `eval echo '${'$as_ac_var'}'` = yes; then
26832 cat >>confdefs.h <<_ACEOF
26833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26837 echo 'configure: cannot find needed function.'; exit 1
26844 for ac_func in fchdir
26846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26850 echo $ECHO_N "(cached) $ECHO_C" >&6
26852 cat >conftest.$ac_ext <<_ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26860 #define $ac_func innocuous_$ac_func
26862 /* System header to define __stub macros and hopefully few prototypes,
26863 which can conflict with char $ac_func (); below.
26864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26865 <limits.h> exists even on freestanding compilers. */
26868 # include <limits.h>
26870 # include <assert.h>
26875 /* Override any GCC internal prototype to avoid an error.
26876 Use char because int might match the return type of a GCC
26877 builtin and then its argument prototype would still apply. */
26882 /* The GNU C library defines this for functions which it implements
26883 to always fail with ENOSYS. Some functions are actually named
26884 something starting with __ and the normal name is an alias. */
26885 #if defined __stub_$ac_func || defined __stub___$ac_func
26892 return $ac_func ();
26897 rm -f conftest.$ac_objext conftest$ac_exeext
26898 if { (ac_try="$ac_link"
26899 case "(($ac_try" in
26900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26901 *) ac_try_echo=$ac_try;;
26903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26904 (eval "$ac_link") 2>conftest.er1
26906 grep -v '^ *+' conftest.er1 >conftest.err
26908 cat conftest.err >&5
26909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910 (exit $ac_status); } && {
26911 test -z "$ac_c_werror_flag" ||
26912 test ! -s conftest.err
26913 } && test -s conftest$ac_exeext &&
26914 $as_test_x conftest$ac_exeext; then
26915 eval "$as_ac_var=yes"
26917 echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26920 eval "$as_ac_var=no"
26923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26924 conftest$ac_exeext conftest.$ac_ext
26926 ac_res=`eval echo '${'$as_ac_var'}'`
26927 { echo "$as_me:$LINENO: result: $ac_res" >&5
26928 echo "${ECHO_T}$ac_res" >&6; }
26929 if test `eval echo '${'$as_ac_var'}'` = yes; then
26930 cat >>confdefs.h <<_ACEOF
26931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26933 cat >>confdefs.h <<\_ACEOF
26934 #define HAVE_FCHDIR 1
26941 for ac_func in strtoll
26943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26947 echo $ECHO_N "(cached) $ECHO_C" >&6
26949 cat >conftest.$ac_ext <<_ACEOF
26952 cat confdefs.h >>conftest.$ac_ext
26953 cat >>conftest.$ac_ext <<_ACEOF
26954 /* end confdefs.h. */
26955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26957 #define $ac_func innocuous_$ac_func
26959 /* System header to define __stub macros and hopefully few prototypes,
26960 which can conflict with char $ac_func (); below.
26961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26962 <limits.h> exists even on freestanding compilers. */
26965 # include <limits.h>
26967 # include <assert.h>
26972 /* Override any GCC internal prototype to avoid an error.
26973 Use char because int might match the return type of a GCC
26974 builtin and then its argument prototype would still apply. */
26979 /* The GNU C library defines this for functions which it implements
26980 to always fail with ENOSYS. Some functions are actually named
26981 something starting with __ and the normal name is an alias. */
26982 #if defined __stub_$ac_func || defined __stub___$ac_func
26989 return $ac_func ();
26994 rm -f conftest.$ac_objext conftest$ac_exeext
26995 if { (ac_try="$ac_link"
26996 case "(($ac_try" in
26997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998 *) ac_try_echo=$ac_try;;
27000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001 (eval "$ac_link") 2>conftest.er1
27003 grep -v '^ *+' conftest.er1 >conftest.err
27005 cat conftest.err >&5
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); } && {
27008 test -z "$ac_c_werror_flag" ||
27009 test ! -s conftest.err
27010 } && test -s conftest$ac_exeext &&
27011 $as_test_x conftest$ac_exeext; then
27012 eval "$as_ac_var=yes"
27014 echo "$as_me: failed program was:" >&5
27015 sed 's/^/| /' conftest.$ac_ext >&5
27017 eval "$as_ac_var=no"
27020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27021 conftest$ac_exeext conftest.$ac_ext
27023 ac_res=`eval echo '${'$as_ac_var'}'`
27024 { echo "$as_me:$LINENO: result: $ac_res" >&5
27025 echo "${ECHO_T}$ac_res" >&6; }
27026 if test `eval echo '${'$as_ac_var'}'` = yes; then
27027 cat >>confdefs.h <<_ACEOF
27028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27030 cat >>confdefs.h <<\_ACEOF
27031 #define HAVE_STRTOLL 1
27038 for ac_func in posix_fadvise
27040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27044 echo $ECHO_N "(cached) $ECHO_C" >&6
27046 cat >conftest.$ac_ext <<_ACEOF
27049 cat confdefs.h >>conftest.$ac_ext
27050 cat >>conftest.$ac_ext <<_ACEOF
27051 /* end confdefs.h. */
27052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27054 #define $ac_func innocuous_$ac_func
27056 /* System header to define __stub macros and hopefully few prototypes,
27057 which can conflict with char $ac_func (); below.
27058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27059 <limits.h> exists even on freestanding compilers. */
27062 # include <limits.h>
27064 # include <assert.h>
27069 /* Override any GCC internal prototype to avoid an error.
27070 Use char because int might match the return type of a GCC
27071 builtin and then its argument prototype would still apply. */
27076 /* The GNU C library defines this for functions which it implements
27077 to always fail with ENOSYS. Some functions are actually named
27078 something starting with __ and the normal name is an alias. */
27079 #if defined __stub_$ac_func || defined __stub___$ac_func
27086 return $ac_func ();
27091 rm -f conftest.$ac_objext conftest$ac_exeext
27092 if { (ac_try="$ac_link"
27093 case "(($ac_try" in
27094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095 *) ac_try_echo=$ac_try;;
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098 (eval "$ac_link") 2>conftest.er1
27100 grep -v '^ *+' conftest.er1 >conftest.err
27102 cat conftest.err >&5
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); } && {
27105 test -z "$ac_c_werror_flag" ||
27106 test ! -s conftest.err
27107 } && test -s conftest$ac_exeext &&
27108 $as_test_x conftest$ac_exeext; then
27109 eval "$as_ac_var=yes"
27111 echo "$as_me: failed program was:" >&5
27112 sed 's/^/| /' conftest.$ac_ext >&5
27114 eval "$as_ac_var=no"
27117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27118 conftest$ac_exeext conftest.$ac_ext
27120 ac_res=`eval echo '${'$as_ac_var'}'`
27121 { echo "$as_me:$LINENO: result: $ac_res" >&5
27122 echo "${ECHO_T}$ac_res" >&6; }
27123 if test `eval echo '${'$as_ac_var'}'` = yes; then
27124 cat >>confdefs.h <<_ACEOF
27125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27132 for ac_func in fdatasync
27134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27138 echo $ECHO_N "(cached) $ECHO_C" >&6
27140 cat >conftest.$ac_ext <<_ACEOF
27143 cat confdefs.h >>conftest.$ac_ext
27144 cat >>conftest.$ac_ext <<_ACEOF
27145 /* end confdefs.h. */
27146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27148 #define $ac_func innocuous_$ac_func
27150 /* System header to define __stub macros and hopefully few prototypes,
27151 which can conflict with char $ac_func (); below.
27152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27153 <limits.h> exists even on freestanding compilers. */
27156 # include <limits.h>
27158 # include <assert.h>
27163 /* Override any GCC internal prototype to avoid an error.
27164 Use char because int might match the return type of a GCC
27165 builtin and then its argument prototype would still apply. */
27170 /* The GNU C library defines this for functions which it implements
27171 to always fail with ENOSYS. Some functions are actually named
27172 something starting with __ and the normal name is an alias. */
27173 #if defined __stub_$ac_func || defined __stub___$ac_func
27180 return $ac_func ();
27185 rm -f conftest.$ac_objext conftest$ac_exeext
27186 if { (ac_try="$ac_link"
27187 case "(($ac_try" in
27188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27189 *) ac_try_echo=$ac_try;;
27191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27192 (eval "$ac_link") 2>conftest.er1
27194 grep -v '^ *+' conftest.er1 >conftest.err
27196 cat conftest.err >&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); } && {
27199 test -z "$ac_c_werror_flag" ||
27200 test ! -s conftest.err
27201 } && test -s conftest$ac_exeext &&
27202 $as_test_x conftest$ac_exeext; then
27203 eval "$as_ac_var=yes"
27205 echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27208 eval "$as_ac_var=no"
27211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27212 conftest$ac_exeext conftest.$ac_ext
27214 ac_res=`eval echo '${'$as_ac_var'}'`
27215 { echo "$as_me:$LINENO: result: $ac_res" >&5
27216 echo "${ECHO_T}$ac_res" >&6; }
27217 if test `eval echo '${'$as_ac_var'}'` = yes; then
27218 cat >>confdefs.h <<_ACEOF
27219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27227 for ac_func in chflags
27229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27235 cat >conftest.$ac_ext <<_ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h. */
27241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27243 #define $ac_func innocuous_$ac_func
27245 /* System header to define __stub macros and hopefully few prototypes,
27246 which can conflict with char $ac_func (); below.
27247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27248 <limits.h> exists even on freestanding compilers. */
27251 # include <limits.h>
27253 # include <assert.h>
27258 /* Override any GCC internal prototype to avoid an error.
27259 Use char because int might match the return type of a GCC
27260 builtin and then its argument prototype would still apply. */
27265 /* The GNU C library defines this for functions which it implements
27266 to always fail with ENOSYS. Some functions are actually named
27267 something starting with __ and the normal name is an alias. */
27268 #if defined __stub_$ac_func || defined __stub___$ac_func
27275 return $ac_func ();
27280 rm -f conftest.$ac_objext conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_link") 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } && {
27294 test -z "$ac_c_werror_flag" ||
27295 test ! -s conftest.err
27296 } && test -s conftest$ac_exeext &&
27297 $as_test_x conftest$ac_exeext; then
27298 eval "$as_ac_var=yes"
27300 echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27303 eval "$as_ac_var=no"
27306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27307 conftest$ac_exeext conftest.$ac_ext
27309 ac_res=`eval echo '${'$as_ac_var'}'`
27310 { echo "$as_me:$LINENO: result: $ac_res" >&5
27311 echo "${ECHO_T}$ac_res" >&6; }
27312 if test `eval echo '${'$as_ac_var'}'` = yes; then
27313 cat >>confdefs.h <<_ACEOF
27314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27325 for ac_func in snprintf vsnprintf gethostid fseeko
27327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27331 echo $ECHO_N "(cached) $ECHO_C" >&6
27333 cat >conftest.$ac_ext <<_ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h. */
27339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27341 #define $ac_func innocuous_$ac_func
27343 /* System header to define __stub macros and hopefully few prototypes,
27344 which can conflict with char $ac_func (); below.
27345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27346 <limits.h> exists even on freestanding compilers. */
27349 # include <limits.h>
27351 # include <assert.h>
27356 /* Override any GCC internal prototype to avoid an error.
27357 Use char because int might match the return type of a GCC
27358 builtin and then its argument prototype would still apply. */
27363 /* The GNU C library defines this for functions which it implements
27364 to always fail with ENOSYS. Some functions are actually named
27365 something starting with __ and the normal name is an alias. */
27366 #if defined __stub_$ac_func || defined __stub___$ac_func
27373 return $ac_func ();
27378 rm -f conftest.$ac_objext conftest$ac_exeext
27379 if { (ac_try="$ac_link"
27380 case "(($ac_try" in
27381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27382 *) ac_try_echo=$ac_try;;
27384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27385 (eval "$ac_link") 2>conftest.er1
27387 grep -v '^ *+' conftest.er1 >conftest.err
27389 cat conftest.err >&5
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); } && {
27392 test -z "$ac_c_werror_flag" ||
27393 test ! -s conftest.err
27394 } && test -s conftest$ac_exeext &&
27395 $as_test_x conftest$ac_exeext; then
27396 eval "$as_ac_var=yes"
27398 echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27401 eval "$as_ac_var=no"
27404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27405 conftest$ac_exeext conftest.$ac_ext
27407 ac_res=`eval echo '${'$as_ac_var'}'`
27408 { echo "$as_me:$LINENO: result: $ac_res" >&5
27409 echo "${ECHO_T}$ac_res" >&6; }
27410 if test `eval echo '${'$as_ac_var'}'` = yes; then
27411 cat >>confdefs.h <<_ACEOF
27412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27419 { echo "$as_me:$LINENO: checking for va_copy" >&5
27420 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27421 if test "${ba_cv_va_copy+set}" = set; then
27422 echo $ECHO_N "(cached) $ECHO_C" >&6
27424 cat >conftest.$ac_ext <<_ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h. */
27431 #include <stdarg.h>
27432 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27433 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27438 call_use_va_copy(1,2,3)
27443 rm -f conftest.$ac_objext conftest$ac_exeext
27444 if { (ac_try="$ac_link"
27445 case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_link") 2>conftest.er1
27452 grep -v '^ *+' conftest.er1 >conftest.err
27454 cat conftest.err >&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } && {
27457 test -z "$ac_c_werror_flag" ||
27458 test ! -s conftest.err
27459 } && test -s conftest$ac_exeext &&
27460 $as_test_x conftest$ac_exeext; then
27463 echo "$as_me: failed program was:" >&5
27464 sed 's/^/| /' conftest.$ac_ext >&5
27469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27470 conftest$ac_exeext conftest.$ac_ext
27472 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27473 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27474 test $ba_cv_va_copy = yes &&
27475 cat >>confdefs.h <<\_ACEOF
27476 #define HAVE_VA_COPY 1
27485 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27491 echo $ECHO_N "(cached) $ECHO_C" >&6
27493 cat >conftest.$ac_ext <<_ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27501 #define $ac_func innocuous_$ac_func
27503 /* System header to define __stub macros and hopefully few prototypes,
27504 which can conflict with char $ac_func (); below.
27505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27506 <limits.h> exists even on freestanding compilers. */
27509 # include <limits.h>
27511 # include <assert.h>
27516 /* Override any GCC internal prototype to avoid an error.
27517 Use char because int might match the return type of a GCC
27518 builtin and then its argument prototype would still apply. */
27523 /* The GNU C library defines this for functions which it implements
27524 to always fail with ENOSYS. Some functions are actually named
27525 something starting with __ and the normal name is an alias. */
27526 #if defined __stub_$ac_func || defined __stub___$ac_func
27533 return $ac_func ();
27538 rm -f conftest.$ac_objext conftest$ac_exeext
27539 if { (ac_try="$ac_link"
27540 case "(($ac_try" in
27541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542 *) ac_try_echo=$ac_try;;
27544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545 (eval "$ac_link") 2>conftest.er1
27547 grep -v '^ *+' conftest.er1 >conftest.err
27549 cat conftest.err >&5
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); } && {
27552 test -z "$ac_c_werror_flag" ||
27553 test ! -s conftest.err
27554 } && test -s conftest$ac_exeext &&
27555 $as_test_x conftest$ac_exeext; then
27556 eval "$as_ac_var=yes"
27558 echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27561 eval "$as_ac_var=no"
27564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27565 conftest$ac_exeext conftest.$ac_ext
27567 ac_res=`eval echo '${'$as_ac_var'}'`
27568 { echo "$as_me:$LINENO: result: $ac_res" >&5
27569 echo "${ECHO_T}$ac_res" >&6; }
27570 if test `eval echo '${'$as_ac_var'}'` = yes; then
27571 cat >>confdefs.h <<_ACEOF
27572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27579 # If resolver functions are not in libc check for -lnsl or -lresolv.
27580 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27581 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27582 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27585 cat >conftest.$ac_ext <<_ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h. */
27591 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27593 #define gethostbyname_r innocuous_gethostbyname_r
27595 /* System header to define __stub macros and hopefully few prototypes,
27596 which can conflict with char gethostbyname_r (); below.
27597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27598 <limits.h> exists even on freestanding compilers. */
27601 # include <limits.h>
27603 # include <assert.h>
27606 #undef gethostbyname_r
27608 /* Override any GCC internal prototype to avoid an error.
27609 Use char because int might match the return type of a GCC
27610 builtin and then its argument prototype would still apply. */
27614 char gethostbyname_r ();
27615 /* The GNU C library defines this for functions which it implements
27616 to always fail with ENOSYS. Some functions are actually named
27617 something starting with __ and the normal name is an alias. */
27618 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27625 return gethostbyname_r ();
27630 rm -f conftest.$ac_objext conftest$ac_exeext
27631 if { (ac_try="$ac_link"
27632 case "(($ac_try" in
27633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27634 *) ac_try_echo=$ac_try;;
27636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27637 (eval "$ac_link") 2>conftest.er1
27639 grep -v '^ *+' conftest.er1 >conftest.err
27641 cat conftest.err >&5
27642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); } && {
27644 test -z "$ac_c_werror_flag" ||
27645 test ! -s conftest.err
27646 } && test -s conftest$ac_exeext &&
27647 $as_test_x conftest$ac_exeext; then
27648 ac_cv_func_gethostbyname_r=yes
27650 echo "$as_me: failed program was:" >&5
27651 sed 's/^/| /' conftest.$ac_ext >&5
27653 ac_cv_func_gethostbyname_r=no
27656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27657 conftest$ac_exeext conftest.$ac_ext
27659 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27660 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27661 if test $ac_cv_func_gethostbyname_r = yes; then
27662 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27663 echo "${ECHO_T}using libc's resolver" >&6; }
27666 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27667 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27668 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27669 echo $ECHO_N "(cached) $ECHO_C" >&6
27671 ac_check_lib_save_LIBS=$LIBS
27673 cat >conftest.$ac_ext <<_ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h. */
27680 /* Override any GCC internal prototype to avoid an error.
27681 Use char because int might match the return type of a GCC
27682 builtin and then its argument prototype would still apply. */
27686 char gethostbyname_r ();
27690 return gethostbyname_r ();
27695 rm -f conftest.$ac_objext conftest$ac_exeext
27696 if { (ac_try="$ac_link"
27697 case "(($ac_try" in
27698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27699 *) ac_try_echo=$ac_try;;
27701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27702 (eval "$ac_link") 2>conftest.er1
27704 grep -v '^ *+' conftest.er1 >conftest.err
27706 cat conftest.err >&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } && {
27709 test -z "$ac_c_werror_flag" ||
27710 test ! -s conftest.err
27711 } && test -s conftest$ac_exeext &&
27712 $as_test_x conftest$ac_exeext; then
27713 ac_cv_lib_nsl_gethostbyname_r=yes
27715 echo "$as_me: failed program was:" >&5
27716 sed 's/^/| /' conftest.$ac_ext >&5
27718 ac_cv_lib_nsl_gethostbyname_r=no
27721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27722 conftest$ac_exeext conftest.$ac_ext
27723 LIBS=$ac_check_lib_save_LIBS
27725 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27726 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27727 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27728 cat >>confdefs.h <<_ACEOF
27729 #define HAVE_LIBNSL 1
27737 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27738 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27739 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27740 echo $ECHO_N "(cached) $ECHO_C" >&6
27742 ac_check_lib_save_LIBS=$LIBS
27743 LIBS="-lresolv $LIBS"
27744 cat >conftest.$ac_ext <<_ACEOF
27747 cat confdefs.h >>conftest.$ac_ext
27748 cat >>conftest.$ac_ext <<_ACEOF
27749 /* end confdefs.h. */
27751 /* Override any GCC internal prototype to avoid an error.
27752 Use char because int might match the return type of a GCC
27753 builtin and then its argument prototype would still apply. */
27757 char gethostbyname_r ();
27761 return gethostbyname_r ();
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 ac_cv_lib_resolv_gethostbyname_r=yes
27786 echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.$ac_ext >&5
27789 ac_cv_lib_resolv_gethostbyname_r=no
27792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27793 conftest$ac_exeext conftest.$ac_ext
27794 LIBS=$ac_check_lib_save_LIBS
27796 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27797 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27798 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27799 cat >>confdefs.h <<_ACEOF
27800 #define HAVE_LIBRESOLV 1
27803 LIBS="-lresolv $LIBS"
27813 for ac_func in inet_pton
27815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27819 echo $ECHO_N "(cached) $ECHO_C" >&6
27821 cat >conftest.$ac_ext <<_ACEOF
27824 cat confdefs.h >>conftest.$ac_ext
27825 cat >>conftest.$ac_ext <<_ACEOF
27826 /* end confdefs.h. */
27827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27829 #define $ac_func innocuous_$ac_func
27831 /* System header to define __stub macros and hopefully few prototypes,
27832 which can conflict with char $ac_func (); below.
27833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27834 <limits.h> exists even on freestanding compilers. */
27837 # include <limits.h>
27839 # include <assert.h>
27844 /* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
27851 /* The GNU C library defines this for functions which it implements
27852 to always fail with ENOSYS. Some functions are actually named
27853 something starting with __ and the normal name is an alias. */
27854 #if defined __stub_$ac_func || defined __stub___$ac_func
27861 return $ac_func ();
27866 rm -f conftest.$ac_objext conftest$ac_exeext
27867 if { (ac_try="$ac_link"
27868 case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_link") 2>conftest.er1
27875 grep -v '^ *+' conftest.er1 >conftest.err
27877 cat conftest.err >&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); } && {
27880 test -z "$ac_c_werror_flag" ||
27881 test ! -s conftest.err
27882 } && test -s conftest$ac_exeext &&
27883 $as_test_x conftest$ac_exeext; then
27884 eval "$as_ac_var=yes"
27886 echo "$as_me: failed program was:" >&5
27887 sed 's/^/| /' conftest.$ac_ext >&5
27889 eval "$as_ac_var=no"
27892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27893 conftest$ac_exeext conftest.$ac_ext
27895 ac_res=`eval echo '${'$as_ac_var'}'`
27896 { echo "$as_me:$LINENO: result: $ac_res" >&5
27897 echo "${ECHO_T}$ac_res" >&6; }
27898 if test `eval echo '${'$as_ac_var'}'` = yes; then
27899 cat >>confdefs.h <<_ACEOF
27900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27902 cat >>confdefs.h <<\_ACEOF
27903 #define HAVE_INET_PTON 1
27910 for ac_func in inet_ntop
27912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27916 echo $ECHO_N "(cached) $ECHO_C" >&6
27918 cat >conftest.$ac_ext <<_ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h. */
27924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27926 #define $ac_func innocuous_$ac_func
27928 /* System header to define __stub macros and hopefully few prototypes,
27929 which can conflict with char $ac_func (); below.
27930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27931 <limits.h> exists even on freestanding compilers. */
27934 # include <limits.h>
27936 # include <assert.h>
27941 /* Override any GCC internal prototype to avoid an error.
27942 Use char because int might match the return type of a GCC
27943 builtin and then its argument prototype would still apply. */
27948 /* The GNU C library defines this for functions which it implements
27949 to always fail with ENOSYS. Some functions are actually named
27950 something starting with __ and the normal name is an alias. */
27951 #if defined __stub_$ac_func || defined __stub___$ac_func
27958 return $ac_func ();
27963 rm -f conftest.$ac_objext conftest$ac_exeext
27964 if { (ac_try="$ac_link"
27965 case "(($ac_try" in
27966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967 *) ac_try_echo=$ac_try;;
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970 (eval "$ac_link") 2>conftest.er1
27972 grep -v '^ *+' conftest.er1 >conftest.err
27974 cat conftest.err >&5
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } && {
27977 test -z "$ac_c_werror_flag" ||
27978 test ! -s conftest.err
27979 } && test -s conftest$ac_exeext &&
27980 $as_test_x conftest$ac_exeext; then
27981 eval "$as_ac_var=yes"
27983 echo "$as_me: failed program was:" >&5
27984 sed 's/^/| /' conftest.$ac_ext >&5
27986 eval "$as_ac_var=no"
27989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27990 conftest$ac_exeext conftest.$ac_ext
27992 ac_res=`eval echo '${'$as_ac_var'}'`
27993 { echo "$as_me:$LINENO: result: $ac_res" >&5
27994 echo "${ECHO_T}$ac_res" >&6; }
27995 if test `eval echo '${'$as_ac_var'}'` = yes; then
27996 cat >>confdefs.h <<_ACEOF
27997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27999 cat >>confdefs.h <<\_ACEOF
28000 #define HAVE_INET_NTOP 1
28007 for ac_func in gethostbyname2
28009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28013 echo $ECHO_N "(cached) $ECHO_C" >&6
28015 cat >conftest.$ac_ext <<_ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h. */
28021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28023 #define $ac_func innocuous_$ac_func
28025 /* System header to define __stub macros and hopefully few prototypes,
28026 which can conflict with char $ac_func (); below.
28027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28028 <limits.h> exists even on freestanding compilers. */
28031 # include <limits.h>
28033 # include <assert.h>
28038 /* Override any GCC internal prototype to avoid an error.
28039 Use char because int might match the return type of a GCC
28040 builtin and then its argument prototype would still apply. */
28045 /* The GNU C library defines this for functions which it implements
28046 to always fail with ENOSYS. Some functions are actually named
28047 something starting with __ and the normal name is an alias. */
28048 #if defined __stub_$ac_func || defined __stub___$ac_func
28055 return $ac_func ();
28060 rm -f conftest.$ac_objext conftest$ac_exeext
28061 if { (ac_try="$ac_link"
28062 case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067 (eval "$ac_link") 2>conftest.er1
28069 grep -v '^ *+' conftest.er1 >conftest.err
28071 cat conftest.err >&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); } && {
28074 test -z "$ac_c_werror_flag" ||
28075 test ! -s conftest.err
28076 } && test -s conftest$ac_exeext &&
28077 $as_test_x conftest$ac_exeext; then
28078 eval "$as_ac_var=yes"
28080 echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28083 eval "$as_ac_var=no"
28086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28087 conftest$ac_exeext conftest.$ac_ext
28089 ac_res=`eval echo '${'$as_ac_var'}'`
28090 { echo "$as_me:$LINENO: result: $ac_res" >&5
28091 echo "${ECHO_T}$ac_res" >&6; }
28092 if test `eval echo '${'$as_ac_var'}'` = yes; then
28093 cat >>confdefs.h <<_ACEOF
28094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28096 cat >>confdefs.h <<\_ACEOF
28097 #define HAVE_GETHOSTBYNAME2 1
28104 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28105 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28106 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28107 echo $ECHO_N "(cached) $ECHO_C" >&6
28109 cat >conftest.$ac_ext <<_ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h. */
28115 #include <sys/socket.h>
28119 struct sockaddr s; s.sa_len;
28124 rm -f conftest.$ac_objext
28125 if { (ac_try="$ac_compile"
28126 case "(($ac_try" in
28127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128 *) ac_try_echo=$ac_try;;
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131 (eval "$ac_compile") 2>conftest.er1
28133 grep -v '^ *+' conftest.er1 >conftest.err
28135 cat conftest.err >&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); } && {
28138 test -z "$ac_c_werror_flag" ||
28139 test ! -s conftest.err
28140 } && test -s conftest.$ac_objext; then
28141 ac_cv_struct_sockaddr_sa_len=yes
28143 echo "$as_me: failed program was:" >&5
28144 sed 's/^/| /' conftest.$ac_ext >&5
28146 ac_cv_struct_sockaddr_sa_len=no
28149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28151 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28152 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28154 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28156 cat >>confdefs.h <<\_ACEOF
28157 #define HAVE_SA_LEN 1
28166 for ac_func in strftime
28168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28172 echo $ECHO_N "(cached) $ECHO_C" >&6
28174 cat >conftest.$ac_ext <<_ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h. */
28180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28182 #define $ac_func innocuous_$ac_func
28184 /* System header to define __stub macros and hopefully few prototypes,
28185 which can conflict with char $ac_func (); below.
28186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28187 <limits.h> exists even on freestanding compilers. */
28190 # include <limits.h>
28192 # include <assert.h>
28197 /* Override any GCC internal prototype to avoid an error.
28198 Use char because int might match the return type of a GCC
28199 builtin and then its argument prototype would still apply. */
28204 /* The GNU C library defines this for functions which it implements
28205 to always fail with ENOSYS. Some functions are actually named
28206 something starting with __ and the normal name is an alias. */
28207 #if defined __stub_$ac_func || defined __stub___$ac_func
28214 return $ac_func ();
28219 rm -f conftest.$ac_objext conftest$ac_exeext
28220 if { (ac_try="$ac_link"
28221 case "(($ac_try" in
28222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28223 *) ac_try_echo=$ac_try;;
28225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28226 (eval "$ac_link") 2>conftest.er1
28228 grep -v '^ *+' conftest.er1 >conftest.err
28230 cat conftest.err >&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } && {
28233 test -z "$ac_c_werror_flag" ||
28234 test ! -s conftest.err
28235 } && test -s conftest$ac_exeext &&
28236 $as_test_x conftest$ac_exeext; then
28237 eval "$as_ac_var=yes"
28239 echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28242 eval "$as_ac_var=no"
28245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28246 conftest$ac_exeext conftest.$ac_ext
28248 ac_res=`eval echo '${'$as_ac_var'}'`
28249 { echo "$as_me:$LINENO: result: $ac_res" >&5
28250 echo "${ECHO_T}$ac_res" >&6; }
28251 if test `eval echo '${'$as_ac_var'}'` = yes; then
28252 cat >>confdefs.h <<_ACEOF
28253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28257 # strftime is in -lintl on SCO UNIX.
28258 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28259 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28260 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28261 echo $ECHO_N "(cached) $ECHO_C" >&6
28263 ac_check_lib_save_LIBS=$LIBS
28264 LIBS="-lintl $LIBS"
28265 cat >conftest.$ac_ext <<_ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h. */
28272 /* Override any GCC internal prototype to avoid an error.
28273 Use char because int might match the return type of a GCC
28274 builtin and then its argument prototype would still apply. */
28282 return strftime ();
28287 rm -f conftest.$ac_objext conftest$ac_exeext
28288 if { (ac_try="$ac_link"
28289 case "(($ac_try" in
28290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291 *) ac_try_echo=$ac_try;;
28293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294 (eval "$ac_link") 2>conftest.er1
28296 grep -v '^ *+' conftest.er1 >conftest.err
28298 cat conftest.err >&5
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); } && {
28301 test -z "$ac_c_werror_flag" ||
28302 test ! -s conftest.err
28303 } && test -s conftest$ac_exeext &&
28304 $as_test_x conftest$ac_exeext; then
28305 ac_cv_lib_intl_strftime=yes
28307 echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28310 ac_cv_lib_intl_strftime=no
28313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28314 conftest$ac_exeext conftest.$ac_ext
28315 LIBS=$ac_check_lib_save_LIBS
28317 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28318 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28319 if test $ac_cv_lib_intl_strftime = yes; then
28320 cat >>confdefs.h <<\_ACEOF
28321 #define HAVE_STRFTIME 1
28324 LIBS="-lintl $LIBS"
28331 for ac_func in vprintf
28333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28337 echo $ECHO_N "(cached) $ECHO_C" >&6
28339 cat >conftest.$ac_ext <<_ACEOF
28342 cat confdefs.h >>conftest.$ac_ext
28343 cat >>conftest.$ac_ext <<_ACEOF
28344 /* end confdefs.h. */
28345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28347 #define $ac_func innocuous_$ac_func
28349 /* System header to define __stub macros and hopefully few prototypes,
28350 which can conflict with char $ac_func (); below.
28351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28352 <limits.h> exists even on freestanding compilers. */
28355 # include <limits.h>
28357 # include <assert.h>
28362 /* Override any GCC internal prototype to avoid an error.
28363 Use char because int might match the return type of a GCC
28364 builtin and then its argument prototype would still apply. */
28369 /* The GNU C library defines this for functions which it implements
28370 to always fail with ENOSYS. Some functions are actually named
28371 something starting with __ and the normal name is an alias. */
28372 #if defined __stub_$ac_func || defined __stub___$ac_func
28379 return $ac_func ();
28384 rm -f conftest.$ac_objext conftest$ac_exeext
28385 if { (ac_try="$ac_link"
28386 case "(($ac_try" in
28387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28388 *) ac_try_echo=$ac_try;;
28390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28391 (eval "$ac_link") 2>conftest.er1
28393 grep -v '^ *+' conftest.er1 >conftest.err
28395 cat conftest.err >&5
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); } && {
28398 test -z "$ac_c_werror_flag" ||
28399 test ! -s conftest.err
28400 } && test -s conftest$ac_exeext &&
28401 $as_test_x conftest$ac_exeext; then
28402 eval "$as_ac_var=yes"
28404 echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28407 eval "$as_ac_var=no"
28410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28411 conftest$ac_exeext conftest.$ac_ext
28413 ac_res=`eval echo '${'$as_ac_var'}'`
28414 { echo "$as_me:$LINENO: result: $ac_res" >&5
28415 echo "${ECHO_T}$ac_res" >&6; }
28416 if test `eval echo '${'$as_ac_var'}'` = yes; then
28417 cat >>confdefs.h <<_ACEOF
28418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28421 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28422 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28423 if test "${ac_cv_func__doprnt+set}" = set; then
28424 echo $ECHO_N "(cached) $ECHO_C" >&6
28426 cat >conftest.$ac_ext <<_ACEOF
28429 cat confdefs.h >>conftest.$ac_ext
28430 cat >>conftest.$ac_ext <<_ACEOF
28431 /* end confdefs.h. */
28432 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28434 #define _doprnt innocuous__doprnt
28436 /* System header to define __stub macros and hopefully few prototypes,
28437 which can conflict with char _doprnt (); below.
28438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28439 <limits.h> exists even on freestanding compilers. */
28442 # include <limits.h>
28444 # include <assert.h>
28449 /* Override any GCC internal prototype to avoid an error.
28450 Use char because int might match the return type of a GCC
28451 builtin and then its argument prototype would still apply. */
28456 /* The GNU C library defines this for functions which it implements
28457 to always fail with ENOSYS. Some functions are actually named
28458 something starting with __ and the normal name is an alias. */
28459 #if defined __stub__doprnt || defined __stub____doprnt
28471 rm -f conftest.$ac_objext conftest$ac_exeext
28472 if { (ac_try="$ac_link"
28473 case "(($ac_try" in
28474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475 *) ac_try_echo=$ac_try;;
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_link") 2>conftest.er1
28480 grep -v '^ *+' conftest.er1 >conftest.err
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } && {
28485 test -z "$ac_c_werror_flag" ||
28486 test ! -s conftest.err
28487 } && test -s conftest$ac_exeext &&
28488 $as_test_x conftest$ac_exeext; then
28489 ac_cv_func__doprnt=yes
28491 echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28494 ac_cv_func__doprnt=no
28497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28498 conftest$ac_exeext conftest.$ac_ext
28500 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28501 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28502 if test $ac_cv_func__doprnt = yes; then
28504 cat >>confdefs.h <<\_ACEOF
28505 #define HAVE_DOPRNT 1
28514 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28515 # for constant arguments. Useless!
28516 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28517 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28518 if test "${ac_cv_working_alloca_h+set}" = set; then
28519 echo $ECHO_N "(cached) $ECHO_C" >&6
28521 cat >conftest.$ac_ext <<_ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28527 #include <alloca.h>
28531 char *p = (char *) alloca (2 * sizeof (int));
28537 rm -f conftest.$ac_objext conftest$ac_exeext
28538 if { (ac_try="$ac_link"
28539 case "(($ac_try" in
28540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28541 *) ac_try_echo=$ac_try;;
28543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28544 (eval "$ac_link") 2>conftest.er1
28546 grep -v '^ *+' conftest.er1 >conftest.err
28548 cat conftest.err >&5
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); } && {
28551 test -z "$ac_c_werror_flag" ||
28552 test ! -s conftest.err
28553 } && test -s conftest$ac_exeext &&
28554 $as_test_x conftest$ac_exeext; then
28555 ac_cv_working_alloca_h=yes
28557 echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28560 ac_cv_working_alloca_h=no
28563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28564 conftest$ac_exeext conftest.$ac_ext
28566 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28567 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28568 if test $ac_cv_working_alloca_h = yes; then
28570 cat >>confdefs.h <<\_ACEOF
28571 #define HAVE_ALLOCA_H 1
28576 { echo "$as_me:$LINENO: checking for alloca" >&5
28577 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28578 if test "${ac_cv_func_alloca_works+set}" = set; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28581 cat >conftest.$ac_ext <<_ACEOF
28584 cat confdefs.h >>conftest.$ac_ext
28585 cat >>conftest.$ac_ext <<_ACEOF
28586 /* end confdefs.h. */
28588 # define alloca __builtin_alloca
28591 # include <malloc.h>
28592 # define alloca _alloca
28594 # ifdef HAVE_ALLOCA_H
28595 # include <alloca.h>
28600 # ifndef alloca /* predefined by HP cc +Olibcalls */
28611 char *p = (char *) alloca (1);
28617 rm -f conftest.$ac_objext conftest$ac_exeext
28618 if { (ac_try="$ac_link"
28619 case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624 (eval "$ac_link") 2>conftest.er1
28626 grep -v '^ *+' conftest.er1 >conftest.err
28628 cat conftest.err >&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); } && {
28631 test -z "$ac_c_werror_flag" ||
28632 test ! -s conftest.err
28633 } && test -s conftest$ac_exeext &&
28634 $as_test_x conftest$ac_exeext; then
28635 ac_cv_func_alloca_works=yes
28637 echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28640 ac_cv_func_alloca_works=no
28643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28644 conftest$ac_exeext conftest.$ac_ext
28646 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28647 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28649 if test $ac_cv_func_alloca_works = yes; then
28651 cat >>confdefs.h <<\_ACEOF
28652 #define HAVE_ALLOCA 1
28656 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28657 # that cause trouble. Some versions do not even contain alloca or
28658 # contain a buggy version. If you still want to use their alloca,
28659 # use ar to extract alloca.o from them instead of compiling alloca.c.
28661 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28663 cat >>confdefs.h <<\_ACEOF
28668 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28669 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28670 if test "${ac_cv_os_cray+set}" = set; then
28671 echo $ECHO_N "(cached) $ECHO_C" >&6
28673 cat >conftest.$ac_ext <<_ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h. */
28679 #if defined CRAY && ! defined CRAY2
28686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28687 $EGREP "webecray" >/dev/null 2>&1; then
28695 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28696 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28697 if test $ac_cv_os_cray = yes; then
28698 for ac_func in _getb67 GETB67 getb67; do
28699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28705 cat >conftest.$ac_ext <<_ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h. */
28711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28713 #define $ac_func innocuous_$ac_func
28715 /* System header to define __stub macros and hopefully few prototypes,
28716 which can conflict with char $ac_func (); below.
28717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28718 <limits.h> exists even on freestanding compilers. */
28721 # include <limits.h>
28723 # include <assert.h>
28728 /* Override any GCC internal prototype to avoid an error.
28729 Use char because int might match the return type of a GCC
28730 builtin and then its argument prototype would still apply. */
28735 /* The GNU C library defines this for functions which it implements
28736 to always fail with ENOSYS. Some functions are actually named
28737 something starting with __ and the normal name is an alias. */
28738 #if defined __stub_$ac_func || defined __stub___$ac_func
28745 return $ac_func ();
28750 rm -f conftest.$ac_objext conftest$ac_exeext
28751 if { (ac_try="$ac_link"
28752 case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_link") 2>conftest.er1
28759 grep -v '^ *+' conftest.er1 >conftest.err
28761 cat conftest.err >&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } && {
28764 test -z "$ac_c_werror_flag" ||
28765 test ! -s conftest.err
28766 } && test -s conftest$ac_exeext &&
28767 $as_test_x conftest$ac_exeext; then
28768 eval "$as_ac_var=yes"
28770 echo "$as_me: failed program was:" >&5
28771 sed 's/^/| /' conftest.$ac_ext >&5
28773 eval "$as_ac_var=no"
28776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28777 conftest$ac_exeext conftest.$ac_ext
28779 ac_res=`eval echo '${'$as_ac_var'}'`
28780 { echo "$as_me:$LINENO: result: $ac_res" >&5
28781 echo "${ECHO_T}$ac_res" >&6; }
28782 if test `eval echo '${'$as_ac_var'}'` = yes; then
28784 cat >>confdefs.h <<_ACEOF
28785 #define CRAY_STACKSEG_END $ac_func
28794 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28795 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28796 if test "${ac_cv_c_stack_direction+set}" = set; then
28797 echo $ECHO_N "(cached) $ECHO_C" >&6
28799 if test "$cross_compiling" = yes; then
28800 ac_cv_c_stack_direction=0
28802 cat >conftest.$ac_ext <<_ACEOF
28805 cat confdefs.h >>conftest.$ac_ext
28806 cat >>conftest.$ac_ext <<_ACEOF
28807 /* end confdefs.h. */
28808 $ac_includes_default
28810 find_stack_direction ()
28812 static char *addr = 0;
28817 return find_stack_direction ();
28820 return (&dummy > addr) ? 1 : -1;
28826 return find_stack_direction () < 0;
28829 rm -f conftest$ac_exeext
28830 if { (ac_try="$ac_link"
28831 case "(($ac_try" in
28832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833 *) ac_try_echo=$ac_try;;
28835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28836 (eval "$ac_link") 2>&5
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28840 { (case "(($ac_try" in
28841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842 *) ac_try_echo=$ac_try;;
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845 (eval "$ac_try") 2>&5
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); }; }; then
28849 ac_cv_c_stack_direction=1
28851 echo "$as_me: program exited with status $ac_status" >&5
28852 echo "$as_me: failed program was:" >&5
28853 sed 's/^/| /' conftest.$ac_ext >&5
28855 ( exit $ac_status )
28856 ac_cv_c_stack_direction=-1
28858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28863 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28864 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28866 cat >>confdefs.h <<_ACEOF
28867 #define STACK_DIRECTION $ac_cv_c_stack_direction
28873 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28874 # -lseq on Dynix/PTX, -lgen on Unixware.
28875 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28876 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28877 if test "${ac_cv_search_getmntent+set}" = set; then
28878 echo $ECHO_N "(cached) $ECHO_C" >&6
28880 ac_func_search_save_LIBS=$LIBS
28881 cat >conftest.$ac_ext <<_ACEOF
28884 cat confdefs.h >>conftest.$ac_ext
28885 cat >>conftest.$ac_ext <<_ACEOF
28886 /* end confdefs.h. */
28888 /* Override any GCC internal prototype to avoid an error.
28889 Use char because int might match the return type of a GCC
28890 builtin and then its argument prototype would still apply. */
28898 return getmntent ();
28903 for ac_lib in '' sun seq gen; do
28904 if test -z "$ac_lib"; then
28905 ac_res="none required"
28908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28910 rm -f conftest.$ac_objext conftest$ac_exeext
28911 if { (ac_try="$ac_link"
28912 case "(($ac_try" in
28913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914 *) ac_try_echo=$ac_try;;
28916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28917 (eval "$ac_link") 2>conftest.er1
28919 grep -v '^ *+' conftest.er1 >conftest.err
28921 cat conftest.err >&5
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); } && {
28924 test -z "$ac_c_werror_flag" ||
28925 test ! -s conftest.err
28926 } && test -s conftest$ac_exeext &&
28927 $as_test_x conftest$ac_exeext; then
28928 ac_cv_search_getmntent=$ac_res
28930 echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.$ac_ext >&5
28936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28938 if test "${ac_cv_search_getmntent+set}" = set; then
28942 if test "${ac_cv_search_getmntent+set}" = set; then
28945 ac_cv_search_getmntent=no
28947 rm conftest.$ac_ext
28948 LIBS=$ac_func_search_save_LIBS
28950 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28951 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28952 ac_res=$ac_cv_search_getmntent
28953 if test "$ac_res" != no; then
28954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28955 ac_cv_func_getmntent=yes
28957 cat >>confdefs.h <<\_ACEOF
28958 #define HAVE_GETMNTENT 1
28962 ac_cv_func_getmntent=no
28966 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28967 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28968 if test "${ac_cv_func_closedir_void+set}" = set; then
28969 echo $ECHO_N "(cached) $ECHO_C" >&6
28971 if test "$cross_compiling" = yes; then
28972 ac_cv_func_closedir_void=yes
28974 cat >conftest.$ac_ext <<_ACEOF
28977 cat confdefs.h >>conftest.$ac_ext
28978 cat >>conftest.$ac_ext <<_ACEOF
28979 /* end confdefs.h. */
28980 $ac_includes_default
28981 #include <$ac_header_dirent>
28982 #ifndef __cplusplus
28989 return closedir (opendir (".")) != 0;
28994 rm -f conftest$ac_exeext
28995 if { (ac_try="$ac_link"
28996 case "(($ac_try" in
28997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_link") 2>&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29005 { (case "(($ac_try" in
29006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007 *) ac_try_echo=$ac_try;;
29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010 (eval "$ac_try") 2>&5
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); }; }; then
29014 ac_cv_func_closedir_void=no
29016 echo "$as_me: program exited with status $ac_status" >&5
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29020 ( exit $ac_status )
29021 ac_cv_func_closedir_void=yes
29023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29028 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29029 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29030 if test $ac_cv_func_closedir_void = yes; then
29032 cat >>confdefs.h <<\_ACEOF
29033 #define CLOSEDIR_VOID 1
29038 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29039 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29040 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29041 echo $ECHO_N "(cached) $ECHO_C" >&6
29043 if test "$cross_compiling" = yes; then
29044 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29045 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29046 { (exit 1); exit 1; }; }
29048 cat >conftest.$ac_ext <<_ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h. */
29054 $ac_includes_default
29058 /* If this system has a BSD-style setpgrp which takes arguments,
29059 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29060 exit successfully. */
29061 return setpgrp (1,1) != -1;
29066 rm -f conftest$ac_exeext
29067 if { (ac_try="$ac_link"
29068 case "(($ac_try" in
29069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070 *) ac_try_echo=$ac_try;;
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073 (eval "$ac_link") 2>&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29077 { (case "(($ac_try" in
29078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079 *) ac_try_echo=$ac_try;;
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082 (eval "$ac_try") 2>&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); }; }; then
29086 ac_cv_func_setpgrp_void=no
29088 echo "$as_me: program exited with status $ac_status" >&5
29089 echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29092 ( exit $ac_status )
29093 ac_cv_func_setpgrp_void=yes
29095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29100 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29101 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29102 if test $ac_cv_func_setpgrp_void = yes; then
29104 cat >>confdefs.h <<\_ACEOF
29105 #define SETPGRP_VOID 1
29109 # AC_FUNC_FNMATCH dnl use local version
29112 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29113 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29114 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29115 echo $ECHO_N "(cached) $ECHO_C" >&6
29117 ac_check_lib_save_LIBS=$LIBS
29118 LIBS="-lintl $LIBS"
29119 cat >conftest.$ac_ext <<_ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h. */
29126 /* Override any GCC internal prototype to avoid an error.
29127 Use char because int might match the return type of a GCC
29128 builtin and then its argument prototype would still apply. */
29141 rm -f conftest.$ac_objext conftest$ac_exeext
29142 if { (ac_try="$ac_link"
29143 case "(($ac_try" in
29144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145 *) ac_try_echo=$ac_try;;
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148 (eval "$ac_link") 2>conftest.er1
29150 grep -v '^ *+' conftest.er1 >conftest.err
29152 cat conftest.err >&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } && {
29155 test -z "$ac_c_werror_flag" ||
29156 test ! -s conftest.err
29157 } && test -s conftest$ac_exeext &&
29158 $as_test_x conftest$ac_exeext; then
29159 ac_cv_lib_intl_gettext=yes
29161 echo "$as_me: failed program was:" >&5
29162 sed 's/^/| /' conftest.$ac_ext >&5
29164 ac_cv_lib_intl_gettext=no
29167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29168 conftest$ac_exeext conftest.$ac_ext
29169 LIBS=$ac_check_lib_save_LIBS
29171 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29172 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29173 if test $ac_cv_lib_intl_gettext = yes; then
29174 LIBS="$LIBS -lintl"
29180 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29181 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29182 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29183 echo $ECHO_N "(cached) $ECHO_C" >&6
29185 ac_check_lib_save_LIBS=$LIBS
29187 cat >conftest.$ac_ext <<_ACEOF
29190 cat confdefs.h >>conftest.$ac_ext
29191 cat >>conftest.$ac_ext <<_ACEOF
29192 /* end confdefs.h. */
29194 /* Override any GCC internal prototype to avoid an error.
29195 Use char because int might match the return type of a GCC
29196 builtin and then its argument prototype would still apply. */
29204 return getpwnam ();
29209 rm -f conftest.$ac_objext conftest$ac_exeext
29210 if { (ac_try="$ac_link"
29211 case "(($ac_try" in
29212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29213 *) ac_try_echo=$ac_try;;
29215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29216 (eval "$ac_link") 2>conftest.er1
29218 grep -v '^ *+' conftest.er1 >conftest.err
29220 cat conftest.err >&5
29221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222 (exit $ac_status); } && {
29223 test -z "$ac_c_werror_flag" ||
29224 test ! -s conftest.err
29225 } && test -s conftest$ac_exeext &&
29226 $as_test_x conftest$ac_exeext; then
29227 ac_cv_lib_sun_getpwnam=yes
29229 echo "$as_me: failed program was:" >&5
29230 sed 's/^/| /' conftest.$ac_ext >&5
29232 ac_cv_lib_sun_getpwnam=no
29235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29236 conftest$ac_exeext conftest.$ac_ext
29237 LIBS=$ac_check_lib_save_LIBS
29239 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29240 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29241 if test $ac_cv_lib_sun_getpwnam = yes; then
29242 cat >>confdefs.h <<_ACEOF
29243 #define HAVE_LIBSUN 1
29252 for ac_header in zlib.h
29254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29259 echo $ECHO_N "(cached) $ECHO_C" >&6
29261 ac_res=`eval echo '${'$as_ac_Header'}'`
29262 { echo "$as_me:$LINENO: result: $ac_res" >&5
29263 echo "${ECHO_T}$ac_res" >&6; }
29265 # Is the header compilable?
29266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29268 cat >conftest.$ac_ext <<_ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h. */
29274 $ac_includes_default
29275 #include <$ac_header>
29277 rm -f conftest.$ac_objext
29278 if { (ac_try="$ac_compile"
29279 case "(($ac_try" in
29280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281 *) ac_try_echo=$ac_try;;
29283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284 (eval "$ac_compile") 2>conftest.er1
29286 grep -v '^ *+' conftest.er1 >conftest.err
29288 cat conftest.err >&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } && {
29291 test -z "$ac_c_werror_flag" ||
29292 test ! -s conftest.err
29293 } && test -s conftest.$ac_objext; then
29294 ac_header_compiler=yes
29296 echo "$as_me: failed program was:" >&5
29297 sed 's/^/| /' conftest.$ac_ext >&5
29299 ac_header_compiler=no
29302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29304 echo "${ECHO_T}$ac_header_compiler" >&6; }
29306 # Is the header present?
29307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29309 cat >conftest.$ac_ext <<_ACEOF
29312 cat confdefs.h >>conftest.$ac_ext
29313 cat >>conftest.$ac_ext <<_ACEOF
29314 /* end confdefs.h. */
29315 #include <$ac_header>
29317 if { (ac_try="$ac_cpp conftest.$ac_ext"
29318 case "(($ac_try" in
29319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29320 *) ac_try_echo=$ac_try;;
29322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29325 grep -v '^ *+' conftest.er1 >conftest.err
29327 cat conftest.err >&5
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); } >/dev/null && {
29330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29331 test ! -s conftest.err
29333 ac_header_preproc=yes
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338 ac_header_preproc=no
29341 rm -f conftest.err conftest.$ac_ext
29342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29343 echo "${ECHO_T}$ac_header_preproc" >&6; }
29345 # So? What about this header?
29346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29352 ac_header_preproc=yes
29355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29375 eval "$as_ac_Header=\$ac_header_preproc"
29377 ac_res=`eval echo '${'$as_ac_Header'}'`
29378 { echo "$as_me:$LINENO: result: $ac_res" >&5
29379 echo "${ECHO_T}$ac_res" >&6; }
29382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29383 cat >>confdefs.h <<_ACEOF
29384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29391 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29392 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29393 if test "${ac_cv_lib_z_deflate+set}" = set; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29396 ac_check_lib_save_LIBS=$LIBS
29398 cat >conftest.$ac_ext <<_ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h. */
29405 /* Override any GCC internal prototype to avoid an error.
29406 Use char because int might match the return type of a GCC
29407 builtin and then its argument prototype would still apply. */
29420 rm -f conftest.$ac_objext conftest$ac_exeext
29421 if { (ac_try="$ac_link"
29422 case "(($ac_try" in
29423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424 *) ac_try_echo=$ac_try;;
29426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427 (eval "$ac_link") 2>conftest.er1
29429 grep -v '^ *+' conftest.er1 >conftest.err
29431 cat conftest.err >&5
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); } && {
29434 test -z "$ac_c_werror_flag" ||
29435 test ! -s conftest.err
29436 } && test -s conftest$ac_exeext &&
29437 $as_test_x conftest$ac_exeext; then
29438 ac_cv_lib_z_deflate=yes
29440 echo "$as_me: failed program was:" >&5
29441 sed 's/^/| /' conftest.$ac_ext >&5
29443 ac_cv_lib_z_deflate=no
29446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29447 conftest$ac_exeext conftest.$ac_ext
29448 LIBS=$ac_check_lib_save_LIBS
29450 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29451 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29452 if test $ac_cv_lib_z_deflate = yes; then
29457 if test x$FDLIBS = x-lz; then
29458 cat >>confdefs.h <<\_ACEOF
29459 #define HAVE_LIBZ 1
29466 # Check for ACL libraries
29469 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29470 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29471 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29472 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29473 echo $ECHO_N "(cached) $ECHO_C" >&6
29475 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29476 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29478 # Is the header compilable?
29479 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29480 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29481 cat >conftest.$ac_ext <<_ACEOF
29484 cat confdefs.h >>conftest.$ac_ext
29485 cat >>conftest.$ac_ext <<_ACEOF
29486 /* end confdefs.h. */
29487 $ac_includes_default
29488 #include <sys/acl.h>
29490 rm -f conftest.$ac_objext
29491 if { (ac_try="$ac_compile"
29492 case "(($ac_try" in
29493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29494 *) ac_try_echo=$ac_try;;
29496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29497 (eval "$ac_compile") 2>conftest.er1
29499 grep -v '^ *+' conftest.er1 >conftest.err
29501 cat conftest.err >&5
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); } && {
29504 test -z "$ac_c_werror_flag" ||
29505 test ! -s conftest.err
29506 } && test -s conftest.$ac_objext; then
29507 ac_header_compiler=yes
29509 echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29512 ac_header_compiler=no
29515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29517 echo "${ECHO_T}$ac_header_compiler" >&6; }
29519 # Is the header present?
29520 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29521 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29522 cat >conftest.$ac_ext <<_ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29528 #include <sys/acl.h>
29530 if { (ac_try="$ac_cpp conftest.$ac_ext"
29531 case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29538 grep -v '^ *+' conftest.er1 >conftest.err
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } >/dev/null && {
29543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29544 test ! -s conftest.err
29546 ac_header_preproc=yes
29548 echo "$as_me: failed program was:" >&5
29549 sed 's/^/| /' conftest.$ac_ext >&5
29551 ac_header_preproc=no
29554 rm -f conftest.err conftest.$ac_ext
29555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29556 echo "${ECHO_T}$ac_header_preproc" >&6; }
29558 # So? What about this header?
29559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29561 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29562 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29563 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29564 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29565 ac_header_preproc=yes
29568 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29569 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29570 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29571 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29572 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29573 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29574 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29575 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29576 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29577 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29578 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29579 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29583 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29584 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29585 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29586 echo $ECHO_N "(cached) $ECHO_C" >&6
29588 ac_cv_header_sys_acl_h=$ac_header_preproc
29590 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29591 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29596 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29597 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29598 if test "${ac_cv_func_acl_get_file+set}" = set; then
29599 echo $ECHO_N "(cached) $ECHO_C" >&6
29601 cat >conftest.$ac_ext <<_ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h. */
29607 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29609 #define acl_get_file innocuous_acl_get_file
29611 /* System header to define __stub macros and hopefully few prototypes,
29612 which can conflict with char acl_get_file (); below.
29613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29614 <limits.h> exists even on freestanding compilers. */
29617 # include <limits.h>
29619 # include <assert.h>
29622 #undef acl_get_file
29624 /* Override any GCC internal prototype to avoid an error.
29625 Use char because int might match the return type of a GCC
29626 builtin and then its argument prototype would still apply. */
29630 char acl_get_file ();
29631 /* The GNU C library defines this for functions which it implements
29632 to always fail with ENOSYS. Some functions are actually named
29633 something starting with __ and the normal name is an alias. */
29634 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29641 return acl_get_file ();
29646 rm -f conftest.$ac_objext conftest$ac_exeext
29647 if { (ac_try="$ac_link"
29648 case "(($ac_try" in
29649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650 *) ac_try_echo=$ac_try;;
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_link") 2>conftest.er1
29655 grep -v '^ *+' conftest.er1 >conftest.err
29657 cat conftest.err >&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } && {
29660 test -z "$ac_c_werror_flag" ||
29661 test ! -s conftest.err
29662 } && test -s conftest$ac_exeext &&
29663 $as_test_x conftest$ac_exeext; then
29664 ac_cv_func_acl_get_file=yes
29666 echo "$as_me: failed program was:" >&5
29667 sed 's/^/| /' conftest.$ac_ext >&5
29669 ac_cv_func_acl_get_file=no
29672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29673 conftest$ac_exeext conftest.$ac_ext
29675 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29676 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29677 if test $ac_cv_func_acl_get_file = yes; then
29680 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29681 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29682 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29683 echo $ECHO_N "(cached) $ECHO_C" >&6
29685 ac_check_lib_save_LIBS=$LIBS
29687 cat >conftest.$ac_ext <<_ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h. */
29694 /* Override any GCC internal prototype to avoid an error.
29695 Use char because int might match the return type of a GCC
29696 builtin and then its argument prototype would still apply. */
29700 char acl_get_file ();
29704 return acl_get_file ();
29709 rm -f conftest.$ac_objext conftest$ac_exeext
29710 if { (ac_try="$ac_link"
29711 case "(($ac_try" in
29712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713 *) ac_try_echo=$ac_try;;
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716 (eval "$ac_link") 2>conftest.er1
29718 grep -v '^ *+' conftest.er1 >conftest.err
29720 cat conftest.err >&5
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); } && {
29723 test -z "$ac_c_werror_flag" ||
29724 test ! -s conftest.err
29725 } && test -s conftest$ac_exeext &&
29726 $as_test_x conftest$ac_exeext; then
29727 ac_cv_lib_acl_acl_get_file=yes
29729 echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29732 ac_cv_lib_acl_acl_get_file=no
29735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29736 conftest$ac_exeext conftest.$ac_ext
29737 LIBS=$ac_check_lib_save_LIBS
29739 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29740 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29741 if test $ac_cv_lib_acl_acl_get_file = yes; then
29742 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29744 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29745 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29746 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29747 echo $ECHO_N "(cached) $ECHO_C" >&6
29749 ac_check_lib_save_LIBS=$LIBS
29751 cat >conftest.$ac_ext <<_ACEOF
29754 cat confdefs.h >>conftest.$ac_ext
29755 cat >>conftest.$ac_ext <<_ACEOF
29756 /* end confdefs.h. */
29758 /* Override any GCC internal prototype to avoid an error.
29759 Use char because int might match the return type of a GCC
29760 builtin and then its argument prototype would still apply. */
29768 return acltotext ();
29773 rm -f conftest.$ac_objext conftest$ac_exeext
29774 if { (ac_try="$ac_link"
29775 case "(($ac_try" in
29776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777 *) ac_try_echo=$ac_try;;
29779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780 (eval "$ac_link") 2>conftest.er1
29782 grep -v '^ *+' conftest.er1 >conftest.err
29784 cat conftest.err >&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); } && {
29787 test -z "$ac_c_werror_flag" ||
29788 test ! -s conftest.err
29789 } && test -s conftest$ac_exeext &&
29790 $as_test_x conftest$ac_exeext; then
29791 ac_cv_lib_sec_acltotext=yes
29793 echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29796 ac_cv_lib_sec_acltotext=no
29799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29800 conftest$ac_exeext conftest.$ac_ext
29801 LIBS=$ac_check_lib_save_LIBS
29803 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29804 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29805 if test $ac_cv_lib_sec_acltotext = yes; then
29806 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29815 if test $have_acl = yes; then
29816 cat >>confdefs.h <<\_ACEOF
29823 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29824 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29825 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29826 echo $ECHO_N "(cached) $ECHO_C" >&6
29828 ac_check_lib_save_LIBS=$LIBS
29829 LIBS="-lpthread $LIBS"
29830 cat >conftest.$ac_ext <<_ACEOF
29833 cat confdefs.h >>conftest.$ac_ext
29834 cat >>conftest.$ac_ext <<_ACEOF
29835 /* end confdefs.h. */
29837 /* Override any GCC internal prototype to avoid an error.
29838 Use char because int might match the return type of a GCC
29839 builtin and then its argument prototype would still apply. */
29843 char pthread_create ();
29847 return pthread_create ();
29852 rm -f conftest.$ac_objext conftest$ac_exeext
29853 if { (ac_try="$ac_link"
29854 case "(($ac_try" in
29855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856 *) ac_try_echo=$ac_try;;
29858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859 (eval "$ac_link") 2>conftest.er1
29861 grep -v '^ *+' conftest.er1 >conftest.err
29863 cat conftest.err >&5
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); } && {
29866 test -z "$ac_c_werror_flag" ||
29867 test ! -s conftest.err
29868 } && test -s conftest$ac_exeext &&
29869 $as_test_x conftest$ac_exeext; then
29870 ac_cv_lib_pthread_pthread_create=yes
29872 echo "$as_me: failed program was:" >&5
29873 sed 's/^/| /' conftest.$ac_ext >&5
29875 ac_cv_lib_pthread_pthread_create=no
29878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29879 conftest$ac_exeext conftest.$ac_ext
29880 LIBS=$ac_check_lib_save_LIBS
29882 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29883 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29884 if test $ac_cv_lib_pthread_pthread_create = yes; then
29885 PTHREAD_LIB="-lpthread"
29887 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29888 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29889 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29890 echo $ECHO_N "(cached) $ECHO_C" >&6
29892 ac_check_lib_save_LIBS=$LIBS
29893 LIBS="-lpthreads $LIBS"
29894 cat >conftest.$ac_ext <<_ACEOF
29897 cat confdefs.h >>conftest.$ac_ext
29898 cat >>conftest.$ac_ext <<_ACEOF
29899 /* end confdefs.h. */
29901 /* Override any GCC internal prototype to avoid an error.
29902 Use char because int might match the return type of a GCC
29903 builtin and then its argument prototype would still apply. */
29907 char pthread_create ();
29911 return pthread_create ();
29916 rm -f conftest.$ac_objext conftest$ac_exeext
29917 if { (ac_try="$ac_link"
29918 case "(($ac_try" in
29919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29920 *) ac_try_echo=$ac_try;;
29922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29923 (eval "$ac_link") 2>conftest.er1
29925 grep -v '^ *+' conftest.er1 >conftest.err
29927 cat conftest.err >&5
29928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); } && {
29930 test -z "$ac_c_werror_flag" ||
29931 test ! -s conftest.err
29932 } && test -s conftest$ac_exeext &&
29933 $as_test_x conftest$ac_exeext; then
29934 ac_cv_lib_pthreads_pthread_create=yes
29936 echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29939 ac_cv_lib_pthreads_pthread_create=no
29942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29943 conftest$ac_exeext conftest.$ac_ext
29944 LIBS=$ac_check_lib_save_LIBS
29946 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29947 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29948 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29949 PTHREAD_LIB="-lpthreads"
29951 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29952 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29953 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29954 echo $ECHO_N "(cached) $ECHO_C" >&6
29956 ac_check_lib_save_LIBS=$LIBS
29958 cat >conftest.$ac_ext <<_ACEOF
29961 cat confdefs.h >>conftest.$ac_ext
29962 cat >>conftest.$ac_ext <<_ACEOF
29963 /* end confdefs.h. */
29965 /* Override any GCC internal prototype to avoid an error.
29966 Use char because int might match the return type of a GCC
29967 builtin and then its argument prototype would still apply. */
29971 char pthread_create ();
29975 return pthread_create ();
29980 rm -f conftest.$ac_objext conftest$ac_exeext
29981 if { (ac_try="$ac_link"
29982 case "(($ac_try" in
29983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984 *) ac_try_echo=$ac_try;;
29986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987 (eval "$ac_link") 2>conftest.er1
29989 grep -v '^ *+' conftest.er1 >conftest.err
29991 cat conftest.err >&5
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); } && {
29994 test -z "$ac_c_werror_flag" ||
29995 test ! -s conftest.err
29996 } && test -s conftest$ac_exeext &&
29997 $as_test_x conftest$ac_exeext; then
29998 ac_cv_lib_c_r_pthread_create=yes
30000 echo "$as_me: failed program was:" >&5
30001 sed 's/^/| /' conftest.$ac_ext >&5
30003 ac_cv_lib_c_r_pthread_create=no
30006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30007 conftest$ac_exeext conftest.$ac_ext
30008 LIBS=$ac_check_lib_save_LIBS
30010 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30011 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30012 if test $ac_cv_lib_c_r_pthread_create = yes; then
30013 PTHREAD_LIB="-lc_r"
30015 { echo "$as_me:$LINENO: checking for pthread_create" >&5
30016 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30017 if test "${ac_cv_func_pthread_create+set}" = set; then
30018 echo $ECHO_N "(cached) $ECHO_C" >&6
30020 cat >conftest.$ac_ext <<_ACEOF
30023 cat confdefs.h >>conftest.$ac_ext
30024 cat >>conftest.$ac_ext <<_ACEOF
30025 /* end confdefs.h. */
30026 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30028 #define pthread_create innocuous_pthread_create
30030 /* System header to define __stub macros and hopefully few prototypes,
30031 which can conflict with char pthread_create (); below.
30032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30033 <limits.h> exists even on freestanding compilers. */
30036 # include <limits.h>
30038 # include <assert.h>
30041 #undef pthread_create
30043 /* Override any GCC internal prototype to avoid an error.
30044 Use char because int might match the return type of a GCC
30045 builtin and then its argument prototype would still apply. */
30049 char pthread_create ();
30050 /* The GNU C library defines this for functions which it implements
30051 to always fail with ENOSYS. Some functions are actually named
30052 something starting with __ and the normal name is an alias. */
30053 #if defined __stub_pthread_create || defined __stub___pthread_create
30060 return pthread_create ();
30065 rm -f conftest.$ac_objext conftest$ac_exeext
30066 if { (ac_try="$ac_link"
30067 case "(($ac_try" in
30068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069 *) ac_try_echo=$ac_try;;
30071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072 (eval "$ac_link") 2>conftest.er1
30074 grep -v '^ *+' conftest.er1 >conftest.err
30076 cat conftest.err >&5
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); } && {
30079 test -z "$ac_c_werror_flag" ||
30080 test ! -s conftest.err
30081 } && test -s conftest$ac_exeext &&
30082 $as_test_x conftest$ac_exeext; then
30083 ac_cv_func_pthread_create=yes
30085 echo "$as_me: failed program was:" >&5
30086 sed 's/^/| /' conftest.$ac_ext >&5
30088 ac_cv_func_pthread_create=no
30091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30092 conftest$ac_exeext conftest.$ac_ext
30094 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30095 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30108 cat >>confdefs.h <<\_ACEOF
30114 CFLAGS=${CFLAGS--O}
30116 if test x$have_gcc = xyes ; then
30117 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30118 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30120 LDFLAGS=${LDFLAGS--O}
30121 DB_LIBS="${SQL_LFLAGS}"
30122 CPPFLAGS="$CPPFLAGS"
30150 # Finally we set appropriate distribution specific
30151 # variables and defaults
30153 # PFILES are platform specific files
30154 PFILES="platforms/Makefile"
30158 hostname=`uname -n | cut -d '.' -f 1`
30159 if test x${hostname} = x ; then
30160 hostname="localhost"
30162 case "$DISTNAME" in
30165 PSCMD="ps -e -o pid,comm"
30166 PFILES="${PFILES} \
30167 platforms/aix/Makefile"
30168 TAPEDRIVE="/dev/rmt0.1"
30172 PTHREAD_LIB="-lpthread -lexc"
30173 if test "${CC}" = "gcc" ; then
30180 TAPEDRIVE="/dev/nrmt0"
30183 DISTVER=`uname -a |awk '{print $3}'`
30184 TAPEDRIVE="/dev/nrmt0"
30185 PTHREAD_LIB="-pthread"
30186 CFLAGS="${CFLAGS} -pthread"
30187 PSCMD="ps -ax -o pid,command"
30190 PFILES="${PFILES} \
30191 platforms/bsdi/Makefile \
30192 platforms/bsdi/bacula-fd \
30193 platforms/bsdi/bacula-sd \
30194 platforms/bsdi/bacula-dir"
30195 largefile_support="yes"
30198 DISTVER=`uname -a |awk '{print $3}'`
30199 TAPEDRIVE="/dev/nrst0"
30201 WCFLAGS="-mwindows"
30202 WLDFLAGS="-mwindows"
30206 TAPEDRIVE="/dev/nst0"
30207 PSCMD="ps -e -o pid,command"
30209 PFILES="${PFILES} \
30210 platforms/darwin/Makefile"
30213 if `grep -q ubuntu /etc/apt/sources.list`; then
30216 DISTVER=`cat /etc/debian_version`
30217 if test -f /etc/lsb-release ; then
30219 if test "x$DISTRIB_ID" != "x" ; then
30220 DISTNAME=$DISTRIB_ID
30222 if test "x$DISTRIB_RELEASE" != "x" ; then
30223 DISTVER=$DISTRIB_RELEASE
30226 if test "$DISTNAME" = "Ubuntu" ; then
30229 TAPEDRIVE="/dev/nst0"
30230 PSCMD="ps -e -o pid,command"
30231 if test "$DISTNAME" = "ubuntu" ; then
30232 PFILES="${PFILES} \
30233 platforms/ubuntu/Makefile \
30234 platforms/ubuntu/bacula-fd \
30235 platforms/ubuntu/bacula-sd \
30236 platforms/ubuntu/bacula-dir"
30238 PFILES="${PFILES} \
30239 platforms/debian/Makefile \
30240 platforms/debian/bacula-fd \
30241 platforms/debian/bacula-sd \
30242 platforms/debian/bacula-dir"
30246 DISTVER=`uname -a |awk '{print $3}'`
30247 VER=`echo $DISTVER | cut -c 1`
30248 if test x$VER = x4 ; then
30249 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30250 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30254 TAPEDRIVE="/dev/nrsa0"
30255 PSCMD="ps -ax -o pid,command"
30256 PFILES="${PFILES} \
30257 platforms/freebsd/Makefile \
30258 platforms/freebsd/bacula-fd \
30259 platforms/freebsd/bacula-sd \
30260 platforms/freebsd/bacula-dir"
30261 largefile_support="yes"
30264 PSCMD="UNIX95=1; ps -e -o pid,comm"
30265 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30267 TAPEDRIVE="/dev/rmt/0hnb"
30268 PTHREAD_LIB="-lpthread"
30269 cat >>confdefs.h <<\_ACEOF
30270 #define _INCLUDE_LONGLONG 1
30276 TAPEDRIVE="/dev/rmt/0cbn"
30277 PSCMD="ps -e -o pid,comm"
30278 PFILES="${PFILES} \
30279 platforms/irix/Makefile \
30280 platforms/irix/bacula-fd \
30281 platforms/irix/bacula-sd \
30282 platforms/irix/bacula-dir"
30285 DISTVER=`uname -a |awk '{print $3}'`
30288 TAPEDRIVE="/dev/nrst0"
30289 PSCMD="ps -ax -o pid,command"
30290 PTHREAD_LIB="-pthread"
30291 CFLAGS="${CFLAGS} -pthread"
30294 DISTVER=`uname -a |awk '{print $3}'`
30297 TAPEDRIVE="/dev/nrst0"
30298 PSCMD="ps -ax -o pid,command"
30299 PTHREAD_LIB="-pthread"
30300 CFLAGS="${CFLAGS} -pthread"
30301 PFILES="${PFILES} \
30302 platforms/openbsd/Makefile \
30303 platforms/openbsd/bacula-fd \
30304 platforms/openbsd/bacula-sd \
30305 platforms/openbsd/bacula-dir"
30308 if test -f /etc/whitebox-release ; then
30309 f=/etc/whitebox-release
30311 f=/etc/redhat-release
30313 if test `cat $f | grep release |\
30314 cut -f 3 -d ' '`x = "Enterprise"x ; then
30315 DISTVER="Enterprise "`cat $f | grep release |\
30318 DISTVER=`cat /etc/redhat-release | grep release |\
30321 TAPEDRIVE="/dev/nst0"
30322 PSCMD="ps -e -o pid,command"
30323 PFILES="${PFILES} \
30324 platforms/redhat/Makefile \
30325 platforms/redhat/bacula-fd \
30326 platforms/redhat/bacula-sd \
30327 platforms/redhat/bacula-dir \
30328 platforms/redhat/bacula.spec \
30332 DISTVER=`cat /etc/mandrake-release | grep release |\
30334 TAPEDRIVE="/dev/nst0"
30335 PSCMD="ps -e -o pid,command"
30336 PFILES="${PFILES} \
30337 platforms/mandrake/Makefile \
30338 platforms/mandrake/bacula-fd \
30339 platforms/mandrake/bacula-sd \
30340 platforms/mandrake/bacula-dir \
30341 platforms/mandrake/bacula.spec \
30345 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30346 TAPEDRIVE="/dev/nst0"
30347 PSCMD="ps -e -o pid,command"
30348 PFILES="${PFILES} \
30349 platforms/gentoo/Makefile \
30350 platforms/gentoo/bacula-init \
30351 platforms/gentoo/bacula-fd \
30352 platforms/gentoo/bacula-sd \
30353 platforms/gentoo/bacula-dir"
30356 DISTVER=`cat /etc/slackware-version`
30357 TAPEDRIVE="/dev/nst0"
30358 PSCMD="ps -e -o pid,command"
30359 PFILES="${PFILES} \
30360 platforms/slackware/Makefile \
30361 platforms/slackware/rc.bacula-fd \
30362 platforms/slackware/rc.bacula-sd \
30363 platforms/slackware/rc.bacula-dir\
30364 platforms/slackware/functions.bacula"
30368 TAPEDRIVE="/dev/rmt/0cbn"
30369 PSCMD="ps -e -o pid,comm"
30370 PFILES="${PFILES} \
30371 platforms/solaris/Makefile \
30372 platforms/solaris/bacula-fd \
30373 platforms/solaris/bacula-sd \
30374 platforms/solaris/bacula-dir"
30375 if test x$DISTVER = x5.6 ; then
30376 cat >>confdefs.h <<\_ACEOF
30377 #define HAVE_OLD_SOCKOPT 1
30381 LIBS="$LIBS -lresolv"
30384 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30386 TAPEDRIVE="/dev/nst0"
30387 PSCMD="ps -e -o pid,command"
30388 PFILES="${PFILES} \
30389 platforms/suse/Makefile \
30390 platforms/suse/bacula-fd \
30391 platforms/suse/bacula-sd \
30392 platforms/suse/bacula-dir \
30393 platforms/suse/bacula \
30394 platforms/suse/bacula.spec"
30399 TAPEDRIVE="/dev/nst0"
30400 PSCMD="ps -e -o pid,command"
30401 PFILES="${PFILES} \
30402 platforms/suse/Makefile \
30403 platforms/suse/bacula-fd \
30404 platforms/suse/bacula-sd \
30405 platforms/suse/bacula-dir"
30409 TAPEDRIVE="/dev/nst0"
30412 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30418 LIBS="$PTHREAD_LIB $LIBS"
30420 cat >>confdefs.h <<_ACEOF
30424 cat >>confdefs.h <<_ACEOF
30435 MCOMMON=./autoconf/Make.common
30438 if test "x${subsysdir}" = "x${sbindir}" ; then
30441 echo "You have set both --sbindir and --with-subsys-dir"
30442 echo " equal to: ${subsysdir} "
30443 echo "This is not permitted. Please reconfigure."
30445 echo "Aborting configuration ..."
30451 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"
30453 ac_config_commands="$ac_config_commands default"
30455 cat >confcache <<\_ACEOF
30456 # This file is a shell script that caches the results of configure
30457 # tests run on this system so they can be shared between configure
30458 # scripts and configure runs, see configure's option --config-cache.
30459 # It is not useful on other systems. If it contains results you don't
30460 # want to keep, you may remove or edit it.
30462 # config.status only pays attention to the cache file if you give it
30463 # the --recheck option to rerun configure.
30465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30467 # following values.
30471 # The following way of writing the cache mishandles newlines in values,
30472 # but we know of no workaround that is simple, portable, and efficient.
30473 # So, we kill variables containing newlines.
30474 # Ultrix sh set writes to stderr and can't be redirected directly,
30475 # and sets the high bit in the cache file unless we assign to the vars.
30477 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30478 eval ac_val=\$$ac_var
30482 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30483 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30486 _ | IFS | as_nl) ;; #(
30487 *) $as_unset $ac_var ;;
30493 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30494 *${as_nl}ac_space=\ *)
30495 # `set' does not quote correctly, so add quotes (double-quote
30496 # substitution turns \\\\ into \\, and sed turns \\ into \).
30499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30502 # `set' quotes correctly as required by POSIX, so do not add quotes.
30503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30514 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30516 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30517 if test -w "$cache_file"; then
30518 test "x$cache_file" != "x/dev/null" &&
30519 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30520 echo "$as_me: updating cache $cache_file" >&6;}
30521 cat confcache >$cache_file
30523 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30524 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30530 # Let make expand exec_prefix.
30531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30533 DEFS=-DHAVE_CONFIG_H
30537 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30538 # 1. Remove the extension, and $U if already installed.
30539 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30540 ac_i=`echo "$ac_i" | sed "$ac_script"`
30541 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30542 # will be set to the directory where LIBOBJS objects are built.
30543 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30544 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30546 LIBOBJS=$ac_libobjs
30548 LTLIBOBJS=$ac_ltlibobjs
30552 : ${CONFIG_STATUS=./config.status}
30553 ac_clean_files_save=$ac_clean_files
30554 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30555 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30556 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30557 cat >$CONFIG_STATUS <<_ACEOF
30559 # Generated by $as_me.
30560 # Run this file to recreate the current configuration.
30561 # Compiler output produced by configure, useful for debugging
30562 # configure, is in config.log if it exists.
30565 ac_cs_recheck=false
30567 SHELL=\${CONFIG_SHELL-$SHELL}
30570 cat >>$CONFIG_STATUS <<\_ACEOF
30571 ## --------------------- ##
30572 ## M4sh Initialization. ##
30573 ## --------------------- ##
30575 # Be more Bourne compatible
30576 DUALCASE=1; export DUALCASE # for MKS sh
30577 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30580 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30581 # is contrary to our usage. Disable this feature.
30582 alias -g '${1+"$@"}'='"$@"'
30583 setopt NO_GLOB_SUBST
30585 case `(set -o) 2>/dev/null` in
30586 *posix*) set -o posix ;;
30595 # Avoid depending upon Character Ranges.
30596 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30597 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30598 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30599 as_cr_digits='0123456789'
30600 as_cr_alnum=$as_cr_Letters$as_cr_digits
30602 # The user is always right.
30603 if test "${PATH_SEPARATOR+set}" != set; then
30604 echo "#! /bin/sh" >conf$$.sh
30605 echo "exit 0" >>conf$$.sh
30607 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30615 # Support unset when possible.
30616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30624 # We need space, tab and new line, in precisely that order. Quoting is
30625 # there to prevent editors from complaining about space-tab.
30626 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30627 # splitting by setting IFS to empty value.)
30632 # Find who we are. Look in the path if we contain no directory separator.
30634 *[\\/]* ) as_myself=$0 ;;
30635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30636 for as_dir in $PATH
30639 test -z "$as_dir" && as_dir=.
30640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30646 # We did not find ourselves, most probably we were run as `sh COMMAND'
30647 # in which case we are not to be found in the path.
30648 if test "x$as_myself" = x; then
30651 if test ! -f "$as_myself"; then
30652 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30653 { (exit 1); exit 1; }
30656 # Work around bugs in pre-3.0 UWIN ksh.
30657 for as_var in ENV MAIL MAILPATH
30658 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30666 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30667 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30668 LC_TELEPHONE LC_TIME
30670 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30671 eval $as_var=C; export $as_var
30673 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30677 # Required to use basename.
30678 if expr a : '\(a\)' >/dev/null 2>&1 &&
30679 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30685 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30686 as_basename=basename
30692 # Name of the executable.
30693 as_me=`$as_basename -- "$0" ||
30694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30695 X"$0" : 'X\(//\)$' \| \
30696 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30698 sed '/^.*\/\([^/][^/]*\)\/*$/{
30717 as_lineno_1=$LINENO
30718 as_lineno_2=$LINENO
30719 test "x$as_lineno_1" != "x$as_lineno_2" &&
30720 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30722 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30723 # uniformly replaced by the line number. The first 'sed' inserts a
30724 # line-number line after each line using $LINENO; the second 'sed'
30725 # does the real work. The second script uses 'N' to pair each
30726 # line-number line with the line containing $LINENO, and appends
30727 # trailing '-' during substitution so that $LINENO is not a special
30728 # case at line end.
30729 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30730 # scripts with optimization help from Paolo Bonzini. Blame Lee
30731 # E. McMahon (1931-1989) for sed's syntax. :-)
30743 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30746 ' >$as_me.lineno &&
30747 chmod +x "$as_me.lineno" ||
30748 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30749 { (exit 1); exit 1; }; }
30751 # Don't try to exec as it changes $[0], causing all sort of problems
30752 # (the dirname of $[0] is not the place where we might find the
30753 # original and so on. Autoconf is especially sensitive to this).
30754 . "./$as_me.lineno"
30755 # Exit status is that of the last command.
30760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30766 ECHO_C= ECHO_N= ECHO_T=
30767 case `echo -n x` in
30769 case `echo 'x\c'` in
30770 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30777 if expr a : '\(a\)' >/dev/null 2>&1 &&
30778 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30784 rm -f conf$$ conf$$.exe conf$$.file
30785 if test -d conf$$.dir; then
30786 rm -f conf$$.dir/conf$$.file
30792 if ln -s conf$$.file conf$$ 2>/dev/null; then
30794 # ... but there are two gotchas:
30795 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30796 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30797 # In both cases, we have to default to `cp -p'.
30798 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30800 elif ln conf$$.file conf$$ 2>/dev/null; then
30805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30806 rmdir conf$$.dir 2>/dev/null
30808 if mkdir -p . 2>/dev/null; then
30811 test -d ./-p && rmdir ./-p
30815 if test -x / >/dev/null 2>&1; then
30816 as_test_x='test -x'
30818 if ls -dL / >/dev/null 2>&1; then
30825 if test -d "$1"; then
30831 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30832 ???[sx]*):;;*)false;;esac;fi
30836 as_executable_p=$as_test_x
30838 # Sed expression to map a string onto a valid CPP name.
30839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30841 # Sed expression to map a string onto a valid variable name.
30842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30847 # Save the log message, to keep $[0] and so on meaningful, and to
30848 # report actual input values of CONFIG_FILES etc. instead of their
30849 # values after options handling.
30851 This file was extended by $as_me, which was
30852 generated by GNU Autoconf 2.61. Invocation command line was
30854 CONFIG_FILES = $CONFIG_FILES
30855 CONFIG_HEADERS = $CONFIG_HEADERS
30856 CONFIG_LINKS = $CONFIG_LINKS
30857 CONFIG_COMMANDS = $CONFIG_COMMANDS
30860 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30865 cat >>$CONFIG_STATUS <<_ACEOF
30866 # Files that config.status was made for.
30867 config_files="$ac_config_files"
30868 config_headers="$ac_config_headers"
30869 config_commands="$ac_config_commands"
30873 cat >>$CONFIG_STATUS <<\_ACEOF
30875 \`$as_me' instantiates files from templates according to the
30876 current configuration.
30878 Usage: $0 [OPTIONS] [FILE]...
30880 -h, --help print this help, then exit
30881 -V, --version print version number and configuration settings, then exit
30882 -q, --quiet do not print progress messages
30883 -d, --debug don't remove temporary files
30884 --recheck update $as_me by reconfiguring in the same conditions
30885 --file=FILE[:TEMPLATE]
30886 instantiate the configuration file FILE
30887 --header=FILE[:TEMPLATE]
30888 instantiate the configuration header FILE
30890 Configuration files:
30893 Configuration headers:
30896 Configuration commands:
30899 Report bugs to <bug-autoconf@gnu.org>."
30902 cat >>$CONFIG_STATUS <<_ACEOF
30905 configured by $0, generated by GNU Autoconf 2.61,
30906 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30908 Copyright (C) 2006 Free Software Foundation, Inc.
30909 This config.status script is free software; the Free Software Foundation
30910 gives unlimited permission to copy, distribute and modify it."
30917 cat >>$CONFIG_STATUS <<\_ACEOF
30918 # If no file are specified by the user, then we need to provide default
30919 # value. By we need to know if files were specified by the user.
30925 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30926 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30937 # Handling of the options.
30938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30940 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30941 echo "$ac_cs_version"; exit ;;
30942 --debug | --debu | --deb | --de | --d | -d )
30944 --file | --fil | --fi | --f )
30946 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30947 ac_need_defaults=false;;
30948 --header | --heade | --head | --hea )
30950 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30951 ac_need_defaults=false;;
30953 # Conflict between --help and --header
30954 { echo "$as_me: error: ambiguous option: $1
30955 Try \`$0 --help' for more information." >&2
30956 { (exit 1); exit 1; }; };;
30957 --help | --hel | -h )
30958 echo "$ac_cs_usage"; exit ;;
30959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30963 # This is an error.
30964 -*) { echo "$as_me: error: unrecognized option: $1
30965 Try \`$0 --help' for more information." >&2
30966 { (exit 1); exit 1; }; } ;;
30968 *) ac_config_targets="$ac_config_targets $1"
30969 ac_need_defaults=false ;;
30975 ac_configure_extra_args=
30977 if $ac_cs_silent; then
30979 ac_configure_extra_args="$ac_configure_extra_args --silent"
30983 cat >>$CONFIG_STATUS <<_ACEOF
30984 if \$ac_cs_recheck; then
30985 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30986 CONFIG_SHELL=$SHELL
30987 export CONFIG_SHELL
30988 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30992 cat >>$CONFIG_STATUS <<\_ACEOF
30996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30997 ## Running $as_me. ##
31003 cat >>$CONFIG_STATUS <<_ACEOF
31007 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31008 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31010 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31011 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31012 LINGUAS="${LINGUAS-%UNSET%}"
31017 cat >>$CONFIG_STATUS <<\_ACEOF
31019 # Handling of arguments.
31020 for ac_config_target in $ac_config_targets
31022 case $ac_config_target in
31023 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31024 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31025 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31026 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31027 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31028 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31029 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31030 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31031 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31032 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31033 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31034 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31035 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31036 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31037 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31038 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31039 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31040 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31041 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31042 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31043 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31044 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31045 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31046 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31047 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31048 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31049 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31050 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31051 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31052 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31053 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31054 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31055 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31056 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31057 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31058 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31059 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31060 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31061 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31062 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31063 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31064 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31065 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31066 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31067 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31068 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31069 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31070 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31071 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31072 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31073 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31074 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31075 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31076 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31077 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31078 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31079 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31080 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31081 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31082 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31083 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31084 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31085 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31086 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31087 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31088 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31089 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31090 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31091 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31092 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31093 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31094 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31095 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31096 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31097 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31098 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31099 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31100 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31101 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31102 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31103 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31104 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31105 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31106 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31107 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31108 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31109 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31110 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31111 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31112 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31113 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31114 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31115 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31116 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31117 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31118 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31119 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31120 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31121 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31122 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31123 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31124 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31125 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31126 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31127 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31128 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31129 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31130 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31131 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31132 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31134 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31135 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31136 { (exit 1); exit 1; }; };;
31141 # If the user did not use the arguments to specify the items to instantiate,
31142 # then the envvar interface is used. Set only those that are not.
31143 # We use the long form for the default assignment because of an extremely
31144 # bizarre bug on SunOS 4.1.3.
31145 if $ac_need_defaults; then
31146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31148 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31151 # Have a temporary directory for convenience. Make it in the build tree
31152 # simply because there is no reason against having it here, and in addition,
31153 # creating and moving files from /tmp can sometimes cause problems.
31154 # Hook for its removal unless debugging.
31155 # Note that there is a small window in which the directory will not be cleaned:
31156 # after its creation but before its name has been assigned to `$tmp'.
31160 trap 'exit_status=$?
31161 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31163 trap '{ (exit 1); exit 1; }' 1 2 13 15
31165 # Create a (secure) tmp directory for tmp files.
31168 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31169 test -n "$tmp" && test -d "$tmp"
31172 tmp=./conf$$-$RANDOM
31173 (umask 077 && mkdir "$tmp")
31176 echo "$me: cannot create a temporary directory in ." >&2
31177 { (exit 1); exit 1; }
31181 # Set up the sed scripts for CONFIG_FILES section.
31184 # No need to generate the scripts if there are no CONFIG_FILES.
31185 # This happens for instance when ./config.status config.h
31186 if test -n "$CONFIG_FILES"; then
31190 # Create sed commands to just substitute file output variables.
31192 # Remaining file output variables are in a fragment that also has non-file
31198 for ac_last_try in false false false false false :; do
31199 cat >conf$$subs.sed <<_ACEOF
31200 SHELL!$SHELL$ac_delim
31201 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31202 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31203 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31204 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31205 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31206 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31207 exec_prefix!$exec_prefix$ac_delim
31208 prefix!$prefix$ac_delim
31209 program_transform_name!$program_transform_name$ac_delim
31210 bindir!$bindir$ac_delim
31211 sbindir!$sbindir$ac_delim
31212 libexecdir!$libexecdir$ac_delim
31213 datarootdir!$datarootdir$ac_delim
31214 datadir!$datadir$ac_delim
31215 sysconfdir!$sysconfdir$ac_delim
31216 sharedstatedir!$sharedstatedir$ac_delim
31217 localstatedir!$localstatedir$ac_delim
31218 includedir!$includedir$ac_delim
31219 oldincludedir!$oldincludedir$ac_delim
31220 docdir!$docdir$ac_delim
31221 infodir!$infodir$ac_delim
31222 htmldir!$htmldir$ac_delim
31223 dvidir!$dvidir$ac_delim
31224 pdfdir!$pdfdir$ac_delim
31225 psdir!$psdir$ac_delim
31226 libdir!$libdir$ac_delim
31227 localedir!$localedir$ac_delim
31228 mandir!$mandir$ac_delim
31229 DEFS!$DEFS$ac_delim
31230 ECHO_C!$ECHO_C$ac_delim
31231 ECHO_N!$ECHO_N$ac_delim
31232 ECHO_T!$ECHO_T$ac_delim
31233 LIBS!$LIBS$ac_delim
31234 build_alias!$build_alias$ac_delim
31235 host_alias!$host_alias$ac_delim
31236 target_alias!$target_alias$ac_delim
31237 BUILD_DIR!$BUILD_DIR$ac_delim
31238 TOP_DIR!$TOP_DIR$ac_delim
31239 TRUEPRG!$TRUEPRG$ac_delim
31240 FALSEPRG!$FALSEPRG$ac_delim
31241 VERSION!$VERSION$ac_delim
31242 DATE!$DATE$ac_delim
31243 LSMDATE!$LSMDATE$ac_delim
31245 CFLAGS!$CFLAGS$ac_delim
31246 LDFLAGS!$LDFLAGS$ac_delim
31247 CPPFLAGS!$CPPFLAGS$ac_delim
31248 ac_ct_CC!$ac_ct_CC$ac_delim
31249 EXEEXT!$EXEEXT$ac_delim
31250 OBJEXT!$OBJEXT$ac_delim
31252 CXXFLAGS!$CXXFLAGS$ac_delim
31253 ac_ct_CXX!$ac_ct_CXX$ac_delim
31255 GREP!$GREP$ac_delim
31256 EGREP!$EGREP$ac_delim
31257 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31258 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31259 INSTALL_DATA!$INSTALL_DATA$ac_delim
31260 RANLIB!$RANLIB$ac_delim
31265 ECHO!$ECHO$ac_delim
31269 OPENSSL!$OPENSSL$ac_delim
31272 MKISOFS!$MKISOFS$ac_delim
31273 PYTHON!$PYTHON$ac_delim
31274 GROWISOFS!$GROWISOFS$ac_delim
31275 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31276 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31277 PKGCONFIG!$PKGCONFIG$ac_delim
31278 QMAKE!$QMAKE$ac_delim
31279 QMAKEQT4!$QMAKEQT4$ac_delim
31280 WXCONFIG!$WXCONFIG$ac_delim
31281 WXFLAGS!$WXFLAGS$ac_delim
31282 CDRECORD!$CDRECORD$ac_delim
31283 PIDOF!$PIDOF$ac_delim
31285 ARFLAGS!$ARFLAGS$ac_delim
31286 MAKE_SHELL!$MAKE_SHELL$ac_delim
31287 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31288 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31289 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31290 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31291 build!$build$ac_delim
31292 build_cpu!$build_cpu$ac_delim
31293 build_vendor!$build_vendor$ac_delim
31296 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31298 elif $ac_last_try; then
31299 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31300 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31301 { (exit 1); exit 1; }; }
31303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31307 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31308 if test -n "$ac_eof"; then
31309 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31310 ac_eof=`expr $ac_eof + 1`
31313 cat >>$CONFIG_STATUS <<_ACEOF
31314 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31316 /^[ ]*@MCOMMON@[ ]*$/{
31322 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31323 s/^/s,@/; s/!/@,|#_!!_#|/
31326 s/'"$ac_delim"'$/,g/; t
31328 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31329 ' >>$CONFIG_STATUS <conf$$subs.sed
31330 rm -f conf$$subs.sed
31331 cat >>$CONFIG_STATUS <<_ACEOF
31337 for ac_last_try in false false false false false :; do
31338 cat >conf$$subs.sed <<_ACEOF
31339 build_os!$build_os$ac_delim
31340 host!$host$ac_delim
31341 host_cpu!$host_cpu$ac_delim
31342 host_vendor!$host_vendor$ac_delim
31343 host_os!$host_os$ac_delim
31344 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31345 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31346 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31347 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31348 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31349 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31350 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31351 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31352 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31353 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31354 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31355 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31356 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31357 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31358 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31359 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31360 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31361 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31362 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31363 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31364 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31365 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31366 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31367 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31368 SET_MAKE!$SET_MAKE$ac_delim
31369 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31370 USE_NLS!$USE_NLS$ac_delim
31371 MSGFMT!$MSGFMT$ac_delim
31372 GMSGFMT!$GMSGFMT$ac_delim
31373 XGETTEXT!$XGETTEXT$ac_delim
31374 MSGMERGE!$MSGMERGE$ac_delim
31375 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31376 LIBICONV!$LIBICONV$ac_delim
31377 LTLIBICONV!$LTLIBICONV$ac_delim
31378 INTLLIBS!$INTLLIBS$ac_delim
31379 LIBINTL!$LIBINTL$ac_delim
31380 LTLIBINTL!$LTLIBINTL$ac_delim
31381 POSUB!$POSUB$ac_delim
31382 GLIBC2!$GLIBC2$ac_delim
31383 ALLOCA!$ALLOCA$ac_delim
31384 GLIBC21!$GLIBC21$ac_delim
31385 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31386 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31387 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31388 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31389 INTLBISON!$INTLBISON$ac_delim
31390 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31391 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31392 CATOBJEXT!$CATOBJEXT$ac_delim
31393 DATADIRNAME!$DATADIRNAME$ac_delim
31394 INSTOBJEXT!$INSTOBJEXT$ac_delim
31395 GENCAT!$GENCAT$ac_delim
31396 INTLOBJS!$INTLOBJS$ac_delim
31397 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31398 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31399 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31400 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31401 GNOME_LIBS!$GNOME_LIBS$ac_delim
31402 GNOME_DIR!$GNOME_DIR$ac_delim
31403 BAT_DIR!$BAT_DIR$ac_delim
31404 QWT_INC!$QWT_INC$ac_delim
31405 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31406 QWT_LIB!$QWT_LIB$ac_delim
31408 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31409 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31410 WX_DIR!$WX_DIR$ac_delim
31411 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31412 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31413 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31414 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31415 STATIC_FD!$STATIC_FD$ac_delim
31416 STATIC_SD!$STATIC_SD$ac_delim
31417 STATIC_DIR!$STATIC_DIR$ac_delim
31418 STATIC_CONS!$STATIC_CONS$ac_delim
31419 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31420 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31421 ALL_DIRS!$ALL_DIRS$ac_delim
31422 DIRD_DIR!$DIRD_DIR$ac_delim
31423 DIR_TOOLS!$DIR_TOOLS$ac_delim
31424 STORED_DIR!$STORED_DIR$ac_delim
31425 CONS_INC!$CONS_INC$ac_delim
31426 CONS_OBJ!$CONS_OBJ$ac_delim
31427 CONS_SRC!$CONS_SRC$ac_delim
31428 CONS_LIBS!$CONS_LIBS$ac_delim
31429 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31430 READLINE_SRC!$READLINE_SRC$ac_delim
31431 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31432 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31433 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31434 OPENSSL_INC!$OPENSSL_INC$ac_delim
31435 working_dir!$working_dir$ac_delim
31438 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31440 elif $ac_last_try; then
31441 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31442 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31443 { (exit 1); exit 1; }; }
31445 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31449 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31450 if test -n "$ac_eof"; then
31451 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31452 ac_eof=`expr $ac_eof + 1`
31455 cat >>$CONFIG_STATUS <<_ACEOF
31456 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31460 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31461 s/^/s,@/; s/!/@,|#_!!_#|/
31464 s/'"$ac_delim"'$/,g/; t
31466 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31467 ' >>$CONFIG_STATUS <conf$$subs.sed
31468 rm -f conf$$subs.sed
31469 cat >>$CONFIG_STATUS <<_ACEOF
31475 for ac_last_try in false false false false false :; do
31476 cat >conf$$subs.sed <<_ACEOF
31477 archivedir!$archivedir$ac_delim
31478 scriptdir!$scriptdir$ac_delim
31479 dump_email!$dump_email$ac_delim
31480 job_email!$job_email$ac_delim
31481 smtp_host!$smtp_host$ac_delim
31482 piddir!$piddir$ac_delim
31483 subsysdir!$subsysdir$ac_delim
31484 baseport!$baseport$ac_delim
31485 dir_port!$dir_port$ac_delim
31486 fd_port!$fd_port$ac_delim
31487 sd_port!$sd_port$ac_delim
31488 dir_password!$dir_password$ac_delim
31489 fd_password!$fd_password$ac_delim
31490 sd_password!$sd_password$ac_delim
31491 mon_dir_password!$mon_dir_password$ac_delim
31492 mon_fd_password!$mon_fd_password$ac_delim
31493 mon_sd_password!$mon_sd_password$ac_delim
31494 db_name!$db_name$ac_delim
31495 db_user!$db_user$ac_delim
31496 dir_user!$dir_user$ac_delim
31497 dir_group!$dir_group$ac_delim
31498 sd_user!$sd_user$ac_delim
31499 sd_group!$sd_group$ac_delim
31500 fd_user!$fd_user$ac_delim
31501 fd_group!$fd_group$ac_delim
31502 SBINPERM!$SBINPERM$ac_delim
31503 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31504 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31505 SQL_BINDIR!$SQL_BINDIR$ac_delim
31506 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31507 DB_PROG!$DB_PROG$ac_delim
31508 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31509 cats!$cats$ac_delim
31510 DB_TYPE!$DB_TYPE$ac_delim
31511 GETCONF!$GETCONF$ac_delim
31512 XMKMF!$XMKMF$ac_delim
31513 X_CFLAGS!$X_CFLAGS$ac_delim
31514 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31515 X_LIBS!$X_LIBS$ac_delim
31516 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31517 LIBOBJS!$LIBOBJS$ac_delim
31518 FDLIBS!$FDLIBS$ac_delim
31519 DEBUG!$DEBUG$ac_delim
31520 DINCLUDE!$DINCLUDE$ac_delim
31521 DLIB!$DLIB$ac_delim
31522 DB_LIBS!$DB_LIBS$ac_delim
31523 WCFLAGS!$WCFLAGS$ac_delim
31524 WLDFLAGS!$WLDFLAGS$ac_delim
31525 WRAPLIBS!$WRAPLIBS$ac_delim
31526 OBJLIST!$OBJLIST$ac_delim
31527 hostname!$hostname$ac_delim
31528 TAPEDRIVE!$TAPEDRIVE$ac_delim
31529 PSCMD!$PSCMD$ac_delim
31530 WIN32!$WIN32$ac_delim
31531 MACOSX!$MACOSX$ac_delim
31532 DISTNAME!$DISTNAME$ac_delim
31533 DISTVER!$DISTVER$ac_delim
31534 LTLIBOBJS!$LTLIBOBJS$ac_delim
31537 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
31539 elif $ac_last_try; then
31540 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31541 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31542 { (exit 1); exit 1; }; }
31544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31548 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31549 if test -n "$ac_eof"; then
31550 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31551 ac_eof=`expr $ac_eof + 1`
31554 cat >>$CONFIG_STATUS <<_ACEOF
31555 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31559 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31560 s/^/s,@/; s/!/@,|#_!!_#|/
31563 s/'"$ac_delim"'$/,g/; t
31565 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31566 ' >>$CONFIG_STATUS <conf$$subs.sed
31567 rm -f conf$$subs.sed
31568 cat >>$CONFIG_STATUS <<_ACEOF
31575 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31577 # trailing colons and then remove the whole line if VPATH becomes empty
31578 # (actually we leave an empty line to preserve line numbers).
31579 if test "x$srcdir" = x.; then
31580 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31581 s/:*\$(srcdir):*/:/
31582 s/:*\${srcdir}:*/:/
31584 s/^\([^=]*=[ ]*\):*/\1/
31590 cat >>$CONFIG_STATUS <<\_ACEOF
31591 fi # test -n "$CONFIG_FILES"
31594 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31597 :[FHLC]) ac_mode=$ac_tag; continue;;
31599 case $ac_mode$ac_tag in
31601 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31602 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31603 { (exit 1); exit 1; }; };;
31604 :[FH]-) ac_tag=-:-;;
31605 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31622 -) ac_f="$tmp/stdin";;
31623 *) # Look for the file first in the build tree, then in the source tree
31624 # (if the path is not absolute). The absolute path cannot be DOS-style,
31625 # because $ac_f cannot contain `:'.
31629 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31631 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31632 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31633 { (exit 1); exit 1; }; };;
31635 ac_file_inputs="$ac_file_inputs $ac_f"
31638 # Let's still pretend it is `configure' which instantiates (i.e., don't
31639 # use $as_me), people would be surprised to read:
31640 # /* config.h. Generated by config.status. */
31641 configure_input="Generated from "`IFS=:
31642 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31643 if test x"$ac_file" != x-; then
31644 configure_input="$ac_file. $configure_input"
31645 { echo "$as_me:$LINENO: creating $ac_file" >&5
31646 echo "$as_me: creating $ac_file" >&6;}
31650 *:-:* | *:-) cat >"$tmp/stdin";;
31655 ac_dir=`$as_dirname -- "$ac_file" ||
31656 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31657 X"$ac_file" : 'X\(//\)[^/]' \| \
31658 X"$ac_file" : 'X\(//\)$' \| \
31659 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31665 /^X\(\/\/\)[^/].*/{
31680 -*) as_dir=./$as_dir;;
31682 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31686 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31687 *) as_qdir=$as_dir;;
31689 as_dirs="'$as_qdir' $as_dirs"
31690 as_dir=`$as_dirname -- "$as_dir" ||
31691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31692 X"$as_dir" : 'X\(//\)[^/]' \| \
31693 X"$as_dir" : 'X\(//\)$' \| \
31694 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31700 /^X\(\/\/\)[^/].*/{
31713 test -d "$as_dir" && break
31715 test -z "$as_dirs" || eval "mkdir $as_dirs"
31716 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31717 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31718 { (exit 1); exit 1; }; }; }
31722 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31724 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31725 # A ".." for each directory in $ac_dir_suffix.
31726 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31727 case $ac_top_builddir_sub in
31728 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31729 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31732 ac_abs_top_builddir=$ac_pwd
31733 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31734 # for backward compatibility:
31735 ac_top_builddir=$ac_top_build_prefix
31738 .) # We are building in place.
31740 ac_top_srcdir=$ac_top_builddir_sub
31741 ac_abs_top_srcdir=$ac_pwd ;;
31742 [\\/]* | ?:[\\/]* ) # Absolute name.
31743 ac_srcdir=$srcdir$ac_dir_suffix;
31744 ac_top_srcdir=$srcdir
31745 ac_abs_top_srcdir=$srcdir ;;
31746 *) # Relative name.
31747 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31748 ac_top_srcdir=$ac_top_build_prefix$srcdir
31749 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31751 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31761 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31762 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31766 cat >>$CONFIG_STATUS <<\_ACEOF
31767 # If the template does not know about datarootdir, expand it.
31768 # FIXME: This hack should be removed a few years after 2.60.
31769 ac_datarootdir_hack=; ac_datarootdir_seen=
31771 case `sed -n '/datarootdir/ {
31780 ' $ac_file_inputs` in
31781 *datarootdir*) ac_datarootdir_seen=yes;;
31782 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31783 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31784 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31786 cat >>$CONFIG_STATUS <<_ACEOF
31787 ac_datarootdir_hack='
31788 s&@datadir@&$datadir&g
31789 s&@docdir@&$docdir&g
31790 s&@infodir@&$infodir&g
31791 s&@localedir@&$localedir&g
31792 s&@mandir@&$mandir&g
31793 s&\\\${datarootdir}&$datarootdir&g' ;;
31797 # Neutralize VPATH when `$srcdir' = `.'.
31798 # Shell code in configure.ac might set extrasub.
31799 # FIXME: do we really want to maintain this feature?
31800 cat >>$CONFIG_STATUS <<_ACEOF
31804 cat >>$CONFIG_STATUS <<\_ACEOF
31806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31807 s&@configure_input@&$configure_input&;t t
31808 s&@top_builddir@&$ac_top_builddir_sub&;t t
31809 s&@srcdir@&$ac_srcdir&;t t
31810 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31811 s&@top_srcdir@&$ac_top_srcdir&;t t
31812 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31813 s&@builddir@&$ac_builddir&;t t
31814 s&@abs_builddir@&$ac_abs_builddir&;t t
31815 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31816 s&@INSTALL@&$ac_INSTALL&;t t
31817 $ac_datarootdir_hack
31818 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31820 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31821 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31822 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31823 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31824 which seems to be undefined. Please make sure it is defined." >&5
31825 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31826 which seems to be undefined. Please make sure it is defined." >&2;}
31830 -) cat "$tmp/out"; rm -f "$tmp/out";;
31831 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31840 # Transform confdefs.h into a sed script `conftest.defines', that
31841 # substitutes the proper values into config.h.in to produce config.h.
31842 rm -f conftest.defines conftest.tail
31843 # First, append a space to every undef/define line, to ease matching.
31844 echo 's/$/ /' >conftest.defines
31845 # Then, protect against being on the right side of a sed subst, or in
31846 # an unquoted here document, in config.status. If some macros were
31847 # called several times there might be several #defines for the same
31848 # symbol, which is useless. But do not sort them, since the last
31849 # AC_DEFINE must be honored.
31850 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31851 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31852 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31853 # PARAMS is the parameter list in the macro definition--in most cases, it's
31854 # just an empty string.
31855 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31856 ac_dB='\\)[ (].*,\\1define\\2'
31864 s/^[ ]*#[ ]*define[ ][ ]*//
31869 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31870 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31871 ' >>conftest.defines
31873 # Remove the space that was appended to ease matching.
31874 # Then replace #undef with comments. This is necessary, for
31875 # example, in the case of _POSIX_SOURCE, which is predefined and required
31876 # on some systems where configure will not decide to define it.
31877 # (The regexp can be short, since the line contains either #define or #undef.)
31879 s,^[ #]*u.*,/* & */,' >>conftest.defines
31881 # Break up conftest.defines:
31882 ac_max_sed_lines=50
31884 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31885 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31886 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31888 ac_in='$ac_file_inputs'
31889 ac_out='"$tmp/out1"'
31890 ac_nxt='"$tmp/out2"'
31894 # Write a here document:
31895 cat >>$CONFIG_STATUS <<_ACEOF
31896 # First, check the format of the line:
31897 cat >"\$tmp/defines.sed" <<\\CEOF
31898 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31899 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31903 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31905 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31906 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31907 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31908 grep . conftest.tail >/dev/null || break
31909 rm -f conftest.defines
31910 mv conftest.tail conftest.defines
31912 rm -f conftest.defines conftest.tail
31914 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31915 cat >>$CONFIG_STATUS <<\_ACEOF
31916 if test x"$ac_file" != x-; then
31917 echo "/* $configure_input */" >"$tmp/config.h"
31918 cat "$ac_result" >>"$tmp/config.h"
31919 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31920 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31921 echo "$as_me: $ac_file is unchanged" >&6;}
31924 mv "$tmp/config.h" $ac_file
31927 echo "/* $configure_input */"
31933 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31934 echo "$as_me: executing $ac_file commands" >&6;}
31939 case $ac_file$ac_mode in
31941 for ac_file in $CONFIG_FILES; do
31942 # Support "outfile[:infile[:infile...]]"
31944 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31946 # PO directories have a Makefile.in generated from Makefile.in.in.
31947 case "$ac_file" in */Makefile.in)
31948 # Adjust a relative srcdir.
31949 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31950 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31951 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31952 # In autoconf-2.13 it is called $ac_given_srcdir.
31953 # In autoconf-2.50 it is called $srcdir.
31954 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31955 case "$ac_given_srcdir" in
31956 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31957 /*) top_srcdir="$ac_given_srcdir" ;;
31958 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31960 # Treat a directory as a PO directory if and only if it has a
31961 # POTFILES.in file. This allows packages to have multiple PO
31962 # directories under different names or in different locations.
31963 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31964 rm -f "$ac_dir/POTFILES"
31965 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31966 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31967 POMAKEFILEDEPS="POTFILES.in"
31968 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31969 # on $ac_dir but don't depend on user-specified configuration
31971 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31972 # The LINGUAS file contains the set of available languages.
31973 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31974 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31976 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31977 # Hide the ALL_LINGUAS assigment from automake.
31978 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31979 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31981 # The set of available languages was given in configure.in.
31982 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31985 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31986 # Compute UPDATEPOFILES
31987 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31988 # Compute DUMMYPOFILES
31989 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31991 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31992 case "$ac_given_srcdir" in
31994 *) srcdirpre='$(srcdir)/' ;;
32000 for lang in $ALL_LINGUAS; do
32001 POFILES="$POFILES $srcdirpre$lang.po"
32002 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32003 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32004 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32006 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32007 # environment variable.
32009 if test -n "$ALL_LINGUAS"; then
32010 for presentlang in $ALL_LINGUAS; do
32012 if test "%UNSET%" != "$LINGUAS"; then
32013 desiredlanguages="$LINGUAS"
32015 desiredlanguages="$ALL_LINGUAS"
32017 for desiredlang in $desiredlanguages; do
32018 # Use the presentlang catalog if desiredlang is
32019 # a. equal to presentlang, or
32020 # b. a variant of presentlang (because in this case,
32021 # presentlang can be used as a fallback for messages
32022 # which are not translated in the desiredlang catalog).
32023 case "$desiredlang" in
32024 "$presentlang"*) useit=yes;;
32027 if test $useit = yes; then
32028 INST_LINGUAS="$INST_LINGUAS $presentlang"
32033 if test -n "$INST_LINGUAS"; then
32034 for lang in $INST_LINGUAS; do
32035 CATALOGS="$CATALOGS $lang.gmo"
32038 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32039 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"
32040 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32041 if test -f "$f"; then
32043 *.orig | *.bak | *~) ;;
32044 *) cat "$f" >> "$ac_dir/Makefile" ;;
32059 { (exit 0); exit 0; }
32061 chmod +x $CONFIG_STATUS
32062 ac_clean_files=$ac_clean_files_save
32065 # configure is writing to config.log, and then calls config.status.
32066 # config.status does its own redirection, appending to config.log.
32067 # Unfortunately, on DOS this fails, as config.log is still kept open
32068 # by configure, so config.status won't be able to write to it; its
32069 # output is simply discarded. So we exec the FD to /dev/null,
32070 # effectively closing config.log, so it can be properly (re)opened and
32071 # appended to by config.status. When coming back to configure, we
32072 # need to make the FD available again.
32073 if test "$no_create" != yes; then
32075 ac_config_status_args=
32076 test "$silent" = yes &&
32077 ac_config_status_args="$ac_config_status_args --quiet"
32079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32082 # would make configure fail if this is the last instruction.
32083 $ac_cs_success || { (exit 1); exit 1; }
32087 if test "${support_bat}" = "yes" ; then
32088 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32089 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32095 if test "x$QMAKEQT4" != "xnone"; then
32100 chmod 755 install_conf_file build-depkgs-qt-console
32101 echo "Creating bat Makefile"
32107 # configure and prepare libtokyodbm for bacula
32108 pushd src/lib/tokyocabinet > /dev/null
32110 if test x$largefile_support = xyes; then
32111 tcdbm_opt=--enable-off64
32113 ./configure $tcdbm_opt
32115 # need tokyo header files for "make depend"
32116 cp src/lib/tokyocabinet/t*.h src/lib
32118 echo "Doing make of dependencies"
32119 ${MAKE:-make} depend
32122 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32123 chmod 755 dvd-handler dvd-simulator
32124 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32128 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32129 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
32133 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32134 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32136 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32137 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32139 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32140 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32142 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32143 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32145 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32146 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32148 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32149 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32151 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32152 chmod 755 $c/sqlite
32155 chmod 755 src/win32/build-depkgs-mingw32
32159 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32160 largefile_support="yes"
32164 # A whole lot of hand springs to get the compiler version.
32165 # This is because gcc changed the output in version 3.0
32167 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32168 if test "x${CCVERSION}" = "x" ; then
32169 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32171 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32172 if test x"${CXXVERSION}" = x ; then
32173 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32176 if test "x${subsysdir}" = "x${sbindir}" ; then
32179 echo "You have set --sbindir and --with-subsys-dir"
32180 echo " both equal to: ${subsysdir} "
32181 echo " This is not permitted. Please reconfigure."
32183 echo "Aborting configuration ..."
32189 if test "x${db_type}" = "xInternal" ; then
32192 echo "You have not specified either --enable-client-only or one of the"
32193 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32194 echo " This is not permitted. Please reconfigure."
32196 echo "Aborting the configuration ..."
32203 Configuration on `date`:
32205 Host: $host -- ${DISTNAME} ${DISTVER}
32206 Bacula version: ${VERSION} (${DATE})
32207 Source code location: ${srcdir}
32208 Install binaries: ${sbindir}
32209 Install config files: ${sysconfdir}
32210 Scripts directory: ${scriptdir}
32211 Archive directory: ${archivedir}
32212 Working directory: ${working_dir}
32213 PID directory: ${piddir}
32214 Subsys directory: ${subsysdir}
32215 Man directory: ${mandir}
32216 Data directory: ${datadir}
32217 C Compiler: ${CC} ${CCVERSION}
32218 C++ Compiler: ${CXX} ${CXXVERSION}
32219 Compiler flags: ${WCFLAGS} ${CFLAGS}
32220 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32222 Statically Linked Tools: ${support_static_tools}
32223 Statically Linked FD: ${support_static_fd}
32224 Statically Linked SD: ${support_static_sd}
32225 Statically Linked DIR: ${support_static_dir}
32226 Statically Linked CONS: ${support_static_cons}
32227 Database type: ${db_type}
32228 Database lib: ${DB_LIBS}
32229 Database name: ${db_name}
32230 Database user: ${db_user}
32232 Job Output Email: ${job_email}
32233 Traceback Email: ${dump_email}
32234 SMTP Host Address: ${smtp_host}
32236 Director Port: ${dir_port}
32237 File daemon Port: ${fd_port}
32238 Storage daemon Port: ${sd_port}
32240 Director User: ${dir_user}
32241 Director Group: ${dir_group}
32242 Storage Daemon User: ${sd_user}
32243 Storage DaemonGroup: ${sd_group}
32244 File Daemon User: ${fd_user}
32245 File Daemon Group: ${fd_group}
32247 SQL binaries Directory ${SQL_BINDIR}
32249 Large file support: $largefile_support
32250 Bacula conio support: ${got_conio} ${CONS_LIBS}
32251 readline support: ${got_readline} ${PRTREADLINE_SRC}
32252 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32253 TLS support: ${support_tls}
32254 Encryption support: ${support_crypto}
32255 ZLIB support: ${have_zlib}
32256 enable-smartalloc: ${support_smartalloc}
32257 bat support: ${support_bat} ${QWT_LDFLAGS}
32258 enable-gnome: ${support_gnome} ${gnome_version}
32259 enable-bwx-console: ${support_wx_console} ${wx_version}
32260 enable-tray-monitor: ${support_tray_monitor}
32261 client-only: ${build_client_only}
32262 build-dird: ${build_dird}
32263 build-stored: ${build_stored}
32264 ACL support: ${have_acl}
32265 Python support: ${support_python} ${PYTHON_LIBS}
32266 Batch insert enabled: ${support_batch_insert}