2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
726 HAVE_FREEBSD_OS_FALSE
730 HAVE_OPENBSD_OS_FALSE
761 BUILD_INCLUDED_LIBINTL
768 INTL_LIBTOOL_SUFFIX_PREFIX
780 TRAY_MONITOR_CPPFLAGS
861 ac_subst_files='MCOMMON'
862 ac_precious_vars='build_alias
879 # Initialize some variables set by options.
881 ac_init_version=false
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
891 program_transform_name=s,x,x,
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 # Accept the important Cygnus configure options, so we can diagnose typos.
943 case $ac_dashdash$ac_option in
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
965 cache_file=config.cache ;;
967 -datadir | --datadir | --datadi | --datad)
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
979 -disable-* | --disable-*)
980 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
983 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
984 { (exit 1); exit 1; }; }
985 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
986 eval enable_$ac_feature=no ;;
988 -docdir | --docdir | --docdi | --doc | --do)
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 -enable-* | --enable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1005 eval enable_$ac_feature=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 sbindir=$ac_optarg ;;
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 sharedstatedir=$ac_optarg ;;
1167 -site | --site | --sit)
1169 -site=* | --site=* | --sit=*)
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1196 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 { echo "$as_me: error: invalid package name: $ac_package" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1202 eval with_$ac_package=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 { echo "$as_me: error: invalid package name: $ac_package" >&2
1209 { (exit 1); exit 1; }; }
1210 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1211 eval with_$ac_package=no ;;
1214 # Obsolete; use --with-x.
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1231 -*) { echo "$as_me: error: unrecognized option: $ac_option
1232 Try \`$0 --help' for more information." >&2
1233 { (exit 1); exit 1; }; }
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1241 { (exit 1); exit 1; }; }
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1246 # FIXME: should be removed in autoconf 3.0.
1247 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 { echo "$as_me: error: missing argument to $ac_option" >&2
1259 { (exit 1); exit 1; }; }
1262 # Be sure to have absolute directory names.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1274 { (exit 1); exit 1; }; }
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1282 target=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 { echo "$as_me: error: Working directory cannot be determined" >&2
1305 { (exit 1); exit 1; }; }
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 { echo "$as_me: error: pwd does not report name of working directory" >&2
1308 { (exit 1); exit 1; }; }
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$0" ||
1316 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$0" : 'X\(//\)[^/]' \| \
1318 X"$0" : 'X\(//\)$' \| \
1319 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1343 ac_srcdir_defaulted=no
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1348 { (exit 1); exit 1; }; }
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1353 { (exit 1); exit 1; }; }
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1379 \`configure' configures this package to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1437 --x-includes=DIR X include files are in DIR
1438 --x-libraries=DIR X library files are in DIR
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 if test -n "$ac_init_help"; then
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --disable-nls do not use Native Language Support
1454 --disable-rpath do not hardcode runtime library paths
1455 --enable-gnome enable build of bgnome-console GUI disabled
1456 --enable-bat enable build of bat Qt4 GUI disabled
1457 --enable-bwx-console enable build of wxWidgets console disabled
1458 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1459 --enable-smartalloc enable smartalloc debugging support disabled
1460 --enable-static-tools enable static tape tools disabled
1461 --enable-static-fd enable static File daemon disabled
1462 --enable-static-sd enable static Storage daemon disabled
1463 --enable-static-dir enable static Director disabled
1464 --enable-static-cons enable static Console disabled
1465 --enable-client-only build client (File daemon) only disabled
1466 --enable-build-dird enable building of dird (Director) enabled
1467 --enable-build-stored enable building of stored (Storage daemon) enabled
1468 --disable-conio disable conio support enabled
1470 --enable-ipv6 enable ipv6 support enabled
1472 --disable-readline disable readline support disable
1474 --enable-batch-insert enable the DB batch insert code disabled
1475 --disable-largefile omit support for large files
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-gnu-ld assume the C compiler uses GNU ld default=no
1481 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1482 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1483 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1484 --without-libintl-prefix don't search for libintl in includedir and libdir
1485 --with-included-gettext use the GNU gettext library included here
1486 --with-qwt[=DIR] specify qwt library directory
1487 --with-readline[=DIR] specify readline library directory
1489 --with-python[=DIR] Include Python support. DIR is the Python base
1490 install directory, default is to search through
1491 a number of common places for the Python files.
1492 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1493 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1494 --with-working-dir=PATH specify path of Bacula working directory
1495 --with-archivedir=PATH specify path of SD archive directory
1496 --with-scriptdir=PATH specify path of Bacula scripts directory
1497 --with-dump-email=EMAIL dump email address
1498 --with-job-email=EMAIL job output email address
1499 --with-smtp-host=HOST SMTP mail host address
1500 --with-pid-dir=PATH specify location of Bacula pid files
1501 --with-subsys-dir=PATH specify location of Bacula subsys file
1502 --with-baseport=PORT specify base port address for daemons
1503 --with-dir-password=PASSWORD specify Director's password
1504 --with-fd-password=PASSWORD specify Client's password
1505 --with-sd-password=PASSWORD specify Storage daemon's password
1506 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1507 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1508 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1509 --with-db-name=DBNAME specify database name (default bacula)
1510 --with-db-user=UNAME specify database user (default bacula)
1511 --with-dir-user=USER specify user for Director daemon
1512 --with-dir-group=GROUP specify group for Director daemon
1513 --with-sd-user=USER specify user for Storage daemon
1514 --with-sd-group=GROUP specify group for Storage daemon
1515 --with-fd-user=USER specify user for File daemon
1516 --with-fd-group=GROUP specify group for File daemon
1517 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1518 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1519 base install directory, defaults to /usr/local/pgsql
1521 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1522 install directory, default is to search through
1523 a number of common places for the MySQL files.
1525 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1526 install directory, default is to search through
1527 a number of common places for the MySQL files.
1529 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1530 install directory, default is to search through
1531 a number of common places for the SQLite3 files.
1533 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1534 install directory, default is to search through
1535 a number of common places for the SQLite files.
1537 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1538 install directory, default is to search through
1539 a number of common places for the DBI files.
1540 --with-x use the X Window System
1542 Some influential environment variables:
1543 CC C compiler command
1544 CFLAGS C compiler flags
1545 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1546 nonstandard directory <lib dir>
1547 LIBS libraries to pass to the linker, e.g. -l<library>
1548 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1549 you have headers in a nonstandard directory <include dir>
1550 CXX C++ compiler command
1551 CXXFLAGS C++ compiler flags
1553 WXCONFIG wx-config command. On some systems, you must set it to
1554 wx-config-2.6 to use wxWidgets 2.6.
1555 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1556 XMKMF Path to xmkmf, Makefile generator for X Window System
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1565 if test "$ac_init_help" = "recursive"; then
1566 # If there are subdirs, report their specific --help.
1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1568 test -d "$ac_dir" || continue
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1575 # A ".." for each directory in $ac_dir_suffix.
1576 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1577 case $ac_top_builddir_sub in
1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1588 .) # We are building in place.
1590 ac_top_srcdir=$ac_top_builddir_sub
1591 ac_abs_top_srcdir=$ac_pwd ;;
1592 [\\/]* | ?:[\\/]* ) # Absolute name.
1593 ac_srcdir=$srcdir$ac_dir_suffix;
1594 ac_top_srcdir=$srcdir
1595 ac_abs_top_srcdir=$srcdir ;;
1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598 ac_top_srcdir=$ac_top_build_prefix$srcdir
1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603 cd "$ac_dir" || { ac_status=$?; continue; }
1604 # Check for guested configure.
1605 if test -f "$ac_srcdir/configure.gnu"; then
1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608 elif test -f "$ac_srcdir/configure"; then
1610 $SHELL "$ac_srcdir/configure" --help=recursive
1612 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 cd "$ac_pwd" || { ac_status=$?; break; }
1618 test -n "$ac_init_help" && exit $ac_status
1619 if $ac_init_version; then
1622 generated by GNU Autoconf 2.61
1624 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1625 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1631 cat >config.log <<_ACEOF
1632 This file contains any messages produced by compilers while
1633 running configure, to aid debugging if configure makes a mistake.
1635 It was created by $as_me, which was
1636 generated by GNU Autoconf 2.61. Invocation command line was
1648 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1649 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1650 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1651 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1652 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1654 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1655 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1657 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1658 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1659 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1660 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1661 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1662 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1663 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 test -z "$as_dir" && as_dir=.
1672 echo "PATH: $as_dir"
1688 # Keep a trace of the command line.
1689 # Strip out --no-create and --no-recursion so they do not pile up.
1690 # Strip out --silent because we don't want to record it for future runs.
1691 # Also quote any args containing shell meta-characters.
1692 # Make two passes to allow for proper duplicate-argument suppression.
1696 ac_must_keep_next=false
1702 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1704 | -silent | --silent | --silen | --sile | --sil)
1707 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1712 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1713 if test $ac_must_keep_next = true; then
1714 ac_must_keep_next=false # Got value, back to normal.
1717 *=* | --config-cache | -C | -disable-* | --disable-* \
1718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1720 | -with-* | --with-* | -without-* | --without-* | --x)
1721 case "$ac_configure_args0 " in
1722 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1725 -* ) ac_must_keep_next=true ;;
1728 ac_configure_args="$ac_configure_args '$ac_arg'"
1733 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1734 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1736 # When interrupted or exit'd, cleanup temporary files, and complete
1737 # config.log. We remove comments because anyway the quotes in there
1738 # would cause problems or look ugly.
1739 # WARNING: Use '\'' to represent an apostrophe within the trap.
1740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1741 trap 'exit_status=$?
1742 # Save into config.log some information that might help in debugging.
1747 ## ---------------- ##
1748 ## Cache variables. ##
1749 ## ---------------- ##
1752 # The following way of writing the cache mishandles newlines in values,
1754 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1755 eval ac_val=\$$ac_var
1759 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1760 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1763 _ | IFS | as_nl) ;; #(
1764 *) $as_unset $ac_var ;;
1769 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1770 *${as_nl}ac_space=\ *)
1772 "s/'\''/'\''\\\\'\'''\''/g;
1773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784 ## ----------------- ##
1785 ## Output variables. ##
1786 ## ----------------- ##
1789 for ac_var in $ac_subst_vars
1791 eval ac_val=\$$ac_var
1793 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795 echo "$ac_var='\''$ac_val'\''"
1799 if test -n "$ac_subst_files"; then
1801 ## ------------------- ##
1802 ## File substitutions. ##
1803 ## ------------------- ##
1806 for ac_var in $ac_subst_files
1808 eval ac_val=\$$ac_var
1810 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812 echo "$ac_var='\''$ac_val'\''"
1817 if test -s confdefs.h; then
1827 test "$ac_signal" != 0 &&
1828 echo "$as_me: caught signal $ac_signal"
1829 echo "$as_me: exit $exit_status"
1831 rm -f core *.core core.conftest.* &&
1832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1835 for ac_signal in 1 2 13 15; do
1836 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1841 rm -f -r conftest* confdefs.h
1843 # Predefined preprocessor variables.
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_NAME "$PACKAGE_NAME"
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_STRING "$PACKAGE_STRING"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1870 # Let the site file select an alternate cache file if it wants to.
1871 # Prefer explicitly selected file to automatically selected ones.
1872 if test -n "$CONFIG_SITE"; then
1873 set x "$CONFIG_SITE"
1874 elif test "x$prefix" != xNONE; then
1875 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1877 set x "$ac_default_prefix/share/config.site" \
1878 "$ac_default_prefix/etc/config.site"
1883 if test -r "$ac_site_file"; then
1884 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1885 echo "$as_me: loading site script $ac_site_file" >&6;}
1886 sed 's/^/| /' "$ac_site_file" >&5
1891 if test -r "$cache_file"; then
1892 # Some versions of bash will fail to source /dev/null (special
1893 # files actually), so we avoid doing that.
1894 if test -f "$cache_file"; then
1895 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1896 echo "$as_me: loading cache $cache_file" >&6;}
1898 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1899 *) . "./$cache_file";;
1903 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1904 echo "$as_me: creating cache $cache_file" >&6;}
1908 # Check that the precious variables saved in the cache have kept the same
1910 ac_cache_corrupted=false
1911 for ac_var in $ac_precious_vars; do
1912 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1913 eval ac_new_set=\$ac_env_${ac_var}_set
1914 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1915 eval ac_new_val=\$ac_env_${ac_var}_value
1916 case $ac_old_set,$ac_new_set in
1918 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1919 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1920 ac_cache_corrupted=: ;;
1922 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1923 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1924 ac_cache_corrupted=: ;;
1927 if test "x$ac_old_val" != "x$ac_new_val"; then
1928 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1929 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1930 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1931 echo "$as_me: former value: $ac_old_val" >&2;}
1932 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1933 echo "$as_me: current value: $ac_new_val" >&2;}
1934 ac_cache_corrupted=:
1937 # Pass precious variables to config.status.
1938 if test "$ac_new_set" = set; then
1940 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1941 *) ac_arg=$ac_var=$ac_new_val ;;
1943 case " $ac_configure_args " in
1944 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1945 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1949 if $ac_cache_corrupted; then
1950 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1951 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1952 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1953 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1954 { (exit 1); exit 1; }; }
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1987 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1988 if test -f "$ac_dir/install-sh"; then
1990 ac_install_sh="$ac_aux_dir/install-sh -c"
1992 elif test -f "$ac_dir/install.sh"; then
1994 ac_install_sh="$ac_aux_dir/install.sh -c"
1996 elif test -f "$ac_dir/shtool"; then
1998 ac_install_sh="$ac_aux_dir/shtool install -c"
2002 if test -z "$ac_aux_dir"; then
2003 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2004 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2005 { (exit 1); exit 1; }; }
2008 # These three variables are undocumented and unsupported,
2009 # and are intended to be withdrawn in a future Autoconf release.
2010 # They can cause serious problems if a builder's source tree is in a directory
2011 # whose full name contains unusual characters.
2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2014 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2017 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 TRUEPRG=$ac_cv_path_TRUEPRG
2056 if test -n "$TRUEPRG"; then
2057 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2058 echo "${ECHO_T}$TRUEPRG" >&6; }
2060 { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2065 test -n "$TRUEPRG" && break
2067 test -n "$TRUEPRG" || TRUEPRG=":"
2069 for ac_prog in false
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 FALSEPRG=$ac_cv_path_FALSEPRG
2102 if test -n "$FALSEPRG"; then
2103 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2104 echo "${ECHO_T}$FALSEPRG" >&6; }
2106 { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2111 test -n "$FALSEPRG" && break
2113 test -n "$FALSEPRG" || FALSEPRG=":"
2117 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2118 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2119 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2120 echo "configuring for bacula $VERSION ($DATE)"
2125 ac_cpp='$CPP $CPPFLAGS'
2126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2129 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 if test -n "$CC"; then
2159 { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2162 { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2168 if test -z "$ac_cv_prog_CC"; then
2170 # Extract the first word of "gcc", so it can be a program name with args.
2171 set dummy gcc; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$ac_ct_CC"; then
2178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187 ac_cv_prog_ac_ct_CC="gcc"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2198 if test -n "$ac_ct_CC"; then
2199 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2200 echo "${ECHO_T}$ac_ct_CC" >&6; }
2202 { echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6; }
2206 if test "x$ac_ct_CC" = x; then
2209 case $cross_compiling:$ac_tool_warned in
2211 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2212 whose name does not start with the host triplet. If you think this
2213 configuration is useful to you, please write to autoconf@gnu.org." >&5
2214 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2215 whose name does not start with the host triplet. If you think this
2216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2217 ac_tool_warned=yes ;;
2225 if test -z "$CC"; then
2226 if test -n "$ac_tool_prefix"; then
2227 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}cc; ac_word=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_prog_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244 ac_cv_prog_CC="${ac_tool_prefix}cc"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 if test -n "$CC"; then
2256 { echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6; }
2259 { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2266 if test -z "$CC"; then
2267 # Extract the first word of "cc", so it can be a program name with args.
2268 set dummy cc; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2286 ac_prog_rejected=yes
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 if test $ac_prog_rejected = yes; then
2298 # We found a bogon in the path, so make sure we never use it.
2299 set dummy $ac_cv_prog_CC
2301 if test $# != 0; then
2302 # We chose a different compiler from the bogus one.
2303 # However, it has the same basename, so the bogon will be chosen
2304 # first if we set CC to just the basename; use the full file name.
2306 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2312 if test -n "$CC"; then
2313 { echo "$as_me:$LINENO: result: $CC" >&5
2314 echo "${ECHO_T}$CC" >&6; }
2316 { echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6; }
2322 if test -z "$CC"; then
2323 if test -n "$ac_tool_prefix"; then
2324 for ac_prog in cl.exe
2326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 if test -n "$CC"; then
2355 { echo "$as_me:$LINENO: result: $CC" >&5
2356 echo "${ECHO_T}$CC" >&6; }
2358 { echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6; }
2363 test -n "$CC" && break
2366 if test -z "$CC"; then
2368 for ac_prog in cl.exe
2370 # Extract the first word of "$ac_prog", so it can be a program name with args.
2371 set dummy $ac_prog; ac_word=$2
2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 if test -n "$ac_ct_CC"; then
2378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387 ac_cv_prog_ac_ct_CC="$ac_prog"
2388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398 if test -n "$ac_ct_CC"; then
2399 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2400 echo "${ECHO_T}$ac_ct_CC" >&6; }
2402 { echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6; }
2407 test -n "$ac_ct_CC" && break
2410 if test "x$ac_ct_CC" = x; then
2413 case $cross_compiling:$ac_tool_warned in
2415 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2416 whose name does not start with the host triplet. If you think this
2417 configuration is useful to you, please write to autoconf@gnu.org." >&5
2418 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet. If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2421 ac_tool_warned=yes ;;
2430 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2431 See \`config.log' for more details." >&5
2432 echo "$as_me: error: no acceptable C compiler found in \$PATH
2433 See \`config.log' for more details." >&2;}
2434 { (exit 1); exit 1; }; }
2436 # Provide some information about the compiler.
2437 echo "$as_me:$LINENO: checking for C compiler version" >&5
2438 ac_compiler=`set X $ac_compile; echo $2`
2439 { (ac_try="$ac_compiler --version >&5"
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compiler --version >&5") 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2449 { (ac_try="$ac_compiler -v >&5"
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compiler -v >&5") 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2459 { (ac_try="$ac_compiler -V >&5"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compiler -V >&5") 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }
2470 cat >conftest.$ac_ext <<_ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2485 ac_clean_files_save=$ac_clean_files
2486 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2487 # Try to create an executable without -o first, disregard a.out.
2488 # It will help us diagnose broken compilers, and finding out an intuition
2490 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2492 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2494 # List of possible output files, starting from the most likely.
2495 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2496 # only as a last resort. b.out is created by i960 compilers.
2497 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2499 # The IRIX 6 linker writes into existing files which may not be
2500 # executable, retaining their permissions. Remove them first so a
2501 # subsequent execution test works.
2503 for ac_file in $ac_files
2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2507 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2512 if { (ac_try="$ac_link_default"
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518 (eval "$ac_link_default") 2>&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; then
2522 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2523 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2524 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2525 # so that the user can short-circuit this test for compilers unknown to
2527 for ac_file in $ac_files ''
2529 test -f "$ac_file" || continue
2531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2534 # We found the default executable, but exeext='' is most
2538 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2540 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2542 # We set ac_cv_exeext here because the later test for it is not
2543 # safe: cross compilers may not add the suffix if given an `-o'
2544 # argument, so we may need to know it at that point already.
2545 # Even if this section looks crufty: it has the advantage of
2552 test "$ac_cv_exeext" = no && ac_cv_exeext=
2558 { echo "$as_me:$LINENO: result: $ac_file" >&5
2559 echo "${ECHO_T}$ac_file" >&6; }
2560 if test -z "$ac_file"; then
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2564 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: C compiler cannot create executables
2567 See \`config.log' for more details." >&2;}
2568 { (exit 77); exit 77; }; }
2571 ac_exeext=$ac_cv_exeext
2573 # Check that the compiler produces executables we can run. If not, either
2574 # the compiler is broken, or we cross compile.
2575 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2576 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2577 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2578 # If not cross compiling, check that we can run a simple program.
2579 if test "$cross_compiling" != yes; then
2580 if { ac_try='./$ac_file'
2581 { (case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_try") 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2592 if test "$cross_compiling" = maybe; then
2595 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2596 If you meant to cross compile, use \`--host'.
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: cannot run C compiled programs.
2599 If you meant to cross compile, use \`--host'.
2600 See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2605 { echo "$as_me:$LINENO: result: yes" >&5
2606 echo "${ECHO_T}yes" >&6; }
2608 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2609 ac_clean_files=$ac_clean_files_save
2610 # Check that the compiler produces executables we can run. If not, either
2611 # the compiler is broken, or we cross compile.
2612 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2613 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2614 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2615 echo "${ECHO_T}$cross_compiling" >&6; }
2617 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2618 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2619 if { (ac_try="$ac_link"
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625 (eval "$ac_link") 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; then
2629 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2630 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2631 # work properly (i.e., refer to `conftest.exe'), while it won't with
2633 for ac_file in conftest.exe conftest conftest.*; do
2634 test -f "$ac_file" || continue
2636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2637 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2643 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2644 See \`config.log' for more details." >&5
2645 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2646 See \`config.log' for more details." >&2;}
2647 { (exit 1); exit 1; }; }
2650 rm -f conftest$ac_cv_exeext
2651 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2652 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2654 rm -f conftest.$ac_ext
2655 EXEEXT=$ac_cv_exeext
2657 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2658 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2659 if test "${ac_cv_objext+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 cat >conftest.$ac_ext <<_ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2677 rm -f conftest.o conftest.obj
2678 if { (ac_try="$ac_compile"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compile") 2>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; then
2688 for ac_file in conftest.o conftest.obj conftest.*; do
2689 test -f "$ac_file" || continue;
2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2700 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2701 See \`config.log' for more details." >&5
2702 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2703 See \`config.log' for more details." >&2;}
2704 { (exit 1); exit 1; }; }
2707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2709 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2710 echo "${ECHO_T}$ac_cv_objext" >&6; }
2711 OBJEXT=$ac_cv_objext
2713 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2714 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2715 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 cat >conftest.$ac_ext <<_ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h. */
2736 rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compile") 2>conftest.er1
2745 grep -v '^ *+' conftest.er1 >conftest.err
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } && {
2750 test -z "$ac_c_werror_flag" ||
2751 test ! -s conftest.err
2752 } && test -s conftest.$ac_objext; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2765 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2766 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2767 GCC=`test $ac_compiler_gnu = yes && echo yes`
2768 ac_test_CFLAGS=${CFLAGS+set}
2769 ac_save_CFLAGS=$CFLAGS
2770 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_cc_g+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 ac_save_c_werror_flag=$ac_c_werror_flag
2776 ac_c_werror_flag=yes
2779 cat >conftest.$ac_ext <<_ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2794 rm -f conftest.$ac_objext
2795 if { (ac_try="$ac_compile"
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_compile") 2>conftest.er1
2803 grep -v '^ *+' conftest.er1 >conftest.err
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } && {
2808 test -z "$ac_c_werror_flag" ||
2809 test ! -s conftest.err
2810 } && test -s conftest.$ac_objext; then
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2817 cat >conftest.$ac_ext <<_ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2832 rm -f conftest.$ac_objext
2833 if { (ac_try="$ac_compile"
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_compile") 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } && {
2846 test -z "$ac_c_werror_flag" ||
2847 test ! -s conftest.err
2848 } && test -s conftest.$ac_objext; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 ac_c_werror_flag=$ac_save_c_werror_flag
2856 cat >conftest.$ac_ext <<_ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2871 rm -f conftest.$ac_objext
2872 if { (ac_try="$ac_compile"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compile") 2>conftest.er1
2880 grep -v '^ *+' conftest.er1 >conftest.err
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && {
2885 test -z "$ac_c_werror_flag" ||
2886 test ! -s conftest.err
2887 } && test -s conftest.$ac_objext; then
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 ac_c_werror_flag=$ac_save_c_werror_flag
2905 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2906 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2907 if test "$ac_test_CFLAGS" = set; then
2908 CFLAGS=$ac_save_CFLAGS
2909 elif test $ac_cv_prog_cc_g = yes; then
2910 if test "$GCC" = yes; then
2916 if test "$GCC" = yes; then
2922 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2923 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_cc_c89+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 ac_cv_prog_cc_c89=no
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2937 #include <sys/types.h>
2938 #include <sys/stat.h>
2939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2940 struct buf { int x; };
2941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2942 static char *e (p, i)
2948 static char *f (char * (*g) (char **, int), char **p, ...)
2953 s = g (p, va_arg (v,int));
2958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2959 function prototypes and stuff, but not '\xHH' hex character constants.
2960 These don't provoke an error unfortunately, instead are silently treated
2961 as 'x'. The following induces an error, until -std is added to get
2962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2963 array size at least. It's necessary to write '\x00'==0 to get something
2964 that's true only with -std. */
2965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2967 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2968 inside strings and character constants. */
2970 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2972 int test (int i, double x);
2973 struct s1 {int (*f) (int a);};
2974 struct s2 {int (*f) (double a);};
2975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2981 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2986 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2987 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2989 CC="$ac_save_CC $ac_arg"
2990 rm -f conftest.$ac_objext
2991 if { (ac_try="$ac_compile"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_compile") 2>conftest.er1
2999 grep -v '^ *+' conftest.er1 >conftest.err
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } && {
3004 test -z "$ac_c_werror_flag" ||
3005 test ! -s conftest.err
3006 } && test -s conftest.$ac_objext; then
3007 ac_cv_prog_cc_c89=$ac_arg
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3015 rm -f core conftest.err conftest.$ac_objext
3016 test "x$ac_cv_prog_cc_c89" != "xno" && break
3018 rm -f conftest.$ac_ext
3023 case "x$ac_cv_prog_cc_c89" in
3025 { echo "$as_me:$LINENO: result: none needed" >&5
3026 echo "${ECHO_T}none needed" >&6; } ;;
3028 { echo "$as_me:$LINENO: result: unsupported" >&5
3029 echo "${ECHO_T}unsupported" >&6; } ;;
3031 CC="$CC $ac_cv_prog_cc_c89"
3032 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3033 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3038 ac_cpp='$CPP $CPPFLAGS'
3039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 ac_cpp='$CXXCPP $CPPFLAGS'
3045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3048 if test -z "$CXX"; then
3049 if test -n "$CCC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_CXX+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 if test -n "$CXX"; then
3063 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 if test -n "$CXX"; then
3084 { echo "$as_me:$LINENO: result: $CXX" >&5
3085 echo "${ECHO_T}$CXX" >&6; }
3087 { echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6; }
3092 test -n "$CXX" && break
3095 if test -z "$CXX"; then
3097 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3099 # Extract the first word of "$ac_prog", so it can be a program name with args.
3100 set dummy $ac_prog; ac_word=$2
3101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3103 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 if test -n "$ac_ct_CXX"; then
3107 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 ac_cv_prog_ac_ct_CXX="$ac_prog"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3127 if test -n "$ac_ct_CXX"; then
3128 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3129 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3131 { echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6; }
3136 test -n "$ac_ct_CXX" && break
3139 if test "x$ac_ct_CXX" = x; then
3142 case $cross_compiling:$ac_tool_warned in
3144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3145 whose name does not start with the host triplet. If you think this
3146 configuration is useful to you, please write to autoconf@gnu.org." >&5
3147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3148 whose name does not start with the host triplet. If you think this
3149 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3150 ac_tool_warned=yes ;;
3158 # Provide some information about the compiler.
3159 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3160 ac_compiler=`set X $ac_compile; echo $2`
3161 { (ac_try="$ac_compiler --version >&5"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compiler --version >&5") 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3171 { (ac_try="$ac_compiler -v >&5"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compiler -v >&5") 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }
3181 { (ac_try="$ac_compiler -V >&5"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compiler -V >&5") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }
3192 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3193 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3194 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 cat >conftest.$ac_ext <<_ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3215 rm -f conftest.$ac_objext
3216 if { (ac_try="$ac_compile"
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_compile") 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } && {
3229 test -z "$ac_cxx_werror_flag" ||
3230 test ! -s conftest.err
3231 } && test -s conftest.$ac_objext; then
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3245 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3246 GXX=`test $ac_compiler_gnu = yes && echo yes`
3247 ac_test_CXXFLAGS=${CXXFLAGS+set}
3248 ac_save_CXXFLAGS=$CXXFLAGS
3249 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3250 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cxx_g+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3255 ac_cxx_werror_flag=yes
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_compile") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } && {
3287 test -z "$ac_cxx_werror_flag" ||
3288 test ! -s conftest.err
3289 } && test -s conftest.$ac_objext; then
3290 ac_cv_prog_cxx_g=yes
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3320 grep -v '^ *+' conftest.er1 >conftest.err
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } && {
3325 test -z "$ac_cxx_werror_flag" ||
3326 test ! -s conftest.err
3327 } && test -s conftest.$ac_objext; then
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3335 cat >conftest.$ac_ext <<_ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3350 rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_compile") 2>conftest.er1
3359 grep -v '^ *+' conftest.er1 >conftest.err
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && {
3364 test -z "$ac_cxx_werror_flag" ||
3365 test ! -s conftest.err
3366 } && test -s conftest.$ac_objext; then
3367 ac_cv_prog_cxx_g=yes
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3384 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3386 if test "$ac_test_CXXFLAGS" = set; then
3387 CXXFLAGS=$ac_save_CXXFLAGS
3388 elif test $ac_cv_prog_cxx_g = yes; then
3389 if test "$GXX" = yes; then
3395 if test "$GXX" = yes; then
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 if test "x$CC" != xcc; then
3408 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3409 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3411 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3412 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3414 set dummy $CC; ac_cc=`echo $2 |
3415 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3416 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3434 # Make sure it works both with $CC and with simple cc.
3435 # We do the test twice because some compilers refuse to overwrite an
3436 # existing .o file with -o, though they will create one.
3437 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3439 if { (case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_try") 2>&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 test -f conftest2.$ac_objext && { (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); };
3458 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3459 if test "x$CC" != xcc; then
3460 # Test first that cc exists at all.
3461 if { ac_try='cc -c conftest.$ac_ext >&5'
3462 { (case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_try") 2>&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3473 if { (case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_try") 2>&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } &&
3482 test -f conftest2.$ac_objext && { (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); };
3495 # cc exists but doesn't like -o.
3496 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3501 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3503 rm -f core conftest*
3506 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3507 { echo "$as_me:$LINENO: result: yes" >&5
3508 echo "${ECHO_T}yes" >&6; }
3510 { echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6; }
3513 cat >>confdefs.h <<\_ACEOF
3514 #define NO_MINUS_C_MINUS_O 1
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3526 # On Suns, sometimes $CPP names a directory.
3527 if test -n "$CPP" && test -d "$CPP"; then
3530 if test -z "$CPP"; then
3531 if test "${ac_cv_prog_CPP+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 # Double quotes because CPP needs to be expanded
3535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3538 for ac_c_preproc_warn_flag in '' yes
3540 # Use a header file that comes with gcc, so configuring glibc
3541 # with a fresh cross-compiler works.
3542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3543 # <limits.h> exists even on freestanding compilers.
3544 # On the NeXT, cc -E runs the code through the compiler's parser,
3545 # not just through cpp. "Syntax error" is here to catch this case.
3546 cat >conftest.$ac_ext <<_ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3553 # include <limits.h>
3555 # include <assert.h>
3559 if { (ac_try="$ac_cpp conftest.$ac_ext"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3567 grep -v '^ *+' conftest.er1 >conftest.err
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } >/dev/null && {
3572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3573 test ! -s conftest.err
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 # Broken: fails on valid input.
3584 rm -f conftest.err conftest.$ac_ext
3586 # OK, works on sane cases. Now check whether nonexistent headers
3587 # can be detected and how.
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include <ac_nonexistent.h>
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null && {
3609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3610 test ! -s conftest.err
3612 # Broken: success on invalid input.
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Passes both tests.
3623 rm -f conftest.err conftest.$ac_ext
3626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627 rm -f conftest.err conftest.$ac_ext
3628 if $ac_preproc_ok; then
3640 { echo "$as_me:$LINENO: result: $CPP" >&5
3641 echo "${ECHO_T}$CPP" >&6; }
3643 for ac_c_preproc_warn_flag in '' yes
3645 # Use a header file that comes with gcc, so configuring glibc
3646 # with a fresh cross-compiler works.
3647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648 # <limits.h> exists even on freestanding compilers.
3649 # On the NeXT, cc -E runs the code through the compiler's parser,
3650 # not just through cpp. "Syntax error" is here to catch this case.
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3658 # include <limits.h>
3660 # include <assert.h>
3664 if { (ac_try="$ac_cpp conftest.$ac_ext"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3672 grep -v '^ *+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } >/dev/null && {
3677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 # Broken: fails on valid input.
3689 rm -f conftest.err conftest.$ac_ext
3691 # OK, works on sane cases. Now check whether nonexistent headers
3692 # can be detected and how.
3693 cat >conftest.$ac_ext <<_ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 #include <ac_nonexistent.h>
3701 if { (ac_try="$ac_cpp conftest.$ac_ext"
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3709 grep -v '^ *+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } >/dev/null && {
3714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3717 # Broken: success on invalid input.
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 # Passes both tests.
3728 rm -f conftest.err conftest.$ac_ext
3731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3732 rm -f conftest.err conftest.$ac_ext
3733 if $ac_preproc_ok; then
3736 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3737 See \`config.log' for more details." >&5
3738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3739 See \`config.log' for more details." >&2;}
3740 { (exit 1); exit 1; }; }
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3751 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3752 if test "${ac_cv_path_GREP+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 # Extract the first word of "grep ggrep" to use in msg output
3756 if test -z "$GREP"; then
3757 set dummy grep ggrep; ac_prog_name=$2
3758 if test "${ac_cv_path_GREP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 ac_path_GREP_found=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767 test -z "$as_dir" && as_dir=.
3768 for ac_prog in grep ggrep; do
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3771 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3772 # Check for GNU ac_path_GREP and select it if it is found.
3773 # Check for GNU $ac_path_GREP
3774 case `"$ac_path_GREP" --version 2>&1` in
3776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3779 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 echo 'GREP' >> "conftest.nl"
3786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788 ac_count=`expr $ac_count + 1`
3789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_GREP="$ac_path_GREP"
3792 ac_path_GREP_max=$ac_count
3794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3801 $ac_path_GREP_found && break 3
3811 GREP="$ac_cv_path_GREP"
3812 if test -z "$GREP"; then
3813 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3814 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3815 { (exit 1); exit 1; }; }
3819 ac_cv_path_GREP=$GREP
3824 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3825 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3826 GREP="$ac_cv_path_GREP"
3829 { echo "$as_me:$LINENO: checking for egrep" >&5
3830 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3831 if test "${ac_cv_path_EGREP+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3835 then ac_cv_path_EGREP="$GREP -E"
3837 # Extract the first word of "egrep" to use in msg output
3838 if test -z "$EGREP"; then
3839 set dummy egrep; ac_prog_name=$2
3840 if test "${ac_cv_path_EGREP+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 ac_path_EGREP_found=false
3844 # Loop through the user's path and test for each of PROGNAME-LIST
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3849 test -z "$as_dir" && as_dir=.
3850 for ac_prog in egrep; do
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3853 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3854 # Check for GNU ac_path_EGREP and select it if it is found.
3855 # Check for GNU $ac_path_EGREP
3856 case `"$ac_path_EGREP" --version 2>&1` in
3858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3861 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3864 cat "conftest.in" "conftest.in" >"conftest.tmp"
3865 mv "conftest.tmp" "conftest.in"
3866 cp "conftest.in" "conftest.nl"
3867 echo 'EGREP' >> "conftest.nl"
3868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870 ac_count=`expr $ac_count + 1`
3871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3872 # Best one so far, save it but keep looking for a better one
3873 ac_cv_path_EGREP="$ac_path_EGREP"
3874 ac_path_EGREP_max=$ac_count
3876 # 10*(2^10) chars as input seems more than enough
3877 test $ac_count -gt 10 && break
3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883 $ac_path_EGREP_found && break 3
3893 EGREP="$ac_cv_path_EGREP"
3894 if test -z "$EGREP"; then
3895 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3896 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3897 { (exit 1); exit 1; }; }
3901 ac_cv_path_EGREP=$EGREP
3907 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3908 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3909 EGREP="$ac_cv_path_EGREP"
3912 if test $ac_cv_c_compiler_gnu = yes; then
3913 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3914 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3915 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_pattern="Autoconf.*'x'"
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3930 ac_cv_prog_gcc_traditional=yes
3932 ac_cv_prog_gcc_traditional=no
3937 if test $ac_cv_prog_gcc_traditional = no; then
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3948 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3949 ac_cv_prog_gcc_traditional=yes
3955 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3956 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3957 if test $ac_cv_prog_gcc_traditional = yes; then
3958 CC="$CC -traditional"
3962 BASECC=`basename $CC`
3964 if test "x$BASECC" = xgcc; then
3965 cat >>confdefs.h <<\_ACEOF
3971 # Extract the first word of "$CXX", so it can be a program name with args.
3972 set dummy $CXX; ac_word=$2
3973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3975 if test "${ac_cv_path_CXX+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4003 if test -n "$CXX"; then
4004 { echo "$as_me:$LINENO: result: $CXX" >&5
4005 echo "${ECHO_T}$CXX" >&6; }
4007 { echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6; }
4012 if test ! -e $CXX; then
4013 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4014 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4015 { (exit 1); exit 1; }; }
4018 # Find a good install program. We prefer a C program (faster),
4019 # so one script is as good as another. But avoid the broken or
4020 # incompatible versions:
4021 # SysV /etc/install, /usr/sbin/install
4022 # SunOS /usr/etc/install
4023 # IRIX /sbin/install
4025 # AmigaOS /C/install, which installs bootblocks on floppy discs
4026 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4029 # OS/2's system install, which has a completely different semantic
4030 # ./install, which can be erroneously created by make from ./install.sh.
4031 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4032 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4033 if test -z "$INSTALL"; then
4034 if test "${ac_cv_path_install+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 test -z "$as_dir" && as_dir=.
4042 # Account for people who put trailing slashes in PATH elements.
4044 ./ | .// | /cC/* | \
4045 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4046 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4049 # OSF1 and SCO ODT 3.0 have their own names for install.
4050 # Don't use installbsd from OSF since it installs stuff as root
4052 for ac_prog in ginstall scoinst install; do
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4055 if test $ac_prog = install &&
4056 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4057 # AIX install. It has an incompatible calling convention.
4059 elif test $ac_prog = install &&
4060 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4061 # program-specific install script used by HP pwplus--don't use.
4064 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4077 if test "${ac_cv_path_install+set}" = set; then
4078 INSTALL=$ac_cv_path_install
4080 # As a last resort, use the slow shell script. Don't cache a
4081 # value for INSTALL within a source directory, because that will
4082 # break other packages using the cache if that directory is
4083 # removed, or if the value is a relative name.
4084 INSTALL=$ac_install_sh
4087 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4088 echo "${ECHO_T}$INSTALL" >&6; }
4090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4091 # It thinks the first close brace ends the variable substitution.
4092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4098 if test -n "$ac_tool_prefix"; then
4099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4103 if test "${ac_cv_prog_RANLIB+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 if test -n "$RANLIB"; then
4107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 RANLIB=$ac_cv_prog_RANLIB
4127 if test -n "$RANLIB"; then
4128 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4129 echo "${ECHO_T}$RANLIB" >&6; }
4131 { echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6; }
4137 if test -z "$ac_cv_prog_RANLIB"; then
4138 ac_ct_RANLIB=$RANLIB
4139 # Extract the first word of "ranlib", so it can be a program name with args.
4140 set dummy ranlib; ac_word=$2
4141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 if test -n "$ac_ct_RANLIB"; then
4147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_ac_ct_RANLIB="ranlib"
4157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4167 if test -n "$ac_ct_RANLIB"; then
4168 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4169 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4171 { echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6; }
4175 if test "x$ac_ct_RANLIB" = x; then
4178 case $cross_compiling:$ac_tool_warned in
4180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4181 whose name does not start with the host triplet. If you think this
4182 configuration is useful to you, please write to autoconf@gnu.org." >&5
4183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4184 whose name does not start with the host triplet. If you think this
4185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4186 ac_tool_warned=yes ;;
4188 RANLIB=$ac_ct_RANLIB
4191 RANLIB="$ac_cv_prog_RANLIB"
4194 # Extract the first word of "mv", so it can be a program name with args.
4195 set dummy mv; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_path_MV+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4226 if test -n "$MV"; then
4227 { echo "$as_me:$LINENO: result: $MV" >&5
4228 echo "${ECHO_T}$MV" >&6; }
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4235 # Extract the first word of "rm", so it can be a program name with args.
4236 set dummy rm; ac_word=$2
4237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4239 if test "${ac_cv_path_RM+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4267 if test -n "$RM"; then
4268 { echo "$as_me:$LINENO: result: $RM" >&5
4269 echo "${ECHO_T}$RM" >&6; }
4271 { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4276 # Extract the first word of "cp", so it can be a program name with args.
4277 set dummy cp; ac_word=$2
4278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4280 if test "${ac_cv_path_CP+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4308 if test -n "$CP"; then
4309 { echo "$as_me:$LINENO: result: $CP" >&5
4310 echo "${ECHO_T}$CP" >&6; }
4312 { echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6; }
4317 # Extract the first word of "sed", so it can be a program name with args.
4318 set dummy sed; ac_word=$2
4319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4321 if test "${ac_cv_path_SED+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4349 if test -n "$SED"; then
4350 { echo "$as_me:$LINENO: result: $SED" >&5
4351 echo "${ECHO_T}$SED" >&6; }
4353 { echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6; }
4358 # Extract the first word of "echo", so it can be a program name with args.
4359 set dummy echo; ac_word=$2
4360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4362 if test "${ac_cv_path_ECHO+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4389 ECHO=$ac_cv_path_ECHO
4390 if test -n "$ECHO"; then
4391 { echo "$as_me:$LINENO: result: $ECHO" >&5
4392 echo "${ECHO_T}$ECHO" >&6; }
4394 { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4399 # Extract the first word of "cmp", so it can be a program name with args.
4400 set dummy cmp; ac_word=$2
4401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4403 if test "${ac_cv_path_CMP+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4431 if test -n "$CMP"; then
4432 { echo "$as_me:$LINENO: result: $CMP" >&5
4433 echo "${ECHO_T}$CMP" >&6; }
4435 { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4440 # Extract the first word of "tbl", so it can be a program name with args.
4441 set dummy tbl; ac_word=$2
4442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4444 if test "${ac_cv_path_TBL+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4472 if test -n "$TBL"; then
4473 { echo "$as_me:$LINENO: result: $TBL" >&5
4474 echo "${ECHO_T}$TBL" >&6; }
4476 { echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6; }
4481 # Extract the first word of "ar", so it can be a program name with args.
4482 set dummy ar; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_path_AR+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4513 if test -n "$AR"; then
4514 { echo "$as_me:$LINENO: result: $AR" >&5
4515 echo "${ECHO_T}$AR" >&6; }
4517 { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4522 # Extract the first word of "openssl", so it can be a program name with args.
4523 set dummy openssl; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_path_OPENSSL+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4553 OPENSSL=$ac_cv_path_OPENSSL
4554 if test -n "$OPENSSL"; then
4555 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4556 echo "${ECHO_T}$OPENSSL" >&6; }
4558 { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4563 # Extract the first word of "mtx", so it can be a program name with args.
4564 set dummy mtx; ac_word=$2
4565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4567 if test "${ac_cv_path_MTX+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4595 if test -n "$MTX"; then
4596 { echo "$as_me:$LINENO: result: $MTX" >&5
4597 echo "${ECHO_T}$MTX" >&6; }
4599 { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4604 # Extract the first word of "dd", so it can be a program name with args.
4605 set dummy dd; ac_word=$2
4606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4608 if test "${ac_cv_path_DD+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4636 if test -n "$DD"; then
4637 { echo "$as_me:$LINENO: result: $DD" >&5
4638 echo "${ECHO_T}$DD" >&6; }
4640 { echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6; }
4645 # Extract the first word of "mkisofs", so it can be a program name with args.
4646 set dummy mkisofs; ac_word=$2
4647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4649 if test "${ac_cv_path_MKISOFS+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4676 MKISOFS=$ac_cv_path_MKISOFS
4677 if test -n "$MKISOFS"; then
4678 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4679 echo "${ECHO_T}$MKISOFS" >&6; }
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4686 # Extract the first word of "python", so it can be a program name with args.
4687 set dummy python; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_path_PYTHON+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4717 PYTHON=$ac_cv_path_PYTHON
4718 if test -n "$PYTHON"; then
4719 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4720 echo "${ECHO_T}$PYTHON" >&6; }
4722 { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4727 # Extract the first word of "growisofs", so it can be a program name with args.
4728 set dummy growisofs; ac_word=$2
4729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4731 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4758 GROWISOFS=$ac_cv_path_GROWISOFS
4759 if test -n "$GROWISOFS"; then
4760 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4761 echo "${ECHO_T}$GROWISOFS" >&6; }
4763 { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4768 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4769 set dummy dvd+rw-mediainfo; ac_word=$2
4770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 case $DVDRWMEDIAINFO in
4777 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4799 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4800 if test -n "$DVDRWMEDIAINFO"; then
4801 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4802 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4804 { echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6; }
4809 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4810 set dummy dvd+rw-format; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 case $DVDRWFORMAT in
4818 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4840 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4841 if test -n "$DVDRWFORMAT"; then
4842 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4843 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4845 { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4850 # Extract the first word of "pkg-config", so it can be a program name with args.
4851 set dummy pkg-config; ac_word=$2
4852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4854 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4881 PKGCONFIG=$ac_cv_path_PKGCONFIG
4882 if test -n "$PKGCONFIG"; then
4883 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4884 echo "${ECHO_T}$PKGCONFIG" >&6; }
4886 { echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6; }
4891 # Extract the first word of "qmake", so it can be a program name with args.
4892 set dummy qmake; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_path_QMAKE+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4922 QMAKE=$ac_cv_path_QMAKE
4923 if test -n "$QMAKE"; then
4924 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4925 echo "${ECHO_T}$QMAKE" >&6; }
4927 { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4932 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4933 set dummy qmake-qt4; ac_word=$2
4934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4936 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4963 QMAKEQT4=$ac_cv_path_QMAKEQT4
4964 if test -n "$QMAKEQT4"; then
4965 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4966 echo "${ECHO_T}$QMAKEQT4" >&6; }
4968 { echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6; }
4974 if test "x$WXCONFIG" = x; then
4977 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4978 set dummy ${WXCONFIG}; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5008 WXCONFIG=$ac_cv_path_WXCONFIG
5009 if test -n "$WXCONFIG"; then
5010 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5011 echo "${ECHO_T}$WXCONFIG" >&6; }
5013 { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5019 # Extract the first word of "cdrecord", so it can be a program name with args.
5020 set dummy cdrecord; ac_word=$2
5021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5023 if test "${ac_cv_path_CDRECORD+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5050 CDRECORD=$ac_cv_path_CDRECORD
5051 if test -n "$CDRECORD"; then
5052 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5053 echo "${ECHO_T}$CDRECORD" >&6; }
5055 { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5060 # Extract the first word of "pidof", so it can be a program name with args.
5061 set dummy pidof; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_path_PIDOF+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5091 PIDOF=$ac_cv_path_PIDOF
5092 if test -n "$PIDOF"; then
5093 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5094 echo "${ECHO_T}$PIDOF" >&6; }
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5101 for ac_prog in gawk mawk nawk awk
5103 # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_prog_AWK+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 if test -n "$AWK"; then
5111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_prog_AWK="$ac_prog"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 if test -n "$AWK"; then
5132 { echo "$as_me:$LINENO: result: $AWK" >&5
5133 echo "${ECHO_T}$AWK" >&6; }
5135 { echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6; }
5140 test -n "$AWK" && break
5143 # Some AWK programs fail, so test it and warn the user
5144 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5145 { if ((prog == $2) || (("(" prog ")") == $2) ||
5146 (("" prog "") == $2) ||
5147 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5149 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5150 The regex engine of $AWK is too broken to be used you
5151 might want to install GNU AWK.
5152 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5153 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5154 The regex engine of $AWK is too broken to be used you
5155 might want to install GNU AWK.
5156 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5157 { (exit 1); exit 1; }; }
5160 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5161 set dummy $THE_AWK; ac_word=$2
5162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5164 if test "${ac_cv_path_AWK+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5192 if test -n "$AWK"; then
5193 { echo "$as_me:$LINENO: result: $AWK" >&5
5194 echo "${ECHO_T}$AWK" >&6; }
5196 { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5203 test -n "$ARFLAG" || ARFLAGS="cr"
5214 # Make sure we can run config.sub.
5215 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5216 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5217 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5218 { (exit 1); exit 1; }; }
5220 { echo "$as_me:$LINENO: checking build system type" >&5
5221 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5222 if test "${ac_cv_build+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 ac_build_alias=$build_alias
5226 test "x$ac_build_alias" = x &&
5227 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5228 test "x$ac_build_alias" = x &&
5229 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5230 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5231 { (exit 1); exit 1; }; }
5232 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5233 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5234 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5235 { (exit 1); exit 1; }; }
5238 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5239 echo "${ECHO_T}$ac_cv_build" >&6; }
5240 case $ac_cv_build in
5242 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5243 echo "$as_me: error: invalid value of canonical build" >&2;}
5244 { (exit 1); exit 1; }; };;
5247 ac_save_IFS=$IFS; IFS='-'
5253 # Remember, the first character of IFS is used to create $*,
5254 # except with old shells:
5257 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5261 { echo "$as_me:$LINENO: checking host system type" >&5
5262 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5263 if test "${ac_cv_host+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 if test "x$host_alias" = x; then
5267 ac_cv_host=$ac_cv_build
5269 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5270 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5271 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5272 { (exit 1); exit 1; }; }
5276 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5277 echo "${ECHO_T}$ac_cv_host" >&6; }
5280 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5281 echo "$as_me: error: invalid value of canonical host" >&2;}
5282 { (exit 1); exit 1; }; };;
5285 ac_save_IFS=$IFS; IFS='-'
5291 # Remember, the first character of IFS is used to create $*,
5292 # except with old shells:
5295 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5299 *cygwin* ) CYGWIN=yes;;
5303 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5309 HAVE_SUN_OS_FALSE='#'
5311 HAVE_SUN_OS_TRUE='#'
5314 cat >>confdefs.h <<\_ACEOF
5315 #define HAVE_SUN_OS 1
5323 HAVE_SUN_OS_FALSE='#'
5325 HAVE_SUN_OS_TRUE='#'
5330 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5336 HAVE_OSF1_OS_FALSE='#'
5338 HAVE_OSF1_OS_TRUE='#'
5341 cat >>confdefs.h <<\_ACEOF
5342 #define HAVE_OSF1_OS 1
5350 HAVE_OSF1_OS_FALSE='#'
5352 HAVE_OSF1_OS_TRUE='#'
5357 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5363 HAVE_AIX_OS_FALSE='#'
5365 HAVE_AIX_OS_TRUE='#'
5368 cat >>confdefs.h <<\_ACEOF
5369 #define HAVE_AIX_OS 1
5377 HAVE_AIX_OS_FALSE='#'
5379 HAVE_AIX_OS_TRUE='#'
5384 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5390 HAVE_HPUX_OS_FALSE='#'
5392 HAVE_HPUX_OS_TRUE='#'
5395 cat >>confdefs.h <<\_ACEOF
5396 #define HAVE_HPUX_OS 1
5404 HAVE_HPUX_OS_FALSE='#'
5406 HAVE_HPUX_OS_TRUE='#'
5411 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5417 HAVE_LINUX_OS_FALSE='#'
5419 HAVE_LINUX_OS_TRUE='#'
5420 HAVE_LINUX_OS_FALSE=
5422 cat >>confdefs.h <<\_ACEOF
5423 #define HAVE_LINUX_OS 1
5431 HAVE_LINUX_OS_FALSE='#'
5433 HAVE_LINUX_OS_TRUE='#'
5434 HAVE_LINUX_OS_FALSE=
5438 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5443 HAVE_FREEBSD_OS_TRUE=
5444 HAVE_FREEBSD_OS_FALSE='#'
5446 HAVE_FREEBSD_OS_TRUE='#'
5447 HAVE_FREEBSD_OS_FALSE=
5449 cat >>confdefs.h <<\_ACEOF
5450 #define HAVE_FREEBSD_OS 1
5457 HAVE_FREEBSD_OS_TRUE=
5458 HAVE_FREEBSD_OS_FALSE='#'
5460 HAVE_FREEBSD_OS_TRUE='#'
5461 HAVE_FREEBSD_OS_FALSE=
5465 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5470 HAVE_NETBSD_OS_TRUE=
5471 HAVE_NETBSD_OS_FALSE='#'
5473 HAVE_NETBSD_OS_TRUE='#'
5474 HAVE_NETBSD_OS_FALSE=
5476 cat >>confdefs.h <<\_ACEOF
5477 #define HAVE_NETBSD_OS 1
5484 HAVE_NETBSD_OS_TRUE=
5485 HAVE_NETBSD_OS_FALSE='#'
5487 HAVE_NETBSD_OS_TRUE='#'
5488 HAVE_NETBSD_OS_FALSE=
5492 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5497 HAVE_OPENBSD_OS_TRUE=
5498 HAVE_OPENBSD_OS_FALSE='#'
5500 HAVE_OPENBSD_OS_TRUE='#'
5501 HAVE_OPENBSD_OS_FALSE=
5503 cat >>confdefs.h <<\_ACEOF
5504 #define HAVE_OPENBSD_OS 1
5511 HAVE_OPENBSD_OS_TRUE=
5512 HAVE_OPENBSD_OS_FALSE='#'
5514 HAVE_OPENBSD_OS_TRUE='#'
5515 HAVE_OPENBSD_OS_FALSE=
5519 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5525 HAVE_BSDI_OS_FALSE='#'
5527 HAVE_BSDI_OS_TRUE='#'
5530 cat >>confdefs.h <<\_ACEOF
5531 #define HAVE_BSDI_OS 1
5539 HAVE_BSDI_OS_FALSE='#'
5541 HAVE_BSDI_OS_TRUE='#'
5546 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5552 HAVE_SGI_OS_FALSE='#'
5554 HAVE_SGI_OS_TRUE='#'
5557 cat >>confdefs.h <<\_ACEOF
5558 #define HAVE_SGI_OS 1
5566 HAVE_SGI_OS_FALSE='#'
5568 HAVE_SGI_OS_TRUE='#'
5573 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5579 HAVE_IRIX_OS_FALSE='#'
5581 HAVE_IRIX_OS_TRUE='#'
5584 cat >>confdefs.h <<\_ACEOF
5585 #define HAVE_IRIX_OS 1
5593 HAVE_IRIX_OS_FALSE='#'
5595 HAVE_IRIX_OS_TRUE='#'
5600 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5605 HAVE_DARWIN_OS_TRUE=
5606 HAVE_DARWIN_OS_FALSE='#'
5608 HAVE_DARWIN_OS_TRUE='#'
5609 HAVE_DARWIN_OS_FALSE=
5611 cat >>confdefs.h <<\_ACEOF
5612 #define HAVE_DARWIN_OS 1
5619 HAVE_DARWIN_OS_TRUE=
5620 HAVE_DARWIN_OS_FALSE='#'
5622 HAVE_DARWIN_OS_TRUE='#'
5623 HAVE_DARWIN_OS_FALSE=
5628 # -----------------------------------------------------------
5629 # ----------------------------------------------------------
5630 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5631 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5632 if test "x$DISTNAME" != "x"
5634 echo "distname set to $DISTNAME"
5635 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5638 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5641 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5644 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5647 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5650 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5653 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5656 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5659 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5662 elif test -f /etc/SuSE-release
5665 elif test -d /etc/SuSEconfig
5668 elif test -f /etc/mandrake-release
5671 elif test -f /etc/whitebox-release
5674 elif test -f /etc/redhat-release
5677 elif test -f /etc/gentoo-release
5680 elif test -f /etc/debian_version
5683 elif test -f /etc/slackware-version
5686 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5689 elif test -f /etc/engarde-version
5692 elif test "$CYGWIN" = yes
5695 cat >>confdefs.h <<\_ACEOF
5696 #define HAVE_CYGWIN 1
5702 { echo "$as_me:$LINENO: result: done" >&5
5703 echo "${ECHO_T}done" >&6; }
5706 # --------------------------------------------------
5707 # Suppport for gettext (translations)
5708 # By default, $datadir is ${prefix}/share
5709 # --------------------------------------------------
5710 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5711 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5712 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5713 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 cat >conftest.make <<\_ACEOF
5719 @echo '@@@%%%=$(MAKE)=@@@%%%'
5721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5722 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5724 eval ac_cv_prog_make_${ac_make}_set=yes;;
5726 eval ac_cv_prog_make_${ac_make}_set=no;;
5730 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5731 { echo "$as_me:$LINENO: result: yes" >&5
5732 echo "${ECHO_T}yes" >&6; }
5735 { echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6; }
5737 SET_MAKE="MAKE=${MAKE-make}"
5743 if test -n "$ac_aux_dir"; then
5744 case "$ac_aux_dir" in
5745 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5746 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5749 if test -z "$MKINSTALLDIRS"; then
5750 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5755 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5756 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5757 # Check whether --enable-nls was given.
5758 if test "${enable_nls+set}" = set; then
5759 enableval=$enable_nls; USE_NLS=$enableval
5764 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5765 echo "${ECHO_T}$USE_NLS" >&6; }
5772 # Prepare PATH_SEPARATOR.
5773 # The user is always right.
5774 if test "${PATH_SEPARATOR+set}" != set; then
5775 echo "#! /bin/sh" >conf$$.sh
5776 echo "exit 0" >>conf$$.sh
5778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5786 # Find out how to test for executable files. Don't use a zero-byte file,
5787 # as systems may use methods other than mode bits to determine executability.
5788 cat >conf$$.file <<_ASEOF
5792 chmod +x conf$$.file
5793 if test -x conf$$.file >/dev/null 2>&1; then
5794 ac_executable_p="test -x"
5796 ac_executable_p="test -f"
5800 # Extract the first word of "msgfmt", so it can be a program name with args.
5801 set dummy msgfmt; ac_word=$2
5802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5804 if test "${ac_cv_path_MSGFMT+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5812 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5813 for ac_dir in $PATH; do
5815 test -z "$ac_dir" && ac_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5818 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5819 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5820 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5821 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5828 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5832 MSGFMT="$ac_cv_path_MSGFMT"
5833 if test "$MSGFMT" != ":"; then
5834 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5835 echo "${ECHO_T}$MSGFMT" >&6; }
5837 { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5841 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5842 set dummy gmsgfmt; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5872 GMSGFMT=$ac_cv_path_GMSGFMT
5873 if test -n "$GMSGFMT"; then
5874 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5875 echo "${ECHO_T}$GMSGFMT" >&6; }
5877 { echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6; }
5884 # Prepare PATH_SEPARATOR.
5885 # The user is always right.
5886 if test "${PATH_SEPARATOR+set}" != set; then
5887 echo "#! /bin/sh" >conf$$.sh
5888 echo "exit 0" >>conf$$.sh
5890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5898 # Find out how to test for executable files. Don't use a zero-byte file,
5899 # as systems may use methods other than mode bits to determine executability.
5900 cat >conf$$.file <<_ASEOF
5904 chmod +x conf$$.file
5905 if test -x conf$$.file >/dev/null 2>&1; then
5906 ac_executable_p="test -x"
5908 ac_executable_p="test -f"
5912 # Extract the first word of "xgettext", so it can be a program name with args.
5913 set dummy xgettext; ac_word=$2
5914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5916 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5924 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5925 for ac_dir in $PATH; do
5927 test -z "$ac_dir" && ac_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5930 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5931 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5932 (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
5933 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5940 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5944 XGETTEXT="$ac_cv_path_XGETTEXT"
5945 if test "$XGETTEXT" != ":"; then
5946 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5947 echo "${ECHO_T}$XGETTEXT" >&6; }
5949 { echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6; }
5956 # Prepare PATH_SEPARATOR.
5957 # The user is always right.
5958 if test "${PATH_SEPARATOR+set}" != set; then
5959 echo "#! /bin/sh" >conf$$.sh
5960 echo "exit 0" >>conf$$.sh
5962 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5970 # Find out how to test for executable files. Don't use a zero-byte file,
5971 # as systems may use methods other than mode bits to determine executability.
5972 cat >conf$$.file <<_ASEOF
5976 chmod +x conf$$.file
5977 if test -x conf$$.file >/dev/null 2>&1; then
5978 ac_executable_p="test -x"
5980 ac_executable_p="test -f"
5984 # Extract the first word of "msgmerge", so it can be a program name with args.
5985 set dummy msgmerge; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5996 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5997 for ac_dir in $PATH; do
5999 test -z "$ac_dir" && ac_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6002 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6003 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6004 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6011 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6015 MSGMERGE="$ac_cv_path_MSGMERGE"
6016 if test "$MSGMERGE" != ":"; then
6017 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6018 echo "${ECHO_T}$MSGMERGE" >&6; }
6020 { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6025 if test "$GMSGFMT" != ":"; then
6026 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6027 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6030 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6031 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6032 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6037 if test "$XGETTEXT" != ":"; then
6038 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6039 (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
6042 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6043 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6049 ac_config_commands="$ac_config_commands default-1"
6053 if test "X$prefix" = "XNONE"; then
6054 acl_final_prefix="$ac_default_prefix"
6056 acl_final_prefix="$prefix"
6058 if test "X$exec_prefix" = "XNONE"; then
6059 acl_final_exec_prefix='${prefix}'
6061 acl_final_exec_prefix="$exec_prefix"
6063 acl_save_prefix="$prefix"
6064 prefix="$acl_final_prefix"
6065 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6066 prefix="$acl_save_prefix"
6069 # Check whether --with-gnu-ld was given.
6070 if test "${with_gnu_ld+set}" = set; then
6071 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6076 # Prepare PATH_SEPARATOR.
6077 # The user is always right.
6078 if test "${PATH_SEPARATOR+set}" != set; then
6079 echo "#! /bin/sh" >conf$$.sh
6080 echo "exit 0" >>conf$$.sh
6082 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6090 if test "$GCC" = yes; then
6091 # Check if gcc -print-prog-name=ld gives a path.
6092 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6093 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6096 # gcc leaves a trailing carriage return which upsets mingw
6097 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6099 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6102 # Accept absolute paths.
6103 [\\/]* | [A-Za-z]:[\\/]*)
6104 re_direlt='/[^/][^/]*/\.\./'
6105 # Canonicalize the path of ld
6106 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6107 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6108 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6110 test -z "$LD" && LD="$ac_prog"
6113 # If it fails, then pretend we aren't using GCC.
6117 # If it is relative, then search for the first ld in PATH.
6121 elif test "$with_gnu_ld" = yes; then
6122 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6123 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6125 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6126 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6128 if test "${acl_cv_path_LD+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 if test -z "$LD"; then
6132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6133 for ac_dir in $PATH; do
6134 test -z "$ac_dir" && ac_dir=.
6135 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6136 acl_cv_path_LD="$ac_dir/$ac_prog"
6137 # Check to see if the program is GNU ld. I'd rather use --version,
6138 # but apparently some GNU ld's only accept -v.
6139 # Break only if it was the GNU/non-GNU ld that we prefer.
6140 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6141 *GNU* | *'with BFD'*)
6142 test "$with_gnu_ld" != no && break ;;
6144 test "$with_gnu_ld" != yes && break ;;
6150 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6154 LD="$acl_cv_path_LD"
6155 if test -n "$LD"; then
6156 { echo "$as_me:$LINENO: result: $LD" >&5
6157 echo "${ECHO_T}$LD" >&6; }
6159 { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6162 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6163 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6164 { (exit 1); exit 1; }; }
6165 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6166 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6167 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6171 case `$LD -v 2>&1 </dev/null` in
6172 *GNU* | *'with BFD'*)
6173 acl_cv_prog_gnu_ld=yes ;;
6175 acl_cv_prog_gnu_ld=no ;;
6178 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6179 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6180 with_gnu_ld=$acl_cv_prog_gnu_ld
6185 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6186 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6187 if test "${acl_cv_rpath+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6192 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6198 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6199 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6201 libext="$acl_cv_libext"
6202 shlibext="$acl_cv_shlibext"
6203 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6204 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6205 hardcode_direct="$acl_cv_hardcode_direct"
6206 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6207 # Check whether --enable-rpath was given.
6208 if test "${enable_rpath+set}" = set; then
6209 enableval=$enable_rpath; :
6223 acl_save_prefix="$prefix"
6224 prefix="$acl_final_prefix"
6225 acl_save_exec_prefix="$exec_prefix"
6226 exec_prefix="$acl_final_exec_prefix"
6228 eval additional_includedir=\"$includedir\"
6229 eval additional_libdir=\"$libdir\"
6231 exec_prefix="$acl_save_exec_prefix"
6232 prefix="$acl_save_prefix"
6235 # Check whether --with-libiconv-prefix was given.
6236 if test "${with_libiconv_prefix+set}" = set; then
6237 withval=$with_libiconv_prefix;
6238 if test "X$withval" = "Xno"; then
6241 if test "X$withval" = "X"; then
6243 acl_save_prefix="$prefix"
6244 prefix="$acl_final_prefix"
6245 acl_save_exec_prefix="$exec_prefix"
6246 exec_prefix="$acl_final_exec_prefix"
6248 eval additional_includedir=\"$includedir\"
6249 eval additional_libdir=\"$libdir\"
6251 exec_prefix="$acl_save_exec_prefix"
6252 prefix="$acl_save_prefix"
6255 additional_includedir="$withval/include"
6256 additional_libdir="$withval/lib"
6267 names_already_handled=
6268 names_next_round='iconv '
6269 while test -n "$names_next_round"; do
6270 names_this_round="$names_next_round"
6272 for name in $names_this_round; do
6274 for n in $names_already_handled; do
6275 if test "$n" = "$name"; then
6280 if test -z "$already_handled"; then
6281 names_already_handled="$names_already_handled $name"
6282 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6283 eval value=\"\$HAVE_LIB$uppername\"
6284 if test -n "$value"; then
6285 if test "$value" = yes; then
6286 eval value=\"\$LIB$uppername\"
6287 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6288 eval value=\"\$LTLIB$uppername\"
6289 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6298 if test $use_additional = yes; then
6299 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6300 found_dir="$additional_libdir"
6301 found_so="$additional_libdir/lib$name.$shlibext"
6302 if test -f "$additional_libdir/lib$name.la"; then
6303 found_la="$additional_libdir/lib$name.la"
6306 if test -f "$additional_libdir/lib$name.$libext"; then
6307 found_dir="$additional_libdir"
6308 found_a="$additional_libdir/lib$name.$libext"
6309 if test -f "$additional_libdir/lib$name.la"; then
6310 found_la="$additional_libdir/lib$name.la"
6315 if test "X$found_dir" = "X"; then
6316 for x in $LDFLAGS $LTLIBICONV; do
6318 acl_save_prefix="$prefix"
6319 prefix="$acl_final_prefix"
6320 acl_save_exec_prefix="$exec_prefix"
6321 exec_prefix="$acl_final_exec_prefix"
6323 exec_prefix="$acl_save_exec_prefix"
6324 prefix="$acl_save_prefix"
6328 dir=`echo "X$x" | sed -e 's/^X-L//'`
6329 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6331 found_so="$dir/lib$name.$shlibext"
6332 if test -f "$dir/lib$name.la"; then
6333 found_la="$dir/lib$name.la"
6336 if test -f "$dir/lib$name.$libext"; then
6338 found_a="$dir/lib$name.$libext"
6339 if test -f "$dir/lib$name.la"; then
6340 found_la="$dir/lib$name.la"
6346 if test "X$found_dir" != "X"; then
6351 if test "X$found_dir" != "X"; then
6352 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6353 if test "X$found_so" != "X"; then
6354 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6355 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6358 for x in $ltrpathdirs; do
6359 if test "X$x" = "X$found_dir"; then
6364 if test -z "$haveit"; then
6365 ltrpathdirs="$ltrpathdirs $found_dir"
6367 if test "$hardcode_direct" = yes; then
6368 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6370 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6371 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6373 for x in $rpathdirs; do
6374 if test "X$x" = "X$found_dir"; then
6379 if test -z "$haveit"; then
6380 rpathdirs="$rpathdirs $found_dir"
6384 for x in $LDFLAGS $LIBICONV; do
6386 acl_save_prefix="$prefix"
6387 prefix="$acl_final_prefix"
6388 acl_save_exec_prefix="$exec_prefix"
6389 exec_prefix="$acl_final_exec_prefix"
6391 exec_prefix="$acl_save_exec_prefix"
6392 prefix="$acl_save_prefix"
6394 if test "X$x" = "X-L$found_dir"; then
6399 if test -z "$haveit"; then
6400 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6402 if test "$hardcode_minus_L" != no; then
6403 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6405 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6411 if test "X$found_a" != "X"; then
6412 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6414 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6417 additional_includedir=
6418 case "$found_dir" in
6420 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6421 additional_includedir="$basedir/include"
6424 if test "X$additional_includedir" != "X"; then
6425 if test "X$additional_includedir" != "X/usr/include"; then
6427 if test "X$additional_includedir" = "X/usr/local/include"; then
6428 if test -n "$GCC"; then
6430 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6434 if test -z "$haveit"; then
6435 for x in $CPPFLAGS $INCICONV; do
6437 acl_save_prefix="$prefix"
6438 prefix="$acl_final_prefix"
6439 acl_save_exec_prefix="$exec_prefix"
6440 exec_prefix="$acl_final_exec_prefix"
6442 exec_prefix="$acl_save_exec_prefix"
6443 prefix="$acl_save_prefix"
6445 if test "X$x" = "X-I$additional_includedir"; then
6450 if test -z "$haveit"; then
6451 if test -d "$additional_includedir"; then
6452 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6458 if test -n "$found_la"; then
6459 save_libdir="$libdir"
6461 */* | *\\*) . "$found_la" ;;
6462 *) . "./$found_la" ;;
6464 libdir="$save_libdir"
6465 for dep in $dependency_libs; do
6468 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6469 if test "X$additional_libdir" != "X/usr/lib"; then
6471 if test "X$additional_libdir" = "X/usr/local/lib"; then
6472 if test -n "$GCC"; then
6474 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6478 if test -z "$haveit"; then
6480 for x in $LDFLAGS $LIBICONV; do
6482 acl_save_prefix="$prefix"
6483 prefix="$acl_final_prefix"
6484 acl_save_exec_prefix="$exec_prefix"
6485 exec_prefix="$acl_final_exec_prefix"
6487 exec_prefix="$acl_save_exec_prefix"
6488 prefix="$acl_save_prefix"
6490 if test "X$x" = "X-L$additional_libdir"; then
6495 if test -z "$haveit"; then
6496 if test -d "$additional_libdir"; then
6497 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6501 for x in $LDFLAGS $LTLIBICONV; do
6503 acl_save_prefix="$prefix"
6504 prefix="$acl_final_prefix"
6505 acl_save_exec_prefix="$exec_prefix"
6506 exec_prefix="$acl_final_exec_prefix"
6508 exec_prefix="$acl_save_exec_prefix"
6509 prefix="$acl_save_prefix"
6511 if test "X$x" = "X-L$additional_libdir"; then
6516 if test -z "$haveit"; then
6517 if test -d "$additional_libdir"; then
6518 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6525 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6526 if test "$enable_rpath" != no; then
6528 for x in $rpathdirs; do
6529 if test "X$x" = "X$dir"; then
6534 if test -z "$haveit"; then
6535 rpathdirs="$rpathdirs $dir"
6538 for x in $ltrpathdirs; do
6539 if test "X$x" = "X$dir"; then
6544 if test -z "$haveit"; then
6545 ltrpathdirs="$ltrpathdirs $dir"
6550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6553 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6556 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6557 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6563 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6564 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6570 if test "X$rpathdirs" != "X"; then
6571 if test -n "$hardcode_libdir_separator"; then
6573 for found_dir in $rpathdirs; do
6574 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6576 acl_save_libdir="$libdir"
6578 eval flag=\"$hardcode_libdir_flag_spec\"
6579 libdir="$acl_save_libdir"
6580 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6582 for found_dir in $rpathdirs; do
6583 acl_save_libdir="$libdir"
6585 eval flag=\"$hardcode_libdir_flag_spec\"
6586 libdir="$acl_save_libdir"
6587 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6591 if test "X$ltrpathdirs" != "X"; then
6592 for found_dir in $ltrpathdirs; do
6593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6614 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6615 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6616 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 gt_save_CPPFLAGS="$CPPFLAGS"
6620 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6621 gt_save_LIBS="$LIBS"
6622 LIBS="$LIBS -framework CoreFoundation"
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 #include <CFPreferences.h>
6633 CFPreferencesCopyAppValue(NULL, NULL)
6638 rm -f conftest.$ac_objext conftest$ac_exeext
6639 if { (ac_try="$ac_link"
6641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642 *) ac_try_echo=$ac_try;;
6644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6645 (eval "$ac_link") 2>conftest.er1
6647 grep -v '^ *+' conftest.er1 >conftest.err
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } && {
6652 test -z "$ac_c_werror_flag" ||
6653 test ! -s conftest.err
6654 } && test -s conftest$ac_exeext &&
6655 $as_test_x conftest$ac_exeext; then
6656 gt_cv_func_CFPreferencesCopyAppValue=yes
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 gt_cv_func_CFPreferencesCopyAppValue=no
6664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6665 conftest$ac_exeext conftest.$ac_ext
6666 CPPFLAGS="$gt_save_CPPFLAGS"
6667 LIBS="$gt_save_LIBS"
6669 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6670 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6671 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6673 cat >>confdefs.h <<\_ACEOF
6674 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6678 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6679 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6680 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 gt_save_CPPFLAGS="$CPPFLAGS"
6684 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6685 gt_save_LIBS="$LIBS"
6686 LIBS="$LIBS -framework CoreFoundation"
6687 cat >conftest.$ac_ext <<_ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <CFLocale.h>
6697 CFLocaleCopyCurrent();
6702 rm -f conftest.$ac_objext conftest$ac_exeext
6703 if { (ac_try="$ac_link"
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_link") 2>conftest.er1
6711 grep -v '^ *+' conftest.er1 >conftest.err
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_c_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest$ac_exeext &&
6719 $as_test_x conftest$ac_exeext; then
6720 gt_cv_func_CFLocaleCopyCurrent=yes
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6725 gt_cv_func_CFLocaleCopyCurrent=no
6728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6729 conftest$ac_exeext conftest.$ac_ext
6730 CPPFLAGS="$gt_save_CPPFLAGS"
6731 LIBS="$gt_save_LIBS"
6733 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6734 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6735 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6737 cat >>confdefs.h <<\_ACEOF
6738 #define HAVE_CFLOCALECOPYCURRENT 1
6743 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6744 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6750 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6751 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6752 # Check whether --enable-nls was given.
6753 if test "${enable_nls+set}" = set; then
6754 enableval=$enable_nls; USE_NLS=$enableval
6759 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6760 echo "${ECHO_T}$USE_NLS" >&6; }
6769 if test "$USE_NLS" = "yes"; then
6770 gt_use_preinstalled_gnugettext=no
6777 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6778 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6779 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 cat >conftest.$ac_ext <<_ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 #include <libintl.h>
6789 extern int _nl_msg_cat_cntr;
6790 extern int *_nl_domain_bindings;
6794 bindtextdomain ("", "");
6795 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6800 rm -f conftest.$ac_objext conftest$ac_exeext
6801 if { (ac_try="$ac_link"
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_link") 2>conftest.er1
6809 grep -v '^ *+' conftest.er1 >conftest.err
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && {
6814 test -z "$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 } && test -s conftest$ac_exeext &&
6817 $as_test_x conftest$ac_exeext; then
6818 gt_cv_func_gnugettext1_libc=yes
6820 echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6823 gt_cv_func_gnugettext1_libc=no
6826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6827 conftest$ac_exeext conftest.$ac_ext
6829 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6830 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6832 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6838 am_save_CPPFLAGS="$CPPFLAGS"
6840 for element in $INCICONV; do
6842 for x in $CPPFLAGS; do
6844 acl_save_prefix="$prefix"
6845 prefix="$acl_final_prefix"
6846 acl_save_exec_prefix="$exec_prefix"
6847 exec_prefix="$acl_final_exec_prefix"
6849 exec_prefix="$acl_save_exec_prefix"
6850 prefix="$acl_save_prefix"
6852 if test "X$x" = "X$element"; then
6857 if test -z "$haveit"; then
6858 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6863 { echo "$as_me:$LINENO: checking for iconv" >&5
6864 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6865 if test "${am_cv_func_iconv+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 am_cv_func_iconv="no, consider installing GNU libiconv"
6871 cat >conftest.$ac_ext <<_ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6882 iconv_t cd = iconv_open("","");
6883 iconv(cd,NULL,NULL,NULL,NULL);
6889 rm -f conftest.$ac_objext conftest$ac_exeext
6890 if { (ac_try="$ac_link"
6892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6896 (eval "$ac_link") 2>conftest.er1
6898 grep -v '^ *+' conftest.er1 >conftest.err
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest$ac_exeext &&
6906 $as_test_x conftest$ac_exeext; then
6907 am_cv_func_iconv=yes
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6916 conftest$ac_exeext conftest.$ac_ext
6917 if test "$am_cv_func_iconv" != yes; then
6918 am_save_LIBS="$LIBS"
6919 LIBS="$LIBS $LIBICONV"
6920 cat >conftest.$ac_ext <<_ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6931 iconv_t cd = iconv_open("","");
6932 iconv(cd,NULL,NULL,NULL,NULL);
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (ac_try="$ac_link"
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_link") 2>conftest.er1
6947 grep -v '^ *+' conftest.er1 >conftest.err
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest$ac_exeext &&
6955 $as_test_x conftest$ac_exeext; then
6957 am_cv_func_iconv=yes
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6966 conftest$ac_exeext conftest.$ac_ext
6967 LIBS="$am_save_LIBS"
6971 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6972 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6973 if test "$am_cv_func_iconv" = yes; then
6975 cat >>confdefs.h <<\_ACEOF
6976 #define HAVE_ICONV 1
6980 if test "$am_cv_lib_iconv" = yes; then
6981 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6982 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6983 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6984 echo "${ECHO_T}$LIBICONV" >&6; }
6986 CPPFLAGS="$am_save_CPPFLAGS"
6998 acl_save_prefix="$prefix"
6999 prefix="$acl_final_prefix"
7000 acl_save_exec_prefix="$exec_prefix"
7001 exec_prefix="$acl_final_exec_prefix"
7003 eval additional_includedir=\"$includedir\"
7004 eval additional_libdir=\"$libdir\"
7006 exec_prefix="$acl_save_exec_prefix"
7007 prefix="$acl_save_prefix"
7010 # Check whether --with-libintl-prefix was given.
7011 if test "${with_libintl_prefix+set}" = set; then
7012 withval=$with_libintl_prefix;
7013 if test "X$withval" = "Xno"; then
7016 if test "X$withval" = "X"; then
7018 acl_save_prefix="$prefix"
7019 prefix="$acl_final_prefix"
7020 acl_save_exec_prefix="$exec_prefix"
7021 exec_prefix="$acl_final_exec_prefix"
7023 eval additional_includedir=\"$includedir\"
7024 eval additional_libdir=\"$libdir\"
7026 exec_prefix="$acl_save_exec_prefix"
7027 prefix="$acl_save_prefix"
7030 additional_includedir="$withval/include"
7031 additional_libdir="$withval/lib"
7042 names_already_handled=
7043 names_next_round='intl '
7044 while test -n "$names_next_round"; do
7045 names_this_round="$names_next_round"
7047 for name in $names_this_round; do
7049 for n in $names_already_handled; do
7050 if test "$n" = "$name"; then
7055 if test -z "$already_handled"; then
7056 names_already_handled="$names_already_handled $name"
7057 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7058 eval value=\"\$HAVE_LIB$uppername\"
7059 if test -n "$value"; then
7060 if test "$value" = yes; then
7061 eval value=\"\$LIB$uppername\"
7062 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7063 eval value=\"\$LTLIB$uppername\"
7064 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7073 if test $use_additional = yes; then
7074 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7075 found_dir="$additional_libdir"
7076 found_so="$additional_libdir/lib$name.$shlibext"
7077 if test -f "$additional_libdir/lib$name.la"; then
7078 found_la="$additional_libdir/lib$name.la"
7081 if test -f "$additional_libdir/lib$name.$libext"; then
7082 found_dir="$additional_libdir"
7083 found_a="$additional_libdir/lib$name.$libext"
7084 if test -f "$additional_libdir/lib$name.la"; then
7085 found_la="$additional_libdir/lib$name.la"
7090 if test "X$found_dir" = "X"; then
7091 for x in $LDFLAGS $LTLIBINTL; do
7093 acl_save_prefix="$prefix"
7094 prefix="$acl_final_prefix"
7095 acl_save_exec_prefix="$exec_prefix"
7096 exec_prefix="$acl_final_exec_prefix"
7098 exec_prefix="$acl_save_exec_prefix"
7099 prefix="$acl_save_prefix"
7103 dir=`echo "X$x" | sed -e 's/^X-L//'`
7104 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7106 found_so="$dir/lib$name.$shlibext"
7107 if test -f "$dir/lib$name.la"; then
7108 found_la="$dir/lib$name.la"
7111 if test -f "$dir/lib$name.$libext"; then
7113 found_a="$dir/lib$name.$libext"
7114 if test -f "$dir/lib$name.la"; then
7115 found_la="$dir/lib$name.la"
7121 if test "X$found_dir" != "X"; then
7126 if test "X$found_dir" != "X"; then
7127 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7128 if test "X$found_so" != "X"; then
7129 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7130 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7133 for x in $ltrpathdirs; do
7134 if test "X$x" = "X$found_dir"; then
7139 if test -z "$haveit"; then
7140 ltrpathdirs="$ltrpathdirs $found_dir"
7142 if test "$hardcode_direct" = yes; then
7143 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7145 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7146 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7148 for x in $rpathdirs; do
7149 if test "X$x" = "X$found_dir"; then
7154 if test -z "$haveit"; then
7155 rpathdirs="$rpathdirs $found_dir"
7159 for x in $LDFLAGS $LIBINTL; do
7161 acl_save_prefix="$prefix"
7162 prefix="$acl_final_prefix"
7163 acl_save_exec_prefix="$exec_prefix"
7164 exec_prefix="$acl_final_exec_prefix"
7166 exec_prefix="$acl_save_exec_prefix"
7167 prefix="$acl_save_prefix"
7169 if test "X$x" = "X-L$found_dir"; then
7174 if test -z "$haveit"; then
7175 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7177 if test "$hardcode_minus_L" != no; then
7178 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7180 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7186 if test "X$found_a" != "X"; then
7187 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7189 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7192 additional_includedir=
7193 case "$found_dir" in
7195 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7196 additional_includedir="$basedir/include"
7199 if test "X$additional_includedir" != "X"; then
7200 if test "X$additional_includedir" != "X/usr/include"; then
7202 if test "X$additional_includedir" = "X/usr/local/include"; then
7203 if test -n "$GCC"; then
7205 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7209 if test -z "$haveit"; then
7210 for x in $CPPFLAGS $INCINTL; do
7212 acl_save_prefix="$prefix"
7213 prefix="$acl_final_prefix"
7214 acl_save_exec_prefix="$exec_prefix"
7215 exec_prefix="$acl_final_exec_prefix"
7217 exec_prefix="$acl_save_exec_prefix"
7218 prefix="$acl_save_prefix"
7220 if test "X$x" = "X-I$additional_includedir"; then
7225 if test -z "$haveit"; then
7226 if test -d "$additional_includedir"; then
7227 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7233 if test -n "$found_la"; then
7234 save_libdir="$libdir"
7236 */* | *\\*) . "$found_la" ;;
7237 *) . "./$found_la" ;;
7239 libdir="$save_libdir"
7240 for dep in $dependency_libs; do
7243 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7244 if test "X$additional_libdir" != "X/usr/lib"; then
7246 if test "X$additional_libdir" = "X/usr/local/lib"; then
7247 if test -n "$GCC"; then
7249 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7253 if test -z "$haveit"; then
7255 for x in $LDFLAGS $LIBINTL; do
7257 acl_save_prefix="$prefix"
7258 prefix="$acl_final_prefix"
7259 acl_save_exec_prefix="$exec_prefix"
7260 exec_prefix="$acl_final_exec_prefix"
7262 exec_prefix="$acl_save_exec_prefix"
7263 prefix="$acl_save_prefix"
7265 if test "X$x" = "X-L$additional_libdir"; then
7270 if test -z "$haveit"; then
7271 if test -d "$additional_libdir"; then
7272 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7276 for x in $LDFLAGS $LTLIBINTL; do
7278 acl_save_prefix="$prefix"
7279 prefix="$acl_final_prefix"
7280 acl_save_exec_prefix="$exec_prefix"
7281 exec_prefix="$acl_final_exec_prefix"
7283 exec_prefix="$acl_save_exec_prefix"
7284 prefix="$acl_save_prefix"
7286 if test "X$x" = "X-L$additional_libdir"; then
7291 if test -z "$haveit"; then
7292 if test -d "$additional_libdir"; then
7293 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7300 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7301 if test "$enable_rpath" != no; then
7303 for x in $rpathdirs; do
7304 if test "X$x" = "X$dir"; then
7309 if test -z "$haveit"; then
7310 rpathdirs="$rpathdirs $dir"
7313 for x in $ltrpathdirs; do
7314 if test "X$x" = "X$dir"; then
7319 if test -z "$haveit"; then
7320 ltrpathdirs="$ltrpathdirs $dir"
7325 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7328 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7331 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7332 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7338 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7339 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7345 if test "X$rpathdirs" != "X"; then
7346 if test -n "$hardcode_libdir_separator"; then
7348 for found_dir in $rpathdirs; do
7349 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7351 acl_save_libdir="$libdir"
7353 eval flag=\"$hardcode_libdir_flag_spec\"
7354 libdir="$acl_save_libdir"
7355 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7357 for found_dir in $rpathdirs; do
7358 acl_save_libdir="$libdir"
7360 eval flag=\"$hardcode_libdir_flag_spec\"
7361 libdir="$acl_save_libdir"
7362 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7366 if test "X$ltrpathdirs" != "X"; then
7367 for found_dir in $ltrpathdirs; do
7368 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7372 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7373 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7374 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 gt_save_CPPFLAGS="$CPPFLAGS"
7378 CPPFLAGS="$CPPFLAGS $INCINTL"
7379 gt_save_LIBS="$LIBS"
7380 LIBS="$LIBS $LIBINTL"
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 #include <libintl.h>
7388 extern int _nl_msg_cat_cntr;
7393 const char *_nl_expand_alias (const char *);
7397 bindtextdomain ("", "");
7398 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7403 rm -f conftest.$ac_objext conftest$ac_exeext
7404 if { (ac_try="$ac_link"
7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407 *) ac_try_echo=$ac_try;;
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410 (eval "$ac_link") 2>conftest.er1
7412 grep -v '^ *+' conftest.er1 >conftest.err
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest$ac_exeext &&
7420 $as_test_x conftest$ac_exeext; then
7421 gt_cv_func_gnugettext1_libintl=yes
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7426 gt_cv_func_gnugettext1_libintl=no
7429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7430 conftest$ac_exeext conftest.$ac_ext
7431 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7432 LIBS="$LIBS $LIBICONV"
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 #include <libintl.h>
7440 extern int _nl_msg_cat_cntr;
7445 const char *_nl_expand_alias (const char *);
7449 bindtextdomain ("", "");
7450 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7455 rm -f conftest.$ac_objext conftest$ac_exeext
7456 if { (ac_try="$ac_link"
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_link") 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest$ac_exeext &&
7472 $as_test_x conftest$ac_exeext; then
7473 LIBINTL="$LIBINTL $LIBICONV"
7474 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7475 gt_cv_func_gnugettext1_libintl=yes
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7485 conftest$ac_exeext conftest.$ac_ext
7487 CPPFLAGS="$gt_save_CPPFLAGS"
7488 LIBS="$gt_save_LIBS"
7490 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7491 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7494 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7495 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7496 && test "$PACKAGE" != gettext-runtime \
7497 && test "$PACKAGE" != gettext-tools; }; then
7498 gt_use_preinstalled_gnugettext=yes
7507 if test -n "$INTL_MACOSX_LIBS"; then
7508 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7509 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7510 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7511 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7515 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7516 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7518 cat >>confdefs.h <<\_ACEOF
7519 #define ENABLE_NLS 1
7527 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7528 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7529 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7530 echo "${ECHO_T}$USE_NLS" >&6; }
7531 if test "$USE_NLS" = "yes"; then
7532 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7533 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7534 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7535 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7536 gt_source="external libintl"
7541 gt_source="included intl directory"
7543 { echo "$as_me:$LINENO: result: $gt_source" >&5
7544 echo "${ECHO_T}$gt_source" >&6; }
7547 if test "$USE_NLS" = "yes"; then
7549 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7550 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7551 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7552 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7553 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7554 echo "${ECHO_T}$LIBINTL" >&6; }
7556 for element in $INCINTL; do
7558 for x in $CPPFLAGS; do
7560 acl_save_prefix="$prefix"
7561 prefix="$acl_final_prefix"
7562 acl_save_exec_prefix="$exec_prefix"
7563 exec_prefix="$acl_final_exec_prefix"
7565 exec_prefix="$acl_save_exec_prefix"
7566 prefix="$acl_save_prefix"
7568 if test "X$x" = "X$element"; then
7573 if test -z "$haveit"; then
7574 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_GETTEXT 1
7586 cat >>confdefs.h <<\_ACEOF
7587 #define HAVE_DCGETTEXT 1
7604 if test x${prefix} = xNONE ; then
7605 if test `eval echo ${datadir}` = NONE/share ; then
7610 # ------------------------------------------------------------------
7611 # If the user has not set --prefix, we set our default to nothing.
7612 # In this case, if the user has not set --sysconfdir, we set it
7613 # to the package default of /etc/bacula. If either --prefix or
7614 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7615 # ------------------------------------------------------------------
7616 if test x${prefix} = xNONE ; then
7617 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7618 sysconfdir=/etc/bacula
7622 sysconfdir=`eval echo ${sysconfdir}`
7623 datadir=`eval echo ${datadir}`
7624 localedir=`eval echo ${datadir}/locale`
7625 cat >>confdefs.h <<_ACEOF
7626 #define LOCALEDIR "$localedir"
7629 cat >>confdefs.h <<_ACEOF
7630 #define SYSCONFDIR "$sysconfdir"
7634 # -------------------------------------------------------------------------
7635 # If the user has not set --exec-prefix, we default to ${prefix}
7636 # -------------------------------------------------------------------------
7637 if test x${exec_prefix} = xNONE ; then
7638 exec_prefix=${prefix}
7641 # ------------------------------------------------------------------
7642 # If the user has not set --sbindir, we set our default as /sbin
7643 # ------------------------------------------------------------------
7644 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7645 sbindir=${exec_prefix}/sbin
7647 sbindir=`eval echo ${sbindir}`
7650 # -------------------------------------------------------------------------
7651 # If the user has not set --mandir, we default to /usr/share/man
7652 # -------------------------------------------------------------------------
7653 if test x$mandir = x'${prefix}/man' ; then
7654 mandir=/usr/share/man
7658 for ac_prog in msgfmt
7660 # Extract the first word of "$ac_prog", so it can be a program name with args.
7661 set dummy $ac_prog; ac_word=$2
7662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664 if test "${ac_cv_path_MSGFMT+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 MSGFMT=$ac_cv_path_MSGFMT
7691 if test -n "$MSGFMT"; then
7692 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7693 echo "${ECHO_T}$MSGFMT" >&6; }
7695 { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7700 test -n "$MSGFMT" && break
7702 test -n "$MSGFMT" || MSGFMT="no"
7704 if test "$MSGFMT" = "no"
7706 echo 'msgfmt program not found, disabling NLS !'
7708 USE_INCLUDED_LIBINTL=no
7711 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7712 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7713 if test "${ac_cv_gnu_library_2+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 cat >conftest.$ac_ext <<_ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7723 #include <features.h>
7724 #ifdef __GNU_LIBRARY__
7725 #if (__GLIBC__ >= 2)
7731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7732 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7733 ac_cv_gnu_library_2=yes
7735 ac_cv_gnu_library_2=no
7742 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7743 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7745 GLIBC2="$ac_cv_gnu_library_2"
7749 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7750 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7751 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 ac_check_lib_save_LIBS=$LIBS
7755 LIBS="-lcposix $LIBS"
7756 cat >conftest.$ac_ext <<_ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7763 /* Override any GCC internal prototype to avoid an error.
7764 Use char because int might match the return type of a GCC
7765 builtin and then its argument prototype would still apply. */
7778 rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (ac_try="$ac_link"
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_link") 2>conftest.er1
7787 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } && {
7792 test -z "$ac_c_werror_flag" ||
7793 test ! -s conftest.err
7794 } && test -s conftest$ac_exeext &&
7795 $as_test_x conftest$ac_exeext; then
7796 ac_cv_lib_cposix_strerror=yes
7798 echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7801 ac_cv_lib_cposix_strerror=no
7804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7805 conftest$ac_exeext conftest.$ac_ext
7806 LIBS=$ac_check_lib_save_LIBS
7808 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7809 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7810 if test $ac_cv_lib_cposix_strerror = yes; then
7811 LIBS="$LIBS -lcposix"
7816 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7818 if test "${ac_cv_header_stdc+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7840 rm -f conftest.$ac_objext
7841 if { (ac_try="$ac_compile"
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_compile") 2>conftest.er1
7849 grep -v '^ *+' conftest.er1 >conftest.err
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && {
7854 test -z "$ac_c_werror_flag" ||
7855 test ! -s conftest.err
7856 } && test -s conftest.$ac_objext; then
7857 ac_cv_header_stdc=yes
7859 echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7862 ac_cv_header_stdc=no
7865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 if test $ac_cv_header_stdc = yes; then
7868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7869 cat >conftest.$ac_ext <<_ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7879 $EGREP "memchr" >/dev/null 2>&1; then
7882 ac_cv_header_stdc=no
7888 if test $ac_cv_header_stdc = yes; then
7889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900 $EGREP "free" >/dev/null 2>&1; then
7903 ac_cv_header_stdc=no
7909 if test $ac_cv_header_stdc = yes; then
7910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7911 if test "$cross_compiling" = yes; then
7914 cat >conftest.$ac_ext <<_ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7922 #if ((' ' & 0x0FF) == 0x020)
7923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7926 # define ISLOWER(c) \
7927 (('a' <= (c) && (c) <= 'i') \
7928 || ('j' <= (c) && (c) <= 'r') \
7929 || ('s' <= (c) && (c) <= 'z'))
7930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7938 for (i = 0; i < 256; i++)
7939 if (XOR (islower (i), ISLOWER (i))
7940 || toupper (i) != TOUPPER (i))
7945 rm -f conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_link") 2>&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7956 { (case "(($ac_try" in
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_try") 2>&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7967 echo "$as_me: program exited with status $ac_status" >&5
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7972 ac_cv_header_stdc=no
7974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7980 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7981 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7982 if test $ac_cv_header_stdc = yes; then
7984 cat >>confdefs.h <<\_ACEOF
7985 #define STDC_HEADERS 1
7990 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7991 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7992 if test "${ac_cv_c_const+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 cat >conftest.$ac_ext <<_ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8005 /* FIXME: Include the comments suggested by Paul. */
8007 /* Ultrix mips cc rejects this. */
8008 typedef int charset[2];
8010 /* SunOS 4.1.1 cc rejects this. */
8011 char const *const *pcpcc;
8013 /* NEC SVR4.0.2 mips cc rejects this. */
8014 struct point {int x, y;};
8015 static struct point const zero = {0,0};
8016 /* AIX XL C 1.02.0.0 rejects this.
8017 It does not let you subtract one const X* pointer from another in
8018 an arm of an if-expression whose if-part is not a constant
8020 const char *g = "string";
8021 pcpcc = &g + (g ? g-g : 0);
8022 /* HPUX 7.0 cc rejects these. */
8024 ppc = (char**) pcpcc;
8025 pcpcc = (char const *const *) ppc;
8026 { /* SCO 3.2v4 cc rejects this. */
8028 char const *s = 0 ? (char *) 0 : (char const *) 0;
8033 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8035 const int *foo = &x[0];
8038 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8039 typedef const int *iptr;
8043 { /* AIX XL C 1.02.0.0 rejects this saying
8044 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8045 struct s { int j; const int *ap[3]; };
8046 struct s *b; b->j = 5;
8048 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8052 return !cs[0] && !zero.x;
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_compile") 2>conftest.er1
8068 grep -v '^ *+' conftest.er1 >conftest.err
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } && {
8073 test -z "$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8075 } && test -s conftest.$ac_objext; then
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8087 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8088 if test $ac_cv_c_const = no; then
8090 cat >>confdefs.h <<\_ACEOF
8097 { echo "$as_me:$LINENO: checking for signed" >&5
8098 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8099 if test "${bh_cv_c_signed+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 cat >conftest.$ac_ext <<_ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.$ac_objext; then
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8145 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8146 if test $bh_cv_c_signed = no; then
8148 cat >>confdefs.h <<\_ACEOF
8154 { echo "$as_me:$LINENO: checking for inline" >&5
8155 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8156 if test "${ac_cv_c_inline+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 for ac_kw in inline __inline__ __inline; do
8161 cat >conftest.$ac_ext <<_ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8169 static $ac_kw foo_t static_foo () {return 0; }
8170 $ac_kw foo_t foo () {return 0; }
8174 rm -f conftest.$ac_objext
8175 if { (ac_try="$ac_compile"
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_compile") 2>conftest.er1
8183 grep -v '^ *+' conftest.er1 >conftest.err
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && {
8188 test -z "$ac_c_werror_flag" ||
8189 test ! -s conftest.err
8190 } && test -s conftest.$ac_objext; then
8191 ac_cv_c_inline=$ac_kw
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 test "$ac_cv_c_inline" != no && break
8204 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8205 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8208 case $ac_cv_c_inline in
8211 case $ac_cv_c_inline in
8213 *) ac_val=$ac_cv_c_inline;;
8215 cat >>confdefs.h <<_ACEOF
8217 #define inline $ac_val
8223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8234 inttypes.h stdint.h unistd.h
8236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 $ac_includes_default
8250 #include <$ac_header>
8252 rm -f conftest.$ac_objext
8253 if { (ac_try="$ac_compile"
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 eval "$as_ac_Header=yes"
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 eval "$as_ac_Header=no"
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 ac_res=`eval echo '${'$as_ac_Header'}'`
8280 { echo "$as_me:$LINENO: result: $ac_res" >&5
8281 echo "${ECHO_T}$ac_res" >&6; }
8282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8283 cat >>confdefs.h <<_ACEOF
8284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8292 { echo "$as_me:$LINENO: checking for off_t" >&5
8293 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8294 if test "${ac_cv_type_off_t+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 cat >conftest.$ac_ext <<_ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 $ac_includes_default
8304 typedef off_t ac__type_new_;
8308 if ((ac__type_new_ *) 0)
8310 if (sizeof (ac__type_new_))
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8333 ac_cv_type_off_t=yes
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8344 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8345 if test $ac_cv_type_off_t = yes; then
8349 cat >>confdefs.h <<_ACEOF
8350 #define off_t long int
8355 { echo "$as_me:$LINENO: checking for size_t" >&5
8356 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8357 if test "${ac_cv_type_size_t+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 cat >conftest.$ac_ext <<_ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8366 $ac_includes_default
8367 typedef size_t ac__type_new_;
8371 if ((ac__type_new_ *) 0)
8373 if (sizeof (ac__type_new_))
8379 rm -f conftest.$ac_objext
8380 if { (ac_try="$ac_compile"
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_compile") 2>conftest.er1
8388 grep -v '^ *+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && {
8393 test -z "$ac_c_werror_flag" ||
8394 test ! -s conftest.err
8395 } && test -s conftest.$ac_objext; then
8396 ac_cv_type_size_t=yes
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 ac_cv_type_size_t=no
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8407 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8408 if test $ac_cv_type_size_t = yes; then
8412 cat >>confdefs.h <<_ACEOF
8413 #define size_t unsigned int
8419 { echo "$as_me:$LINENO: checking for long long" >&5
8420 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8421 if test "${ac_cv_type_long_long+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 long long ll = 1LL; int i = 63;
8434 long long llmax = (long long) -1;
8435 return ll << i | ll >> i | llmax / ll | llmax % ll;
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_link") 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_c_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest$ac_exeext &&
8457 $as_test_x conftest$ac_exeext; then
8458 ac_cv_type_long_long=yes
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_cv_type_long_long=no
8466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8467 conftest$ac_exeext conftest.$ac_ext
8469 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8470 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8471 if test $ac_cv_type_long_long = yes; then
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_LONG_LONG 1
8480 { echo "$as_me:$LINENO: checking for long double" >&5
8481 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8482 if test "${gt_cv_c_long_double+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 if test "$GCC" = yes; then
8486 gt_cv_c_long_double=yes
8488 cat >conftest.$ac_ext <<_ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8495 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8496 long double foo = 0.0;
8497 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8498 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8517 grep -v '^ *+' conftest.er1 >conftest.err
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.$ac_objext; then
8525 gt_cv_c_long_double=yes
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8530 gt_cv_c_long_double=no
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8537 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8538 if test $gt_cv_c_long_double = yes; then
8540 cat >>confdefs.h <<\_ACEOF
8541 #define HAVE_LONG_DOUBLE 1
8547 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8548 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8549 if test "${gt_cv_c_wchar_t+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 cat >conftest.$ac_ext <<_ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8559 wchar_t foo = (wchar_t)'\0';
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8596 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8597 if test $gt_cv_c_wchar_t = yes; then
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_WCHAR_T 1
8606 { echo "$as_me:$LINENO: checking for wint_t" >&5
8607 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8608 if test "${gt_cv_c_wint_t+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8618 wint_t foo = (wchar_t)'\0';
8627 rm -f conftest.$ac_objext
8628 if { (ac_try="$ac_compile"
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8636 grep -v '^ *+' conftest.er1 >conftest.err
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_c_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.$ac_objext; then
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8655 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8656 if test $gt_cv_c_wint_t = yes; then
8658 cat >>confdefs.h <<\_ACEOF
8659 #define HAVE_WINT_T 1
8665 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8666 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8667 if test "${gl_cv_header_inttypes_h+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 #include <sys/types.h>
8677 #include <inttypes.h>
8681 uintmax_t i = (uintmax_t) -1;
8686 rm -f conftest.$ac_objext
8687 if { (ac_try="$ac_compile"
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693 (eval "$ac_compile") 2>conftest.er1
8695 grep -v '^ *+' conftest.er1 >conftest.err
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } && {
8700 test -z "$ac_c_werror_flag" ||
8701 test ! -s conftest.err
8702 } && test -s conftest.$ac_objext; then
8703 gl_cv_header_inttypes_h=yes
8705 echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8708 gl_cv_header_inttypes_h=no
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8714 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8715 if test $gl_cv_header_inttypes_h = yes; then
8717 cat >>confdefs.h <<_ACEOF
8718 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8724 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8725 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8726 if test "${gl_cv_header_stdint_h+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 #include <sys/types.h>
8740 uintmax_t i = (uintmax_t) -1;
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_compile") 2>conftest.er1
8754 grep -v '^ *+' conftest.er1 >conftest.err
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } && {
8759 test -z "$ac_c_werror_flag" ||
8760 test ! -s conftest.err
8761 } && test -s conftest.$ac_objext; then
8762 gl_cv_header_stdint_h=yes
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8767 gl_cv_header_stdint_h=no
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8773 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8774 if test $gl_cv_header_stdint_h = yes; then
8776 cat >>confdefs.h <<_ACEOF
8777 #define HAVE_STDINT_H_WITH_UINTMAX 1
8785 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8786 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8787 if test "${gt_cv_c_intmax_t+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 cat >conftest.$ac_ext <<_ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8799 #if HAVE_STDINT_H_WITH_UINTMAX
8802 #if HAVE_INTTYPES_H_WITH_UINTMAX
8803 #include <inttypes.h>
8814 rm -f conftest.$ac_objext
8815 if { (ac_try="$ac_compile"
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_compile") 2>conftest.er1
8823 grep -v '^ *+' conftest.er1 >conftest.err
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest.$ac_objext; then
8831 gt_cv_c_intmax_t=yes
8833 echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8841 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8842 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8843 if test $gt_cv_c_intmax_t = yes; then
8845 cat >>confdefs.h <<\_ACEOF
8846 #define HAVE_INTMAX_T 1
8853 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8854 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8855 if test "${gt_cv_func_printf_posix+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 if test "$cross_compiling" = yes; then
8861 cat >conftest.$ac_ext <<_ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8868 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8874 $EGREP "notposix" >/dev/null 2>&1; then
8875 gt_cv_func_printf_posix="guessing no"
8877 gt_cv_func_printf_posix="guessing yes"
8883 cat >conftest.$ac_ext <<_ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8892 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8893 dollar expansion (possibly an autoconf bug). */
8894 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8895 static char buf[100];
8898 sprintf (buf, format, 33, 55);
8899 return (strcmp (buf, "55 33") != 0);
8902 rm -f conftest$ac_exeext
8903 if { (ac_try="$ac_link"
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_link") 2>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8913 { (case "(($ac_try" in
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_try") 2>&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 gt_cv_func_printf_posix=yes
8924 echo "$as_me: program exited with status $ac_status" >&5
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8929 gt_cv_func_printf_posix=no
8931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8937 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8938 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8939 case $gt_cv_func_printf_posix in
8942 cat >>confdefs.h <<\_ACEOF
8943 #define HAVE_POSIX_PRINTF 1
8949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8950 # for constant arguments. Useless!
8951 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8952 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8953 if test "${ac_cv_working_alloca_h+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 cat >conftest.$ac_ext <<_ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8966 char *p = (char *) alloca (2 * sizeof (int));
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (ac_try="$ac_link"
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_link") 2>conftest.er1
8981 grep -v '^ *+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest$ac_exeext &&
8989 $as_test_x conftest$ac_exeext; then
8990 ac_cv_working_alloca_h=yes
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_working_alloca_h=no
8998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999 conftest$ac_exeext conftest.$ac_ext
9001 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9002 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9003 if test $ac_cv_working_alloca_h = yes; then
9005 cat >>confdefs.h <<\_ACEOF
9006 #define HAVE_ALLOCA_H 1
9011 { echo "$as_me:$LINENO: checking for alloca" >&5
9012 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9013 if test "${ac_cv_func_alloca_works+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 cat >conftest.$ac_ext <<_ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9023 # define alloca __builtin_alloca
9026 # include <malloc.h>
9027 # define alloca _alloca
9029 # ifdef HAVE_ALLOCA_H
9030 # include <alloca.h>
9035 # ifndef alloca /* predefined by HP cc +Olibcalls */
9046 char *p = (char *) alloca (1);
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (ac_try="$ac_link"
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_link") 2>conftest.er1
9061 grep -v '^ *+' conftest.er1 >conftest.err
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } && {
9066 test -z "$ac_c_werror_flag" ||
9067 test ! -s conftest.err
9068 } && test -s conftest$ac_exeext &&
9069 $as_test_x conftest$ac_exeext; then
9070 ac_cv_func_alloca_works=yes
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9075 ac_cv_func_alloca_works=no
9078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9079 conftest$ac_exeext conftest.$ac_ext
9081 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9082 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9084 if test $ac_cv_func_alloca_works = yes; then
9086 cat >>confdefs.h <<\_ACEOF
9087 #define HAVE_ALLOCA 1
9091 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9092 # that cause trouble. Some versions do not even contain alloca or
9093 # contain a buggy version. If you still want to use their alloca,
9094 # use ar to extract alloca.o from them instead of compiling alloca.c.
9096 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9098 cat >>confdefs.h <<\_ACEOF
9103 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9104 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9105 if test "${ac_cv_os_cray+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 #if defined CRAY && ! defined CRAY2
9121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9122 $EGREP "webecray" >/dev/null 2>&1; then
9130 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9131 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9132 if test $ac_cv_os_cray = yes; then
9133 for ac_func in _getb67 GETB67 getb67; do
9134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 cat >conftest.$ac_ext <<_ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9148 #define $ac_func innocuous_$ac_func
9150 /* System header to define __stub macros and hopefully few prototypes,
9151 which can conflict with char $ac_func (); below.
9152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9153 <limits.h> exists even on freestanding compilers. */
9156 # include <limits.h>
9158 # include <assert.h>
9163 /* Override any GCC internal prototype to avoid an error.
9164 Use char because int might match the return type of a GCC
9165 builtin and then its argument prototype would still apply. */
9170 /* The GNU C library defines this for functions which it implements
9171 to always fail with ENOSYS. Some functions are actually named
9172 something starting with __ and the normal name is an alias. */
9173 #if defined __stub_$ac_func || defined __stub___$ac_func
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_link") 2>conftest.er1
9194 grep -v '^ *+' conftest.er1 >conftest.err
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } && {
9199 test -z "$ac_c_werror_flag" ||
9200 test ! -s conftest.err
9201 } && test -s conftest$ac_exeext &&
9202 $as_test_x conftest$ac_exeext; then
9203 eval "$as_ac_var=yes"
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9208 eval "$as_ac_var=no"
9211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212 conftest$ac_exeext conftest.$ac_ext
9214 ac_res=`eval echo '${'$as_ac_var'}'`
9215 { echo "$as_me:$LINENO: result: $ac_res" >&5
9216 echo "${ECHO_T}$ac_res" >&6; }
9217 if test `eval echo '${'$as_ac_var'}'` = yes; then
9219 cat >>confdefs.h <<_ACEOF
9220 #define CRAY_STACKSEG_END $ac_func
9229 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9230 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9231 if test "${ac_cv_c_stack_direction+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 if test "$cross_compiling" = yes; then
9235 ac_cv_c_stack_direction=0
9237 cat >conftest.$ac_ext <<_ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243 $ac_includes_default
9245 find_stack_direction ()
9247 static char *addr = 0;
9252 return find_stack_direction ();
9255 return (&dummy > addr) ? 1 : -1;
9261 return find_stack_direction () < 0;
9264 rm -f conftest$ac_exeext
9265 if { (ac_try="$ac_link"
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_link") 2>&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9275 { (case "(($ac_try" in
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_try") 2>&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 ac_cv_c_stack_direction=1
9286 echo "$as_me: program exited with status $ac_status" >&5
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_cv_c_stack_direction=-1
9293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9298 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9299 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9301 cat >>confdefs.h <<_ACEOF
9302 #define STACK_DIRECTION $ac_cv_c_stack_direction
9310 for ac_header in stdlib.h unistd.h
9312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 ac_res=`eval echo '${'$as_ac_Header'}'`
9320 { echo "$as_me:$LINENO: result: $ac_res" >&5
9321 echo "${ECHO_T}$ac_res" >&6; }
9323 # Is the header compilable?
9324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9326 cat >conftest.$ac_ext <<_ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 $ac_includes_default
9333 #include <$ac_header>
9335 rm -f conftest.$ac_objext
9336 if { (ac_try="$ac_compile"
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_compile") 2>conftest.er1
9344 grep -v '^ *+' conftest.er1 >conftest.err
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest.$ac_objext; then
9352 ac_header_compiler=yes
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9357 ac_header_compiler=no
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9362 echo "${ECHO_T}$ac_header_compiler" >&6; }
9364 # Is the header present?
9365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9367 cat >conftest.$ac_ext <<_ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 #include <$ac_header>
9375 if { (ac_try="$ac_cpp conftest.$ac_ext"
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9383 grep -v '^ *+' conftest.er1 >conftest.err
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } >/dev/null && {
9388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9391 ac_header_preproc=yes
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_header_preproc=no
9399 rm -f conftest.err conftest.$ac_ext
9400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9401 echo "${ECHO_T}$ac_header_preproc" >&6; }
9403 # So? What about this header?
9404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9410 ac_header_preproc=yes
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 eval "$as_ac_Header=\$ac_header_preproc"
9435 ac_res=`eval echo '${'$as_ac_Header'}'`
9436 { echo "$as_me:$LINENO: result: $ac_res" >&5
9437 echo "${ECHO_T}$ac_res" >&6; }
9440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9441 cat >>confdefs.h <<_ACEOF
9442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9450 for ac_func in getpagesize
9452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 cat >conftest.$ac_ext <<_ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9466 #define $ac_func innocuous_$ac_func
9468 /* System header to define __stub macros and hopefully few prototypes,
9469 which can conflict with char $ac_func (); below.
9470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9471 <limits.h> exists even on freestanding compilers. */
9474 # include <limits.h>
9476 # include <assert.h>
9481 /* Override any GCC internal prototype to avoid an error.
9482 Use char because int might match the return type of a GCC
9483 builtin and then its argument prototype would still apply. */
9488 /* The GNU C library defines this for functions which it implements
9489 to always fail with ENOSYS. Some functions are actually named
9490 something starting with __ and the normal name is an alias. */
9491 #if defined __stub_$ac_func || defined __stub___$ac_func
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>conftest.er1
9512 grep -v '^ *+' conftest.er1 >conftest.err
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } && {
9517 test -z "$ac_c_werror_flag" ||
9518 test ! -s conftest.err
9519 } && test -s conftest$ac_exeext &&
9520 $as_test_x conftest$ac_exeext; then
9521 eval "$as_ac_var=yes"
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 eval "$as_ac_var=no"
9529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9530 conftest$ac_exeext conftest.$ac_ext
9532 ac_res=`eval echo '${'$as_ac_var'}'`
9533 { echo "$as_me:$LINENO: result: $ac_res" >&5
9534 echo "${ECHO_T}$ac_res" >&6; }
9535 if test `eval echo '${'$as_ac_var'}'` = yes; then
9536 cat >>confdefs.h <<_ACEOF
9537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9543 { echo "$as_me:$LINENO: checking for working mmap" >&5
9544 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9545 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 if test "$cross_compiling" = yes; then
9549 ac_cv_func_mmap_fixed_mapped=no
9551 cat >conftest.$ac_ext <<_ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9557 $ac_includes_default
9558 /* malloc might have been renamed as rpl_malloc. */
9561 /* Thanks to Mike Haertel and Jim Avera for this test.
9562 Here is a matrix of mmap possibilities:
9563 mmap private not fixed
9564 mmap private fixed at somewhere currently unmapped
9565 mmap private fixed at somewhere already mapped
9566 mmap shared not fixed
9567 mmap shared fixed at somewhere currently unmapped
9568 mmap shared fixed at somewhere already mapped
9569 For private mappings, we should verify that changes cannot be read()
9570 back from the file, nor mmap's back from the file at a different
9571 address. (There have been systems where private was not correctly
9572 implemented like the infamous i386 svr4.0, and systems where the
9573 VM page cache was not coherent with the file system buffer cache
9574 like early versions of FreeBSD and possibly contemporary NetBSD.)
9575 For shared mappings, we should conversely verify that changes get
9576 propagated back to all the places they're supposed to be.
9578 Grep wants private fixed already mapped.
9579 The main things grep needs to know about mmap are:
9580 * does it exist and is it safe to write into the mmap'd area
9581 * how to use it (BSD variants) */
9584 #include <sys/mman.h>
9586 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9590 /* This mess was copied from the GNU getpagesize.h. */
9591 #ifndef HAVE_GETPAGESIZE
9592 /* Assume that all systems that can run configure have sys/param.h. */
9593 # ifndef HAVE_SYS_PARAM_H
9594 # define HAVE_SYS_PARAM_H 1
9597 # ifdef _SC_PAGESIZE
9598 # define getpagesize() sysconf(_SC_PAGESIZE)
9599 # else /* no _SC_PAGESIZE */
9600 # ifdef HAVE_SYS_PARAM_H
9601 # include <sys/param.h>
9602 # ifdef EXEC_PAGESIZE
9603 # define getpagesize() EXEC_PAGESIZE
9604 # else /* no EXEC_PAGESIZE */
9606 # define getpagesize() NBPG * CLSIZE
9609 # endif /* no CLSIZE */
9610 # else /* no NBPG */
9612 # define getpagesize() NBPC
9613 # else /* no NBPC */
9615 # define getpagesize() PAGESIZE
9616 # endif /* PAGESIZE */
9617 # endif /* no NBPC */
9618 # endif /* no NBPG */
9619 # endif /* no EXEC_PAGESIZE */
9620 # else /* no HAVE_SYS_PARAM_H */
9621 # define getpagesize() 8192 /* punt totally */
9622 # endif /* no HAVE_SYS_PARAM_H */
9623 # endif /* no _SC_PAGESIZE */
9625 #endif /* no HAVE_GETPAGESIZE */
9630 char *data, *data2, *data3;
9634 pagesize = getpagesize ();
9636 /* First, make a file with some known garbage in it. */
9637 data = (char *) malloc (pagesize);
9640 for (i = 0; i < pagesize; ++i)
9641 *(data + i) = rand ();
9643 fd = creat ("conftest.mmap", 0600);
9646 if (write (fd, data, pagesize) != pagesize)
9650 /* Next, try to mmap the file at a fixed address which already has
9651 something else allocated at it. If we can, also make sure that
9652 we see the same garbage. */
9653 fd = open ("conftest.mmap", O_RDWR);
9656 data2 = (char *) malloc (2 * pagesize);
9659 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9660 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9661 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9663 for (i = 0; i < pagesize; ++i)
9664 if (*(data + i) != *(data2 + i))
9667 /* Finally, make sure that changes to the mapped area do not
9668 percolate back to the file as seen by read(). (This is a bug on
9669 some variants of i386 svr4.0.) */
9670 for (i = 0; i < pagesize; ++i)
9671 *(data2 + i) = *(data2 + i) + 1;
9672 data3 = (char *) malloc (pagesize);
9675 if (read (fd, data3, pagesize) != pagesize)
9677 for (i = 0; i < pagesize; ++i)
9678 if (*(data + i) != *(data3 + i))
9684 rm -f conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_link") 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9695 { (case "(($ac_try" in
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_try") 2>&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_func_mmap_fixed_mapped=yes
9706 echo "$as_me: program exited with status $ac_status" >&5
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9711 ac_cv_func_mmap_fixed_mapped=no
9713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9718 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9719 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9720 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9722 cat >>confdefs.h <<\_ACEOF
9730 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9731 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9732 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9742 #include <features.h>
9743 #ifdef __GNU_LIBRARY__
9744 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9751 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9752 ac_cv_gnu_library_2_1=yes
9754 ac_cv_gnu_library_2_1=no
9761 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9762 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9764 GLIBC21="$ac_cv_gnu_library_2_1"
9769 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9770 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9771 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 if test "$cross_compiling" = yes; then
9777 # Guess based on the CPU.
9779 alpha* | i3456786 | m68k | s390*)
9780 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9782 gt_cv_int_divbyzero_sigfpe="guessing no";;
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9798 sigfpe_handler (int sig)
9800 sigfpe_handler (sig) int sig;
9803 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9804 exit (sig != SIGFPE);
9814 signal (SIGFPE, sigfpe_handler);
9815 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9816 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9817 signal (SIGTRAP, sigfpe_handler);
9819 /* Linux/SPARC yields signal SIGILL. */
9820 #if defined (__sparc__) && defined (__linux__)
9821 signal (SIGILL, sigfpe_handler);
9830 rm -f conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9841 { (case "(($ac_try" in
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_try") 2>&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 gt_cv_int_divbyzero_sigfpe=yes
9852 echo "$as_me: program exited with status $ac_status" >&5
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9857 gt_cv_int_divbyzero_sigfpe=no
9859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9865 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9866 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9867 case "$gt_cv_int_divbyzero_sigfpe" in
9872 cat >>confdefs.h <<_ACEOF
9873 #define INTDIV0_RAISES_SIGFPE $value
9878 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9879 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9880 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 unsigned long long ull = 1ULL; int i = 63;
9893 unsigned long long ullmax = (unsigned long long) -1;
9894 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9899 rm -f conftest.$ac_objext conftest$ac_exeext
9900 if { (ac_try="$ac_link"
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_link") 2>conftest.er1
9908 grep -v '^ *+' conftest.er1 >conftest.err
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } && {
9913 test -z "$ac_c_werror_flag" ||
9914 test ! -s conftest.err
9915 } && test -s conftest$ac_exeext &&
9916 $as_test_x conftest$ac_exeext; then
9917 ac_cv_type_unsigned_long_long=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_cv_type_unsigned_long_long=no
9925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9926 conftest$ac_exeext conftest.$ac_ext
9928 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9929 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9930 if test $ac_cv_type_unsigned_long_long = yes; then
9932 cat >>confdefs.h <<\_ACEOF
9933 #define HAVE_UNSIGNED_LONG_LONG 1
9941 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9943 test $ac_cv_type_unsigned_long_long = yes \
9944 && ac_type='unsigned long long' \
9945 || ac_type='unsigned long'
9947 cat >>confdefs.h <<_ACEOF
9948 #define uintmax_t $ac_type
9953 cat >>confdefs.h <<\_ACEOF
9954 #define HAVE_UINTMAX_T 1
9960 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9961 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9962 if test "${gt_cv_header_inttypes_h+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 cat >conftest.$ac_ext <<_ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9972 #include <sys/types.h>
9973 #include <inttypes.h>
9982 rm -f conftest.$ac_objext
9983 if { (ac_try="$ac_compile"
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_compile") 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } && {
9996 test -z "$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 } && test -s conftest.$ac_objext; then
9999 gt_cv_header_inttypes_h=yes
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 gt_cv_header_inttypes_h=no
10007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10011 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10012 if test $gt_cv_header_inttypes_h = yes; then
10014 cat >>confdefs.h <<_ACEOF
10015 #define HAVE_INTTYPES_H 1
10022 if test $gt_cv_header_inttypes_h = yes; then
10023 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10024 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10025 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 #include <inttypes.h>
10048 rm -f conftest.$ac_objext
10049 if { (ac_try="$ac_compile"
10050 case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_compile") 2>conftest.er1
10057 grep -v '^ *+' conftest.er1 >conftest.err
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } && {
10062 test -z "$ac_c_werror_flag" ||
10063 test ! -s conftest.err
10064 } && test -s conftest.$ac_objext; then
10065 gt_cv_inttypes_pri_broken=no
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10070 gt_cv_inttypes_pri_broken=yes
10073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10077 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10079 if test "$gt_cv_inttypes_pri_broken" = yes; then
10081 cat >>confdefs.h <<_ACEOF
10082 #define PRI_MACROS_BROKEN 1
10089 for ac_header in stdint.h
10091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 ac_res=`eval echo '${'$as_ac_Header'}'`
10099 { echo "$as_me:$LINENO: result: $ac_res" >&5
10100 echo "${ECHO_T}$ac_res" >&6; }
10102 # Is the header compilable?
10103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10105 cat >conftest.$ac_ext <<_ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111 $ac_includes_default
10112 #include <$ac_header>
10114 rm -f conftest.$ac_objext
10115 if { (ac_try="$ac_compile"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_compile") 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && {
10128 test -z "$ac_c_werror_flag" ||
10129 test ! -s conftest.err
10130 } && test -s conftest.$ac_objext; then
10131 ac_header_compiler=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_header_compiler=no
10139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10141 echo "${ECHO_T}$ac_header_compiler" >&6; }
10143 # Is the header present?
10144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10146 cat >conftest.$ac_ext <<_ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10152 #include <$ac_header>
10154 if { (ac_try="$ac_cpp conftest.$ac_ext"
10155 case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10162 grep -v '^ *+' conftest.er1 >conftest.err
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } >/dev/null && {
10167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10168 test ! -s conftest.err
10170 ac_header_preproc=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ac_header_preproc=no
10178 rm -f conftest.err conftest.$ac_ext
10179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10180 echo "${ECHO_T}$ac_header_preproc" >&6; }
10182 # So? What about this header?
10183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10189 ac_header_preproc=yes
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 eval "$as_ac_Header=\$ac_header_preproc"
10214 ac_res=`eval echo '${'$as_ac_Header'}'`
10215 { echo "$as_me:$LINENO: result: $ac_res" >&5
10216 echo "${ECHO_T}$ac_res" >&6; }
10219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10228 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10229 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10238 #include <limits.h>
10240 #include <stdint.h>
10247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10248 $EGREP "Found it" >/dev/null 2>&1; then
10253 if test -z "$result"; then
10254 if test "$cross_compiling" = yes; then
10255 # Depending upon the size, compute the lo and hi bounds.
10256 cat >conftest.$ac_ext <<_ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 #include <stddef.h>
10266 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10273 rm -f conftest.$ac_objext
10274 if { (ac_try="$ac_compile"
10275 case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_compile") 2>conftest.er1
10282 grep -v '^ *+' conftest.er1 >conftest.err
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } && {
10287 test -z "$ac_c_werror_flag" ||
10288 test ! -s conftest.err
10289 } && test -s conftest.$ac_objext; then
10292 cat >conftest.$ac_ext <<_ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 #include <stddef.h>
10302 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10309 rm -f conftest.$ac_objext
10310 if { (ac_try="$ac_compile"
10311 case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_compile") 2>conftest.er1
10318 grep -v '^ *+' conftest.er1 >conftest.err
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && {
10323 test -z "$ac_c_werror_flag" ||
10324 test ! -s conftest.err
10325 } && test -s conftest.$ac_objext; then
10326 ac_hi=$ac_mid; break
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 ac_lo=`expr $ac_mid + 1`
10332 if test $ac_lo -le $ac_mid; then
10336 ac_mid=`expr 2 '*' $ac_mid + 1`
10339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 cat >conftest.$ac_ext <<_ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10351 #include <stddef.h>
10355 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10362 rm -f conftest.$ac_objext
10363 if { (ac_try="$ac_compile"
10364 case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_compile") 2>conftest.er1
10371 grep -v '^ *+' conftest.er1 >conftest.err
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } && {
10376 test -z "$ac_c_werror_flag" ||
10377 test ! -s conftest.err
10378 } && test -s conftest.$ac_objext; then
10381 cat >conftest.$ac_ext <<_ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387 #include <stddef.h>
10391 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10398 rm -f conftest.$ac_objext
10399 if { (ac_try="$ac_compile"
10400 case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_compile") 2>conftest.er1
10407 grep -v '^ *+' conftest.er1 >conftest.err
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && {
10412 test -z "$ac_c_werror_flag" ||
10413 test ! -s conftest.err
10414 } && test -s conftest.$ac_objext; then
10415 ac_lo=$ac_mid; break
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 ac_hi=`expr '(' $ac_mid ')' - 1`
10421 if test $ac_mid -le $ac_hi; then
10425 ac_mid=`expr 2 '*' $ac_mid`
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 # Binary search between lo and hi bounds.
10442 while test "x$ac_lo" != "x$ac_hi"; do
10443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 #include <stddef.h>
10454 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10461 rm -f conftest.$ac_objext
10462 if { (ac_try="$ac_compile"
10463 case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_compile") 2>conftest.er1
10470 grep -v '^ *+' conftest.er1 >conftest.err
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } && {
10475 test -z "$ac_c_werror_flag" ||
10476 test ! -s conftest.err
10477 } && test -s conftest.$ac_objext; then
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ac_lo=`expr '(' $ac_mid ')' + 1`
10486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10489 ?*) res_hi=$ac_lo;;
10493 cat >conftest.$ac_ext <<_ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 #include <stddef.h>
10500 static long int longval () { return ~(size_t)0 / 10; }
10501 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10503 #include <stdlib.h>
10508 FILE *f = fopen ("conftest.val", "w");
10511 if ((~(size_t)0 / 10) < 0)
10513 long int i = longval ();
10514 if (i != (~(size_t)0 / 10))
10516 fprintf (f, "%ld\n", i);
10520 unsigned long int i = ulongval ();
10521 if (i != (~(size_t)0 / 10))
10523 fprintf (f, "%lu\n", i);
10525 return ferror (f) || fclose (f) != 0;
10531 rm -f conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_link") 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 res_hi=`cat conftest.val`
10553 echo "$as_me: program exited with status $ac_status" >&5
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ( exit $ac_status )
10560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10564 if test "$cross_compiling" = yes; then
10565 # Depending upon the size, compute the lo and hi bounds.
10566 cat >conftest.$ac_ext <<_ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 #include <stddef.h>
10576 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10583 rm -f conftest.$ac_objext
10584 if { (ac_try="$ac_compile"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_compile") 2>conftest.er1
10592 grep -v '^ *+' conftest.er1 >conftest.err
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && {
10597 test -z "$ac_c_werror_flag" ||
10598 test ! -s conftest.err
10599 } && test -s conftest.$ac_objext; then
10602 cat >conftest.$ac_ext <<_ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 #include <stddef.h>
10612 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10619 rm -f conftest.$ac_objext
10620 if { (ac_try="$ac_compile"
10621 case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_compile") 2>conftest.er1
10628 grep -v '^ *+' conftest.er1 >conftest.err
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } && {
10633 test -z "$ac_c_werror_flag" ||
10634 test ! -s conftest.err
10635 } && test -s conftest.$ac_objext; then
10636 ac_hi=$ac_mid; break
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10641 ac_lo=`expr $ac_mid + 1`
10642 if test $ac_lo -le $ac_mid; then
10646 ac_mid=`expr 2 '*' $ac_mid + 1`
10649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 cat >conftest.$ac_ext <<_ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 #include <stddef.h>
10665 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10672 rm -f conftest.$ac_objext
10673 if { (ac_try="$ac_compile"
10674 case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_compile") 2>conftest.er1
10681 grep -v '^ *+' conftest.er1 >conftest.err
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && {
10686 test -z "$ac_c_werror_flag" ||
10687 test ! -s conftest.err
10688 } && test -s conftest.$ac_objext; then
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 #include <stddef.h>
10701 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_compile") 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } && {
10722 test -z "$ac_c_werror_flag" ||
10723 test ! -s conftest.err
10724 } && test -s conftest.$ac_objext; then
10725 ac_lo=$ac_mid; break
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_hi=`expr '(' $ac_mid ')' - 1`
10731 if test $ac_mid -le $ac_hi; then
10735 ac_mid=`expr 2 '*' $ac_mid`
10738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 # Binary search between lo and hi bounds.
10752 while test "x$ac_lo" != "x$ac_hi"; do
10753 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10754 cat >conftest.$ac_ext <<_ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 #include <stddef.h>
10764 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10771 rm -f conftest.$ac_objext
10772 if { (ac_try="$ac_compile"
10773 case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_compile") 2>conftest.er1
10780 grep -v '^ *+' conftest.er1 >conftest.err
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } && {
10785 test -z "$ac_c_werror_flag" ||
10786 test ! -s conftest.err
10787 } && test -s conftest.$ac_objext; then
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_lo=`expr '(' $ac_mid ')' + 1`
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 ?*) res_lo=$ac_lo;;
10803 cat >conftest.$ac_ext <<_ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 #include <stddef.h>
10810 static long int longval () { return ~(size_t)0 % 10; }
10811 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10813 #include <stdlib.h>
10818 FILE *f = fopen ("conftest.val", "w");
10821 if ((~(size_t)0 % 10) < 0)
10823 long int i = longval ();
10824 if (i != (~(size_t)0 % 10))
10826 fprintf (f, "%ld\n", i);
10830 unsigned long int i = ulongval ();
10831 if (i != (~(size_t)0 % 10))
10833 fprintf (f, "%lu\n", i);
10835 return ferror (f) || fclose (f) != 0;
10841 rm -f conftest$ac_exeext
10842 if { (ac_try="$ac_link"
10843 case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_link") 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 res_lo=`cat conftest.val`
10863 echo "$as_me: program exited with status $ac_status" >&5
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ( exit $ac_status )
10870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10874 if test "$cross_compiling" = yes; then
10875 # Depending upon the size, compute the lo and hi bounds.
10876 cat >conftest.$ac_ext <<_ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <stddef.h>
10886 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10893 rm -f conftest.$ac_objext
10894 if { (ac_try="$ac_compile"
10895 case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_compile") 2>conftest.er1
10902 grep -v '^ *+' conftest.er1 >conftest.err
10904 cat conftest.err >&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); } && {
10907 test -z "$ac_c_werror_flag" ||
10908 test ! -s conftest.err
10909 } && test -s conftest.$ac_objext; then
10912 cat >conftest.$ac_ext <<_ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 #include <stddef.h>
10922 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
10931 case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_compile") 2>conftest.er1
10938 grep -v '^ *+' conftest.er1 >conftest.err
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } && {
10943 test -z "$ac_c_werror_flag" ||
10944 test ! -s conftest.err
10945 } && test -s conftest.$ac_objext; then
10946 ac_hi=$ac_mid; break
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 ac_lo=`expr $ac_mid + 1`
10952 if test $ac_lo -le $ac_mid; then
10956 ac_mid=`expr 2 '*' $ac_mid + 1`
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 #include <stddef.h>
10975 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10982 rm -f conftest.$ac_objext
10983 if { (ac_try="$ac_compile"
10984 case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_compile") 2>conftest.er1
10991 grep -v '^ *+' conftest.er1 >conftest.err
10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && {
10996 test -z "$ac_c_werror_flag" ||
10997 test ! -s conftest.err
10998 } && test -s conftest.$ac_objext; then
11001 cat >conftest.$ac_ext <<_ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 #include <stddef.h>
11011 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11018 rm -f conftest.$ac_objext
11019 if { (ac_try="$ac_compile"
11020 case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_compile") 2>conftest.er1
11027 grep -v '^ *+' conftest.er1 >conftest.err
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } && {
11032 test -z "$ac_c_werror_flag" ||
11033 test ! -s conftest.err
11034 } && test -s conftest.$ac_objext; then
11035 ac_lo=$ac_mid; break
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_hi=`expr '(' $ac_mid ')' - 1`
11041 if test $ac_mid -le $ac_hi; then
11045 ac_mid=`expr 2 '*' $ac_mid`
11048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 # Binary search between lo and hi bounds.
11062 while test "x$ac_lo" != "x$ac_hi"; do
11063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11064 cat >conftest.$ac_ext <<_ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #include <stddef.h>
11074 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11081 rm -f conftest.$ac_objext
11082 if { (ac_try="$ac_compile"
11083 case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_compile") 2>conftest.er1
11090 grep -v '^ *+' conftest.er1 >conftest.err
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } && {
11095 test -z "$ac_c_werror_flag" ||
11096 test ! -s conftest.err
11097 } && test -s conftest.$ac_objext; then
11100 echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11103 ac_lo=`expr '(' $ac_mid ')' + 1`
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 ?*) fits_in_uint=$ac_lo;;
11113 cat >conftest.$ac_ext <<_ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119 #include <stddef.h>
11120 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11121 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11123 #include <stdlib.h>
11128 FILE *f = fopen ("conftest.val", "w");
11131 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11133 long int i = longval ();
11134 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11136 fprintf (f, "%ld\n", i);
11140 unsigned long int i = ulongval ();
11141 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11143 fprintf (f, "%lu\n", i);
11145 return ferror (f) || fclose (f) != 0;
11151 rm -f conftest$ac_exeext
11152 if { (ac_try="$ac_link"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_link") 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 fits_in_uint=`cat conftest.val`
11173 echo "$as_me: program exited with status $ac_status" >&5
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11177 ( exit $ac_status )
11180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11184 if test "$fits_in_uint" = 1; then
11185 cat >conftest.$ac_ext <<_ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 #include <stddef.h>
11193 extern unsigned long foo;
11203 rm -f conftest.$ac_objext
11204 if { (ac_try="$ac_compile"
11205 case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_compile") 2>conftest.er1
11212 grep -v '^ *+' conftest.er1 >conftest.err
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && {
11217 test -z "$ac_c_werror_flag" ||
11218 test ! -s conftest.err
11219 } && test -s conftest.$ac_objext; then
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11230 if test -z "$result"; then
11231 if test "$fits_in_uint" = 1; then
11232 result="$res_hi$res_lo"U
11234 result="$res_hi$res_lo"UL
11237 result='~(size_t)0'
11240 { echo "$as_me:$LINENO: result: $result" >&5
11241 echo "${ECHO_T}$result" >&6; }
11242 if test "$result" != yes; then
11244 cat >>confdefs.h <<_ACEOF
11245 #define SIZE_MAX $result
11254 for ac_header in stdint.h
11256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 ac_res=`eval echo '${'$as_ac_Header'}'`
11264 { echo "$as_me:$LINENO: result: $ac_res" >&5
11265 echo "${ECHO_T}$ac_res" >&6; }
11267 # Is the header compilable?
11268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11270 cat >conftest.$ac_ext <<_ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11276 $ac_includes_default
11277 #include <$ac_header>
11279 rm -f conftest.$ac_objext
11280 if { (ac_try="$ac_compile"
11281 case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_compile") 2>conftest.er1
11288 grep -v '^ *+' conftest.er1 >conftest.err
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && {
11293 test -z "$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest.$ac_objext; then
11296 ac_header_compiler=yes
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_header_compiler=no
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11306 echo "${ECHO_T}$ac_header_compiler" >&6; }
11308 # Is the header present?
11309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 #include <$ac_header>
11319 if { (ac_try="$ac_cpp conftest.$ac_ext"
11320 case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11327 grep -v '^ *+' conftest.er1 >conftest.err
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } >/dev/null && {
11332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11333 test ! -s conftest.err
11335 ac_header_preproc=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_preproc=no
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11347 # So? What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354 ac_header_preproc=yes
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 eval "$as_ac_Header=\$ac_header_preproc"
11379 ac_res=`eval echo '${'$as_ac_Header'}'`
11380 { echo "$as_me:$LINENO: result: $ac_res" >&5
11381 echo "${ECHO_T}$ac_res" >&6; }
11384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11385 cat >>confdefs.h <<_ACEOF
11386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11400 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11401 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11402 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 cat >conftest.$ac_ext <<_ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 $ac_includes_default
11412 typedef ptrdiff_t ac__type_new_;
11416 if ((ac__type_new_ *) 0)
11418 if (sizeof (ac__type_new_))
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && {
11438 test -z "$ac_c_werror_flag" ||
11439 test ! -s conftest.err
11440 } && test -s conftest.$ac_objext; then
11441 ac_cv_type_ptrdiff_t=yes
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11446 ac_cv_type_ptrdiff_t=no
11449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11452 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11453 if test $ac_cv_type_ptrdiff_t = yes; then
11457 cat >>confdefs.h <<\_ACEOF
11458 #define ptrdiff_t long
11474 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11475 stdlib.h string.h unistd.h sys/param.h
11477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 ac_res=`eval echo '${'$as_ac_Header'}'`
11485 { echo "$as_me:$LINENO: result: $ac_res" >&5
11486 echo "${ECHO_T}$ac_res" >&6; }
11488 # Is the header compilable?
11489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11491 cat >conftest.$ac_ext <<_ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 $ac_includes_default
11498 #include <$ac_header>
11500 rm -f conftest.$ac_objext
11501 if { (ac_try="$ac_compile"
11502 case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_compile") 2>conftest.er1
11509 grep -v '^ *+' conftest.er1 >conftest.err
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } && {
11514 test -z "$ac_c_werror_flag" ||
11515 test ! -s conftest.err
11516 } && test -s conftest.$ac_objext; then
11517 ac_header_compiler=yes
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_header_compiler=no
11525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11527 echo "${ECHO_T}$ac_header_compiler" >&6; }
11529 # Is the header present?
11530 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11532 cat >conftest.$ac_ext <<_ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 #include <$ac_header>
11540 if { (ac_try="$ac_cpp conftest.$ac_ext"
11541 case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11548 grep -v '^ *+' conftest.er1 >conftest.err
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } >/dev/null && {
11553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11554 test ! -s conftest.err
11556 ac_header_preproc=yes
11558 echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11561 ac_header_preproc=no
11564 rm -f conftest.err conftest.$ac_ext
11565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11566 echo "${ECHO_T}$ac_header_preproc" >&6; }
11568 # So? What about this header?
11569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11575 ac_header_preproc=yes
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 eval "$as_ac_Header=\$ac_header_preproc"
11600 ac_res=`eval echo '${'$as_ac_Header'}'`
11601 { echo "$as_me:$LINENO: result: $ac_res" >&5
11602 echo "${ECHO_T}$ac_res" >&6; }
11605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11606 cat >>confdefs.h <<_ACEOF
11607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11637 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11638 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11639 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11656 #define $ac_func innocuous_$ac_func
11658 /* System header to define __stub macros and hopefully few prototypes,
11659 which can conflict with char $ac_func (); below.
11660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11661 <limits.h> exists even on freestanding compilers. */
11664 # include <limits.h>
11666 # include <assert.h>
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11678 /* The GNU C library defines this for functions which it implements
11679 to always fail with ENOSYS. Some functions are actually named
11680 something starting with __ and the normal name is an alias. */
11681 #if defined __stub_$ac_func || defined __stub___$ac_func
11688 return $ac_func ();
11693 rm -f conftest.$ac_objext conftest$ac_exeext
11694 if { (ac_try="$ac_link"
11695 case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_link") 2>conftest.er1
11702 grep -v '^ *+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } && {
11707 test -z "$ac_c_werror_flag" ||
11708 test ! -s conftest.err
11709 } && test -s conftest$ac_exeext &&
11710 $as_test_x conftest$ac_exeext; then
11711 eval "$as_ac_var=yes"
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11716 eval "$as_ac_var=no"
11719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11720 conftest$ac_exeext conftest.$ac_ext
11722 ac_res=`eval echo '${'$as_ac_var'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_var'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11735 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11736 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11737 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11752 char *p = (char *) _snprintf;
11759 rm -f conftest.$ac_objext
11760 if { (ac_try="$ac_compile"
11761 case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_compile") 2>conftest.er1
11768 grep -v '^ *+' conftest.er1 >conftest.err
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest.$ac_objext; then
11776 ac_cv_have_decl__snprintf=yes
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 ac_cv_have_decl__snprintf=no
11784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11787 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11788 if test $ac_cv_have_decl__snprintf = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_DECL__SNPRINTF $gt_value
11800 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11801 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11802 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11817 char *p = (char *) _snwprintf;
11824 rm -f conftest.$ac_objext
11825 if { (ac_try="$ac_compile"
11826 case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_compile") 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } && {
11838 test -z "$ac_c_werror_flag" ||
11839 test ! -s conftest.err
11840 } && test -s conftest.$ac_objext; then
11841 ac_cv_have_decl__snwprintf=yes
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 ac_cv_have_decl__snwprintf=no
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11852 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11853 if test $ac_cv_have_decl__snwprintf = yes; then
11859 cat >>confdefs.h <<_ACEOF
11860 #define HAVE_DECL__SNWPRINTF $gt_value
11866 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11867 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11868 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 cat >conftest.$ac_ext <<_ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11882 #ifndef feof_unlocked
11883 char *p = (char *) feof_unlocked;
11890 rm -f conftest.$ac_objext
11891 if { (ac_try="$ac_compile"
11892 case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_compile") 2>conftest.er1
11899 grep -v '^ *+' conftest.er1 >conftest.err
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } && {
11904 test -z "$ac_c_werror_flag" ||
11905 test ! -s conftest.err
11906 } && test -s conftest.$ac_objext; then
11907 ac_cv_have_decl_feof_unlocked=yes
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 ac_cv_have_decl_feof_unlocked=no
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11918 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11919 if test $ac_cv_have_decl_feof_unlocked = yes; then
11925 cat >>confdefs.h <<_ACEOF
11926 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11931 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11932 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11933 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 cat >conftest.$ac_ext <<_ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11947 #ifndef fgets_unlocked
11948 char *p = (char *) fgets_unlocked;
11955 rm -f conftest.$ac_objext
11956 if { (ac_try="$ac_compile"
11957 case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_compile") 2>conftest.er1
11964 grep -v '^ *+' conftest.er1 >conftest.err
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } && {
11969 test -z "$ac_c_werror_flag" ||
11970 test ! -s conftest.err
11971 } && test -s conftest.$ac_objext; then
11972 ac_cv_have_decl_fgets_unlocked=yes
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_cv_have_decl_fgets_unlocked=no
11980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11983 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11984 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11990 cat >>confdefs.h <<_ACEOF
11991 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11996 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11997 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11998 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 cat >conftest.$ac_ext <<_ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12012 #ifndef getc_unlocked
12013 char *p = (char *) getc_unlocked;
12020 rm -f conftest.$ac_objext
12021 if { (ac_try="$ac_compile"
12022 case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_compile") 2>conftest.er1
12029 grep -v '^ *+' conftest.er1 >conftest.err
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } && {
12034 test -z "$ac_c_werror_flag" ||
12035 test ! -s conftest.err
12036 } && test -s conftest.$ac_objext; then
12037 ac_cv_have_decl_getc_unlocked=yes
12039 echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12042 ac_cv_have_decl_getc_unlocked=no
12045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12048 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12049 if test $ac_cv_have_decl_getc_unlocked = yes; then
12055 cat >>confdefs.h <<_ACEOF
12056 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12061 case $gt_cv_func_printf_posix in
12062 *yes) HAVE_POSIX_PRINTF=1 ;;
12063 *) HAVE_POSIX_PRINTF=0 ;;
12066 if test "$ac_cv_func_asprintf" = yes; then
12072 if test "$ac_cv_func_snprintf" = yes; then
12078 if test "$ac_cv_func_wprintf" = yes; then
12090 am_save_CPPFLAGS="$CPPFLAGS"
12092 for element in $INCICONV; do
12094 for x in $CPPFLAGS; do
12096 acl_save_prefix="$prefix"
12097 prefix="$acl_final_prefix"
12098 acl_save_exec_prefix="$exec_prefix"
12099 exec_prefix="$acl_final_exec_prefix"
12101 exec_prefix="$acl_save_exec_prefix"
12102 prefix="$acl_save_prefix"
12104 if test "X$x" = "X$element"; then
12109 if test -z "$haveit"; then
12110 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12115 { echo "$as_me:$LINENO: checking for iconv" >&5
12116 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12117 if test "${am_cv_func_iconv+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 am_cv_func_iconv="no, consider installing GNU libiconv"
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 #include <stdlib.h>
12134 iconv_t cd = iconv_open("","");
12135 iconv(cd,NULL,NULL,NULL,NULL);
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (ac_try="$ac_link"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_link") 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } && {
12155 test -z "$ac_c_werror_flag" ||
12156 test ! -s conftest.err
12157 } && test -s conftest$ac_exeext &&
12158 $as_test_x conftest$ac_exeext; then
12159 am_cv_func_iconv=yes
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12168 conftest$ac_exeext conftest.$ac_ext
12169 if test "$am_cv_func_iconv" != yes; then
12170 am_save_LIBS="$LIBS"
12171 LIBS="$LIBS $LIBICONV"
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 #include <stdlib.h>
12183 iconv_t cd = iconv_open("","");
12184 iconv(cd,NULL,NULL,NULL,NULL);
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (ac_try="$ac_link"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_link") 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest$ac_exeext &&
12207 $as_test_x conftest$ac_exeext; then
12208 am_cv_lib_iconv=yes
12209 am_cv_func_iconv=yes
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12218 conftest$ac_exeext conftest.$ac_ext
12219 LIBS="$am_save_LIBS"
12223 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12224 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12225 if test "$am_cv_func_iconv" = yes; then
12227 cat >>confdefs.h <<\_ACEOF
12228 #define HAVE_ICONV 1
12232 if test "$am_cv_lib_iconv" = yes; then
12233 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12234 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12235 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12236 echo "${ECHO_T}$LIBICONV" >&6; }
12238 CPPFLAGS="$am_save_CPPFLAGS"
12245 if test "$am_cv_func_iconv" = yes; then
12246 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12247 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12248 if test "${am_cv_proto_iconv+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 cat >conftest.$ac_ext <<_ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12259 #include <stdlib.h>
12265 #if defined(__STDC__) || defined(__cplusplus)
12266 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12279 rm -f conftest.$ac_objext
12280 if { (ac_try="$ac_compile"
12281 case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_compile") 2>conftest.er1
12288 grep -v '^ *+' conftest.er1 >conftest.err
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } && {
12293 test -z "$ac_c_werror_flag" ||
12294 test ! -s conftest.err
12295 } && test -s conftest.$ac_objext; then
12296 am_cv_proto_iconv_arg1=""
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 am_cv_proto_iconv_arg1="const"
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305 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);"
12308 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12309 { echo "$as_me:$LINENO: result: ${ac_t:-
12310 }$am_cv_proto_iconv" >&5
12311 echo "${ECHO_T}${ac_t:-
12312 }$am_cv_proto_iconv" >&6; }
12314 cat >>confdefs.h <<_ACEOF
12315 #define ICONV_CONST $am_cv_proto_iconv_arg1
12321 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12322 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12323 if test "${am_cv_langinfo_codeset+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 cat >conftest.$ac_ext <<_ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 #include <langinfo.h>
12336 char* cs = nl_langinfo(CODESET);
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (ac_try="$ac_link"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_link") 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && {
12355 test -z "$ac_c_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest$ac_exeext &&
12358 $as_test_x conftest$ac_exeext; then
12359 am_cv_langinfo_codeset=yes
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 am_cv_langinfo_codeset=no
12367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12368 conftest$ac_exeext conftest.$ac_ext
12371 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12372 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12373 if test $am_cv_langinfo_codeset = yes; then
12375 cat >>confdefs.h <<\_ACEOF
12376 #define HAVE_LANGINFO_CODESET 1
12381 if test $ac_cv_header_locale_h = yes; then
12383 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12384 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12385 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 cat >conftest.$ac_ext <<_ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 #include <locale.h>
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (ac_try="$ac_link"
12405 case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_link") 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } && {
12417 test -z "$ac_c_werror_flag" ||
12418 test ! -s conftest.err
12419 } && test -s conftest$ac_exeext &&
12420 $as_test_x conftest$ac_exeext; then
12421 gt_cv_val_LC_MESSAGES=yes
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12426 gt_cv_val_LC_MESSAGES=no
12429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12430 conftest$ac_exeext conftest.$ac_ext
12432 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12433 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12434 if test $gt_cv_val_LC_MESSAGES = yes; then
12436 cat >>confdefs.h <<\_ACEOF
12437 #define HAVE_LC_MESSAGES 1
12444 if test -n "$INTL_MACOSX_LIBS"; then
12445 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12448 for ac_prog in bison
12450 # Extract the first word of "$ac_prog", so it can be a program name with args.
12451 set dummy $ac_prog; ac_word=$2
12452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12454 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 if test -n "$INTLBISON"; then
12458 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12467 ac_cv_prog_INTLBISON="$ac_prog"
12468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 INTLBISON=$ac_cv_prog_INTLBISON
12478 if test -n "$INTLBISON"; then
12479 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12480 echo "${ECHO_T}$INTLBISON" >&6; }
12482 { echo "$as_me:$LINENO: result: no" >&5
12483 echo "${ECHO_T}no" >&6; }
12487 test -n "$INTLBISON" && break
12490 if test -z "$INTLBISON"; then
12493 { echo "$as_me:$LINENO: checking version of bison" >&5
12494 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12495 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12496 case $ac_prog_version in
12497 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12498 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12499 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12500 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12502 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12503 echo "${ECHO_T}$ac_prog_version" >&6; }
12505 if test $ac_verc_fail = yes; then
12524 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12525 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12526 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 gt_save_CPPFLAGS="$CPPFLAGS"
12530 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12531 gt_save_LIBS="$LIBS"
12532 LIBS="$LIBS -framework CoreFoundation"
12533 cat >conftest.$ac_ext <<_ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 #include <CFPreferences.h>
12543 CFPreferencesCopyAppValue(NULL, NULL)
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_link") 2>conftest.er1
12557 grep -v '^ *+' conftest.er1 >conftest.err
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest$ac_exeext &&
12565 $as_test_x conftest$ac_exeext; then
12566 gt_cv_func_CFPreferencesCopyAppValue=yes
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 gt_cv_func_CFPreferencesCopyAppValue=no
12574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12575 conftest$ac_exeext conftest.$ac_ext
12576 CPPFLAGS="$gt_save_CPPFLAGS"
12577 LIBS="$gt_save_LIBS"
12579 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12580 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12581 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12583 cat >>confdefs.h <<\_ACEOF
12584 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12588 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12589 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12590 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 gt_save_CPPFLAGS="$CPPFLAGS"
12594 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12595 gt_save_LIBS="$LIBS"
12596 LIBS="$LIBS -framework CoreFoundation"
12597 cat >conftest.$ac_ext <<_ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 #include <CFLocale.h>
12607 CFLocaleCopyCurrent();
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_link") 2>conftest.er1
12621 grep -v '^ *+' conftest.er1 >conftest.err
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && {
12626 test -z "$ac_c_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest$ac_exeext &&
12629 $as_test_x conftest$ac_exeext; then
12630 gt_cv_func_CFLocaleCopyCurrent=yes
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 gt_cv_func_CFLocaleCopyCurrent=no
12638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12639 conftest$ac_exeext conftest.$ac_ext
12640 CPPFLAGS="$gt_save_CPPFLAGS"
12641 LIBS="$gt_save_LIBS"
12643 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12644 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12645 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_CFLOCALECOPYCURRENT 1
12653 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12654 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12660 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12661 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12662 # Check whether --enable-nls was given.
12663 if test "${enable_nls+set}" = set; then
12664 enableval=$enable_nls; USE_NLS=$enableval
12669 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12670 echo "${ECHO_T}$USE_NLS" >&6; }
12675 BUILD_INCLUDED_LIBINTL=no
12676 USE_INCLUDED_LIBINTL=no
12682 if test "$USE_NLS" = "yes"; then
12683 gt_use_preinstalled_gnugettext=no
12685 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12686 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12688 # Check whether --with-included-gettext was given.
12689 if test "${with_included_gettext+set}" = set; then
12690 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12692 nls_cv_force_use_gnu_gettext=no
12695 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12696 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12698 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12699 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12706 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12707 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12708 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717 #include <libintl.h>
12718 extern int _nl_msg_cat_cntr;
12719 extern int *_nl_domain_bindings;
12723 bindtextdomain ("", "");
12724 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12729 rm -f conftest.$ac_objext conftest$ac_exeext
12730 if { (ac_try="$ac_link"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_link") 2>conftest.er1
12738 grep -v '^ *+' conftest.er1 >conftest.err
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest$ac_exeext &&
12746 $as_test_x conftest$ac_exeext; then
12747 gt_cv_func_gnugettext1_libc=yes
12749 echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12752 gt_cv_func_gnugettext1_libc=no
12755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12756 conftest$ac_exeext conftest.$ac_ext
12758 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12759 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12761 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12767 acl_save_prefix="$prefix"
12768 prefix="$acl_final_prefix"
12769 acl_save_exec_prefix="$exec_prefix"
12770 exec_prefix="$acl_final_exec_prefix"
12772 eval additional_includedir=\"$includedir\"
12773 eval additional_libdir=\"$libdir\"
12775 exec_prefix="$acl_save_exec_prefix"
12776 prefix="$acl_save_prefix"
12779 # Check whether --with-libintl-prefix was given.
12780 if test "${with_libintl_prefix+set}" = set; then
12781 withval=$with_libintl_prefix;
12782 if test "X$withval" = "Xno"; then
12785 if test "X$withval" = "X"; then
12787 acl_save_prefix="$prefix"
12788 prefix="$acl_final_prefix"
12789 acl_save_exec_prefix="$exec_prefix"
12790 exec_prefix="$acl_final_exec_prefix"
12792 eval additional_includedir=\"$includedir\"
12793 eval additional_libdir=\"$libdir\"
12795 exec_prefix="$acl_save_exec_prefix"
12796 prefix="$acl_save_prefix"
12799 additional_includedir="$withval/include"
12800 additional_libdir="$withval/lib"
12811 names_already_handled=
12812 names_next_round='intl '
12813 while test -n "$names_next_round"; do
12814 names_this_round="$names_next_round"
12816 for name in $names_this_round; do
12818 for n in $names_already_handled; do
12819 if test "$n" = "$name"; then
12820 already_handled=yes
12824 if test -z "$already_handled"; then
12825 names_already_handled="$names_already_handled $name"
12826 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12827 eval value=\"\$HAVE_LIB$uppername\"
12828 if test -n "$value"; then
12829 if test "$value" = yes; then
12830 eval value=\"\$LIB$uppername\"
12831 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12832 eval value=\"\$LTLIB$uppername\"
12833 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12842 if test $use_additional = yes; then
12843 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12844 found_dir="$additional_libdir"
12845 found_so="$additional_libdir/lib$name.$shlibext"
12846 if test -f "$additional_libdir/lib$name.la"; then
12847 found_la="$additional_libdir/lib$name.la"
12850 if test -f "$additional_libdir/lib$name.$libext"; then
12851 found_dir="$additional_libdir"
12852 found_a="$additional_libdir/lib$name.$libext"
12853 if test -f "$additional_libdir/lib$name.la"; then
12854 found_la="$additional_libdir/lib$name.la"
12859 if test "X$found_dir" = "X"; then
12860 for x in $LDFLAGS $LTLIBINTL; do
12862 acl_save_prefix="$prefix"
12863 prefix="$acl_final_prefix"
12864 acl_save_exec_prefix="$exec_prefix"
12865 exec_prefix="$acl_final_exec_prefix"
12867 exec_prefix="$acl_save_exec_prefix"
12868 prefix="$acl_save_prefix"
12872 dir=`echo "X$x" | sed -e 's/^X-L//'`
12873 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12875 found_so="$dir/lib$name.$shlibext"
12876 if test -f "$dir/lib$name.la"; then
12877 found_la="$dir/lib$name.la"
12880 if test -f "$dir/lib$name.$libext"; then
12882 found_a="$dir/lib$name.$libext"
12883 if test -f "$dir/lib$name.la"; then
12884 found_la="$dir/lib$name.la"
12890 if test "X$found_dir" != "X"; then
12895 if test "X$found_dir" != "X"; then
12896 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12897 if test "X$found_so" != "X"; then
12898 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12899 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12902 for x in $ltrpathdirs; do
12903 if test "X$x" = "X$found_dir"; then
12908 if test -z "$haveit"; then
12909 ltrpathdirs="$ltrpathdirs $found_dir"
12911 if test "$hardcode_direct" = yes; then
12912 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12914 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12915 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12917 for x in $rpathdirs; do
12918 if test "X$x" = "X$found_dir"; then
12923 if test -z "$haveit"; then
12924 rpathdirs="$rpathdirs $found_dir"
12928 for x in $LDFLAGS $LIBINTL; do
12930 acl_save_prefix="$prefix"
12931 prefix="$acl_final_prefix"
12932 acl_save_exec_prefix="$exec_prefix"
12933 exec_prefix="$acl_final_exec_prefix"
12935 exec_prefix="$acl_save_exec_prefix"
12936 prefix="$acl_save_prefix"
12938 if test "X$x" = "X-L$found_dir"; then
12943 if test -z "$haveit"; then
12944 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12946 if test "$hardcode_minus_L" != no; then
12947 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12949 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12955 if test "X$found_a" != "X"; then
12956 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12958 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12961 additional_includedir=
12962 case "$found_dir" in
12964 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12965 additional_includedir="$basedir/include"
12968 if test "X$additional_includedir" != "X"; then
12969 if test "X$additional_includedir" != "X/usr/include"; then
12971 if test "X$additional_includedir" = "X/usr/local/include"; then
12972 if test -n "$GCC"; then
12974 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12978 if test -z "$haveit"; then
12979 for x in $CPPFLAGS $INCINTL; do
12981 acl_save_prefix="$prefix"
12982 prefix="$acl_final_prefix"
12983 acl_save_exec_prefix="$exec_prefix"
12984 exec_prefix="$acl_final_exec_prefix"
12986 exec_prefix="$acl_save_exec_prefix"
12987 prefix="$acl_save_prefix"
12989 if test "X$x" = "X-I$additional_includedir"; then
12994 if test -z "$haveit"; then
12995 if test -d "$additional_includedir"; then
12996 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13002 if test -n "$found_la"; then
13003 save_libdir="$libdir"
13004 case "$found_la" in
13005 */* | *\\*) . "$found_la" ;;
13006 *) . "./$found_la" ;;
13008 libdir="$save_libdir"
13009 for dep in $dependency_libs; do
13012 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13013 if test "X$additional_libdir" != "X/usr/lib"; then
13015 if test "X$additional_libdir" = "X/usr/local/lib"; then
13016 if test -n "$GCC"; then
13018 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13022 if test -z "$haveit"; then
13024 for x in $LDFLAGS $LIBINTL; do
13026 acl_save_prefix="$prefix"
13027 prefix="$acl_final_prefix"
13028 acl_save_exec_prefix="$exec_prefix"
13029 exec_prefix="$acl_final_exec_prefix"
13031 exec_prefix="$acl_save_exec_prefix"
13032 prefix="$acl_save_prefix"
13034 if test "X$x" = "X-L$additional_libdir"; then
13039 if test -z "$haveit"; then
13040 if test -d "$additional_libdir"; then
13041 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13045 for x in $LDFLAGS $LTLIBINTL; do
13047 acl_save_prefix="$prefix"
13048 prefix="$acl_final_prefix"
13049 acl_save_exec_prefix="$exec_prefix"
13050 exec_prefix="$acl_final_exec_prefix"
13052 exec_prefix="$acl_save_exec_prefix"
13053 prefix="$acl_save_prefix"
13055 if test "X$x" = "X-L$additional_libdir"; then
13060 if test -z "$haveit"; then
13061 if test -d "$additional_libdir"; then
13062 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13069 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13070 if test "$enable_rpath" != no; then
13072 for x in $rpathdirs; do
13073 if test "X$x" = "X$dir"; then
13078 if test -z "$haveit"; then
13079 rpathdirs="$rpathdirs $dir"
13082 for x in $ltrpathdirs; do
13083 if test "X$x" = "X$dir"; then
13088 if test -z "$haveit"; then
13089 ltrpathdirs="$ltrpathdirs $dir"
13094 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13097 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13100 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13101 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13107 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13108 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13114 if test "X$rpathdirs" != "X"; then
13115 if test -n "$hardcode_libdir_separator"; then
13117 for found_dir in $rpathdirs; do
13118 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13120 acl_save_libdir="$libdir"
13122 eval flag=\"$hardcode_libdir_flag_spec\"
13123 libdir="$acl_save_libdir"
13124 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13126 for found_dir in $rpathdirs; do
13127 acl_save_libdir="$libdir"
13128 libdir="$found_dir"
13129 eval flag=\"$hardcode_libdir_flag_spec\"
13130 libdir="$acl_save_libdir"
13131 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13135 if test "X$ltrpathdirs" != "X"; then
13136 for found_dir in $ltrpathdirs; do
13137 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13141 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13142 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13143 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 gt_save_CPPFLAGS="$CPPFLAGS"
13147 CPPFLAGS="$CPPFLAGS $INCINTL"
13148 gt_save_LIBS="$LIBS"
13149 LIBS="$LIBS $LIBINTL"
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 #include <libintl.h>
13157 extern int _nl_msg_cat_cntr;
13162 const char *_nl_expand_alias (const char *);
13166 bindtextdomain ("", "");
13167 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13172 rm -f conftest.$ac_objext conftest$ac_exeext
13173 if { (ac_try="$ac_link"
13174 case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179 (eval "$ac_link") 2>conftest.er1
13181 grep -v '^ *+' conftest.er1 >conftest.err
13183 cat conftest.err >&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && {
13186 test -z "$ac_c_werror_flag" ||
13187 test ! -s conftest.err
13188 } && test -s conftest$ac_exeext &&
13189 $as_test_x conftest$ac_exeext; then
13190 gt_cv_func_gnugettext1_libintl=yes
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13195 gt_cv_func_gnugettext1_libintl=no
13198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13199 conftest$ac_exeext conftest.$ac_ext
13200 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13201 LIBS="$LIBS $LIBICONV"
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #include <libintl.h>
13209 extern int _nl_msg_cat_cntr;
13214 const char *_nl_expand_alias (const char *);
13218 bindtextdomain ("", "");
13219 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } && {
13238 test -z "$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13240 } && test -s conftest$ac_exeext &&
13241 $as_test_x conftest$ac_exeext; then
13242 LIBINTL="$LIBINTL $LIBICONV"
13243 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13244 gt_cv_func_gnugettext1_libintl=yes
13247 echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13254 conftest$ac_exeext conftest.$ac_ext
13256 CPPFLAGS="$gt_save_CPPFLAGS"
13257 LIBS="$gt_save_LIBS"
13259 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13260 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13263 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13264 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13265 && test "$PACKAGE" != gettext-runtime \
13266 && test "$PACKAGE" != gettext-tools; }; then
13267 gt_use_preinstalled_gnugettext=yes
13275 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13276 nls_cv_use_gnu_gettext=yes
13280 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13281 BUILD_INCLUDED_LIBINTL=yes
13282 USE_INCLUDED_LIBINTL=yes
13283 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13284 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13285 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13289 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13290 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13295 if test -n "$INTL_MACOSX_LIBS"; then
13296 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13297 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13298 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13299 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13303 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13304 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13306 cat >>confdefs.h <<\_ACEOF
13307 #define ENABLE_NLS 1
13315 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13316 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13317 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13318 echo "${ECHO_T}$USE_NLS" >&6; }
13319 if test "$USE_NLS" = "yes"; then
13320 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13321 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13322 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13323 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13324 gt_source="external libintl"
13329 gt_source="included intl directory"
13331 { echo "$as_me:$LINENO: result: $gt_source" >&5
13332 echo "${ECHO_T}$gt_source" >&6; }
13335 if test "$USE_NLS" = "yes"; then
13337 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13338 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13339 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13340 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13341 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13342 echo "${ECHO_T}$LIBINTL" >&6; }
13344 for element in $INCINTL; do
13346 for x in $CPPFLAGS; do
13348 acl_save_prefix="$prefix"
13349 prefix="$acl_final_prefix"
13350 acl_save_exec_prefix="$exec_prefix"
13351 exec_prefix="$acl_final_exec_prefix"
13353 exec_prefix="$acl_save_exec_prefix"
13354 prefix="$acl_save_prefix"
13356 if test "X$x" = "X$element"; then
13361 if test -z "$haveit"; then
13362 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13369 cat >>confdefs.h <<\_ACEOF
13370 #define HAVE_GETTEXT 1
13374 cat >>confdefs.h <<\_ACEOF
13375 #define HAVE_DCGETTEXT 1
13384 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13385 BUILD_INCLUDED_LIBINTL=yes
13392 nls_cv_header_intl=
13393 nls_cv_header_libgt=
13405 if test "$USE_INCLUDED_LIBINTL" = yes; then
13406 INTLOBJS="\$(GETTOBJS)"
13410 INTL_LIBTOOL_SUFFIX_PREFIX=
13414 INTLLIBS="$LIBINTL"
13427 support_postgresql=no
13429 support_smartalloc=yes
13430 support_readline=yes
13434 support_wx_console=no
13439 support_static_tools=no
13440 support_static_fd=no
13441 support_static_sd=no
13442 support_static_dir=no
13443 support_static_cons=no
13445 build_client_only=no
13453 # -------------------------------------------
13454 # gnome (default off)
13455 # -------------------------------------------
13456 # Check whether --enable-gnome was given.
13457 if test "${enable_gnome+set}" = set; then
13458 enableval=$enable_gnome; if test x$enableval = xyes; then
13465 if test x$support_gnome = xyes; then
13466 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13468 if test $pkg = 0; then
13469 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13470 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13471 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13472 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13477 GNOME_DIR=src/gnome2-console
13478 gnome_version="Version 2.x"
13480 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13481 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13482 { (exit 1); exit 1; }; }
13487 # -------------------------------------------
13488 # bat (default off)
13489 # -------------------------------------------
13490 # Check whether --enable-bat was given.
13491 if test "${enable_bat+set}" = set; then
13492 enableval=$enable_bat; if test x$enableval = xyes; then
13494 cat >>confdefs.h <<\_ACEOF
13504 if test x$support_bat = xyes; then
13505 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13507 if test $pkg = 0; then
13508 BAT_DIR=src/qt-console
13510 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13511 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13512 { (exit 1); exit 1; }; }
13517 # If bat is enabled, we need the qwt library
13521 if test x$support_bat = xyes; then
13522 { echo "$as_me:$LINENO: checking for qwt support" >&5
13523 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13525 # Check whether --with-qwt was given.
13526 if test "${with_qwt+set}" = set; then
13528 case "$with_qwt" in
13532 if test -f ${with_qwt}/include/qwt.h; then
13533 QWT_INC="${with_qwt}/include"
13534 QWT_LDFLAGS="-L${with_qwt}/lib"
13543 # Search in standard places, or --with-qwt not specified
13545 if test x$QWT_INC = x; then
13546 for root in /usr /usr/local; do
13547 for ver in qwt qwt5 qwt-qt4; do
13548 if test -f ${root}/include/${ver}/qwt.h; then
13549 QWT_INC="${root}/include/${ver}"
13550 if test -d ${root}/lib64/; then
13551 QWT_LDFLAGS="-L${root}/lib64"
13553 QWT_LDFLAGS="-L${root}/lib"
13561 if test x$QWT_INC = x; then
13562 { echo "$as_me:$LINENO: result: no" >&5
13563 echo "${ECHO_T}no" >&6; }
13564 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
13565 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
13566 { (exit 1); exit 1; }; }
13570 { echo "$as_me:$LINENO: result: yes" >&5
13571 echo "${ECHO_T}yes" >&6; }
13580 # -------------------------------------------
13581 # bwx-console (default off)
13582 # -------------------------------------------
13583 # Check whether --enable-bwx-console was given.
13584 if test "${enable_bwx_console+set}" = set; then
13585 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13586 support_wx_console=yes
13592 if test x$support_wx_console = xyes; then
13593 abc=`$WXCONFIG $WXFLAGS --cppflags`
13595 if test $pkg = 0; then
13596 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13597 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13598 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13602 WX_DIR=src/wx-console
13605 echo "wx-config program not found. bwx-console disabled."
13607 support_wx_console=no
13613 # -------------------------------------------
13614 # tray-monitor (default off)
13615 # -------------------------------------------
13616 # Check whether --enable-tray-monitor was given.
13617 if test "${enable_tray_monitor+set}" = set; then
13618 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13619 support_tray_monitor=yes
13625 if test x$support_tray_monitor = xyes; then
13626 abc=`$PKGCONFIG --exists gtk+-2.0`
13628 if test $pkg = 0; then
13629 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13630 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13633 TRAY_MONITOR_DIR=src/tray-monitor
13634 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13636 if test $pkg = 0; then
13638 cat >>confdefs.h <<\_ACEOF
13639 #define HAVE_GTK_2_4 1
13647 # -------------------------------------------
13648 # smartalloc (default off)
13649 # -------------------------------------------
13650 # Check whether --enable-smartalloc was given.
13651 if test "${enable_smartalloc+set}" = set; then
13652 enableval=$enable_smartalloc; if test x$enableval = xno; then
13653 support_smartalloc=no
13658 if test x$support_smartalloc = xyes; then
13660 cat >>confdefs.h <<\_ACEOF
13661 #define SMARTALLOC 1
13666 # -------------------------------------------
13667 # static-tools (default off)
13668 # -------------------------------------------
13669 # Check whether --enable-static-tools was given.
13670 if test "${enable_static_tools+set}" = set; then
13671 enableval=$enable_static_tools; if test x$enableval = xyes; then
13672 support_static_tools=yes
13678 if test x$support_static_tools = xyes; then
13679 TTOOL_LDFLAGS="-static"
13683 # -------------------------------------------
13684 # static-fd (default off)
13685 # -------------------------------------------
13686 # Check whether --enable-static-fd was given.
13687 if test "${enable_static_fd+set}" = set; then
13688 enableval=$enable_static_fd; if test x$enableval = xyes; then
13689 support_static_fd=yes
13695 if test x$support_static_fd = xyes; then
13696 STATIC_FD="static-bacula-fd"
13700 # -------------------------------------------
13701 # static-sd (default off)
13702 # -------------------------------------------
13703 # Check whether --enable-static-sd was given.
13704 if test "${enable_static_sd+set}" = set; then
13705 enableval=$enable_static_sd; if test x$enableval = xyes; then
13706 support_static_sd=yes
13712 if test x$support_static_sd = xyes; then
13713 STATIC_SD="static-bacula-sd"
13717 # -------------------------------------------
13718 # static-dir (default off)
13719 # -------------------------------------------
13720 # Check whether --enable-static-dir was given.
13721 if test "${enable_static_dir+set}" = set; then
13722 enableval=$enable_static_dir; if test x$enableval = xyes; then
13723 support_static_dir=yes
13729 if test x$support_static_dir = xyes; then
13730 STATIC_DIR="static-bacula-dir"
13734 # -------------------------------------------
13735 # static-cons (default off)
13736 # -------------------------------------------
13737 # Check whether --enable-static-cons was given.
13738 if test "${enable_static_cons+set}" = set; then
13739 enableval=$enable_static_cons; if test x$enableval = xyes; then
13740 support_static_cons=yes
13748 if test x$support_static_cons = xyes; then
13749 STATIC_CONS="static-bconsole"
13750 STATIC_GNOME_CONS="static-bgnome-console"
13751 STATIC_WX_CONS="static-bwx-console"
13757 # -------------------------------------------
13758 # client_only (default off)
13759 # -------------------------------------------
13760 # Check whether --enable-client-only was given.
13761 if test "${enable_client_only+set}" = set; then
13762 enableval=$enable_client_only; if test x$enableval = xyes; then
13763 build_client_only=yes
13769 if test x$build_client_only = xno; then
13776 # -------------------------------------------
13777 # director (default on)
13778 # -------------------------------------------
13779 # Check whether --enable-build-dird was given.
13780 if test "${enable_build_dird+set}" = set; then
13781 enableval=$enable_build_dird; if test x$enableval = xno; then
13786 if test x$build_dird = xyes; then
13787 DIRD_DIR="src/dird"
13788 DIR_TOOLS="DIRTOOLS"
13791 DIR_TOOLS="NODIRTOOLS"
13796 # -------------------------------------------
13797 # stored (default on)
13798 # -------------------------------------------
13799 # Check whether --enable-build-stored was given.
13800 if test "${enable_build_stored+set}" = set; then
13801 enableval=$enable_build_stored; if test x$enableval = xno; then
13806 if test x$build_stored = xyes; then
13807 STORED_DIR="src/stored"
13813 # ---------------------------------------------------
13814 # Check for conio (Bacula readline substitute)(
13815 # ---------------------------------------------------
13816 # this allows you to turn it completely off
13817 # Check whether --enable-conio was given.
13818 if test "${enable_conio+set}" = set; then
13819 enableval=$enable_conio; if test x$enableval = xno; then
13827 # ---------------------------------------------------
13828 # Check for IPv6 support
13829 # ---------------------------------------------------
13830 # this allows you to turn it completely off
13832 # Check whether --enable-ipv6 was given.
13833 if test "${enable_ipv6+set}" = set; then
13834 enableval=$enable_ipv6; if test x$enableval = xno; then
13841 if test x$support_ipv6 = xyes; then
13842 cat >conftest.$ac_ext <<_ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848 #include <sys/types.h>
13849 #include <sys/socket.h>
13850 #include <netinet/in.h>
13854 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (ac_try="$ac_link"
13861 case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_link") 2>conftest.er1
13868 grep -v '^ *+' conftest.er1 >conftest.err
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } && {
13873 test -z "$ac_c_werror_flag" ||
13874 test ! -s conftest.err
13875 } && test -s conftest$ac_exeext &&
13876 $as_test_x conftest$ac_exeext; then
13879 echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13886 conftest$ac_exeext conftest.$ac_ext
13889 if test x$support_ipv6 = xyes; then
13891 cat >>confdefs.h <<\_ACEOF
13892 #define HAVE_IPV6 1
13900 if test x$support_conio = xyes; then
13901 if test "${ac_cv_header_termcap_h+set}" = set; then
13902 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13903 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13904 if test "${ac_cv_header_termcap_h+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13908 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13910 # Is the header compilable?
13911 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13912 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13913 cat >conftest.$ac_ext <<_ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 $ac_includes_default
13920 #include <termcap.h>
13922 rm -f conftest.$ac_objext
13923 if { (ac_try="$ac_compile"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_compile") 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && {
13936 test -z "$ac_c_werror_flag" ||
13937 test ! -s conftest.err
13938 } && test -s conftest.$ac_objext; then
13939 ac_header_compiler=yes
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944 ac_header_compiler=no
13947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13949 echo "${ECHO_T}$ac_header_compiler" >&6; }
13951 # Is the header present?
13952 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13953 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13954 cat >conftest.$ac_ext <<_ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 #include <termcap.h>
13962 if { (ac_try="$ac_cpp conftest.$ac_ext"
13963 case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13970 grep -v '^ *+' conftest.er1 >conftest.err
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } >/dev/null && {
13975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13976 test ! -s conftest.err
13978 ac_header_preproc=yes
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 ac_header_preproc=no
13986 rm -f conftest.err conftest.$ac_ext
13987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13988 echo "${ECHO_T}$ac_header_preproc" >&6; }
13990 # So? What about this header?
13991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13993 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13994 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13996 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13997 ac_header_preproc=yes
14000 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14001 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14003 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14005 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14007 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14008 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14009 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14011 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14015 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14016 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14017 if test "${ac_cv_header_termcap_h+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 ac_cv_header_termcap_h=$ac_header_preproc
14022 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14023 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14026 if test $ac_cv_header_termcap_h = yes; then
14027 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14028 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14029 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 ac_check_lib_save_LIBS=$LIBS
14033 LIBS="-ltermcap $LIBS"
14034 cat >conftest.$ac_ext <<_ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14041 /* Override any GCC internal prototype to avoid an error.
14042 Use char because int might match the return type of a GCC
14043 builtin and then its argument prototype would still apply. */
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (ac_try="$ac_link"
14058 case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_link") 2>conftest.er1
14065 grep -v '^ *+' conftest.er1 >conftest.err
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } && {
14070 test -z "$ac_c_werror_flag" ||
14071 test ! -s conftest.err
14072 } && test -s conftest$ac_exeext &&
14073 $as_test_x conftest$ac_exeext; then
14074 ac_cv_lib_termcap_tgetent=yes
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14079 ac_cv_lib_termcap_tgetent=no
14082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14083 conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS
14086 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14087 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14088 if test $ac_cv_lib_termcap_tgetent = yes; then
14089 CONS_LIBS="-ltermcap"
14093 support_readline=no
14095 cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_CONIO 1
14101 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14102 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14103 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 ac_check_lib_save_LIBS=$LIBS
14107 LIBS="-lncurses $LIBS"
14108 cat >conftest.$ac_ext <<_ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14115 /* Override any GCC internal prototype to avoid an error.
14116 Use char because int might match the return type of a GCC
14117 builtin and then its argument prototype would still apply. */
14130 rm -f conftest.$ac_objext conftest$ac_exeext
14131 if { (ac_try="$ac_link"
14132 case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_link") 2>conftest.er1
14139 grep -v '^ *+' conftest.er1 >conftest.err
14141 cat conftest.err >&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } && {
14144 test -z "$ac_c_werror_flag" ||
14145 test ! -s conftest.err
14146 } && test -s conftest$ac_exeext &&
14147 $as_test_x conftest$ac_exeext; then
14148 ac_cv_lib_ncurses_tgetent=yes
14150 echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14153 ac_cv_lib_ncurses_tgetent=no
14156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14157 conftest$ac_exeext conftest.$ac_ext
14158 LIBS=$ac_check_lib_save_LIBS
14160 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14161 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14162 if test $ac_cv_lib_ncurses_tgetent = yes; then
14163 CONS_LIBS="-lncurses"
14167 support_readline=no
14169 cat >>confdefs.h <<\_ACEOF
14170 #define HAVE_CONIO 1
14183 for ac_header in curses.h
14185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 ac_res=`eval echo '${'$as_ac_Header'}'`
14193 { echo "$as_me:$LINENO: result: $ac_res" >&5
14194 echo "${ECHO_T}$ac_res" >&6; }
14196 # Is the header compilable?
14197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14199 cat >conftest.$ac_ext <<_ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14205 $ac_includes_default
14206 #include <$ac_header>
14208 rm -f conftest.$ac_objext
14209 if { (ac_try="$ac_compile"
14210 case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_compile") 2>conftest.er1
14217 grep -v '^ *+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } && {
14222 test -z "$ac_c_werror_flag" ||
14223 test ! -s conftest.err
14224 } && test -s conftest.$ac_objext; then
14225 ac_header_compiler=yes
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 ac_header_compiler=no
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14235 echo "${ECHO_T}$ac_header_compiler" >&6; }
14237 # Is the header present?
14238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14240 cat >conftest.$ac_ext <<_ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 #include <$ac_header>
14248 if { (ac_try="$ac_cpp conftest.$ac_ext"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1 >conftest.err
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } >/dev/null && {
14261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14264 ac_header_preproc=yes
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 ac_header_preproc=no
14272 rm -f conftest.err conftest.$ac_ext
14273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14274 echo "${ECHO_T}$ac_header_preproc" >&6; }
14276 # So? What about this header?
14277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14283 ac_header_preproc=yes
14286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14293 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 eval "$as_ac_Header=\$ac_header_preproc"
14308 ac_res=`eval echo '${'$as_ac_Header'}'`
14309 { echo "$as_me:$LINENO: result: $ac_res" >&5
14310 echo "${ECHO_T}$ac_res" >&6; }
14313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14314 cat >>confdefs.h <<_ACEOF
14315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14322 { echo "$as_me:$LINENO: checking for term.h" >&5
14323 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14324 if test "${ac_cv_header_term_h+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 cat >conftest.$ac_ext <<_ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14334 #include <curses.h>
14340 rm -f conftest.$ac_objext
14341 if { (ac_try="$ac_compile"
14342 case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_compile") 2>conftest.er1
14349 grep -v '^ *+' conftest.er1 >conftest.err
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && {
14354 test -z "$ac_c_werror_flag" ||
14355 test ! -s conftest.err
14356 } && test -s conftest.$ac_objext; then
14357 ac_cv_header_term_h=yes
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 ac_cv_header_term_h=no
14365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14367 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14368 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14369 if test $ac_cv_header_term_h = yes; then
14370 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14371 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14372 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 ac_check_lib_save_LIBS=$LIBS
14376 LIBS="-lcurses $LIBS"
14377 cat >conftest.$ac_ext <<_ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14384 /* Override any GCC internal prototype to avoid an error.
14385 Use char because int might match the return type of a GCC
14386 builtin and then its argument prototype would still apply. */
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (ac_try="$ac_link"
14401 case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_link") 2>conftest.er1
14408 grep -v '^ *+' conftest.er1 >conftest.err
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } && {
14413 test -z "$ac_c_werror_flag" ||
14414 test ! -s conftest.err
14415 } && test -s conftest$ac_exeext &&
14416 $as_test_x conftest$ac_exeext; then
14417 ac_cv_lib_curses_tgetent=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_cv_lib_curses_tgetent=no
14425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14426 conftest$ac_exeext conftest.$ac_ext
14427 LIBS=$ac_check_lib_save_LIBS
14429 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14430 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14431 if test $ac_cv_lib_curses_tgetent = yes; then
14432 CONS_LIBS="-lcurses"
14436 support_readline=no
14438 cat >>confdefs.h <<\_ACEOF
14439 #define HAVE_CONIO 1
14447 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14458 # ---------------------------------------------------
14459 # Check for readline support/directory (default off)
14460 # ---------------------------------------------------
14461 # this allows you to turn it completely off
14462 # Check whether --enable-readline was given.
14463 if test "${enable_readline+set}" = set; then
14464 enableval=$enable_readline; if test x$enableval = xno; then
14465 support_readline=no
14472 if test x$support_readline = xyes; then
14474 # Check whether --with-readline was given.
14475 if test "${with_readline+set}" = set; then
14476 withval=$with_readline;
14477 case "$with_readline" in
14480 if test -f ${with_readline}/readline.h; then
14481 CONS_INC="-I${with_readline}"
14482 CONS_LDFLAGS="-L$with_readline"
14483 elif test -f ${with_readline}/include/readline/readline.h; then
14484 CONS_INC="-I${with_readline}/include/readline"
14485 CONS_LDFLAGS="-L${with_readline}/lib"
14486 with_readline="${with_readline}/include/readline"
14488 with_readline="/usr/include/readline"
14490 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14492 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14493 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 ac_res=`eval echo '${'$as_ac_Header'}'`
14498 { echo "$as_me:$LINENO: result: $ac_res" >&5
14499 echo "${ECHO_T}$ac_res" >&6; }
14501 # Is the header compilable?
14502 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14503 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14504 cat >conftest.$ac_ext <<_ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 $ac_includes_default
14511 #include <${with_readline}/readline.h>
14513 rm -f conftest.$ac_objext
14514 if { (ac_try="$ac_compile"
14515 case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_compile") 2>conftest.er1
14522 grep -v '^ *+' conftest.er1 >conftest.err
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } && {
14527 test -z "$ac_c_werror_flag" ||
14528 test ! -s conftest.err
14529 } && test -s conftest.$ac_objext; then
14530 ac_header_compiler=yes
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 ac_header_compiler=no
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14540 echo "${ECHO_T}$ac_header_compiler" >&6; }
14542 # Is the header present?
14543 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14544 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14545 cat >conftest.$ac_ext <<_ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 #include <${with_readline}/readline.h>
14553 if { (ac_try="$ac_cpp conftest.$ac_ext"
14554 case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14561 grep -v '^ *+' conftest.er1 >conftest.err
14563 cat conftest.err >&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } >/dev/null && {
14566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14567 test ! -s conftest.err
14569 ac_header_preproc=yes
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14574 ac_header_preproc=no
14577 rm -f conftest.err conftest.$ac_ext
14578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14579 echo "${ECHO_T}$ac_header_preproc" >&6; }
14581 # So? What about this header?
14582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14584 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14585 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14587 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14588 ac_header_preproc=yes
14591 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14592 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14594 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14596 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14598 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14600 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14602 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14606 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14607 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 eval "$as_ac_Header=\$ac_header_preproc"
14613 ac_res=`eval echo '${'$as_ac_Header'}'`
14614 { echo "$as_me:$LINENO: result: $ac_res" >&5
14615 echo "${ECHO_T}$ac_res" >&6; }
14618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14620 cat >>confdefs.h <<\_ACEOF
14621 #define HAVE_READLINE 1
14624 CONS_LIBS="-lreadline -lhistory -ltermcap"
14629 echo "readline.h not found. readline turned off ..."
14641 # check for standard readline library
14642 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14643 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14644 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14645 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14649 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14651 # Is the header compilable?
14652 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14653 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14654 cat >conftest.$ac_ext <<_ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 $ac_includes_default
14661 #include </usr/include/readline/readline.h>
14663 rm -f conftest.$ac_objext
14664 if { (ac_try="$ac_compile"
14665 case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670 (eval "$ac_compile") 2>conftest.er1
14672 grep -v '^ *+' conftest.er1 >conftest.err
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } && {
14677 test -z "$ac_c_werror_flag" ||
14678 test ! -s conftest.err
14679 } && test -s conftest.$ac_objext; then
14680 ac_header_compiler=yes
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 ac_header_compiler=no
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14690 echo "${ECHO_T}$ac_header_compiler" >&6; }
14692 # Is the header present?
14693 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14694 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14695 cat >conftest.$ac_ext <<_ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14701 #include </usr/include/readline/readline.h>
14703 if { (ac_try="$ac_cpp conftest.$ac_ext"
14704 case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14711 grep -v '^ *+' conftest.er1 >conftest.err
14713 cat conftest.err >&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } >/dev/null && {
14716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14717 test ! -s conftest.err
14719 ac_header_preproc=yes
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ac_header_preproc=no
14727 rm -f conftest.err conftest.$ac_ext
14728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14729 echo "${ECHO_T}$ac_header_preproc" >&6; }
14731 # So? What about this header?
14732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14734 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14735 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14737 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14738 ac_header_preproc=yes
14741 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14742 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14744 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14746 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14748 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14750 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14752 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14756 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14757 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14758 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14763 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14764 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14767 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14769 cat >>confdefs.h <<\_ACEOF
14770 #define HAVE_READLINE 1
14774 CONS_INC="-I/usr/include/readline"
14775 CONS_LIBS="-lreadline -ltermcap"
14779 # Did not find standard library, so try Bacula's default
14780 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14782 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14783 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 ac_res=`eval echo '${'$as_ac_Header'}'`
14788 { echo "$as_me:$LINENO: result: $ac_res" >&5
14789 echo "${ECHO_T}$ac_res" >&6; }
14791 # Is the header compilable?
14792 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14793 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14794 cat >conftest.$ac_ext <<_ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 $ac_includes_default
14801 #include <${TOP_DIR}/depkgs/readline/readline.h>
14803 rm -f conftest.$ac_objext
14804 if { (ac_try="$ac_compile"
14805 case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_compile") 2>conftest.er1
14812 grep -v '^ *+' conftest.er1 >conftest.err
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } && {
14817 test -z "$ac_c_werror_flag" ||
14818 test ! -s conftest.err
14819 } && test -s conftest.$ac_objext; then
14820 ac_header_compiler=yes
14822 echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14825 ac_header_compiler=no
14828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14830 echo "${ECHO_T}$ac_header_compiler" >&6; }
14832 # Is the header present?
14833 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14834 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14835 cat >conftest.$ac_ext <<_ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 #include <${TOP_DIR}/depkgs/readline/readline.h>
14843 if { (ac_try="$ac_cpp conftest.$ac_ext"
14844 case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14851 grep -v '^ *+' conftest.er1 >conftest.err
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } >/dev/null && {
14856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14857 test ! -s conftest.err
14859 ac_header_preproc=yes
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14864 ac_header_preproc=no
14867 rm -f conftest.err conftest.$ac_ext
14868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14869 echo "${ECHO_T}$ac_header_preproc" >&6; }
14871 # So? What about this header?
14872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14874 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14875 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14877 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14878 ac_header_preproc=yes
14881 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14882 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14884 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14886 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14888 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14890 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14892 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14896 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14897 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 eval "$as_ac_Header=\$ac_header_preproc"
14903 ac_res=`eval echo '${'$as_ac_Header'}'`
14904 { echo "$as_me:$LINENO: result: $ac_res" >&5
14905 echo "${ECHO_T}$ac_res" >&6; }
14908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14910 cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_READLINE 1
14915 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14916 CONS_LIBS="-lreadline -lhistory -ltermcap"
14917 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14918 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14922 echo "readline.h not found. readline turned off ..."
14949 # Minimal stuff for readline Makefile configuration
14952 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14953 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14954 if test "${ac_cv_header_stat_broken+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 cat >conftest.$ac_ext <<_ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h. */
14963 #include <sys/types.h>
14964 #include <sys/stat.h>
14966 #if defined S_ISBLK && defined S_IFDIR
14967 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14970 #if defined S_ISBLK && defined S_IFCHR
14971 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14974 #if defined S_ISLNK && defined S_IFREG
14975 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14978 #if defined S_ISSOCK && defined S_IFREG
14979 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_compile") 2>conftest.er1
14992 grep -v '^ *+' conftest.er1 >conftest.err
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } && {
14997 test -z "$ac_c_werror_flag" ||
14998 test ! -s conftest.err
14999 } && test -s conftest.$ac_objext; then
15000 ac_cv_header_stat_broken=no
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 ac_cv_header_stat_broken=yes
15008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15010 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15011 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15012 if test $ac_cv_header_stat_broken = yes; then
15014 cat >>confdefs.h <<\_ACEOF
15015 #define STAT_MACROS_BROKEN 1
15025 ac_header_dirent=no
15026 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15027 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15028 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15029 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 #include <sys/types.h>
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_compile") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest.$ac_objext; then
15068 eval "$as_ac_Header=yes"
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 eval "$as_ac_Header=no"
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078 ac_res=`eval echo '${'$as_ac_Header'}'`
15079 { echo "$as_me:$LINENO: result: $ac_res" >&5
15080 echo "${ECHO_T}$ac_res" >&6; }
15081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15082 cat >>confdefs.h <<_ACEOF
15083 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15086 ac_header_dirent=$ac_hdr; break
15090 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15091 if test $ac_header_dirent = dirent.h; then
15092 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15093 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15094 if test "${ac_cv_search_opendir+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15097 ac_func_search_save_LIBS=$LIBS
15098 cat >conftest.$ac_ext <<_ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15105 /* Override any GCC internal prototype to avoid an error.
15106 Use char because int might match the return type of a GCC
15107 builtin and then its argument prototype would still apply. */
15120 for ac_lib in '' dir; do
15121 if test -z "$ac_lib"; then
15122 ac_res="none required"
15125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15127 rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (ac_try="$ac_link"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_link") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest$ac_exeext &&
15144 $as_test_x conftest$ac_exeext; then
15145 ac_cv_search_opendir=$ac_res
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15155 if test "${ac_cv_search_opendir+set}" = set; then
15159 if test "${ac_cv_search_opendir+set}" = set; then
15162 ac_cv_search_opendir=no
15164 rm conftest.$ac_ext
15165 LIBS=$ac_func_search_save_LIBS
15167 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15168 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15169 ac_res=$ac_cv_search_opendir
15170 if test "$ac_res" != no; then
15171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15176 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15177 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15178 if test "${ac_cv_search_opendir+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 ac_func_search_save_LIBS=$LIBS
15182 cat >conftest.$ac_ext <<_ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15189 /* Override any GCC internal prototype to avoid an error.
15190 Use char because int might match the return type of a GCC
15191 builtin and then its argument prototype would still apply. */
15204 for ac_lib in '' x; do
15205 if test -z "$ac_lib"; then
15206 ac_res="none required"
15209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15211 rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (ac_try="$ac_link"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_link") 2>conftest.er1
15220 grep -v '^ *+' conftest.er1 >conftest.err
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && {
15225 test -z "$ac_c_werror_flag" ||
15226 test ! -s conftest.err
15227 } && test -s conftest$ac_exeext &&
15228 $as_test_x conftest$ac_exeext; then
15229 ac_cv_search_opendir=$ac_res
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15239 if test "${ac_cv_search_opendir+set}" = set; then
15243 if test "${ac_cv_search_opendir+set}" = set; then
15246 ac_cv_search_opendir=no
15248 rm conftest.$ac_ext
15249 LIBS=$ac_func_search_save_LIBS
15251 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15252 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15253 ac_res=$ac_cv_search_opendir
15254 if test "$ac_res" != no; then
15255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15268 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 cat >conftest.$ac_ext <<_ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15284 #define $ac_func innocuous_$ac_func
15286 /* System header to define __stub macros and hopefully few prototypes,
15287 which can conflict with char $ac_func (); below.
15288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15289 <limits.h> exists even on freestanding compilers. */
15292 # include <limits.h>
15294 # include <assert.h>
15299 /* Override any GCC internal prototype to avoid an error.
15300 Use char because int might match the return type of a GCC
15301 builtin and then its argument prototype would still apply. */
15306 /* The GNU C library defines this for functions which it implements
15307 to always fail with ENOSYS. Some functions are actually named
15308 something starting with __ and the normal name is an alias. */
15309 #if defined __stub_$ac_func || defined __stub___$ac_func
15316 return $ac_func ();
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (ac_try="$ac_link"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_link") 2>conftest.er1
15330 grep -v '^ *+' conftest.er1 >conftest.err
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } && {
15335 test -z "$ac_c_werror_flag" ||
15336 test ! -s conftest.err
15337 } && test -s conftest$ac_exeext &&
15338 $as_test_x conftest$ac_exeext; then
15339 eval "$as_ac_var=yes"
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 eval "$as_ac_var=no"
15347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15348 conftest$ac_exeext conftest.$ac_ext
15350 ac_res=`eval echo '${'$as_ac_var'}'`
15351 { echo "$as_me:$LINENO: result: $ac_res" >&5
15352 echo "${ECHO_T}$ac_res" >&6; }
15353 if test `eval echo '${'$as_ac_var'}'` = yes; then
15354 cat >>confdefs.h <<_ACEOF
15355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15363 for ac_func in nanosleep nl_langinfo
15365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 cat >conftest.$ac_ext <<_ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15379 #define $ac_func innocuous_$ac_func
15381 /* System header to define __stub macros and hopefully few prototypes,
15382 which can conflict with char $ac_func (); below.
15383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384 <limits.h> exists even on freestanding compilers. */
15387 # include <limits.h>
15389 # include <assert.h>
15394 /* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
15401 /* The GNU C library defines this for functions which it implements
15402 to always fail with ENOSYS. Some functions are actually named
15403 something starting with __ and the normal name is an alias. */
15404 #if defined __stub_$ac_func || defined __stub___$ac_func
15411 return $ac_func ();
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (ac_try="$ac_link"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_link") 2>conftest.er1
15425 grep -v '^ *+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest$ac_exeext &&
15433 $as_test_x conftest$ac_exeext; then
15434 eval "$as_ac_var=yes"
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 eval "$as_ac_var=no"
15442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15443 conftest$ac_exeext conftest.$ac_ext
15445 ac_res=`eval echo '${'$as_ac_var'}'`
15446 { echo "$as_me:$LINENO: result: $ac_res" >&5
15447 echo "${ECHO_T}$ac_res" >&6; }
15448 if test `eval echo '${'$as_ac_var'}'` = yes; then
15449 cat >>confdefs.h <<_ACEOF
15450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15457 for ac_header in varargs.h
15459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 ac_res=`eval echo '${'$as_ac_Header'}'`
15467 { echo "$as_me:$LINENO: result: $ac_res" >&5
15468 echo "${ECHO_T}$ac_res" >&6; }
15470 # Is the header compilable?
15471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15473 cat >conftest.$ac_ext <<_ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 $ac_includes_default
15480 #include <$ac_header>
15482 rm -f conftest.$ac_objext
15483 if { (ac_try="$ac_compile"
15484 case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_compile") 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } && {
15496 test -z "$ac_c_werror_flag" ||
15497 test ! -s conftest.err
15498 } && test -s conftest.$ac_objext; then
15499 ac_header_compiler=yes
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 ac_header_compiler=no
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15509 echo "${ECHO_T}$ac_header_compiler" >&6; }
15511 # Is the header present?
15512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15514 cat >conftest.$ac_ext <<_ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 #include <$ac_header>
15522 if { (ac_try="$ac_cpp conftest.$ac_ext"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } >/dev/null && {
15535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15538 ac_header_preproc=yes
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ac_header_preproc=no
15546 rm -f conftest.err conftest.$ac_ext
15547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15548 echo "${ECHO_T}$ac_header_preproc" >&6; }
15550 # So? What about this header?
15551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15557 ac_header_preproc=yes
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15580 eval "$as_ac_Header=\$ac_header_preproc"
15582 ac_res=`eval echo '${'$as_ac_Header'}'`
15583 { echo "$as_me:$LINENO: result: $ac_res" >&5
15584 echo "${ECHO_T}$ac_res" >&6; }
15587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15588 cat >>confdefs.h <<_ACEOF
15589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15597 # End of readline/conio stuff
15598 # -----------------------------------------------------------------------
15600 # -----------------------------------------------------------------------
15601 # Check for Python support
15603 { echo "$as_me:$LINENO: checking for Python support" >&5
15604 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15606 # Check whether --with-python was given.
15607 if test "${with_python+set}" = set; then
15608 withval=$with_python;
15611 if test "$withval" != "no"; then
15612 if test "$withval" = "yes"; then
15613 for python_root in /usr /usr/local /usr/sfw; do
15614 for ver in python2.2 python2.3 python2.4 python2.5; do
15615 if test -f $python_root/include/${ver}/Python.h; then
15616 PYTHON_INCDIR=-I$python_root/include/${ver}
15617 if test -d $python_root/lib64/${ver}/config; then
15618 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15620 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15626 if test x$PYTHON_INCDIR = x; then
15627 if test -f $prefix/include/Python.h; then
15628 PYTHON_INCDIR=-I$prefix/include
15629 if test -d $prefix/lib64/config; then
15630 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15632 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15635 { echo "$as_me:$LINENO: result: no" >&5
15636 echo "${ECHO_T}no" >&6; }
15637 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15638 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15639 { (exit 1); exit 1; }; }
15643 if test -f $withval/Python.h; then
15644 PYTHON_INCDIR=-I$withval
15645 PYTHON_LIBS="-L$withval/config -lpython"
15646 elif test -f $withval/include/Python.h; then
15647 PYTHON_INCDIR=-I$withval/include
15648 if test -d $withval/lib64/config; then
15649 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15651 PYTHON_LIBS="-L$withval/lib/config -lpython"
15653 elif test -f $withval/include/python/Python.h; then
15654 PYTHON_INCDIR=-I$withval/include/python
15655 if test -d $withval/lib64/python/config; then
15656 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15658 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15661 { echo "$as_me:$LINENO: result: no" >&5
15662 echo "${ECHO_T}no" >&6; }
15663 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15664 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15665 { (exit 1); exit 1; }; }
15668 cat >>confdefs.h <<\_ACEOF
15669 #define HAVE_PYTHON 1
15672 { echo "$as_me:$LINENO: result: yes" >&5
15673 echo "${ECHO_T}yes" >&6; }
15675 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15676 echo "$as_me: checking for more Python libs" >&6;}
15677 saved_LIBS="$LIBS"; LIBS=
15678 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15679 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15680 if test "${ac_cv_search_shm_open+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15683 ac_func_search_save_LIBS=$LIBS
15684 cat >conftest.$ac_ext <<_ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15691 /* Override any GCC internal prototype to avoid an error.
15692 Use char because int might match the return type of a GCC
15693 builtin and then its argument prototype would still apply. */
15701 return shm_open ();
15706 for ac_lib in '' rt; do
15707 if test -z "$ac_lib"; then
15708 ac_res="none required"
15711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15713 rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (ac_try="$ac_link"
15715 case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_link") 2>conftest.er1
15722 grep -v '^ *+' conftest.er1 >conftest.err
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } && {
15727 test -z "$ac_c_werror_flag" ||
15728 test ! -s conftest.err
15729 } && test -s conftest$ac_exeext &&
15730 $as_test_x conftest$ac_exeext; then
15731 ac_cv_search_shm_open=$ac_res
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15741 if test "${ac_cv_search_shm_open+set}" = set; then
15745 if test "${ac_cv_search_shm_open+set}" = set; then
15748 ac_cv_search_shm_open=no
15750 rm conftest.$ac_ext
15751 LIBS=$ac_func_search_save_LIBS
15753 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15754 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15755 ac_res=$ac_cv_search_shm_open
15756 if test "$ac_res" != no; then
15757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15762 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15763 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15764 if test "${ac_cv_lib_util_openpty+set}" = set; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 ac_check_lib_save_LIBS=$LIBS
15768 LIBS="-lutil $LIBS"
15769 cat >conftest.$ac_ext <<_ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15776 /* Override any GCC internal prototype to avoid an error.
15777 Use char because int might match the return type of a GCC
15778 builtin and then its argument prototype would still apply. */
15791 rm -f conftest.$ac_objext conftest$ac_exeext
15792 if { (ac_try="$ac_link"
15793 case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_link") 2>conftest.er1
15800 grep -v '^ *+' conftest.er1 >conftest.err
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } && {
15805 test -z "$ac_c_werror_flag" ||
15806 test ! -s conftest.err
15807 } && test -s conftest$ac_exeext &&
15808 $as_test_x conftest$ac_exeext; then
15809 ac_cv_lib_util_openpty=yes
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_cv_lib_util_openpty=no
15817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15818 conftest$ac_exeext conftest.$ac_ext
15819 LIBS=$ac_check_lib_save_LIBS
15821 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15822 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15823 if test $ac_cv_lib_util_openpty = yes; then
15824 cat >>confdefs.h <<_ACEOF
15825 #define HAVE_LIBUTIL 1
15828 LIBS="-lutil $LIBS"
15832 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15835 { echo "$as_me:$LINENO: result: no" >&5
15836 echo "${ECHO_T}no" >&6; }
15841 { echo "$as_me:$LINENO: result: no" >&5
15842 echo "${ECHO_T}no" >&6; }
15850 # Find where sockets are (especially for Solaris)
15851 # Do this before the TCP Wrappers test since tcp wrappers
15852 # uses the socket library and some linkers are stupid.
15854 { echo "$as_me:$LINENO: checking for socket" >&5
15855 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15856 if test "${ac_cv_func_socket+set}" = set; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 cat >conftest.$ac_ext <<_ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15865 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15867 #define socket innocuous_socket
15869 /* System header to define __stub macros and hopefully few prototypes,
15870 which can conflict with char socket (); below.
15871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15872 <limits.h> exists even on freestanding compilers. */
15875 # include <limits.h>
15877 # include <assert.h>
15882 /* Override any GCC internal prototype to avoid an error.
15883 Use char because int might match the return type of a GCC
15884 builtin and then its argument prototype would still apply. */
15889 /* The GNU C library defines this for functions which it implements
15890 to always fail with ENOSYS. Some functions are actually named
15891 something starting with __ and the normal name is an alias. */
15892 #if defined __stub_socket || defined __stub___socket
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (ac_try="$ac_link"
15906 case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_link") 2>conftest.er1
15913 grep -v '^ *+' conftest.er1 >conftest.err
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } && {
15918 test -z "$ac_c_werror_flag" ||
15919 test ! -s conftest.err
15920 } && test -s conftest$ac_exeext &&
15921 $as_test_x conftest$ac_exeext; then
15922 ac_cv_func_socket=yes
15924 echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15927 ac_cv_func_socket=no
15930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15931 conftest$ac_exeext conftest.$ac_ext
15933 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15934 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15935 if test $ac_cv_func_socket = yes; then
15936 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15937 echo "${ECHO_T}using libc's socket" >&6; }
15940 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15941 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15942 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 ac_check_lib_save_LIBS=$LIBS
15946 LIBS="-lxnet $LIBS"
15947 cat >conftest.$ac_ext <<_ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15954 /* Override any GCC internal prototype to avoid an error.
15955 Use char because int might match the return type of a GCC
15956 builtin and then its argument prototype would still apply. */
15969 rm -f conftest.$ac_objext conftest$ac_exeext
15970 if { (ac_try="$ac_link"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_link") 2>conftest.er1
15978 grep -v '^ *+' conftest.er1 >conftest.err
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } && {
15983 test -z "$ac_c_werror_flag" ||
15984 test ! -s conftest.err
15985 } && test -s conftest$ac_exeext &&
15986 $as_test_x conftest$ac_exeext; then
15987 ac_cv_lib_xnet_socket=yes
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 ac_cv_lib_xnet_socket=no
15995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15996 conftest$ac_exeext conftest.$ac_ext
15997 LIBS=$ac_check_lib_save_LIBS
15999 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16000 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16001 if test $ac_cv_lib_xnet_socket = yes; then
16002 cat >>confdefs.h <<_ACEOF
16003 #define HAVE_LIBXNET 1
16006 LIBS="-lxnet $LIBS"
16011 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16012 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16013 if test "${ac_cv_lib_socket_socket+set}" = set; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 ac_check_lib_save_LIBS=$LIBS
16017 LIBS="-lsocket $LIBS"
16018 cat >conftest.$ac_ext <<_ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16025 /* Override any GCC internal prototype to avoid an error.
16026 Use char because int might match the return type of a GCC
16027 builtin and then its argument prototype would still apply. */
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (ac_try="$ac_link"
16042 case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_link") 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } && {
16054 test -z "$ac_c_werror_flag" ||
16055 test ! -s conftest.err
16056 } && test -s conftest$ac_exeext &&
16057 $as_test_x conftest$ac_exeext; then
16058 ac_cv_lib_socket_socket=yes
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ac_cv_lib_socket_socket=no
16066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16067 conftest$ac_exeext conftest.$ac_ext
16068 LIBS=$ac_check_lib_save_LIBS
16070 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16071 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16072 if test $ac_cv_lib_socket_socket = yes; then
16073 cat >>confdefs.h <<_ACEOF
16074 #define HAVE_LIBSOCKET 1
16077 LIBS="-lsocket $LIBS"
16082 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16083 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16084 if test "${ac_cv_lib_inet_socket+set}" = set; then
16085 echo $ECHO_N "(cached) $ECHO_C" >&6
16087 ac_check_lib_save_LIBS=$LIBS
16088 LIBS="-linet $LIBS"
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16096 /* Override any GCC internal prototype to avoid an error.
16097 Use char because int might match the return type of a GCC
16098 builtin and then its argument prototype would still apply. */
16111 rm -f conftest.$ac_objext conftest$ac_exeext
16112 if { (ac_try="$ac_link"
16113 case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_link") 2>conftest.er1
16120 grep -v '^ *+' conftest.er1 >conftest.err
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } && {
16125 test -z "$ac_c_werror_flag" ||
16126 test ! -s conftest.err
16127 } && test -s conftest$ac_exeext &&
16128 $as_test_x conftest$ac_exeext; then
16129 ac_cv_lib_inet_socket=yes
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 ac_cv_lib_inet_socket=no
16137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16138 conftest$ac_exeext conftest.$ac_ext
16139 LIBS=$ac_check_lib_save_LIBS
16141 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16142 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16143 if test $ac_cv_lib_inet_socket = yes; then
16144 cat >>confdefs.h <<_ACEOF
16145 #define HAVE_LIBINET 1
16148 LIBS="-linet $LIBS"
16156 # -----------------------------------------------------------
16157 # Check whether user wants TCP wrappers support (default off)
16158 # -----------------------------------------------------------
16162 # Check whether --with-tcp-wrappers was given.
16163 if test "${with_tcp_wrappers+set}" = set; then
16164 withval=$with_tcp_wrappers;
16165 if test "x$withval" != "xno" ; then
16167 LIBS="$saved_LIBS -lwrap"
16168 { echo "$as_me:$LINENO: checking for libwrap" >&5
16169 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16170 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16171 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16172 if test "${ac_cv_search_nanosleep+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 ac_func_search_save_LIBS=$LIBS
16176 cat >conftest.$ac_ext <<_ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16183 /* Override any GCC internal prototype to avoid an error.
16184 Use char because int might match the return type of a GCC
16185 builtin and then its argument prototype would still apply. */
16193 return nanosleep ();
16198 for ac_lib in '' rt; do
16199 if test -z "$ac_lib"; then
16200 ac_res="none required"
16203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16205 rm -f conftest.$ac_objext conftest$ac_exeext
16206 if { (ac_try="$ac_link"
16207 case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_link") 2>conftest.er1
16214 grep -v '^ *+' conftest.er1 >conftest.err
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } && {
16219 test -z "$ac_c_werror_flag" ||
16220 test ! -s conftest.err
16221 } && test -s conftest$ac_exeext &&
16222 $as_test_x conftest$ac_exeext; then
16223 ac_cv_search_nanosleep=$ac_res
16225 echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16233 if test "${ac_cv_search_nanosleep+set}" = set; then
16237 if test "${ac_cv_search_nanosleep+set}" = set; then
16240 ac_cv_search_nanosleep=no
16242 rm conftest.$ac_ext
16243 LIBS=$ac_func_search_save_LIBS
16245 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16246 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16247 ac_res=$ac_cv_search_nanosleep
16248 if test "$ac_res" != no; then
16249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <sys/types.h>
16261 int deny_severity = 0;
16262 int allow_severity = 0;
16263 struct request_info *req;
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (ac_try="$ac_link"
16274 case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_link") 2>conftest.er1
16281 grep -v '^ *+' conftest.er1 >conftest.err
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } && {
16286 test -z "$ac_c_werror_flag" ||
16287 test ! -s conftest.err
16288 } && test -s conftest$ac_exeext &&
16289 $as_test_x conftest$ac_exeext; then
16291 { echo "$as_me:$LINENO: result: yes" >&5
16292 echo "${ECHO_T}yes" >&6; }
16294 cat >>confdefs.h <<\_ACEOF
16295 #define HAVE_LIBWRAP 1
16303 echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16307 LIBS="$saved_LIBS -lwrap -lnsl"
16308 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16309 cat >conftest.$ac_ext <<_ACEOF
16312 cat confdefs.h >>conftest.$ac_ext
16313 cat >>conftest.$ac_ext <<_ACEOF
16314 /* end confdefs.h. */
16315 #include <sys/types.h>
16317 int deny_severity = 0;
16318 int allow_severity = 0;
16319 struct request_info *req;
16328 rm -f conftest.$ac_objext conftest$ac_exeext
16329 if { (ac_try="$ac_link"
16330 case "(($ac_try" in
16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332 *) ac_try_echo=$ac_try;;
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335 (eval "$ac_link") 2>conftest.er1
16337 grep -v '^ *+' conftest.er1 >conftest.err
16339 cat conftest.err >&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } && {
16342 test -z "$ac_c_werror_flag" ||
16343 test ! -s conftest.err
16344 } && test -s conftest$ac_exeext &&
16345 $as_test_x conftest$ac_exeext; then
16347 { echo "$as_me:$LINENO: result: yes" >&5
16348 echo "${ECHO_T}yes" >&6; }
16350 cat >>confdefs.h <<\_ACEOF
16351 #define HAVE_LIBWRAP 1
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16362 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16363 echo "$as_me: error: *** libwrap missing" >&2;}
16364 { (exit 1); exit 1; }; }
16368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16369 conftest$ac_exeext conftest.$ac_ext
16373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16374 conftest$ac_exeext conftest.$ac_ext
16381 # -----------------------------------------------------------
16382 # Check whether OpenSSL is available
16383 # -----------------------------------------------------------
16384 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16385 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16387 # Check whether --with-openssl was given.
16388 if test "${with_openssl+set}" = set; then
16389 withval=$with_openssl; with_openssl_directory=${withval}
16393 if test "x$with_openssl_directory" != "x"; then
16394 OPENSSL_LIBS="-lssl -lcrypto"
16397 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16398 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16399 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16402 saved_LIBS="${LIBS}"
16403 saved_CFLAGS="${CFLAGS}"
16404 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16405 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16407 cat >conftest.$ac_ext <<_ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 #include <openssl/ssl.h>
16417 CRYPTO_set_id_callback(NULL);
16422 rm -f conftest.$ac_objext conftest$ac_exeext
16423 if { (ac_try="$ac_link"
16424 case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_link") 2>conftest.er1
16431 grep -v '^ *+' conftest.er1 >conftest.err
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } && {
16436 test -z "$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16438 } && test -s conftest$ac_exeext &&
16439 $as_test_x conftest$ac_exeext; then
16442 support_crypto="yes"
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16453 conftest$ac_exeext conftest.$ac_ext
16455 cat >conftest.$ac_ext <<_ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 #include <openssl/evp.h>
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_link") 2>conftest.er1
16479 grep -v '^ *+' conftest.er1 >conftest.err
16481 cat conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } && {
16484 test -z "$ac_c_werror_flag" ||
16485 test ! -s conftest.err
16486 } && test -s conftest$ac_exeext &&
16487 $as_test_x conftest$ac_exeext; then
16488 ac_cv_openssl_sha2="yes"
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16493 ac_cv_openssl_sha2="no"
16497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16498 conftest$ac_exeext conftest.$ac_ext
16500 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16501 # implementation, presumably for export reasons. If 192bit AES
16502 # is available, we assume that we're running with a 'non-export'
16504 cat >conftest.$ac_ext <<_ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16510 #include <openssl/evp.h>
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (ac_try="$ac_link"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_link") 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } && {
16533 test -z "$ac_c_werror_flag" ||
16534 test ! -s conftest.err
16535 } && test -s conftest$ac_exeext &&
16536 $as_test_x conftest$ac_exeext; then
16537 ac_cv_openssl_export="no"
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 ac_cv_openssl_export="yes"
16546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16547 conftest$ac_exeext conftest.$ac_ext
16549 LIBS="${saved_LIBS}"
16550 CFLAGS="${saved_CFLAGS}"
16552 if test "$support_tls" = "yes"; then
16554 cat >>confdefs.h <<\_ACEOF
16555 #define HAVE_OPENSSL 1
16559 cat >>confdefs.h <<\_ACEOF
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_CRYPTO 1
16570 if test "$ac_cv_openssl_sha2" = "yes"; then
16572 cat >>confdefs.h <<\_ACEOF
16573 #define HAVE_SHA2 1
16578 if test "$ac_cv_openssl_export" = "yes"; then
16580 cat >>confdefs.h <<\_ACEOF
16581 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16587 support_crypto="no"
16592 { echo "$as_me:$LINENO: result: $support_tls" >&5
16593 echo "${ECHO_T}$support_tls" >&6; }
16598 # -----------------------------------------------------------
16599 # dlopen is needed for plugins
16600 # -----------------------------------------------------------
16601 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16602 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16603 if test "${ac_cv_search_dlopen+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 ac_func_search_save_LIBS=$LIBS
16607 cat >conftest.$ac_ext <<_ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h. */
16614 /* Override any GCC internal prototype to avoid an error.
16615 Use char because int might match the return type of a GCC
16616 builtin and then its argument prototype would still apply. */
16629 for ac_lib in '' dl; do
16630 if test -z "$ac_lib"; then
16631 ac_res="none required"
16634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16636 rm -f conftest.$ac_objext conftest$ac_exeext
16637 if { (ac_try="$ac_link"
16638 case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_link") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest$ac_exeext &&
16653 $as_test_x conftest$ac_exeext; then
16654 ac_cv_search_dlopen=$ac_res
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16664 if test "${ac_cv_search_dlopen+set}" = set; then
16668 if test "${ac_cv_search_dlopen+set}" = set; then
16671 ac_cv_search_dlopen=no
16673 rm conftest.$ac_ext
16674 LIBS=$ac_func_search_save_LIBS
16676 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16677 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16678 ac_res=$ac_cv_search_dlopen
16679 if test "$ac_res" != no; then
16680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16685 # ------------------------------------------
16686 # Where to place working dir
16687 # ------------------------------------------
16688 working_dir=`eval echo ${prefix}/var/bacula/working`
16690 # Check whether --with-working-dir was given.
16691 if test "${with_working_dir+set}" = set; then
16692 withval=$with_working_dir;
16693 if test "x$withval" != "xno" ; then
16694 working_dir=$withval
16703 # ------------------------------------------------------------------
16704 # If the user has not set archivedir, we set our default as /tmp
16705 # ------------------------------------------------------------------
16708 # Check whether --with-archivedir was given.
16709 if test "${with_archivedir+set}" = set; then
16710 withval=$with_archivedir;
16711 if test "x$withval" != "xno" ; then
16712 archivedir=$withval
16723 # ------------------------------------------
16724 # Where to place scriptdir (script files)
16725 # ------------------------------------------
16726 scriptdir=`eval echo ${sysconfdir}`
16728 # Check whether --with-scriptdir was given.
16729 if test "${with_scriptdir+set}" = set; then
16730 withval=$with_scriptdir;
16731 if test "x$withval" != "xno" ; then
16742 # ------------------------------------------
16743 # Where to send dump email
16744 # ------------------------------------------
16745 dump_email=root@localhost
16747 # Check whether --with-dump-email was given.
16748 if test "${with_dump_email+set}" = set; then
16749 withval=$with_dump_email;
16750 if test "x$withval" != "xno" ; then
16751 dump_email=$withval
16760 # ------------------------------------------
16761 # Where to send job email
16762 # ------------------------------------------
16763 job_email=root@localhost
16765 # Check whether --with-job-email was given.
16766 if test "${with_job_email+set}" = set; then
16767 withval=$with_job_email;
16768 if test "x$withval" != "xno" ; then
16778 # ------------------------------------------
16779 # Where to find smtp host
16780 # ------------------------------------------
16781 smtp_host=localhost
16783 # Check whether --with-smtp_host was given.
16784 if test "${with_smtp_host+set}" = set; then
16785 withval=$with_smtp_host;
16786 if test "x$withval" != "xno" ; then
16797 # ------------------------------------
16798 # Where to place pid files
16799 # ------------------------------------
16802 # Check whether --with-pid-dir was given.
16803 if test "${with_pid_dir+set}" = set; then
16804 withval=$with_pid_dir;
16805 if test "x$withval" != "xno" ; then
16813 cat >>confdefs.h <<_ACEOF
16814 #define _PATH_BACULA_PIDDIR "$piddir"
16820 # ------------------------------------
16821 # Where to place subsys "lock file"
16822 # ------------------------------------
16823 subsysdir=/var/run/subsys
16824 if test -d /var/run/subsys; then
16825 subsysdir=/var/run/subsys
16826 elif test -d /var/lock/subsys; then
16827 subsysdir=/var/lock/subsys
16829 subsysdir=/var/run/subsys
16832 # Check whether --with-subsys-dir was given.
16833 if test "${with_subsys_dir+set}" = set; then
16834 withval=$with_subsys_dir;
16835 if test "x$withval" != "xno" ; then
16847 # ------------------------------------
16848 # Where to start assigning ports
16849 # ------------------------------------
16852 # Check whether --with-baseport was given.
16853 if test "${with_baseport+set}" = set; then
16854 withval=$with_baseport;
16855 if test "x$withval" != "xno" ; then
16864 dir_port=`expr $baseport`
16865 fd_port=`expr $baseport + 1`
16866 sd_port=`expr $fd_port + 1`
16873 # ------------------------------------------
16874 # Generate passwords
16875 # ------------------------------------------
16878 # Check whether --with-dir-password was given.
16879 if test "${with_dir_password+set}" = set; then
16880 withval=$with_dir_password;
16881 if test "x$withval" != "xno" ; then
16882 dir_password=$withval
16889 if test "x$dir_password" = "x" ; then
16890 if test "x$OPENSSL" = "xnone" ; then
16891 key=`autoconf/randpass 33`
16893 key=`openssl rand -base64 33`
16900 # Check whether --with-fd-password was given.
16901 if test "${with_fd_password+set}" = set; then
16902 withval=$with_fd_password;
16903 if test "x$withval" != "xno" ; then
16904 fd_password=$withval
16911 if test "x$fd_password" = "x" ; then
16912 if test "x$OPENSSL" = "xnone" ; then
16913 key=`autoconf/randpass 37`
16915 key=`openssl rand -base64 33`
16922 # Check whether --with-sd-password was given.
16923 if test "${with_sd_password+set}" = set; then
16924 withval=$with_sd_password;
16925 if test "x$withval" != "xno" ; then
16926 sd_password=$withval
16933 if test "x$sd_password" = "x" ; then
16934 if test "x$OPENSSL" = "xnone" ; then
16935 key=`autoconf/randpass 41`
16937 key=`openssl rand -base64 33`
16944 # Check whether --with-mon-dir-password was given.
16945 if test "${with_mon_dir_password+set}" = set; then
16946 withval=$with_mon_dir_password;
16947 if test "x$withval" != "xno" ; then
16948 mon_dir_password=$withval
16955 if test "x$mon_dir_password" = "x" ; then
16956 if test "x$OPENSSL" = "xnone" ; then
16957 key=`autoconf/randpass 33`
16959 key=`openssl rand -base64 33`
16961 mon_dir_password=$key
16966 # Check whether --with-mon-fd-password was given.
16967 if test "${with_mon_fd_password+set}" = set; then
16968 withval=$with_mon_fd_password;
16969 if test "x$withval" != "xno" ; then
16970 mon_fd_password=$withval
16977 if test "x$mon_fd_password" = "x" ; then
16978 if test "x$OPENSSL" = "xnone" ; then
16979 key=`autoconf/randpass 37`
16981 key=`openssl rand -base64 33`
16983 mon_fd_password=$key
16988 # Check whether --with-mon-sd-password was given.
16989 if test "${with_mon_sd_password+set}" = set; then
16990 withval=$with_mon_sd_password;
16991 if test "x$withval" != "xno" ; then
16992 mon_sd_password=$withval
16999 if test "x$mon_sd_password" = "x" ; then
17000 if test "x$OPENSSL" = "xnone" ; then
17001 key=`autoconf/randpass 41`
17003 key=`openssl rand -base64 33`
17005 mon_sd_password=$key
17016 # Pickup any database name
17020 # Check whether --with-db_name was given.
17021 if test "${with_db_name+set}" = set; then
17022 withval=$with_db_name;
17023 if test "x$withval" != "x" ; then
17034 # Check whether --with-db_user was given.
17035 if test "${with_db_user+set}" = set; then
17036 withval=$with_db_user;
17037 if test "x$withval" != "x" ; then
17048 # Handle users and groups for each daemon
17052 # Check whether --with-dir_user was given.
17053 if test "${with_dir_user+set}" = set; then
17054 withval=$with_dir_user;
17055 if test "x$withval" != "x" ; then
17065 # Check whether --with-dir_group was given.
17066 if test "${with_dir_group+set}" = set; then
17067 withval=$with_dir_group;
17068 if test "x$withval" != "x" ; then
17078 # Check whether --with-sd_user was given.
17079 if test "${with_sd_user+set}" = set; then
17080 withval=$with_sd_user;
17081 if test "x$withval" != "x" ; then
17091 # Check whether --with-sd_group was given.
17092 if test "${with_sd_group+set}" = set; then
17093 withval=$with_sd_group;
17094 if test "x$withval" != "x" ; then
17104 # Check whether --with-fd_user was given.
17105 if test "${with_fd_user+set}" = set; then
17106 withval=$with_fd_user;
17107 if test "x$withval" != "x" ; then
17117 # Check whether --with-fd_group was given.
17118 if test "${with_fd_group+set}" = set; then
17119 withval=$with_fd_group;
17120 if test "x$withval" != "x" ; then
17136 # allow setting default executable permissions
17140 # Check whether --with-sbin-perm was given.
17141 if test "${with_sbin_perm+set}" = set; then
17142 withval=$with_sbin_perm;
17143 if test "x$withval" != "x" ; then
17153 # ------------------------------------------------
17154 # Bacula check for various SQL database engines
17155 # ------------------------------------------------
17159 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17160 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17162 # Check whether --with-postgresql was given.
17163 if test "${with_postgresql+set}" = set; then
17164 withval=$with_postgresql;
17165 if test "$withval" != "no"; then
17166 if test "$db_found" = "yes"; then
17167 { echo "$as_me:$LINENO: result: error" >&5
17168 echo "${ECHO_T}error" >&6; }
17169 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17170 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17171 { (exit 1); exit 1; }; };
17173 if test "$withval" = "yes"; then
17174 PG_CONFIG=`which pg_config`
17175 if test -n "$PG_CONFIG";then
17176 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17177 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17178 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17179 elif test -f /usr/local/include/libpq-fe.h; then
17180 POSTGRESQL_INCDIR=/usr/local/include
17181 if test -d /usr/local/lib64; then
17182 POSTGRESQL_LIBDIR=/usr/local/lib64
17184 POSTGRESQL_LIBDIR=/usr/local/lib
17186 POSTGRESQL_BINDIR=/usr/local/bin
17187 elif test -f /usr/include/libpq-fe.h; then
17188 POSTGRESQL_INCDIR=/usr/include
17189 if test -d /usr/lib64; then
17190 POSTGRESQL_LIBDIR=/usr/lib64
17192 POSTGRESQL_LIBDIR=/usr/lib
17194 POSTGRESQL_BINDIR=/usr/bin
17195 elif test -f /usr/include/pgsql/libpq-fe.h; then
17196 POSTGRESQL_INCDIR=/usr/include/pgsql
17197 if test -d /usr/lib64/pgsql; then
17198 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17200 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17202 POSTGRESQL_BINDIR=/usr/bin
17203 elif test -f /usr/include/postgresql/libpq-fe.h; then
17204 POSTGRESQL_INCDIR=/usr/include/postgresql
17205 if test -d /usr/lib64/postgresql; then
17206 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17208 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17210 POSTGRESQL_BINDIR=/usr/bin
17212 { echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6; }
17214 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17215 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17216 { (exit 1); exit 1; }; }
17218 elif test -f $withval/include/libpq-fe.h; then
17219 POSTGRESQL_INCDIR=$withval/include
17220 POSTGRESQL_LIBDIR=$withval/lib
17221 POSTGRESQL_BINDIR=$withval/bin
17222 elif test -f $withval/include/postgresql/libpq-fe.h; then
17223 POSTGRESQL_INCDIR=$withval/include/postgresql
17224 if test -d $withval/lib64; then
17225 POSTGRESQL_LIBDIR=$withval/lib64
17227 POSTGRESQL_LIBDIR=$withval/lib
17229 POSTGRESQL_BINDIR=$withval/bin
17231 { echo "$as_me:$LINENO: result: no" >&5
17232 echo "${ECHO_T}no" >&6; }
17233 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17234 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17235 { (exit 1); exit 1; }; }
17237 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17238 { echo "$as_me:$LINENO: checking for crypt" >&5
17239 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17240 if test "${ac_cv_func_crypt+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 cat >conftest.$ac_ext <<_ACEOF
17246 cat confdefs.h >>conftest.$ac_ext
17247 cat >>conftest.$ac_ext <<_ACEOF
17248 /* end confdefs.h. */
17249 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17251 #define crypt innocuous_crypt
17253 /* System header to define __stub macros and hopefully few prototypes,
17254 which can conflict with char crypt (); below.
17255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17256 <limits.h> exists even on freestanding compilers. */
17259 # include <limits.h>
17261 # include <assert.h>
17266 /* Override any GCC internal prototype to avoid an error.
17267 Use char because int might match the return type of a GCC
17268 builtin and then its argument prototype would still apply. */
17273 /* The GNU C library defines this for functions which it implements
17274 to always fail with ENOSYS. Some functions are actually named
17275 something starting with __ and the normal name is an alias. */
17276 #if defined __stub_crypt || defined __stub___crypt
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (ac_try="$ac_link"
17290 case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_link") 2>conftest.er1
17297 grep -v '^ *+' conftest.er1 >conftest.err
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && {
17302 test -z "$ac_c_werror_flag" ||
17303 test ! -s conftest.err
17304 } && test -s conftest$ac_exeext &&
17305 $as_test_x conftest$ac_exeext; then
17306 ac_cv_func_crypt=yes
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17311 ac_cv_func_crypt=no
17314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17315 conftest$ac_exeext conftest.$ac_ext
17317 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17318 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17319 if test $ac_cv_func_crypt = yes; then
17322 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17323 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17324 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 ac_check_lib_save_LIBS=$LIBS
17328 LIBS="-lcrypt $LIBS"
17329 cat >conftest.$ac_ext <<_ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17336 /* Override any GCC internal prototype to avoid an error.
17337 Use char because int might match the return type of a GCC
17338 builtin and then its argument prototype would still apply. */
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_link") 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest$ac_exeext &&
17368 $as_test_x conftest$ac_exeext; then
17369 ac_cv_lib_crypt_crypt=yes
17371 echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17374 ac_cv_lib_crypt_crypt=no
17377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17378 conftest$ac_exeext conftest.$ac_ext
17379 LIBS=$ac_check_lib_save_LIBS
17381 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17382 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17383 if test $ac_cv_lib_crypt_crypt = yes; then
17384 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17389 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17390 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17391 SQL_BINDIR=$POSTGRESQL_BINDIR
17392 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_POSTGRESQL 1
17398 { echo "$as_me:$LINENO: result: yes" >&5
17399 echo "${ECHO_T}yes" >&6; }
17401 support_postgresql=yes
17405 { echo "$as_me:$LINENO: result: no" >&5
17406 echo "${ECHO_T}no" >&6; }
17411 { echo "$as_me:$LINENO: result: no" >&5
17412 echo "${ECHO_T}no" >&6; }
17424 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17425 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17427 # Check whether --with-mysql was given.
17428 if test "${with_mysql+set}" = set; then
17429 withval=$with_mysql;
17430 if test "$withval" != "no"; then
17431 if test "$withval" = "yes"; then
17432 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17433 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17434 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17435 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17436 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17438 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17440 MYSQL_BINDIR=/usr/local/mysql/bin
17441 elif test -f /usr/include/mysql/mysql.h; then
17442 MYSQL_INCDIR=/usr/include/mysql
17443 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17444 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17445 MYSQL_LIBDIR=/usr/lib64/mysql
17446 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17447 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17448 MYSQL_LIBDIR=/usr/lib/mysql
17450 MYSQL_LIBDIR=/usr/lib
17452 MYSQL_BINDIR=/usr/bin
17453 elif test -f /usr/include/mysql.h; then
17454 MYSQL_INCDIR=/usr/include
17455 if test -f /usr/lib64/libmysqlclient_r.a \
17456 -o -f /usr/lib64/libmysqlclient_r.so; then
17457 MYSQL_LIBDIR=/usr/lib64
17459 MYSQL_LIBDIR=/usr/lib
17461 MYSQL_BINDIR=/usr/bin
17462 elif test -f /usr/local/include/mysql/mysql.h; then
17463 MYSQL_INCDIR=/usr/local/include/mysql
17464 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17465 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17466 MYSQL_LIBDIR=/usr/local/lib64/mysql
17468 MYSQL_LIBDIR=/usr/local/lib/mysql
17470 MYSQL_BINDIR=/usr/local/bin
17471 elif test -f /usr/local/include/mysql.h; then
17472 MYSQL_INCDIR=/usr/local/include
17473 if test -f /usr/local/lib64/libmysqlclient_r.a \
17474 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17475 MYSQL_LIBDIR=/usr/local/lib64
17477 MYSQL_LIBDIR=/usr/local/lib
17479 MYSQL_BINDIR=/usr/local/bin
17481 { echo "$as_me:$LINENO: result: no" >&5
17482 echo "${ECHO_T}no" >&6; }
17483 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17484 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17485 { (exit 1); exit 1; }; }
17488 if test -f $withval/include/mysql/mysql.h; then
17489 MYSQL_INCDIR=$withval/include/mysql
17490 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17491 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17492 MYSQL_LIBDIR=$withval/lib64/mysql
17494 MYSQL_LIBDIR=$withval/lib/mysql
17496 if test -f $withval/lib/libmysqlclient_r.so; then
17497 MYSQL_LIBDIR=$withval/lib
17500 MYSQL_BINDIR=$withval/bin
17501 elif test -f $withval/include/mysql.h; then
17502 MYSQL_INCDIR=$withval/include
17503 if test -f $withval/lib64/libmysqlclient_r.a \
17504 -o -f $withval/lib64/libmysqlclient_r.so; then
17505 MYSQL_LIBDIR=$withval/lib64
17507 MYSQL_LIBDIR=$withval/lib
17509 MYSQL_BINDIR=$withval/bin
17511 { echo "$as_me:$LINENO: result: no" >&5
17512 echo "${ECHO_T}no" >&6; }
17513 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17514 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17515 { (exit 1); exit 1; }; }
17518 SQL_INCLUDE=-I$MYSQL_INCDIR
17519 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17520 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17521 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17522 cat >>confdefs.h <<\_ACEOF
17523 #define HAVE_THREAD_SAFE_MYSQL 1
17527 SQL_BINDIR=$MYSQL_BINDIR
17528 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17530 cat >>confdefs.h <<\_ACEOF
17531 #define HAVE_MYSQL 1
17534 { echo "$as_me:$LINENO: result: yes" >&5
17535 echo "${ECHO_T}yes" >&6; }
17542 { echo "$as_me:$LINENO: result: no" >&5
17543 echo "${ECHO_T}no" >&6; }
17551 # Check whether --with-embedded-mysql was given.
17552 if test "${with_embedded_mysql+set}" = set; then
17553 withval=$with_embedded_mysql;
17554 if test "$withval" != "no"; then
17555 if test "$withval" = "yes"; then
17556 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17557 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17558 if test -d /usr/local/mysql/lib64/mysql; then
17559 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17561 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17563 MYSQL_BINDIR=/usr/local/mysql/bin
17564 elif test -f /usr/include/mysql/mysql.h; then
17565 MYSQL_INCDIR=/usr/include/mysql
17566 if test -d /usr/lib64/mysql; then
17567 MYSQL_LIBDIR=/usr/lib64/mysql
17569 MYSQL_LIBDIR=/usr/lib/mysql
17571 MYSQL_BINDIR=/usr/bin
17572 elif test -f /usr/include/mysql.h; then
17573 MYSQL_INCDIR=/usr/include
17574 if test -d /usr/lib64; then
17575 MYSQL_LIBDIR=/usr/lib64
17577 MYSQL_LIBDIR=/usr/lib
17579 MYSQL_BINDIR=/usr/bin
17580 elif test -f /usr/local/include/mysql/mysql.h; then
17581 MYSQL_INCDIR=/usr/local/include/mysql
17582 if test -d /usr/local/lib64/mysql; then
17583 MYSQL_LIBDIR=/usr/local/lib64/mysql
17585 MYSQL_LIBDIR=/usr/local/lib/mysql
17587 MYSQL_BINDIR=/usr/local/bin
17588 elif test -f /usr/local/include/mysql.h; then
17589 MYSQL_INCDIR=/usr/local/include
17590 if test -d /usr/local/lib64; then
17591 MYSQL_LIBDIR=/usr/local/lib64
17593 MYSQL_LIBDIR=/usr/local/lib
17595 MYSQL_BINDIR=/usr/local/bin
17597 { echo "$as_me:$LINENO: result: no" >&5
17598 echo "${ECHO_T}no" >&6; }
17599 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17600 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17601 { (exit 1); exit 1; }; }
17604 if test -f $withval/include/mysql/mysql.h; then
17605 MYSQL_INCDIR=$withval/include/mysql
17606 if test -d $withval/lib64/mysql; then
17607 MYSQL_LIBDIR=$withval/lib64/mysql
17609 MYSQL_LIBDIR=$withval/lib/mysql
17611 MYSQL_BINDIR=$withval/bin
17612 elif test -f $withval/include/mysql.h; then
17613 MYSQL_INCDIR=$withval/include
17614 if test -d $withval/lib64; then
17615 MYSQL_LIBDIR=$withval/lib64
17617 MYSQL_LIBDIR=$withval/lib
17619 MYSQL_BINDIR=$withval/bin
17621 { echo "$as_me:$LINENO: result: no" >&5
17622 echo "${ECHO_T}no" >&6; }
17623 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17624 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17625 { (exit 1); exit 1; }; }
17628 SQL_INCLUDE=-I$MYSQL_INCDIR
17629 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17630 SQL_BINDIR=$MYSQL_BINDIR
17631 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17633 cat >>confdefs.h <<\_ACEOF
17634 #define HAVE_MYSQL 1
17637 cat >>confdefs.h <<\_ACEOF
17638 #define HAVE_EMBEDDED_MYSQL 1
17641 { echo "$as_me:$LINENO: result: yes" >&5
17642 echo "${ECHO_T}yes" >&6; }
17649 { echo "$as_me:$LINENO: result: no" >&5
17650 echo "${ECHO_T}no" >&6; }
17666 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17667 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17669 # Check whether --with-sqlite3 was given.
17670 if test "${with_sqlite3+set}" = set; then
17671 withval=$with_sqlite3;
17672 if test "$withval" != "no"; then
17673 if test "$withval" = "yes"; then
17674 if test -f /usr/local/include/sqlite3.h; then
17675 SQLITE_INCDIR=/usr/local/include
17676 if test -d /usr/local/lib64; then
17677 SQLITE_LIBDIR=/usr/local/lib64
17679 SQLITE_LIBDIR=/usr/local/lib
17681 SQLITE_BINDIR=/usr/local/bin
17682 elif test -f /usr/include/sqlite3.h; then
17683 SQLITE_INCDIR=/usr/include
17684 if test -d /usr/lib64; then
17685 SQLITE_LIBDIR=/usr/lib64
17687 SQLITE_LIBDIR=/usr/lib
17689 SQLITE_BINDIR=/usr/bin
17690 elif test -f $prefix/include/sqlite3.h; then
17691 SQLITE_INCDIR=$prefix/include
17692 if test -d $prefix/lib64; then
17693 SQLITE_LIBDIR=$prefix/lib64
17695 SQLITE_LIBDIR=$prefix/lib
17697 SQLITE_BINDIR=$prefix/bin
17699 { echo "$as_me:$LINENO: result: no" >&5
17700 echo "${ECHO_T}no" >&6; }
17701 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17702 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17703 { (exit 1); exit 1; }; }
17706 if test -f $withval/sqlite3.h; then
17707 SQLITE_INCDIR=$withval
17708 SQLITE_LIBDIR=$withval
17709 SQLITE_BINDIR=$withval
17710 elif test -f $withval/include/sqlite3.h; then
17711 SQLITE_INCDIR=$withval/include
17712 if test -d $withval/lib64; then
17713 SQLITE_LIBDIR=$withval/lib64
17715 SQLITE_LIBDIR=$withval/lib
17717 SQLITE_BINDIR=$withval/bin
17719 { echo "$as_me:$LINENO: result: no" >&5
17720 echo "${ECHO_T}no" >&6; }
17721 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17722 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17723 { (exit 1); exit 1; }; }
17726 SQL_INCLUDE=-I$SQLITE_INCDIR
17727 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17728 SQL_BINDIR=$SQLITE_BINDIR
17729 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17731 cat >>confdefs.h <<\_ACEOF
17732 #define HAVE_SQLITE3 1
17735 { echo "$as_me:$LINENO: result: yes" >&5
17736 echo "${ECHO_T}yes" >&6; }
17738 support_sqlite3=yes
17743 { echo "$as_me:$LINENO: result: no" >&5
17744 echo "${ECHO_T}no" >&6; }
17749 { echo "$as_me:$LINENO: result: no" >&5
17750 echo "${ECHO_T}no" >&6; }
17762 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17763 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17765 # Check whether --with-sqlite was given.
17766 if test "${with_sqlite+set}" = set; then
17767 withval=$with_sqlite;
17768 if test "$withval" != "no"; then
17769 if test "$withval" = "yes"; then
17770 if test -f /usr/local/include/sqlite.h; then
17771 SQLITE_INCDIR=/usr/local/include
17772 if test -d /usr/local/lib64; then
17773 SQLITE_LIBDIR=/usr/local/lib64
17775 SQLITE_LIBDIR=/usr/local/lib
17777 SQLITE_BINDIR=/usr/local/bin
17778 elif test -f /usr/include/sqlite.h; then
17779 SQLITE_INCDIR=/usr/include
17780 if test -d /usr/lib64; then
17781 SQLITE_LIBDIR=/usr/lib64
17783 SQLITE_LIBDIR=/usr/lib
17785 SQLITE_BINDIR=/usr/bin
17786 elif test -f $prefix/include/sqlite.h; then
17787 SQLITE_INCDIR=$prefix/include
17788 if test -d $prefix/lib64; then
17789 SQLITE_LIBDIR=$prefix/lib64
17791 SQLITE_LIBDIR=$prefix/lib
17793 SQLITE_BINDIR=$prefix/bin
17795 { echo "$as_me:$LINENO: result: no" >&5
17796 echo "${ECHO_T}no" >&6; }
17797 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17798 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17799 { (exit 1); exit 1; }; }
17802 if test -f $withval/sqlite.h; then
17803 SQLITE_INCDIR=$withval
17804 SQLITE_LIBDIR=$withval
17805 SQLITE_BINDIR=$withval
17806 elif test -f $withval/include/sqlite.h; then
17807 SQLITE_INCDIR=$withval/include
17808 if test -d $withval/lib64; then
17809 SQLITE_LIBDIR=$withval/lib64
17811 SQLITE_LIBDIR=$withval/lib
17813 SQLITE_BINDIR=$withval/bin
17815 { echo "$as_me:$LINENO: result: no" >&5
17816 echo "${ECHO_T}no" >&6; }
17817 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17818 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17819 { (exit 1); exit 1; }; }
17822 SQL_INCLUDE=-I$SQLITE_INCDIR
17823 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17824 SQL_BINDIR=$SQLITE_BINDIR
17825 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17827 cat >>confdefs.h <<\_ACEOF
17828 #define HAVE_SQLITE 1
17831 { echo "$as_me:$LINENO: result: yes" >&5
17832 echo "${ECHO_T}yes" >&6; }
17839 { echo "$as_me:$LINENO: result: no" >&5
17840 echo "${ECHO_T}no" >&6; }
17845 { echo "$as_me:$LINENO: result: no" >&5
17846 echo "${ECHO_T}no" >&6; }
17858 { echo "$as_me:$LINENO: checking for DBI support" >&5
17859 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17861 # Check whether --with-dbi was given.
17862 if test "${with_dbi+set}" = set; then
17864 if test "$withval" != "no"; then
17865 if test "$withval" = "yes"; then
17866 if test -f /usr/local/include/dbi/dbi.h; then
17867 DBI_INCDIR=/usr/local/dbi/include
17868 if test -d /usr/local/lib64; then
17869 DBI_LIBDIR=/usr/local/lib64
17871 DBI_LIBDIR=/usr/local/lib
17873 DBI_BINDIR=/usr/local/bin
17874 elif test -f /usr/include/dbi/dbi.h; then
17875 DBI_INCDIR=/usr/include
17876 if test -d /usr/lib64; then
17877 DBI_LIBDIR=/usr/lib64
17879 DBI_LIBDIR=/usr/lib
17881 DBI_BINDIR=/usr/bin
17882 elif test -f $prefix/include/dbi/dbi.h; then
17883 DBI_INCDIR=$prefix/include
17884 if test -d $prefix/lib64; then
17885 DBI_LIBDIR=$prefix/lib64
17887 DBI_LIBDIR=$prefix/lib
17889 DBI_BINDIR=$prefix/bin
17891 { echo "$as_me:$LINENO: result: no" >&5
17892 echo "${ECHO_T}no" >&6; }
17893 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17894 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17895 { (exit 1); exit 1; }; }
17897 if test -d /usr/local/lib/dbd; then
17898 DRIVERDIR=/usr/local/lib/dbd
17899 if test -d /usr/local/lib64/dbd; then
17900 DRIVERDIR=/usr/local/lib64/dbd
17902 DRIVERDIR=/usr/local/lib/dbd
17904 elif test -d /usr/lib/dbd; then
17905 DRIVERDIR=/usr/lib/dbd
17906 if test -d /usr/lib64/dbd; then
17907 DRIVERDIR=/usr/lib64/dbd
17909 DRIVERDIR=/usr/lib/dbd
17911 elif test -d $prefix/lib/dbd; then
17912 if test -d $prefix/lib64/dbd; then
17913 DRIVERDIR=$prefix/lib64/dbd
17915 DRIVERDIR=$prefix/lib/dbd
17918 { echo "$as_me:$LINENO: result: no" >&5
17919 echo "${ECHO_T}no" >&6; }
17920 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17921 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17922 { (exit 1); exit 1; }; }
17925 if test -f $withval/dbi.h; then
17926 DBI_INCDIR=$withval
17927 DBI_LIBDIR=$withval
17928 DBI_BINDIR=$withval
17929 elif test -f $withval/include/dbi/dbi.h; then
17930 DBI_INCDIR=$withval/include
17931 if test -d $withval/lib64; then
17932 DBI_LIBDIR=$withval/lib64
17934 DBI_LIBDIR=$withval/lib
17936 DBI_BINDIR=$withval/bin
17938 { echo "$as_me:$LINENO: result: no" >&5
17939 echo "${ECHO_T}no" >&6; }
17940 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17941 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17942 { (exit 1); exit 1; }; }
17944 if test -d $withval/dbd; then
17945 DRIVERDIR=$withval/dbd
17946 elif test -d $withval/lib/; then
17947 if test -d $withval/lib64/dbd; then
17948 DRIVERDIR=$withval/lib64/dbd
17950 DRIVERDIR=$withval/lib/dbd
17953 { echo "$as_me:$LINENO: result: no" >&5
17954 echo "${ECHO_T}no" >&6; }
17955 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17956 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17957 { (exit 1); exit 1; }; }
17960 SQL_INCLUDE=-I$DBI_INCDIR
17961 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17962 SQL_BINDIR=$DBI_BINDIR
17963 SQL_LIB=$DBI_LIBDIR/libdbi.a
17964 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
17966 cat >>confdefs.h <<\_ACEOF
17970 { echo "$as_me:$LINENO: result: yes" >&5
17971 echo "${ECHO_T}yes" >&6; }
17978 { echo "$as_me:$LINENO: result: no" >&5
17979 echo "${ECHO_T}no" >&6; }
17984 { echo "$as_me:$LINENO: result: no" >&5
17985 echo "${ECHO_T}no" >&6; }
17999 # -------------------------------------------
18000 # enable batch attribute DB insert (default on)
18001 # -------------------------------------------
18002 support_batch_insert=no
18003 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18005 if test $pkg = 0; then
18006 support_batch_insert=yes
18007 # Check whether --enable-batch-insert was given.
18008 if test "${enable_batch_insert+set}" = set; then
18009 enableval=$enable_batch_insert; if test x$enableval = xno; then
18010 support_batch_insert=no
18012 support_batch_insert=yes
18018 # Check if postgresql support batch mode
18019 if test x$DB_TYPE = xpostgresql; then
18020 A=`nm $SQL_LIB | grep PQputCopyData`
18022 if test $pkg != 0; then
18023 support_batch_insert=no
18027 if test $support_batch_insert = yes ; then
18029 cat >>confdefs.h <<\_ACEOF
18030 #define HAVE_BATCH_FILE_INSERT 1
18036 cat >>confdefs.h <<\_ACEOF
18037 #define PROTOTYPES 1
18041 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18042 if test -z "$CCOPTS"; then
18043 CCOPTS='-g -O2 -Wall'
18051 largefile_support="no"
18053 # Check whether --enable-largefile was given.
18054 if test "${enable_largefile+set}" = set; then
18055 enableval=$enable_largefile;
18058 if test "$enable_largefile" != no; then
18059 if test -n "$ac_tool_prefix"; then
18060 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18061 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18064 if test "${ac_cv_prog_GETCONF+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 if test -n "$GETCONF"; then
18068 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18071 for as_dir in $PATH
18074 test -z "$as_dir" && as_dir=.
18075 for ac_exec_ext in '' $ac_executable_extensions; do
18076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18077 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18087 GETCONF=$ac_cv_prog_GETCONF
18088 if test -n "$GETCONF"; then
18089 { echo "$as_me:$LINENO: result: $GETCONF" >&5
18090 echo "${ECHO_T}$GETCONF" >&6; }
18092 { echo "$as_me:$LINENO: result: no" >&5
18093 echo "${ECHO_T}no" >&6; }
18098 if test -z "$ac_cv_prog_GETCONF"; then
18099 ac_ct_GETCONF=$GETCONF
18100 # Extract the first word of "getconf", so it can be a program name with args.
18101 set dummy getconf; ac_word=$2
18102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18104 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 if test -n "$ac_ct_GETCONF"; then
18108 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18111 for as_dir in $PATH
18114 test -z "$as_dir" && as_dir=.
18115 for ac_exec_ext in '' $ac_executable_extensions; do
18116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18117 ac_cv_prog_ac_ct_GETCONF="getconf"
18118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18127 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18128 if test -n "$ac_ct_GETCONF"; then
18129 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18130 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18132 { echo "$as_me:$LINENO: result: no" >&5
18133 echo "${ECHO_T}no" >&6; }
18136 if test "x$ac_ct_GETCONF" = x; then
18139 case $cross_compiling:$ac_tool_warned in
18141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18142 whose name does not start with the host triplet. If you think this
18143 configuration is useful to you, please write to autoconf@gnu.org." >&5
18144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18145 whose name does not start with the host triplet. If you think this
18146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18147 ac_tool_warned=yes ;;
18149 GETCONF=$ac_ct_GETCONF
18152 GETCONF="$ac_cv_prog_GETCONF"
18155 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18156 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18157 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18161 ac_cv_sys_largefile_CFLAGS=no
18163 # IRIX 6.2 and later require cc -n32.
18164 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18165 if test "$GCC" != yes; then
18166 ac_cv_sys_largefile_CFLAGS=-n32
18169 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18185 rm -f conftest.$ac_objext conftest$ac_exeext
18186 if { (ac_try="$ac_link"
18187 case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_link") 2>conftest.er1
18194 grep -v '^ *+' conftest.er1 >conftest.err
18196 cat conftest.err >&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } && {
18199 test -z "$ac_c_werror_flag" ||
18200 test ! -s conftest.err
18201 } && test -s conftest$ac_exeext &&
18202 $as_test_x conftest$ac_exeext; then
18205 echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18208 ac_cv_sys_largefile_CFLAGS=no
18211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18212 conftest$ac_exeext conftest.$ac_ext
18217 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18218 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18219 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18220 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18221 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18224 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18225 ac_cv_sys_largefile_LDFLAGS=no
18229 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18230 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18231 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18232 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18233 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18237 ac_cv_sys_largefile_LIBS=no
18241 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18242 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18244 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18247 -D_FILE_OFFSET_BITS=*) ;;
18248 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18249 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18254 case "$CPPFLAGS" in
18255 '') CPPFLAGS="$ac_flag" ;;
18256 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18264 '') CFLAGS="$ac_flag" ;;
18265 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18270 case "$ac_cv_sys_largefile_LDFLAGS" in
18274 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18275 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18278 case "$ac_cv_sys_largefile_LIBS" in
18282 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18283 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18286 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18287 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18288 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 ac_cv_sys_file_offset_bits=no
18292 ac_cv_sys_file_offset_bits=64
18293 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18295 -D_FILE_OFFSET_BITS)
18296 ac_cv_sys_file_offset_bits=1 ;;
18297 -D_FILE_OFFSET_BITS=*)
18298 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18303 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18304 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18305 if test "$ac_cv_sys_file_offset_bits" != no; then
18307 cat >>confdefs.h <<_ACEOF
18308 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18312 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18313 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18314 if test "${ac_cv_sys_largefile_source+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 ac_cv_sys_largefile_source=no
18318 ac_cv_sys_largefile_source=1
18319 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18321 -D_LARGEFILE_SOURCE)
18322 ac_cv_sys_largefile_source=1 ;;
18323 -D_LARGEFILE_SOURCE=*)
18324 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18329 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18330 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18331 if test "$ac_cv_sys_largefile_source" != no; then
18333 cat >>confdefs.h <<_ACEOF
18334 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18338 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18339 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18340 if test "${ac_cv_sys_large_files+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18343 ac_cv_sys_large_files=no
18344 ac_cv_sys_large_files=1
18345 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18348 ac_cv_sys_large_files=1 ;;
18350 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18355 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18356 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18357 if test "$ac_cv_sys_large_files" != no; then
18359 cat >>confdefs.h <<_ACEOF
18360 #define _LARGE_FILES $ac_cv_sys_large_files
18368 { echo "$as_me:$LINENO: checking for X" >&5
18369 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18372 # Check whether --with-x was given.
18373 if test "${with_x+set}" = set; then
18377 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18378 if test "x$with_x" = xno; then
18379 # The user explicitly disabled X.
18382 case $x_includes,$x_libraries in #(
18383 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18384 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18385 { (exit 1); exit 1; }; };; #(
18386 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 # One or both of the vars are not set, and there is no cached value.
18390 ac_x_includes=no ac_x_libraries=no
18391 rm -f -r conftest.dir
18392 if mkdir conftest.dir; then
18394 cat >Imakefile <<'_ACEOF'
18396 @echo incroot='${INCROOT}'
18398 @echo usrlibdir='${USRLIBDIR}'
18400 @echo libdir='${LIBDIR}'
18402 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18403 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18404 for ac_var in incroot usrlibdir libdir; do
18405 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18407 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18408 for ac_extension in a so sl; do
18409 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18410 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18411 ac_im_usrlibdir=$ac_im_libdir; break
18414 # Screen out bogus values from the imake configuration. They are
18415 # bogus both because they are the default anyway, and because
18416 # using them would break gcc on systems where it needs fixed includes.
18417 case $ac_im_incroot in
18418 /usr/include) ac_x_includes= ;;
18419 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18421 case $ac_im_usrlibdir in
18422 /usr/lib | /lib) ;;
18423 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18427 rm -f -r conftest.dir
18430 # Standard set of common directories for X headers.
18431 # Check X11 before X11Rn because it is often a symlink to the current release.
18443 /usr/local/X11/include
18444 /usr/local/X11R6/include
18445 /usr/local/X11R5/include
18446 /usr/local/X11R4/include
18448 /usr/local/include/X11
18449 /usr/local/include/X11R6
18450 /usr/local/include/X11R5
18451 /usr/local/include/X11R4
18455 /usr/XFree86/include/X11
18459 /usr/unsupported/include
18460 /usr/athena/include
18461 /usr/local/x11r5/include
18462 /usr/lpp/Xamples/include
18464 /usr/openwin/include
18465 /usr/openwin/share/include'
18467 if test "$ac_x_includes" = no; then
18468 # Guess where to find include files, by looking for Xlib.h.
18469 # First, try using that file with no special directory specified.
18470 cat >conftest.$ac_ext <<_ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18476 #include <X11/Xlib.h>
18478 if { (ac_try="$ac_cpp conftest.$ac_ext"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18486 grep -v '^ *+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } >/dev/null && {
18491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18492 test ! -s conftest.err
18494 # We can compile using X headers with no special include directory.
18497 echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 for ac_dir in $ac_x_header_dirs; do
18501 if test -r "$ac_dir/X11/Xlib.h"; then
18502 ac_x_includes=$ac_dir
18508 rm -f conftest.err conftest.$ac_ext
18509 fi # $ac_x_includes = no
18511 if test "$ac_x_libraries" = no; then
18512 # Check for the libraries.
18513 # See if we find them without any special options.
18514 # Don't add to $LIBS permanently.
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523 #include <X11/Xlib.h>
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (ac_try="$ac_link"
18534 case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_link") 2>conftest.er1
18541 grep -v '^ *+' conftest.er1 >conftest.err
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } && {
18546 test -z "$ac_c_werror_flag" ||
18547 test ! -s conftest.err
18548 } && test -s conftest$ac_exeext &&
18549 $as_test_x conftest$ac_exeext; then
18551 # We can link X programs with no special library path.
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18558 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18560 # Don't even attempt the hair of trying to link an X program!
18561 for ac_extension in a so sl; do
18562 if test -r "$ac_dir/libX11.$ac_extension"; then
18563 ac_x_libraries=$ac_dir
18570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18571 conftest$ac_exeext conftest.$ac_ext
18572 fi # $ac_x_libraries = no
18574 case $ac_x_includes,$ac_x_libraries in #(
18575 no,* | *,no | *\'*)
18576 # Didn't find X, or a directory has "'" in its name.
18577 ac_cv_have_x="have_x=no";; #(
18579 # Record where we found X for the cache.
18580 ac_cv_have_x="have_x=yes\
18581 ac_x_includes='$ac_x_includes'\
18582 ac_x_libraries='$ac_x_libraries'"
18588 eval "$ac_cv_have_x"
18591 if test "$have_x" != yes; then
18592 { echo "$as_me:$LINENO: result: $have_x" >&5
18593 echo "${ECHO_T}$have_x" >&6; }
18596 # If each of the values was on the command line, it overrides each guess.
18597 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18598 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18599 # Update the cache value to reflect the command line values.
18600 ac_cv_have_x="have_x=yes\
18601 ac_x_includes='$x_includes'\
18602 ac_x_libraries='$x_libraries'"
18603 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18604 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18607 if test "$no_x" = yes; then
18608 # Not all programs may use this symbol, but it does not hurt to define it.
18610 cat >>confdefs.h <<\_ACEOF
18611 #define X_DISPLAY_MISSING 1
18614 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18616 if test -n "$x_includes"; then
18617 X_CFLAGS="$X_CFLAGS -I$x_includes"
18620 # It would also be nice to do this for all -L options, not just this one.
18621 if test -n "$x_libraries"; then
18622 X_LIBS="$X_LIBS -L$x_libraries"
18623 # For Solaris; some versions of Sun CC require a space after -R and
18624 # others require no space. Words are not sufficient . . . .
18625 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18626 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18627 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18628 ac_xsave_c_werror_flag=$ac_c_werror_flag
18629 ac_c_werror_flag=yes
18630 cat >conftest.$ac_ext <<_ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18645 rm -f conftest.$ac_objext conftest$ac_exeext
18646 if { (ac_try="$ac_link"
18647 case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_link") 2>conftest.er1
18654 grep -v '^ *+' conftest.er1 >conftest.err
18656 cat conftest.err >&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } && {
18659 test -z "$ac_c_werror_flag" ||
18660 test ! -s conftest.err
18661 } && test -s conftest$ac_exeext &&
18662 $as_test_x conftest$ac_exeext; then
18663 { echo "$as_me:$LINENO: result: no" >&5
18664 echo "${ECHO_T}no" >&6; }
18665 X_LIBS="$X_LIBS -R$x_libraries"
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 LIBS="$ac_xsave_LIBS -R $x_libraries"
18671 cat >conftest.$ac_ext <<_ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18686 rm -f conftest.$ac_objext conftest$ac_exeext
18687 if { (ac_try="$ac_link"
18688 case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_link") 2>conftest.er1
18695 grep -v '^ *+' conftest.er1 >conftest.err
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest$ac_exeext &&
18703 $as_test_x conftest$ac_exeext; then
18704 { echo "$as_me:$LINENO: result: yes" >&5
18705 echo "${ECHO_T}yes" >&6; }
18706 X_LIBS="$X_LIBS -R $x_libraries"
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 { echo "$as_me:$LINENO: result: neither works" >&5
18712 echo "${ECHO_T}neither works" >&6; }
18715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716 conftest$ac_exeext conftest.$ac_ext
18719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18720 conftest$ac_exeext conftest.$ac_ext
18721 ac_c_werror_flag=$ac_xsave_c_werror_flag
18722 LIBS=$ac_xsave_LIBS
18725 # Check for system-dependent libraries X programs must link with.
18726 # Do this before checking for the system-independent R6 libraries
18727 # (-lICE), since we may need -lsocket or whatever for X linking.
18729 if test "$ISC" = yes; then
18730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18732 # Martyn Johnson says this is needed for Ultrix, if the X
18733 # libraries were built with DECnet support. And Karl Berry says
18734 # the Alpha needs dnet_stub (dnet does not exist).
18735 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18736 cat >conftest.$ac_ext <<_ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18749 char XOpenDisplay ();
18753 return XOpenDisplay ();
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (ac_try="$ac_link"
18760 case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_link") 2>conftest.er1
18767 grep -v '^ *+' conftest.er1 >conftest.err
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest$ac_exeext &&
18775 $as_test_x conftest$ac_exeext; then
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18781 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18782 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18783 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18786 ac_check_lib_save_LIBS=$LIBS
18787 LIBS="-ldnet $LIBS"
18788 cat >conftest.$ac_ext <<_ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18795 /* Override any GCC internal prototype to avoid an error.
18796 Use char because int might match the return type of a GCC
18797 builtin and then its argument prototype would still apply. */
18805 return dnet_ntoa ();
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_link") 2>conftest.er1
18819 grep -v '^ *+' conftest.er1 >conftest.err
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } && {
18824 test -z "$ac_c_werror_flag" ||
18825 test ! -s conftest.err
18826 } && test -s conftest$ac_exeext &&
18827 $as_test_x conftest$ac_exeext; then
18828 ac_cv_lib_dnet_dnet_ntoa=yes
18830 echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18833 ac_cv_lib_dnet_dnet_ntoa=no
18836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18837 conftest$ac_exeext conftest.$ac_ext
18838 LIBS=$ac_check_lib_save_LIBS
18840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18841 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18842 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18843 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18846 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18847 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18848 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18849 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18852 ac_check_lib_save_LIBS=$LIBS
18853 LIBS="-ldnet_stub $LIBS"
18854 cat >conftest.$ac_ext <<_ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18861 /* Override any GCC internal prototype to avoid an error.
18862 Use char because int might match the return type of a GCC
18863 builtin and then its argument prototype would still apply. */
18871 return dnet_ntoa ();
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (ac_try="$ac_link"
18878 case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_link") 2>conftest.er1
18885 grep -v '^ *+' conftest.er1 >conftest.err
18887 cat conftest.err >&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } && {
18890 test -z "$ac_c_werror_flag" ||
18891 test ! -s conftest.err
18892 } && test -s conftest$ac_exeext &&
18893 $as_test_x conftest$ac_exeext; then
18894 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 ac_cv_lib_dnet_stub_dnet_ntoa=no
18902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18903 conftest$ac_exeext conftest.$ac_ext
18904 LIBS=$ac_check_lib_save_LIBS
18906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18907 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18908 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18909 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916 conftest$ac_exeext conftest.$ac_ext
18917 LIBS="$ac_xsave_LIBS"
18919 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18920 # to get the SysV transport functions.
18921 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18923 # The nsl library prevents programs from opening the X display
18924 # on Irix 5.2, according to T.E. Dickey.
18925 # The functions gethostbyname, getservbyname, and inet_addr are
18926 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18927 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
18928 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
18929 if test "${ac_cv_func_gethostbyname+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18932 cat >conftest.$ac_ext <<_ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18938 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18940 #define gethostbyname innocuous_gethostbyname
18942 /* System header to define __stub macros and hopefully few prototypes,
18943 which can conflict with char gethostbyname (); below.
18944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18945 <limits.h> exists even on freestanding compilers. */
18948 # include <limits.h>
18950 # include <assert.h>
18953 #undef gethostbyname
18955 /* Override any GCC internal prototype to avoid an error.
18956 Use char because int might match the return type of a GCC
18957 builtin and then its argument prototype would still apply. */
18961 char gethostbyname ();
18962 /* The GNU C library defines this for functions which it implements
18963 to always fail with ENOSYS. Some functions are actually named
18964 something starting with __ and the normal name is an alias. */
18965 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18972 return gethostbyname ();
18977 rm -f conftest.$ac_objext conftest$ac_exeext
18978 if { (ac_try="$ac_link"
18979 case "(($ac_try" in
18980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981 *) ac_try_echo=$ac_try;;
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984 (eval "$ac_link") 2>conftest.er1
18986 grep -v '^ *+' conftest.er1 >conftest.err
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } && {
18991 test -z "$ac_c_werror_flag" ||
18992 test ! -s conftest.err
18993 } && test -s conftest$ac_exeext &&
18994 $as_test_x conftest$ac_exeext; then
18995 ac_cv_func_gethostbyname=yes
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ac_cv_func_gethostbyname=no
19003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19004 conftest$ac_exeext conftest.$ac_ext
19006 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19007 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19009 if test $ac_cv_func_gethostbyname = no; then
19010 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19011 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19012 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 ac_check_lib_save_LIBS=$LIBS
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19024 /* Override any GCC internal prototype to avoid an error.
19025 Use char because int might match the return type of a GCC
19026 builtin and then its argument prototype would still apply. */
19030 char gethostbyname ();
19034 return gethostbyname ();
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_link") 2>conftest.er1
19048 grep -v '^ *+' conftest.er1 >conftest.err
19050 cat conftest.err >&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } && {
19053 test -z "$ac_c_werror_flag" ||
19054 test ! -s conftest.err
19055 } && test -s conftest$ac_exeext &&
19056 $as_test_x conftest$ac_exeext; then
19057 ac_cv_lib_nsl_gethostbyname=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_cv_lib_nsl_gethostbyname=no
19065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19066 conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19069 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19070 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19071 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19075 if test $ac_cv_lib_nsl_gethostbyname = no; then
19076 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19077 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19078 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19081 ac_check_lib_save_LIBS=$LIBS
19083 cat >conftest.$ac_ext <<_ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h. */
19090 /* Override any GCC internal prototype to avoid an error.
19091 Use char because int might match the return type of a GCC
19092 builtin and then its argument prototype would still apply. */
19096 char gethostbyname ();
19100 return gethostbyname ();
19105 rm -f conftest.$ac_objext conftest$ac_exeext
19106 if { (ac_try="$ac_link"
19107 case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_link") 2>conftest.er1
19114 grep -v '^ *+' conftest.er1 >conftest.err
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } && {
19119 test -z "$ac_c_werror_flag" ||
19120 test ! -s conftest.err
19121 } && test -s conftest$ac_exeext &&
19122 $as_test_x conftest$ac_exeext; then
19123 ac_cv_lib_bsd_gethostbyname=yes
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19128 ac_cv_lib_bsd_gethostbyname=no
19131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19132 conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19135 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19136 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19137 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19144 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19145 # socket/setsockopt and other routines are undefined under SCO ODT
19146 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19147 # on later versions), says Simon Leinen: it contains gethostby*
19148 # variants that don't use the name server (or something). -lsocket
19149 # must be given before -lnsl if both are needed. We assume that
19150 # if connect needs -lnsl, so does gethostbyname.
19151 { echo "$as_me:$LINENO: checking for connect" >&5
19152 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19153 if test "${ac_cv_func_connect+set}" = set; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19156 cat >conftest.$ac_ext <<_ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19164 #define connect innocuous_connect
19166 /* System header to define __stub macros and hopefully few prototypes,
19167 which can conflict with char connect (); below.
19168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19169 <limits.h> exists even on freestanding compilers. */
19172 # include <limits.h>
19174 # include <assert.h>
19179 /* Override any GCC internal prototype to avoid an error.
19180 Use char because int might match the return type of a GCC
19181 builtin and then its argument prototype would still apply. */
19186 /* The GNU C library defines this for functions which it implements
19187 to always fail with ENOSYS. Some functions are actually named
19188 something starting with __ and the normal name is an alias. */
19189 #if defined __stub_connect || defined __stub___connect
19201 rm -f conftest.$ac_objext conftest$ac_exeext
19202 if { (ac_try="$ac_link"
19203 case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_link") 2>conftest.er1
19210 grep -v '^ *+' conftest.er1 >conftest.err
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } && {
19215 test -z "$ac_c_werror_flag" ||
19216 test ! -s conftest.err
19217 } && test -s conftest$ac_exeext &&
19218 $as_test_x conftest$ac_exeext; then
19219 ac_cv_func_connect=yes
19221 echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19224 ac_cv_func_connect=no
19227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19228 conftest$ac_exeext conftest.$ac_ext
19230 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19231 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19233 if test $ac_cv_func_connect = no; then
19234 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19235 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19236 if test "${ac_cv_lib_socket_connect+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19239 ac_check_lib_save_LIBS=$LIBS
19240 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19248 /* Override any GCC internal prototype to avoid an error.
19249 Use char because int might match the return type of a GCC
19250 builtin and then its argument prototype would still apply. */
19263 rm -f conftest.$ac_objext conftest$ac_exeext
19264 if { (ac_try="$ac_link"
19265 case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_link") 2>conftest.er1
19272 grep -v '^ *+' conftest.er1 >conftest.err
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } && {
19277 test -z "$ac_c_werror_flag" ||
19278 test ! -s conftest.err
19279 } && test -s conftest$ac_exeext &&
19280 $as_test_x conftest$ac_exeext; then
19281 ac_cv_lib_socket_connect=yes
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 ac_cv_lib_socket_connect=no
19289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19290 conftest$ac_exeext conftest.$ac_ext
19291 LIBS=$ac_check_lib_save_LIBS
19293 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19294 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19295 if test $ac_cv_lib_socket_connect = yes; then
19296 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19301 # Guillermo Gomez says -lposix is necessary on A/UX.
19302 { echo "$as_me:$LINENO: checking for remove" >&5
19303 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19304 if test "${ac_cv_func_remove+set}" = set; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 cat >conftest.$ac_ext <<_ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19315 #define remove innocuous_remove
19317 /* System header to define __stub macros and hopefully few prototypes,
19318 which can conflict with char remove (); below.
19319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19320 <limits.h> exists even on freestanding compilers. */
19323 # include <limits.h>
19325 # include <assert.h>
19330 /* Override any GCC internal prototype to avoid an error.
19331 Use char because int might match the return type of a GCC
19332 builtin and then its argument prototype would still apply. */
19337 /* The GNU C library defines this for functions which it implements
19338 to always fail with ENOSYS. Some functions are actually named
19339 something starting with __ and the normal name is an alias. */
19340 #if defined __stub_remove || defined __stub___remove
19352 rm -f conftest.$ac_objext conftest$ac_exeext
19353 if { (ac_try="$ac_link"
19354 case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359 (eval "$ac_link") 2>conftest.er1
19361 grep -v '^ *+' conftest.er1 >conftest.err
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } && {
19366 test -z "$ac_c_werror_flag" ||
19367 test ! -s conftest.err
19368 } && test -s conftest$ac_exeext &&
19369 $as_test_x conftest$ac_exeext; then
19370 ac_cv_func_remove=yes
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 ac_cv_func_remove=no
19378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19379 conftest$ac_exeext conftest.$ac_ext
19381 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19382 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19384 if test $ac_cv_func_remove = no; then
19385 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19386 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19387 if test "${ac_cv_lib_posix_remove+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 ac_check_lib_save_LIBS=$LIBS
19391 LIBS="-lposix $LIBS"
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19399 /* Override any GCC internal prototype to avoid an error.
19400 Use char because int might match the return type of a GCC
19401 builtin and then its argument prototype would still apply. */
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>conftest.er1
19423 grep -v '^ *+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } && {
19428 test -z "$ac_c_werror_flag" ||
19429 test ! -s conftest.err
19430 } && test -s conftest$ac_exeext &&
19431 $as_test_x conftest$ac_exeext; then
19432 ac_cv_lib_posix_remove=yes
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_lib_posix_remove=no
19440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19441 conftest$ac_exeext conftest.$ac_ext
19442 LIBS=$ac_check_lib_save_LIBS
19444 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19445 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19446 if test $ac_cv_lib_posix_remove = yes; then
19447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19452 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19453 { echo "$as_me:$LINENO: checking for shmat" >&5
19454 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19455 if test "${ac_cv_func_shmat+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19466 #define shmat innocuous_shmat
19468 /* System header to define __stub macros and hopefully few prototypes,
19469 which can conflict with char shmat (); below.
19470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19471 <limits.h> exists even on freestanding compilers. */
19474 # include <limits.h>
19476 # include <assert.h>
19481 /* Override any GCC internal prototype to avoid an error.
19482 Use char because int might match the return type of a GCC
19483 builtin and then its argument prototype would still apply. */
19488 /* The GNU C library defines this for functions which it implements
19489 to always fail with ENOSYS. Some functions are actually named
19490 something starting with __ and the normal name is an alias. */
19491 #if defined __stub_shmat || defined __stub___shmat
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>conftest.er1
19512 grep -v '^ *+' conftest.er1 >conftest.err
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest$ac_exeext &&
19520 $as_test_x conftest$ac_exeext; then
19521 ac_cv_func_shmat=yes
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_cv_func_shmat=no
19529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19530 conftest$ac_exeext conftest.$ac_ext
19532 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19533 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19535 if test $ac_cv_func_shmat = no; then
19536 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19537 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19538 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 ac_check_lib_save_LIBS=$LIBS
19543 cat >conftest.$ac_ext <<_ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h. */
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19565 rm -f conftest.$ac_objext conftest$ac_exeext
19566 if { (ac_try="$ac_link"
19567 case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_link") 2>conftest.er1
19574 grep -v '^ *+' conftest.er1 >conftest.err
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } && {
19579 test -z "$ac_c_werror_flag" ||
19580 test ! -s conftest.err
19581 } && test -s conftest$ac_exeext &&
19582 $as_test_x conftest$ac_exeext; then
19583 ac_cv_lib_ipc_shmat=yes
19585 echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19588 ac_cv_lib_ipc_shmat=no
19591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19592 conftest$ac_exeext conftest.$ac_ext
19593 LIBS=$ac_check_lib_save_LIBS
19595 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19596 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19597 if test $ac_cv_lib_ipc_shmat = yes; then
19598 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19604 # Check for libraries that X11R6 Xt/Xaw programs need.
19605 ac_save_LDFLAGS=$LDFLAGS
19606 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19607 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19608 # check for ICE first), but we must link in the order -lSM -lICE or
19609 # we get undefined symbols. So assume we have SM if we have ICE.
19610 # These have to be linked with before -lX11, unlike the other
19611 # libraries we check for below, so use a different variable.
19612 # John Interrante, Karl Berry
19613 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19614 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19615 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 ac_check_lib_save_LIBS=$LIBS
19619 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19620 cat >conftest.$ac_ext <<_ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19627 /* Override any GCC internal prototype to avoid an error.
19628 Use char because int might match the return type of a GCC
19629 builtin and then its argument prototype would still apply. */
19633 char IceConnectionNumber ();
19637 return IceConnectionNumber ();
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_link") 2>conftest.er1
19651 grep -v '^ *+' conftest.er1 >conftest.err
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } && {
19656 test -z "$ac_c_werror_flag" ||
19657 test ! -s conftest.err
19658 } && test -s conftest$ac_exeext &&
19659 $as_test_x conftest$ac_exeext; then
19660 ac_cv_lib_ICE_IceConnectionNumber=yes
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 ac_cv_lib_ICE_IceConnectionNumber=no
19668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19669 conftest$ac_exeext conftest.$ac_ext
19670 LIBS=$ac_check_lib_save_LIBS
19672 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19673 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19674 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19675 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19678 LDFLAGS=$ac_save_LDFLAGS
19746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 ac_res=`eval echo '${'$as_ac_Header'}'`
19754 { echo "$as_me:$LINENO: result: $ac_res" >&5
19755 echo "${ECHO_T}$ac_res" >&6; }
19757 # Is the header compilable?
19758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19760 cat >conftest.$ac_ext <<_ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19766 $ac_includes_default
19767 #include <$ac_header>
19769 rm -f conftest.$ac_objext
19770 if { (ac_try="$ac_compile"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_compile") 2>conftest.er1
19778 grep -v '^ *+' conftest.er1 >conftest.err
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest.$ac_objext; then
19786 ac_header_compiler=yes
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 ac_header_compiler=no
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19796 echo "${ECHO_T}$ac_header_compiler" >&6; }
19798 # Is the header present?
19799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19801 cat >conftest.$ac_ext <<_ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 #include <$ac_header>
19809 if { (ac_try="$ac_cpp conftest.$ac_ext"
19810 case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19817 grep -v '^ *+' conftest.er1 >conftest.err
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } >/dev/null && {
19822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19823 test ! -s conftest.err
19825 ac_header_preproc=yes
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ac_header_preproc=no
19833 rm -f conftest.err conftest.$ac_ext
19834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19835 echo "${ECHO_T}$ac_header_preproc" >&6; }
19837 # So? What about this header?
19838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19844 ac_header_preproc=yes
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 eval "$as_ac_Header=\$ac_header_preproc"
19869 ac_res=`eval echo '${'$as_ac_Header'}'`
19870 { echo "$as_me:$LINENO: result: $ac_res" >&5
19871 echo "${ECHO_T}$ac_res" >&6; }
19874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19875 cat >>confdefs.h <<_ACEOF
19876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19883 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19884 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19885 if test "${ac_cv_header_stdc+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 #include <stdlib.h>
19895 #include <stdarg.h>
19896 #include <string.h>
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_compile") 2>conftest.er1
19916 grep -v '^ *+' conftest.er1 >conftest.err
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } && {
19921 test -z "$ac_c_werror_flag" ||
19922 test ! -s conftest.err
19923 } && test -s conftest.$ac_objext; then
19924 ac_cv_header_stdc=yes
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ac_cv_header_stdc=no
19932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934 if test $ac_cv_header_stdc = yes; then
19935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19936 cat >conftest.$ac_ext <<_ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19942 #include <string.h>
19945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19946 $EGREP "memchr" >/dev/null 2>&1; then
19949 ac_cv_header_stdc=no
19955 if test $ac_cv_header_stdc = yes; then
19956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 #include <stdlib.h>
19966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19967 $EGREP "free" >/dev/null 2>&1; then
19970 ac_cv_header_stdc=no
19976 if test $ac_cv_header_stdc = yes; then
19977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19978 if test "$cross_compiling" = yes; then
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19988 #include <stdlib.h>
19989 #if ((' ' & 0x0FF) == 0x020)
19990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19993 # define ISLOWER(c) \
19994 (('a' <= (c) && (c) <= 'i') \
19995 || ('j' <= (c) && (c) <= 'r') \
19996 || ('s' <= (c) && (c) <= 'z'))
19997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20005 for (i = 0; i < 256; i++)
20006 if (XOR (islower (i), ISLOWER (i))
20007 || toupper (i) != TOUPPER (i))
20012 rm -f conftest$ac_exeext
20013 if { (ac_try="$ac_link"
20014 case "(($ac_try" in
20015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016 *) ac_try_echo=$ac_try;;
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019 (eval "$ac_link") 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20023 { (case "(($ac_try" in
20024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025 *) ac_try_echo=$ac_try;;
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028 (eval "$ac_try") 2>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
20034 echo "$as_me: program exited with status $ac_status" >&5
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 ( exit $ac_status )
20039 ac_cv_header_stdc=no
20041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20047 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20048 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20049 if test $ac_cv_header_stdc = yes; then
20051 cat >>confdefs.h <<\_ACEOF
20052 #define STDC_HEADERS 1
20057 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20058 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20059 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 #include <sys/types.h>
20072 return makedev(0, 0);
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (ac_try="$ac_link"
20079 case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_link") 2>conftest.er1
20086 grep -v '^ *+' conftest.er1 >conftest.err
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } && {
20091 test -z "$ac_c_werror_flag" ||
20092 test ! -s conftest.err
20093 } && test -s conftest$ac_exeext &&
20094 $as_test_x conftest$ac_exeext; then
20095 ac_cv_header_sys_types_h_makedev=yes
20097 echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20100 ac_cv_header_sys_types_h_makedev=no
20103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20104 conftest$ac_exeext conftest.$ac_ext
20107 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20108 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20110 if test $ac_cv_header_sys_types_h_makedev = no; then
20111 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20112 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20113 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20114 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20118 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20120 # Is the header compilable?
20121 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20122 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 $ac_includes_default
20130 #include <sys/mkdev.h>
20132 rm -f conftest.$ac_objext
20133 if { (ac_try="$ac_compile"
20134 case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_compile") 2>conftest.er1
20141 grep -v '^ *+' conftest.er1 >conftest.err
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && {
20146 test -z "$ac_c_werror_flag" ||
20147 test ! -s conftest.err
20148 } && test -s conftest.$ac_objext; then
20149 ac_header_compiler=yes
20151 echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20154 ac_header_compiler=no
20157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20159 echo "${ECHO_T}$ac_header_compiler" >&6; }
20161 # Is the header present?
20162 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20163 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20170 #include <sys/mkdev.h>
20172 if { (ac_try="$ac_cpp conftest.$ac_ext"
20173 case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } >/dev/null && {
20185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20188 ac_header_preproc=yes
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 ac_header_preproc=no
20196 rm -f conftest.err conftest.$ac_ext
20197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20198 echo "${ECHO_T}$ac_header_preproc" >&6; }
20200 # So? What about this header?
20201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20204 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20206 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20207 ac_header_preproc=yes
20210 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20211 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20212 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20213 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20215 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20216 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20217 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20218 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20219 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20221 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20225 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20226 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20227 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20232 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20233 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20236 if test $ac_cv_header_sys_mkdev_h = yes; then
20238 cat >>confdefs.h <<\_ACEOF
20239 #define MAJOR_IN_MKDEV 1
20246 if test $ac_cv_header_sys_mkdev_h = no; then
20247 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20248 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20249 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20250 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20254 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20256 # Is the header compilable?
20257 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20258 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20259 cat >conftest.$ac_ext <<_ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 $ac_includes_default
20266 #include <sys/sysmacros.h>
20268 rm -f conftest.$ac_objext
20269 if { (ac_try="$ac_compile"
20270 case "(($ac_try" in
20271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272 *) ac_try_echo=$ac_try;;
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275 (eval "$ac_compile") 2>conftest.er1
20277 grep -v '^ *+' conftest.er1 >conftest.err
20279 cat conftest.err >&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } && {
20282 test -z "$ac_c_werror_flag" ||
20283 test ! -s conftest.err
20284 } && test -s conftest.$ac_objext; then
20285 ac_header_compiler=yes
20287 echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20290 ac_header_compiler=no
20293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20295 echo "${ECHO_T}$ac_header_compiler" >&6; }
20297 # Is the header present?
20298 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20299 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20300 cat >conftest.$ac_ext <<_ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20306 #include <sys/sysmacros.h>
20308 if { (ac_try="$ac_cpp conftest.$ac_ext"
20309 case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20316 grep -v '^ *+' conftest.er1 >conftest.err
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } >/dev/null && {
20321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20322 test ! -s conftest.err
20324 ac_header_preproc=yes
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20329 ac_header_preproc=no
20332 rm -f conftest.err conftest.$ac_ext
20333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20334 echo "${ECHO_T}$ac_header_preproc" >&6; }
20336 # So? What about this header?
20337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20339 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20340 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20342 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20343 ac_header_preproc=yes
20346 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20347 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20348 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20349 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20350 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20351 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20352 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20353 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20354 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20355 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20357 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20361 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20362 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20363 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20368 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20369 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20372 if test $ac_cv_header_sys_sysmacros_h = yes; then
20374 cat >>confdefs.h <<\_ACEOF
20375 #define MAJOR_IN_SYSMACROS 1
20389 ac_header_dirent=no
20390 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20391 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20392 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20393 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403 #include <sys/types.h>
20415 rm -f conftest.$ac_objext
20416 if { (ac_try="$ac_compile"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_compile") 2>conftest.er1
20424 grep -v '^ *+' conftest.er1 >conftest.err
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest.$ac_objext; then
20432 eval "$as_ac_Header=yes"
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 eval "$as_ac_Header=no"
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 ac_res=`eval echo '${'$as_ac_Header'}'`
20443 { echo "$as_me:$LINENO: result: $ac_res" >&5
20444 echo "${ECHO_T}$ac_res" >&6; }
20445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20446 cat >>confdefs.h <<_ACEOF
20447 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20450 ac_header_dirent=$ac_hdr; break
20454 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20455 if test $ac_header_dirent = dirent.h; then
20456 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20457 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20458 if test "${ac_cv_search_opendir+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 ac_func_search_save_LIBS=$LIBS
20462 cat >conftest.$ac_ext <<_ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20469 /* Override any GCC internal prototype to avoid an error.
20470 Use char because int might match the return type of a GCC
20471 builtin and then its argument prototype would still apply. */
20484 for ac_lib in '' dir; do
20485 if test -z "$ac_lib"; then
20486 ac_res="none required"
20489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20491 rm -f conftest.$ac_objext conftest$ac_exeext
20492 if { (ac_try="$ac_link"
20493 case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_link") 2>conftest.er1
20500 grep -v '^ *+' conftest.er1 >conftest.err
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest$ac_exeext &&
20508 $as_test_x conftest$ac_exeext; then
20509 ac_cv_search_opendir=$ac_res
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20519 if test "${ac_cv_search_opendir+set}" = set; then
20523 if test "${ac_cv_search_opendir+set}" = set; then
20526 ac_cv_search_opendir=no
20528 rm conftest.$ac_ext
20529 LIBS=$ac_func_search_save_LIBS
20531 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20532 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20533 ac_res=$ac_cv_search_opendir
20534 if test "$ac_res" != no; then
20535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20540 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20541 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20542 if test "${ac_cv_search_opendir+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20545 ac_func_search_save_LIBS=$LIBS
20546 cat >conftest.$ac_ext <<_ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20553 /* Override any GCC internal prototype to avoid an error.
20554 Use char because int might match the return type of a GCC
20555 builtin and then its argument prototype would still apply. */
20568 for ac_lib in '' x; do
20569 if test -z "$ac_lib"; then
20570 ac_res="none required"
20573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20575 rm -f conftest.$ac_objext conftest$ac_exeext
20576 if { (ac_try="$ac_link"
20577 case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_link") 2>conftest.er1
20584 grep -v '^ *+' conftest.er1 >conftest.err
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } && {
20589 test -z "$ac_c_werror_flag" ||
20590 test ! -s conftest.err
20591 } && test -s conftest$ac_exeext &&
20592 $as_test_x conftest$ac_exeext; then
20593 ac_cv_search_opendir=$ac_res
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20603 if test "${ac_cv_search_opendir+set}" = set; then
20607 if test "${ac_cv_search_opendir+set}" = set; then
20610 ac_cv_search_opendir=no
20612 rm conftest.$ac_ext
20613 LIBS=$ac_func_search_save_LIBS
20615 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20616 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20617 ac_res=$ac_cv_search_opendir
20618 if test "$ac_res" != no; then
20619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20625 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20626 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20627 if test "${ac_cv_header_stat_broken+set}" = set; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 #include <sys/types.h>
20637 #include <sys/stat.h>
20639 #if defined S_ISBLK && defined S_IFDIR
20640 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20643 #if defined S_ISBLK && defined S_IFCHR
20644 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20647 #if defined S_ISLNK && defined S_IFREG
20648 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20651 #if defined S_ISSOCK && defined S_IFREG
20652 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20656 rm -f conftest.$ac_objext
20657 if { (ac_try="$ac_compile"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_compile") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest.$ac_objext; then
20673 ac_cv_header_stat_broken=no
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20678 ac_cv_header_stat_broken=yes
20681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20683 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20684 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20685 if test $ac_cv_header_stat_broken = yes; then
20687 cat >>confdefs.h <<\_ACEOF
20688 #define STAT_MACROS_BROKEN 1
20693 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20694 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20695 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 #include <sys/types.h>
20705 #include <sys/wait.h>
20706 #ifndef WEXITSTATUS
20707 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20710 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20718 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20723 rm -f conftest.$ac_objext
20724 if { (ac_try="$ac_compile"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_compile") 2>conftest.er1
20732 grep -v '^ *+' conftest.er1 >conftest.err
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest.$ac_objext; then
20740 ac_cv_header_sys_wait_h=yes
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ac_cv_header_sys_wait_h=no
20748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20750 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20751 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20752 if test $ac_cv_header_sys_wait_h = yes; then
20754 cat >>confdefs.h <<\_ACEOF
20755 #define HAVE_SYS_WAIT_H 1
20760 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20761 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20762 if test "${ac_cv_header_time+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 #include <sys/types.h>
20772 #include <sys/time.h>
20778 if ((struct tm *) 0)
20784 rm -f conftest.$ac_objext
20785 if { (ac_try="$ac_compile"
20786 case "(($ac_try" in
20787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788 *) ac_try_echo=$ac_try;;
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791 (eval "$ac_compile") 2>conftest.er1
20793 grep -v '^ *+' conftest.er1 >conftest.err
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } && {
20798 test -z "$ac_c_werror_flag" ||
20799 test ! -s conftest.err
20800 } && test -s conftest.$ac_objext; then
20801 ac_cv_header_time=yes
20803 echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20806 ac_cv_header_time=no
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20811 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20812 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20813 if test $ac_cv_header_time = yes; then
20815 cat >>confdefs.h <<\_ACEOF
20816 #define TIME_WITH_SYS_TIME 1
20821 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20822 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20823 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20826 cat >conftest.$ac_ext <<_ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 $ac_includes_default
20836 static struct stat ac_aggr;
20837 if (ac_aggr.st_blksize)
20843 rm -f conftest.$ac_objext
20844 if { (ac_try="$ac_compile"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_compile") 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest.$ac_objext; then
20860 ac_cv_member_struct_stat_st_blksize=yes
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 cat >conftest.$ac_ext <<_ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 $ac_includes_default
20875 static struct stat ac_aggr;
20876 if (sizeof ac_aggr.st_blksize)
20882 rm -f conftest.$ac_objext
20883 if { (ac_try="$ac_compile"
20884 case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_compile") 2>conftest.er1
20891 grep -v '^ *+' conftest.er1 >conftest.err
20893 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } && {
20896 test -z "$ac_c_werror_flag" ||
20897 test ! -s conftest.err
20898 } && test -s conftest.$ac_objext; then
20899 ac_cv_member_struct_stat_st_blksize=yes
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 ac_cv_member_struct_stat_st_blksize=no
20907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20913 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20914 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20916 cat >>confdefs.h <<_ACEOF
20917 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_ST_BLKSIZE 1
20928 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20929 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20930 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20933 cat >conftest.$ac_ext <<_ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 $ac_includes_default
20943 static struct stat ac_aggr;
20944 if (ac_aggr.st_blocks)
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_compile") 2>conftest.er1
20959 grep -v '^ *+' conftest.er1 >conftest.err
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } && {
20964 test -z "$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20966 } && test -s conftest.$ac_objext; then
20967 ac_cv_member_struct_stat_st_blocks=yes
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 cat >conftest.$ac_ext <<_ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 $ac_includes_default
20982 static struct stat ac_aggr;
20983 if (sizeof ac_aggr.st_blocks)
20989 rm -f conftest.$ac_objext
20990 if { (ac_try="$ac_compile"
20991 case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_compile") 2>conftest.er1
20998 grep -v '^ *+' conftest.er1 >conftest.err
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && {
21003 test -z "$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21005 } && test -s conftest.$ac_objext; then
21006 ac_cv_member_struct_stat_st_blocks=yes
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ac_cv_member_struct_stat_st_blocks=no
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21020 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21021 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21023 cat >>confdefs.h <<_ACEOF
21024 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_ST_BLOCKS 1
21033 case " $LIBOBJS " in
21034 *" fileblocks.$ac_objext "* ) ;;
21035 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21042 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21043 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21044 if test "${ac_cv_struct_tm+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 cat >conftest.$ac_ext <<_ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21053 #include <sys/types.h>
21060 int *p = &tm.tm_sec;
21066 rm -f conftest.$ac_objext
21067 if { (ac_try="$ac_compile"
21068 case "(($ac_try" in
21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070 *) ac_try_echo=$ac_try;;
21072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073 (eval "$ac_compile") 2>conftest.er1
21075 grep -v '^ *+' conftest.er1 >conftest.err
21077 cat conftest.err >&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); } && {
21080 test -z "$ac_c_werror_flag" ||
21081 test ! -s conftest.err
21082 } && test -s conftest.$ac_objext; then
21083 ac_cv_struct_tm=time.h
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21088 ac_cv_struct_tm=sys/time.h
21091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21094 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21095 if test $ac_cv_struct_tm = sys/time.h; then
21097 cat >>confdefs.h <<\_ACEOF
21098 #define TM_IN_SYS_TIME 1
21103 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21104 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21105 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 #include <sys/types.h>
21115 #include <$ac_cv_struct_tm>
21121 static struct tm ac_aggr;
21122 if (ac_aggr.tm_zone)
21128 rm -f conftest.$ac_objext
21129 if { (ac_try="$ac_compile"
21130 case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_compile") 2>conftest.er1
21137 grep -v '^ *+' conftest.er1 >conftest.err
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } && {
21142 test -z "$ac_c_werror_flag" ||
21143 test ! -s conftest.err
21144 } && test -s conftest.$ac_objext; then
21145 ac_cv_member_struct_tm_tm_zone=yes
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 cat >conftest.$ac_ext <<_ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 #include <sys/types.h>
21157 #include <$ac_cv_struct_tm>
21163 static struct tm ac_aggr;
21164 if (sizeof ac_aggr.tm_zone)
21170 rm -f conftest.$ac_objext
21171 if { (ac_try="$ac_compile"
21172 case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_compile") 2>conftest.er1
21179 grep -v '^ *+' conftest.er1 >conftest.err
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } && {
21184 test -z "$ac_c_werror_flag" ||
21185 test ! -s conftest.err
21186 } && test -s conftest.$ac_objext; then
21187 ac_cv_member_struct_tm_tm_zone=yes
21189 echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21192 ac_cv_member_struct_tm_tm_zone=no
21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21201 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21202 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21204 cat >>confdefs.h <<_ACEOF
21205 #define HAVE_STRUCT_TM_TM_ZONE 1
21211 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_TM_ZONE 1
21218 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21219 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21220 if test "${ac_cv_have_decl_tzname+set}" = set; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21223 cat >conftest.$ac_ext <<_ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21242 rm -f conftest.$ac_objext
21243 if { (ac_try="$ac_compile"
21244 case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_compile") 2>conftest.er1
21251 grep -v '^ *+' conftest.er1 >conftest.err
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest.$ac_objext; then
21259 ac_cv_have_decl_tzname=yes
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ac_cv_have_decl_tzname=no
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21269 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21270 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21271 if test $ac_cv_have_decl_tzname = yes; then
21273 cat >>confdefs.h <<_ACEOF
21274 #define HAVE_DECL_TZNAME 1
21279 cat >>confdefs.h <<_ACEOF
21280 #define HAVE_DECL_TZNAME 0
21287 { echo "$as_me:$LINENO: checking for tzname" >&5
21288 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21289 if test "${ac_cv_var_tzname+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 cat >conftest.$ac_ext <<_ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21299 #if !HAVE_DECL_TZNAME
21300 extern char *tzname[];
21306 return tzname[0][0];
21311 rm -f conftest.$ac_objext conftest$ac_exeext
21312 if { (ac_try="$ac_link"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_link") 2>conftest.er1
21320 grep -v '^ *+' conftest.er1 >conftest.err
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } && {
21325 test -z "$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21327 } && test -s conftest$ac_exeext &&
21328 $as_test_x conftest$ac_exeext; then
21329 ac_cv_var_tzname=yes
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_cv_var_tzname=no
21337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21338 conftest$ac_exeext conftest.$ac_ext
21340 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21341 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21342 if test $ac_cv_var_tzname = yes; then
21344 cat >>confdefs.h <<\_ACEOF
21345 #define HAVE_TZNAME 1
21352 { echo "$as_me:$LINENO: checking for utime.h" >&5
21353 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21354 if test "${ba_cv_header_utime_h+set}" = set; then
21355 echo $ECHO_N "(cached) $ECHO_C" >&6
21357 cat >conftest.$ac_ext <<_ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21364 #include <sys/types.h>
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_compile") 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && {
21388 test -z "$ac_c_werror_flag" ||
21389 test ! -s conftest.err
21390 } && test -s conftest.$ac_objext; then
21391 ba_cv_header_utime_h=yes
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21396 ba_cv_header_utime_h=no
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21402 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21403 test $ba_cv_header_utime_h = yes &&
21404 cat >>confdefs.h <<\_ACEOF
21405 #define HAVE_UTIME_H 1
21409 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21410 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21411 if test "${ba_cv_header_socklen_t+set}" = set; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21421 #include <sys/types.h>
21422 #include <sys/socket.h>
21431 rm -f conftest.$ac_objext
21432 if { (ac_try="$ac_compile"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_compile") 2>conftest.er1
21440 grep -v '^ *+' conftest.er1 >conftest.err
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && {
21445 test -z "$ac_c_werror_flag" ||
21446 test ! -s conftest.err
21447 } && test -s conftest.$ac_objext; then
21448 ba_cv_header_socklen_t=yes
21450 echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21453 ba_cv_header_socklen_t=no
21456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21458 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21459 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21460 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21461 #define HAVE_SOCKLEN_T 1
21465 { echo "$as_me:$LINENO: checking for bigendian" >&5
21466 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21467 if test "${ba_cv_bigendian+set}" = set; then
21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21470 if test "$cross_compiling" = yes; then
21473 cat >conftest.$ac_ext <<_ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21479 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21481 rm -f conftest$ac_exeext
21482 if { (ac_try="$ac_link"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_link") 2>&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21492 { (case "(($ac_try" in
21493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494 *) ac_try_echo=$ac_try;;
21496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497 (eval "$ac_try") 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 ba_cv_bigendian=yes
21503 echo "$as_me: program exited with status $ac_status" >&5
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ( exit $ac_status )
21510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21515 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21516 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21517 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21518 #define HAVE_BIGENDIAN 1
21523 ac_cpp='$CXXCPP $CPPFLAGS'
21524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21529 { echo "$as_me:$LINENO: checking for typeof" >&5
21530 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21531 if test "${ba_cv_have_typeof+set}" = set; then
21532 echo $ECHO_N "(cached) $ECHO_C" >&6
21534 if test "$cross_compiling" = yes; then
21535 ba_cv_have_typeof=no
21537 cat >conftest.$ac_ext <<_ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 main(){char *a = 0; a = (typeof a)a;}
21545 rm -f conftest$ac_exeext
21546 if { (ac_try="$ac_link"
21547 case "(($ac_try" in
21548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21549 *) ac_try_echo=$ac_try;;
21551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21552 (eval "$ac_link") 2>&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21556 { (case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561 (eval "$ac_try") 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ba_cv_have_typeof=yes
21567 echo "$as_me: program exited with status $ac_status" >&5
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21571 ( exit $ac_status )
21572 ba_cv_have_typeof=no
21574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21579 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21580 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21581 test $ba_cv_have_typeof = yes &&
21582 cat >>confdefs.h <<\_ACEOF
21583 #define HAVE_TYPEOF 1
21587 ac_cpp='$CPP $CPPFLAGS'
21588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21593 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21594 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21595 if test "${ac_cv_c_const+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21598 cat >conftest.$ac_ext <<_ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21608 /* FIXME: Include the comments suggested by Paul. */
21609 #ifndef __cplusplus
21610 /* Ultrix mips cc rejects this. */
21611 typedef int charset[2];
21613 /* SunOS 4.1.1 cc rejects this. */
21614 char const *const *pcpcc;
21616 /* NEC SVR4.0.2 mips cc rejects this. */
21617 struct point {int x, y;};
21618 static struct point const zero = {0,0};
21619 /* AIX XL C 1.02.0.0 rejects this.
21620 It does not let you subtract one const X* pointer from another in
21621 an arm of an if-expression whose if-part is not a constant
21623 const char *g = "string";
21624 pcpcc = &g + (g ? g-g : 0);
21625 /* HPUX 7.0 cc rejects these. */
21627 ppc = (char**) pcpcc;
21628 pcpcc = (char const *const *) ppc;
21629 { /* SCO 3.2v4 cc rejects this. */
21631 char const *s = 0 ? (char *) 0 : (char const *) 0;
21636 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21637 int x[] = {25, 17};
21638 const int *foo = &x[0];
21641 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21642 typedef const int *iptr;
21646 { /* AIX XL C 1.02.0.0 rejects this saying
21647 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21648 struct s { int j; const int *ap[3]; };
21649 struct s *b; b->j = 5;
21651 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21652 const int foo = 10;
21653 if (!foo) return 0;
21655 return !cs[0] && !zero.x;
21662 rm -f conftest.$ac_objext
21663 if { (ac_try="$ac_compile"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_compile") 2>conftest.er1
21671 grep -v '^ *+' conftest.er1 >conftest.err
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } && {
21676 test -z "$ac_c_werror_flag" ||
21677 test ! -s conftest.err
21678 } && test -s conftest.$ac_objext; then
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21689 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21690 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21691 if test $ac_cv_c_const = no; then
21693 cat >>confdefs.h <<\_ACEOF
21701 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21702 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21704 # The order of these tests is important.
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <sys/statvfs.h>
21712 #include <sys/fstyp.h>
21714 if { (ac_try="$ac_cpp conftest.$ac_ext"
21715 case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21722 grep -v '^ *+' conftest.er1 >conftest.err
21724 cat conftest.err >&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); } >/dev/null && {
21727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21728 test ! -s conftest.err
21730 cat >>confdefs.h <<\_ACEOF
21731 #define FSTYPE_STATVFS 1
21735 echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21741 rm -f conftest.err conftest.$ac_ext
21742 if test $fstype = no; then
21743 cat >conftest.$ac_ext <<_ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 #include <sys/statfs.h>
21750 #include <sys/fstyp.h>
21752 if { (ac_try="$ac_cpp conftest.$ac_ext"
21753 case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21760 grep -v '^ *+' conftest.er1 >conftest.err
21762 cat conftest.err >&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } >/dev/null && {
21765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21766 test ! -s conftest.err
21768 cat >>confdefs.h <<\_ACEOF
21769 #define FSTYPE_USG_STATFS 1
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21779 rm -f conftest.err conftest.$ac_ext
21781 if test $fstype = no; then
21782 cat >conftest.$ac_ext <<_ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 #include <sys/statfs.h>
21789 #include <sys/vmount.h>
21791 if { (ac_try="$ac_cpp conftest.$ac_ext"
21792 case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21799 grep -v '^ *+' conftest.er1 >conftest.err
21801 cat conftest.err >&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } >/dev/null && {
21804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21805 test ! -s conftest.err
21807 cat >>confdefs.h <<\_ACEOF
21808 #define FSTYPE_AIX_STATFS 1
21812 echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21818 rm -f conftest.err conftest.$ac_ext
21820 if test $fstype = no; then
21821 cat >conftest.$ac_ext <<_ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h. */
21827 #include <mntent.h>
21829 if { (ac_try="$ac_cpp conftest.$ac_ext"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } >/dev/null && {
21842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21845 cat >>confdefs.h <<\_ACEOF
21846 #define FSTYPE_MNTENT 1
21850 echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21856 rm -f conftest.err conftest.$ac_ext
21858 if test $fstype = no; then
21859 cat >conftest.$ac_ext <<_ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <sys/mount.h>
21868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21869 $EGREP "f_type;" >/dev/null 2>&1; then
21870 cat >>confdefs.h <<\_ACEOF
21871 #define FSTYPE_STATFS 1
21878 if test $fstype = no; then
21879 cat >conftest.$ac_ext <<_ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21885 #include <sys/mount.h>
21886 #include <sys/fs_types.h>
21888 if { (ac_try="$ac_cpp conftest.$ac_ext"
21889 case "(($ac_try" in
21890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21896 grep -v '^ *+' conftest.er1 >conftest.err
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } >/dev/null && {
21901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21902 test ! -s conftest.err
21904 cat >>confdefs.h <<\_ACEOF
21905 #define FSTYPE_GETMNT 1
21909 echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21915 rm -f conftest.err conftest.$ac_ext
21917 { echo "$as_me:$LINENO: result: $fstype" >&5
21918 echo "${ECHO_T}$fstype" >&6; }
21920 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21921 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21922 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21923 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21927 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21929 # Is the header compilable?
21930 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21931 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
21932 cat >conftest.$ac_ext <<_ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21938 $ac_includes_default
21939 #include <sys/statvfs.h>
21941 rm -f conftest.$ac_objext
21942 if { (ac_try="$ac_compile"
21943 case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_compile") 2>conftest.er1
21950 grep -v '^ *+' conftest.er1 >conftest.err
21952 cat conftest.err >&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } && {
21955 test -z "$ac_c_werror_flag" ||
21956 test ! -s conftest.err
21957 } && test -s conftest.$ac_objext; then
21958 ac_header_compiler=yes
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 ac_header_compiler=no
21966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21968 echo "${ECHO_T}$ac_header_compiler" >&6; }
21970 # Is the header present?
21971 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21972 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
21973 cat >conftest.$ac_ext <<_ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 #include <sys/statvfs.h>
21981 if { (ac_try="$ac_cpp conftest.$ac_ext"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } >/dev/null && {
21994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21997 ac_header_preproc=yes
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_header_preproc=no
22005 rm -f conftest.err conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22007 echo "${ECHO_T}$ac_header_preproc" >&6; }
22009 # So? What about this header?
22010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22012 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22013 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22014 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22015 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22016 ac_header_preproc=yes
22019 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22020 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22021 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
22022 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
22023 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22024 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22025 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
22026 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22028 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22030 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22034 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22035 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22036 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 ac_cv_header_sys_statvfs_h=$ac_header_preproc
22041 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22042 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22045 if test $ac_cv_header_sys_statvfs_h = yes; then
22047 cat >>confdefs.h <<\_ACEOF
22048 #define HAVE_SYS_STATVFS_H 1
22055 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22056 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22057 if test "${ac_cv_type_signal+set}" = set; then
22058 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 #include <sys/types.h>
22067 #include <signal.h>
22072 return *(signal (0, 0)) (0) == 1;
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 ac_cv_type_signal=int
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_cv_type_signal=void
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22104 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22105 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22107 cat >>confdefs.h <<_ACEOF
22108 #define RETSIGTYPE $ac_cv_type_signal
22113 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22114 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22115 if test "${bash_cv_signal_vintage+set}" = set; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
22119 cat >conftest.$ac_ext <<_ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h. */
22125 #include <signal.h>
22131 struct sigaction sa;
22132 sigemptyset(&ss); sigsuspend(&ss);
22133 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22134 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22140 rm -f conftest.$ac_objext conftest$ac_exeext
22141 if { (ac_try="$ac_link"
22142 case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_link") 2>conftest.er1
22149 grep -v '^ *+' conftest.er1 >conftest.err
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } && {
22154 test -z "$ac_c_werror_flag" ||
22155 test ! -s conftest.err
22156 } && test -s conftest$ac_exeext &&
22157 $as_test_x conftest$ac_exeext; then
22158 bash_cv_signal_vintage="posix"
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22164 cat >conftest.$ac_ext <<_ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h. */
22170 #include <signal.h>
22175 int mask = sigmask(SIGINT);
22176 sigsetmask(mask); sigblock(mask); sigpause(mask);
22182 rm -f conftest.$ac_objext conftest$ac_exeext
22183 if { (ac_try="$ac_link"
22184 case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189 (eval "$ac_link") 2>conftest.er1
22191 grep -v '^ *+' conftest.er1 >conftest.err
22193 cat conftest.err >&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } && {
22196 test -z "$ac_c_werror_flag" ||
22197 test ! -s conftest.err
22198 } && test -s conftest$ac_exeext &&
22199 $as_test_x conftest$ac_exeext; then
22200 bash_cv_signal_vintage="4.2bsd"
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22206 cat >conftest.$ac_ext <<_ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22213 #include <signal.h>
22214 RETSIGTYPE foo() { }
22219 int mask = sigmask(SIGINT);
22220 sigset(SIGINT, foo); sigrelse(SIGINT);
22221 sighold(SIGINT); sigpause(SIGINT);
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (ac_try="$ac_link"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_link") 2>conftest.er1
22236 grep -v '^ *+' conftest.er1 >conftest.err
22238 cat conftest.err >&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } && {
22241 test -z "$ac_c_werror_flag" ||
22242 test ! -s conftest.err
22243 } && test -s conftest$ac_exeext &&
22244 $as_test_x conftest$ac_exeext; then
22245 bash_cv_signal_vintage="svr3"
22247 echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 bash_cv_signal_vintage="v7"
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255 conftest$ac_exeext conftest.$ac_ext
22259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22260 conftest$ac_exeext conftest.$ac_ext
22264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22265 conftest$ac_exeext conftest.$ac_ext
22269 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22270 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22271 if test "$bash_cv_signal_vintage" = "posix"; then
22272 cat >>confdefs.h <<\_ACEOF
22273 #define HAVE_POSIX_SIGNALS 1
22276 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22277 cat >>confdefs.h <<\_ACEOF
22278 #define HAVE_BSD_SIGNALS 1
22281 elif test "$bash_cv_signal_vintage" = "svr3"; then
22282 cat >>confdefs.h <<\_ACEOF
22283 #define HAVE_USG_SIGHOLD 1
22288 { echo "$as_me:$LINENO: checking for mode_t" >&5
22289 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22290 if test "${ac_cv_type_mode_t+set}" = set; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22293 cat >conftest.$ac_ext <<_ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22299 $ac_includes_default
22300 typedef mode_t ac__type_new_;
22304 if ((ac__type_new_ *) 0)
22306 if (sizeof (ac__type_new_))
22312 rm -f conftest.$ac_objext
22313 if { (ac_try="$ac_compile"
22314 case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_compile") 2>conftest.er1
22321 grep -v '^ *+' conftest.er1 >conftest.err
22323 cat conftest.err >&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } && {
22326 test -z "$ac_c_werror_flag" ||
22327 test ! -s conftest.err
22328 } && test -s conftest.$ac_objext; then
22329 ac_cv_type_mode_t=yes
22331 echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22334 ac_cv_type_mode_t=no
22337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22339 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22340 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22341 if test $ac_cv_type_mode_t = yes; then
22345 cat >>confdefs.h <<_ACEOF
22351 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22352 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22353 if test "${ac_cv_type_uid_t+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22356 cat >conftest.$ac_ext <<_ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22362 #include <sys/types.h>
22365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22366 $EGREP "uid_t" >/dev/null 2>&1; then
22367 ac_cv_type_uid_t=yes
22369 ac_cv_type_uid_t=no
22374 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22375 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22376 if test $ac_cv_type_uid_t = no; then
22378 cat >>confdefs.h <<\_ACEOF
22383 cat >>confdefs.h <<\_ACEOF
22389 { echo "$as_me:$LINENO: checking for size_t" >&5
22390 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22391 if test "${ac_cv_type_size_t+set}" = set; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22394 cat >conftest.$ac_ext <<_ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 $ac_includes_default
22401 typedef size_t ac__type_new_;
22405 if ((ac__type_new_ *) 0)
22407 if (sizeof (ac__type_new_))
22413 rm -f conftest.$ac_objext
22414 if { (ac_try="$ac_compile"
22415 case "(($ac_try" in
22416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417 *) ac_try_echo=$ac_try;;
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420 (eval "$ac_compile") 2>conftest.er1
22422 grep -v '^ *+' conftest.er1 >conftest.err
22424 cat conftest.err >&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } && {
22427 test -z "$ac_c_werror_flag" ||
22428 test ! -s conftest.err
22429 } && test -s conftest.$ac_objext; then
22430 ac_cv_type_size_t=yes
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22435 ac_cv_type_size_t=no
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22441 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22442 if test $ac_cv_type_size_t = yes; then
22446 cat >>confdefs.h <<_ACEOF
22447 #define size_t unsigned int
22452 { echo "$as_me:$LINENO: checking for pid_t" >&5
22453 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22454 if test "${ac_cv_type_pid_t+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 cat >conftest.$ac_ext <<_ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 $ac_includes_default
22464 typedef pid_t ac__type_new_;
22468 if ((ac__type_new_ *) 0)
22470 if (sizeof (ac__type_new_))
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_compile") 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } && {
22490 test -z "$ac_c_werror_flag" ||
22491 test ! -s conftest.err
22492 } && test -s conftest.$ac_objext; then
22493 ac_cv_type_pid_t=yes
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22498 ac_cv_type_pid_t=no
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22504 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22505 if test $ac_cv_type_pid_t = yes; then
22509 cat >>confdefs.h <<_ACEOF
22515 { echo "$as_me:$LINENO: checking for off_t" >&5
22516 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22517 if test "${ac_cv_type_off_t+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22520 cat >conftest.$ac_ext <<_ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h. */
22526 $ac_includes_default
22527 typedef off_t ac__type_new_;
22531 if ((ac__type_new_ *) 0)
22533 if (sizeof (ac__type_new_))
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22548 grep -v '^ *+' conftest.er1 >conftest.err
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.$ac_objext; then
22556 ac_cv_type_off_t=yes
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_cv_type_off_t=no
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22566 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22567 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22568 if test $ac_cv_type_off_t = yes; then
22572 cat >>confdefs.h <<_ACEOF
22573 #define off_t long int
22578 { echo "$as_me:$LINENO: checking for ino_t" >&5
22579 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22580 if test "${ac_cv_type_ino_t+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 $ac_includes_default
22590 typedef ino_t ac__type_new_;
22594 if ((ac__type_new_ *) 0)
22596 if (sizeof (ac__type_new_))
22602 rm -f conftest.$ac_objext
22603 if { (ac_try="$ac_compile"
22604 case "(($ac_try" in
22605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606 *) ac_try_echo=$ac_try;;
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609 (eval "$ac_compile") 2>conftest.er1
22611 grep -v '^ *+' conftest.er1 >conftest.err
22613 cat conftest.err >&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } && {
22616 test -z "$ac_c_werror_flag" ||
22617 test ! -s conftest.err
22618 } && test -s conftest.$ac_objext; then
22619 ac_cv_type_ino_t=yes
22621 echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22624 ac_cv_type_ino_t=no
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22629 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22630 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22631 if test $ac_cv_type_ino_t = yes; then
22635 cat >>confdefs.h <<_ACEOF
22636 #define ino_t unsigned long
22641 { echo "$as_me:$LINENO: checking for dev_t" >&5
22642 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22643 if test "${ac_cv_type_dev_t+set}" = set; then
22644 echo $ECHO_N "(cached) $ECHO_C" >&6
22646 cat >conftest.$ac_ext <<_ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h. */
22652 $ac_includes_default
22653 typedef dev_t ac__type_new_;
22657 if ((ac__type_new_ *) 0)
22659 if (sizeof (ac__type_new_))
22665 rm -f conftest.$ac_objext
22666 if { (ac_try="$ac_compile"
22667 case "(($ac_try" in
22668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669 *) ac_try_echo=$ac_try;;
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672 (eval "$ac_compile") 2>conftest.er1
22674 grep -v '^ *+' conftest.er1 >conftest.err
22676 cat conftest.err >&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } && {
22679 test -z "$ac_c_werror_flag" ||
22680 test ! -s conftest.err
22681 } && test -s conftest.$ac_objext; then
22682 ac_cv_type_dev_t=yes
22684 echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22687 ac_cv_type_dev_t=no
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22693 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22694 if test $ac_cv_type_dev_t = yes; then
22698 cat >>confdefs.h <<_ACEOF
22699 #define dev_t unsigned long
22704 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22705 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22706 if test "${ac_cv_type_daddr_t+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22709 cat >conftest.$ac_ext <<_ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h. */
22715 $ac_includes_default
22716 typedef daddr_t ac__type_new_;
22720 if ((ac__type_new_ *) 0)
22722 if (sizeof (ac__type_new_))
22728 rm -f conftest.$ac_objext
22729 if { (ac_try="$ac_compile"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735 (eval "$ac_compile") 2>conftest.er1
22737 grep -v '^ *+' conftest.er1 >conftest.err
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } && {
22742 test -z "$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22744 } && test -s conftest.$ac_objext; then
22745 ac_cv_type_daddr_t=yes
22747 echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22750 ac_cv_type_daddr_t=no
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22755 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22756 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22757 if test $ac_cv_type_daddr_t = yes; then
22761 cat >>confdefs.h <<_ACEOF
22762 #define daddr_t long
22767 { echo "$as_me:$LINENO: checking for major_t" >&5
22768 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22769 if test "${ac_cv_type_major_t+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 cat >conftest.$ac_ext <<_ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778 $ac_includes_default
22779 typedef major_t ac__type_new_;
22783 if ((ac__type_new_ *) 0)
22785 if (sizeof (ac__type_new_))
22791 rm -f conftest.$ac_objext
22792 if { (ac_try="$ac_compile"
22793 case "(($ac_try" in
22794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795 *) ac_try_echo=$ac_try;;
22797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798 (eval "$ac_compile") 2>conftest.er1
22800 grep -v '^ *+' conftest.er1 >conftest.err
22802 cat conftest.err >&5
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } && {
22805 test -z "$ac_c_werror_flag" ||
22806 test ! -s conftest.err
22807 } && test -s conftest.$ac_objext; then
22808 ac_cv_type_major_t=yes
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22813 ac_cv_type_major_t=no
22816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22818 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22819 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22820 if test $ac_cv_type_major_t = yes; then
22824 cat >>confdefs.h <<_ACEOF
22825 #define major_t int
22830 { echo "$as_me:$LINENO: checking for minor_t" >&5
22831 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22832 if test "${ac_cv_type_minor_t+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22835 cat >conftest.$ac_ext <<_ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h. */
22841 $ac_includes_default
22842 typedef minor_t ac__type_new_;
22846 if ((ac__type_new_ *) 0)
22848 if (sizeof (ac__type_new_))
22854 rm -f conftest.$ac_objext
22855 if { (ac_try="$ac_compile"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_compile") 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest.$ac_objext; then
22871 ac_cv_type_minor_t=yes
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 ac_cv_type_minor_t=no
22879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22881 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22882 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22883 if test $ac_cv_type_minor_t = yes; then
22887 cat >>confdefs.h <<_ACEOF
22888 #define minor_t int
22893 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22894 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22895 if test "${ac_cv_type_ssize_t+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 cat >conftest.$ac_ext <<_ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h. */
22904 $ac_includes_default
22905 typedef ssize_t ac__type_new_;
22909 if ((ac__type_new_ *) 0)
22911 if (sizeof (ac__type_new_))
22917 rm -f conftest.$ac_objext
22918 if { (ac_try="$ac_compile"
22919 case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924 (eval "$ac_compile") 2>conftest.er1
22926 grep -v '^ *+' conftest.er1 >conftest.err
22928 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } && {
22931 test -z "$ac_c_werror_flag" ||
22932 test ! -s conftest.err
22933 } && test -s conftest.$ac_objext; then
22934 ac_cv_type_ssize_t=yes
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 ac_cv_type_ssize_t=no
22942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22944 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22945 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22946 if test $ac_cv_type_ssize_t = yes; then
22950 cat >>confdefs.h <<_ACEOF
22951 #define ssize_t int
22956 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22957 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22958 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22961 cat >conftest.$ac_ext <<_ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 $ac_includes_default
22971 static struct stat ac_aggr;
22972 if (ac_aggr.st_blocks)
22978 rm -f conftest.$ac_objext
22979 if { (ac_try="$ac_compile"
22980 case "(($ac_try" in
22981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985 (eval "$ac_compile") 2>conftest.er1
22987 grep -v '^ *+' conftest.er1 >conftest.err
22989 cat conftest.err >&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } && {
22992 test -z "$ac_c_werror_flag" ||
22993 test ! -s conftest.err
22994 } && test -s conftest.$ac_objext; then
22995 ac_cv_member_struct_stat_st_blocks=yes
22997 echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
23000 cat >conftest.$ac_ext <<_ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h. */
23006 $ac_includes_default
23010 static struct stat ac_aggr;
23011 if (sizeof ac_aggr.st_blocks)
23017 rm -f conftest.$ac_objext
23018 if { (ac_try="$ac_compile"
23019 case "(($ac_try" in
23020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021 *) ac_try_echo=$ac_try;;
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024 (eval "$ac_compile") 2>conftest.er1
23026 grep -v '^ *+' conftest.er1 >conftest.err
23028 cat conftest.err >&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } && {
23031 test -z "$ac_c_werror_flag" ||
23032 test ! -s conftest.err
23033 } && test -s conftest.$ac_objext; then
23034 ac_cv_member_struct_stat_st_blocks=yes
23036 echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23039 ac_cv_member_struct_stat_st_blocks=no
23042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23047 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23048 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23049 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23051 cat >>confdefs.h <<_ACEOF
23052 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_ST_BLOCKS 1
23061 case " $LIBOBJS " in
23062 *" fileblocks.$ac_objext "* ) ;;
23063 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23070 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23071 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23072 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23073 echo $ECHO_N "(cached) $ECHO_C" >&6
23075 cat >conftest.$ac_ext <<_ACEOF
23078 cat confdefs.h >>conftest.$ac_ext
23079 cat >>conftest.$ac_ext <<_ACEOF
23080 /* end confdefs.h. */
23081 $ac_includes_default
23085 static struct stat ac_aggr;
23086 if (ac_aggr.st_rdev)
23092 rm -f conftest.$ac_objext
23093 if { (ac_try="$ac_compile"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23099 (eval "$ac_compile") 2>conftest.er1
23101 grep -v '^ *+' conftest.er1 >conftest.err
23103 cat conftest.err >&5
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } && {
23106 test -z "$ac_c_werror_flag" ||
23107 test ! -s conftest.err
23108 } && test -s conftest.$ac_objext; then
23109 ac_cv_member_struct_stat_st_rdev=yes
23111 echo "$as_me: failed program was:" >&5
23112 sed 's/^/| /' conftest.$ac_ext >&5
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 $ac_includes_default
23124 static struct stat ac_aggr;
23125 if (sizeof ac_aggr.st_rdev)
23131 rm -f conftest.$ac_objext
23132 if { (ac_try="$ac_compile"
23133 case "(($ac_try" in
23134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135 *) ac_try_echo=$ac_try;;
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_compile") 2>conftest.er1
23140 grep -v '^ *+' conftest.er1 >conftest.err
23142 cat conftest.err >&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } && {
23145 test -z "$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23147 } && test -s conftest.$ac_objext; then
23148 ac_cv_member_struct_stat_st_rdev=yes
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 ac_cv_member_struct_stat_st_rdev=no
23156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23162 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23163 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23165 cat >>confdefs.h <<_ACEOF
23166 #define HAVE_STRUCT_STAT_ST_RDEV 1
23170 cat >>confdefs.h <<\_ACEOF
23171 #define HAVE_ST_RDEV 1
23177 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23178 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23179 if test "${ac_cv_struct_tm+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 #include <sys/types.h>
23195 int *p = &tm.tm_sec;
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_compile") 2>conftest.er1
23210 grep -v '^ *+' conftest.er1 >conftest.err
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest.$ac_objext; then
23218 ac_cv_struct_tm=time.h
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 ac_cv_struct_tm=sys/time.h
23226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23229 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23230 if test $ac_cv_struct_tm = sys/time.h; then
23232 cat >>confdefs.h <<\_ACEOF
23233 #define TM_IN_SYS_TIME 1
23238 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23239 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23240 if test "${ac_cv_c_const+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23253 /* FIXME: Include the comments suggested by Paul. */
23254 #ifndef __cplusplus
23255 /* Ultrix mips cc rejects this. */
23256 typedef int charset[2];
23258 /* SunOS 4.1.1 cc rejects this. */
23259 char const *const *pcpcc;
23261 /* NEC SVR4.0.2 mips cc rejects this. */
23262 struct point {int x, y;};
23263 static struct point const zero = {0,0};
23264 /* AIX XL C 1.02.0.0 rejects this.
23265 It does not let you subtract one const X* pointer from another in
23266 an arm of an if-expression whose if-part is not a constant
23268 const char *g = "string";
23269 pcpcc = &g + (g ? g-g : 0);
23270 /* HPUX 7.0 cc rejects these. */
23272 ppc = (char**) pcpcc;
23273 pcpcc = (char const *const *) ppc;
23274 { /* SCO 3.2v4 cc rejects this. */
23276 char const *s = 0 ? (char *) 0 : (char const *) 0;
23281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23282 int x[] = {25, 17};
23283 const int *foo = &x[0];
23286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23287 typedef const int *iptr;
23291 { /* AIX XL C 1.02.0.0 rejects this saying
23292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23293 struct s { int j; const int *ap[3]; };
23294 struct s *b; b->j = 5;
23296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23297 const int foo = 10;
23298 if (!foo) return 0;
23300 return !cs[0] && !zero.x;
23307 rm -f conftest.$ac_objext
23308 if { (ac_try="$ac_compile"
23309 case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314 (eval "$ac_compile") 2>conftest.er1
23316 grep -v '^ *+' conftest.er1 >conftest.err
23318 cat conftest.err >&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); } && {
23321 test -z "$ac_c_werror_flag" ||
23322 test ! -s conftest.err
23323 } && test -s conftest.$ac_objext; then
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23334 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23335 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23336 if test $ac_cv_c_const = no; then
23338 cat >>confdefs.h <<\_ACEOF
23346 { echo "$as_me:$LINENO: checking for char" >&5
23347 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23348 if test "${ac_cv_type_char+set}" = set; then
23349 echo $ECHO_N "(cached) $ECHO_C" >&6
23351 cat >conftest.$ac_ext <<_ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23357 $ac_includes_default
23358 typedef char ac__type_new_;
23362 if ((ac__type_new_ *) 0)
23364 if (sizeof (ac__type_new_))
23370 rm -f conftest.$ac_objext
23371 if { (ac_try="$ac_compile"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_compile") 2>conftest.er1
23379 grep -v '^ *+' conftest.er1 >conftest.err
23381 cat conftest.err >&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } && {
23384 test -z "$ac_c_werror_flag" ||
23385 test ! -s conftest.err
23386 } && test -s conftest.$ac_objext; then
23387 ac_cv_type_char=yes
23389 echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23397 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23398 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23400 # The cast to long int works around a bug in the HP C Compiler
23401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23403 # This bug is HP SR number 8606223364.
23404 { echo "$as_me:$LINENO: checking size of char" >&5
23405 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23406 if test "${ac_cv_sizeof_char+set}" = set; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23409 if test "$cross_compiling" = yes; then
23410 # Depending upon the size, compute the lo and hi bounds.
23411 cat >conftest.$ac_ext <<_ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23417 $ac_includes_default
23418 typedef char ac__type_sizeof_;
23422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23429 rm -f conftest.$ac_objext
23430 if { (ac_try="$ac_compile"
23431 case "(($ac_try" in
23432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23433 *) ac_try_echo=$ac_try;;
23435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23436 (eval "$ac_compile") 2>conftest.er1
23438 grep -v '^ *+' conftest.er1 >conftest.err
23440 cat conftest.err >&5
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); } && {
23443 test -z "$ac_c_werror_flag" ||
23444 test ! -s conftest.err
23445 } && test -s conftest.$ac_objext; then
23448 cat >conftest.$ac_ext <<_ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h. */
23454 $ac_includes_default
23455 typedef char ac__type_sizeof_;
23459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23466 rm -f conftest.$ac_objext
23467 if { (ac_try="$ac_compile"
23468 case "(($ac_try" in
23469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23470 *) ac_try_echo=$ac_try;;
23472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23473 (eval "$ac_compile") 2>conftest.er1
23475 grep -v '^ *+' conftest.er1 >conftest.err
23477 cat conftest.err >&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } && {
23480 test -z "$ac_c_werror_flag" ||
23481 test ! -s conftest.err
23482 } && test -s conftest.$ac_objext; then
23483 ac_hi=$ac_mid; break
23485 echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23488 ac_lo=`expr $ac_mid + 1`
23489 if test $ac_lo -le $ac_mid; then
23493 ac_mid=`expr 2 '*' $ac_mid + 1`
23496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499 echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23502 cat >conftest.$ac_ext <<_ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508 $ac_includes_default
23509 typedef char ac__type_sizeof_;
23513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527 (eval "$ac_compile") 2>conftest.er1
23529 grep -v '^ *+' conftest.er1 >conftest.err
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } && {
23534 test -z "$ac_c_werror_flag" ||
23535 test ! -s conftest.err
23536 } && test -s conftest.$ac_objext; then
23539 cat >conftest.$ac_ext <<_ACEOF
23542 cat confdefs.h >>conftest.$ac_ext
23543 cat >>conftest.$ac_ext <<_ACEOF
23544 /* end confdefs.h. */
23545 $ac_includes_default
23546 typedef char ac__type_sizeof_;
23550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23557 rm -f conftest.$ac_objext
23558 if { (ac_try="$ac_compile"
23559 case "(($ac_try" in
23560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561 *) ac_try_echo=$ac_try;;
23563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23564 (eval "$ac_compile") 2>conftest.er1
23566 grep -v '^ *+' conftest.er1 >conftest.err
23568 cat conftest.err >&5
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } && {
23571 test -z "$ac_c_werror_flag" ||
23572 test ! -s conftest.err
23573 } && test -s conftest.$ac_objext; then
23574 ac_lo=$ac_mid; break
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 ac_hi=`expr '(' $ac_mid ')' - 1`
23580 if test $ac_mid -le $ac_hi; then
23584 ac_mid=`expr 2 '*' $ac_mid`
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590 echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600 # Binary search between lo and hi bounds.
23601 while test "x$ac_lo" != "x$ac_hi"; do
23602 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23603 cat >conftest.$ac_ext <<_ACEOF
23606 cat confdefs.h >>conftest.$ac_ext
23607 cat >>conftest.$ac_ext <<_ACEOF
23608 /* end confdefs.h. */
23609 $ac_includes_default
23610 typedef char ac__type_sizeof_;
23614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23621 rm -f conftest.$ac_objext
23622 if { (ac_try="$ac_compile"
23623 case "(($ac_try" in
23624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625 *) ac_try_echo=$ac_try;;
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628 (eval "$ac_compile") 2>conftest.er1
23630 grep -v '^ *+' conftest.er1 >conftest.err
23632 cat conftest.err >&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); } && {
23635 test -z "$ac_c_werror_flag" ||
23636 test ! -s conftest.err
23637 } && test -s conftest.$ac_objext; then
23640 echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23643 ac_lo=`expr '(' $ac_mid ')' + 1`
23646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23649 ?*) ac_cv_sizeof_char=$ac_lo;;
23650 '') if test "$ac_cv_type_char" = yes; then
23651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23652 See \`config.log' for more details." >&5
23653 echo "$as_me: error: cannot compute sizeof (char)
23654 See \`config.log' for more details." >&2;}
23655 { (exit 77); exit 77; }; }
23657 ac_cv_sizeof_char=0
23661 cat >conftest.$ac_ext <<_ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h. */
23667 $ac_includes_default
23668 typedef char ac__type_sizeof_;
23669 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23670 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23672 #include <stdlib.h>
23677 FILE *f = fopen ("conftest.val", "w");
23680 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23682 long int i = longval ();
23683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23685 fprintf (f, "%ld\n", i);
23689 unsigned long int i = ulongval ();
23690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23692 fprintf (f, "%lu\n", i);
23694 return ferror (f) || fclose (f) != 0;
23700 rm -f conftest$ac_exeext
23701 if { (ac_try="$ac_link"
23702 case "(($ac_try" in
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707 (eval "$ac_link") 2>&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23711 { (case "(($ac_try" in
23712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713 *) ac_try_echo=$ac_try;;
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716 (eval "$ac_try") 2>&5
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; }; then
23720 ac_cv_sizeof_char=`cat conftest.val`
23722 echo "$as_me: program exited with status $ac_status" >&5
23723 echo "$as_me: failed program was:" >&5
23724 sed 's/^/| /' conftest.$ac_ext >&5
23726 ( exit $ac_status )
23727 if test "$ac_cv_type_char" = yes; then
23728 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23729 See \`config.log' for more details." >&5
23730 echo "$as_me: error: cannot compute sizeof (char)
23731 See \`config.log' for more details." >&2;}
23732 { (exit 77); exit 77; }; }
23734 ac_cv_sizeof_char=0
23737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23741 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23742 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23746 cat >>confdefs.h <<_ACEOF
23747 #define SIZEOF_CHAR $ac_cv_sizeof_char
23751 { echo "$as_me:$LINENO: checking for short int" >&5
23752 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23753 if test "${ac_cv_type_short_int+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23762 $ac_includes_default
23763 typedef short int ac__type_new_;
23767 if ((ac__type_new_ *) 0)
23769 if (sizeof (ac__type_new_))
23775 rm -f conftest.$ac_objext
23776 if { (ac_try="$ac_compile"
23777 case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23782 (eval "$ac_compile") 2>conftest.er1
23784 grep -v '^ *+' conftest.er1 >conftest.err
23786 cat conftest.err >&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } && {
23789 test -z "$ac_c_werror_flag" ||
23790 test ! -s conftest.err
23791 } && test -s conftest.$ac_objext; then
23792 ac_cv_type_short_int=yes
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23797 ac_cv_type_short_int=no
23800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23802 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23803 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23805 # The cast to long int works around a bug in the HP C Compiler
23806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23808 # This bug is HP SR number 8606223364.
23809 { echo "$as_me:$LINENO: checking size of short int" >&5
23810 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23811 if test "${ac_cv_sizeof_short_int+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23814 if test "$cross_compiling" = yes; then
23815 # Depending upon the size, compute the lo and hi bounds.
23816 cat >conftest.$ac_ext <<_ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23822 $ac_includes_default
23823 typedef short int ac__type_sizeof_;
23827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23834 rm -f conftest.$ac_objext
23835 if { (ac_try="$ac_compile"
23836 case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_compile") 2>conftest.er1
23843 grep -v '^ *+' conftest.er1 >conftest.err
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } && {
23848 test -z "$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 } && test -s conftest.$ac_objext; then
23853 cat >conftest.$ac_ext <<_ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h. */
23859 $ac_includes_default
23860 typedef short int ac__type_sizeof_;
23864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23871 rm -f conftest.$ac_objext
23872 if { (ac_try="$ac_compile"
23873 case "(($ac_try" in
23874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875 *) ac_try_echo=$ac_try;;
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878 (eval "$ac_compile") 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest.$ac_objext; then
23888 ac_hi=$ac_mid; break
23890 echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23893 ac_lo=`expr $ac_mid + 1`
23894 if test $ac_lo -le $ac_mid; then
23898 ac_mid=`expr 2 '*' $ac_mid + 1`
23901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 $ac_includes_default
23914 typedef short int ac__type_sizeof_;
23918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23925 rm -f conftest.$ac_objext
23926 if { (ac_try="$ac_compile"
23927 case "(($ac_try" in
23928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929 *) ac_try_echo=$ac_try;;
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932 (eval "$ac_compile") 2>conftest.er1
23934 grep -v '^ *+' conftest.er1 >conftest.err
23936 cat conftest.err >&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } && {
23939 test -z "$ac_c_werror_flag" ||
23940 test ! -s conftest.err
23941 } && test -s conftest.$ac_objext; then
23944 cat >conftest.$ac_ext <<_ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23950 $ac_includes_default
23951 typedef short int ac__type_sizeof_;
23955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23962 rm -f conftest.$ac_objext
23963 if { (ac_try="$ac_compile"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969 (eval "$ac_compile") 2>conftest.er1
23971 grep -v '^ *+' conftest.er1 >conftest.err
23973 cat conftest.err >&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); } && {
23976 test -z "$ac_c_werror_flag" ||
23977 test ! -s conftest.err
23978 } && test -s conftest.$ac_objext; then
23979 ac_lo=$ac_mid; break
23981 echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23984 ac_hi=`expr '(' $ac_mid ')' - 1`
23985 if test $ac_mid -le $ac_hi; then
23989 ac_mid=`expr 2 '*' $ac_mid`
23992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23995 echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
24001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24005 # Binary search between lo and hi bounds.
24006 while test "x$ac_lo" != "x$ac_hi"; do
24007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24008 cat >conftest.$ac_ext <<_ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h. */
24014 $ac_includes_default
24015 typedef short int ac__type_sizeof_;
24019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24026 rm -f conftest.$ac_objext
24027 if { (ac_try="$ac_compile"
24028 case "(($ac_try" in
24029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030 *) ac_try_echo=$ac_try;;
24032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033 (eval "$ac_compile") 2>conftest.er1
24035 grep -v '^ *+' conftest.er1 >conftest.err
24037 cat conftest.err >&5
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } && {
24040 test -z "$ac_c_werror_flag" ||
24041 test ! -s conftest.err
24042 } && test -s conftest.$ac_objext; then
24045 echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24048 ac_lo=`expr '(' $ac_mid ')' + 1`
24051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24054 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24055 '') if test "$ac_cv_type_short_int" = yes; then
24056 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24057 See \`config.log' for more details." >&5
24058 echo "$as_me: error: cannot compute sizeof (short int)
24059 See \`config.log' for more details." >&2;}
24060 { (exit 77); exit 77; }; }
24062 ac_cv_sizeof_short_int=0
24066 cat >conftest.$ac_ext <<_ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h. */
24072 $ac_includes_default
24073 typedef short int ac__type_sizeof_;
24074 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24075 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24077 #include <stdlib.h>
24082 FILE *f = fopen ("conftest.val", "w");
24085 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24087 long int i = longval ();
24088 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24090 fprintf (f, "%ld\n", i);
24094 unsigned long int i = ulongval ();
24095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24097 fprintf (f, "%lu\n", i);
24099 return ferror (f) || fclose (f) != 0;
24105 rm -f conftest$ac_exeext
24106 if { (ac_try="$ac_link"
24107 case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_link") 2>&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24116 { (case "(($ac_try" in
24117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118 *) ac_try_echo=$ac_try;;
24120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24121 (eval "$ac_try") 2>&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); }; }; then
24125 ac_cv_sizeof_short_int=`cat conftest.val`
24127 echo "$as_me: program exited with status $ac_status" >&5
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24131 ( exit $ac_status )
24132 if test "$ac_cv_type_short_int" = yes; then
24133 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24134 See \`config.log' for more details." >&5
24135 echo "$as_me: error: cannot compute sizeof (short int)
24136 See \`config.log' for more details." >&2;}
24137 { (exit 77); exit 77; }; }
24139 ac_cv_sizeof_short_int=0
24142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24146 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24147 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24151 cat >>confdefs.h <<_ACEOF
24152 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24156 { echo "$as_me:$LINENO: checking for int" >&5
24157 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24158 if test "${ac_cv_type_int+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24161 cat >conftest.$ac_ext <<_ACEOF
24164 cat confdefs.h >>conftest.$ac_ext
24165 cat >>conftest.$ac_ext <<_ACEOF
24166 /* end confdefs.h. */
24167 $ac_includes_default
24168 typedef int ac__type_new_;
24172 if ((ac__type_new_ *) 0)
24174 if (sizeof (ac__type_new_))
24180 rm -f conftest.$ac_objext
24181 if { (ac_try="$ac_compile"
24182 case "(($ac_try" in
24183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184 *) ac_try_echo=$ac_try;;
24186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187 (eval "$ac_compile") 2>conftest.er1
24189 grep -v '^ *+' conftest.er1 >conftest.err
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } && {
24194 test -z "$ac_c_werror_flag" ||
24195 test ! -s conftest.err
24196 } && test -s conftest.$ac_objext; then
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24207 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24208 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24210 # The cast to long int works around a bug in the HP C Compiler
24211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24213 # This bug is HP SR number 8606223364.
24214 { echo "$as_me:$LINENO: checking size of int" >&5
24215 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24216 if test "${ac_cv_sizeof_int+set}" = set; then
24217 echo $ECHO_N "(cached) $ECHO_C" >&6
24219 if test "$cross_compiling" = yes; then
24220 # Depending upon the size, compute the lo and hi bounds.
24221 cat >conftest.$ac_ext <<_ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 $ac_includes_default
24228 typedef int ac__type_sizeof_;
24232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24239 rm -f conftest.$ac_objext
24240 if { (ac_try="$ac_compile"
24241 case "(($ac_try" in
24242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243 *) ac_try_echo=$ac_try;;
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246 (eval "$ac_compile") 2>conftest.er1
24248 grep -v '^ *+' conftest.er1 >conftest.err
24250 cat conftest.err >&5
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); } && {
24253 test -z "$ac_c_werror_flag" ||
24254 test ! -s conftest.err
24255 } && test -s conftest.$ac_objext; then
24258 cat >conftest.$ac_ext <<_ACEOF
24261 cat confdefs.h >>conftest.$ac_ext
24262 cat >>conftest.$ac_ext <<_ACEOF
24263 /* end confdefs.h. */
24264 $ac_includes_default
24265 typedef int ac__type_sizeof_;
24269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24283 (eval "$ac_compile") 2>conftest.er1
24285 grep -v '^ *+' conftest.er1 >conftest.err
24287 cat conftest.err >&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && {
24290 test -z "$ac_c_werror_flag" ||
24291 test ! -s conftest.err
24292 } && test -s conftest.$ac_objext; then
24293 ac_hi=$ac_mid; break
24295 echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24298 ac_lo=`expr $ac_mid + 1`
24299 if test $ac_lo -le $ac_mid; then
24303 ac_mid=`expr 2 '*' $ac_mid + 1`
24306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24309 echo "$as_me: failed program was:" >&5
24310 sed 's/^/| /' conftest.$ac_ext >&5
24312 cat >conftest.$ac_ext <<_ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h. */
24318 $ac_includes_default
24319 typedef int ac__type_sizeof_;
24323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24330 rm -f conftest.$ac_objext
24331 if { (ac_try="$ac_compile"
24332 case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_compile") 2>conftest.er1
24339 grep -v '^ *+' conftest.er1 >conftest.err
24341 cat conftest.err >&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); } && {
24344 test -z "$ac_c_werror_flag" ||
24345 test ! -s conftest.err
24346 } && test -s conftest.$ac_objext; then
24349 cat >conftest.$ac_ext <<_ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h. */
24355 $ac_includes_default
24356 typedef int ac__type_sizeof_;
24360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24367 rm -f conftest.$ac_objext
24368 if { (ac_try="$ac_compile"
24369 case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24374 (eval "$ac_compile") 2>conftest.er1
24376 grep -v '^ *+' conftest.er1 >conftest.err
24378 cat conftest.err >&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } && {
24381 test -z "$ac_c_werror_flag" ||
24382 test ! -s conftest.err
24383 } && test -s conftest.$ac_objext; then
24384 ac_lo=$ac_mid; break
24386 echo "$as_me: failed program was:" >&5
24387 sed 's/^/| /' conftest.$ac_ext >&5
24389 ac_hi=`expr '(' $ac_mid ')' - 1`
24390 if test $ac_mid -le $ac_hi; then
24394 ac_mid=`expr 2 '*' $ac_mid`
24397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24400 echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24410 # Binary search between lo and hi bounds.
24411 while test "x$ac_lo" != "x$ac_hi"; do
24412 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24413 cat >conftest.$ac_ext <<_ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h. */
24419 $ac_includes_default
24420 typedef int ac__type_sizeof_;
24424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24431 rm -f conftest.$ac_objext
24432 if { (ac_try="$ac_compile"
24433 case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438 (eval "$ac_compile") 2>conftest.er1
24440 grep -v '^ *+' conftest.er1 >conftest.err
24442 cat conftest.err >&5
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); } && {
24445 test -z "$ac_c_werror_flag" ||
24446 test ! -s conftest.err
24447 } && test -s conftest.$ac_objext; then
24450 echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24453 ac_lo=`expr '(' $ac_mid ')' + 1`
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24459 ?*) ac_cv_sizeof_int=$ac_lo;;
24460 '') if test "$ac_cv_type_int" = yes; then
24461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24462 See \`config.log' for more details." >&5
24463 echo "$as_me: error: cannot compute sizeof (int)
24464 See \`config.log' for more details." >&2;}
24465 { (exit 77); exit 77; }; }
24471 cat >conftest.$ac_ext <<_ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h. */
24477 $ac_includes_default
24478 typedef int ac__type_sizeof_;
24479 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24480 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24482 #include <stdlib.h>
24487 FILE *f = fopen ("conftest.val", "w");
24490 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24492 long int i = longval ();
24493 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24495 fprintf (f, "%ld\n", i);
24499 unsigned long int i = ulongval ();
24500 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24502 fprintf (f, "%lu\n", i);
24504 return ferror (f) || fclose (f) != 0;
24510 rm -f conftest$ac_exeext
24511 if { (ac_try="$ac_link"
24512 case "(($ac_try" in
24513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24514 *) ac_try_echo=$ac_try;;
24516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517 (eval "$ac_link") 2>&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24521 { (case "(($ac_try" in
24522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24523 *) ac_try_echo=$ac_try;;
24525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24526 (eval "$ac_try") 2>&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); }; }; then
24530 ac_cv_sizeof_int=`cat conftest.val`
24532 echo "$as_me: program exited with status $ac_status" >&5
24533 echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24536 ( exit $ac_status )
24537 if test "$ac_cv_type_int" = yes; then
24538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24539 See \`config.log' for more details." >&5
24540 echo "$as_me: error: cannot compute sizeof (int)
24541 See \`config.log' for more details." >&2;}
24542 { (exit 77); exit 77; }; }
24547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24552 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24556 cat >>confdefs.h <<_ACEOF
24557 #define SIZEOF_INT $ac_cv_sizeof_int
24561 { echo "$as_me:$LINENO: checking for long int" >&5
24562 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24563 if test "${ac_cv_type_long_int+set}" = set; then
24564 echo $ECHO_N "(cached) $ECHO_C" >&6
24566 cat >conftest.$ac_ext <<_ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h. */
24572 $ac_includes_default
24573 typedef long int ac__type_new_;
24577 if ((ac__type_new_ *) 0)
24579 if (sizeof (ac__type_new_))
24585 rm -f conftest.$ac_objext
24586 if { (ac_try="$ac_compile"
24587 case "(($ac_try" in
24588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589 *) ac_try_echo=$ac_try;;
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592 (eval "$ac_compile") 2>conftest.er1
24594 grep -v '^ *+' conftest.er1 >conftest.err
24596 cat conftest.err >&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); } && {
24599 test -z "$ac_c_werror_flag" ||
24600 test ! -s conftest.err
24601 } && test -s conftest.$ac_objext; then
24602 ac_cv_type_long_int=yes
24604 echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24607 ac_cv_type_long_int=no
24610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24612 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24613 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24615 # The cast to long int works around a bug in the HP C Compiler
24616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24618 # This bug is HP SR number 8606223364.
24619 { echo "$as_me:$LINENO: checking size of long int" >&5
24620 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24621 if test "${ac_cv_sizeof_long_int+set}" = set; then
24622 echo $ECHO_N "(cached) $ECHO_C" >&6
24624 if test "$cross_compiling" = yes; then
24625 # Depending upon the size, compute the lo and hi bounds.
24626 cat >conftest.$ac_ext <<_ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h. */
24632 $ac_includes_default
24633 typedef long int ac__type_sizeof_;
24637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24644 rm -f conftest.$ac_objext
24645 if { (ac_try="$ac_compile"
24646 case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651 (eval "$ac_compile") 2>conftest.er1
24653 grep -v '^ *+' conftest.er1 >conftest.err
24655 cat conftest.err >&5
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); } && {
24658 test -z "$ac_c_werror_flag" ||
24659 test ! -s conftest.err
24660 } && test -s conftest.$ac_objext; then
24663 cat >conftest.$ac_ext <<_ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24669 $ac_includes_default
24670 typedef long int ac__type_sizeof_;
24674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24681 rm -f conftest.$ac_objext
24682 if { (ac_try="$ac_compile"
24683 case "(($ac_try" in
24684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685 *) ac_try_echo=$ac_try;;
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688 (eval "$ac_compile") 2>conftest.er1
24690 grep -v '^ *+' conftest.er1 >conftest.err
24692 cat conftest.err >&5
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); } && {
24695 test -z "$ac_c_werror_flag" ||
24696 test ! -s conftest.err
24697 } && test -s conftest.$ac_objext; then
24698 ac_hi=$ac_mid; break
24700 echo "$as_me: failed program was:" >&5
24701 sed 's/^/| /' conftest.$ac_ext >&5
24703 ac_lo=`expr $ac_mid + 1`
24704 if test $ac_lo -le $ac_mid; then
24708 ac_mid=`expr 2 '*' $ac_mid + 1`
24711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24714 echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24717 cat >conftest.$ac_ext <<_ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h. */
24723 $ac_includes_default
24724 typedef long int ac__type_sizeof_;
24728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24735 rm -f conftest.$ac_objext
24736 if { (ac_try="$ac_compile"
24737 case "(($ac_try" in
24738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739 *) ac_try_echo=$ac_try;;
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742 (eval "$ac_compile") 2>conftest.er1
24744 grep -v '^ *+' conftest.er1 >conftest.err
24746 cat conftest.err >&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); } && {
24749 test -z "$ac_c_werror_flag" ||
24750 test ! -s conftest.err
24751 } && test -s conftest.$ac_objext; then
24754 cat >conftest.$ac_ext <<_ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24760 $ac_includes_default
24761 typedef long int ac__type_sizeof_;
24765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24772 rm -f conftest.$ac_objext
24773 if { (ac_try="$ac_compile"
24774 case "(($ac_try" in
24775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24776 *) ac_try_echo=$ac_try;;
24778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24779 (eval "$ac_compile") 2>conftest.er1
24781 grep -v '^ *+' conftest.er1 >conftest.err
24783 cat conftest.err >&5
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); } && {
24786 test -z "$ac_c_werror_flag" ||
24787 test ! -s conftest.err
24788 } && test -s conftest.$ac_objext; then
24789 ac_lo=$ac_mid; break
24791 echo "$as_me: failed program was:" >&5
24792 sed 's/^/| /' conftest.$ac_ext >&5
24794 ac_hi=`expr '(' $ac_mid ')' - 1`
24795 if test $ac_mid -le $ac_hi; then
24799 ac_mid=`expr 2 '*' $ac_mid`
24802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24805 echo "$as_me: failed program was:" >&5
24806 sed 's/^/| /' conftest.$ac_ext >&5
24811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24815 # Binary search between lo and hi bounds.
24816 while test "x$ac_lo" != "x$ac_hi"; do
24817 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24818 cat >conftest.$ac_ext <<_ACEOF
24821 cat confdefs.h >>conftest.$ac_ext
24822 cat >>conftest.$ac_ext <<_ACEOF
24823 /* end confdefs.h. */
24824 $ac_includes_default
24825 typedef long int ac__type_sizeof_;
24829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24836 rm -f conftest.$ac_objext
24837 if { (ac_try="$ac_compile"
24838 case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843 (eval "$ac_compile") 2>conftest.er1
24845 grep -v '^ *+' conftest.er1 >conftest.err
24847 cat conftest.err >&5
24848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); } && {
24850 test -z "$ac_c_werror_flag" ||
24851 test ! -s conftest.err
24852 } && test -s conftest.$ac_objext; then
24855 echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24858 ac_lo=`expr '(' $ac_mid ')' + 1`
24861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24864 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24865 '') if test "$ac_cv_type_long_int" = yes; then
24866 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24867 See \`config.log' for more details." >&5
24868 echo "$as_me: error: cannot compute sizeof (long int)
24869 See \`config.log' for more details." >&2;}
24870 { (exit 77); exit 77; }; }
24872 ac_cv_sizeof_long_int=0
24876 cat >conftest.$ac_ext <<_ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h. */
24882 $ac_includes_default
24883 typedef long int ac__type_sizeof_;
24884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24887 #include <stdlib.h>
24892 FILE *f = fopen ("conftest.val", "w");
24895 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24897 long int i = longval ();
24898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24900 fprintf (f, "%ld\n", i);
24904 unsigned long int i = ulongval ();
24905 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24907 fprintf (f, "%lu\n", i);
24909 return ferror (f) || fclose (f) != 0;
24915 rm -f conftest$ac_exeext
24916 if { (ac_try="$ac_link"
24917 case "(($ac_try" in
24918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24919 *) ac_try_echo=$ac_try;;
24921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24922 (eval "$ac_link") 2>&5
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24926 { (case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_try") 2>&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; }; then
24935 ac_cv_sizeof_long_int=`cat conftest.val`
24937 echo "$as_me: program exited with status $ac_status" >&5
24938 echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24941 ( exit $ac_status )
24942 if test "$ac_cv_type_long_int" = yes; then
24943 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24944 See \`config.log' for more details." >&5
24945 echo "$as_me: error: cannot compute sizeof (long int)
24946 See \`config.log' for more details." >&2;}
24947 { (exit 77); exit 77; }; }
24949 ac_cv_sizeof_long_int=0
24952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24956 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24957 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
24961 cat >>confdefs.h <<_ACEOF
24962 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24966 { echo "$as_me:$LINENO: checking for long long int" >&5
24967 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24968 if test "${ac_cv_type_long_long_int+set}" = set; then
24969 echo $ECHO_N "(cached) $ECHO_C" >&6
24971 cat >conftest.$ac_ext <<_ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24977 $ac_includes_default
24978 typedef long long int ac__type_new_;
24982 if ((ac__type_new_ *) 0)
24984 if (sizeof (ac__type_new_))
24990 rm -f conftest.$ac_objext
24991 if { (ac_try="$ac_compile"
24992 case "(($ac_try" in
24993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24994 *) ac_try_echo=$ac_try;;
24996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24997 (eval "$ac_compile") 2>conftest.er1
24999 grep -v '^ *+' conftest.er1 >conftest.err
25001 cat conftest.err >&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } && {
25004 test -z "$ac_c_werror_flag" ||
25005 test ! -s conftest.err
25006 } && test -s conftest.$ac_objext; then
25007 ac_cv_type_long_long_int=yes
25009 echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25012 ac_cv_type_long_long_int=no
25015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25017 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25018 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25020 # The cast to long int works around a bug in the HP C Compiler
25021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25023 # This bug is HP SR number 8606223364.
25024 { echo "$as_me:$LINENO: checking size of long long int" >&5
25025 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25026 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25027 echo $ECHO_N "(cached) $ECHO_C" >&6
25029 if test "$cross_compiling" = yes; then
25030 # Depending upon the size, compute the lo and hi bounds.
25031 cat >conftest.$ac_ext <<_ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h. */
25037 $ac_includes_default
25038 typedef long long int ac__type_sizeof_;
25042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25049 rm -f conftest.$ac_objext
25050 if { (ac_try="$ac_compile"
25051 case "(($ac_try" in
25052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053 *) ac_try_echo=$ac_try;;
25055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25056 (eval "$ac_compile") 2>conftest.er1
25058 grep -v '^ *+' conftest.er1 >conftest.err
25060 cat conftest.err >&5
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } && {
25063 test -z "$ac_c_werror_flag" ||
25064 test ! -s conftest.err
25065 } && test -s conftest.$ac_objext; then
25068 cat >conftest.$ac_ext <<_ACEOF
25071 cat confdefs.h >>conftest.$ac_ext
25072 cat >>conftest.$ac_ext <<_ACEOF
25073 /* end confdefs.h. */
25074 $ac_includes_default
25075 typedef long long int ac__type_sizeof_;
25079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25086 rm -f conftest.$ac_objext
25087 if { (ac_try="$ac_compile"
25088 case "(($ac_try" in
25089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090 *) ac_try_echo=$ac_try;;
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093 (eval "$ac_compile") 2>conftest.er1
25095 grep -v '^ *+' conftest.er1 >conftest.err
25097 cat conftest.err >&5
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); } && {
25100 test -z "$ac_c_werror_flag" ||
25101 test ! -s conftest.err
25102 } && test -s conftest.$ac_objext; then
25103 ac_hi=$ac_mid; break
25105 echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25108 ac_lo=`expr $ac_mid + 1`
25109 if test $ac_lo -le $ac_mid; then
25113 ac_mid=`expr 2 '*' $ac_mid + 1`
25116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25119 echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25122 cat >conftest.$ac_ext <<_ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h. */
25128 $ac_includes_default
25129 typedef long long int ac__type_sizeof_;
25133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25140 rm -f conftest.$ac_objext
25141 if { (ac_try="$ac_compile"
25142 case "(($ac_try" in
25143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25144 *) ac_try_echo=$ac_try;;
25146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25147 (eval "$ac_compile") 2>conftest.er1
25149 grep -v '^ *+' conftest.er1 >conftest.err
25151 cat conftest.err >&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } && {
25154 test -z "$ac_c_werror_flag" ||
25155 test ! -s conftest.err
25156 } && test -s conftest.$ac_objext; then
25159 cat >conftest.$ac_ext <<_ACEOF
25162 cat confdefs.h >>conftest.$ac_ext
25163 cat >>conftest.$ac_ext <<_ACEOF
25164 /* end confdefs.h. */
25165 $ac_includes_default
25166 typedef long long int ac__type_sizeof_;
25170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25177 rm -f conftest.$ac_objext
25178 if { (ac_try="$ac_compile"
25179 case "(($ac_try" in
25180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181 *) ac_try_echo=$ac_try;;
25183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25184 (eval "$ac_compile") 2>conftest.er1
25186 grep -v '^ *+' conftest.er1 >conftest.err
25188 cat conftest.err >&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } && {
25191 test -z "$ac_c_werror_flag" ||
25192 test ! -s conftest.err
25193 } && test -s conftest.$ac_objext; then
25194 ac_lo=$ac_mid; break
25196 echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25199 ac_hi=`expr '(' $ac_mid ')' - 1`
25200 if test $ac_mid -le $ac_hi; then
25204 ac_mid=`expr 2 '*' $ac_mid`
25207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25210 echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25220 # Binary search between lo and hi bounds.
25221 while test "x$ac_lo" != "x$ac_hi"; do
25222 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25223 cat >conftest.$ac_ext <<_ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25229 $ac_includes_default
25230 typedef long long int ac__type_sizeof_;
25234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25241 rm -f conftest.$ac_objext
25242 if { (ac_try="$ac_compile"
25243 case "(($ac_try" in
25244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245 *) ac_try_echo=$ac_try;;
25247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248 (eval "$ac_compile") 2>conftest.er1
25250 grep -v '^ *+' conftest.er1 >conftest.err
25252 cat conftest.err >&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); } && {
25255 test -z "$ac_c_werror_flag" ||
25256 test ! -s conftest.err
25257 } && test -s conftest.$ac_objext; then
25260 echo "$as_me: failed program was:" >&5
25261 sed 's/^/| /' conftest.$ac_ext >&5
25263 ac_lo=`expr '(' $ac_mid ')' + 1`
25266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25269 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25270 '') if test "$ac_cv_type_long_long_int" = yes; then
25271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25272 See \`config.log' for more details." >&5
25273 echo "$as_me: error: cannot compute sizeof (long long int)
25274 See \`config.log' for more details." >&2;}
25275 { (exit 77); exit 77; }; }
25277 ac_cv_sizeof_long_long_int=0
25281 cat >conftest.$ac_ext <<_ACEOF
25284 cat confdefs.h >>conftest.$ac_ext
25285 cat >>conftest.$ac_ext <<_ACEOF
25286 /* end confdefs.h. */
25287 $ac_includes_default
25288 typedef long long int ac__type_sizeof_;
25289 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25290 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25292 #include <stdlib.h>
25297 FILE *f = fopen ("conftest.val", "w");
25300 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25302 long int i = longval ();
25303 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25305 fprintf (f, "%ld\n", i);
25309 unsigned long int i = ulongval ();
25310 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25312 fprintf (f, "%lu\n", i);
25314 return ferror (f) || fclose (f) != 0;
25320 rm -f conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324 *) ac_try_echo=$ac_try;;
25326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25327 (eval "$ac_link") 2>&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25331 { (case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336 (eval "$ac_try") 2>&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; }; then
25340 ac_cv_sizeof_long_long_int=`cat conftest.val`
25342 echo "$as_me: program exited with status $ac_status" >&5
25343 echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25346 ( exit $ac_status )
25347 if test "$ac_cv_type_long_long_int" = yes; then
25348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25349 See \`config.log' for more details." >&5
25350 echo "$as_me: error: cannot compute sizeof (long long int)
25351 See \`config.log' for more details." >&2;}
25352 { (exit 77); exit 77; }; }
25354 ac_cv_sizeof_long_long_int=0
25357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25361 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25362 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25366 cat >>confdefs.h <<_ACEOF
25367 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25371 { echo "$as_me:$LINENO: checking for int *" >&5
25372 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25373 if test "${ac_cv_type_int_p+set}" = set; then
25374 echo $ECHO_N "(cached) $ECHO_C" >&6
25376 cat >conftest.$ac_ext <<_ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h. */
25382 $ac_includes_default
25383 typedef int * ac__type_new_;
25387 if ((ac__type_new_ *) 0)
25389 if (sizeof (ac__type_new_))
25395 rm -f conftest.$ac_objext
25396 if { (ac_try="$ac_compile"
25397 case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402 (eval "$ac_compile") 2>conftest.er1
25404 grep -v '^ *+' conftest.er1 >conftest.err
25406 cat conftest.err >&5
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); } && {
25409 test -z "$ac_c_werror_flag" ||
25410 test ! -s conftest.err
25411 } && test -s conftest.$ac_objext; then
25412 ac_cv_type_int_p=yes
25414 echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25417 ac_cv_type_int_p=no
25420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25422 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25423 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25425 # The cast to long int works around a bug in the HP C Compiler
25426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25428 # This bug is HP SR number 8606223364.
25429 { echo "$as_me:$LINENO: checking size of int *" >&5
25430 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25431 if test "${ac_cv_sizeof_int_p+set}" = set; then
25432 echo $ECHO_N "(cached) $ECHO_C" >&6
25434 if test "$cross_compiling" = yes; then
25435 # Depending upon the size, compute the lo and hi bounds.
25436 cat >conftest.$ac_ext <<_ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25442 $ac_includes_default
25443 typedef int * ac__type_sizeof_;
25447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25454 rm -f conftest.$ac_objext
25455 if { (ac_try="$ac_compile"
25456 case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_compile") 2>conftest.er1
25463 grep -v '^ *+' conftest.er1 >conftest.err
25465 cat conftest.err >&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } && {
25468 test -z "$ac_c_werror_flag" ||
25469 test ! -s conftest.err
25470 } && test -s conftest.$ac_objext; then
25473 cat >conftest.$ac_ext <<_ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 $ac_includes_default
25480 typedef int * ac__type_sizeof_;
25484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25491 rm -f conftest.$ac_objext
25492 if { (ac_try="$ac_compile"
25493 case "(($ac_try" in
25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498 (eval "$ac_compile") 2>conftest.er1
25500 grep -v '^ *+' conftest.er1 >conftest.err
25502 cat conftest.err >&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); } && {
25505 test -z "$ac_c_werror_flag" ||
25506 test ! -s conftest.err
25507 } && test -s conftest.$ac_objext; then
25508 ac_hi=$ac_mid; break
25510 echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25513 ac_lo=`expr $ac_mid + 1`
25514 if test $ac_lo -le $ac_mid; then
25518 ac_mid=`expr 2 '*' $ac_mid + 1`
25521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25524 echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25527 cat >conftest.$ac_ext <<_ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h. */
25533 $ac_includes_default
25534 typedef int * ac__type_sizeof_;
25538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25545 rm -f conftest.$ac_objext
25546 if { (ac_try="$ac_compile"
25547 case "(($ac_try" in
25548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25549 *) ac_try_echo=$ac_try;;
25551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25552 (eval "$ac_compile") 2>conftest.er1
25554 grep -v '^ *+' conftest.er1 >conftest.err
25556 cat conftest.err >&5
25557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558 (exit $ac_status); } && {
25559 test -z "$ac_c_werror_flag" ||
25560 test ! -s conftest.err
25561 } && test -s conftest.$ac_objext; then
25564 cat >conftest.$ac_ext <<_ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h. */
25570 $ac_includes_default
25571 typedef int * ac__type_sizeof_;
25575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25582 rm -f conftest.$ac_objext
25583 if { (ac_try="$ac_compile"
25584 case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589 (eval "$ac_compile") 2>conftest.er1
25591 grep -v '^ *+' conftest.er1 >conftest.err
25593 cat conftest.err >&5
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); } && {
25596 test -z "$ac_c_werror_flag" ||
25597 test ! -s conftest.err
25598 } && test -s conftest.$ac_objext; then
25599 ac_lo=$ac_mid; break
25601 echo "$as_me: failed program was:" >&5
25602 sed 's/^/| /' conftest.$ac_ext >&5
25604 ac_hi=`expr '(' $ac_mid ')' - 1`
25605 if test $ac_mid -le $ac_hi; then
25609 ac_mid=`expr 2 '*' $ac_mid`
25612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25615 echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.$ac_ext >&5
25621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25625 # Binary search between lo and hi bounds.
25626 while test "x$ac_lo" != "x$ac_hi"; do
25627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25628 cat >conftest.$ac_ext <<_ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h. */
25634 $ac_includes_default
25635 typedef int * ac__type_sizeof_;
25639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25646 rm -f conftest.$ac_objext
25647 if { (ac_try="$ac_compile"
25648 case "(($ac_try" in
25649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25650 *) ac_try_echo=$ac_try;;
25652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25653 (eval "$ac_compile") 2>conftest.er1
25655 grep -v '^ *+' conftest.er1 >conftest.err
25657 cat conftest.err >&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } && {
25660 test -z "$ac_c_werror_flag" ||
25661 test ! -s conftest.err
25662 } && test -s conftest.$ac_objext; then
25665 echo "$as_me: failed program was:" >&5
25666 sed 's/^/| /' conftest.$ac_ext >&5
25668 ac_lo=`expr '(' $ac_mid ')' + 1`
25671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25674 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25675 '') if test "$ac_cv_type_int_p" = yes; then
25676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25677 See \`config.log' for more details." >&5
25678 echo "$as_me: error: cannot compute sizeof (int *)
25679 See \`config.log' for more details." >&2;}
25680 { (exit 77); exit 77; }; }
25682 ac_cv_sizeof_int_p=0
25686 cat >conftest.$ac_ext <<_ACEOF
25689 cat confdefs.h >>conftest.$ac_ext
25690 cat >>conftest.$ac_ext <<_ACEOF
25691 /* end confdefs.h. */
25692 $ac_includes_default
25693 typedef int * ac__type_sizeof_;
25694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25697 #include <stdlib.h>
25702 FILE *f = fopen ("conftest.val", "w");
25705 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25707 long int i = longval ();
25708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25710 fprintf (f, "%ld\n", i);
25714 unsigned long int i = ulongval ();
25715 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25717 fprintf (f, "%lu\n", i);
25719 return ferror (f) || fclose (f) != 0;
25725 rm -f conftest$ac_exeext
25726 if { (ac_try="$ac_link"
25727 case "(($ac_try" in
25728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25729 *) ac_try_echo=$ac_try;;
25731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25732 (eval "$ac_link") 2>&5
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25736 { (case "(($ac_try" in
25737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25738 *) ac_try_echo=$ac_try;;
25740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25741 (eval "$ac_try") 2>&5
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); }; }; then
25745 ac_cv_sizeof_int_p=`cat conftest.val`
25747 echo "$as_me: program exited with status $ac_status" >&5
25748 echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25751 ( exit $ac_status )
25752 if test "$ac_cv_type_int_p" = yes; then
25753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25754 See \`config.log' for more details." >&5
25755 echo "$as_me: error: cannot compute sizeof (int *)
25756 See \`config.log' for more details." >&2;}
25757 { (exit 77); exit 77; }; }
25759 ac_cv_sizeof_int_p=0
25762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25767 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25771 cat >>confdefs.h <<_ACEOF
25772 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25777 # Check for sys/types.h types
25778 { echo "$as_me:$LINENO: checking for u_int type" >&5
25779 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25780 if test "${ac_cv_have_u_int+set}" = set; then
25781 echo $ECHO_N "(cached) $ECHO_C" >&6
25784 cat >conftest.$ac_ext <<_ACEOF
25787 cat confdefs.h >>conftest.$ac_ext
25788 cat >>conftest.$ac_ext <<_ACEOF
25789 /* end confdefs.h. */
25790 #include <sys/types.h>
25799 rm -f conftest.$ac_objext
25800 if { (ac_try="$ac_compile"
25801 case "(($ac_try" in
25802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25803 *) ac_try_echo=$ac_try;;
25805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25806 (eval "$ac_compile") 2>conftest.er1
25808 grep -v '^ *+' conftest.er1 >conftest.err
25810 cat conftest.err >&5
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); } && {
25813 test -z "$ac_c_werror_flag" ||
25814 test ! -s conftest.err
25815 } && test -s conftest.$ac_objext; then
25816 ac_cv_have_u_int="yes"
25818 echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25821 ac_cv_have_u_int="no"
25825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25828 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25829 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25830 if test "x$ac_cv_have_u_int" = "xyes" ; then
25831 cat >>confdefs.h <<\_ACEOF
25832 #define HAVE_U_INT 1
25838 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25839 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25840 if test "${ac_cv_have_intmax_t+set}" = set; then
25841 echo $ECHO_N "(cached) $ECHO_C" >&6
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 #include <sys/types.h>
25859 rm -f conftest.$ac_objext
25860 if { (ac_try="$ac_compile"
25861 case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866 (eval "$ac_compile") 2>conftest.er1
25868 grep -v '^ *+' conftest.er1 >conftest.err
25870 cat conftest.err >&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } && {
25873 test -z "$ac_c_werror_flag" ||
25874 test ! -s conftest.err
25875 } && test -s conftest.$ac_objext; then
25876 ac_cv_have_intmax_t="yes"
25878 echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25882 cat >conftest.$ac_ext <<_ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h. */
25888 #include <stdint.h>
25897 rm -f conftest.$ac_objext
25898 if { (ac_try="$ac_compile"
25899 case "(($ac_try" in
25900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25901 *) ac_try_echo=$ac_try;;
25903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25904 (eval "$ac_compile") 2>conftest.er1
25906 grep -v '^ *+' conftest.er1 >conftest.err
25908 cat conftest.err >&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } && {
25911 test -z "$ac_c_werror_flag" ||
25912 test ! -s conftest.err
25913 } && test -s conftest.$ac_objext; then
25914 ac_cv_have_intmax_t="yes"
25916 echo "$as_me: failed program was:" >&5
25917 sed 's/^/| /' conftest.$ac_ext >&5
25919 ac_cv_have_intmax_t="no"
25923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25932 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25933 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
25934 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25935 cat >>confdefs.h <<\_ACEOF
25936 #define HAVE_INTMAX_T 1
25943 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25944 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
25945 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25946 echo $ECHO_N "(cached) $ECHO_C" >&6
25949 cat >conftest.$ac_ext <<_ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h. */
25955 #include <sys/types.h>
25959 u_intmax_t a; a = 1;
25964 rm -f conftest.$ac_objext
25965 if { (ac_try="$ac_compile"
25966 case "(($ac_try" in
25967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25968 *) ac_try_echo=$ac_try;;
25970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25971 (eval "$ac_compile") 2>conftest.er1
25973 grep -v '^ *+' conftest.er1 >conftest.err
25975 cat conftest.err >&5
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); } && {
25978 test -z "$ac_c_werror_flag" ||
25979 test ! -s conftest.err
25980 } && test -s conftest.$ac_objext; then
25981 ac_cv_have_u_intmax_t="yes"
25983 echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25987 cat >conftest.$ac_ext <<_ACEOF
25990 cat confdefs.h >>conftest.$ac_ext
25991 cat >>conftest.$ac_ext <<_ACEOF
25992 /* end confdefs.h. */
25993 #include <stdint.h>
25997 u_intmax_t a; a = 1;
26002 rm -f conftest.$ac_objext
26003 if { (ac_try="$ac_compile"
26004 case "(($ac_try" in
26005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26006 *) ac_try_echo=$ac_try;;
26008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26009 (eval "$ac_compile") 2>conftest.er1
26011 grep -v '^ *+' conftest.er1 >conftest.err
26013 cat conftest.err >&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } && {
26016 test -z "$ac_c_werror_flag" ||
26017 test ! -s conftest.err
26018 } && test -s conftest.$ac_objext; then
26019 ac_cv_have_u_intmax_t="yes"
26021 echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26024 ac_cv_have_u_intmax_t="no"
26028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26036 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26037 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26038 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26039 cat >>confdefs.h <<\_ACEOF
26040 #define HAVE_U_INTMAX_T 1
26047 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26048 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26049 if test "${ac_cv_have_intxx_t+set}" = set; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26053 cat >conftest.$ac_ext <<_ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26059 #include <sys/types.h>
26063 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26068 rm -f conftest.$ac_objext
26069 if { (ac_try="$ac_compile"
26070 case "(($ac_try" in
26071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26072 *) ac_try_echo=$ac_try;;
26074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26075 (eval "$ac_compile") 2>conftest.er1
26077 grep -v '^ *+' conftest.er1 >conftest.err
26079 cat conftest.err >&5
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); } && {
26082 test -z "$ac_c_werror_flag" ||
26083 test ! -s conftest.err
26084 } && test -s conftest.$ac_objext; then
26085 ac_cv_have_intxx_t="yes"
26087 echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26090 ac_cv_have_intxx_t="no"
26094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26097 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26098 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26099 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26100 cat >>confdefs.h <<\_ACEOF
26101 #define HAVE_INTXX_T 1
26107 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26108 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26109 if test "${ac_cv_have_int64_t+set}" = set; then
26110 echo $ECHO_N "(cached) $ECHO_C" >&6
26113 cat >conftest.$ac_ext <<_ACEOF
26116 cat confdefs.h >>conftest.$ac_ext
26117 cat >>conftest.$ac_ext <<_ACEOF
26118 /* end confdefs.h. */
26119 #include <sys/types.h>
26128 rm -f conftest.$ac_objext
26129 if { (ac_try="$ac_compile"
26130 case "(($ac_try" in
26131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26132 *) ac_try_echo=$ac_try;;
26134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26135 (eval "$ac_compile") 2>conftest.er1
26137 grep -v '^ *+' conftest.er1 >conftest.err
26139 cat conftest.err >&5
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); } && {
26142 test -z "$ac_c_werror_flag" ||
26143 test ! -s conftest.err
26144 } && test -s conftest.$ac_objext; then
26145 ac_cv_have_int64_t="yes"
26147 echo "$as_me: failed program was:" >&5
26148 sed 's/^/| /' conftest.$ac_ext >&5
26150 ac_cv_have_int64_t="no"
26154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26157 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26158 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26159 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26160 cat >>confdefs.h <<\_ACEOF
26161 #define HAVE_INT64_T 1
26167 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26168 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26169 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26170 echo $ECHO_N "(cached) $ECHO_C" >&6
26173 cat >conftest.$ac_ext <<_ACEOF
26176 cat confdefs.h >>conftest.$ac_ext
26177 cat >>conftest.$ac_ext <<_ACEOF
26178 /* end confdefs.h. */
26179 #include <sys/types.h>
26183 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26188 rm -f conftest.$ac_objext
26189 if { (ac_try="$ac_compile"
26190 case "(($ac_try" in
26191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26192 *) ac_try_echo=$ac_try;;
26194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26195 (eval "$ac_compile") 2>conftest.er1
26197 grep -v '^ *+' conftest.er1 >conftest.err
26199 cat conftest.err >&5
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); } && {
26202 test -z "$ac_c_werror_flag" ||
26203 test ! -s conftest.err
26204 } && test -s conftest.$ac_objext; then
26205 ac_cv_have_u_intxx_t="yes"
26207 echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.$ac_ext >&5
26210 ac_cv_have_u_intxx_t="no"
26214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26218 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26219 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26220 cat >>confdefs.h <<\_ACEOF
26221 #define HAVE_U_INTXX_T 1
26227 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26228 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26229 if test "${ac_cv_have_u_int64_t+set}" = set; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26233 cat >conftest.$ac_ext <<_ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h. */
26239 #include <sys/types.h>
26243 u_int64_t a; a = 1;
26248 rm -f conftest.$ac_objext
26249 if { (ac_try="$ac_compile"
26250 case "(($ac_try" in
26251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26252 *) ac_try_echo=$ac_try;;
26254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26255 (eval "$ac_compile") 2>conftest.er1
26257 grep -v '^ *+' conftest.er1 >conftest.err
26259 cat conftest.err >&5
26260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); } && {
26262 test -z "$ac_c_werror_flag" ||
26263 test ! -s conftest.err
26264 } && test -s conftest.$ac_objext; then
26265 ac_cv_have_u_int64_t="yes"
26267 echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26270 ac_cv_have_u_int64_t="no"
26274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26277 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26278 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26279 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26280 cat >>confdefs.h <<\_ACEOF
26281 #define HAVE_U_INT64_T 1
26287 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26288 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26290 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26291 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26292 cat >conftest.$ac_ext <<_ACEOF
26295 cat confdefs.h >>conftest.$ac_ext
26296 cat >>conftest.$ac_ext <<_ACEOF
26297 /* end confdefs.h. */
26298 #include <sys/bitypes.h>
26302 int8_t a; int16_t b; int32_t c;
26303 u_int8_t e; u_int16_t f; u_int32_t g;
26304 a = b = c = e = f = g = 1;
26309 rm -f conftest.$ac_objext
26310 if { (ac_try="$ac_compile"
26311 case "(($ac_try" in
26312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26313 *) ac_try_echo=$ac_try;;
26315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26316 (eval "$ac_compile") 2>conftest.er1
26318 grep -v '^ *+' conftest.er1 >conftest.err
26320 cat conftest.err >&5
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); } && {
26323 test -z "$ac_c_werror_flag" ||
26324 test ! -s conftest.err
26325 } && test -s conftest.$ac_objext; then
26326 cat >>confdefs.h <<\_ACEOF
26327 #define HAVE_U_INTXX_T 1
26330 cat >>confdefs.h <<\_ACEOF
26331 #define HAVE_INTXX_T 1
26334 cat >>confdefs.h <<\_ACEOF
26335 #define HAVE_SYS_BITYPES_H 1
26338 { echo "$as_me:$LINENO: result: yes" >&5
26339 echo "${ECHO_T}yes" >&6; }
26341 echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.$ac_ext >&5
26344 { echo "$as_me:$LINENO: result: no" >&5
26345 echo "${ECHO_T}no" >&6; }
26349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26352 if test -z "$have_u_intxx_t" ; then
26353 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26354 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26355 if test "${ac_cv_have_uintxx_t+set}" = set; then
26356 echo $ECHO_N "(cached) $ECHO_C" >&6
26359 cat >conftest.$ac_ext <<_ACEOF
26362 cat confdefs.h >>conftest.$ac_ext
26363 cat >>conftest.$ac_ext <<_ACEOF
26364 /* end confdefs.h. */
26365 #include <sys/types.h>
26369 uint8_t a; uint16_t b;
26370 uint32_t c; a = b = c = 1;
26375 rm -f conftest.$ac_objext
26376 if { (ac_try="$ac_compile"
26377 case "(($ac_try" in
26378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379 *) ac_try_echo=$ac_try;;
26381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26382 (eval "$ac_compile") 2>conftest.er1
26384 grep -v '^ *+' conftest.er1 >conftest.err
26386 cat conftest.err >&5
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); } && {
26389 test -z "$ac_c_werror_flag" ||
26390 test ! -s conftest.err
26391 } && test -s conftest.$ac_objext; then
26392 ac_cv_have_uintxx_t="yes"
26394 echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26397 ac_cv_have_uintxx_t="no"
26401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26404 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26405 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26406 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26407 cat >>confdefs.h <<\_ACEOF
26408 #define HAVE_UINTXX_T 1
26414 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26415 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26417 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26418 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26419 cat >conftest.$ac_ext <<_ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26425 #include <sys/bitypes.h>
26429 int64_t a; u_int64_t b;
26435 rm -f conftest.$ac_objext
26436 if { (ac_try="$ac_compile"
26437 case "(($ac_try" in
26438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439 *) ac_try_echo=$ac_try;;
26441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26442 (eval "$ac_compile") 2>conftest.er1
26444 grep -v '^ *+' conftest.er1 >conftest.err
26446 cat conftest.err >&5
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); } && {
26449 test -z "$ac_c_werror_flag" ||
26450 test ! -s conftest.err
26451 } && test -s conftest.$ac_objext; then
26452 cat >>confdefs.h <<\_ACEOF
26453 #define HAVE_U_INT64_T 1
26456 cat >>confdefs.h <<\_ACEOF
26457 #define HAVE_INT64_T 1
26460 { echo "$as_me:$LINENO: result: yes" >&5
26461 echo "${ECHO_T}yes" >&6; }
26463 echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26466 { echo "$as_me:$LINENO: result: no" >&5
26467 echo "${ECHO_T}no" >&6; }
26471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26474 if (test -z "$have_uintxx_t" && \
26475 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26477 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26478 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26479 cat >conftest.$ac_ext <<_ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h. */
26485 #include <sys/bitypes.h>
26489 uint8_t a; uint16_t b;
26490 uint32_t c; a = b = c = 1;
26495 rm -f conftest.$ac_objext
26496 if { (ac_try="$ac_compile"
26497 case "(($ac_try" in
26498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26499 *) ac_try_echo=$ac_try;;
26501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26502 (eval "$ac_compile") 2>conftest.er1
26504 grep -v '^ *+' conftest.er1 >conftest.err
26506 cat conftest.err >&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } && {
26509 test -z "$ac_c_werror_flag" ||
26510 test ! -s conftest.err
26511 } && test -s conftest.$ac_objext; then
26512 cat >>confdefs.h <<\_ACEOF
26513 #define HAVE_UINTXX_T 1
26516 { echo "$as_me:$LINENO: result: yes" >&5
26517 echo "${ECHO_T}yes" >&6; }
26519 echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26522 { echo "$as_me:$LINENO: result: no" >&5
26523 echo "${ECHO_T}no" >&6; }
26527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26567 echo $ECHO_N "(cached) $ECHO_C" >&6
26569 cat >conftest.$ac_ext <<_ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h. */
26575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26577 #define $ac_func innocuous_$ac_func
26579 /* System header to define __stub macros and hopefully few prototypes,
26580 which can conflict with char $ac_func (); below.
26581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26582 <limits.h> exists even on freestanding compilers. */
26585 # include <limits.h>
26587 # include <assert.h>
26592 /* Override any GCC internal prototype to avoid an error.
26593 Use char because int might match the return type of a GCC
26594 builtin and then its argument prototype would still apply. */
26599 /* The GNU C library defines this for functions which it implements
26600 to always fail with ENOSYS. Some functions are actually named
26601 something starting with __ and the normal name is an alias. */
26602 #if defined __stub_$ac_func || defined __stub___$ac_func
26609 return $ac_func ();
26614 rm -f conftest.$ac_objext conftest$ac_exeext
26615 if { (ac_try="$ac_link"
26616 case "(($ac_try" in
26617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618 *) ac_try_echo=$ac_try;;
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621 (eval "$ac_link") 2>conftest.er1
26623 grep -v '^ *+' conftest.er1 >conftest.err
26625 cat conftest.err >&5
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); } && {
26628 test -z "$ac_c_werror_flag" ||
26629 test ! -s conftest.err
26630 } && test -s conftest$ac_exeext &&
26631 $as_test_x conftest$ac_exeext; then
26632 eval "$as_ac_var=yes"
26634 echo "$as_me: failed program was:" >&5
26635 sed 's/^/| /' conftest.$ac_ext >&5
26637 eval "$as_ac_var=no"
26640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26641 conftest$ac_exeext conftest.$ac_ext
26643 ac_res=`eval echo '${'$as_ac_var'}'`
26644 { echo "$as_me:$LINENO: result: $ac_res" >&5
26645 echo "${ECHO_T}$ac_res" >&6; }
26646 if test `eval echo '${'$as_ac_var'}'` = yes; then
26647 cat >>confdefs.h <<_ACEOF
26648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26652 echo 'configure: cannot find needed function.'; exit 1
26659 for ac_func in fchdir
26661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26665 echo $ECHO_N "(cached) $ECHO_C" >&6
26667 cat >conftest.$ac_ext <<_ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h. */
26673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26675 #define $ac_func innocuous_$ac_func
26677 /* System header to define __stub macros and hopefully few prototypes,
26678 which can conflict with char $ac_func (); below.
26679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26680 <limits.h> exists even on freestanding compilers. */
26683 # include <limits.h>
26685 # include <assert.h>
26690 /* Override any GCC internal prototype to avoid an error.
26691 Use char because int might match the return type of a GCC
26692 builtin and then its argument prototype would still apply. */
26697 /* The GNU C library defines this for functions which it implements
26698 to always fail with ENOSYS. Some functions are actually named
26699 something starting with __ and the normal name is an alias. */
26700 #if defined __stub_$ac_func || defined __stub___$ac_func
26707 return $ac_func ();
26712 rm -f conftest.$ac_objext conftest$ac_exeext
26713 if { (ac_try="$ac_link"
26714 case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_link") 2>conftest.er1
26721 grep -v '^ *+' conftest.er1 >conftest.err
26723 cat conftest.err >&5
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } && {
26726 test -z "$ac_c_werror_flag" ||
26727 test ! -s conftest.err
26728 } && test -s conftest$ac_exeext &&
26729 $as_test_x conftest$ac_exeext; then
26730 eval "$as_ac_var=yes"
26732 echo "$as_me: failed program was:" >&5
26733 sed 's/^/| /' conftest.$ac_ext >&5
26735 eval "$as_ac_var=no"
26738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26739 conftest$ac_exeext conftest.$ac_ext
26741 ac_res=`eval echo '${'$as_ac_var'}'`
26742 { echo "$as_me:$LINENO: result: $ac_res" >&5
26743 echo "${ECHO_T}$ac_res" >&6; }
26744 if test `eval echo '${'$as_ac_var'}'` = yes; then
26745 cat >>confdefs.h <<_ACEOF
26746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26748 cat >>confdefs.h <<\_ACEOF
26749 #define HAVE_FCHDIR 1
26756 for ac_func in strtoll
26758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26764 cat >conftest.$ac_ext <<_ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26772 #define $ac_func innocuous_$ac_func
26774 /* System header to define __stub macros and hopefully few prototypes,
26775 which can conflict with char $ac_func (); below.
26776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26777 <limits.h> exists even on freestanding compilers. */
26780 # include <limits.h>
26782 # include <assert.h>
26787 /* Override any GCC internal prototype to avoid an error.
26788 Use char because int might match the return type of a GCC
26789 builtin and then its argument prototype would still apply. */
26794 /* The GNU C library defines this for functions which it implements
26795 to always fail with ENOSYS. Some functions are actually named
26796 something starting with __ and the normal name is an alias. */
26797 #if defined __stub_$ac_func || defined __stub___$ac_func
26804 return $ac_func ();
26809 rm -f conftest.$ac_objext conftest$ac_exeext
26810 if { (ac_try="$ac_link"
26811 case "(($ac_try" in
26812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26813 *) ac_try_echo=$ac_try;;
26815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816 (eval "$ac_link") 2>conftest.er1
26818 grep -v '^ *+' conftest.er1 >conftest.err
26820 cat conftest.err >&5
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); } && {
26823 test -z "$ac_c_werror_flag" ||
26824 test ! -s conftest.err
26825 } && test -s conftest$ac_exeext &&
26826 $as_test_x conftest$ac_exeext; then
26827 eval "$as_ac_var=yes"
26829 echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.$ac_ext >&5
26832 eval "$as_ac_var=no"
26835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26836 conftest$ac_exeext conftest.$ac_ext
26838 ac_res=`eval echo '${'$as_ac_var'}'`
26839 { echo "$as_me:$LINENO: result: $ac_res" >&5
26840 echo "${ECHO_T}$ac_res" >&6; }
26841 if test `eval echo '${'$as_ac_var'}'` = yes; then
26842 cat >>confdefs.h <<_ACEOF
26843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26845 cat >>confdefs.h <<\_ACEOF
26846 #define HAVE_STRTOLL 1
26853 for ac_func in posix_fadvise
26855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26861 cat >conftest.$ac_ext <<_ACEOF
26864 cat confdefs.h >>conftest.$ac_ext
26865 cat >>conftest.$ac_ext <<_ACEOF
26866 /* end confdefs.h. */
26867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26869 #define $ac_func innocuous_$ac_func
26871 /* System header to define __stub macros and hopefully few prototypes,
26872 which can conflict with char $ac_func (); below.
26873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26874 <limits.h> exists even on freestanding compilers. */
26877 # include <limits.h>
26879 # include <assert.h>
26884 /* Override any GCC internal prototype to avoid an error.
26885 Use char because int might match the return type of a GCC
26886 builtin and then its argument prototype would still apply. */
26891 /* The GNU C library defines this for functions which it implements
26892 to always fail with ENOSYS. Some functions are actually named
26893 something starting with __ and the normal name is an alias. */
26894 #if defined __stub_$ac_func || defined __stub___$ac_func
26901 return $ac_func ();
26906 rm -f conftest.$ac_objext conftest$ac_exeext
26907 if { (ac_try="$ac_link"
26908 case "(($ac_try" in
26909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26910 *) ac_try_echo=$ac_try;;
26912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26913 (eval "$ac_link") 2>conftest.er1
26915 grep -v '^ *+' conftest.er1 >conftest.err
26917 cat conftest.err >&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); } && {
26920 test -z "$ac_c_werror_flag" ||
26921 test ! -s conftest.err
26922 } && test -s conftest$ac_exeext &&
26923 $as_test_x conftest$ac_exeext; then
26924 eval "$as_ac_var=yes"
26926 echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26929 eval "$as_ac_var=no"
26932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26933 conftest$ac_exeext conftest.$ac_ext
26935 ac_res=`eval echo '${'$as_ac_var'}'`
26936 { echo "$as_me:$LINENO: result: $ac_res" >&5
26937 echo "${ECHO_T}$ac_res" >&6; }
26938 if test `eval echo '${'$as_ac_var'}'` = yes; then
26939 cat >>confdefs.h <<_ACEOF
26940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26947 for ac_func in fdatasync
26949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26953 echo $ECHO_N "(cached) $ECHO_C" >&6
26955 cat >conftest.$ac_ext <<_ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h. */
26961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26963 #define $ac_func innocuous_$ac_func
26965 /* System header to define __stub macros and hopefully few prototypes,
26966 which can conflict with char $ac_func (); below.
26967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26968 <limits.h> exists even on freestanding compilers. */
26971 # include <limits.h>
26973 # include <assert.h>
26978 /* Override any GCC internal prototype to avoid an error.
26979 Use char because int might match the return type of a GCC
26980 builtin and then its argument prototype would still apply. */
26985 /* The GNU C library defines this for functions which it implements
26986 to always fail with ENOSYS. Some functions are actually named
26987 something starting with __ and the normal name is an alias. */
26988 #if defined __stub_$ac_func || defined __stub___$ac_func
26995 return $ac_func ();
27000 rm -f conftest.$ac_objext conftest$ac_exeext
27001 if { (ac_try="$ac_link"
27002 case "(($ac_try" in
27003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27004 *) ac_try_echo=$ac_try;;
27006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27007 (eval "$ac_link") 2>conftest.er1
27009 grep -v '^ *+' conftest.er1 >conftest.err
27011 cat conftest.err >&5
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); } && {
27014 test -z "$ac_c_werror_flag" ||
27015 test ! -s conftest.err
27016 } && test -s conftest$ac_exeext &&
27017 $as_test_x conftest$ac_exeext; then
27018 eval "$as_ac_var=yes"
27020 echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27023 eval "$as_ac_var=no"
27026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27027 conftest$ac_exeext conftest.$ac_ext
27029 ac_res=`eval echo '${'$as_ac_var'}'`
27030 { echo "$as_me:$LINENO: result: $ac_res" >&5
27031 echo "${ECHO_T}$ac_res" >&6; }
27032 if test `eval echo '${'$as_ac_var'}'` = yes; then
27033 cat >>confdefs.h <<_ACEOF
27034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27042 for ac_func in chflags
27044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27048 echo $ECHO_N "(cached) $ECHO_C" >&6
27050 cat >conftest.$ac_ext <<_ACEOF
27053 cat confdefs.h >>conftest.$ac_ext
27054 cat >>conftest.$ac_ext <<_ACEOF
27055 /* end confdefs.h. */
27056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27058 #define $ac_func innocuous_$ac_func
27060 /* System header to define __stub macros and hopefully few prototypes,
27061 which can conflict with char $ac_func (); below.
27062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27063 <limits.h> exists even on freestanding compilers. */
27066 # include <limits.h>
27068 # include <assert.h>
27073 /* Override any GCC internal prototype to avoid an error.
27074 Use char because int might match the return type of a GCC
27075 builtin and then its argument prototype would still apply. */
27080 /* The GNU C library defines this for functions which it implements
27081 to always fail with ENOSYS. Some functions are actually named
27082 something starting with __ and the normal name is an alias. */
27083 #if defined __stub_$ac_func || defined __stub___$ac_func
27090 return $ac_func ();
27095 rm -f conftest.$ac_objext conftest$ac_exeext
27096 if { (ac_try="$ac_link"
27097 case "(($ac_try" in
27098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099 *) ac_try_echo=$ac_try;;
27101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102 (eval "$ac_link") 2>conftest.er1
27104 grep -v '^ *+' conftest.er1 >conftest.err
27106 cat conftest.err >&5
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); } && {
27109 test -z "$ac_c_werror_flag" ||
27110 test ! -s conftest.err
27111 } && test -s conftest$ac_exeext &&
27112 $as_test_x conftest$ac_exeext; then
27113 eval "$as_ac_var=yes"
27115 echo "$as_me: failed program was:" >&5
27116 sed 's/^/| /' conftest.$ac_ext >&5
27118 eval "$as_ac_var=no"
27121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27122 conftest$ac_exeext conftest.$ac_ext
27124 ac_res=`eval echo '${'$as_ac_var'}'`
27125 { echo "$as_me:$LINENO: result: $ac_res" >&5
27126 echo "${ECHO_T}$ac_res" >&6; }
27127 if test `eval echo '${'$as_ac_var'}'` = yes; then
27128 cat >>confdefs.h <<_ACEOF
27129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27140 for ac_func in snprintf vsnprintf gethostid fseeko
27142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27146 echo $ECHO_N "(cached) $ECHO_C" >&6
27148 cat >conftest.$ac_ext <<_ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h. */
27154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27156 #define $ac_func innocuous_$ac_func
27158 /* System header to define __stub macros and hopefully few prototypes,
27159 which can conflict with char $ac_func (); below.
27160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27161 <limits.h> exists even on freestanding compilers. */
27164 # include <limits.h>
27166 # include <assert.h>
27171 /* Override any GCC internal prototype to avoid an error.
27172 Use char because int might match the return type of a GCC
27173 builtin and then its argument prototype would still apply. */
27178 /* The GNU C library defines this for functions which it implements
27179 to always fail with ENOSYS. Some functions are actually named
27180 something starting with __ and the normal name is an alias. */
27181 #if defined __stub_$ac_func || defined __stub___$ac_func
27188 return $ac_func ();
27193 rm -f conftest.$ac_objext conftest$ac_exeext
27194 if { (ac_try="$ac_link"
27195 case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_link") 2>conftest.er1
27202 grep -v '^ *+' conftest.er1 >conftest.err
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); } && {
27207 test -z "$ac_c_werror_flag" ||
27208 test ! -s conftest.err
27209 } && test -s conftest$ac_exeext &&
27210 $as_test_x conftest$ac_exeext; then
27211 eval "$as_ac_var=yes"
27213 echo "$as_me: failed program was:" >&5
27214 sed 's/^/| /' conftest.$ac_ext >&5
27216 eval "$as_ac_var=no"
27219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27220 conftest$ac_exeext conftest.$ac_ext
27222 ac_res=`eval echo '${'$as_ac_var'}'`
27223 { echo "$as_me:$LINENO: result: $ac_res" >&5
27224 echo "${ECHO_T}$ac_res" >&6; }
27225 if test `eval echo '${'$as_ac_var'}'` = yes; then
27226 cat >>confdefs.h <<_ACEOF
27227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27234 { echo "$as_me:$LINENO: checking for va_copy" >&5
27235 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27236 if test "${ba_cv_va_copy+set}" = set; then
27237 echo $ECHO_N "(cached) $ECHO_C" >&6
27239 cat >conftest.$ac_ext <<_ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h. */
27246 #include <stdarg.h>
27247 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27248 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27253 call_use_va_copy(1,2,3)
27258 rm -f conftest.$ac_objext conftest$ac_exeext
27259 if { (ac_try="$ac_link"
27260 case "(($ac_try" in
27261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262 *) ac_try_echo=$ac_try;;
27264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265 (eval "$ac_link") 2>conftest.er1
27267 grep -v '^ *+' conftest.er1 >conftest.err
27269 cat conftest.err >&5
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); } && {
27272 test -z "$ac_c_werror_flag" ||
27273 test ! -s conftest.err
27274 } && test -s conftest$ac_exeext &&
27275 $as_test_x conftest$ac_exeext; then
27278 echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27285 conftest$ac_exeext conftest.$ac_ext
27287 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27288 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27289 test $ba_cv_va_copy = yes &&
27290 cat >>confdefs.h <<\_ACEOF
27291 #define HAVE_VA_COPY 1
27300 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27306 echo $ECHO_N "(cached) $ECHO_C" >&6
27308 cat >conftest.$ac_ext <<_ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h. */
27314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27316 #define $ac_func innocuous_$ac_func
27318 /* System header to define __stub macros and hopefully few prototypes,
27319 which can conflict with char $ac_func (); below.
27320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27321 <limits.h> exists even on freestanding compilers. */
27324 # include <limits.h>
27326 # include <assert.h>
27331 /* Override any GCC internal prototype to avoid an error.
27332 Use char because int might match the return type of a GCC
27333 builtin and then its argument prototype would still apply. */
27338 /* The GNU C library defines this for functions which it implements
27339 to always fail with ENOSYS. Some functions are actually named
27340 something starting with __ and the normal name is an alias. */
27341 #if defined __stub_$ac_func || defined __stub___$ac_func
27348 return $ac_func ();
27353 rm -f conftest.$ac_objext conftest$ac_exeext
27354 if { (ac_try="$ac_link"
27355 case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27360 (eval "$ac_link") 2>conftest.er1
27362 grep -v '^ *+' conftest.er1 >conftest.err
27364 cat conftest.err >&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); } && {
27367 test -z "$ac_c_werror_flag" ||
27368 test ! -s conftest.err
27369 } && test -s conftest$ac_exeext &&
27370 $as_test_x conftest$ac_exeext; then
27371 eval "$as_ac_var=yes"
27373 echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27376 eval "$as_ac_var=no"
27379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27380 conftest$ac_exeext conftest.$ac_ext
27382 ac_res=`eval echo '${'$as_ac_var'}'`
27383 { echo "$as_me:$LINENO: result: $ac_res" >&5
27384 echo "${ECHO_T}$ac_res" >&6; }
27385 if test `eval echo '${'$as_ac_var'}'` = yes; then
27386 cat >>confdefs.h <<_ACEOF
27387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27394 # If resolver functions are not in libc check for -lnsl or -lresolv.
27395 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27396 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27397 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27398 echo $ECHO_N "(cached) $ECHO_C" >&6
27400 cat >conftest.$ac_ext <<_ACEOF
27403 cat confdefs.h >>conftest.$ac_ext
27404 cat >>conftest.$ac_ext <<_ACEOF
27405 /* end confdefs.h. */
27406 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27408 #define gethostbyname_r innocuous_gethostbyname_r
27410 /* System header to define __stub macros and hopefully few prototypes,
27411 which can conflict with char gethostbyname_r (); below.
27412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27413 <limits.h> exists even on freestanding compilers. */
27416 # include <limits.h>
27418 # include <assert.h>
27421 #undef gethostbyname_r
27423 /* Override any GCC internal prototype to avoid an error.
27424 Use char because int might match the return type of a GCC
27425 builtin and then its argument prototype would still apply. */
27429 char gethostbyname_r ();
27430 /* The GNU C library defines this for functions which it implements
27431 to always fail with ENOSYS. Some functions are actually named
27432 something starting with __ and the normal name is an alias. */
27433 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27440 return gethostbyname_r ();
27445 rm -f conftest.$ac_objext conftest$ac_exeext
27446 if { (ac_try="$ac_link"
27447 case "(($ac_try" in
27448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27449 *) ac_try_echo=$ac_try;;
27451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27452 (eval "$ac_link") 2>conftest.er1
27454 grep -v '^ *+' conftest.er1 >conftest.err
27456 cat conftest.err >&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } && {
27459 test -z "$ac_c_werror_flag" ||
27460 test ! -s conftest.err
27461 } && test -s conftest$ac_exeext &&
27462 $as_test_x conftest$ac_exeext; then
27463 ac_cv_func_gethostbyname_r=yes
27465 echo "$as_me: failed program was:" >&5
27466 sed 's/^/| /' conftest.$ac_ext >&5
27468 ac_cv_func_gethostbyname_r=no
27471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27472 conftest$ac_exeext conftest.$ac_ext
27474 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27475 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27476 if test $ac_cv_func_gethostbyname_r = yes; then
27477 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27478 echo "${ECHO_T}using libc's resolver" >&6; }
27481 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27482 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27483 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27484 echo $ECHO_N "(cached) $ECHO_C" >&6
27486 ac_check_lib_save_LIBS=$LIBS
27488 cat >conftest.$ac_ext <<_ACEOF
27491 cat confdefs.h >>conftest.$ac_ext
27492 cat >>conftest.$ac_ext <<_ACEOF
27493 /* end confdefs.h. */
27495 /* Override any GCC internal prototype to avoid an error.
27496 Use char because int might match the return type of a GCC
27497 builtin and then its argument prototype would still apply. */
27501 char gethostbyname_r ();
27505 return gethostbyname_r ();
27510 rm -f conftest.$ac_objext conftest$ac_exeext
27511 if { (ac_try="$ac_link"
27512 case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517 (eval "$ac_link") 2>conftest.er1
27519 grep -v '^ *+' conftest.er1 >conftest.err
27521 cat conftest.err >&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); } && {
27524 test -z "$ac_c_werror_flag" ||
27525 test ! -s conftest.err
27526 } && test -s conftest$ac_exeext &&
27527 $as_test_x conftest$ac_exeext; then
27528 ac_cv_lib_nsl_gethostbyname_r=yes
27530 echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27533 ac_cv_lib_nsl_gethostbyname_r=no
27536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27537 conftest$ac_exeext conftest.$ac_ext
27538 LIBS=$ac_check_lib_save_LIBS
27540 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27541 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27542 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27543 cat >>confdefs.h <<_ACEOF
27544 #define HAVE_LIBNSL 1
27552 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27553 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27554 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27555 echo $ECHO_N "(cached) $ECHO_C" >&6
27557 ac_check_lib_save_LIBS=$LIBS
27558 LIBS="-lresolv $LIBS"
27559 cat >conftest.$ac_ext <<_ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h. */
27566 /* Override any GCC internal prototype to avoid an error.
27567 Use char because int might match the return type of a GCC
27568 builtin and then its argument prototype would still apply. */
27572 char gethostbyname_r ();
27576 return gethostbyname_r ();
27581 rm -f conftest.$ac_objext conftest$ac_exeext
27582 if { (ac_try="$ac_link"
27583 case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_link") 2>conftest.er1
27590 grep -v '^ *+' conftest.er1 >conftest.err
27592 cat conftest.err >&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); } && {
27595 test -z "$ac_c_werror_flag" ||
27596 test ! -s conftest.err
27597 } && test -s conftest$ac_exeext &&
27598 $as_test_x conftest$ac_exeext; then
27599 ac_cv_lib_resolv_gethostbyname_r=yes
27601 echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27604 ac_cv_lib_resolv_gethostbyname_r=no
27607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27608 conftest$ac_exeext conftest.$ac_ext
27609 LIBS=$ac_check_lib_save_LIBS
27611 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27612 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27613 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27614 cat >>confdefs.h <<_ACEOF
27615 #define HAVE_LIBRESOLV 1
27618 LIBS="-lresolv $LIBS"
27628 for ac_func in inet_pton
27630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27634 echo $ECHO_N "(cached) $ECHO_C" >&6
27636 cat >conftest.$ac_ext <<_ACEOF
27639 cat confdefs.h >>conftest.$ac_ext
27640 cat >>conftest.$ac_ext <<_ACEOF
27641 /* end confdefs.h. */
27642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27644 #define $ac_func innocuous_$ac_func
27646 /* System header to define __stub macros and hopefully few prototypes,
27647 which can conflict with char $ac_func (); below.
27648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27649 <limits.h> exists even on freestanding compilers. */
27652 # include <limits.h>
27654 # include <assert.h>
27659 /* Override any GCC internal prototype to avoid an error.
27660 Use char because int might match the return type of a GCC
27661 builtin and then its argument prototype would still apply. */
27666 /* The GNU C library defines this for functions which it implements
27667 to always fail with ENOSYS. Some functions are actually named
27668 something starting with __ and the normal name is an alias. */
27669 #if defined __stub_$ac_func || defined __stub___$ac_func
27676 return $ac_func ();
27681 rm -f conftest.$ac_objext conftest$ac_exeext
27682 if { (ac_try="$ac_link"
27683 case "(($ac_try" in
27684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27685 *) ac_try_echo=$ac_try;;
27687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27688 (eval "$ac_link") 2>conftest.er1
27690 grep -v '^ *+' conftest.er1 >conftest.err
27692 cat conftest.err >&5
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); } && {
27695 test -z "$ac_c_werror_flag" ||
27696 test ! -s conftest.err
27697 } && test -s conftest$ac_exeext &&
27698 $as_test_x conftest$ac_exeext; then
27699 eval "$as_ac_var=yes"
27701 echo "$as_me: failed program was:" >&5
27702 sed 's/^/| /' conftest.$ac_ext >&5
27704 eval "$as_ac_var=no"
27707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27708 conftest$ac_exeext conftest.$ac_ext
27710 ac_res=`eval echo '${'$as_ac_var'}'`
27711 { echo "$as_me:$LINENO: result: $ac_res" >&5
27712 echo "${ECHO_T}$ac_res" >&6; }
27713 if test `eval echo '${'$as_ac_var'}'` = yes; then
27714 cat >>confdefs.h <<_ACEOF
27715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27717 cat >>confdefs.h <<\_ACEOF
27718 #define HAVE_INET_PTON 1
27725 for ac_func in inet_ntop
27727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27731 echo $ECHO_N "(cached) $ECHO_C" >&6
27733 cat >conftest.$ac_ext <<_ACEOF
27736 cat confdefs.h >>conftest.$ac_ext
27737 cat >>conftest.$ac_ext <<_ACEOF
27738 /* end confdefs.h. */
27739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27741 #define $ac_func innocuous_$ac_func
27743 /* System header to define __stub macros and hopefully few prototypes,
27744 which can conflict with char $ac_func (); below.
27745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27746 <limits.h> exists even on freestanding compilers. */
27749 # include <limits.h>
27751 # include <assert.h>
27756 /* Override any GCC internal prototype to avoid an error.
27757 Use char because int might match the return type of a GCC
27758 builtin and then its argument prototype would still apply. */
27763 /* The GNU C library defines this for functions which it implements
27764 to always fail with ENOSYS. Some functions are actually named
27765 something starting with __ and the normal name is an alias. */
27766 #if defined __stub_$ac_func || defined __stub___$ac_func
27773 return $ac_func ();
27778 rm -f conftest.$ac_objext conftest$ac_exeext
27779 if { (ac_try="$ac_link"
27780 case "(($ac_try" in
27781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782 *) ac_try_echo=$ac_try;;
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785 (eval "$ac_link") 2>conftest.er1
27787 grep -v '^ *+' conftest.er1 >conftest.err
27789 cat conftest.err >&5
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); } && {
27792 test -z "$ac_c_werror_flag" ||
27793 test ! -s conftest.err
27794 } && test -s conftest$ac_exeext &&
27795 $as_test_x conftest$ac_exeext; then
27796 eval "$as_ac_var=yes"
27798 echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27801 eval "$as_ac_var=no"
27804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27805 conftest$ac_exeext conftest.$ac_ext
27807 ac_res=`eval echo '${'$as_ac_var'}'`
27808 { echo "$as_me:$LINENO: result: $ac_res" >&5
27809 echo "${ECHO_T}$ac_res" >&6; }
27810 if test `eval echo '${'$as_ac_var'}'` = yes; then
27811 cat >>confdefs.h <<_ACEOF
27812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27814 cat >>confdefs.h <<\_ACEOF
27815 #define HAVE_INET_NTOP 1
27822 for ac_func in gethostbyname2
27824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27830 cat >conftest.$ac_ext <<_ACEOF
27833 cat confdefs.h >>conftest.$ac_ext
27834 cat >>conftest.$ac_ext <<_ACEOF
27835 /* end confdefs.h. */
27836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27838 #define $ac_func innocuous_$ac_func
27840 /* System header to define __stub macros and hopefully few prototypes,
27841 which can conflict with char $ac_func (); below.
27842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27843 <limits.h> exists even on freestanding compilers. */
27846 # include <limits.h>
27848 # include <assert.h>
27853 /* Override any GCC internal prototype to avoid an error.
27854 Use char because int might match the return type of a GCC
27855 builtin and then its argument prototype would still apply. */
27860 /* The GNU C library defines this for functions which it implements
27861 to always fail with ENOSYS. Some functions are actually named
27862 something starting with __ and the normal name is an alias. */
27863 #if defined __stub_$ac_func || defined __stub___$ac_func
27870 return $ac_func ();
27875 rm -f conftest.$ac_objext conftest$ac_exeext
27876 if { (ac_try="$ac_link"
27877 case "(($ac_try" in
27878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879 *) ac_try_echo=$ac_try;;
27881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882 (eval "$ac_link") 2>conftest.er1
27884 grep -v '^ *+' conftest.er1 >conftest.err
27886 cat conftest.err >&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); } && {
27889 test -z "$ac_c_werror_flag" ||
27890 test ! -s conftest.err
27891 } && test -s conftest$ac_exeext &&
27892 $as_test_x conftest$ac_exeext; then
27893 eval "$as_ac_var=yes"
27895 echo "$as_me: failed program was:" >&5
27896 sed 's/^/| /' conftest.$ac_ext >&5
27898 eval "$as_ac_var=no"
27901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27902 conftest$ac_exeext conftest.$ac_ext
27904 ac_res=`eval echo '${'$as_ac_var'}'`
27905 { echo "$as_me:$LINENO: result: $ac_res" >&5
27906 echo "${ECHO_T}$ac_res" >&6; }
27907 if test `eval echo '${'$as_ac_var'}'` = yes; then
27908 cat >>confdefs.h <<_ACEOF
27909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27911 cat >>confdefs.h <<\_ACEOF
27912 #define HAVE_GETHOSTBYNAME2 1
27919 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27920 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
27921 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27922 echo $ECHO_N "(cached) $ECHO_C" >&6
27924 cat >conftest.$ac_ext <<_ACEOF
27927 cat confdefs.h >>conftest.$ac_ext
27928 cat >>conftest.$ac_ext <<_ACEOF
27929 /* end confdefs.h. */
27930 #include <sys/socket.h>
27934 struct sockaddr s; s.sa_len;
27939 rm -f conftest.$ac_objext
27940 if { (ac_try="$ac_compile"
27941 case "(($ac_try" in
27942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943 *) ac_try_echo=$ac_try;;
27945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27946 (eval "$ac_compile") 2>conftest.er1
27948 grep -v '^ *+' conftest.er1 >conftest.err
27950 cat conftest.err >&5
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); } && {
27953 test -z "$ac_c_werror_flag" ||
27954 test ! -s conftest.err
27955 } && test -s conftest.$ac_objext; then
27956 ac_cv_struct_sockaddr_sa_len=yes
27958 echo "$as_me: failed program was:" >&5
27959 sed 's/^/| /' conftest.$ac_ext >&5
27961 ac_cv_struct_sockaddr_sa_len=no
27964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27966 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27967 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
27969 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27971 cat >>confdefs.h <<\_ACEOF
27972 #define HAVE_SA_LEN 1
27981 for ac_func in strftime
27983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27987 echo $ECHO_N "(cached) $ECHO_C" >&6
27989 cat >conftest.$ac_ext <<_ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27997 #define $ac_func innocuous_$ac_func
27999 /* System header to define __stub macros and hopefully few prototypes,
28000 which can conflict with char $ac_func (); below.
28001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28002 <limits.h> exists even on freestanding compilers. */
28005 # include <limits.h>
28007 # include <assert.h>
28012 /* Override any GCC internal prototype to avoid an error.
28013 Use char because int might match the return type of a GCC
28014 builtin and then its argument prototype would still apply. */
28019 /* The GNU C library defines this for functions which it implements
28020 to always fail with ENOSYS. Some functions are actually named
28021 something starting with __ and the normal name is an alias. */
28022 #if defined __stub_$ac_func || defined __stub___$ac_func
28029 return $ac_func ();
28034 rm -f conftest.$ac_objext conftest$ac_exeext
28035 if { (ac_try="$ac_link"
28036 case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041 (eval "$ac_link") 2>conftest.er1
28043 grep -v '^ *+' conftest.er1 >conftest.err
28045 cat conftest.err >&5
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); } && {
28048 test -z "$ac_c_werror_flag" ||
28049 test ! -s conftest.err
28050 } && test -s conftest$ac_exeext &&
28051 $as_test_x conftest$ac_exeext; then
28052 eval "$as_ac_var=yes"
28054 echo "$as_me: failed program was:" >&5
28055 sed 's/^/| /' conftest.$ac_ext >&5
28057 eval "$as_ac_var=no"
28060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28061 conftest$ac_exeext conftest.$ac_ext
28063 ac_res=`eval echo '${'$as_ac_var'}'`
28064 { echo "$as_me:$LINENO: result: $ac_res" >&5
28065 echo "${ECHO_T}$ac_res" >&6; }
28066 if test `eval echo '${'$as_ac_var'}'` = yes; then
28067 cat >>confdefs.h <<_ACEOF
28068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28072 # strftime is in -lintl on SCO UNIX.
28073 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28074 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28075 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28076 echo $ECHO_N "(cached) $ECHO_C" >&6
28078 ac_check_lib_save_LIBS=$LIBS
28079 LIBS="-lintl $LIBS"
28080 cat >conftest.$ac_ext <<_ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h. */
28087 /* Override any GCC internal prototype to avoid an error.
28088 Use char because int might match the return type of a GCC
28089 builtin and then its argument prototype would still apply. */
28097 return strftime ();
28102 rm -f conftest.$ac_objext conftest$ac_exeext
28103 if { (ac_try="$ac_link"
28104 case "(($ac_try" in
28105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106 *) ac_try_echo=$ac_try;;
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109 (eval "$ac_link") 2>conftest.er1
28111 grep -v '^ *+' conftest.er1 >conftest.err
28113 cat conftest.err >&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } && {
28116 test -z "$ac_c_werror_flag" ||
28117 test ! -s conftest.err
28118 } && test -s conftest$ac_exeext &&
28119 $as_test_x conftest$ac_exeext; then
28120 ac_cv_lib_intl_strftime=yes
28122 echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28125 ac_cv_lib_intl_strftime=no
28128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28129 conftest$ac_exeext conftest.$ac_ext
28130 LIBS=$ac_check_lib_save_LIBS
28132 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28133 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28134 if test $ac_cv_lib_intl_strftime = yes; then
28135 cat >>confdefs.h <<\_ACEOF
28136 #define HAVE_STRFTIME 1
28139 LIBS="-lintl $LIBS"
28146 for ac_func in vprintf
28148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28152 echo $ECHO_N "(cached) $ECHO_C" >&6
28154 cat >conftest.$ac_ext <<_ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h. */
28160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28162 #define $ac_func innocuous_$ac_func
28164 /* System header to define __stub macros and hopefully few prototypes,
28165 which can conflict with char $ac_func (); below.
28166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28167 <limits.h> exists even on freestanding compilers. */
28170 # include <limits.h>
28172 # include <assert.h>
28177 /* Override any GCC internal prototype to avoid an error.
28178 Use char because int might match the return type of a GCC
28179 builtin and then its argument prototype would still apply. */
28184 /* The GNU C library defines this for functions which it implements
28185 to always fail with ENOSYS. Some functions are actually named
28186 something starting with __ and the normal name is an alias. */
28187 #if defined __stub_$ac_func || defined __stub___$ac_func
28194 return $ac_func ();
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (ac_try="$ac_link"
28201 case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_link") 2>conftest.er1
28208 grep -v '^ *+' conftest.er1 >conftest.err
28210 cat conftest.err >&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); } && {
28213 test -z "$ac_c_werror_flag" ||
28214 test ! -s conftest.err
28215 } && test -s conftest$ac_exeext &&
28216 $as_test_x conftest$ac_exeext; then
28217 eval "$as_ac_var=yes"
28219 echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28222 eval "$as_ac_var=no"
28225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28226 conftest$ac_exeext conftest.$ac_ext
28228 ac_res=`eval echo '${'$as_ac_var'}'`
28229 { echo "$as_me:$LINENO: result: $ac_res" >&5
28230 echo "${ECHO_T}$ac_res" >&6; }
28231 if test `eval echo '${'$as_ac_var'}'` = yes; then
28232 cat >>confdefs.h <<_ACEOF
28233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28236 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28237 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28238 if test "${ac_cv_func__doprnt+set}" = set; then
28239 echo $ECHO_N "(cached) $ECHO_C" >&6
28241 cat >conftest.$ac_ext <<_ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h. */
28247 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28249 #define _doprnt innocuous__doprnt
28251 /* System header to define __stub macros and hopefully few prototypes,
28252 which can conflict with char _doprnt (); below.
28253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28254 <limits.h> exists even on freestanding compilers. */
28257 # include <limits.h>
28259 # include <assert.h>
28264 /* Override any GCC internal prototype to avoid an error.
28265 Use char because int might match the return type of a GCC
28266 builtin and then its argument prototype would still apply. */
28271 /* The GNU C library defines this for functions which it implements
28272 to always fail with ENOSYS. Some functions are actually named
28273 something starting with __ and the normal name is an alias. */
28274 #if defined __stub__doprnt || defined __stub____doprnt
28286 rm -f conftest.$ac_objext conftest$ac_exeext
28287 if { (ac_try="$ac_link"
28288 case "(($ac_try" in
28289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290 *) ac_try_echo=$ac_try;;
28292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293 (eval "$ac_link") 2>conftest.er1
28295 grep -v '^ *+' conftest.er1 >conftest.err
28297 cat conftest.err >&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); } && {
28300 test -z "$ac_c_werror_flag" ||
28301 test ! -s conftest.err
28302 } && test -s conftest$ac_exeext &&
28303 $as_test_x conftest$ac_exeext; then
28304 ac_cv_func__doprnt=yes
28306 echo "$as_me: failed program was:" >&5
28307 sed 's/^/| /' conftest.$ac_ext >&5
28309 ac_cv_func__doprnt=no
28312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28313 conftest$ac_exeext conftest.$ac_ext
28315 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28316 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28317 if test $ac_cv_func__doprnt = yes; then
28319 cat >>confdefs.h <<\_ACEOF
28320 #define HAVE_DOPRNT 1
28329 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28330 # for constant arguments. Useless!
28331 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28332 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28333 if test "${ac_cv_working_alloca_h+set}" = set; then
28334 echo $ECHO_N "(cached) $ECHO_C" >&6
28336 cat >conftest.$ac_ext <<_ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h. */
28342 #include <alloca.h>
28346 char *p = (char *) alloca (2 * sizeof (int));
28352 rm -f conftest.$ac_objext conftest$ac_exeext
28353 if { (ac_try="$ac_link"
28354 case "(($ac_try" in
28355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28356 *) ac_try_echo=$ac_try;;
28358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28359 (eval "$ac_link") 2>conftest.er1
28361 grep -v '^ *+' conftest.er1 >conftest.err
28363 cat conftest.err >&5
28364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); } && {
28366 test -z "$ac_c_werror_flag" ||
28367 test ! -s conftest.err
28368 } && test -s conftest$ac_exeext &&
28369 $as_test_x conftest$ac_exeext; then
28370 ac_cv_working_alloca_h=yes
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28375 ac_cv_working_alloca_h=no
28378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28379 conftest$ac_exeext conftest.$ac_ext
28381 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28382 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28383 if test $ac_cv_working_alloca_h = yes; then
28385 cat >>confdefs.h <<\_ACEOF
28386 #define HAVE_ALLOCA_H 1
28391 { echo "$as_me:$LINENO: checking for alloca" >&5
28392 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28393 if test "${ac_cv_func_alloca_works+set}" = set; then
28394 echo $ECHO_N "(cached) $ECHO_C" >&6
28396 cat >conftest.$ac_ext <<_ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h. */
28403 # define alloca __builtin_alloca
28406 # include <malloc.h>
28407 # define alloca _alloca
28409 # ifdef HAVE_ALLOCA_H
28410 # include <alloca.h>
28415 # ifndef alloca /* predefined by HP cc +Olibcalls */
28426 char *p = (char *) alloca (1);
28432 rm -f conftest.$ac_objext conftest$ac_exeext
28433 if { (ac_try="$ac_link"
28434 case "(($ac_try" in
28435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436 *) ac_try_echo=$ac_try;;
28438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28439 (eval "$ac_link") 2>conftest.er1
28441 grep -v '^ *+' conftest.er1 >conftest.err
28443 cat conftest.err >&5
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); } && {
28446 test -z "$ac_c_werror_flag" ||
28447 test ! -s conftest.err
28448 } && test -s conftest$ac_exeext &&
28449 $as_test_x conftest$ac_exeext; then
28450 ac_cv_func_alloca_works=yes
28452 echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28455 ac_cv_func_alloca_works=no
28458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28459 conftest$ac_exeext conftest.$ac_ext
28461 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28462 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28464 if test $ac_cv_func_alloca_works = yes; then
28466 cat >>confdefs.h <<\_ACEOF
28467 #define HAVE_ALLOCA 1
28471 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28472 # that cause trouble. Some versions do not even contain alloca or
28473 # contain a buggy version. If you still want to use their alloca,
28474 # use ar to extract alloca.o from them instead of compiling alloca.c.
28476 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28478 cat >>confdefs.h <<\_ACEOF
28483 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28484 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28485 if test "${ac_cv_os_cray+set}" = set; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28488 cat >conftest.$ac_ext <<_ACEOF
28491 cat confdefs.h >>conftest.$ac_ext
28492 cat >>conftest.$ac_ext <<_ACEOF
28493 /* end confdefs.h. */
28494 #if defined CRAY && ! defined CRAY2
28501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28502 $EGREP "webecray" >/dev/null 2>&1; then
28510 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28511 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28512 if test $ac_cv_os_cray = yes; then
28513 for ac_func in _getb67 GETB67 getb67; do
28514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28518 echo $ECHO_N "(cached) $ECHO_C" >&6
28520 cat >conftest.$ac_ext <<_ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28528 #define $ac_func innocuous_$ac_func
28530 /* System header to define __stub macros and hopefully few prototypes,
28531 which can conflict with char $ac_func (); below.
28532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28533 <limits.h> exists even on freestanding compilers. */
28536 # include <limits.h>
28538 # include <assert.h>
28543 /* Override any GCC internal prototype to avoid an error.
28544 Use char because int might match the return type of a GCC
28545 builtin and then its argument prototype would still apply. */
28550 /* The GNU C library defines this for functions which it implements
28551 to always fail with ENOSYS. Some functions are actually named
28552 something starting with __ and the normal name is an alias. */
28553 #if defined __stub_$ac_func || defined __stub___$ac_func
28560 return $ac_func ();
28565 rm -f conftest.$ac_objext conftest$ac_exeext
28566 if { (ac_try="$ac_link"
28567 case "(($ac_try" in
28568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569 *) ac_try_echo=$ac_try;;
28571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28572 (eval "$ac_link") 2>conftest.er1
28574 grep -v '^ *+' conftest.er1 >conftest.err
28576 cat conftest.err >&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); } && {
28579 test -z "$ac_c_werror_flag" ||
28580 test ! -s conftest.err
28581 } && test -s conftest$ac_exeext &&
28582 $as_test_x conftest$ac_exeext; then
28583 eval "$as_ac_var=yes"
28585 echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28588 eval "$as_ac_var=no"
28591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28592 conftest$ac_exeext conftest.$ac_ext
28594 ac_res=`eval echo '${'$as_ac_var'}'`
28595 { echo "$as_me:$LINENO: result: $ac_res" >&5
28596 echo "${ECHO_T}$ac_res" >&6; }
28597 if test `eval echo '${'$as_ac_var'}'` = yes; then
28599 cat >>confdefs.h <<_ACEOF
28600 #define CRAY_STACKSEG_END $ac_func
28609 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28610 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28611 if test "${ac_cv_c_stack_direction+set}" = set; then
28612 echo $ECHO_N "(cached) $ECHO_C" >&6
28614 if test "$cross_compiling" = yes; then
28615 ac_cv_c_stack_direction=0
28617 cat >conftest.$ac_ext <<_ACEOF
28620 cat confdefs.h >>conftest.$ac_ext
28621 cat >>conftest.$ac_ext <<_ACEOF
28622 /* end confdefs.h. */
28623 $ac_includes_default
28625 find_stack_direction ()
28627 static char *addr = 0;
28632 return find_stack_direction ();
28635 return (&dummy > addr) ? 1 : -1;
28641 return find_stack_direction () < 0;
28644 rm -f conftest$ac_exeext
28645 if { (ac_try="$ac_link"
28646 case "(($ac_try" in
28647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648 *) ac_try_echo=$ac_try;;
28650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651 (eval "$ac_link") 2>&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28655 { (case "(($ac_try" in
28656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657 *) ac_try_echo=$ac_try;;
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660 (eval "$ac_try") 2>&5
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); }; }; then
28664 ac_cv_c_stack_direction=1
28666 echo "$as_me: program exited with status $ac_status" >&5
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28670 ( exit $ac_status )
28671 ac_cv_c_stack_direction=-1
28673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28678 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28679 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28681 cat >>confdefs.h <<_ACEOF
28682 #define STACK_DIRECTION $ac_cv_c_stack_direction
28688 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28689 # -lseq on Dynix/PTX, -lgen on Unixware.
28690 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28691 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28692 if test "${ac_cv_search_getmntent+set}" = set; then
28693 echo $ECHO_N "(cached) $ECHO_C" >&6
28695 ac_func_search_save_LIBS=$LIBS
28696 cat >conftest.$ac_ext <<_ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h. */
28703 /* Override any GCC internal prototype to avoid an error.
28704 Use char because int might match the return type of a GCC
28705 builtin and then its argument prototype would still apply. */
28713 return getmntent ();
28718 for ac_lib in '' sun seq gen; do
28719 if test -z "$ac_lib"; then
28720 ac_res="none required"
28723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28725 rm -f conftest.$ac_objext conftest$ac_exeext
28726 if { (ac_try="$ac_link"
28727 case "(($ac_try" in
28728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28729 *) ac_try_echo=$ac_try;;
28731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28732 (eval "$ac_link") 2>conftest.er1
28734 grep -v '^ *+' conftest.er1 >conftest.err
28736 cat conftest.err >&5
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); } && {
28739 test -z "$ac_c_werror_flag" ||
28740 test ! -s conftest.err
28741 } && test -s conftest$ac_exeext &&
28742 $as_test_x conftest$ac_exeext; then
28743 ac_cv_search_getmntent=$ac_res
28745 echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28753 if test "${ac_cv_search_getmntent+set}" = set; then
28757 if test "${ac_cv_search_getmntent+set}" = set; then
28760 ac_cv_search_getmntent=no
28762 rm conftest.$ac_ext
28763 LIBS=$ac_func_search_save_LIBS
28765 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28766 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28767 ac_res=$ac_cv_search_getmntent
28768 if test "$ac_res" != no; then
28769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28770 ac_cv_func_getmntent=yes
28772 cat >>confdefs.h <<\_ACEOF
28773 #define HAVE_GETMNTENT 1
28777 ac_cv_func_getmntent=no
28781 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28782 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28783 if test "${ac_cv_func_closedir_void+set}" = set; then
28784 echo $ECHO_N "(cached) $ECHO_C" >&6
28786 if test "$cross_compiling" = yes; then
28787 ac_cv_func_closedir_void=yes
28789 cat >conftest.$ac_ext <<_ACEOF
28792 cat confdefs.h >>conftest.$ac_ext
28793 cat >>conftest.$ac_ext <<_ACEOF
28794 /* end confdefs.h. */
28795 $ac_includes_default
28796 #include <$ac_header_dirent>
28797 #ifndef __cplusplus
28804 return closedir (opendir (".")) != 0;
28809 rm -f conftest$ac_exeext
28810 if { (ac_try="$ac_link"
28811 case "(($ac_try" in
28812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813 *) ac_try_echo=$ac_try;;
28815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816 (eval "$ac_link") 2>&5
28818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28820 { (case "(($ac_try" in
28821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28822 *) ac_try_echo=$ac_try;;
28824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28825 (eval "$ac_try") 2>&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; }; then
28829 ac_cv_func_closedir_void=no
28831 echo "$as_me: program exited with status $ac_status" >&5
28832 echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28835 ( exit $ac_status )
28836 ac_cv_func_closedir_void=yes
28838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28843 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28844 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28845 if test $ac_cv_func_closedir_void = yes; then
28847 cat >>confdefs.h <<\_ACEOF
28848 #define CLOSEDIR_VOID 1
28853 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28854 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28855 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28856 echo $ECHO_N "(cached) $ECHO_C" >&6
28858 if test "$cross_compiling" = yes; then
28859 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28860 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28861 { (exit 1); exit 1; }; }
28863 cat >conftest.$ac_ext <<_ACEOF
28866 cat confdefs.h >>conftest.$ac_ext
28867 cat >>conftest.$ac_ext <<_ACEOF
28868 /* end confdefs.h. */
28869 $ac_includes_default
28873 /* If this system has a BSD-style setpgrp which takes arguments,
28874 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28875 exit successfully. */
28876 return setpgrp (1,1) != -1;
28881 rm -f conftest$ac_exeext
28882 if { (ac_try="$ac_link"
28883 case "(($ac_try" in
28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885 *) ac_try_echo=$ac_try;;
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888 (eval "$ac_link") 2>&5
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28892 { (case "(($ac_try" in
28893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894 *) ac_try_echo=$ac_try;;
28896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897 (eval "$ac_try") 2>&5
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); }; }; then
28901 ac_cv_func_setpgrp_void=no
28903 echo "$as_me: program exited with status $ac_status" >&5
28904 echo "$as_me: failed program was:" >&5
28905 sed 's/^/| /' conftest.$ac_ext >&5
28907 ( exit $ac_status )
28908 ac_cv_func_setpgrp_void=yes
28910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28915 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28916 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
28917 if test $ac_cv_func_setpgrp_void = yes; then
28919 cat >>confdefs.h <<\_ACEOF
28920 #define SETPGRP_VOID 1
28924 # AC_FUNC_FNMATCH dnl use local version
28927 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28928 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
28929 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28930 echo $ECHO_N "(cached) $ECHO_C" >&6
28932 ac_check_lib_save_LIBS=$LIBS
28933 LIBS="-lintl $LIBS"
28934 cat >conftest.$ac_ext <<_ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h. */
28941 /* Override any GCC internal prototype to avoid an error.
28942 Use char because int might match the return type of a GCC
28943 builtin and then its argument prototype would still apply. */
28956 rm -f conftest.$ac_objext conftest$ac_exeext
28957 if { (ac_try="$ac_link"
28958 case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_link") 2>conftest.er1
28965 grep -v '^ *+' conftest.er1 >conftest.err
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } && {
28970 test -z "$ac_c_werror_flag" ||
28971 test ! -s conftest.err
28972 } && test -s conftest$ac_exeext &&
28973 $as_test_x conftest$ac_exeext; then
28974 ac_cv_lib_intl_gettext=yes
28976 echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28979 ac_cv_lib_intl_gettext=no
28982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28983 conftest$ac_exeext conftest.$ac_ext
28984 LIBS=$ac_check_lib_save_LIBS
28986 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28987 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
28988 if test $ac_cv_lib_intl_gettext = yes; then
28989 LIBS="$LIBS -lintl"
28995 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28996 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
28997 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28998 echo $ECHO_N "(cached) $ECHO_C" >&6
29000 ac_check_lib_save_LIBS=$LIBS
29002 cat >conftest.$ac_ext <<_ACEOF
29005 cat confdefs.h >>conftest.$ac_ext
29006 cat >>conftest.$ac_ext <<_ACEOF
29007 /* end confdefs.h. */
29009 /* Override any GCC internal prototype to avoid an error.
29010 Use char because int might match the return type of a GCC
29011 builtin and then its argument prototype would still apply. */
29019 return getpwnam ();
29024 rm -f conftest.$ac_objext conftest$ac_exeext
29025 if { (ac_try="$ac_link"
29026 case "(($ac_try" in
29027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028 *) ac_try_echo=$ac_try;;
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031 (eval "$ac_link") 2>conftest.er1
29033 grep -v '^ *+' conftest.er1 >conftest.err
29035 cat conftest.err >&5
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); } && {
29038 test -z "$ac_c_werror_flag" ||
29039 test ! -s conftest.err
29040 } && test -s conftest$ac_exeext &&
29041 $as_test_x conftest$ac_exeext; then
29042 ac_cv_lib_sun_getpwnam=yes
29044 echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29047 ac_cv_lib_sun_getpwnam=no
29050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29051 conftest$ac_exeext conftest.$ac_ext
29052 LIBS=$ac_check_lib_save_LIBS
29054 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29055 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29056 if test $ac_cv_lib_sun_getpwnam = yes; then
29057 cat >>confdefs.h <<_ACEOF
29058 #define HAVE_LIBSUN 1
29067 for ac_header in zlib.h
29069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29074 echo $ECHO_N "(cached) $ECHO_C" >&6
29076 ac_res=`eval echo '${'$as_ac_Header'}'`
29077 { echo "$as_me:$LINENO: result: $ac_res" >&5
29078 echo "${ECHO_T}$ac_res" >&6; }
29080 # Is the header compilable?
29081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29083 cat >conftest.$ac_ext <<_ACEOF
29086 cat confdefs.h >>conftest.$ac_ext
29087 cat >>conftest.$ac_ext <<_ACEOF
29088 /* end confdefs.h. */
29089 $ac_includes_default
29090 #include <$ac_header>
29092 rm -f conftest.$ac_objext
29093 if { (ac_try="$ac_compile"
29094 case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_compile") 2>conftest.er1
29101 grep -v '^ *+' conftest.er1 >conftest.err
29103 cat conftest.err >&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); } && {
29106 test -z "$ac_c_werror_flag" ||
29107 test ! -s conftest.err
29108 } && test -s conftest.$ac_objext; then
29109 ac_header_compiler=yes
29111 echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29114 ac_header_compiler=no
29117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29119 echo "${ECHO_T}$ac_header_compiler" >&6; }
29121 # Is the header present?
29122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29124 cat >conftest.$ac_ext <<_ACEOF
29127 cat confdefs.h >>conftest.$ac_ext
29128 cat >>conftest.$ac_ext <<_ACEOF
29129 /* end confdefs.h. */
29130 #include <$ac_header>
29132 if { (ac_try="$ac_cpp conftest.$ac_ext"
29133 case "(($ac_try" in
29134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135 *) ac_try_echo=$ac_try;;
29137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29140 grep -v '^ *+' conftest.er1 >conftest.err
29142 cat conftest.err >&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); } >/dev/null && {
29145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29146 test ! -s conftest.err
29148 ac_header_preproc=yes
29150 echo "$as_me: failed program was:" >&5
29151 sed 's/^/| /' conftest.$ac_ext >&5
29153 ac_header_preproc=no
29156 rm -f conftest.err conftest.$ac_ext
29157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29158 echo "${ECHO_T}$ac_header_preproc" >&6; }
29160 # So? What about this header?
29161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29167 ac_header_preproc=yes
29170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29188 echo $ECHO_N "(cached) $ECHO_C" >&6
29190 eval "$as_ac_Header=\$ac_header_preproc"
29192 ac_res=`eval echo '${'$as_ac_Header'}'`
29193 { echo "$as_me:$LINENO: result: $ac_res" >&5
29194 echo "${ECHO_T}$ac_res" >&6; }
29197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29198 cat >>confdefs.h <<_ACEOF
29199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29206 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29207 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29208 if test "${ac_cv_lib_z_deflate+set}" = set; then
29209 echo $ECHO_N "(cached) $ECHO_C" >&6
29211 ac_check_lib_save_LIBS=$LIBS
29213 cat >conftest.$ac_ext <<_ACEOF
29216 cat confdefs.h >>conftest.$ac_ext
29217 cat >>conftest.$ac_ext <<_ACEOF
29218 /* end confdefs.h. */
29220 /* Override any GCC internal prototype to avoid an error.
29221 Use char because int might match the return type of a GCC
29222 builtin and then its argument prototype would still apply. */
29235 rm -f conftest.$ac_objext conftest$ac_exeext
29236 if { (ac_try="$ac_link"
29237 case "(($ac_try" in
29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239 *) ac_try_echo=$ac_try;;
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242 (eval "$ac_link") 2>conftest.er1
29244 grep -v '^ *+' conftest.er1 >conftest.err
29246 cat conftest.err >&5
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); } && {
29249 test -z "$ac_c_werror_flag" ||
29250 test ! -s conftest.err
29251 } && test -s conftest$ac_exeext &&
29252 $as_test_x conftest$ac_exeext; then
29253 ac_cv_lib_z_deflate=yes
29255 echo "$as_me: failed program was:" >&5
29256 sed 's/^/| /' conftest.$ac_ext >&5
29258 ac_cv_lib_z_deflate=no
29261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29262 conftest$ac_exeext conftest.$ac_ext
29263 LIBS=$ac_check_lib_save_LIBS
29265 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29266 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29267 if test $ac_cv_lib_z_deflate = yes; then
29272 if test x$FDLIBS = x-lz; then
29273 cat >>confdefs.h <<\_ACEOF
29274 #define HAVE_LIBZ 1
29281 # Check for ACL libraries
29284 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29285 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29286 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29287 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29288 echo $ECHO_N "(cached) $ECHO_C" >&6
29290 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29291 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29293 # Is the header compilable?
29294 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29295 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29296 cat >conftest.$ac_ext <<_ACEOF
29299 cat confdefs.h >>conftest.$ac_ext
29300 cat >>conftest.$ac_ext <<_ACEOF
29301 /* end confdefs.h. */
29302 $ac_includes_default
29303 #include <sys/acl.h>
29305 rm -f conftest.$ac_objext
29306 if { (ac_try="$ac_compile"
29307 case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_compile") 2>conftest.er1
29314 grep -v '^ *+' conftest.er1 >conftest.err
29316 cat conftest.err >&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } && {
29319 test -z "$ac_c_werror_flag" ||
29320 test ! -s conftest.err
29321 } && test -s conftest.$ac_objext; then
29322 ac_header_compiler=yes
29324 echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29327 ac_header_compiler=no
29330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29332 echo "${ECHO_T}$ac_header_compiler" >&6; }
29334 # Is the header present?
29335 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29336 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29337 cat >conftest.$ac_ext <<_ACEOF
29340 cat confdefs.h >>conftest.$ac_ext
29341 cat >>conftest.$ac_ext <<_ACEOF
29342 /* end confdefs.h. */
29343 #include <sys/acl.h>
29345 if { (ac_try="$ac_cpp conftest.$ac_ext"
29346 case "(($ac_try" in
29347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348 *) ac_try_echo=$ac_try;;
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29353 grep -v '^ *+' conftest.er1 >conftest.err
29355 cat conftest.err >&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); } >/dev/null && {
29358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29359 test ! -s conftest.err
29361 ac_header_preproc=yes
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29366 ac_header_preproc=no
29369 rm -f conftest.err conftest.$ac_ext
29370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29371 echo "${ECHO_T}$ac_header_preproc" >&6; }
29373 # So? What about this header?
29374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29376 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29377 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29379 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29380 ac_header_preproc=yes
29383 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29384 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29385 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29386 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29387 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29388 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29390 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29391 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29392 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29393 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29394 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29398 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29399 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29400 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29401 echo $ECHO_N "(cached) $ECHO_C" >&6
29403 ac_cv_header_sys_acl_h=$ac_header_preproc
29405 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29406 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29411 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29412 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29413 if test "${ac_cv_func_acl_get_file+set}" = set; then
29414 echo $ECHO_N "(cached) $ECHO_C" >&6
29416 cat >conftest.$ac_ext <<_ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h. */
29422 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29424 #define acl_get_file innocuous_acl_get_file
29426 /* System header to define __stub macros and hopefully few prototypes,
29427 which can conflict with char acl_get_file (); below.
29428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29429 <limits.h> exists even on freestanding compilers. */
29432 # include <limits.h>
29434 # include <assert.h>
29437 #undef acl_get_file
29439 /* Override any GCC internal prototype to avoid an error.
29440 Use char because int might match the return type of a GCC
29441 builtin and then its argument prototype would still apply. */
29445 char acl_get_file ();
29446 /* The GNU C library defines this for functions which it implements
29447 to always fail with ENOSYS. Some functions are actually named
29448 something starting with __ and the normal name is an alias. */
29449 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29456 return acl_get_file ();
29461 rm -f conftest.$ac_objext conftest$ac_exeext
29462 if { (ac_try="$ac_link"
29463 case "(($ac_try" in
29464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465 *) ac_try_echo=$ac_try;;
29467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468 (eval "$ac_link") 2>conftest.er1
29470 grep -v '^ *+' conftest.er1 >conftest.err
29472 cat conftest.err >&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } && {
29475 test -z "$ac_c_werror_flag" ||
29476 test ! -s conftest.err
29477 } && test -s conftest$ac_exeext &&
29478 $as_test_x conftest$ac_exeext; then
29479 ac_cv_func_acl_get_file=yes
29481 echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.$ac_ext >&5
29484 ac_cv_func_acl_get_file=no
29487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29488 conftest$ac_exeext conftest.$ac_ext
29490 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29491 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29492 if test $ac_cv_func_acl_get_file = yes; then
29495 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29496 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29497 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29498 echo $ECHO_N "(cached) $ECHO_C" >&6
29500 ac_check_lib_save_LIBS=$LIBS
29502 cat >conftest.$ac_ext <<_ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29509 /* Override any GCC internal prototype to avoid an error.
29510 Use char because int might match the return type of a GCC
29511 builtin and then its argument prototype would still apply. */
29515 char acl_get_file ();
29519 return acl_get_file ();
29524 rm -f conftest.$ac_objext conftest$ac_exeext
29525 if { (ac_try="$ac_link"
29526 case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_link") 2>conftest.er1
29533 grep -v '^ *+' conftest.er1 >conftest.err
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } && {
29538 test -z "$ac_c_werror_flag" ||
29539 test ! -s conftest.err
29540 } && test -s conftest$ac_exeext &&
29541 $as_test_x conftest$ac_exeext; then
29542 ac_cv_lib_acl_acl_get_file=yes
29544 echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29547 ac_cv_lib_acl_acl_get_file=no
29550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29551 conftest$ac_exeext conftest.$ac_ext
29552 LIBS=$ac_check_lib_save_LIBS
29554 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29555 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29556 if test $ac_cv_lib_acl_acl_get_file = yes; then
29557 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29559 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29560 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29561 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29562 echo $ECHO_N "(cached) $ECHO_C" >&6
29564 ac_check_lib_save_LIBS=$LIBS
29566 cat >conftest.$ac_ext <<_ACEOF
29569 cat confdefs.h >>conftest.$ac_ext
29570 cat >>conftest.$ac_ext <<_ACEOF
29571 /* end confdefs.h. */
29573 /* Override any GCC internal prototype to avoid an error.
29574 Use char because int might match the return type of a GCC
29575 builtin and then its argument prototype would still apply. */
29583 return acltotext ();
29588 rm -f conftest.$ac_objext conftest$ac_exeext
29589 if { (ac_try="$ac_link"
29590 case "(($ac_try" in
29591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29592 *) ac_try_echo=$ac_try;;
29594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29595 (eval "$ac_link") 2>conftest.er1
29597 grep -v '^ *+' conftest.er1 >conftest.err
29599 cat conftest.err >&5
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); } && {
29602 test -z "$ac_c_werror_flag" ||
29603 test ! -s conftest.err
29604 } && test -s conftest$ac_exeext &&
29605 $as_test_x conftest$ac_exeext; then
29606 ac_cv_lib_sec_acltotext=yes
29608 echo "$as_me: failed program was:" >&5
29609 sed 's/^/| /' conftest.$ac_ext >&5
29611 ac_cv_lib_sec_acltotext=no
29614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29615 conftest$ac_exeext conftest.$ac_ext
29616 LIBS=$ac_check_lib_save_LIBS
29618 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29619 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29620 if test $ac_cv_lib_sec_acltotext = yes; then
29621 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29630 if test $have_acl = yes; then
29631 cat >>confdefs.h <<\_ACEOF
29638 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29639 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29640 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29641 echo $ECHO_N "(cached) $ECHO_C" >&6
29643 ac_check_lib_save_LIBS=$LIBS
29644 LIBS="-lpthread $LIBS"
29645 cat >conftest.$ac_ext <<_ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h. */
29652 /* Override any GCC internal prototype to avoid an error.
29653 Use char because int might match the return type of a GCC
29654 builtin and then its argument prototype would still apply. */
29658 char pthread_create ();
29662 return pthread_create ();
29667 rm -f conftest.$ac_objext conftest$ac_exeext
29668 if { (ac_try="$ac_link"
29669 case "(($ac_try" in
29670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29671 *) ac_try_echo=$ac_try;;
29673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674 (eval "$ac_link") 2>conftest.er1
29676 grep -v '^ *+' conftest.er1 >conftest.err
29678 cat conftest.err >&5
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); } && {
29681 test -z "$ac_c_werror_flag" ||
29682 test ! -s conftest.err
29683 } && test -s conftest$ac_exeext &&
29684 $as_test_x conftest$ac_exeext; then
29685 ac_cv_lib_pthread_pthread_create=yes
29687 echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29690 ac_cv_lib_pthread_pthread_create=no
29693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29694 conftest$ac_exeext conftest.$ac_ext
29695 LIBS=$ac_check_lib_save_LIBS
29697 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29698 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29699 if test $ac_cv_lib_pthread_pthread_create = yes; then
29700 PTHREAD_LIB="-lpthread"
29702 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29703 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29704 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29705 echo $ECHO_N "(cached) $ECHO_C" >&6
29707 ac_check_lib_save_LIBS=$LIBS
29708 LIBS="-lpthreads $LIBS"
29709 cat >conftest.$ac_ext <<_ACEOF
29712 cat confdefs.h >>conftest.$ac_ext
29713 cat >>conftest.$ac_ext <<_ACEOF
29714 /* end confdefs.h. */
29716 /* Override any GCC internal prototype to avoid an error.
29717 Use char because int might match the return type of a GCC
29718 builtin and then its argument prototype would still apply. */
29722 char pthread_create ();
29726 return pthread_create ();
29731 rm -f conftest.$ac_objext conftest$ac_exeext
29732 if { (ac_try="$ac_link"
29733 case "(($ac_try" in
29734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29735 *) ac_try_echo=$ac_try;;
29737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29738 (eval "$ac_link") 2>conftest.er1
29740 grep -v '^ *+' conftest.er1 >conftest.err
29742 cat conftest.err >&5
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } && {
29745 test -z "$ac_c_werror_flag" ||
29746 test ! -s conftest.err
29747 } && test -s conftest$ac_exeext &&
29748 $as_test_x conftest$ac_exeext; then
29749 ac_cv_lib_pthreads_pthread_create=yes
29751 echo "$as_me: failed program was:" >&5
29752 sed 's/^/| /' conftest.$ac_ext >&5
29754 ac_cv_lib_pthreads_pthread_create=no
29757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29758 conftest$ac_exeext conftest.$ac_ext
29759 LIBS=$ac_check_lib_save_LIBS
29761 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29762 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29763 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29764 PTHREAD_LIB="-lpthreads"
29766 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29767 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29768 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29769 echo $ECHO_N "(cached) $ECHO_C" >&6
29771 ac_check_lib_save_LIBS=$LIBS
29773 cat >conftest.$ac_ext <<_ACEOF
29776 cat confdefs.h >>conftest.$ac_ext
29777 cat >>conftest.$ac_ext <<_ACEOF
29778 /* end confdefs.h. */
29780 /* Override any GCC internal prototype to avoid an error.
29781 Use char because int might match the return type of a GCC
29782 builtin and then its argument prototype would still apply. */
29786 char pthread_create ();
29790 return pthread_create ();
29795 rm -f conftest.$ac_objext conftest$ac_exeext
29796 if { (ac_try="$ac_link"
29797 case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_link") 2>conftest.er1
29804 grep -v '^ *+' conftest.er1 >conftest.err
29806 cat conftest.err >&5
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); } && {
29809 test -z "$ac_c_werror_flag" ||
29810 test ! -s conftest.err
29811 } && test -s conftest$ac_exeext &&
29812 $as_test_x conftest$ac_exeext; then
29813 ac_cv_lib_c_r_pthread_create=yes
29815 echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29818 ac_cv_lib_c_r_pthread_create=no
29821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29822 conftest$ac_exeext conftest.$ac_ext
29823 LIBS=$ac_check_lib_save_LIBS
29825 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29826 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29827 if test $ac_cv_lib_c_r_pthread_create = yes; then
29828 PTHREAD_LIB="-lc_r"
29830 { echo "$as_me:$LINENO: checking for pthread_create" >&5
29831 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29832 if test "${ac_cv_func_pthread_create+set}" = set; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
29835 cat >conftest.$ac_ext <<_ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h. */
29841 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29843 #define pthread_create innocuous_pthread_create
29845 /* System header to define __stub macros and hopefully few prototypes,
29846 which can conflict with char pthread_create (); below.
29847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29848 <limits.h> exists even on freestanding compilers. */
29851 # include <limits.h>
29853 # include <assert.h>
29856 #undef pthread_create
29858 /* Override any GCC internal prototype to avoid an error.
29859 Use char because int might match the return type of a GCC
29860 builtin and then its argument prototype would still apply. */
29864 char pthread_create ();
29865 /* The GNU C library defines this for functions which it implements
29866 to always fail with ENOSYS. Some functions are actually named
29867 something starting with __ and the normal name is an alias. */
29868 #if defined __stub_pthread_create || defined __stub___pthread_create
29875 return pthread_create ();
29880 rm -f conftest.$ac_objext conftest$ac_exeext
29881 if { (ac_try="$ac_link"
29882 case "(($ac_try" in
29883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884 *) ac_try_echo=$ac_try;;
29886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887 (eval "$ac_link") 2>conftest.er1
29889 grep -v '^ *+' conftest.er1 >conftest.err
29891 cat conftest.err >&5
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); } && {
29894 test -z "$ac_c_werror_flag" ||
29895 test ! -s conftest.err
29896 } && test -s conftest$ac_exeext &&
29897 $as_test_x conftest$ac_exeext; then
29898 ac_cv_func_pthread_create=yes
29900 echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29903 ac_cv_func_pthread_create=no
29906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29907 conftest$ac_exeext conftest.$ac_ext
29909 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29910 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29923 cat >>confdefs.h <<\_ACEOF
29929 CFLAGS=${CFLAGS--O}
29931 if test x$have_gcc = xyes ; then
29932 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29933 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29935 LDFLAGS=${LDFLAGS--O}
29936 DB_LIBS="${SQL_LFLAGS}"
29937 CPPFLAGS="$CPPFLAGS"
29965 # Finally we set appropriate distribution specific
29966 # variables and defaults
29968 # PFILES are platform specific files
29969 PFILES="platforms/Makefile"
29973 hostname=`uname -n | cut -d '.' -f 1`
29974 if test x${hostname} = x ; then
29975 hostname="localhost"
29977 case "$DISTNAME" in
29980 PSCMD="ps -e -o pid,comm"
29981 PFILES="${PFILES} \
29982 platforms/aix/Makefile"
29983 TAPEDRIVE="/dev/rmt0.1"
29987 PTHREAD_LIB="-lpthread -lexc"
29988 if test "${CC}" = "gcc" ; then
29995 TAPEDRIVE="/dev/nrmt0"
29998 DISTVER=`uname -a |awk '{print $3}'`
29999 TAPEDRIVE="/dev/nrmt0"
30000 PTHREAD_LIB="-pthread"
30001 CFLAGS="${CFLAGS} -pthread"
30002 PSCMD="ps -ax -o pid,command"
30005 PFILES="${PFILES} \
30006 platforms/bsdi/Makefile \
30007 platforms/bsdi/bacula-fd \
30008 platforms/bsdi/bacula-sd \
30009 platforms/bsdi/bacula-dir"
30010 largefile_support="yes"
30013 DISTVER=`uname -a |awk '{print $3}'`
30014 TAPEDRIVE="/dev/nrst0"
30016 WCFLAGS="-mwindows"
30017 WLDFLAGS="-mwindows"
30021 TAPEDRIVE="/dev/nst0"
30022 PSCMD="ps -e -o pid,command"
30024 PFILES="${PFILES} \
30025 platforms/darwin/Makefile"
30028 DISTVER=`cat /etc/debian_version`
30029 TAPEDRIVE="/dev/nrst0"
30030 PSCMD="ps -e -o pid,command"
30033 DISTVER=`uname -a |awk '{print $3}'`
30034 VER=`echo $DISTVER | cut -c 1`
30035 if test x$VER = x4 ; then
30036 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30037 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30041 TAPEDRIVE="/dev/nrsa0"
30042 PSCMD="ps -ax -o pid,command"
30043 PFILES="${PFILES} \
30044 platforms/freebsd/Makefile \
30045 platforms/freebsd/bacula-fd \
30046 platforms/freebsd/bacula-sd \
30047 platforms/freebsd/bacula-dir"
30048 largefile_support="yes"
30051 PSCMD="UNIX95=1; ps -e -o pid,comm"
30052 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30054 TAPEDRIVE="/dev/rmt/0hnb"
30055 PTHREAD_LIB="-lpthread"
30056 cat >>confdefs.h <<\_ACEOF
30057 #define _INCLUDE_LONGLONG 1
30063 TAPEDRIVE="/dev/rmt/0cbn"
30064 PSCMD="ps -e -o pid,comm"
30065 PFILES="${PFILES} \
30066 platforms/irix/Makefile \
30067 platforms/irix/bacula-fd \
30068 platforms/irix/bacula-sd \
30069 platforms/irix/bacula-dir"
30072 DISTVER=`uname -a |awk '{print $3}'`
30075 TAPEDRIVE="/dev/nrst0"
30076 PSCMD="ps -ax -o pid,command"
30077 PTHREAD_LIB="-pthread"
30078 CFLAGS="${CFLAGS} -pthread"
30081 DISTVER=`uname -a |awk '{print $3}'`
30084 TAPEDRIVE="/dev/nrst0"
30085 PSCMD="ps -ax -o pid,command"
30086 PTHREAD_LIB="-pthread"
30087 CFLAGS="${CFLAGS} -pthread"
30088 PFILES="${PFILES} \
30089 platforms/openbsd/Makefile \
30090 platforms/openbsd/bacula-fd \
30091 platforms/openbsd/bacula-sd \
30092 platforms/openbsd/bacula-dir"
30095 if test -f /etc/whitebox-release ; then
30096 f=/etc/whitebox-release
30098 f=/etc/redhat-release
30100 if test `cat $f | grep release |\
30101 cut -f 3 -d ' '`x = "Enterprise"x ; then
30102 DISTVER="Enterprise "`cat $f | grep release |\
30105 DISTVER=`cat /etc/redhat-release | grep release |\
30108 TAPEDRIVE="/dev/nst0"
30109 PSCMD="ps -e -o pid,command"
30110 PFILES="${PFILES} \
30111 platforms/redhat/Makefile \
30112 platforms/redhat/bacula-fd \
30113 platforms/redhat/bacula-sd \
30114 platforms/redhat/bacula-dir \
30115 platforms/redhat/bacula.spec \
30119 DISTVER=`cat /etc/mandrake-release | grep release |\
30121 TAPEDRIVE="/dev/nst0"
30122 PSCMD="ps -e -o pid,command"
30123 PFILES="${PFILES} \
30124 platforms/mandrake/Makefile \
30125 platforms/mandrake/bacula-fd \
30126 platforms/mandrake/bacula-sd \
30127 platforms/mandrake/bacula-dir \
30128 platforms/mandrake/bacula.spec \
30132 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30133 TAPEDRIVE="/dev/nst0"
30134 PSCMD="ps -e -o pid,command"
30135 PFILES="${PFILES} \
30136 platforms/gentoo/Makefile \
30137 platforms/gentoo/bacula-init \
30138 platforms/gentoo/bacula-fd \
30139 platforms/gentoo/bacula-sd \
30140 platforms/gentoo/bacula-dir"
30143 DISTVER=`cat /etc/slackware-version`
30144 TAPEDRIVE="/dev/nst0"
30145 PSCMD="ps -e -o pid,command"
30146 PFILES="${PFILES} \
30147 platforms/slackware/Makefile \
30148 platforms/slackware/rc.bacula-fd \
30149 platforms/slackware/rc.bacula-sd \
30150 platforms/slackware/rc.bacula-dir\
30151 platforms/slackware/functions.bacula"
30155 TAPEDRIVE="/dev/rmt/0cbn"
30156 PSCMD="ps -e -o pid,comm"
30157 PFILES="${PFILES} \
30158 platforms/solaris/Makefile \
30159 platforms/solaris/bacula-fd \
30160 platforms/solaris/bacula-sd \
30161 platforms/solaris/bacula-dir"
30162 if test x$DISTVER = x5.6 ; then
30163 cat >>confdefs.h <<\_ACEOF
30164 #define HAVE_OLD_SOCKOPT 1
30168 LIBS="$LIBS -lresolv"
30171 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30173 TAPEDRIVE="/dev/nst0"
30174 PSCMD="ps -e -o pid,command"
30175 PFILES="${PFILES} \
30176 platforms/suse/Makefile \
30177 platforms/suse/bacula-fd \
30178 platforms/suse/bacula-sd \
30179 platforms/suse/bacula-dir \
30180 platforms/suse/bacula \
30181 platforms/suse/bacula.spec"
30186 TAPEDRIVE="/dev/nst0"
30187 PSCMD="ps -e -o pid,command"
30188 PFILES="${PFILES} \
30189 platforms/suse/Makefile \
30190 platforms/suse/bacula-fd \
30191 platforms/suse/bacula-sd \
30192 platforms/suse/bacula-dir"
30196 TAPEDRIVE="/dev/nst0"
30199 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30205 LIBS="$PTHREAD_LIB $LIBS"
30207 cat >>confdefs.h <<_ACEOF
30211 cat >>confdefs.h <<_ACEOF
30222 MCOMMON=./autoconf/Make.common
30225 if test "x${subsysdir}" = "x${sbindir}" ; then
30228 echo "You have set both --sbindir and --with-subsys-dir"
30229 echo " equal to: ${subsysdir} "
30230 echo "This is not permitted. Please reconfigure."
30232 echo "Aborting configuration ..."
30238 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
30240 ac_config_commands="$ac_config_commands default"
30242 cat >confcache <<\_ACEOF
30243 # This file is a shell script that caches the results of configure
30244 # tests run on this system so they can be shared between configure
30245 # scripts and configure runs, see configure's option --config-cache.
30246 # It is not useful on other systems. If it contains results you don't
30247 # want to keep, you may remove or edit it.
30249 # config.status only pays attention to the cache file if you give it
30250 # the --recheck option to rerun configure.
30252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30254 # following values.
30258 # The following way of writing the cache mishandles newlines in values,
30259 # but we know of no workaround that is simple, portable, and efficient.
30260 # So, we kill variables containing newlines.
30261 # Ultrix sh set writes to stderr and can't be redirected directly,
30262 # and sets the high bit in the cache file unless we assign to the vars.
30264 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30265 eval ac_val=\$$ac_var
30269 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30270 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30273 _ | IFS | as_nl) ;; #(
30274 *) $as_unset $ac_var ;;
30280 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30281 *${as_nl}ac_space=\ *)
30282 # `set' does not quote correctly, so add quotes (double-quote
30283 # substitution turns \\\\ into \\, and sed turns \\ into \).
30286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30289 # `set' quotes correctly as required by POSIX, so do not add quotes.
30290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30301 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30303 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30304 if test -w "$cache_file"; then
30305 test "x$cache_file" != "x/dev/null" &&
30306 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30307 echo "$as_me: updating cache $cache_file" >&6;}
30308 cat confcache >$cache_file
30310 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30311 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30316 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30317 # Let make expand exec_prefix.
30318 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30320 DEFS=-DHAVE_CONFIG_H
30324 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30325 # 1. Remove the extension, and $U if already installed.
30326 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30327 ac_i=`echo "$ac_i" | sed "$ac_script"`
30328 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30329 # will be set to the directory where LIBOBJS objects are built.
30330 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30331 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30333 LIBOBJS=$ac_libobjs
30335 LTLIBOBJS=$ac_ltlibobjs
30339 : ${CONFIG_STATUS=./config.status}
30340 ac_clean_files_save=$ac_clean_files
30341 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30342 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30343 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30344 cat >$CONFIG_STATUS <<_ACEOF
30346 # Generated by $as_me.
30347 # Run this file to recreate the current configuration.
30348 # Compiler output produced by configure, useful for debugging
30349 # configure, is in config.log if it exists.
30352 ac_cs_recheck=false
30354 SHELL=\${CONFIG_SHELL-$SHELL}
30357 cat >>$CONFIG_STATUS <<\_ACEOF
30358 ## --------------------- ##
30359 ## M4sh Initialization. ##
30360 ## --------------------- ##
30362 # Be more Bourne compatible
30363 DUALCASE=1; export DUALCASE # for MKS sh
30364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30367 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30368 # is contrary to our usage. Disable this feature.
30369 alias -g '${1+"$@"}'='"$@"'
30370 setopt NO_GLOB_SUBST
30372 case `(set -o) 2>/dev/null` in
30373 *posix*) set -o posix ;;
30382 # Avoid depending upon Character Ranges.
30383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30386 as_cr_digits='0123456789'
30387 as_cr_alnum=$as_cr_Letters$as_cr_digits
30389 # The user is always right.
30390 if test "${PATH_SEPARATOR+set}" != set; then
30391 echo "#! /bin/sh" >conf$$.sh
30392 echo "exit 0" >>conf$$.sh
30394 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30402 # Support unset when possible.
30403 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30411 # We need space, tab and new line, in precisely that order. Quoting is
30412 # there to prevent editors from complaining about space-tab.
30413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30414 # splitting by setting IFS to empty value.)
30419 # Find who we are. Look in the path if we contain no directory separator.
30421 *[\\/]* ) as_myself=$0 ;;
30422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30423 for as_dir in $PATH
30426 test -z "$as_dir" && as_dir=.
30427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30433 # We did not find ourselves, most probably we were run as `sh COMMAND'
30434 # in which case we are not to be found in the path.
30435 if test "x$as_myself" = x; then
30438 if test ! -f "$as_myself"; then
30439 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30440 { (exit 1); exit 1; }
30443 # Work around bugs in pre-3.0 UWIN ksh.
30444 for as_var in ENV MAIL MAILPATH
30445 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30453 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30454 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30455 LC_TELEPHONE LC_TIME
30457 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30458 eval $as_var=C; export $as_var
30460 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30464 # Required to use basename.
30465 if expr a : '\(a\)' >/dev/null 2>&1 &&
30466 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30472 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30473 as_basename=basename
30479 # Name of the executable.
30480 as_me=`$as_basename -- "$0" ||
30481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30482 X"$0" : 'X\(//\)$' \| \
30483 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30485 sed '/^.*\/\([^/][^/]*\)\/*$/{
30504 as_lineno_1=$LINENO
30505 as_lineno_2=$LINENO
30506 test "x$as_lineno_1" != "x$as_lineno_2" &&
30507 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30509 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30510 # uniformly replaced by the line number. The first 'sed' inserts a
30511 # line-number line after each line using $LINENO; the second 'sed'
30512 # does the real work. The second script uses 'N' to pair each
30513 # line-number line with the line containing $LINENO, and appends
30514 # trailing '-' during substitution so that $LINENO is not a special
30515 # case at line end.
30516 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30517 # scripts with optimization help from Paolo Bonzini. Blame Lee
30518 # E. McMahon (1931-1989) for sed's syntax. :-)
30530 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30533 ' >$as_me.lineno &&
30534 chmod +x "$as_me.lineno" ||
30535 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30536 { (exit 1); exit 1; }; }
30538 # Don't try to exec as it changes $[0], causing all sort of problems
30539 # (the dirname of $[0] is not the place where we might find the
30540 # original and so on. Autoconf is especially sensitive to this).
30541 . "./$as_me.lineno"
30542 # Exit status is that of the last command.
30547 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30553 ECHO_C= ECHO_N= ECHO_T=
30554 case `echo -n x` in
30556 case `echo 'x\c'` in
30557 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30564 if expr a : '\(a\)' >/dev/null 2>&1 &&
30565 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30571 rm -f conf$$ conf$$.exe conf$$.file
30572 if test -d conf$$.dir; then
30573 rm -f conf$$.dir/conf$$.file
30579 if ln -s conf$$.file conf$$ 2>/dev/null; then
30581 # ... but there are two gotchas:
30582 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30583 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30584 # In both cases, we have to default to `cp -p'.
30585 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30587 elif ln conf$$.file conf$$ 2>/dev/null; then
30592 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30593 rmdir conf$$.dir 2>/dev/null
30595 if mkdir -p . 2>/dev/null; then
30598 test -d ./-p && rmdir ./-p
30602 if test -x / >/dev/null 2>&1; then
30603 as_test_x='test -x'
30605 if ls -dL / >/dev/null 2>&1; then
30612 if test -d "$1"; then
30618 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30619 ???[sx]*):;;*)false;;esac;fi
30623 as_executable_p=$as_test_x
30625 # Sed expression to map a string onto a valid CPP name.
30626 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30628 # Sed expression to map a string onto a valid variable name.
30629 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30634 # Save the log message, to keep $[0] and so on meaningful, and to
30635 # report actual input values of CONFIG_FILES etc. instead of their
30636 # values after options handling.
30638 This file was extended by $as_me, which was
30639 generated by GNU Autoconf 2.61. Invocation command line was
30641 CONFIG_FILES = $CONFIG_FILES
30642 CONFIG_HEADERS = $CONFIG_HEADERS
30643 CONFIG_LINKS = $CONFIG_LINKS
30644 CONFIG_COMMANDS = $CONFIG_COMMANDS
30647 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30652 cat >>$CONFIG_STATUS <<_ACEOF
30653 # Files that config.status was made for.
30654 config_files="$ac_config_files"
30655 config_headers="$ac_config_headers"
30656 config_commands="$ac_config_commands"
30660 cat >>$CONFIG_STATUS <<\_ACEOF
30662 \`$as_me' instantiates files from templates according to the
30663 current configuration.
30665 Usage: $0 [OPTIONS] [FILE]...
30667 -h, --help print this help, then exit
30668 -V, --version print version number and configuration settings, then exit
30669 -q, --quiet do not print progress messages
30670 -d, --debug don't remove temporary files
30671 --recheck update $as_me by reconfiguring in the same conditions
30672 --file=FILE[:TEMPLATE]
30673 instantiate the configuration file FILE
30674 --header=FILE[:TEMPLATE]
30675 instantiate the configuration header FILE
30677 Configuration files:
30680 Configuration headers:
30683 Configuration commands:
30686 Report bugs to <bug-autoconf@gnu.org>."
30689 cat >>$CONFIG_STATUS <<_ACEOF
30692 configured by $0, generated by GNU Autoconf 2.61,
30693 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30695 Copyright (C) 2006 Free Software Foundation, Inc.
30696 This config.status script is free software; the Free Software Foundation
30697 gives unlimited permission to copy, distribute and modify it."
30704 cat >>$CONFIG_STATUS <<\_ACEOF
30705 # If no file are specified by the user, then we need to provide default
30706 # value. By we need to know if files were specified by the user.
30712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30713 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30724 # Handling of the options.
30725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30727 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30728 echo "$ac_cs_version"; exit ;;
30729 --debug | --debu | --deb | --de | --d | -d )
30731 --file | --fil | --fi | --f )
30733 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30734 ac_need_defaults=false;;
30735 --header | --heade | --head | --hea )
30737 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30738 ac_need_defaults=false;;
30740 # Conflict between --help and --header
30741 { echo "$as_me: error: ambiguous option: $1
30742 Try \`$0 --help' for more information." >&2
30743 { (exit 1); exit 1; }; };;
30744 --help | --hel | -h )
30745 echo "$ac_cs_usage"; exit ;;
30746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30750 # This is an error.
30751 -*) { echo "$as_me: error: unrecognized option: $1
30752 Try \`$0 --help' for more information." >&2
30753 { (exit 1); exit 1; }; } ;;
30755 *) ac_config_targets="$ac_config_targets $1"
30756 ac_need_defaults=false ;;
30762 ac_configure_extra_args=
30764 if $ac_cs_silent; then
30766 ac_configure_extra_args="$ac_configure_extra_args --silent"
30770 cat >>$CONFIG_STATUS <<_ACEOF
30771 if \$ac_cs_recheck; then
30772 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30773 CONFIG_SHELL=$SHELL
30774 export CONFIG_SHELL
30775 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30779 cat >>$CONFIG_STATUS <<\_ACEOF
30783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30784 ## Running $as_me. ##
30790 cat >>$CONFIG_STATUS <<_ACEOF
30794 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30795 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30797 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30798 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30799 LINGUAS="${LINGUAS-%UNSET%}"
30804 cat >>$CONFIG_STATUS <<\_ACEOF
30806 # Handling of arguments.
30807 for ac_config_target in $ac_config_targets
30809 case $ac_config_target in
30810 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30811 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30812 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30813 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30814 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30815 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30816 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30817 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30818 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30819 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30820 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30821 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30822 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30823 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30824 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30825 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30826 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30827 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30828 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30829 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30830 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30831 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30832 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30833 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30834 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30835 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30836 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30837 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30838 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30839 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30840 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30841 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30842 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30843 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30844 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30845 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30846 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30847 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30848 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30849 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30850 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30851 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30852 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30853 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30854 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30855 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30856 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30857 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30858 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30859 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30860 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30861 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30862 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30863 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30864 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30865 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30866 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30867 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30868 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30869 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30870 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30871 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30872 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30873 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30874 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30875 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30876 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30877 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30878 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30879 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30880 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30881 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30882 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30883 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30884 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30885 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30886 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30887 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30888 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30889 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30890 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30891 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30892 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30893 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30894 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30895 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30896 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30897 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30898 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30899 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30900 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30901 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30902 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30903 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30904 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30905 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30906 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30907 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30908 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30909 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30910 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30911 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30912 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30913 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30914 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30915 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30917 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30918 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30919 { (exit 1); exit 1; }; };;
30924 # If the user did not use the arguments to specify the items to instantiate,
30925 # then the envvar interface is used. Set only those that are not.
30926 # We use the long form for the default assignment because of an extremely
30927 # bizarre bug on SunOS 4.1.3.
30928 if $ac_need_defaults; then
30929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30931 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30934 # Have a temporary directory for convenience. Make it in the build tree
30935 # simply because there is no reason against having it here, and in addition,
30936 # creating and moving files from /tmp can sometimes cause problems.
30937 # Hook for its removal unless debugging.
30938 # Note that there is a small window in which the directory will not be cleaned:
30939 # after its creation but before its name has been assigned to `$tmp'.
30943 trap 'exit_status=$?
30944 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30946 trap '{ (exit 1); exit 1; }' 1 2 13 15
30948 # Create a (secure) tmp directory for tmp files.
30951 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30952 test -n "$tmp" && test -d "$tmp"
30955 tmp=./conf$$-$RANDOM
30956 (umask 077 && mkdir "$tmp")
30959 echo "$me: cannot create a temporary directory in ." >&2
30960 { (exit 1); exit 1; }
30964 # Set up the sed scripts for CONFIG_FILES section.
30967 # No need to generate the scripts if there are no CONFIG_FILES.
30968 # This happens for instance when ./config.status config.h
30969 if test -n "$CONFIG_FILES"; then
30973 # Create sed commands to just substitute file output variables.
30975 # Remaining file output variables are in a fragment that also has non-file
30981 for ac_last_try in false false false false false :; do
30982 cat >conf$$subs.sed <<_ACEOF
30983 SHELL!$SHELL$ac_delim
30984 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30985 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30986 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30987 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30988 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30989 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30990 exec_prefix!$exec_prefix$ac_delim
30991 prefix!$prefix$ac_delim
30992 program_transform_name!$program_transform_name$ac_delim
30993 bindir!$bindir$ac_delim
30994 sbindir!$sbindir$ac_delim
30995 libexecdir!$libexecdir$ac_delim
30996 datarootdir!$datarootdir$ac_delim
30997 datadir!$datadir$ac_delim
30998 sysconfdir!$sysconfdir$ac_delim
30999 sharedstatedir!$sharedstatedir$ac_delim
31000 localstatedir!$localstatedir$ac_delim
31001 includedir!$includedir$ac_delim
31002 oldincludedir!$oldincludedir$ac_delim
31003 docdir!$docdir$ac_delim
31004 infodir!$infodir$ac_delim
31005 htmldir!$htmldir$ac_delim
31006 dvidir!$dvidir$ac_delim
31007 pdfdir!$pdfdir$ac_delim
31008 psdir!$psdir$ac_delim
31009 libdir!$libdir$ac_delim
31010 localedir!$localedir$ac_delim
31011 mandir!$mandir$ac_delim
31012 DEFS!$DEFS$ac_delim
31013 ECHO_C!$ECHO_C$ac_delim
31014 ECHO_N!$ECHO_N$ac_delim
31015 ECHO_T!$ECHO_T$ac_delim
31016 LIBS!$LIBS$ac_delim
31017 build_alias!$build_alias$ac_delim
31018 host_alias!$host_alias$ac_delim
31019 target_alias!$target_alias$ac_delim
31020 BUILD_DIR!$BUILD_DIR$ac_delim
31021 TOP_DIR!$TOP_DIR$ac_delim
31022 TRUEPRG!$TRUEPRG$ac_delim
31023 FALSEPRG!$FALSEPRG$ac_delim
31024 VERSION!$VERSION$ac_delim
31025 DATE!$DATE$ac_delim
31026 LSMDATE!$LSMDATE$ac_delim
31028 CFLAGS!$CFLAGS$ac_delim
31029 LDFLAGS!$LDFLAGS$ac_delim
31030 CPPFLAGS!$CPPFLAGS$ac_delim
31031 ac_ct_CC!$ac_ct_CC$ac_delim
31032 EXEEXT!$EXEEXT$ac_delim
31033 OBJEXT!$OBJEXT$ac_delim
31035 CXXFLAGS!$CXXFLAGS$ac_delim
31036 ac_ct_CXX!$ac_ct_CXX$ac_delim
31038 GREP!$GREP$ac_delim
31039 EGREP!$EGREP$ac_delim
31040 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31041 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31042 INSTALL_DATA!$INSTALL_DATA$ac_delim
31043 RANLIB!$RANLIB$ac_delim
31048 ECHO!$ECHO$ac_delim
31052 OPENSSL!$OPENSSL$ac_delim
31055 MKISOFS!$MKISOFS$ac_delim
31056 PYTHON!$PYTHON$ac_delim
31057 GROWISOFS!$GROWISOFS$ac_delim
31058 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31059 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31060 PKGCONFIG!$PKGCONFIG$ac_delim
31061 QMAKE!$QMAKE$ac_delim
31062 QMAKEQT4!$QMAKEQT4$ac_delim
31063 WXCONFIG!$WXCONFIG$ac_delim
31064 WXFLAGS!$WXFLAGS$ac_delim
31065 CDRECORD!$CDRECORD$ac_delim
31066 PIDOF!$PIDOF$ac_delim
31068 ARFLAGS!$ARFLAGS$ac_delim
31069 MAKE_SHELL!$MAKE_SHELL$ac_delim
31070 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31071 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31072 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31073 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31074 build!$build$ac_delim
31075 build_cpu!$build_cpu$ac_delim
31076 build_vendor!$build_vendor$ac_delim
31079 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31081 elif $ac_last_try; then
31082 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31083 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31084 { (exit 1); exit 1; }; }
31086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31090 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31091 if test -n "$ac_eof"; then
31092 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31093 ac_eof=`expr $ac_eof + 1`
31096 cat >>$CONFIG_STATUS <<_ACEOF
31097 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31099 /^[ ]*@MCOMMON@[ ]*$/{
31105 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31106 s/^/s,@/; s/!/@,|#_!!_#|/
31109 s/'"$ac_delim"'$/,g/; t
31111 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31112 ' >>$CONFIG_STATUS <conf$$subs.sed
31113 rm -f conf$$subs.sed
31114 cat >>$CONFIG_STATUS <<_ACEOF
31120 for ac_last_try in false false false false false :; do
31121 cat >conf$$subs.sed <<_ACEOF
31122 build_os!$build_os$ac_delim
31123 host!$host$ac_delim
31124 host_cpu!$host_cpu$ac_delim
31125 host_vendor!$host_vendor$ac_delim
31126 host_os!$host_os$ac_delim
31127 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31128 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31129 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31130 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31131 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31132 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31133 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31134 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31135 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31136 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31137 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31138 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31139 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31140 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31141 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31142 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31143 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31144 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31145 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31146 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31147 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31148 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31149 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31150 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31151 SET_MAKE!$SET_MAKE$ac_delim
31152 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31153 USE_NLS!$USE_NLS$ac_delim
31154 MSGFMT!$MSGFMT$ac_delim
31155 GMSGFMT!$GMSGFMT$ac_delim
31156 XGETTEXT!$XGETTEXT$ac_delim
31157 MSGMERGE!$MSGMERGE$ac_delim
31158 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31159 LIBICONV!$LIBICONV$ac_delim
31160 LTLIBICONV!$LTLIBICONV$ac_delim
31161 INTLLIBS!$INTLLIBS$ac_delim
31162 LIBINTL!$LIBINTL$ac_delim
31163 LTLIBINTL!$LTLIBINTL$ac_delim
31164 POSUB!$POSUB$ac_delim
31165 GLIBC2!$GLIBC2$ac_delim
31166 ALLOCA!$ALLOCA$ac_delim
31167 GLIBC21!$GLIBC21$ac_delim
31168 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31169 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31170 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31171 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31172 INTLBISON!$INTLBISON$ac_delim
31173 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31174 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31175 CATOBJEXT!$CATOBJEXT$ac_delim
31176 DATADIRNAME!$DATADIRNAME$ac_delim
31177 INSTOBJEXT!$INSTOBJEXT$ac_delim
31178 GENCAT!$GENCAT$ac_delim
31179 INTLOBJS!$INTLOBJS$ac_delim
31180 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31181 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31182 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31183 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31184 GNOME_LIBS!$GNOME_LIBS$ac_delim
31185 GNOME_DIR!$GNOME_DIR$ac_delim
31186 BAT_DIR!$BAT_DIR$ac_delim
31187 QWT_INC!$QWT_INC$ac_delim
31188 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31189 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31190 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31191 WX_DIR!$WX_DIR$ac_delim
31192 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31193 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31194 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31195 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31196 STATIC_FD!$STATIC_FD$ac_delim
31197 STATIC_SD!$STATIC_SD$ac_delim
31198 STATIC_DIR!$STATIC_DIR$ac_delim
31199 STATIC_CONS!$STATIC_CONS$ac_delim
31200 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31201 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31202 ALL_DIRS!$ALL_DIRS$ac_delim
31203 DIRD_DIR!$DIRD_DIR$ac_delim
31204 DIR_TOOLS!$DIR_TOOLS$ac_delim
31205 STORED_DIR!$STORED_DIR$ac_delim
31206 CONS_INC!$CONS_INC$ac_delim
31207 CONS_OBJ!$CONS_OBJ$ac_delim
31208 CONS_SRC!$CONS_SRC$ac_delim
31209 CONS_LIBS!$CONS_LIBS$ac_delim
31210 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31211 READLINE_SRC!$READLINE_SRC$ac_delim
31212 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31213 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31214 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31215 OPENSSL_INC!$OPENSSL_INC$ac_delim
31216 working_dir!$working_dir$ac_delim
31217 archivedir!$archivedir$ac_delim
31218 scriptdir!$scriptdir$ac_delim
31221 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31223 elif $ac_last_try; then
31224 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31225 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31226 { (exit 1); exit 1; }; }
31228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31232 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31233 if test -n "$ac_eof"; then
31234 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31235 ac_eof=`expr $ac_eof + 1`
31238 cat >>$CONFIG_STATUS <<_ACEOF
31239 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31243 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31244 s/^/s,@/; s/!/@,|#_!!_#|/
31247 s/'"$ac_delim"'$/,g/; t
31249 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31250 ' >>$CONFIG_STATUS <conf$$subs.sed
31251 rm -f conf$$subs.sed
31252 cat >>$CONFIG_STATUS <<_ACEOF
31258 for ac_last_try in false false false false false :; do
31259 cat >conf$$subs.sed <<_ACEOF
31260 dump_email!$dump_email$ac_delim
31261 job_email!$job_email$ac_delim
31262 smtp_host!$smtp_host$ac_delim
31263 piddir!$piddir$ac_delim
31264 subsysdir!$subsysdir$ac_delim
31265 baseport!$baseport$ac_delim
31266 dir_port!$dir_port$ac_delim
31267 fd_port!$fd_port$ac_delim
31268 sd_port!$sd_port$ac_delim
31269 dir_password!$dir_password$ac_delim
31270 fd_password!$fd_password$ac_delim
31271 sd_password!$sd_password$ac_delim
31272 mon_dir_password!$mon_dir_password$ac_delim
31273 mon_fd_password!$mon_fd_password$ac_delim
31274 mon_sd_password!$mon_sd_password$ac_delim
31275 db_name!$db_name$ac_delim
31276 db_user!$db_user$ac_delim
31277 dir_user!$dir_user$ac_delim
31278 dir_group!$dir_group$ac_delim
31279 sd_user!$sd_user$ac_delim
31280 sd_group!$sd_group$ac_delim
31281 fd_user!$fd_user$ac_delim
31282 fd_group!$fd_group$ac_delim
31283 SBINPERM!$SBINPERM$ac_delim
31284 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31285 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31286 SQL_BINDIR!$SQL_BINDIR$ac_delim
31287 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31288 cats!$cats$ac_delim
31289 DB_TYPE!$DB_TYPE$ac_delim
31290 GETCONF!$GETCONF$ac_delim
31291 XMKMF!$XMKMF$ac_delim
31292 X_CFLAGS!$X_CFLAGS$ac_delim
31293 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31294 X_LIBS!$X_LIBS$ac_delim
31295 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31296 LIBOBJS!$LIBOBJS$ac_delim
31297 FDLIBS!$FDLIBS$ac_delim
31298 DEBUG!$DEBUG$ac_delim
31299 DINCLUDE!$DINCLUDE$ac_delim
31300 DLIB!$DLIB$ac_delim
31301 DB_LIBS!$DB_LIBS$ac_delim
31302 WCFLAGS!$WCFLAGS$ac_delim
31303 WLDFLAGS!$WLDFLAGS$ac_delim
31304 WRAPLIBS!$WRAPLIBS$ac_delim
31305 OBJLIST!$OBJLIST$ac_delim
31306 hostname!$hostname$ac_delim
31307 TAPEDRIVE!$TAPEDRIVE$ac_delim
31308 PSCMD!$PSCMD$ac_delim
31309 WIN32!$WIN32$ac_delim
31310 MACOSX!$MACOSX$ac_delim
31311 DISTNAME!$DISTNAME$ac_delim
31312 DISTVER!$DISTVER$ac_delim
31313 LTLIBOBJS!$LTLIBOBJS$ac_delim
31316 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
31318 elif $ac_last_try; then
31319 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31320 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31321 { (exit 1); exit 1; }; }
31323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31327 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31328 if test -n "$ac_eof"; then
31329 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31330 ac_eof=`expr $ac_eof + 1`
31333 cat >>$CONFIG_STATUS <<_ACEOF
31334 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31338 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31339 s/^/s,@/; s/!/@,|#_!!_#|/
31342 s/'"$ac_delim"'$/,g/; t
31344 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31345 ' >>$CONFIG_STATUS <conf$$subs.sed
31346 rm -f conf$$subs.sed
31347 cat >>$CONFIG_STATUS <<_ACEOF
31354 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31355 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31356 # trailing colons and then remove the whole line if VPATH becomes empty
31357 # (actually we leave an empty line to preserve line numbers).
31358 if test "x$srcdir" = x.; then
31359 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31360 s/:*\$(srcdir):*/:/
31361 s/:*\${srcdir}:*/:/
31363 s/^\([^=]*=[ ]*\):*/\1/
31369 cat >>$CONFIG_STATUS <<\_ACEOF
31370 fi # test -n "$CONFIG_FILES"
31373 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31376 :[FHLC]) ac_mode=$ac_tag; continue;;
31378 case $ac_mode$ac_tag in
31380 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31381 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31382 { (exit 1); exit 1; }; };;
31383 :[FH]-) ac_tag=-:-;;
31384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31401 -) ac_f="$tmp/stdin";;
31402 *) # Look for the file first in the build tree, then in the source tree
31403 # (if the path is not absolute). The absolute path cannot be DOS-style,
31404 # because $ac_f cannot contain `:'.
31408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31410 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31411 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31412 { (exit 1); exit 1; }; };;
31414 ac_file_inputs="$ac_file_inputs $ac_f"
31417 # Let's still pretend it is `configure' which instantiates (i.e., don't
31418 # use $as_me), people would be surprised to read:
31419 # /* config.h. Generated by config.status. */
31420 configure_input="Generated from "`IFS=:
31421 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31422 if test x"$ac_file" != x-; then
31423 configure_input="$ac_file. $configure_input"
31424 { echo "$as_me:$LINENO: creating $ac_file" >&5
31425 echo "$as_me: creating $ac_file" >&6;}
31429 *:-:* | *:-) cat >"$tmp/stdin";;
31434 ac_dir=`$as_dirname -- "$ac_file" ||
31435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31436 X"$ac_file" : 'X\(//\)[^/]' \| \
31437 X"$ac_file" : 'X\(//\)$' \| \
31438 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31444 /^X\(\/\/\)[^/].*/{
31459 -*) as_dir=./$as_dir;;
31461 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31465 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31466 *) as_qdir=$as_dir;;
31468 as_dirs="'$as_qdir' $as_dirs"
31469 as_dir=`$as_dirname -- "$as_dir" ||
31470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31471 X"$as_dir" : 'X\(//\)[^/]' \| \
31472 X"$as_dir" : 'X\(//\)$' \| \
31473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31479 /^X\(\/\/\)[^/].*/{
31492 test -d "$as_dir" && break
31494 test -z "$as_dirs" || eval "mkdir $as_dirs"
31495 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31496 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31497 { (exit 1); exit 1; }; }; }
31501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31504 # A ".." for each directory in $ac_dir_suffix.
31505 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31506 case $ac_top_builddir_sub in
31507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31511 ac_abs_top_builddir=$ac_pwd
31512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31513 # for backward compatibility:
31514 ac_top_builddir=$ac_top_build_prefix
31517 .) # We are building in place.
31519 ac_top_srcdir=$ac_top_builddir_sub
31520 ac_abs_top_srcdir=$ac_pwd ;;
31521 [\\/]* | ?:[\\/]* ) # Absolute name.
31522 ac_srcdir=$srcdir$ac_dir_suffix;
31523 ac_top_srcdir=$srcdir
31524 ac_abs_top_srcdir=$srcdir ;;
31525 *) # Relative name.
31526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31527 ac_top_srcdir=$ac_top_build_prefix$srcdir
31528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31545 cat >>$CONFIG_STATUS <<\_ACEOF
31546 # If the template does not know about datarootdir, expand it.
31547 # FIXME: This hack should be removed a few years after 2.60.
31548 ac_datarootdir_hack=; ac_datarootdir_seen=
31550 case `sed -n '/datarootdir/ {
31559 ' $ac_file_inputs` in
31560 *datarootdir*) ac_datarootdir_seen=yes;;
31561 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31562 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31563 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31565 cat >>$CONFIG_STATUS <<_ACEOF
31566 ac_datarootdir_hack='
31567 s&@datadir@&$datadir&g
31568 s&@docdir@&$docdir&g
31569 s&@infodir@&$infodir&g
31570 s&@localedir@&$localedir&g
31571 s&@mandir@&$mandir&g
31572 s&\\\${datarootdir}&$datarootdir&g' ;;
31576 # Neutralize VPATH when `$srcdir' = `.'.
31577 # Shell code in configure.ac might set extrasub.
31578 # FIXME: do we really want to maintain this feature?
31579 cat >>$CONFIG_STATUS <<_ACEOF
31583 cat >>$CONFIG_STATUS <<\_ACEOF
31585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31586 s&@configure_input@&$configure_input&;t t
31587 s&@top_builddir@&$ac_top_builddir_sub&;t t
31588 s&@srcdir@&$ac_srcdir&;t t
31589 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31590 s&@top_srcdir@&$ac_top_srcdir&;t t
31591 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31592 s&@builddir@&$ac_builddir&;t t
31593 s&@abs_builddir@&$ac_abs_builddir&;t t
31594 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31595 s&@INSTALL@&$ac_INSTALL&;t t
31596 $ac_datarootdir_hack
31597 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31599 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31600 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31601 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31602 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31603 which seems to be undefined. Please make sure it is defined." >&5
31604 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31605 which seems to be undefined. Please make sure it is defined." >&2;}
31609 -) cat "$tmp/out"; rm -f "$tmp/out";;
31610 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31619 # Transform confdefs.h into a sed script `conftest.defines', that
31620 # substitutes the proper values into config.h.in to produce config.h.
31621 rm -f conftest.defines conftest.tail
31622 # First, append a space to every undef/define line, to ease matching.
31623 echo 's/$/ /' >conftest.defines
31624 # Then, protect against being on the right side of a sed subst, or in
31625 # an unquoted here document, in config.status. If some macros were
31626 # called several times there might be several #defines for the same
31627 # symbol, which is useless. But do not sort them, since the last
31628 # AC_DEFINE must be honored.
31629 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31630 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31631 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31632 # PARAMS is the parameter list in the macro definition--in most cases, it's
31633 # just an empty string.
31634 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31635 ac_dB='\\)[ (].*,\\1define\\2'
31643 s/^[ ]*#[ ]*define[ ][ ]*//
31648 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31649 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31650 ' >>conftest.defines
31652 # Remove the space that was appended to ease matching.
31653 # Then replace #undef with comments. This is necessary, for
31654 # example, in the case of _POSIX_SOURCE, which is predefined and required
31655 # on some systems where configure will not decide to define it.
31656 # (The regexp can be short, since the line contains either #define or #undef.)
31658 s,^[ #]*u.*,/* & */,' >>conftest.defines
31660 # Break up conftest.defines:
31661 ac_max_sed_lines=50
31663 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31664 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31665 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31667 ac_in='$ac_file_inputs'
31668 ac_out='"$tmp/out1"'
31669 ac_nxt='"$tmp/out2"'
31673 # Write a here document:
31674 cat >>$CONFIG_STATUS <<_ACEOF
31675 # First, check the format of the line:
31676 cat >"\$tmp/defines.sed" <<\\CEOF
31677 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31678 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31682 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31684 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31685 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31686 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31687 grep . conftest.tail >/dev/null || break
31688 rm -f conftest.defines
31689 mv conftest.tail conftest.defines
31691 rm -f conftest.defines conftest.tail
31693 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31694 cat >>$CONFIG_STATUS <<\_ACEOF
31695 if test x"$ac_file" != x-; then
31696 echo "/* $configure_input */" >"$tmp/config.h"
31697 cat "$ac_result" >>"$tmp/config.h"
31698 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31699 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31700 echo "$as_me: $ac_file is unchanged" >&6;}
31703 mv "$tmp/config.h" $ac_file
31706 echo "/* $configure_input */"
31712 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31713 echo "$as_me: executing $ac_file commands" >&6;}
31718 case $ac_file$ac_mode in
31720 for ac_file in $CONFIG_FILES; do
31721 # Support "outfile[:infile[:infile...]]"
31723 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31725 # PO directories have a Makefile.in generated from Makefile.in.in.
31726 case "$ac_file" in */Makefile.in)
31727 # Adjust a relative srcdir.
31728 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31729 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31730 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31731 # In autoconf-2.13 it is called $ac_given_srcdir.
31732 # In autoconf-2.50 it is called $srcdir.
31733 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31734 case "$ac_given_srcdir" in
31735 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31736 /*) top_srcdir="$ac_given_srcdir" ;;
31737 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31739 # Treat a directory as a PO directory if and only if it has a
31740 # POTFILES.in file. This allows packages to have multiple PO
31741 # directories under different names or in different locations.
31742 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31743 rm -f "$ac_dir/POTFILES"
31744 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31745 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31746 POMAKEFILEDEPS="POTFILES.in"
31747 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31748 # on $ac_dir but don't depend on user-specified configuration
31750 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31751 # The LINGUAS file contains the set of available languages.
31752 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31753 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31755 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31756 # Hide the ALL_LINGUAS assigment from automake.
31757 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31758 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31760 # The set of available languages was given in configure.in.
31761 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31764 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31765 # Compute UPDATEPOFILES
31766 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31767 # Compute DUMMYPOFILES
31768 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31770 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31771 case "$ac_given_srcdir" in
31773 *) srcdirpre='$(srcdir)/' ;;
31779 for lang in $ALL_LINGUAS; do
31780 POFILES="$POFILES $srcdirpre$lang.po"
31781 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31782 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31783 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31785 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31786 # environment variable.
31788 if test -n "$ALL_LINGUAS"; then
31789 for presentlang in $ALL_LINGUAS; do
31791 if test "%UNSET%" != "$LINGUAS"; then
31792 desiredlanguages="$LINGUAS"
31794 desiredlanguages="$ALL_LINGUAS"
31796 for desiredlang in $desiredlanguages; do
31797 # Use the presentlang catalog if desiredlang is
31798 # a. equal to presentlang, or
31799 # b. a variant of presentlang (because in this case,
31800 # presentlang can be used as a fallback for messages
31801 # which are not translated in the desiredlang catalog).
31802 case "$desiredlang" in
31803 "$presentlang"*) useit=yes;;
31806 if test $useit = yes; then
31807 INST_LINGUAS="$INST_LINGUAS $presentlang"
31812 if test -n "$INST_LINGUAS"; then
31813 for lang in $INST_LINGUAS; do
31814 CATALOGS="$CATALOGS $lang.gmo"
31817 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31818 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"
31819 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31820 if test -f "$f"; then
31822 *.orig | *.bak | *~) ;;
31823 *) cat "$f" >> "$ac_dir/Makefile" ;;
31838 { (exit 0); exit 0; }
31840 chmod +x $CONFIG_STATUS
31841 ac_clean_files=$ac_clean_files_save
31844 # configure is writing to config.log, and then calls config.status.
31845 # config.status does its own redirection, appending to config.log.
31846 # Unfortunately, on DOS this fails, as config.log is still kept open
31847 # by configure, so config.status won't be able to write to it; its
31848 # output is simply discarded. So we exec the FD to /dev/null,
31849 # effectively closing config.log, so it can be properly (re)opened and
31850 # appended to by config.status. When coming back to configure, we
31851 # need to make the FD available again.
31852 if test "$no_create" != yes; then
31854 ac_config_status_args=
31855 test "$silent" = yes &&
31856 ac_config_status_args="$ac_config_status_args --quiet"
31858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31861 # would make configure fail if this is the last instruction.
31862 $ac_cs_success || { (exit 1); exit 1; }
31866 if test "${support_bat}" = "yes" ; then
31867 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31868 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31874 if test "x$QMAKEQT4" != "xnone"; then
31881 chmod 755 install_conf_file build-depkgs-qt-console
31882 echo "Creating bat Makefile"
31887 echo "Doing make of dependencies"
31888 ${MAKE:-make} depend
31891 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31892 chmod 755 dvd-handler dvd-simulator
31893 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31898 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31899 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31901 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31902 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31904 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31905 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31907 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31908 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31910 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31911 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31913 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31914 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31916 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31917 chmod 755 $c/sqlite
31920 chmod 755 src/win32/build-depkgs-mingw32
31924 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31925 largefile_support="yes"
31929 # A whole lot of hand springs to get the compiler version.
31930 # This is because gcc changed the output in version 3.0
31932 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31933 if test "x${CCVERSION}" = "x" ; then
31934 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31936 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31937 if test x"${CXXVERSION}" = x ; then
31938 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31941 if test "x${subsysdir}" = "x${sbindir}" ; then
31944 echo "You have set --sbindir and --with-subsys-dir"
31945 echo " both equal to: ${subsysdir} "
31946 echo " This is not permitted. Please reconfigure."
31948 echo "Aborting configuration ..."
31954 if test "x${db_type}" = "xInternal" ; then
31957 echo "You have not specified either --enable-client-only or one of the"
31958 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
31959 echo " This is not permitted. Please reconfigure."
31961 echo "Aborting the configuration ..."
31968 Configuration on `date`:
31970 Host: $host -- ${DISTNAME} ${DISTVER}
31971 Bacula version: ${VERSION} (${DATE})
31972 Source code location: ${srcdir}
31973 Install binaries: ${sbindir}
31974 Install config files: ${sysconfdir}
31975 Scripts directory: ${scriptdir}
31976 Archive directory: ${archivedir}
31977 Working directory: ${working_dir}
31978 PID directory: ${piddir}
31979 Subsys directory: ${subsysdir}
31980 Man directory: ${mandir}
31981 Data directory: ${datadir}
31982 C Compiler: ${CC} ${CCVERSION}
31983 C++ Compiler: ${CXX} ${CXXVERSION}
31984 Compiler flags: ${WCFLAGS} ${CFLAGS}
31985 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31987 Statically Linked Tools: ${support_static_tools}
31988 Statically Linked FD: ${support_static_fd}
31989 Statically Linked SD: ${support_static_sd}
31990 Statically Linked DIR: ${support_static_dir}
31991 Statically Linked CONS: ${support_static_cons}
31992 Database type: ${db_type}
31993 Database lib: ${DB_LIBS}
31994 Database name: ${db_name}
31995 Database user: ${db_user}
31997 Job Output Email: ${job_email}
31998 Traceback Email: ${dump_email}
31999 SMTP Host Address: ${smtp_host}
32001 Director Port: ${dir_port}
32002 File daemon Port: ${fd_port}
32003 Storage daemon Port: ${sd_port}
32005 Director User: ${dir_user}
32006 Director Group: ${dir_group}
32007 Storage Daemon User: ${sd_user}
32008 Storage DaemonGroup: ${sd_group}
32009 File Daemon User: ${fd_user}
32010 File Daemon Group: ${fd_group}
32012 SQL binaries Directory ${SQL_BINDIR}
32014 Large file support: $largefile_support
32015 Bacula conio support: ${got_conio} ${CONS_LIBS}
32016 readline support: ${got_readline} ${PRTREADLINE_SRC}
32017 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32018 TLS support: ${support_tls}
32019 Encryption support: ${support_crypto}
32020 ZLIB support: ${have_zlib}
32021 enable-smartalloc: ${support_smartalloc}
32022 bat support: ${support_bat} ${QWT_LDFLAGS}
32023 enable-gnome: ${support_gnome} ${gnome_version}
32024 enable-bwx-console: ${support_wx_console} ${wx_version}
32025 enable-tray-monitor: ${support_tray_monitor}
32026 client-only: ${build_client_only}
32027 build-dird: ${build_dird}
32028 build-stored: ${build_stored}
32029 ACL support: ${have_acl}
32030 Python support: ${support_python} ${PYTHON_LIBS}
32031 Batch insert enabled: ${support_batch_insert}