2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
726 HAVE_FREEBSD_OS_FALSE
730 HAVE_OPENBSD_OS_FALSE
761 BUILD_INCLUDED_LIBINTL
768 INTL_LIBTOOL_SUFFIX_PREFIX
782 TRAY_MONITOR_CPPFLAGS
865 ac_subst_files='MCOMMON'
866 ac_precious_vars='build_alias
883 # Initialize some variables set by options.
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
895 program_transform_name=s,x,x,
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
969 cache_file=config.cache ;;
971 -datadir | --datadir | --datadi | --datad)
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
983 -disable-* | --disable-*)
984 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
987 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988 { (exit 1); exit 1; }; }
989 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
990 eval enable_$ac_feature=no ;;
992 -docdir | --docdir | --docdi | --doc | --do)
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1002 -enable-* | --enable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1173 -site=* | --site=* | --sit=*)
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1200 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 { echo "$as_me: error: invalid package name: $ac_package" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1206 eval with_$ac_package=\$ac_optarg ;;
1208 -without-* | --without-*)
1209 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid package name: $ac_package" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215 eval with_$ac_package=no ;;
1218 # Obsolete; use --with-x.
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1235 -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237 { (exit 1); exit 1; }; }
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245 { (exit 1); exit 1; }; }
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1250 # FIXME: should be removed in autoconf 3.0.
1251 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 { echo "$as_me: error: missing argument to $ac_option" >&2
1263 { (exit 1); exit 1; }; }
1266 # Be sure to have absolute directory names.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1272 eval ac_val=\$$ac_var
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278 { (exit 1); exit 1; }; }
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 { echo "$as_me: error: Working directory cannot be determined" >&2
1309 { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 { echo "$as_me: error: pwd does not report name of working directory" >&2
1312 { (exit 1); exit 1; }; }
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$0" : 'X\(//\)[^/]' \| \
1322 X"$0" : 'X\(//\)$' \| \
1323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1347 ac_srcdir_defaulted=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352 { (exit 1); exit 1; }; }
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357 { (exit 1); exit 1; }; }
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1383 \`configure' configures this package to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1441 --x-includes=DIR X include files are in DIR
1442 --x-libraries=DIR X library files are in DIR
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 if test -n "$ac_init_help"; then
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --disable-nls do not use Native Language Support
1458 --disable-rpath do not hardcode runtime library paths
1459 --enable-gnome enable build of bgnome-console GUI disabled
1460 --enable-bat enable build of bat Qt4 GUI disabled
1461 --enable-bwx-console enable build of wxWidgets console disabled
1462 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1463 --enable-smartalloc enable smartalloc debugging support disabled
1464 --enable-faketape enable faketape debugging support disabled
1465 --enable-static-tools enable static tape tools disabled
1466 --enable-static-fd enable static File daemon disabled
1467 --enable-static-sd enable static Storage daemon disabled
1468 --enable-static-dir enable static Director disabled
1469 --enable-static-cons enable static Console disabled
1470 --enable-client-only build client (File daemon) only disabled
1471 --enable-build-dird enable building of dird (Director) enabled
1472 --enable-build-stored enable building of stored (Storage daemon) enabled
1473 --disable-conio disable conio support enabled
1475 --enable-ipv6 enable ipv6 support enabled
1477 --disable-readline disable readline support disable
1479 --enable-batch-insert enable the DB batch insert code disabled
1480 --enable-batch-insert enable the DB batch insert code disabled
1481 --disable-largefile omit support for large files
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-gnu-ld assume the C compiler uses GNU ld default=no
1487 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1488 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1489 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1490 --without-libintl-prefix don't search for libintl in includedir and libdir
1491 --with-included-gettext use the GNU gettext library included here
1492 --with-qwt[=DIR] specify qwt library directory
1493 --with-readline[=DIR] specify readline library directory
1495 --with-python[=DIR] Include Python support. DIR is the Python base
1496 install directory, default is to search through
1497 a number of common places for the Python files.
1498 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1499 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1500 --with-working-dir=PATH specify path of Bacula working directory
1501 --with-archivedir=PATH specify path of SD archive directory
1502 --with-scriptdir=PATH specify path of Bacula scripts directory
1503 --with-dump-email=EMAIL dump email address
1504 --with-job-email=EMAIL job output email address
1505 --with-smtp-host=HOST SMTP mail host address
1506 --with-pid-dir=PATH specify location of Bacula pid files
1507 --with-subsys-dir=PATH specify location of Bacula subsys file
1508 --with-baseport=PORT specify base port address for daemons
1509 --with-dir-password=PASSWORD specify Director's password
1510 --with-fd-password=PASSWORD specify Client's password
1511 --with-sd-password=PASSWORD specify Storage daemon's password
1512 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1513 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1514 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1515 --with-db-name=DBNAME specify database name (default bacula)
1516 --with-db-user=UNAME specify database user (default bacula)
1517 --with-dir-user=USER specify user for Director daemon
1518 --with-dir-group=GROUP specify group for Director daemon
1519 --with-sd-user=USER specify user for Storage daemon
1520 --with-sd-group=GROUP specify group for Storage daemon
1521 --with-fd-user=USER specify user for File daemon
1522 --with-fd-group=GROUP specify group for File daemon
1523 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1524 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1525 base install directory, defaults to /usr/local/pgsql
1527 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1528 install directory, default is to search through
1529 a number of common places for the MySQL files.
1531 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1532 install directory, default is to search through
1533 a number of common places for the MySQL files.
1535 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1536 install directory, default is to search through
1537 a number of common places for the SQLite3 files.
1539 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1540 install directory, default is to search through
1541 a number of common places for the SQLite files.
1543 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1544 install directory, default is to search through
1545 a number of common places for the DBI files.
1547 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1548 the one DBI driver like Mysql, Postgresql, others.
1549 Default is to not configure any driver.
1550 --with-x use the X Window System
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CXX C++ compiler command
1561 CXXFLAGS C++ compiler flags
1563 WXCONFIG wx-config command. On some systems, you must set it to
1564 wx-config-2.6 to use wxWidgets 2.6.
1565 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1566 XMKMF Path to xmkmf, Makefile generator for X Window System
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1575 if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" || continue
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1632 generated by GNU Autoconf 2.61
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1641 cat >config.log <<_ACEOF
1642 This file contains any messages produced by compilers while
1643 running configure, to aid debugging if configure makes a mistake.
1645 It was created by $as_me, which was
1646 generated by GNU Autoconf 2.61. Invocation command line was
1658 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1659 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1660 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1661 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1662 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1665 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1667 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1668 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1669 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1670 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1671 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1672 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1673 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 echo "PATH: $as_dir"
1698 # Keep a trace of the command line.
1699 # Strip out --no-create and --no-recursion so they do not pile up.
1700 # Strip out --silent because we don't want to record it for future runs.
1701 # Also quote any args containing shell meta-characters.
1702 # Make two passes to allow for proper duplicate-argument suppression.
1706 ac_must_keep_next=false
1712 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1714 | -silent | --silent | --silen | --sile | --sil)
1717 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1723 if test $ac_must_keep_next = true; then
1724 ac_must_keep_next=false # Got value, back to normal.
1727 *=* | --config-cache | -C | -disable-* | --disable-* \
1728 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1729 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1730 | -with-* | --with-* | -without-* | --without-* | --x)
1731 case "$ac_configure_args0 " in
1732 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1735 -* ) ac_must_keep_next=true ;;
1738 ac_configure_args="$ac_configure_args '$ac_arg'"
1743 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1744 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746 # When interrupted or exit'd, cleanup temporary files, and complete
1747 # config.log. We remove comments because anyway the quotes in there
1748 # would cause problems or look ugly.
1749 # WARNING: Use '\'' to represent an apostrophe within the trap.
1750 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1751 trap 'exit_status=$?
1752 # Save into config.log some information that might help in debugging.
1757 ## ---------------- ##
1758 ## Cache variables. ##
1759 ## ---------------- ##
1762 # The following way of writing the cache mishandles newlines in values,
1764 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1765 eval ac_val=\$$ac_var
1769 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1770 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1773 _ | IFS | as_nl) ;; #(
1774 *) $as_unset $ac_var ;;
1779 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780 *${as_nl}ac_space=\ *)
1782 "s/'\''/'\''\\\\'\'''\''/g;
1783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1799 for ac_var in $ac_subst_vars
1801 eval ac_val=\$$ac_var
1803 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805 echo "$ac_var='\''$ac_val'\''"
1809 if test -n "$ac_subst_files"; then
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1816 for ac_var in $ac_subst_files
1818 eval ac_val=\$$ac_var
1820 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 echo "$ac_var='\''$ac_val'\''"
1827 if test -s confdefs.h; then
1837 test "$ac_signal" != 0 &&
1838 echo "$as_me: caught signal $ac_signal"
1839 echo "$as_me: exit $exit_status"
1841 rm -f core *.core core.conftest.* &&
1842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845 for ac_signal in 1 2 13 15; do
1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest* confdefs.h
1853 # Predefined preprocessor variables.
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer explicitly selected file to automatically selected ones.
1882 if test -n "$CONFIG_SITE"; then
1883 set x "$CONFIG_SITE"
1884 elif test "x$prefix" != xNONE; then
1885 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1887 set x "$ac_default_prefix/share/config.site" \
1888 "$ac_default_prefix/etc/config.site"
1893 if test -r "$ac_site_file"; then
1894 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 echo "$as_me: loading cache $cache_file" >&6;}
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1913 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 echo "$as_me: creating cache $cache_file" >&6;}
1918 # Check that the precious variables saved in the cache have kept the same
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1928 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1941 echo "$as_me: former value: $ac_old_val" >&2;}
1942 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1943 echo "$as_me: current value: $ac_new_val" >&2;}
1944 ac_cache_corrupted=:
1947 # Pass precious variables to config.status.
1948 if test "$ac_new_set" = set; then
1950 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 *) ac_arg=$ac_var=$ac_new_val ;;
1953 case " $ac_configure_args " in
1954 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1955 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1959 if $ac_cache_corrupted; then
1960 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964 { (exit 1); exit 1; }; }
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1998 if test -f "$ac_dir/install-sh"; then
2000 ac_install_sh="$ac_aux_dir/install-sh -c"
2002 elif test -f "$ac_dir/install.sh"; then
2004 ac_install_sh="$ac_aux_dir/install.sh -c"
2006 elif test -f "$ac_dir/shtool"; then
2008 ac_install_sh="$ac_aux_dir/shtool install -c"
2012 if test -z "$ac_aux_dir"; then
2013 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2015 { (exit 1); exit 1; }; }
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2054 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 TRUEPRG=$ac_cv_path_TRUEPRG
2066 if test -n "$TRUEPRG"; then
2067 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2068 echo "${ECHO_T}$TRUEPRG" >&6; }
2070 { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2075 test -n "$TRUEPRG" && break
2077 test -n "$TRUEPRG" || TRUEPRG=":"
2079 for ac_prog in false
2081 # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2085 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 FALSEPRG=$ac_cv_path_FALSEPRG
2112 if test -n "$FALSEPRG"; then
2113 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2114 echo "${ECHO_T}$FALSEPRG" >&6; }
2116 { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2121 test -n "$FALSEPRG" && break
2123 test -n "$FALSEPRG" || FALSEPRG=":"
2127 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2128 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2129 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2130 echo "configuring for bacula $VERSION ($DATE)"
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 if test -n "$CC"; then
2169 { echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6; }
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2178 if test -z "$ac_cv_prog_CC"; then
2180 # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$ac_ct_CC"; then
2188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_ac_ct_CC="gcc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6; }
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2216 if test "x$ac_ct_CC" = x; then
2219 case $cross_compiling:$ac_tool_warned in
2221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet. If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet. If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254 ac_cv_prog_CC="${ac_tool_prefix}cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2276 if test -z "$CC"; then
2277 # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296 ac_prog_rejected=yes
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy $ac_cv_prog_CC
2311 if test $# != 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2322 if test -n "$CC"; then
2323 { echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6; }
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl.exe
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 if test -n "$CC"; then
2365 { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2373 test -n "$CC" && break
2376 if test -z "$CC"; then
2378 for ac_prog in cl.exe
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test -n "$ac_ct_CC"; then
2388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_ac_ct_CC="$ac_prog"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2417 test -n "$ac_ct_CC" && break
2420 if test "x$ac_ct_CC" = x; then
2423 case $cross_compiling:$ac_tool_warned in
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details." >&2;}
2444 { (exit 1); exit 1; }; }
2446 # Provide some information about the compiler.
2447 echo "$as_me:$LINENO: checking for C compiler version" >&5
2448 ac_compiler=`set X $ac_compile; echo $2`
2449 { (ac_try="$ac_compiler --version >&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 --version >&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); }
2469 { (ac_try="$ac_compiler -V >&5"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compiler -V >&5") 2>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }
2480 cat >conftest.$ac_ext <<_ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2495 ac_clean_files_save=$ac_clean_files
2496 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2497 # Try to create an executable without -o first, disregard a.out.
2498 # It will help us diagnose broken compilers, and finding out an intuition
2500 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2501 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2502 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 # List of possible output files, starting from the most likely.
2505 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2506 # only as a last resort. b.out is created by i960 compilers.
2507 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2509 # The IRIX 6 linker writes into existing files which may not be
2510 # executable, retaining their permissions. Remove them first so a
2511 # subsequent execution test works.
2513 for ac_file in $ac_files
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2522 if { (ac_try="$ac_link_default"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link_default") 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2535 # so that the user can short-circuit this test for compilers unknown to
2537 for ac_file in $ac_files ''
2539 test -f "$ac_file" || continue
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2544 # We found the default executable, but exeext='' is most
2548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # We set ac_cv_exeext here because the later test for it is not
2553 # safe: cross compilers may not add the suffix if given an `-o'
2554 # argument, so we may need to know it at that point already.
2555 # Even if this section looks crufty: it has the advantage of
2562 test "$ac_cv_exeext" = no && ac_cv_exeext=
2568 { echo "$as_me:$LINENO: result: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6; }
2570 if test -z "$ac_file"; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: C compiler cannot create executables
2577 See \`config.log' for more details." >&2;}
2578 { (exit 77); exit 77; }; }
2581 ac_exeext=$ac_cv_exeext
2583 # Check that the compiler produces executables we can run. If not, either
2584 # the compiler is broken, or we cross compile.
2585 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590 if { ac_try='./$ac_file'
2591 { (case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_try") 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 if test "$cross_compiling" = maybe; then
2605 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2615 { echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6; }
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check that the compiler produces executables we can run. If not, either
2621 # the compiler is broken, or we cross compile.
2622 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2623 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2624 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6; }
2627 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2628 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2629 if { (ac_try="$ac_link"
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_link") 2>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; then
2639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2643 for ac_file in conftest.exe conftest conftest.*; do
2644 test -f "$ac_file" || continue
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2653 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2660 rm -f conftest$ac_cv_exeext
2661 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2667 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2669 if test "${ac_cv_objext+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2687 rm -f conftest.o conftest.obj
2688 if { (ac_try="$ac_compile"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compile") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in conftest.o conftest.obj conftest.*; do
2699 test -f "$ac_file" || continue;
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2710 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2713 See \`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2719 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 echo "${ECHO_T}$ac_cv_objext" >&6; }
2721 OBJEXT=$ac_cv_objext
2723 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 cat >conftest.$ac_ext <<_ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2755 grep -v '^ *+' conftest.er1 >conftest.err
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.$ac_objext; then
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS=${CFLAGS+set}
2779 ac_save_CFLAGS=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 ac_save_c_werror_flag=$ac_c_werror_flag
2786 ac_c_werror_flag=yes
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compile") 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } && {
2818 test -z "$ac_c_werror_flag" ||
2819 test ! -s conftest.err
2820 } && test -s conftest.$ac_objext; then
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2827 cat >conftest.$ac_ext <<_ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2851 grep -v '^ *+' conftest.er1 >conftest.err
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.$ac_objext; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_c_werror_flag=$ac_save_c_werror_flag
2866 cat >conftest.$ac_ext <<_ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2915 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918 CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920 if test "$GCC" = yes; then
2926 if test "$GCC" = yes; then
2932 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 ac_cv_prog_cc_c89=no
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2963 s = g (p, va_arg (v,int));
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2969 function prototypes and stuff, but not '\xHH' hex character constants.
2970 These don't provoke an error unfortunately, instead are silently treated
2971 as 'x'. The following induces an error, until -std is added to get
2972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2973 array size at least. It's necessary to write '\x00'==0 to get something
2974 that's true only with -std. */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978 inside strings and character constants. */
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2999 CC="$ac_save_CC $ac_arg"
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3017 ac_cv_prog_cc_c89=$ac_arg
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f core conftest.err conftest.$ac_objext
3026 test "x$ac_cv_prog_cc_c89" != "xno" && break
3028 rm -f conftest.$ac_ext
3033 case "x$ac_cv_prog_cc_c89" in
3035 { echo "$as_me:$LINENO: result: none needed" >&5
3036 echo "${ECHO_T}none needed" >&6; } ;;
3038 { echo "$as_me:$LINENO: result: unsupported" >&5
3039 echo "${ECHO_T}unsupported" >&6; } ;;
3041 CC="$CC $ac_cv_prog_cc_c89"
3042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 ac_cpp='$CXXCPP $CPPFLAGS'
3055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3058 if test -z "$CXX"; then
3059 if test -n "$CCC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_CXX+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -n "$CXX"; then
3073 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 if test -n "$CXX"; then
3094 { echo "$as_me:$LINENO: result: $CXX" >&5
3095 echo "${ECHO_T}$CXX" >&6; }
3097 { echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6; }
3102 test -n "$CXX" && break
3105 if test -z "$CXX"; then
3107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3113 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 if test -n "$ac_ct_CXX"; then
3117 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_ac_ct_CXX="$ac_prog"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3137 if test -n "$ac_ct_CXX"; then
3138 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3139 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3141 { echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6; }
3146 test -n "$ac_ct_CXX" && break
3149 if test "x$ac_ct_CXX" = x; then
3152 case $cross_compiling:$ac_tool_warned in
3154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3155 whose name does not start with the host triplet. If you think this
3156 configuration is useful to you, please write to autoconf@gnu.org." >&5
3157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3158 whose name does not start with the host triplet. If you think this
3159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3160 ac_tool_warned=yes ;;
3168 # Provide some information about the compiler.
3169 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3170 ac_compiler=`set X $ac_compile; echo $2`
3171 { (ac_try="$ac_compiler --version >&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 --version >&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); }
3191 { (ac_try="$ac_compiler -V >&5"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compiler -V >&5") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }
3202 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3203 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3204 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 cat >conftest.$ac_ext <<_ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } && {
3239 test -z "$ac_cxx_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest.$ac_objext; then
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3254 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3255 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3256 GXX=`test $ac_compiler_gnu = yes && echo yes`
3257 ac_test_CXXFLAGS=${CXXFLAGS+set}
3258 ac_save_CXXFLAGS=$CXXFLAGS
3259 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3260 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cxx_g+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3265 ac_cxx_werror_flag=yes
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_cxx_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cxx_g=yes
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } && {
3335 test -z "$ac_cxx_werror_flag" ||
3336 test ! -s conftest.err
3337 } && test -s conftest.$ac_objext; then
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && {
3374 test -z "$ac_cxx_werror_flag" ||
3375 test ! -s conftest.err
3376 } && test -s conftest.$ac_objext; then
3377 ac_cv_prog_cxx_g=yes
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3396 if test "$ac_test_CXXFLAGS" = set; then
3397 CXXFLAGS=$ac_save_CXXFLAGS
3398 elif test $ac_cv_prog_cxx_g = yes; then
3399 if test "$GXX" = yes; then
3405 if test "$GXX" = yes; then
3412 ac_cpp='$CPP $CPPFLAGS'
3413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 if test "x$CC" != xcc; then
3418 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3419 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3421 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3422 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3424 set dummy $CC; ac_cc=`echo $2 |
3425 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3426 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3444 # Make sure it works both with $CC and with simple cc.
3445 # We do the test twice because some compilers refuse to overwrite an
3446 # existing .o file with -o, though they will create one.
3447 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3449 if { (case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_try") 2>&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_try") 2>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); };
3468 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3469 if test "x$CC" != xcc; then
3470 # Test first that cc exists at all.
3471 if { ac_try='cc -c conftest.$ac_ext >&5'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_try") 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3483 if { (case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_try") 2>&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } &&
3492 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_try") 2>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); };
3505 # cc exists but doesn't like -o.
3506 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3511 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3513 rm -f core conftest*
3516 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3517 { echo "$as_me:$LINENO: result: yes" >&5
3518 echo "${ECHO_T}yes" >&6; }
3520 { echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6; }
3523 cat >>confdefs.h <<\_ACEOF
3524 #define NO_MINUS_C_MINUS_O 1
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3535 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3536 # On Suns, sometimes $CPP names a directory.
3537 if test -n "$CPP" && test -d "$CPP"; then
3540 if test -z "$CPP"; then
3541 if test "${ac_cv_prog_CPP+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 # Double quotes because CPP needs to be expanded
3545 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3548 for ac_c_preproc_warn_flag in '' yes
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3563 # include <limits.h>
3565 # include <assert.h>
3569 if { (ac_try="$ac_cpp conftest.$ac_ext"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null && {
3582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Broken: fails on valid input.
3594 rm -f conftest.err conftest.$ac_ext
3596 # OK, works on sane cases. Now check whether nonexistent headers
3597 # can be detected and how.
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 #include <ac_nonexistent.h>
3606 if { (ac_try="$ac_cpp conftest.$ac_ext"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614 grep -v '^ *+' conftest.er1 >conftest.err
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev/null && {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3622 # Broken: success on invalid input.
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 # Passes both tests.
3633 rm -f conftest.err conftest.$ac_ext
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then
3650 { echo "$as_me:$LINENO: result: $CPP" >&5
3651 echo "${ECHO_T}$CPP" >&6; }
3653 for ac_c_preproc_warn_flag in '' yes
3655 # Use a header file that comes with gcc, so configuring glibc
3656 # with a fresh cross-compiler works.
3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658 # <limits.h> exists even on freestanding compilers.
3659 # On the NeXT, cc -E runs the code through the compiler's parser,
3660 # not just through cpp. "Syntax error" is here to catch this case.
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3668 # include <limits.h>
3670 # include <assert.h>
3674 if { (ac_try="$ac_cpp conftest.$ac_ext"
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3682 grep -v '^ *+' conftest.er1 >conftest.err
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev/null && {
3687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3688 test ! -s conftest.err
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 # Broken: fails on valid input.
3699 rm -f conftest.err conftest.$ac_ext
3701 # OK, works on sane cases. Now check whether nonexistent headers
3702 # can be detected and how.
3703 cat >conftest.$ac_ext <<_ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 #include <ac_nonexistent.h>
3711 if { (ac_try="$ac_cpp conftest.$ac_ext"
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3719 grep -v '^ *+' conftest.er1 >conftest.err
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null && {
3724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3725 test ! -s conftest.err
3727 # Broken: success on invalid input.
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 # Passes both tests.
3738 rm -f conftest.err conftest.$ac_ext
3741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742 rm -f conftest.err conftest.$ac_ext
3743 if $ac_preproc_ok; then
3746 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3747 See \`config.log' for more details." >&5
3748 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details." >&2;}
3750 { (exit 1); exit 1; }; }
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3761 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3762 if test "${ac_cv_path_GREP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 # Extract the first word of "grep ggrep" to use in msg output
3766 if test -z "$GREP"; then
3767 set dummy grep ggrep; ac_prog_name=$2
3768 if test "${ac_cv_path_GREP+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 ac_path_GREP_found=false
3772 # Loop through the user's path and test for each of PROGNAME-LIST
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in grep ggrep; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3781 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3782 # Check for GNU ac_path_GREP and select it if it is found.
3783 # Check for GNU $ac_path_GREP
3784 case `"$ac_path_GREP" --version 2>&1` in
3786 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3789 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3792 cat "conftest.in" "conftest.in" >"conftest.tmp"
3793 mv "conftest.tmp" "conftest.in"
3794 cp "conftest.in" "conftest.nl"
3795 echo 'GREP' >> "conftest.nl"
3796 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798 ac_count=`expr $ac_count + 1`
3799 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3800 # Best one so far, save it but keep looking for a better one
3801 ac_cv_path_GREP="$ac_path_GREP"
3802 ac_path_GREP_max=$ac_count
3804 # 10*(2^10) chars as input seems more than enough
3805 test $ac_count -gt 10 && break
3807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811 $ac_path_GREP_found && break 3
3821 GREP="$ac_cv_path_GREP"
3822 if test -z "$GREP"; then
3823 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3824 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3825 { (exit 1); exit 1; }; }
3829 ac_cv_path_GREP=$GREP
3834 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3835 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3836 GREP="$ac_cv_path_GREP"
3839 { echo "$as_me:$LINENO: checking for egrep" >&5
3840 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3841 if test "${ac_cv_path_EGREP+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3845 then ac_cv_path_EGREP="$GREP -E"
3847 # Extract the first word of "egrep" to use in msg output
3848 if test -z "$EGREP"; then
3849 set dummy egrep; ac_prog_name=$2
3850 if test "${ac_cv_path_EGREP+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 ac_path_EGREP_found=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in egrep; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3864 # Check for GNU ac_path_EGREP and select it if it is found.
3865 # Check for GNU $ac_path_EGREP
3866 case `"$ac_path_EGREP" --version 2>&1` in
3868 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3871 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 echo 'EGREP' >> "conftest.nl"
3878 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880 ac_count=`expr $ac_count + 1`
3881 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_EGREP="$ac_path_EGREP"
3884 ac_path_EGREP_max=$ac_count
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3893 $ac_path_EGREP_found && break 3
3903 EGREP="$ac_cv_path_EGREP"
3904 if test -z "$EGREP"; then
3905 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3906 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3907 { (exit 1); exit 1; }; }
3911 ac_cv_path_EGREP=$EGREP
3917 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3918 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3919 EGREP="$ac_cv_path_EGREP"
3922 if test $ac_cv_c_compiler_gnu = yes; then
3923 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3924 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3925 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 ac_pattern="Autoconf.*'x'"
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3940 ac_cv_prog_gcc_traditional=yes
3942 ac_cv_prog_gcc_traditional=no
3947 if test $ac_cv_prog_gcc_traditional = no; then
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3958 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3959 ac_cv_prog_gcc_traditional=yes
3965 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3966 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3967 if test $ac_cv_prog_gcc_traditional = yes; then
3968 CC="$CC -traditional"
3972 BASECC=`basename $CC`
3974 if test "x$BASECC" = xgcc; then
3975 cat >>confdefs.h <<\_ACEOF
3981 # Extract the first word of "$CXX", so it can be a program name with args.
3982 set dummy $CXX; ac_word=$2
3983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3985 if test "${ac_cv_path_CXX+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4013 if test -n "$CXX"; then
4014 { echo "$as_me:$LINENO: result: $CXX" >&5
4015 echo "${ECHO_T}$CXX" >&6; }
4017 { echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6; }
4022 if test ! -e $CXX; then
4023 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4024 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4025 { (exit 1); exit 1; }; }
4028 # Find a good install program. We prefer a C program (faster),
4029 # so one script is as good as another. But avoid the broken or
4030 # incompatible versions:
4031 # SysV /etc/install, /usr/sbin/install
4032 # SunOS /usr/etc/install
4033 # IRIX /sbin/install
4035 # AmigaOS /C/install, which installs bootblocks on floppy discs
4036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4039 # OS/2's system install, which has a completely different semantic
4040 # ./install, which can be erroneously created by make from ./install.sh.
4041 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4043 if test -z "$INSTALL"; then
4044 if test "${ac_cv_path_install+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 test -z "$as_dir" && as_dir=.
4052 # Account for people who put trailing slashes in PATH elements.
4054 ./ | .// | /cC/* | \
4055 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4056 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4059 # OSF1 and SCO ODT 3.0 have their own names for install.
4060 # Don't use installbsd from OSF since it installs stuff as root
4062 for ac_prog in ginstall scoinst install; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4065 if test $ac_prog = install &&
4066 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4067 # AIX install. It has an incompatible calling convention.
4069 elif test $ac_prog = install &&
4070 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4071 # program-specific install script used by HP pwplus--don't use.
4074 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4087 if test "${ac_cv_path_install+set}" = set; then
4088 INSTALL=$ac_cv_path_install
4090 # As a last resort, use the slow shell script. Don't cache a
4091 # value for INSTALL within a source directory, because that will
4092 # break other packages using the cache if that directory is
4093 # removed, or if the value is a relative name.
4094 INSTALL=$ac_install_sh
4097 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4098 echo "${ECHO_T}$INSTALL" >&6; }
4100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4101 # It thinks the first close brace ends the variable substitution.
4102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4108 if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4113 if test "${ac_cv_prog_RANLIB+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test -n "$RANLIB"; then
4117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 RANLIB=$ac_cv_prog_RANLIB
4137 if test -n "$RANLIB"; then
4138 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4139 echo "${ECHO_T}$RANLIB" >&6; }
4141 { echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6; }
4147 if test -z "$ac_cv_prog_RANLIB"; then
4148 ac_ct_RANLIB=$RANLIB
4149 # Extract the first word of "ranlib", so it can be a program name with args.
4150 set dummy ranlib; ac_word=$2
4151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 if test -n "$ac_ct_RANLIB"; then
4157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_prog_ac_ct_RANLIB="ranlib"
4167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4177 if test -n "$ac_ct_RANLIB"; then
4178 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4179 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4185 if test "x$ac_ct_RANLIB" = x; then
4188 case $cross_compiling:$ac_tool_warned in
4190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4191 whose name does not start with the host triplet. If you think this
4192 configuration is useful to you, please write to autoconf@gnu.org." >&5
4193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4194 whose name does not start with the host triplet. If you think this
4195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4196 ac_tool_warned=yes ;;
4198 RANLIB=$ac_ct_RANLIB
4201 RANLIB="$ac_cv_prog_RANLIB"
4204 # Extract the first word of "mv", so it can be a program name with args.
4205 set dummy mv; ac_word=$2
4206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4208 if test "${ac_cv_path_MV+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4236 if test -n "$MV"; then
4237 { echo "$as_me:$LINENO: result: $MV" >&5
4238 echo "${ECHO_T}$MV" >&6; }
4240 { echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6; }
4245 # Extract the first word of "rm", so it can be a program name with args.
4246 set dummy rm; ac_word=$2
4247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4249 if test "${ac_cv_path_RM+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4277 if test -n "$RM"; then
4278 { echo "$as_me:$LINENO: result: $RM" >&5
4279 echo "${ECHO_T}$RM" >&6; }
4281 { echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6; }
4286 # Extract the first word of "cp", so it can be a program name with args.
4287 set dummy cp; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_path_CP+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4318 if test -n "$CP"; then
4319 { echo "$as_me:$LINENO: result: $CP" >&5
4320 echo "${ECHO_T}$CP" >&6; }
4322 { echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6; }
4327 # Extract the first word of "sed", so it can be a program name with args.
4328 set dummy sed; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_path_SED+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4359 if test -n "$SED"; then
4360 { echo "$as_me:$LINENO: result: $SED" >&5
4361 echo "${ECHO_T}$SED" >&6; }
4363 { echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6; }
4368 # Extract the first word of "echo", so it can be a program name with args.
4369 set dummy echo; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_path_ECHO+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4399 ECHO=$ac_cv_path_ECHO
4400 if test -n "$ECHO"; then
4401 { echo "$as_me:$LINENO: result: $ECHO" >&5
4402 echo "${ECHO_T}$ECHO" >&6; }
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4409 # Extract the first word of "cmp", so it can be a program name with args.
4410 set dummy cmp; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_CMP+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4441 if test -n "$CMP"; then
4442 { echo "$as_me:$LINENO: result: $CMP" >&5
4443 echo "${ECHO_T}$CMP" >&6; }
4445 { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4450 # Extract the first word of "tbl", so it can be a program name with args.
4451 set dummy tbl; ac_word=$2
4452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4454 if test "${ac_cv_path_TBL+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4482 if test -n "$TBL"; then
4483 { echo "$as_me:$LINENO: result: $TBL" >&5
4484 echo "${ECHO_T}$TBL" >&6; }
4486 { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4491 # Extract the first word of "ar", so it can be a program name with args.
4492 set dummy ar; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_AR+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4523 if test -n "$AR"; then
4524 { echo "$as_me:$LINENO: result: $AR" >&5
4525 echo "${ECHO_T}$AR" >&6; }
4527 { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4532 # Extract the first word of "openssl", so it can be a program name with args.
4533 set dummy openssl; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_path_OPENSSL+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4563 OPENSSL=$ac_cv_path_OPENSSL
4564 if test -n "$OPENSSL"; then
4565 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4566 echo "${ECHO_T}$OPENSSL" >&6; }
4568 { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; }
4573 # Extract the first word of "mtx", so it can be a program name with args.
4574 set dummy mtx; ac_word=$2
4575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4577 if test "${ac_cv_path_MTX+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4605 if test -n "$MTX"; then
4606 { echo "$as_me:$LINENO: result: $MTX" >&5
4607 echo "${ECHO_T}$MTX" >&6; }
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 # Extract the first word of "dd", so it can be a program name with args.
4615 set dummy dd; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_path_DD+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4646 if test -n "$DD"; then
4647 { echo "$as_me:$LINENO: result: $DD" >&5
4648 echo "${ECHO_T}$DD" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4655 # Extract the first word of "mkisofs", so it can be a program name with args.
4656 set dummy mkisofs; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_MKISOFS+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4686 MKISOFS=$ac_cv_path_MKISOFS
4687 if test -n "$MKISOFS"; then
4688 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4689 echo "${ECHO_T}$MKISOFS" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 # Extract the first word of "python", so it can be a program name with args.
4697 set dummy python; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_PYTHON+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4727 PYTHON=$ac_cv_path_PYTHON
4728 if test -n "$PYTHON"; then
4729 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4730 echo "${ECHO_T}$PYTHON" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4737 # Extract the first word of "growisofs", so it can be a program name with args.
4738 set dummy growisofs; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4768 GROWISOFS=$ac_cv_path_GROWISOFS
4769 if test -n "$GROWISOFS"; then
4770 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4771 echo "${ECHO_T}$GROWISOFS" >&6; }
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4778 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4779 set dummy dvd+rw-mediainfo; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 case $DVDRWMEDIAINFO in
4787 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4809 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4810 if test -n "$DVDRWMEDIAINFO"; then
4811 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4812 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4819 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4820 set dummy dvd+rw-format; ac_word=$2
4821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4823 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 case $DVDRWFORMAT in
4828 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4850 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4851 if test -n "$DVDRWFORMAT"; then
4852 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4853 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4855 { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4860 # Extract the first word of "pkg-config", so it can be a program name with args.
4861 set dummy pkg-config; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4891 PKGCONFIG=$ac_cv_path_PKGCONFIG
4892 if test -n "$PKGCONFIG"; then
4893 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4894 echo "${ECHO_T}$PKGCONFIG" >&6; }
4896 { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4901 # Extract the first word of "qmake", so it can be a program name with args.
4902 set dummy qmake; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_path_QMAKE+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4932 QMAKE=$ac_cv_path_QMAKE
4933 if test -n "$QMAKE"; then
4934 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4935 echo "${ECHO_T}$QMAKE" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4942 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4943 set dummy qmake-qt4; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4973 QMAKEQT4=$ac_cv_path_QMAKEQT4
4974 if test -n "$QMAKEQT4"; then
4975 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4976 echo "${ECHO_T}$QMAKEQT4" >&6; }
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4984 if test "x$WXCONFIG" = x; then
4987 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4988 set dummy ${WXCONFIG}; ac_word=$2
4989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4991 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5018 WXCONFIG=$ac_cv_path_WXCONFIG
5019 if test -n "$WXCONFIG"; then
5020 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5021 echo "${ECHO_T}$WXCONFIG" >&6; }
5023 { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5029 # Extract the first word of "cdrecord", so it can be a program name with args.
5030 set dummy cdrecord; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_path_CDRECORD+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5060 CDRECORD=$ac_cv_path_CDRECORD
5061 if test -n "$CDRECORD"; then
5062 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5063 echo "${ECHO_T}$CDRECORD" >&6; }
5065 { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5070 # Extract the first word of "pidof", so it can be a program name with args.
5071 set dummy pidof; ac_word=$2
5072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5074 if test "${ac_cv_path_PIDOF+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5101 PIDOF=$ac_cv_path_PIDOF
5102 if test -n "$PIDOF"; then
5103 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5104 echo "${ECHO_T}$PIDOF" >&6; }
5106 { echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6; }
5111 for ac_prog in gawk mawk nawk awk
5113 # Extract the first word of "$ac_prog", so it can be a program name with args.
5114 set dummy $ac_prog; ac_word=$2
5115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117 if test "${ac_cv_prog_AWK+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 if test -n "$AWK"; then
5121 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_prog_AWK="$ac_prog"
5131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 if test -n "$AWK"; then
5142 { echo "$as_me:$LINENO: result: $AWK" >&5
5143 echo "${ECHO_T}$AWK" >&6; }
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5150 test -n "$AWK" && break
5153 # Some AWK programs fail, so test it and warn the user
5154 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5155 { if ((prog == $2) || (("(" prog ")") == $2) ||
5156 (("" prog "") == $2) ||
5157 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5159 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5160 The regex engine of $AWK is too broken to be used you
5161 might want to install GNU AWK.
5162 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5163 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5164 The regex engine of $AWK is too broken to be used you
5165 might want to install GNU AWK.
5166 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5167 { (exit 1); exit 1; }; }
5170 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5171 set dummy $THE_AWK; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_path_AWK+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5202 if test -n "$AWK"; then
5203 { echo "$as_me:$LINENO: result: $AWK" >&5
5204 echo "${ECHO_T}$AWK" >&6; }
5206 { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5213 test -n "$ARFLAG" || ARFLAGS="cr"
5224 # Make sure we can run config.sub.
5225 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5226 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5227 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5228 { (exit 1); exit 1; }; }
5230 { echo "$as_me:$LINENO: checking build system type" >&5
5231 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5232 if test "${ac_cv_build+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 ac_build_alias=$build_alias
5236 test "x$ac_build_alias" = x &&
5237 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5238 test "x$ac_build_alias" = x &&
5239 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5240 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5241 { (exit 1); exit 1; }; }
5242 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5243 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5244 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5245 { (exit 1); exit 1; }; }
5248 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5249 echo "${ECHO_T}$ac_cv_build" >&6; }
5250 case $ac_cv_build in
5252 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5253 echo "$as_me: error: invalid value of canonical build" >&2;}
5254 { (exit 1); exit 1; }; };;
5257 ac_save_IFS=$IFS; IFS='-'
5263 # Remember, the first character of IFS is used to create $*,
5264 # except with old shells:
5267 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5271 { echo "$as_me:$LINENO: checking host system type" >&5
5272 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5273 if test "${ac_cv_host+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 if test "x$host_alias" = x; then
5277 ac_cv_host=$ac_cv_build
5279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5280 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5281 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5282 { (exit 1); exit 1; }; }
5286 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5287 echo "${ECHO_T}$ac_cv_host" >&6; }
5290 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5291 echo "$as_me: error: invalid value of canonical host" >&2;}
5292 { (exit 1); exit 1; }; };;
5295 ac_save_IFS=$IFS; IFS='-'
5301 # Remember, the first character of IFS is used to create $*,
5302 # except with old shells:
5305 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5309 *cygwin* ) CYGWIN=yes;;
5313 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5319 HAVE_SUN_OS_FALSE='#'
5321 HAVE_SUN_OS_TRUE='#'
5324 cat >>confdefs.h <<\_ACEOF
5325 #define HAVE_SUN_OS 1
5333 HAVE_SUN_OS_FALSE='#'
5335 HAVE_SUN_OS_TRUE='#'
5340 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5346 HAVE_OSF1_OS_FALSE='#'
5348 HAVE_OSF1_OS_TRUE='#'
5351 cat >>confdefs.h <<\_ACEOF
5352 #define HAVE_OSF1_OS 1
5360 HAVE_OSF1_OS_FALSE='#'
5362 HAVE_OSF1_OS_TRUE='#'
5367 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5373 HAVE_AIX_OS_FALSE='#'
5375 HAVE_AIX_OS_TRUE='#'
5378 cat >>confdefs.h <<\_ACEOF
5379 #define HAVE_AIX_OS 1
5387 HAVE_AIX_OS_FALSE='#'
5389 HAVE_AIX_OS_TRUE='#'
5394 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5400 HAVE_HPUX_OS_FALSE='#'
5402 HAVE_HPUX_OS_TRUE='#'
5405 cat >>confdefs.h <<\_ACEOF
5406 #define HAVE_HPUX_OS 1
5414 HAVE_HPUX_OS_FALSE='#'
5416 HAVE_HPUX_OS_TRUE='#'
5421 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5427 HAVE_LINUX_OS_FALSE='#'
5429 HAVE_LINUX_OS_TRUE='#'
5430 HAVE_LINUX_OS_FALSE=
5432 cat >>confdefs.h <<\_ACEOF
5433 #define HAVE_LINUX_OS 1
5441 HAVE_LINUX_OS_FALSE='#'
5443 HAVE_LINUX_OS_TRUE='#'
5444 HAVE_LINUX_OS_FALSE=
5448 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5453 HAVE_FREEBSD_OS_TRUE=
5454 HAVE_FREEBSD_OS_FALSE='#'
5456 HAVE_FREEBSD_OS_TRUE='#'
5457 HAVE_FREEBSD_OS_FALSE=
5459 cat >>confdefs.h <<\_ACEOF
5460 #define HAVE_FREEBSD_OS 1
5467 HAVE_FREEBSD_OS_TRUE=
5468 HAVE_FREEBSD_OS_FALSE='#'
5470 HAVE_FREEBSD_OS_TRUE='#'
5471 HAVE_FREEBSD_OS_FALSE=
5475 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5480 HAVE_NETBSD_OS_TRUE=
5481 HAVE_NETBSD_OS_FALSE='#'
5483 HAVE_NETBSD_OS_TRUE='#'
5484 HAVE_NETBSD_OS_FALSE=
5486 cat >>confdefs.h <<\_ACEOF
5487 #define HAVE_NETBSD_OS 1
5494 HAVE_NETBSD_OS_TRUE=
5495 HAVE_NETBSD_OS_FALSE='#'
5497 HAVE_NETBSD_OS_TRUE='#'
5498 HAVE_NETBSD_OS_FALSE=
5502 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5507 HAVE_OPENBSD_OS_TRUE=
5508 HAVE_OPENBSD_OS_FALSE='#'
5510 HAVE_OPENBSD_OS_TRUE='#'
5511 HAVE_OPENBSD_OS_FALSE=
5513 cat >>confdefs.h <<\_ACEOF
5514 #define HAVE_OPENBSD_OS 1
5521 HAVE_OPENBSD_OS_TRUE=
5522 HAVE_OPENBSD_OS_FALSE='#'
5524 HAVE_OPENBSD_OS_TRUE='#'
5525 HAVE_OPENBSD_OS_FALSE=
5529 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5535 HAVE_BSDI_OS_FALSE='#'
5537 HAVE_BSDI_OS_TRUE='#'
5540 cat >>confdefs.h <<\_ACEOF
5541 #define HAVE_BSDI_OS 1
5549 HAVE_BSDI_OS_FALSE='#'
5551 HAVE_BSDI_OS_TRUE='#'
5556 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5562 HAVE_SGI_OS_FALSE='#'
5564 HAVE_SGI_OS_TRUE='#'
5567 cat >>confdefs.h <<\_ACEOF
5568 #define HAVE_SGI_OS 1
5576 HAVE_SGI_OS_FALSE='#'
5578 HAVE_SGI_OS_TRUE='#'
5583 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5589 HAVE_IRIX_OS_FALSE='#'
5591 HAVE_IRIX_OS_TRUE='#'
5594 cat >>confdefs.h <<\_ACEOF
5595 #define HAVE_IRIX_OS 1
5603 HAVE_IRIX_OS_FALSE='#'
5605 HAVE_IRIX_OS_TRUE='#'
5610 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5615 HAVE_DARWIN_OS_TRUE=
5616 HAVE_DARWIN_OS_FALSE='#'
5618 HAVE_DARWIN_OS_TRUE='#'
5619 HAVE_DARWIN_OS_FALSE=
5621 cat >>confdefs.h <<\_ACEOF
5622 #define HAVE_DARWIN_OS 1
5629 HAVE_DARWIN_OS_TRUE=
5630 HAVE_DARWIN_OS_FALSE='#'
5632 HAVE_DARWIN_OS_TRUE='#'
5633 HAVE_DARWIN_OS_FALSE=
5638 # -----------------------------------------------------------
5639 # ----------------------------------------------------------
5640 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5641 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5642 if test "x$DISTNAME" != "x"
5644 echo "distname set to $DISTNAME"
5645 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5648 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5651 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5654 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5657 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5660 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5663 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5666 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5669 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5672 elif test -f /etc/SuSE-release
5675 elif test -d /etc/SuSEconfig
5678 elif test -f /etc/mandrake-release
5681 elif test -f /etc/whitebox-release
5684 elif test -f /etc/redhat-release
5687 elif test -f /etc/gentoo-release
5690 elif test -f /etc/debian_version
5693 elif test -f /etc/slackware-version
5696 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5699 elif test -f /etc/engarde-version
5702 elif test "$CYGWIN" = yes
5705 cat >>confdefs.h <<\_ACEOF
5706 #define HAVE_CYGWIN 1
5712 { echo "$as_me:$LINENO: result: done" >&5
5713 echo "${ECHO_T}done" >&6; }
5716 # --------------------------------------------------
5717 # Suppport for gettext (translations)
5718 # By default, $datadir is ${prefix}/share
5719 # --------------------------------------------------
5720 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5721 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5722 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5723 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 cat >conftest.make <<\_ACEOF
5729 @echo '@@@%%%=$(MAKE)=@@@%%%'
5731 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5734 eval ac_cv_prog_make_${ac_make}_set=yes;;
5736 eval ac_cv_prog_make_${ac_make}_set=no;;
5740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5741 { echo "$as_me:$LINENO: result: yes" >&5
5742 echo "${ECHO_T}yes" >&6; }
5745 { echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6; }
5747 SET_MAKE="MAKE=${MAKE-make}"
5753 if test -n "$ac_aux_dir"; then
5754 case "$ac_aux_dir" in
5755 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5756 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5759 if test -z "$MKINSTALLDIRS"; then
5760 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5765 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5766 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5767 # Check whether --enable-nls was given.
5768 if test "${enable_nls+set}" = set; then
5769 enableval=$enable_nls; USE_NLS=$enableval
5774 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5775 echo "${ECHO_T}$USE_NLS" >&6; }
5782 # Prepare PATH_SEPARATOR.
5783 # The user is always right.
5784 if test "${PATH_SEPARATOR+set}" != set; then
5785 echo "#! /bin/sh" >conf$$.sh
5786 echo "exit 0" >>conf$$.sh
5788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5796 # Find out how to test for executable files. Don't use a zero-byte file,
5797 # as systems may use methods other than mode bits to determine executability.
5798 cat >conf$$.file <<_ASEOF
5802 chmod +x conf$$.file
5803 if test -x conf$$.file >/dev/null 2>&1; then
5804 ac_executable_p="test -x"
5806 ac_executable_p="test -f"
5810 # Extract the first word of "msgfmt", so it can be a program name with args.
5811 set dummy msgfmt; ac_word=$2
5812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5814 if test "${ac_cv_path_MSGFMT+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5822 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5823 for ac_dir in $PATH; do
5825 test -z "$ac_dir" && ac_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5828 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5829 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5830 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5831 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5838 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5842 MSGFMT="$ac_cv_path_MSGFMT"
5843 if test "$MSGFMT" != ":"; then
5844 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5845 echo "${ECHO_T}$MSGFMT" >&6; }
5847 { echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6; }
5851 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5852 set dummy gmsgfmt; ac_word=$2
5853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5855 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5882 GMSGFMT=$ac_cv_path_GMSGFMT
5883 if test -n "$GMSGFMT"; then
5884 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5885 echo "${ECHO_T}$GMSGFMT" >&6; }
5887 { echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6; }
5894 # Prepare PATH_SEPARATOR.
5895 # The user is always right.
5896 if test "${PATH_SEPARATOR+set}" != set; then
5897 echo "#! /bin/sh" >conf$$.sh
5898 echo "exit 0" >>conf$$.sh
5900 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5908 # Find out how to test for executable files. Don't use a zero-byte file,
5909 # as systems may use methods other than mode bits to determine executability.
5910 cat >conf$$.file <<_ASEOF
5914 chmod +x conf$$.file
5915 if test -x conf$$.file >/dev/null 2>&1; then
5916 ac_executable_p="test -x"
5918 ac_executable_p="test -f"
5922 # Extract the first word of "xgettext", so it can be a program name with args.
5923 set dummy xgettext; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5934 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5935 for ac_dir in $PATH; do
5937 test -z "$ac_dir" && ac_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5940 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5941 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5942 (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
5943 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5954 XGETTEXT="$ac_cv_path_XGETTEXT"
5955 if test "$XGETTEXT" != ":"; then
5956 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5957 echo "${ECHO_T}$XGETTEXT" >&6; }
5959 { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5966 # Prepare PATH_SEPARATOR.
5967 # The user is always right.
5968 if test "${PATH_SEPARATOR+set}" != set; then
5969 echo "#! /bin/sh" >conf$$.sh
5970 echo "exit 0" >>conf$$.sh
5972 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5980 # Find out how to test for executable files. Don't use a zero-byte file,
5981 # as systems may use methods other than mode bits to determine executability.
5982 cat >conf$$.file <<_ASEOF
5986 chmod +x conf$$.file
5987 if test -x conf$$.file >/dev/null 2>&1; then
5988 ac_executable_p="test -x"
5990 ac_executable_p="test -f"
5994 # Extract the first word of "msgmerge", so it can be a program name with args.
5995 set dummy msgmerge; ac_word=$2
5996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6006 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6007 for ac_dir in $PATH; do
6009 test -z "$ac_dir" && ac_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6012 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6013 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6014 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6021 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6025 MSGMERGE="$ac_cv_path_MSGMERGE"
6026 if test "$MSGMERGE" != ":"; then
6027 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6028 echo "${ECHO_T}$MSGMERGE" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6035 if test "$GMSGFMT" != ":"; then
6036 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6037 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6040 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6041 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6042 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6047 if test "$XGETTEXT" != ":"; then
6048 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6049 (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
6052 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6053 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6059 ac_config_commands="$ac_config_commands default-1"
6063 if test "X$prefix" = "XNONE"; then
6064 acl_final_prefix="$ac_default_prefix"
6066 acl_final_prefix="$prefix"
6068 if test "X$exec_prefix" = "XNONE"; then
6069 acl_final_exec_prefix='${prefix}'
6071 acl_final_exec_prefix="$exec_prefix"
6073 acl_save_prefix="$prefix"
6074 prefix="$acl_final_prefix"
6075 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6076 prefix="$acl_save_prefix"
6079 # Check whether --with-gnu-ld was given.
6080 if test "${with_gnu_ld+set}" = set; then
6081 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6086 # Prepare PATH_SEPARATOR.
6087 # The user is always right.
6088 if test "${PATH_SEPARATOR+set}" != set; then
6089 echo "#! /bin/sh" >conf$$.sh
6090 echo "exit 0" >>conf$$.sh
6092 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6100 if test "$GCC" = yes; then
6101 # Check if gcc -print-prog-name=ld gives a path.
6102 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6103 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6106 # gcc leaves a trailing carriage return which upsets mingw
6107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6112 # Accept absolute paths.
6113 [\\/]* | [A-Za-z]:[\\/]*)
6114 re_direlt='/[^/][^/]*/\.\./'
6115 # Canonicalize the path of ld
6116 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6118 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6120 test -z "$LD" && LD="$ac_prog"
6123 # If it fails, then pretend we aren't using GCC.
6127 # If it is relative, then search for the first ld in PATH.
6131 elif test "$with_gnu_ld" = yes; then
6132 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6133 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6135 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6136 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6138 if test "${acl_cv_path_LD+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -z "$LD"; then
6142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6143 for ac_dir in $PATH; do
6144 test -z "$ac_dir" && ac_dir=.
6145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6146 acl_cv_path_LD="$ac_dir/$ac_prog"
6147 # Check to see if the program is GNU ld. I'd rather use --version,
6148 # but apparently some GNU ld's only accept -v.
6149 # Break only if it was the GNU/non-GNU ld that we prefer.
6150 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6151 *GNU* | *'with BFD'*)
6152 test "$with_gnu_ld" != no && break ;;
6154 test "$with_gnu_ld" != yes && break ;;
6160 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6164 LD="$acl_cv_path_LD"
6165 if test -n "$LD"; then
6166 { echo "$as_me:$LINENO: result: $LD" >&5
6167 echo "${ECHO_T}$LD" >&6; }
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6172 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6173 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6174 { (exit 1); exit 1; }; }
6175 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6176 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6177 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6181 case `$LD -v 2>&1 </dev/null` in
6182 *GNU* | *'with BFD'*)
6183 acl_cv_prog_gnu_ld=yes ;;
6185 acl_cv_prog_gnu_ld=no ;;
6188 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6189 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6190 with_gnu_ld=$acl_cv_prog_gnu_ld
6195 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6196 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6197 if test "${acl_cv_rpath+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6202 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6208 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6209 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6211 libext="$acl_cv_libext"
6212 shlibext="$acl_cv_shlibext"
6213 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6214 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6215 hardcode_direct="$acl_cv_hardcode_direct"
6216 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6217 # Check whether --enable-rpath was given.
6218 if test "${enable_rpath+set}" = set; then
6219 enableval=$enable_rpath; :
6233 acl_save_prefix="$prefix"
6234 prefix="$acl_final_prefix"
6235 acl_save_exec_prefix="$exec_prefix"
6236 exec_prefix="$acl_final_exec_prefix"
6238 eval additional_includedir=\"$includedir\"
6239 eval additional_libdir=\"$libdir\"
6241 exec_prefix="$acl_save_exec_prefix"
6242 prefix="$acl_save_prefix"
6245 # Check whether --with-libiconv-prefix was given.
6246 if test "${with_libiconv_prefix+set}" = set; then
6247 withval=$with_libiconv_prefix;
6248 if test "X$withval" = "Xno"; then
6251 if test "X$withval" = "X"; then
6253 acl_save_prefix="$prefix"
6254 prefix="$acl_final_prefix"
6255 acl_save_exec_prefix="$exec_prefix"
6256 exec_prefix="$acl_final_exec_prefix"
6258 eval additional_includedir=\"$includedir\"
6259 eval additional_libdir=\"$libdir\"
6261 exec_prefix="$acl_save_exec_prefix"
6262 prefix="$acl_save_prefix"
6265 additional_includedir="$withval/include"
6266 additional_libdir="$withval/lib"
6277 names_already_handled=
6278 names_next_round='iconv '
6279 while test -n "$names_next_round"; do
6280 names_this_round="$names_next_round"
6282 for name in $names_this_round; do
6284 for n in $names_already_handled; do
6285 if test "$n" = "$name"; then
6290 if test -z "$already_handled"; then
6291 names_already_handled="$names_already_handled $name"
6292 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6293 eval value=\"\$HAVE_LIB$uppername\"
6294 if test -n "$value"; then
6295 if test "$value" = yes; then
6296 eval value=\"\$LIB$uppername\"
6297 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6298 eval value=\"\$LTLIB$uppername\"
6299 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6308 if test $use_additional = yes; then
6309 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6310 found_dir="$additional_libdir"
6311 found_so="$additional_libdir/lib$name.$shlibext"
6312 if test -f "$additional_libdir/lib$name.la"; then
6313 found_la="$additional_libdir/lib$name.la"
6316 if test -f "$additional_libdir/lib$name.$libext"; then
6317 found_dir="$additional_libdir"
6318 found_a="$additional_libdir/lib$name.$libext"
6319 if test -f "$additional_libdir/lib$name.la"; then
6320 found_la="$additional_libdir/lib$name.la"
6325 if test "X$found_dir" = "X"; then
6326 for x in $LDFLAGS $LTLIBICONV; do
6328 acl_save_prefix="$prefix"
6329 prefix="$acl_final_prefix"
6330 acl_save_exec_prefix="$exec_prefix"
6331 exec_prefix="$acl_final_exec_prefix"
6333 exec_prefix="$acl_save_exec_prefix"
6334 prefix="$acl_save_prefix"
6338 dir=`echo "X$x" | sed -e 's/^X-L//'`
6339 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6341 found_so="$dir/lib$name.$shlibext"
6342 if test -f "$dir/lib$name.la"; then
6343 found_la="$dir/lib$name.la"
6346 if test -f "$dir/lib$name.$libext"; then
6348 found_a="$dir/lib$name.$libext"
6349 if test -f "$dir/lib$name.la"; then
6350 found_la="$dir/lib$name.la"
6356 if test "X$found_dir" != "X"; then
6361 if test "X$found_dir" != "X"; then
6362 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6363 if test "X$found_so" != "X"; then
6364 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6365 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6368 for x in $ltrpathdirs; do
6369 if test "X$x" = "X$found_dir"; then
6374 if test -z "$haveit"; then
6375 ltrpathdirs="$ltrpathdirs $found_dir"
6377 if test "$hardcode_direct" = yes; then
6378 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6380 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6381 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6383 for x in $rpathdirs; do
6384 if test "X$x" = "X$found_dir"; then
6389 if test -z "$haveit"; then
6390 rpathdirs="$rpathdirs $found_dir"
6394 for x in $LDFLAGS $LIBICONV; do
6396 acl_save_prefix="$prefix"
6397 prefix="$acl_final_prefix"
6398 acl_save_exec_prefix="$exec_prefix"
6399 exec_prefix="$acl_final_exec_prefix"
6401 exec_prefix="$acl_save_exec_prefix"
6402 prefix="$acl_save_prefix"
6404 if test "X$x" = "X-L$found_dir"; then
6409 if test -z "$haveit"; then
6410 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6412 if test "$hardcode_minus_L" != no; then
6413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6415 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6421 if test "X$found_a" != "X"; then
6422 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6424 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6427 additional_includedir=
6428 case "$found_dir" in
6430 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6431 additional_includedir="$basedir/include"
6434 if test "X$additional_includedir" != "X"; then
6435 if test "X$additional_includedir" != "X/usr/include"; then
6437 if test "X$additional_includedir" = "X/usr/local/include"; then
6438 if test -n "$GCC"; then
6440 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6444 if test -z "$haveit"; then
6445 for x in $CPPFLAGS $INCICONV; do
6447 acl_save_prefix="$prefix"
6448 prefix="$acl_final_prefix"
6449 acl_save_exec_prefix="$exec_prefix"
6450 exec_prefix="$acl_final_exec_prefix"
6452 exec_prefix="$acl_save_exec_prefix"
6453 prefix="$acl_save_prefix"
6455 if test "X$x" = "X-I$additional_includedir"; then
6460 if test -z "$haveit"; then
6461 if test -d "$additional_includedir"; then
6462 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6468 if test -n "$found_la"; then
6469 save_libdir="$libdir"
6471 */* | *\\*) . "$found_la" ;;
6472 *) . "./$found_la" ;;
6474 libdir="$save_libdir"
6475 for dep in $dependency_libs; do
6478 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6479 if test "X$additional_libdir" != "X/usr/lib"; then
6481 if test "X$additional_libdir" = "X/usr/local/lib"; then
6482 if test -n "$GCC"; then
6484 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6488 if test -z "$haveit"; then
6490 for x in $LDFLAGS $LIBICONV; do
6492 acl_save_prefix="$prefix"
6493 prefix="$acl_final_prefix"
6494 acl_save_exec_prefix="$exec_prefix"
6495 exec_prefix="$acl_final_exec_prefix"
6497 exec_prefix="$acl_save_exec_prefix"
6498 prefix="$acl_save_prefix"
6500 if test "X$x" = "X-L$additional_libdir"; then
6505 if test -z "$haveit"; then
6506 if test -d "$additional_libdir"; then
6507 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6511 for x in $LDFLAGS $LTLIBICONV; do
6513 acl_save_prefix="$prefix"
6514 prefix="$acl_final_prefix"
6515 acl_save_exec_prefix="$exec_prefix"
6516 exec_prefix="$acl_final_exec_prefix"
6518 exec_prefix="$acl_save_exec_prefix"
6519 prefix="$acl_save_prefix"
6521 if test "X$x" = "X-L$additional_libdir"; then
6526 if test -z "$haveit"; then
6527 if test -d "$additional_libdir"; then
6528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6535 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6536 if test "$enable_rpath" != no; then
6538 for x in $rpathdirs; do
6539 if test "X$x" = "X$dir"; then
6544 if test -z "$haveit"; then
6545 rpathdirs="$rpathdirs $dir"
6548 for x in $ltrpathdirs; do
6549 if test "X$x" = "X$dir"; then
6554 if test -z "$haveit"; then
6555 ltrpathdirs="$ltrpathdirs $dir"
6560 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6563 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6566 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6567 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6573 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6574 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6580 if test "X$rpathdirs" != "X"; then
6581 if test -n "$hardcode_libdir_separator"; then
6583 for found_dir in $rpathdirs; do
6584 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6586 acl_save_libdir="$libdir"
6588 eval flag=\"$hardcode_libdir_flag_spec\"
6589 libdir="$acl_save_libdir"
6590 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6592 for found_dir in $rpathdirs; do
6593 acl_save_libdir="$libdir"
6595 eval flag=\"$hardcode_libdir_flag_spec\"
6596 libdir="$acl_save_libdir"
6597 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6601 if test "X$ltrpathdirs" != "X"; then
6602 for found_dir in $ltrpathdirs; do
6603 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6624 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6625 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6626 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 gt_save_CPPFLAGS="$CPPFLAGS"
6630 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6631 gt_save_LIBS="$LIBS"
6632 LIBS="$LIBS -framework CoreFoundation"
6633 cat >conftest.$ac_ext <<_ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 #include <CFPreferences.h>
6643 CFPreferencesCopyAppValue(NULL, NULL)
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (ac_try="$ac_link"
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_link") 2>conftest.er1
6657 grep -v '^ *+' conftest.er1 >conftest.err
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && {
6662 test -z "$ac_c_werror_flag" ||
6663 test ! -s conftest.err
6664 } && test -s conftest$ac_exeext &&
6665 $as_test_x conftest$ac_exeext; then
6666 gt_cv_func_CFPreferencesCopyAppValue=yes
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 gt_cv_func_CFPreferencesCopyAppValue=no
6674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6675 conftest$ac_exeext conftest.$ac_ext
6676 CPPFLAGS="$gt_save_CPPFLAGS"
6677 LIBS="$gt_save_LIBS"
6679 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6680 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6681 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6688 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6689 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6690 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 gt_save_CPPFLAGS="$CPPFLAGS"
6694 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6695 gt_save_LIBS="$LIBS"
6696 LIBS="$LIBS -framework CoreFoundation"
6697 cat >conftest.$ac_ext <<_ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <CFLocale.h>
6707 CFLocaleCopyCurrent();
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (ac_try="$ac_link"
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719 (eval "$ac_link") 2>conftest.er1
6721 grep -v '^ *+' conftest.er1 >conftest.err
6723 cat conftest.err >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && {
6726 test -z "$ac_c_werror_flag" ||
6727 test ! -s conftest.err
6728 } && test -s conftest$ac_exeext &&
6729 $as_test_x conftest$ac_exeext; then
6730 gt_cv_func_CFLocaleCopyCurrent=yes
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 gt_cv_func_CFLocaleCopyCurrent=no
6738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6739 conftest$ac_exeext conftest.$ac_ext
6740 CPPFLAGS="$gt_save_CPPFLAGS"
6741 LIBS="$gt_save_LIBS"
6743 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6744 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6745 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_CFLOCALECOPYCURRENT 1
6753 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6754 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6760 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6761 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6762 # Check whether --enable-nls was given.
6763 if test "${enable_nls+set}" = set; then
6764 enableval=$enable_nls; USE_NLS=$enableval
6769 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6770 echo "${ECHO_T}$USE_NLS" >&6; }
6779 if test "$USE_NLS" = "yes"; then
6780 gt_use_preinstalled_gnugettext=no
6787 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6788 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6789 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <libintl.h>
6799 extern int _nl_msg_cat_cntr;
6800 extern int *_nl_domain_bindings;
6804 bindtextdomain ("", "");
6805 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6810 rm -f conftest.$ac_objext conftest$ac_exeext
6811 if { (ac_try="$ac_link"
6813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817 (eval "$ac_link") 2>conftest.er1
6819 grep -v '^ *+' conftest.er1 >conftest.err
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && {
6824 test -z "$ac_c_werror_flag" ||
6825 test ! -s conftest.err
6826 } && test -s conftest$ac_exeext &&
6827 $as_test_x conftest$ac_exeext; then
6828 gt_cv_func_gnugettext1_libc=yes
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 gt_cv_func_gnugettext1_libc=no
6836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6837 conftest$ac_exeext conftest.$ac_ext
6839 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6840 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6842 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6848 am_save_CPPFLAGS="$CPPFLAGS"
6850 for element in $INCICONV; do
6852 for x in $CPPFLAGS; do
6854 acl_save_prefix="$prefix"
6855 prefix="$acl_final_prefix"
6856 acl_save_exec_prefix="$exec_prefix"
6857 exec_prefix="$acl_final_exec_prefix"
6859 exec_prefix="$acl_save_exec_prefix"
6860 prefix="$acl_save_prefix"
6862 if test "X$x" = "X$element"; then
6867 if test -z "$haveit"; then
6868 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6873 { echo "$as_me:$LINENO: checking for iconv" >&5
6874 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6875 if test "${am_cv_func_iconv+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 am_cv_func_iconv="no, consider installing GNU libiconv"
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6892 iconv_t cd = iconv_open("","");
6893 iconv(cd,NULL,NULL,NULL,NULL);
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_link") 2>conftest.er1
6908 grep -v '^ *+' conftest.er1 >conftest.err
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest$ac_exeext &&
6916 $as_test_x conftest$ac_exeext; then
6917 am_cv_func_iconv=yes
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6926 conftest$ac_exeext conftest.$ac_ext
6927 if test "$am_cv_func_iconv" != yes; then
6928 am_save_LIBS="$LIBS"
6929 LIBS="$LIBS $LIBICONV"
6930 cat >conftest.$ac_ext <<_ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6941 iconv_t cd = iconv_open("","");
6942 iconv(cd,NULL,NULL,NULL,NULL);
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (ac_try="$ac_link"
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_link") 2>conftest.er1
6957 grep -v '^ *+' conftest.er1 >conftest.err
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest$ac_exeext &&
6965 $as_test_x conftest$ac_exeext; then
6967 am_cv_func_iconv=yes
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6976 conftest$ac_exeext conftest.$ac_ext
6977 LIBS="$am_save_LIBS"
6981 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6982 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6983 if test "$am_cv_func_iconv" = yes; then
6985 cat >>confdefs.h <<\_ACEOF
6986 #define HAVE_ICONV 1
6990 if test "$am_cv_lib_iconv" = yes; then
6991 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6992 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6993 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6994 echo "${ECHO_T}$LIBICONV" >&6; }
6996 CPPFLAGS="$am_save_CPPFLAGS"
7008 acl_save_prefix="$prefix"
7009 prefix="$acl_final_prefix"
7010 acl_save_exec_prefix="$exec_prefix"
7011 exec_prefix="$acl_final_exec_prefix"
7013 eval additional_includedir=\"$includedir\"
7014 eval additional_libdir=\"$libdir\"
7016 exec_prefix="$acl_save_exec_prefix"
7017 prefix="$acl_save_prefix"
7020 # Check whether --with-libintl-prefix was given.
7021 if test "${with_libintl_prefix+set}" = set; then
7022 withval=$with_libintl_prefix;
7023 if test "X$withval" = "Xno"; then
7026 if test "X$withval" = "X"; then
7028 acl_save_prefix="$prefix"
7029 prefix="$acl_final_prefix"
7030 acl_save_exec_prefix="$exec_prefix"
7031 exec_prefix="$acl_final_exec_prefix"
7033 eval additional_includedir=\"$includedir\"
7034 eval additional_libdir=\"$libdir\"
7036 exec_prefix="$acl_save_exec_prefix"
7037 prefix="$acl_save_prefix"
7040 additional_includedir="$withval/include"
7041 additional_libdir="$withval/lib"
7052 names_already_handled=
7053 names_next_round='intl '
7054 while test -n "$names_next_round"; do
7055 names_this_round="$names_next_round"
7057 for name in $names_this_round; do
7059 for n in $names_already_handled; do
7060 if test "$n" = "$name"; then
7065 if test -z "$already_handled"; then
7066 names_already_handled="$names_already_handled $name"
7067 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7068 eval value=\"\$HAVE_LIB$uppername\"
7069 if test -n "$value"; then
7070 if test "$value" = yes; then
7071 eval value=\"\$LIB$uppername\"
7072 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7073 eval value=\"\$LTLIB$uppername\"
7074 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7083 if test $use_additional = yes; then
7084 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7085 found_dir="$additional_libdir"
7086 found_so="$additional_libdir/lib$name.$shlibext"
7087 if test -f "$additional_libdir/lib$name.la"; then
7088 found_la="$additional_libdir/lib$name.la"
7091 if test -f "$additional_libdir/lib$name.$libext"; then
7092 found_dir="$additional_libdir"
7093 found_a="$additional_libdir/lib$name.$libext"
7094 if test -f "$additional_libdir/lib$name.la"; then
7095 found_la="$additional_libdir/lib$name.la"
7100 if test "X$found_dir" = "X"; then
7101 for x in $LDFLAGS $LTLIBINTL; do
7103 acl_save_prefix="$prefix"
7104 prefix="$acl_final_prefix"
7105 acl_save_exec_prefix="$exec_prefix"
7106 exec_prefix="$acl_final_exec_prefix"
7108 exec_prefix="$acl_save_exec_prefix"
7109 prefix="$acl_save_prefix"
7113 dir=`echo "X$x" | sed -e 's/^X-L//'`
7114 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7116 found_so="$dir/lib$name.$shlibext"
7117 if test -f "$dir/lib$name.la"; then
7118 found_la="$dir/lib$name.la"
7121 if test -f "$dir/lib$name.$libext"; then
7123 found_a="$dir/lib$name.$libext"
7124 if test -f "$dir/lib$name.la"; then
7125 found_la="$dir/lib$name.la"
7131 if test "X$found_dir" != "X"; then
7136 if test "X$found_dir" != "X"; then
7137 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7138 if test "X$found_so" != "X"; then
7139 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7140 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7143 for x in $ltrpathdirs; do
7144 if test "X$x" = "X$found_dir"; then
7149 if test -z "$haveit"; then
7150 ltrpathdirs="$ltrpathdirs $found_dir"
7152 if test "$hardcode_direct" = yes; then
7153 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7155 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7156 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7158 for x in $rpathdirs; do
7159 if test "X$x" = "X$found_dir"; then
7164 if test -z "$haveit"; then
7165 rpathdirs="$rpathdirs $found_dir"
7169 for x in $LDFLAGS $LIBINTL; do
7171 acl_save_prefix="$prefix"
7172 prefix="$acl_final_prefix"
7173 acl_save_exec_prefix="$exec_prefix"
7174 exec_prefix="$acl_final_exec_prefix"
7176 exec_prefix="$acl_save_exec_prefix"
7177 prefix="$acl_save_prefix"
7179 if test "X$x" = "X-L$found_dir"; then
7184 if test -z "$haveit"; then
7185 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7187 if test "$hardcode_minus_L" != no; then
7188 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7190 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7196 if test "X$found_a" != "X"; then
7197 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7199 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7202 additional_includedir=
7203 case "$found_dir" in
7205 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7206 additional_includedir="$basedir/include"
7209 if test "X$additional_includedir" != "X"; then
7210 if test "X$additional_includedir" != "X/usr/include"; then
7212 if test "X$additional_includedir" = "X/usr/local/include"; then
7213 if test -n "$GCC"; then
7215 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7219 if test -z "$haveit"; then
7220 for x in $CPPFLAGS $INCINTL; do
7222 acl_save_prefix="$prefix"
7223 prefix="$acl_final_prefix"
7224 acl_save_exec_prefix="$exec_prefix"
7225 exec_prefix="$acl_final_exec_prefix"
7227 exec_prefix="$acl_save_exec_prefix"
7228 prefix="$acl_save_prefix"
7230 if test "X$x" = "X-I$additional_includedir"; then
7235 if test -z "$haveit"; then
7236 if test -d "$additional_includedir"; then
7237 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7243 if test -n "$found_la"; then
7244 save_libdir="$libdir"
7246 */* | *\\*) . "$found_la" ;;
7247 *) . "./$found_la" ;;
7249 libdir="$save_libdir"
7250 for dep in $dependency_libs; do
7253 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7254 if test "X$additional_libdir" != "X/usr/lib"; then
7256 if test "X$additional_libdir" = "X/usr/local/lib"; then
7257 if test -n "$GCC"; then
7259 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7263 if test -z "$haveit"; then
7265 for x in $LDFLAGS $LIBINTL; do
7267 acl_save_prefix="$prefix"
7268 prefix="$acl_final_prefix"
7269 acl_save_exec_prefix="$exec_prefix"
7270 exec_prefix="$acl_final_exec_prefix"
7272 exec_prefix="$acl_save_exec_prefix"
7273 prefix="$acl_save_prefix"
7275 if test "X$x" = "X-L$additional_libdir"; then
7280 if test -z "$haveit"; then
7281 if test -d "$additional_libdir"; then
7282 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7286 for x in $LDFLAGS $LTLIBINTL; do
7288 acl_save_prefix="$prefix"
7289 prefix="$acl_final_prefix"
7290 acl_save_exec_prefix="$exec_prefix"
7291 exec_prefix="$acl_final_exec_prefix"
7293 exec_prefix="$acl_save_exec_prefix"
7294 prefix="$acl_save_prefix"
7296 if test "X$x" = "X-L$additional_libdir"; then
7301 if test -z "$haveit"; then
7302 if test -d "$additional_libdir"; then
7303 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7310 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7311 if test "$enable_rpath" != no; then
7313 for x in $rpathdirs; do
7314 if test "X$x" = "X$dir"; then
7319 if test -z "$haveit"; then
7320 rpathdirs="$rpathdirs $dir"
7323 for x in $ltrpathdirs; do
7324 if test "X$x" = "X$dir"; then
7329 if test -z "$haveit"; then
7330 ltrpathdirs="$ltrpathdirs $dir"
7335 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7338 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7341 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7342 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7348 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7349 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7355 if test "X$rpathdirs" != "X"; then
7356 if test -n "$hardcode_libdir_separator"; then
7358 for found_dir in $rpathdirs; do
7359 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7361 acl_save_libdir="$libdir"
7363 eval flag=\"$hardcode_libdir_flag_spec\"
7364 libdir="$acl_save_libdir"
7365 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7367 for found_dir in $rpathdirs; do
7368 acl_save_libdir="$libdir"
7370 eval flag=\"$hardcode_libdir_flag_spec\"
7371 libdir="$acl_save_libdir"
7372 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7376 if test "X$ltrpathdirs" != "X"; then
7377 for found_dir in $ltrpathdirs; do
7378 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7382 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7383 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7384 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 gt_save_CPPFLAGS="$CPPFLAGS"
7388 CPPFLAGS="$CPPFLAGS $INCINTL"
7389 gt_save_LIBS="$LIBS"
7390 LIBS="$LIBS $LIBINTL"
7391 cat >conftest.$ac_ext <<_ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 #include <libintl.h>
7398 extern int _nl_msg_cat_cntr;
7403 const char *_nl_expand_alias (const char *);
7407 bindtextdomain ("", "");
7408 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (ac_try="$ac_link"
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_link") 2>conftest.er1
7422 grep -v '^ *+' conftest.er1 >conftest.err
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest$ac_exeext &&
7430 $as_test_x conftest$ac_exeext; then
7431 gt_cv_func_gnugettext1_libintl=yes
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7436 gt_cv_func_gnugettext1_libintl=no
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7440 conftest$ac_exeext conftest.$ac_ext
7441 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7442 LIBS="$LIBS $LIBICONV"
7443 cat >conftest.$ac_ext <<_ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 #include <libintl.h>
7450 extern int _nl_msg_cat_cntr;
7455 const char *_nl_expand_alias (const char *);
7459 bindtextdomain ("", "");
7460 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (ac_try="$ac_link"
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472 (eval "$ac_link") 2>conftest.er1
7474 grep -v '^ *+' conftest.er1 >conftest.err
7476 cat conftest.err >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } && {
7479 test -z "$ac_c_werror_flag" ||
7480 test ! -s conftest.err
7481 } && test -s conftest$ac_exeext &&
7482 $as_test_x conftest$ac_exeext; then
7483 LIBINTL="$LIBINTL $LIBICONV"
7484 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7485 gt_cv_func_gnugettext1_libintl=yes
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7495 conftest$ac_exeext conftest.$ac_ext
7497 CPPFLAGS="$gt_save_CPPFLAGS"
7498 LIBS="$gt_save_LIBS"
7500 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7501 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7504 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7505 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7506 && test "$PACKAGE" != gettext-runtime \
7507 && test "$PACKAGE" != gettext-tools; }; then
7508 gt_use_preinstalled_gnugettext=yes
7517 if test -n "$INTL_MACOSX_LIBS"; then
7518 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7519 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7520 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7521 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7525 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7526 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7528 cat >>confdefs.h <<\_ACEOF
7529 #define ENABLE_NLS 1
7537 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7538 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7539 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7540 echo "${ECHO_T}$USE_NLS" >&6; }
7541 if test "$USE_NLS" = "yes"; then
7542 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7543 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7544 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7545 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7546 gt_source="external libintl"
7551 gt_source="included intl directory"
7553 { echo "$as_me:$LINENO: result: $gt_source" >&5
7554 echo "${ECHO_T}$gt_source" >&6; }
7557 if test "$USE_NLS" = "yes"; then
7559 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7560 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7561 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7562 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7563 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7564 echo "${ECHO_T}$LIBINTL" >&6; }
7566 for element in $INCINTL; do
7568 for x in $CPPFLAGS; do
7570 acl_save_prefix="$prefix"
7571 prefix="$acl_final_prefix"
7572 acl_save_exec_prefix="$exec_prefix"
7573 exec_prefix="$acl_final_exec_prefix"
7575 exec_prefix="$acl_save_exec_prefix"
7576 prefix="$acl_save_prefix"
7578 if test "X$x" = "X$element"; then
7583 if test -z "$haveit"; then
7584 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_GETTEXT 1
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_DCGETTEXT 1
7614 if test x${prefix} = xNONE ; then
7615 if test `eval echo ${datadir}` = NONE/share ; then
7620 # ------------------------------------------------------------------
7621 # If the user has not set --prefix, we set our default to nothing.
7622 # In this case, if the user has not set --sysconfdir, we set it
7623 # to the package default of /etc/bacula. If either --prefix or
7624 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7625 # ------------------------------------------------------------------
7626 if test x${prefix} = xNONE ; then
7627 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7628 sysconfdir=/etc/bacula
7632 sysconfdir=`eval echo ${sysconfdir}`
7633 datadir=`eval echo ${datadir}`
7634 localedir=`eval echo ${datadir}/locale`
7635 cat >>confdefs.h <<_ACEOF
7636 #define LOCALEDIR "$localedir"
7639 cat >>confdefs.h <<_ACEOF
7640 #define SYSCONFDIR "$sysconfdir"
7644 # -------------------------------------------------------------------------
7645 # If the user has not set --exec-prefix, we default to ${prefix}
7646 # -------------------------------------------------------------------------
7647 if test x${exec_prefix} = xNONE ; then
7648 exec_prefix=${prefix}
7651 # ------------------------------------------------------------------
7652 # If the user has not set --sbindir, we set our default as /sbin
7653 # ------------------------------------------------------------------
7654 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7655 sbindir=${exec_prefix}/sbin
7657 sbindir=`eval echo ${sbindir}`
7660 # -------------------------------------------------------------------------
7661 # If the user has not set --mandir, we default to /usr/share/man
7662 # -------------------------------------------------------------------------
7663 if test x$mandir = x'${prefix}/man' ; then
7664 mandir=/usr/share/man
7668 for ac_prog in msgfmt
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_MSGFMT+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 MSGFMT=$ac_cv_path_MSGFMT
7701 if test -n "$MSGFMT"; then
7702 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7703 echo "${ECHO_T}$MSGFMT" >&6; }
7705 { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7710 test -n "$MSGFMT" && break
7712 test -n "$MSGFMT" || MSGFMT="no"
7714 if test "$MSGFMT" = "no"
7716 echo 'msgfmt program not found, disabling NLS !'
7718 USE_INCLUDED_LIBINTL=no
7721 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7722 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7723 if test "${ac_cv_gnu_library_2+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 cat >conftest.$ac_ext <<_ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7733 #include <features.h>
7734 #ifdef __GNU_LIBRARY__
7735 #if (__GLIBC__ >= 2)
7741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7742 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7743 ac_cv_gnu_library_2=yes
7745 ac_cv_gnu_library_2=no
7752 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7753 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7755 GLIBC2="$ac_cv_gnu_library_2"
7759 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7760 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7761 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 ac_check_lib_save_LIBS=$LIBS
7765 LIBS="-lcposix $LIBS"
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7773 /* Override any GCC internal prototype to avoid an error.
7774 Use char because int might match the return type of a GCC
7775 builtin and then its argument prototype would still apply. */
7788 rm -f conftest.$ac_objext conftest$ac_exeext
7789 if { (ac_try="$ac_link"
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_link") 2>conftest.er1
7797 grep -v '^ *+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest$ac_exeext &&
7805 $as_test_x conftest$ac_exeext; then
7806 ac_cv_lib_cposix_strerror=yes
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7811 ac_cv_lib_cposix_strerror=no
7814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7815 conftest$ac_exeext conftest.$ac_ext
7816 LIBS=$ac_check_lib_save_LIBS
7818 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7819 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7820 if test $ac_cv_lib_cposix_strerror = yes; then
7821 LIBS="$LIBS -lcposix"
7826 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7828 if test "${ac_cv_header_stdc+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7850 rm -f conftest.$ac_objext
7851 if { (ac_try="$ac_compile"
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_compile") 2>conftest.er1
7859 grep -v '^ *+' conftest.er1 >conftest.err
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest.$ac_objext; then
7867 ac_cv_header_stdc=yes
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 ac_cv_header_stdc=no
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 if test $ac_cv_header_stdc = yes; then
7878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889 $EGREP "memchr" >/dev/null 2>&1; then
7892 ac_cv_header_stdc=no
7898 if test $ac_cv_header_stdc = yes; then
7899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7910 $EGREP "free" >/dev/null 2>&1; then
7913 ac_cv_header_stdc=no
7919 if test $ac_cv_header_stdc = yes; then
7920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7921 if test "$cross_compiling" = yes; then
7924 cat >conftest.$ac_ext <<_ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7932 #if ((' ' & 0x0FF) == 0x020)
7933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7936 # define ISLOWER(c) \
7937 (('a' <= (c) && (c) <= 'i') \
7938 || ('j' <= (c) && (c) <= 'r') \
7939 || ('s' <= (c) && (c) <= 'z'))
7940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7948 for (i = 0; i < 256; i++)
7949 if (XOR (islower (i), ISLOWER (i))
7950 || toupper (i) != TOUPPER (i))
7955 rm -f conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7966 { (case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_try") 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7977 echo "$as_me: program exited with status $ac_status" >&5
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7982 ac_cv_header_stdc=no
7984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7992 if test $ac_cv_header_stdc = yes; then
7994 cat >>confdefs.h <<\_ACEOF
7995 #define STDC_HEADERS 1
8000 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8001 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8002 if test "${ac_cv_c_const+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 cat >conftest.$ac_ext <<_ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8015 /* FIXME: Include the comments suggested by Paul. */
8017 /* Ultrix mips cc rejects this. */
8018 typedef int charset[2];
8020 /* SunOS 4.1.1 cc rejects this. */
8021 char const *const *pcpcc;
8023 /* NEC SVR4.0.2 mips cc rejects this. */
8024 struct point {int x, y;};
8025 static struct point const zero = {0,0};
8026 /* AIX XL C 1.02.0.0 rejects this.
8027 It does not let you subtract one const X* pointer from another in
8028 an arm of an if-expression whose if-part is not a constant
8030 const char *g = "string";
8031 pcpcc = &g + (g ? g-g : 0);
8032 /* HPUX 7.0 cc rejects these. */
8034 ppc = (char**) pcpcc;
8035 pcpcc = (char const *const *) ppc;
8036 { /* SCO 3.2v4 cc rejects this. */
8038 char const *s = 0 ? (char *) 0 : (char const *) 0;
8043 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8045 const int *foo = &x[0];
8048 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8049 typedef const int *iptr;
8053 { /* AIX XL C 1.02.0.0 rejects this saying
8054 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8055 struct s { int j; const int *ap[3]; };
8056 struct s *b; b->j = 5;
8058 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8062 return !cs[0] && !zero.x;
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_compile") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.$ac_objext; then
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8097 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8098 if test $ac_cv_c_const = no; then
8100 cat >>confdefs.h <<\_ACEOF
8107 { echo "$as_me:$LINENO: checking for signed" >&5
8108 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8109 if test "${bh_cv_c_signed+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 cat >conftest.$ac_ext <<_ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8136 grep -v '^ *+' conftest.er1 >conftest.err
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8155 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8156 if test $bh_cv_c_signed = no; then
8158 cat >>confdefs.h <<\_ACEOF
8164 { echo "$as_me:$LINENO: checking for inline" >&5
8165 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8166 if test "${ac_cv_c_inline+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 for ac_kw in inline __inline__ __inline; do
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8179 static $ac_kw foo_t static_foo () {return 0; }
8180 $ac_kw foo_t foo () {return 0; }
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_compile") 2>conftest.er1
8193 grep -v '^ *+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest.$ac_objext; then
8201 ac_cv_c_inline=$ac_kw
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 test "$ac_cv_c_inline" != no && break
8214 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8215 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8218 case $ac_cv_c_inline in
8221 case $ac_cv_c_inline in
8223 *) ac_val=$ac_cv_c_inline;;
8225 cat >>confdefs.h <<_ACEOF
8227 #define inline $ac_val
8233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8244 inttypes.h stdint.h unistd.h
8246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 cat >conftest.$ac_ext <<_ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8258 $ac_includes_default
8260 #include <$ac_header>
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8279 eval "$as_ac_Header=yes"
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 eval "$as_ac_Header=no"
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 ac_res=`eval echo '${'$as_ac_Header'}'`
8290 { echo "$as_me:$LINENO: result: $ac_res" >&5
8291 echo "${ECHO_T}$ac_res" >&6; }
8292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8293 cat >>confdefs.h <<_ACEOF
8294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8302 { echo "$as_me:$LINENO: checking for off_t" >&5
8303 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8304 if test "${ac_cv_type_off_t+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 cat >conftest.$ac_ext <<_ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8313 $ac_includes_default
8314 typedef off_t ac__type_new_;
8318 if ((ac__type_new_ *) 0)
8320 if (sizeof (ac__type_new_))
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
8343 ac_cv_type_off_t=yes
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8354 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8355 if test $ac_cv_type_off_t = yes; then
8359 cat >>confdefs.h <<_ACEOF
8360 #define off_t long int
8365 { echo "$as_me:$LINENO: checking for size_t" >&5
8366 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8367 if test "${ac_cv_type_size_t+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 typedef size_t ac__type_new_;
8381 if ((ac__type_new_ *) 0)
8383 if (sizeof (ac__type_new_))
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_type_size_t=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_cv_type_size_t=no
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8417 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8418 if test $ac_cv_type_size_t = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define size_t unsigned int
8429 { echo "$as_me:$LINENO: checking for long long" >&5
8430 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8431 if test "${ac_cv_type_long_long+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 long long ll = 1LL; int i = 63;
8444 long long llmax = (long long) -1;
8445 return ll << i | ll >> i | llmax / ll | llmax % ll;
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (ac_try="$ac_link"
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_link") 2>conftest.er1
8459 grep -v '^ *+' conftest.er1 >conftest.err
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } && {
8464 test -z "$ac_c_werror_flag" ||
8465 test ! -s conftest.err
8466 } && test -s conftest$ac_exeext &&
8467 $as_test_x conftest$ac_exeext; then
8468 ac_cv_type_long_long=yes
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_cv_type_long_long=no
8476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8477 conftest$ac_exeext conftest.$ac_ext
8479 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8480 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8481 if test $ac_cv_type_long_long = yes; then
8483 cat >>confdefs.h <<\_ACEOF
8484 #define HAVE_LONG_LONG 1
8490 { echo "$as_me:$LINENO: checking for long double" >&5
8491 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8492 if test "${gt_cv_c_long_double+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 if test "$GCC" = yes; then
8496 gt_cv_c_long_double=yes
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8505 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8506 long double foo = 0.0;
8507 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8508 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 gt_cv_c_long_double=yes
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 gt_cv_c_long_double=no
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8547 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8548 if test $gt_cv_c_long_double = yes; then
8550 cat >>confdefs.h <<\_ACEOF
8551 #define HAVE_LONG_DOUBLE 1
8557 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8558 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8559 if test "${gt_cv_c_wchar_t+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8569 wchar_t foo = (wchar_t)'\0';
8578 rm -f conftest.$ac_objext
8579 if { (ac_try="$ac_compile"
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_compile") 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } && {
8592 test -z "$ac_c_werror_flag" ||
8593 test ! -s conftest.err
8594 } && test -s conftest.$ac_objext; then
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8606 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8607 if test $gt_cv_c_wchar_t = yes; then
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE_WCHAR_T 1
8616 { echo "$as_me:$LINENO: checking for wint_t" >&5
8617 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8618 if test "${gt_cv_c_wint_t+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8628 wint_t foo = (wchar_t)'\0';
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_compile") 2>conftest.er1
8646 grep -v '^ *+' conftest.er1 >conftest.err
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest.$ac_objext; then
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8665 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8666 if test $gt_cv_c_wint_t = yes; then
8668 cat >>confdefs.h <<\_ACEOF
8669 #define HAVE_WINT_T 1
8675 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8676 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8677 if test "${gl_cv_header_inttypes_h+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 cat >conftest.$ac_ext <<_ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 #include <sys/types.h>
8687 #include <inttypes.h>
8691 uintmax_t i = (uintmax_t) -1;
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8705 grep -v '^ *+' conftest.er1 >conftest.err
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.$ac_objext; then
8713 gl_cv_header_inttypes_h=yes
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 gl_cv_header_inttypes_h=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8724 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8725 if test $gl_cv_header_inttypes_h = yes; then
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8734 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8735 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8736 if test "${gl_cv_header_stdint_h+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 cat >conftest.$ac_ext <<_ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8745 #include <sys/types.h>
8750 uintmax_t i = (uintmax_t) -1;
8755 rm -f conftest.$ac_objext
8756 if { (ac_try="$ac_compile"
8758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762 (eval "$ac_compile") 2>conftest.er1
8764 grep -v '^ *+' conftest.er1 >conftest.err
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
8771 } && test -s conftest.$ac_objext; then
8772 gl_cv_header_stdint_h=yes
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 gl_cv_header_stdint_h=no
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8783 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8784 if test $gl_cv_header_stdint_h = yes; then
8786 cat >>confdefs.h <<_ACEOF
8787 #define HAVE_STDINT_H_WITH_UINTMAX 1
8795 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8796 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8797 if test "${gt_cv_c_intmax_t+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8809 #if HAVE_STDINT_H_WITH_UINTMAX
8812 #if HAVE_INTTYPES_H_WITH_UINTMAX
8813 #include <inttypes.h>
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_compile") 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } && {
8838 test -z "$ac_c_werror_flag" ||
8839 test ! -s conftest.err
8840 } && test -s conftest.$ac_objext; then
8841 gt_cv_c_intmax_t=yes
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8852 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8853 if test $gt_cv_c_intmax_t = yes; then
8855 cat >>confdefs.h <<\_ACEOF
8856 #define HAVE_INTMAX_T 1
8863 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8864 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8865 if test "${gt_cv_func_printf_posix+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 if test "$cross_compiling" = yes; then
8871 cat >conftest.$ac_ext <<_ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8878 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8884 $EGREP "notposix" >/dev/null 2>&1; then
8885 gt_cv_func_printf_posix="guessing no"
8887 gt_cv_func_printf_posix="guessing yes"
8893 cat >conftest.$ac_ext <<_ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8902 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8903 dollar expansion (possibly an autoconf bug). */
8904 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8905 static char buf[100];
8908 sprintf (buf, format, 33, 55);
8909 return (strcmp (buf, "55 33") != 0);
8912 rm -f conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_link") 2>&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8923 { (case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_try") 2>&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8932 gt_cv_func_printf_posix=yes
8934 echo "$as_me: program exited with status $ac_status" >&5
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8939 gt_cv_func_printf_posix=no
8941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8947 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8948 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8949 case $gt_cv_func_printf_posix in
8952 cat >>confdefs.h <<\_ACEOF
8953 #define HAVE_POSIX_PRINTF 1
8959 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8960 # for constant arguments. Useless!
8961 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8962 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8963 if test "${ac_cv_working_alloca_h+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 cat >conftest.$ac_ext <<_ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8976 char *p = (char *) alloca (2 * sizeof (int));
8982 rm -f conftest.$ac_objext conftest$ac_exeext
8983 if { (ac_try="$ac_link"
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989 (eval "$ac_link") 2>conftest.er1
8991 grep -v '^ *+' conftest.er1 >conftest.err
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } && {
8996 test -z "$ac_c_werror_flag" ||
8997 test ! -s conftest.err
8998 } && test -s conftest$ac_exeext &&
8999 $as_test_x conftest$ac_exeext; then
9000 ac_cv_working_alloca_h=yes
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 ac_cv_working_alloca_h=no
9008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9009 conftest$ac_exeext conftest.$ac_ext
9011 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9012 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9013 if test $ac_cv_working_alloca_h = yes; then
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_ALLOCA_H 1
9021 { echo "$as_me:$LINENO: checking for alloca" >&5
9022 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9023 if test "${ac_cv_func_alloca_works+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 # define alloca __builtin_alloca
9036 # include <malloc.h>
9037 # define alloca _alloca
9039 # ifdef HAVE_ALLOCA_H
9040 # include <alloca.h>
9045 # ifndef alloca /* predefined by HP cc +Olibcalls */
9056 char *p = (char *) alloca (1);
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (ac_try="$ac_link"
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_link") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest$ac_exeext &&
9079 $as_test_x conftest$ac_exeext; then
9080 ac_cv_func_alloca_works=yes
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 ac_cv_func_alloca_works=no
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089 conftest$ac_exeext conftest.$ac_ext
9091 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9092 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9094 if test $ac_cv_func_alloca_works = yes; then
9096 cat >>confdefs.h <<\_ACEOF
9097 #define HAVE_ALLOCA 1
9101 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9102 # that cause trouble. Some versions do not even contain alloca or
9103 # contain a buggy version. If you still want to use their alloca,
9104 # use ar to extract alloca.o from them instead of compiling alloca.c.
9106 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9108 cat >>confdefs.h <<\_ACEOF
9113 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9114 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9115 if test "${ac_cv_os_cray+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 cat >conftest.$ac_ext <<_ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 #if defined CRAY && ! defined CRAY2
9131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9132 $EGREP "webecray" >/dev/null 2>&1; then
9140 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9141 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9142 if test $ac_cv_os_cray = yes; then
9143 for ac_func in _getb67 GETB67 getb67; do
9144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 cat >conftest.$ac_ext <<_ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9158 #define $ac_func innocuous_$ac_func
9160 /* System header to define __stub macros and hopefully few prototypes,
9161 which can conflict with char $ac_func (); below.
9162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9163 <limits.h> exists even on freestanding compilers. */
9166 # include <limits.h>
9168 # include <assert.h>
9173 /* Override any GCC internal prototype to avoid an error.
9174 Use char because int might match the return type of a GCC
9175 builtin and then its argument prototype would still apply. */
9180 /* The GNU C library defines this for functions which it implements
9181 to always fail with ENOSYS. Some functions are actually named
9182 something starting with __ and the normal name is an alias. */
9183 #if defined __stub_$ac_func || defined __stub___$ac_func
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (ac_try="$ac_link"
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_link") 2>conftest.er1
9204 grep -v '^ *+' conftest.er1 >conftest.err
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && {
9209 test -z "$ac_c_werror_flag" ||
9210 test ! -s conftest.err
9211 } && test -s conftest$ac_exeext &&
9212 $as_test_x conftest$ac_exeext; then
9213 eval "$as_ac_var=yes"
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 eval "$as_ac_var=no"
9221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9222 conftest$ac_exeext conftest.$ac_ext
9224 ac_res=`eval echo '${'$as_ac_var'}'`
9225 { echo "$as_me:$LINENO: result: $ac_res" >&5
9226 echo "${ECHO_T}$ac_res" >&6; }
9227 if test `eval echo '${'$as_ac_var'}'` = yes; then
9229 cat >>confdefs.h <<_ACEOF
9230 #define CRAY_STACKSEG_END $ac_func
9239 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9240 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9241 if test "${ac_cv_c_stack_direction+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 if test "$cross_compiling" = yes; then
9245 ac_cv_c_stack_direction=0
9247 cat >conftest.$ac_ext <<_ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9253 $ac_includes_default
9255 find_stack_direction ()
9257 static char *addr = 0;
9262 return find_stack_direction ();
9265 return (&dummy > addr) ? 1 : -1;
9271 return find_stack_direction () < 0;
9274 rm -f conftest$ac_exeext
9275 if { (ac_try="$ac_link"
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_link") 2>&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9285 { (case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_try") 2>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_cv_c_stack_direction=1
9296 echo "$as_me: program exited with status $ac_status" >&5
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9301 ac_cv_c_stack_direction=-1
9303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9308 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9309 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9311 cat >>confdefs.h <<_ACEOF
9312 #define STACK_DIRECTION $ac_cv_c_stack_direction
9320 for ac_header in stdlib.h unistd.h
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 ac_res=`eval echo '${'$as_ac_Header'}'`
9330 { echo "$as_me:$LINENO: result: $ac_res" >&5
9331 echo "${ECHO_T}$ac_res" >&6; }
9333 # Is the header compilable?
9334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9336 cat >conftest.$ac_ext <<_ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 $ac_includes_default
9343 #include <$ac_header>
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_compile") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest.$ac_objext; then
9362 ac_header_compiler=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_header_compiler=no
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6; }
9374 # Is the header present?
9375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 #include <$ac_header>
9385 if { (ac_try="$ac_cpp conftest.$ac_ext"
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9393 grep -v '^ *+' conftest.er1 >conftest.err
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } >/dev/null && {
9398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9401 ac_header_preproc=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_header_preproc=no
9409 rm -f conftest.err conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411 echo "${ECHO_T}$ac_header_preproc" >&6; }
9413 # So? What about this header?
9414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9420 ac_header_preproc=yes
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 eval "$as_ac_Header=\$ac_header_preproc"
9445 ac_res=`eval echo '${'$as_ac_Header'}'`
9446 { echo "$as_me:$LINENO: result: $ac_res" >&5
9447 echo "${ECHO_T}$ac_res" >&6; }
9450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9451 cat >>confdefs.h <<_ACEOF
9452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9460 for ac_func in getpagesize
9462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9476 #define $ac_func innocuous_$ac_func
9478 /* System header to define __stub macros and hopefully few prototypes,
9479 which can conflict with char $ac_func (); below.
9480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481 <limits.h> exists even on freestanding compilers. */
9484 # include <limits.h>
9486 # include <assert.h>
9491 /* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9498 /* The GNU C library defines this for functions which it implements
9499 to always fail with ENOSYS. Some functions are actually named
9500 something starting with __ and the normal name is an alias. */
9501 #if defined __stub_$ac_func || defined __stub___$ac_func
9513 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (ac_try="$ac_link"
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_link") 2>conftest.er1
9522 grep -v '^ *+' conftest.er1 >conftest.err
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && {
9527 test -z "$ac_c_werror_flag" ||
9528 test ! -s conftest.err
9529 } && test -s conftest$ac_exeext &&
9530 $as_test_x conftest$ac_exeext; then
9531 eval "$as_ac_var=yes"
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 eval "$as_ac_var=no"
9539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9540 conftest$ac_exeext conftest.$ac_ext
9542 ac_res=`eval echo '${'$as_ac_var'}'`
9543 { echo "$as_me:$LINENO: result: $ac_res" >&5
9544 echo "${ECHO_T}$ac_res" >&6; }
9545 if test `eval echo '${'$as_ac_var'}'` = yes; then
9546 cat >>confdefs.h <<_ACEOF
9547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9553 { echo "$as_me:$LINENO: checking for working mmap" >&5
9554 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 if test "$cross_compiling" = yes; then
9559 ac_cv_func_mmap_fixed_mapped=no
9561 cat >conftest.$ac_ext <<_ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 $ac_includes_default
9568 /* malloc might have been renamed as rpl_malloc. */
9571 /* Thanks to Mike Haertel and Jim Avera for this test.
9572 Here is a matrix of mmap possibilities:
9573 mmap private not fixed
9574 mmap private fixed at somewhere currently unmapped
9575 mmap private fixed at somewhere already mapped
9576 mmap shared not fixed
9577 mmap shared fixed at somewhere currently unmapped
9578 mmap shared fixed at somewhere already mapped
9579 For private mappings, we should verify that changes cannot be read()
9580 back from the file, nor mmap's back from the file at a different
9581 address. (There have been systems where private was not correctly
9582 implemented like the infamous i386 svr4.0, and systems where the
9583 VM page cache was not coherent with the file system buffer cache
9584 like early versions of FreeBSD and possibly contemporary NetBSD.)
9585 For shared mappings, we should conversely verify that changes get
9586 propagated back to all the places they're supposed to be.
9588 Grep wants private fixed already mapped.
9589 The main things grep needs to know about mmap are:
9590 * does it exist and is it safe to write into the mmap'd area
9591 * how to use it (BSD variants) */
9594 #include <sys/mman.h>
9596 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9600 /* This mess was copied from the GNU getpagesize.h. */
9601 #ifndef HAVE_GETPAGESIZE
9602 /* Assume that all systems that can run configure have sys/param.h. */
9603 # ifndef HAVE_SYS_PARAM_H
9604 # define HAVE_SYS_PARAM_H 1
9607 # ifdef _SC_PAGESIZE
9608 # define getpagesize() sysconf(_SC_PAGESIZE)
9609 # else /* no _SC_PAGESIZE */
9610 # ifdef HAVE_SYS_PARAM_H
9611 # include <sys/param.h>
9612 # ifdef EXEC_PAGESIZE
9613 # define getpagesize() EXEC_PAGESIZE
9614 # else /* no EXEC_PAGESIZE */
9616 # define getpagesize() NBPG * CLSIZE
9619 # endif /* no CLSIZE */
9620 # else /* no NBPG */
9622 # define getpagesize() NBPC
9623 # else /* no NBPC */
9625 # define getpagesize() PAGESIZE
9626 # endif /* PAGESIZE */
9627 # endif /* no NBPC */
9628 # endif /* no NBPG */
9629 # endif /* no EXEC_PAGESIZE */
9630 # else /* no HAVE_SYS_PARAM_H */
9631 # define getpagesize() 8192 /* punt totally */
9632 # endif /* no HAVE_SYS_PARAM_H */
9633 # endif /* no _SC_PAGESIZE */
9635 #endif /* no HAVE_GETPAGESIZE */
9640 char *data, *data2, *data3;
9644 pagesize = getpagesize ();
9646 /* First, make a file with some known garbage in it. */
9647 data = (char *) malloc (pagesize);
9650 for (i = 0; i < pagesize; ++i)
9651 *(data + i) = rand ();
9653 fd = creat ("conftest.mmap", 0600);
9656 if (write (fd, data, pagesize) != pagesize)
9660 /* Next, try to mmap the file at a fixed address which already has
9661 something else allocated at it. If we can, also make sure that
9662 we see the same garbage. */
9663 fd = open ("conftest.mmap", O_RDWR);
9666 data2 = (char *) malloc (2 * pagesize);
9669 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9670 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9671 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9673 for (i = 0; i < pagesize; ++i)
9674 if (*(data + i) != *(data2 + i))
9677 /* Finally, make sure that changes to the mapped area do not
9678 percolate back to the file as seen by read(). (This is a bug on
9679 some variants of i386 svr4.0.) */
9680 for (i = 0; i < pagesize; ++i)
9681 *(data2 + i) = *(data2 + i) + 1;
9682 data3 = (char *) malloc (pagesize);
9685 if (read (fd, data3, pagesize) != pagesize)
9687 for (i = 0; i < pagesize; ++i)
9688 if (*(data + i) != *(data3 + i))
9694 rm -f conftest$ac_exeext
9695 if { (ac_try="$ac_link"
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_link") 2>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9705 { (case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_try") 2>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_func_mmap_fixed_mapped=yes
9716 echo "$as_me: program exited with status $ac_status" >&5
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9721 ac_cv_func_mmap_fixed_mapped=no
9723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9728 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9729 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9730 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9732 cat >>confdefs.h <<\_ACEOF
9740 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9741 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9742 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 cat >conftest.$ac_ext <<_ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 #include <features.h>
9753 #ifdef __GNU_LIBRARY__
9754 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9761 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9762 ac_cv_gnu_library_2_1=yes
9764 ac_cv_gnu_library_2_1=no
9771 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9772 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9774 GLIBC21="$ac_cv_gnu_library_2_1"
9779 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9780 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9781 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 if test "$cross_compiling" = yes; then
9787 # Guess based on the CPU.
9789 alpha* | i3456786 | m68k | s390*)
9790 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9792 gt_cv_int_divbyzero_sigfpe="guessing no";;
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9808 sigfpe_handler (int sig)
9810 sigfpe_handler (sig) int sig;
9813 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9814 exit (sig != SIGFPE);
9824 signal (SIGFPE, sigfpe_handler);
9825 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9826 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9827 signal (SIGTRAP, sigfpe_handler);
9829 /* Linux/SPARC yields signal SIGILL. */
9830 #if defined (__sparc__) && defined (__linux__)
9831 signal (SIGILL, sigfpe_handler);
9840 rm -f conftest$ac_exeext
9841 if { (ac_try="$ac_link"
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_link") 2>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9851 { (case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_try") 2>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 gt_cv_int_divbyzero_sigfpe=yes
9862 echo "$as_me: program exited with status $ac_status" >&5
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9867 gt_cv_int_divbyzero_sigfpe=no
9869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9875 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9876 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9877 case "$gt_cv_int_divbyzero_sigfpe" in
9882 cat >>confdefs.h <<_ACEOF
9883 #define INTDIV0_RAISES_SIGFPE $value
9888 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9889 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9890 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 unsigned long long ull = 1ULL; int i = 63;
9903 unsigned long long ullmax = (unsigned long long) -1;
9904 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (ac_try="$ac_link"
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_link") 2>conftest.er1
9918 grep -v '^ *+' conftest.er1 >conftest.err
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } && {
9923 test -z "$ac_c_werror_flag" ||
9924 test ! -s conftest.err
9925 } && test -s conftest$ac_exeext &&
9926 $as_test_x conftest$ac_exeext; then
9927 ac_cv_type_unsigned_long_long=yes
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_cv_type_unsigned_long_long=no
9935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9936 conftest$ac_exeext conftest.$ac_ext
9938 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9939 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9940 if test $ac_cv_type_unsigned_long_long = yes; then
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_UNSIGNED_LONG_LONG 1
9951 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9953 test $ac_cv_type_unsigned_long_long = yes \
9954 && ac_type='unsigned long long' \
9955 || ac_type='unsigned long'
9957 cat >>confdefs.h <<_ACEOF
9958 #define uintmax_t $ac_type
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_UINTMAX_T 1
9970 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9971 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9972 if test "${gt_cv_header_inttypes_h+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 #include <sys/types.h>
9983 #include <inttypes.h>
9992 rm -f conftest.$ac_objext
9993 if { (ac_try="$ac_compile"
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_compile") 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest.$ac_objext; then
10009 gt_cv_header_inttypes_h=yes
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 gt_cv_header_inttypes_h=no
10017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10021 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10022 if test $gt_cv_header_inttypes_h = yes; then
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_INTTYPES_H 1
10032 if test $gt_cv_header_inttypes_h = yes; then
10033 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10034 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10035 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #include <inttypes.h>
10058 rm -f conftest.$ac_objext
10059 if { (ac_try="$ac_compile"
10060 case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_compile") 2>conftest.er1
10067 grep -v '^ *+' conftest.er1 >conftest.err
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && {
10072 test -z "$ac_c_werror_flag" ||
10073 test ! -s conftest.err
10074 } && test -s conftest.$ac_objext; then
10075 gt_cv_inttypes_pri_broken=no
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 gt_cv_inttypes_pri_broken=yes
10083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10087 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10089 if test "$gt_cv_inttypes_pri_broken" = yes; then
10091 cat >>confdefs.h <<_ACEOF
10092 #define PRI_MACROS_BROKEN 1
10099 for ac_header in stdint.h
10101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 ac_res=`eval echo '${'$as_ac_Header'}'`
10109 { echo "$as_me:$LINENO: result: $ac_res" >&5
10110 echo "${ECHO_T}$ac_res" >&6; }
10112 # Is the header compilable?
10113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10115 cat >conftest.$ac_ext <<_ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 $ac_includes_default
10122 #include <$ac_header>
10124 rm -f conftest.$ac_objext
10125 if { (ac_try="$ac_compile"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_compile") 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && {
10138 test -z "$ac_c_werror_flag" ||
10139 test ! -s conftest.err
10140 } && test -s conftest.$ac_objext; then
10141 ac_header_compiler=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_header_compiler=no
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10151 echo "${ECHO_T}$ac_header_compiler" >&6; }
10153 # Is the header present?
10154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 #include <$ac_header>
10164 if { (ac_try="$ac_cpp conftest.$ac_ext"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } >/dev/null && {
10177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10180 ac_header_preproc=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_header_preproc=no
10188 rm -f conftest.err conftest.$ac_ext
10189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10190 echo "${ECHO_T}$ac_header_preproc" >&6; }
10192 # So? What about this header?
10193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10199 ac_header_preproc=yes
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 eval "$as_ac_Header=\$ac_header_preproc"
10224 ac_res=`eval echo '${'$as_ac_Header'}'`
10225 { echo "$as_me:$LINENO: result: $ac_res" >&5
10226 echo "${ECHO_T}$ac_res" >&6; }
10229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10230 cat >>confdefs.h <<_ACEOF
10231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10238 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10239 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10241 cat >conftest.$ac_ext <<_ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10248 #include <limits.h>
10250 #include <stdint.h>
10257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10258 $EGREP "Found it" >/dev/null 2>&1; then
10263 if test -z "$result"; then
10264 if test "$cross_compiling" = yes; then
10265 # Depending upon the size, compute the lo and hi bounds.
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272 #include <stddef.h>
10276 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_compile") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1 >conftest.err
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest.$ac_objext; then
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 #include <stddef.h>
10312 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10319 rm -f conftest.$ac_objext
10320 if { (ac_try="$ac_compile"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_compile") 2>conftest.er1
10328 grep -v '^ *+' conftest.er1 >conftest.err
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest.$ac_objext; then
10336 ac_hi=$ac_mid; break
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 ac_lo=`expr $ac_mid + 1`
10342 if test $ac_lo -le $ac_mid; then
10346 ac_mid=`expr 2 '*' $ac_mid + 1`
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 cat >conftest.$ac_ext <<_ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 #include <stddef.h>
10365 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10372 rm -f conftest.$ac_objext
10373 if { (ac_try="$ac_compile"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_compile") 2>conftest.er1
10381 grep -v '^ *+' conftest.er1 >conftest.err
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest.$ac_objext; then
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 #include <stddef.h>
10401 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10408 rm -f conftest.$ac_objext
10409 if { (ac_try="$ac_compile"
10410 case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_compile") 2>conftest.er1
10417 grep -v '^ *+' conftest.er1 >conftest.err
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && {
10422 test -z "$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 } && test -s conftest.$ac_objext; then
10425 ac_lo=$ac_mid; break
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 ac_hi=`expr '(' $ac_mid ')' - 1`
10431 if test $ac_mid -le $ac_hi; then
10435 ac_mid=`expr 2 '*' $ac_mid`
10438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 # Binary search between lo and hi bounds.
10452 while test "x$ac_lo" != "x$ac_hi"; do
10453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10454 cat >conftest.$ac_ext <<_ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <stddef.h>
10464 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10471 rm -f conftest.$ac_objext
10472 if { (ac_try="$ac_compile"
10473 case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_compile") 2>conftest.er1
10480 grep -v '^ *+' conftest.er1 >conftest.err
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_c_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest.$ac_objext; then
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10493 ac_lo=`expr '(' $ac_mid ')' + 1`
10496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499 ?*) res_hi=$ac_lo;;
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 #include <stddef.h>
10510 static long int longval () { return ~(size_t)0 / 10; }
10511 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10513 #include <stdlib.h>
10518 FILE *f = fopen ("conftest.val", "w");
10521 if ((~(size_t)0 / 10) < 0)
10523 long int i = longval ();
10524 if (i != (~(size_t)0 / 10))
10526 fprintf (f, "%ld\n", i);
10530 unsigned long int i = ulongval ();
10531 if (i != (~(size_t)0 / 10))
10533 fprintf (f, "%lu\n", i);
10535 return ferror (f) || fclose (f) != 0;
10541 rm -f conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10552 { (case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_try") 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 res_hi=`cat conftest.val`
10563 echo "$as_me: program exited with status $ac_status" >&5
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ( exit $ac_status )
10570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10574 if test "$cross_compiling" = yes; then
10575 # Depending upon the size, compute the lo and hi bounds.
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <stddef.h>
10586 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10593 rm -f conftest.$ac_objext
10594 if { (ac_try="$ac_compile"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_compile") 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest.$ac_objext; then
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <stddef.h>
10622 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10629 rm -f conftest.$ac_objext
10630 if { (ac_try="$ac_compile"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_compile") 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } && {
10643 test -z "$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10645 } && test -s conftest.$ac_objext; then
10646 ac_hi=$ac_mid; break
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_lo=`expr $ac_mid + 1`
10652 if test $ac_lo -le $ac_mid; then
10656 ac_mid=`expr 2 '*' $ac_mid + 1`
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10665 cat >conftest.$ac_ext <<_ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 #include <stddef.h>
10675 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10682 rm -f conftest.$ac_objext
10683 if { (ac_try="$ac_compile"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_compile") 2>conftest.er1
10691 grep -v '^ *+' conftest.er1 >conftest.err
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest.$ac_objext; then
10701 cat >conftest.$ac_ext <<_ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 #include <stddef.h>
10711 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10718 rm -f conftest.$ac_objext
10719 if { (ac_try="$ac_compile"
10720 case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_compile") 2>conftest.er1
10727 grep -v '^ *+' conftest.er1 >conftest.err
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest.$ac_objext; then
10735 ac_lo=$ac_mid; break
10737 echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10740 ac_hi=`expr '(' $ac_mid ')' - 1`
10741 if test $ac_mid -le $ac_hi; then
10745 ac_mid=`expr 2 '*' $ac_mid`
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 # Binary search between lo and hi bounds.
10762 while test "x$ac_lo" != "x$ac_hi"; do
10763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10770 #include <stddef.h>
10774 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10781 rm -f conftest.$ac_objext
10782 if { (ac_try="$ac_compile"
10783 case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_compile") 2>conftest.er1
10790 grep -v '^ *+' conftest.er1 >conftest.err
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } && {
10795 test -z "$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 } && test -s conftest.$ac_objext; then
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_lo=`expr '(' $ac_mid ')' + 1`
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809 ?*) res_lo=$ac_lo;;
10813 cat >conftest.$ac_ext <<_ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <stddef.h>
10820 static long int longval () { return ~(size_t)0 % 10; }
10821 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10823 #include <stdlib.h>
10828 FILE *f = fopen ("conftest.val", "w");
10831 if ((~(size_t)0 % 10) < 0)
10833 long int i = longval ();
10834 if (i != (~(size_t)0 % 10))
10836 fprintf (f, "%ld\n", i);
10840 unsigned long int i = ulongval ();
10841 if (i != (~(size_t)0 % 10))
10843 fprintf (f, "%lu\n", i);
10845 return ferror (f) || fclose (f) != 0;
10851 rm -f conftest$ac_exeext
10852 if { (ac_try="$ac_link"
10853 case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_link") 2>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 res_lo=`cat conftest.val`
10873 echo "$as_me: program exited with status $ac_status" >&5
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10877 ( exit $ac_status )
10880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10884 if test "$cross_compiling" = yes; then
10885 # Depending upon the size, compute the lo and hi bounds.
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 #include <stddef.h>
10896 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.$ac_objext; then
10922 cat >conftest.$ac_ext <<_ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 #include <stddef.h>
10932 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10939 rm -f conftest.$ac_objext
10940 if { (ac_try="$ac_compile"
10941 case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_compile") 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } && {
10953 test -z "$ac_c_werror_flag" ||
10954 test ! -s conftest.err
10955 } && test -s conftest.$ac_objext; then
10956 ac_hi=$ac_mid; break
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10961 ac_lo=`expr $ac_mid + 1`
10962 if test $ac_lo -le $ac_mid; then
10966 ac_mid=`expr 2 '*' $ac_mid + 1`
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 cat >conftest.$ac_ext <<_ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 #include <stddef.h>
10985 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_compile") 2>conftest.er1
11001 grep -v '^ *+' conftest.er1 >conftest.err
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } && {
11006 test -z "$ac_c_werror_flag" ||
11007 test ! -s conftest.err
11008 } && test -s conftest.$ac_objext; then
11011 cat >conftest.$ac_ext <<_ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include <stddef.h>
11021 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11028 rm -f conftest.$ac_objext
11029 if { (ac_try="$ac_compile"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_compile") 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && {
11042 test -z "$ac_c_werror_flag" ||
11043 test ! -s conftest.err
11044 } && test -s conftest.$ac_objext; then
11045 ac_lo=$ac_mid; break
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11050 ac_hi=`expr '(' $ac_mid ')' - 1`
11051 if test $ac_mid -le $ac_hi; then
11055 ac_mid=`expr 2 '*' $ac_mid`
11058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 # Binary search between lo and hi bounds.
11072 while test "x$ac_lo" != "x$ac_hi"; do
11073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 #include <stddef.h>
11084 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11091 rm -f conftest.$ac_objext
11092 if { (ac_try="$ac_compile"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest.$ac_objext; then
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_lo=`expr '(' $ac_mid ')' + 1`
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119 ?*) fits_in_uint=$ac_lo;;
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11129 #include <stddef.h>
11130 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11131 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11133 #include <stdlib.h>
11138 FILE *f = fopen ("conftest.val", "w");
11141 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11143 long int i = longval ();
11144 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11146 fprintf (f, "%ld\n", i);
11150 unsigned long int i = ulongval ();
11151 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11153 fprintf (f, "%lu\n", i);
11155 return ferror (f) || fclose (f) != 0;
11161 rm -f conftest$ac_exeext
11162 if { (ac_try="$ac_link"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_link") 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11172 { (case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_try") 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11181 fits_in_uint=`cat conftest.val`
11183 echo "$as_me: program exited with status $ac_status" >&5
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ( exit $ac_status )
11190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11194 if test "$fits_in_uint" = 1; then
11195 cat >conftest.$ac_ext <<_ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 #include <stddef.h>
11203 extern unsigned long foo;
11213 rm -f conftest.$ac_objext
11214 if { (ac_try="$ac_compile"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_compile") 2>conftest.er1
11222 grep -v '^ *+' conftest.er1 >conftest.err
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } && {
11227 test -z "$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11229 } && test -s conftest.$ac_objext; then
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 if test -z "$result"; then
11241 if test "$fits_in_uint" = 1; then
11242 result="$res_hi$res_lo"U
11244 result="$res_hi$res_lo"UL
11247 result='~(size_t)0'
11250 { echo "$as_me:$LINENO: result: $result" >&5
11251 echo "${ECHO_T}$result" >&6; }
11252 if test "$result" != yes; then
11254 cat >>confdefs.h <<_ACEOF
11255 #define SIZE_MAX $result
11264 for ac_header in stdint.h
11266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 ac_res=`eval echo '${'$as_ac_Header'}'`
11274 { echo "$as_me:$LINENO: result: $ac_res" >&5
11275 echo "${ECHO_T}$ac_res" >&6; }
11277 # Is the header compilable?
11278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 $ac_includes_default
11287 #include <$ac_header>
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_compile") 2>conftest.er1
11298 grep -v '^ *+' conftest.er1 >conftest.err
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } && {
11303 test -z "$ac_c_werror_flag" ||
11304 test ! -s conftest.err
11305 } && test -s conftest.$ac_objext; then
11306 ac_header_compiler=yes
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_header_compiler=no
11314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11316 echo "${ECHO_T}$ac_header_compiler" >&6; }
11318 # Is the header present?
11319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11321 cat >conftest.$ac_ext <<_ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 #include <$ac_header>
11329 if { (ac_try="$ac_cpp conftest.$ac_ext"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11337 grep -v '^ *+' conftest.er1 >conftest.err
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } >/dev/null && {
11342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11345 ac_header_preproc=yes
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_header_preproc=no
11353 rm -f conftest.err conftest.$ac_ext
11354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11355 echo "${ECHO_T}$ac_header_preproc" >&6; }
11357 # So? What about this header?
11358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11364 ac_header_preproc=yes
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 eval "$as_ac_Header=\$ac_header_preproc"
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11410 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11411 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11412 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 cat >conftest.$ac_ext <<_ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 $ac_includes_default
11422 typedef ptrdiff_t ac__type_new_;
11426 if ((ac__type_new_ *) 0)
11428 if (sizeof (ac__type_new_))
11434 rm -f conftest.$ac_objext
11435 if { (ac_try="$ac_compile"
11436 case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_compile") 2>conftest.er1
11443 grep -v '^ *+' conftest.er1 >conftest.err
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } && {
11448 test -z "$ac_c_werror_flag" ||
11449 test ! -s conftest.err
11450 } && test -s conftest.$ac_objext; then
11451 ac_cv_type_ptrdiff_t=yes
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 ac_cv_type_ptrdiff_t=no
11459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11462 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11463 if test $ac_cv_type_ptrdiff_t = yes; then
11467 cat >>confdefs.h <<\_ACEOF
11468 #define ptrdiff_t long
11484 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11485 stdlib.h string.h unistd.h sys/param.h
11487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 ac_res=`eval echo '${'$as_ac_Header'}'`
11495 { echo "$as_me:$LINENO: result: $ac_res" >&5
11496 echo "${ECHO_T}$ac_res" >&6; }
11498 # Is the header compilable?
11499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 $ac_includes_default
11508 #include <$ac_header>
11510 rm -f conftest.$ac_objext
11511 if { (ac_try="$ac_compile"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_compile") 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_c_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest.$ac_objext; then
11527 ac_header_compiler=yes
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11532 ac_header_compiler=no
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11537 echo "${ECHO_T}$ac_header_compiler" >&6; }
11539 # Is the header present?
11540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11542 cat >conftest.$ac_ext <<_ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 #include <$ac_header>
11550 if { (ac_try="$ac_cpp conftest.$ac_ext"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } >/dev/null && {
11563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11566 ac_header_preproc=yes
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 ac_header_preproc=no
11574 rm -f conftest.err conftest.$ac_ext
11575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11576 echo "${ECHO_T}$ac_header_preproc" >&6; }
11578 # So? What about this header?
11579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11585 ac_header_preproc=yes
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 eval "$as_ac_Header=\$ac_header_preproc"
11610 ac_res=`eval echo '${'$as_ac_Header'}'`
11611 { echo "$as_me:$LINENO: result: $ac_res" >&5
11612 echo "${ECHO_T}$ac_res" >&6; }
11615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11616 cat >>confdefs.h <<_ACEOF
11617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11647 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11648 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11649 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 cat >conftest.$ac_ext <<_ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666 #define $ac_func innocuous_$ac_func
11668 /* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11674 # include <limits.h>
11676 # include <assert.h>
11681 /* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
11688 /* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691 #if defined __stub_$ac_func || defined __stub___$ac_func
11698 return $ac_func ();
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
11712 grep -v '^ *+' conftest.er1 >conftest.err
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } && {
11717 test -z "$ac_c_werror_flag" ||
11718 test ! -s conftest.err
11719 } && test -s conftest$ac_exeext &&
11720 $as_test_x conftest$ac_exeext; then
11721 eval "$as_ac_var=yes"
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 eval "$as_ac_var=no"
11729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730 conftest$ac_exeext conftest.$ac_ext
11732 ac_res=`eval echo '${'$as_ac_var'}'`
11733 { echo "$as_me:$LINENO: result: $ac_res" >&5
11734 echo "${ECHO_T}$ac_res" >&6; }
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11745 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11746 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11747 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 cat >conftest.$ac_ext <<_ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11762 char *p = (char *) _snprintf;
11769 rm -f conftest.$ac_objext
11770 if { (ac_try="$ac_compile"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_compile") 2>conftest.er1
11778 grep -v '^ *+' conftest.er1 >conftest.err
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } && {
11783 test -z "$ac_c_werror_flag" ||
11784 test ! -s conftest.err
11785 } && test -s conftest.$ac_objext; then
11786 ac_cv_have_decl__snprintf=yes
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 ac_cv_have_decl__snprintf=no
11794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11797 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11798 if test $ac_cv_have_decl__snprintf = yes; then
11804 cat >>confdefs.h <<_ACEOF
11805 #define HAVE_DECL__SNPRINTF $gt_value
11810 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11811 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11812 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11827 char *p = (char *) _snwprintf;
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_compile") 2>conftest.er1
11843 grep -v '^ *+' conftest.er1 >conftest.err
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest.$ac_objext; then
11851 ac_cv_have_decl__snwprintf=yes
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 ac_cv_have_decl__snwprintf=no
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11862 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11863 if test $ac_cv_have_decl__snwprintf = yes; then
11869 cat >>confdefs.h <<_ACEOF
11870 #define HAVE_DECL__SNWPRINTF $gt_value
11876 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11877 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11878 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11892 #ifndef feof_unlocked
11893 char *p = (char *) feof_unlocked;
11900 rm -f conftest.$ac_objext
11901 if { (ac_try="$ac_compile"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.$ac_objext; then
11917 ac_cv_have_decl_feof_unlocked=yes
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_cv_have_decl_feof_unlocked=no
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11928 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11929 if test $ac_cv_have_decl_feof_unlocked = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11941 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11942 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11943 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11957 #ifndef fgets_unlocked
11958 char *p = (char *) fgets_unlocked;
11965 rm -f conftest.$ac_objext
11966 if { (ac_try="$ac_compile"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_compile") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest.$ac_objext; then
11982 ac_cv_have_decl_fgets_unlocked=yes
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_cv_have_decl_fgets_unlocked=no
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11993 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11994 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12000 cat >>confdefs.h <<_ACEOF
12001 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12006 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12007 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12008 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12022 #ifndef getc_unlocked
12023 char *p = (char *) getc_unlocked;
12030 rm -f conftest.$ac_objext
12031 if { (ac_try="$ac_compile"
12032 case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_compile") 2>conftest.er1
12039 grep -v '^ *+' conftest.er1 >conftest.err
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } && {
12044 test -z "$ac_c_werror_flag" ||
12045 test ! -s conftest.err
12046 } && test -s conftest.$ac_objext; then
12047 ac_cv_have_decl_getc_unlocked=yes
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_cv_have_decl_getc_unlocked=no
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12058 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12059 if test $ac_cv_have_decl_getc_unlocked = yes; then
12065 cat >>confdefs.h <<_ACEOF
12066 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12071 case $gt_cv_func_printf_posix in
12072 *yes) HAVE_POSIX_PRINTF=1 ;;
12073 *) HAVE_POSIX_PRINTF=0 ;;
12076 if test "$ac_cv_func_asprintf" = yes; then
12082 if test "$ac_cv_func_snprintf" = yes; then
12088 if test "$ac_cv_func_wprintf" = yes; then
12100 am_save_CPPFLAGS="$CPPFLAGS"
12102 for element in $INCICONV; do
12104 for x in $CPPFLAGS; do
12106 acl_save_prefix="$prefix"
12107 prefix="$acl_final_prefix"
12108 acl_save_exec_prefix="$exec_prefix"
12109 exec_prefix="$acl_final_exec_prefix"
12111 exec_prefix="$acl_save_exec_prefix"
12112 prefix="$acl_save_prefix"
12114 if test "X$x" = "X$element"; then
12119 if test -z "$haveit"; then
12120 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12125 { echo "$as_me:$LINENO: checking for iconv" >&5
12126 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12127 if test "${am_cv_func_iconv+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12131 am_cv_func_iconv="no, consider installing GNU libiconv"
12133 cat >conftest.$ac_ext <<_ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 #include <stdlib.h>
12144 iconv_t cd = iconv_open("","");
12145 iconv(cd,NULL,NULL,NULL,NULL);
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_link") 2>conftest.er1
12160 grep -v '^ *+' conftest.er1 >conftest.err
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } && {
12165 test -z "$ac_c_werror_flag" ||
12166 test ! -s conftest.err
12167 } && test -s conftest$ac_exeext &&
12168 $as_test_x conftest$ac_exeext; then
12169 am_cv_func_iconv=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12178 conftest$ac_exeext conftest.$ac_ext
12179 if test "$am_cv_func_iconv" != yes; then
12180 am_save_LIBS="$LIBS"
12181 LIBS="$LIBS $LIBICONV"
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 #include <stdlib.h>
12193 iconv_t cd = iconv_open("","");
12194 iconv(cd,NULL,NULL,NULL,NULL);
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest$ac_exeext &&
12217 $as_test_x conftest$ac_exeext; then
12218 am_cv_lib_iconv=yes
12219 am_cv_func_iconv=yes
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS="$am_save_LIBS"
12233 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12234 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12235 if test "$am_cv_func_iconv" = yes; then
12237 cat >>confdefs.h <<\_ACEOF
12238 #define HAVE_ICONV 1
12242 if test "$am_cv_lib_iconv" = yes; then
12243 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12244 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12245 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12246 echo "${ECHO_T}$LIBICONV" >&6; }
12248 CPPFLAGS="$am_save_CPPFLAGS"
12255 if test "$am_cv_func_iconv" = yes; then
12256 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12257 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12258 if test "${am_cv_proto_iconv+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 cat >conftest.$ac_ext <<_ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12269 #include <stdlib.h>
12275 #if defined(__STDC__) || defined(__cplusplus)
12276 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 am_cv_proto_iconv_arg1=""
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 am_cv_proto_iconv_arg1="const"
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315 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);"
12318 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12319 { echo "$as_me:$LINENO: result: ${ac_t:-
12320 }$am_cv_proto_iconv" >&5
12321 echo "${ECHO_T}${ac_t:-
12322 }$am_cv_proto_iconv" >&6; }
12324 cat >>confdefs.h <<_ACEOF
12325 #define ICONV_CONST $am_cv_proto_iconv_arg1
12331 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12332 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12333 if test "${am_cv_langinfo_codeset+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 #include <langinfo.h>
12346 char* cs = nl_langinfo(CODESET);
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12360 grep -v '^ *+' conftest.er1 >conftest.err
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest$ac_exeext &&
12368 $as_test_x conftest$ac_exeext; then
12369 am_cv_langinfo_codeset=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 am_cv_langinfo_codeset=no
12377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12378 conftest$ac_exeext conftest.$ac_ext
12381 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12382 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12383 if test $am_cv_langinfo_codeset = yes; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define HAVE_LANGINFO_CODESET 1
12391 if test $ac_cv_header_locale_h = yes; then
12393 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12394 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12395 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12404 #include <locale.h>
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest$ac_exeext &&
12430 $as_test_x conftest$ac_exeext; then
12431 gt_cv_val_LC_MESSAGES=yes
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 gt_cv_val_LC_MESSAGES=no
12439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12440 conftest$ac_exeext conftest.$ac_ext
12442 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12443 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12444 if test $gt_cv_val_LC_MESSAGES = yes; then
12446 cat >>confdefs.h <<\_ACEOF
12447 #define HAVE_LC_MESSAGES 1
12454 if test -n "$INTL_MACOSX_LIBS"; then
12455 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12458 for ac_prog in bison
12460 # Extract the first word of "$ac_prog", so it can be a program name with args.
12461 set dummy $ac_prog; ac_word=$2
12462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12464 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 if test -n "$INTLBISON"; then
12468 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12477 ac_cv_prog_INTLBISON="$ac_prog"
12478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 INTLBISON=$ac_cv_prog_INTLBISON
12488 if test -n "$INTLBISON"; then
12489 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12490 echo "${ECHO_T}$INTLBISON" >&6; }
12492 { echo "$as_me:$LINENO: result: no" >&5
12493 echo "${ECHO_T}no" >&6; }
12497 test -n "$INTLBISON" && break
12500 if test -z "$INTLBISON"; then
12503 { echo "$as_me:$LINENO: checking version of bison" >&5
12504 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12505 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12506 case $ac_prog_version in
12507 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12508 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12509 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12510 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12512 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12513 echo "${ECHO_T}$ac_prog_version" >&6; }
12515 if test $ac_verc_fail = yes; then
12534 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12535 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12536 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 gt_save_CPPFLAGS="$CPPFLAGS"
12540 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12541 gt_save_LIBS="$LIBS"
12542 LIBS="$LIBS -framework CoreFoundation"
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549 #include <CFPreferences.h>
12553 CFPreferencesCopyAppValue(NULL, NULL)
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (ac_try="$ac_link"
12560 case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_link") 2>conftest.er1
12567 grep -v '^ *+' conftest.er1 >conftest.err
12569 cat conftest.err >&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } && {
12572 test -z "$ac_c_werror_flag" ||
12573 test ! -s conftest.err
12574 } && test -s conftest$ac_exeext &&
12575 $as_test_x conftest$ac_exeext; then
12576 gt_cv_func_CFPreferencesCopyAppValue=yes
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12581 gt_cv_func_CFPreferencesCopyAppValue=no
12584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12585 conftest$ac_exeext conftest.$ac_ext
12586 CPPFLAGS="$gt_save_CPPFLAGS"
12587 LIBS="$gt_save_LIBS"
12589 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12590 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12591 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12593 cat >>confdefs.h <<\_ACEOF
12594 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12598 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12599 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12600 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 gt_save_CPPFLAGS="$CPPFLAGS"
12604 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12605 gt_save_LIBS="$LIBS"
12606 LIBS="$LIBS -framework CoreFoundation"
12607 cat >conftest.$ac_ext <<_ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h. */
12613 #include <CFLocale.h>
12617 CFLocaleCopyCurrent();
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_link") 2>conftest.er1
12631 grep -v '^ *+' conftest.er1 >conftest.err
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } && {
12636 test -z "$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12638 } && test -s conftest$ac_exeext &&
12639 $as_test_x conftest$ac_exeext; then
12640 gt_cv_func_CFLocaleCopyCurrent=yes
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 gt_cv_func_CFLocaleCopyCurrent=no
12648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12649 conftest$ac_exeext conftest.$ac_ext
12650 CPPFLAGS="$gt_save_CPPFLAGS"
12651 LIBS="$gt_save_LIBS"
12653 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12654 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12655 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12657 cat >>confdefs.h <<\_ACEOF
12658 #define HAVE_CFLOCALECOPYCURRENT 1
12663 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12664 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12670 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12671 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12672 # Check whether --enable-nls was given.
12673 if test "${enable_nls+set}" = set; then
12674 enableval=$enable_nls; USE_NLS=$enableval
12679 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12680 echo "${ECHO_T}$USE_NLS" >&6; }
12685 BUILD_INCLUDED_LIBINTL=no
12686 USE_INCLUDED_LIBINTL=no
12692 if test "$USE_NLS" = "yes"; then
12693 gt_use_preinstalled_gnugettext=no
12695 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12696 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12698 # Check whether --with-included-gettext was given.
12699 if test "${with_included_gettext+set}" = set; then
12700 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12702 nls_cv_force_use_gnu_gettext=no
12705 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12706 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12708 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12709 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12716 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12717 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12718 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 cat >conftest.$ac_ext <<_ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 #include <libintl.h>
12728 extern int _nl_msg_cat_cntr;
12729 extern int *_nl_domain_bindings;
12733 bindtextdomain ("", "");
12734 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>conftest.er1
12748 grep -v '^ *+' conftest.er1 >conftest.err
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && {
12753 test -z "$ac_c_werror_flag" ||
12754 test ! -s conftest.err
12755 } && test -s conftest$ac_exeext &&
12756 $as_test_x conftest$ac_exeext; then
12757 gt_cv_func_gnugettext1_libc=yes
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 gt_cv_func_gnugettext1_libc=no
12765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12766 conftest$ac_exeext conftest.$ac_ext
12768 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12769 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12771 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12777 acl_save_prefix="$prefix"
12778 prefix="$acl_final_prefix"
12779 acl_save_exec_prefix="$exec_prefix"
12780 exec_prefix="$acl_final_exec_prefix"
12782 eval additional_includedir=\"$includedir\"
12783 eval additional_libdir=\"$libdir\"
12785 exec_prefix="$acl_save_exec_prefix"
12786 prefix="$acl_save_prefix"
12789 # Check whether --with-libintl-prefix was given.
12790 if test "${with_libintl_prefix+set}" = set; then
12791 withval=$with_libintl_prefix;
12792 if test "X$withval" = "Xno"; then
12795 if test "X$withval" = "X"; then
12797 acl_save_prefix="$prefix"
12798 prefix="$acl_final_prefix"
12799 acl_save_exec_prefix="$exec_prefix"
12800 exec_prefix="$acl_final_exec_prefix"
12802 eval additional_includedir=\"$includedir\"
12803 eval additional_libdir=\"$libdir\"
12805 exec_prefix="$acl_save_exec_prefix"
12806 prefix="$acl_save_prefix"
12809 additional_includedir="$withval/include"
12810 additional_libdir="$withval/lib"
12821 names_already_handled=
12822 names_next_round='intl '
12823 while test -n "$names_next_round"; do
12824 names_this_round="$names_next_round"
12826 for name in $names_this_round; do
12828 for n in $names_already_handled; do
12829 if test "$n" = "$name"; then
12830 already_handled=yes
12834 if test -z "$already_handled"; then
12835 names_already_handled="$names_already_handled $name"
12836 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12837 eval value=\"\$HAVE_LIB$uppername\"
12838 if test -n "$value"; then
12839 if test "$value" = yes; then
12840 eval value=\"\$LIB$uppername\"
12841 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12842 eval value=\"\$LTLIB$uppername\"
12843 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12852 if test $use_additional = yes; then
12853 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12854 found_dir="$additional_libdir"
12855 found_so="$additional_libdir/lib$name.$shlibext"
12856 if test -f "$additional_libdir/lib$name.la"; then
12857 found_la="$additional_libdir/lib$name.la"
12860 if test -f "$additional_libdir/lib$name.$libext"; then
12861 found_dir="$additional_libdir"
12862 found_a="$additional_libdir/lib$name.$libext"
12863 if test -f "$additional_libdir/lib$name.la"; then
12864 found_la="$additional_libdir/lib$name.la"
12869 if test "X$found_dir" = "X"; then
12870 for x in $LDFLAGS $LTLIBINTL; do
12872 acl_save_prefix="$prefix"
12873 prefix="$acl_final_prefix"
12874 acl_save_exec_prefix="$exec_prefix"
12875 exec_prefix="$acl_final_exec_prefix"
12877 exec_prefix="$acl_save_exec_prefix"
12878 prefix="$acl_save_prefix"
12882 dir=`echo "X$x" | sed -e 's/^X-L//'`
12883 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12885 found_so="$dir/lib$name.$shlibext"
12886 if test -f "$dir/lib$name.la"; then
12887 found_la="$dir/lib$name.la"
12890 if test -f "$dir/lib$name.$libext"; then
12892 found_a="$dir/lib$name.$libext"
12893 if test -f "$dir/lib$name.la"; then
12894 found_la="$dir/lib$name.la"
12900 if test "X$found_dir" != "X"; then
12905 if test "X$found_dir" != "X"; then
12906 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12907 if test "X$found_so" != "X"; then
12908 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12909 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12912 for x in $ltrpathdirs; do
12913 if test "X$x" = "X$found_dir"; then
12918 if test -z "$haveit"; then
12919 ltrpathdirs="$ltrpathdirs $found_dir"
12921 if test "$hardcode_direct" = yes; then
12922 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12924 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12925 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12927 for x in $rpathdirs; do
12928 if test "X$x" = "X$found_dir"; then
12933 if test -z "$haveit"; then
12934 rpathdirs="$rpathdirs $found_dir"
12938 for x in $LDFLAGS $LIBINTL; do
12940 acl_save_prefix="$prefix"
12941 prefix="$acl_final_prefix"
12942 acl_save_exec_prefix="$exec_prefix"
12943 exec_prefix="$acl_final_exec_prefix"
12945 exec_prefix="$acl_save_exec_prefix"
12946 prefix="$acl_save_prefix"
12948 if test "X$x" = "X-L$found_dir"; then
12953 if test -z "$haveit"; then
12954 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12956 if test "$hardcode_minus_L" != no; then
12957 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12959 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12965 if test "X$found_a" != "X"; then
12966 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12968 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12971 additional_includedir=
12972 case "$found_dir" in
12974 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12975 additional_includedir="$basedir/include"
12978 if test "X$additional_includedir" != "X"; then
12979 if test "X$additional_includedir" != "X/usr/include"; then
12981 if test "X$additional_includedir" = "X/usr/local/include"; then
12982 if test -n "$GCC"; then
12984 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12988 if test -z "$haveit"; then
12989 for x in $CPPFLAGS $INCINTL; do
12991 acl_save_prefix="$prefix"
12992 prefix="$acl_final_prefix"
12993 acl_save_exec_prefix="$exec_prefix"
12994 exec_prefix="$acl_final_exec_prefix"
12996 exec_prefix="$acl_save_exec_prefix"
12997 prefix="$acl_save_prefix"
12999 if test "X$x" = "X-I$additional_includedir"; then
13004 if test -z "$haveit"; then
13005 if test -d "$additional_includedir"; then
13006 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13012 if test -n "$found_la"; then
13013 save_libdir="$libdir"
13014 case "$found_la" in
13015 */* | *\\*) . "$found_la" ;;
13016 *) . "./$found_la" ;;
13018 libdir="$save_libdir"
13019 for dep in $dependency_libs; do
13022 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13023 if test "X$additional_libdir" != "X/usr/lib"; then
13025 if test "X$additional_libdir" = "X/usr/local/lib"; then
13026 if test -n "$GCC"; then
13028 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13032 if test -z "$haveit"; then
13034 for x in $LDFLAGS $LIBINTL; do
13036 acl_save_prefix="$prefix"
13037 prefix="$acl_final_prefix"
13038 acl_save_exec_prefix="$exec_prefix"
13039 exec_prefix="$acl_final_exec_prefix"
13041 exec_prefix="$acl_save_exec_prefix"
13042 prefix="$acl_save_prefix"
13044 if test "X$x" = "X-L$additional_libdir"; then
13049 if test -z "$haveit"; then
13050 if test -d "$additional_libdir"; then
13051 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13055 for x in $LDFLAGS $LTLIBINTL; do
13057 acl_save_prefix="$prefix"
13058 prefix="$acl_final_prefix"
13059 acl_save_exec_prefix="$exec_prefix"
13060 exec_prefix="$acl_final_exec_prefix"
13062 exec_prefix="$acl_save_exec_prefix"
13063 prefix="$acl_save_prefix"
13065 if test "X$x" = "X-L$additional_libdir"; then
13070 if test -z "$haveit"; then
13071 if test -d "$additional_libdir"; then
13072 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13079 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13080 if test "$enable_rpath" != no; then
13082 for x in $rpathdirs; do
13083 if test "X$x" = "X$dir"; then
13088 if test -z "$haveit"; then
13089 rpathdirs="$rpathdirs $dir"
13092 for x in $ltrpathdirs; do
13093 if test "X$x" = "X$dir"; then
13098 if test -z "$haveit"; then
13099 ltrpathdirs="$ltrpathdirs $dir"
13104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13107 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13110 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13111 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13117 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13118 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13124 if test "X$rpathdirs" != "X"; then
13125 if test -n "$hardcode_libdir_separator"; then
13127 for found_dir in $rpathdirs; do
13128 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13130 acl_save_libdir="$libdir"
13132 eval flag=\"$hardcode_libdir_flag_spec\"
13133 libdir="$acl_save_libdir"
13134 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13136 for found_dir in $rpathdirs; do
13137 acl_save_libdir="$libdir"
13138 libdir="$found_dir"
13139 eval flag=\"$hardcode_libdir_flag_spec\"
13140 libdir="$acl_save_libdir"
13141 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13145 if test "X$ltrpathdirs" != "X"; then
13146 for found_dir in $ltrpathdirs; do
13147 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13151 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13152 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13153 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 gt_save_CPPFLAGS="$CPPFLAGS"
13157 CPPFLAGS="$CPPFLAGS $INCINTL"
13158 gt_save_LIBS="$LIBS"
13159 LIBS="$LIBS $LIBINTL"
13160 cat >conftest.$ac_ext <<_ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 #include <libintl.h>
13167 extern int _nl_msg_cat_cntr;
13172 const char *_nl_expand_alias (const char *);
13176 bindtextdomain ("", "");
13177 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (ac_try="$ac_link"
13184 case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_link") 2>conftest.er1
13191 grep -v '^ *+' conftest.er1 >conftest.err
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } && {
13196 test -z "$ac_c_werror_flag" ||
13197 test ! -s conftest.err
13198 } && test -s conftest$ac_exeext &&
13199 $as_test_x conftest$ac_exeext; then
13200 gt_cv_func_gnugettext1_libintl=yes
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 gt_cv_func_gnugettext1_libintl=no
13208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13209 conftest$ac_exeext conftest.$ac_ext
13210 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13211 LIBS="$LIBS $LIBICONV"
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #include <libintl.h>
13219 extern int _nl_msg_cat_cntr;
13224 const char *_nl_expand_alias (const char *);
13228 bindtextdomain ("", "");
13229 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_link") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest$ac_exeext &&
13251 $as_test_x conftest$ac_exeext; then
13252 LIBINTL="$LIBINTL $LIBICONV"
13253 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13254 gt_cv_func_gnugettext1_libintl=yes
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13264 conftest$ac_exeext conftest.$ac_ext
13266 CPPFLAGS="$gt_save_CPPFLAGS"
13267 LIBS="$gt_save_LIBS"
13269 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13270 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13273 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13274 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13275 && test "$PACKAGE" != gettext-runtime \
13276 && test "$PACKAGE" != gettext-tools; }; then
13277 gt_use_preinstalled_gnugettext=yes
13285 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13286 nls_cv_use_gnu_gettext=yes
13290 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13291 BUILD_INCLUDED_LIBINTL=yes
13292 USE_INCLUDED_LIBINTL=yes
13293 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13294 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13295 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13299 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13300 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13305 if test -n "$INTL_MACOSX_LIBS"; then
13306 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13307 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13308 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13309 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13313 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13314 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13316 cat >>confdefs.h <<\_ACEOF
13317 #define ENABLE_NLS 1
13325 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13326 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13327 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13328 echo "${ECHO_T}$USE_NLS" >&6; }
13329 if test "$USE_NLS" = "yes"; then
13330 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13331 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13332 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13333 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13334 gt_source="external libintl"
13339 gt_source="included intl directory"
13341 { echo "$as_me:$LINENO: result: $gt_source" >&5
13342 echo "${ECHO_T}$gt_source" >&6; }
13345 if test "$USE_NLS" = "yes"; then
13347 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13348 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13349 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13350 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13351 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13352 echo "${ECHO_T}$LIBINTL" >&6; }
13354 for element in $INCINTL; do
13356 for x in $CPPFLAGS; do
13358 acl_save_prefix="$prefix"
13359 prefix="$acl_final_prefix"
13360 acl_save_exec_prefix="$exec_prefix"
13361 exec_prefix="$acl_final_exec_prefix"
13363 exec_prefix="$acl_save_exec_prefix"
13364 prefix="$acl_save_prefix"
13366 if test "X$x" = "X$element"; then
13371 if test -z "$haveit"; then
13372 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13379 cat >>confdefs.h <<\_ACEOF
13380 #define HAVE_GETTEXT 1
13384 cat >>confdefs.h <<\_ACEOF
13385 #define HAVE_DCGETTEXT 1
13394 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13395 BUILD_INCLUDED_LIBINTL=yes
13402 nls_cv_header_intl=
13403 nls_cv_header_libgt=
13415 if test "$USE_INCLUDED_LIBINTL" = yes; then
13416 INTLOBJS="\$(GETTOBJS)"
13420 INTL_LIBTOOL_SUFFIX_PREFIX=
13424 INTLLIBS="$LIBINTL"
13433 support_faketape=no
13437 support_postgresql=no
13439 support_smartalloc=yes
13440 support_readline=yes
13444 support_wx_console=no
13449 support_static_tools=no
13450 support_static_fd=no
13451 support_static_sd=no
13452 support_static_dir=no
13453 support_static_cons=no
13455 build_client_only=no
13463 # -------------------------------------------
13464 # gnome (default off)
13465 # -------------------------------------------
13466 # Check whether --enable-gnome was given.
13467 if test "${enable_gnome+set}" = set; then
13468 enableval=$enable_gnome; if test x$enableval = xyes; then
13475 if test x$support_gnome = xyes; then
13476 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13478 if test $pkg = 0; then
13479 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13480 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13481 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13482 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13487 GNOME_DIR=src/gnome2-console
13488 gnome_version="Version 2.x"
13490 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13491 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13492 { (exit 1); exit 1; }; }
13497 # -------------------------------------------
13498 # bat (default off)
13499 # -------------------------------------------
13500 # Check whether --enable-bat was given.
13501 if test "${enable_bat+set}" = set; then
13502 enableval=$enable_bat; if test x$enableval = xyes; then
13504 cat >>confdefs.h <<\_ACEOF
13514 if test x$support_bat = xyes; then
13515 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13517 if test $pkg = 0; then
13518 BAT_DIR=src/qt-console
13520 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13521 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13522 { (exit 1); exit 1; }; }
13527 # If bat is enabled, we need the qwt library
13534 if test x$support_bat = xyes; then
13535 { echo "$as_me:$LINENO: checking for qwt support" >&5
13536 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13538 # Check whether --with-qwt was given.
13539 if test "${with_qwt+set}" = set; then
13541 case "$with_qwt" in
13546 if test -f ${with_qwt}/include/qwt.h; then
13547 QWT_INC="${with_qwt}/include"
13548 QWT_LDFLAGS="-L${with_qwt}/lib"
13559 # Search in standard places, or --with-qwt not specified
13561 if test $no_qwt = no; then
13562 if test x$QWT_INC = x; then
13563 for root in /usr /usr/local; do
13564 for ver in qwt qwt5 qwt-qt4; do
13565 if test -f ${root}/include/${ver}/qwt.h; then
13566 QWT_INC="${root}/include/${ver}"
13567 if test -d ${root}/lib64/; then
13568 QWT_LDFLAGS="-L${root}/lib64"
13570 QWT_LDFLAGS="-L${root}/lib"
13581 if test x$QWT_INC = x; then
13582 { echo "$as_me:$LINENO: result: no" >&5
13583 echo "${ECHO_T}no" >&6; }
13586 cat >>confdefs.h <<\_ACEOF
13590 { echo "$as_me:$LINENO: result: yes" >&5
13591 echo "${ECHO_T}yes" >&6; }
13602 # -------------------------------------------
13603 # bwx-console (default off)
13604 # -------------------------------------------
13605 # Check whether --enable-bwx-console was given.
13606 if test "${enable_bwx_console+set}" = set; then
13607 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13608 support_wx_console=yes
13614 if test x$support_wx_console = xyes; then
13615 abc=`$WXCONFIG $WXFLAGS --cppflags`
13617 if test $pkg = 0; then
13618 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13619 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13620 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13624 WX_DIR=src/wx-console
13627 echo "wx-config program not found. bwx-console disabled."
13629 support_wx_console=no
13635 # -------------------------------------------
13636 # tray-monitor (default off)
13637 # -------------------------------------------
13638 # Check whether --enable-tray-monitor was given.
13639 if test "${enable_tray_monitor+set}" = set; then
13640 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13641 support_tray_monitor=yes
13647 if test x$support_tray_monitor = xyes; then
13648 abc=`$PKGCONFIG --exists gtk+-2.0`
13650 if test $pkg = 0; then
13651 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13652 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13655 TRAY_MONITOR_DIR=src/tray-monitor
13656 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13658 if test $pkg = 0; then
13660 cat >>confdefs.h <<\_ACEOF
13661 #define HAVE_GTK_2_4 1
13669 # -------------------------------------------
13670 # smartalloc (default off)
13671 # -------------------------------------------
13672 # Check whether --enable-smartalloc was given.
13673 if test "${enable_smartalloc+set}" = set; then
13674 enableval=$enable_smartalloc; if test x$enableval = xno; then
13675 support_smartalloc=no
13680 if test x$support_smartalloc = xyes; then
13682 cat >>confdefs.h <<\_ACEOF
13683 #define SMARTALLOC 1
13688 # -------------------------------------------
13689 # faketape (default off)
13690 # -------------------------------------------
13691 # Check whether --enable-faketape was given.
13692 if test "${enable_faketape+set}" = set; then
13693 enableval=$enable_faketape; if test x$enableval = xyes; then
13694 support_faketape=yes
13699 if test x$support_faketape = xyes; then
13701 cat >>confdefs.h <<\_ACEOF
13702 #define USE_FAKETAPE 1
13707 # -------------------------------------------
13708 # static-tools (default off)
13709 # -------------------------------------------
13710 # Check whether --enable-static-tools was given.
13711 if test "${enable_static_tools+set}" = set; then
13712 enableval=$enable_static_tools; if test x$enableval = xyes; then
13713 support_static_tools=yes
13719 if test x$support_static_tools = xyes; then
13720 TTOOL_LDFLAGS="-static"
13724 # -------------------------------------------
13725 # static-fd (default off)
13726 # -------------------------------------------
13727 # Check whether --enable-static-fd was given.
13728 if test "${enable_static_fd+set}" = set; then
13729 enableval=$enable_static_fd; if test x$enableval = xyes; then
13730 support_static_fd=yes
13736 if test x$support_static_fd = xyes; then
13737 STATIC_FD="static-bacula-fd"
13741 # -------------------------------------------
13742 # static-sd (default off)
13743 # -------------------------------------------
13744 # Check whether --enable-static-sd was given.
13745 if test "${enable_static_sd+set}" = set; then
13746 enableval=$enable_static_sd; if test x$enableval = xyes; then
13747 support_static_sd=yes
13753 if test x$support_static_sd = xyes; then
13754 STATIC_SD="static-bacula-sd"
13758 # -------------------------------------------
13759 # static-dir (default off)
13760 # -------------------------------------------
13761 # Check whether --enable-static-dir was given.
13762 if test "${enable_static_dir+set}" = set; then
13763 enableval=$enable_static_dir; if test x$enableval = xyes; then
13764 support_static_dir=yes
13770 if test x$support_static_dir = xyes; then
13771 STATIC_DIR="static-bacula-dir"
13775 # -------------------------------------------
13776 # static-cons (default off)
13777 # -------------------------------------------
13778 # Check whether --enable-static-cons was given.
13779 if test "${enable_static_cons+set}" = set; then
13780 enableval=$enable_static_cons; if test x$enableval = xyes; then
13781 support_static_cons=yes
13789 if test x$support_static_cons = xyes; then
13790 STATIC_CONS="static-bconsole"
13791 STATIC_GNOME_CONS="static-bgnome-console"
13792 STATIC_WX_CONS="static-bwx-console"
13798 # -------------------------------------------
13799 # client_only (default off)
13800 # -------------------------------------------
13801 # Check whether --enable-client-only was given.
13802 if test "${enable_client_only+set}" = set; then
13803 enableval=$enable_client_only; if test x$enableval = xyes; then
13804 build_client_only=yes
13810 if test x$build_client_only = xno; then
13817 # -------------------------------------------
13818 # director (default on)
13819 # -------------------------------------------
13820 # Check whether --enable-build-dird was given.
13821 if test "${enable_build_dird+set}" = set; then
13822 enableval=$enable_build_dird; if test x$enableval = xno; then
13827 if test x$build_dird = xyes; then
13828 DIRD_DIR="src/dird"
13829 DIR_TOOLS="DIRTOOLS"
13832 DIR_TOOLS="NODIRTOOLS"
13837 # -------------------------------------------
13838 # stored (default on)
13839 # -------------------------------------------
13840 # Check whether --enable-build-stored was given.
13841 if test "${enable_build_stored+set}" = set; then
13842 enableval=$enable_build_stored; if test x$enableval = xno; then
13847 if test x$build_stored = xyes; then
13848 STORED_DIR="src/stored"
13854 # ---------------------------------------------------
13855 # Check for conio (Bacula readline substitute)(
13856 # ---------------------------------------------------
13857 # this allows you to turn it completely off
13858 # Check whether --enable-conio was given.
13859 if test "${enable_conio+set}" = set; then
13860 enableval=$enable_conio; if test x$enableval = xno; then
13868 # ---------------------------------------------------
13869 # Check for IPv6 support
13870 # ---------------------------------------------------
13871 # this allows you to turn it completely off
13873 # Check whether --enable-ipv6 was given.
13874 if test "${enable_ipv6+set}" = set; then
13875 enableval=$enable_ipv6; if test x$enableval = xno; then
13882 if test x$support_ipv6 = xyes; then
13883 cat >conftest.$ac_ext <<_ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13889 #include <sys/types.h>
13890 #include <sys/socket.h>
13891 #include <netinet/in.h>
13895 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_link") 2>conftest.er1
13909 grep -v '^ *+' conftest.er1 >conftest.err
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } && {
13914 test -z "$ac_c_werror_flag" ||
13915 test ! -s conftest.err
13916 } && test -s conftest$ac_exeext &&
13917 $as_test_x conftest$ac_exeext; then
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13927 conftest$ac_exeext conftest.$ac_ext
13930 if test x$support_ipv6 = xyes; then
13932 cat >>confdefs.h <<\_ACEOF
13933 #define HAVE_IPV6 1
13941 if test x$support_conio = xyes; then
13942 if test "${ac_cv_header_termcap_h+set}" = set; then
13943 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13944 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13945 if test "${ac_cv_header_termcap_h+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13949 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13951 # Is the header compilable?
13952 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13953 echo $ECHO_N "checking termcap.h usability... $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 $ac_includes_default
13961 #include <termcap.h>
13963 rm -f conftest.$ac_objext
13964 if { (ac_try="$ac_compile"
13965 case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13972 grep -v '^ *+' conftest.er1 >conftest.err
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.$ac_objext; then
13980 ac_header_compiler=yes
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ac_header_compiler=no
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13990 echo "${ECHO_T}$ac_header_compiler" >&6; }
13992 # Is the header present?
13993 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13994 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 #include <termcap.h>
14003 if { (ac_try="$ac_cpp conftest.$ac_ext"
14004 case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14011 grep -v '^ *+' conftest.er1 >conftest.err
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } >/dev/null && {
14016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14017 test ! -s conftest.err
14019 ac_header_preproc=yes
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ac_header_preproc=no
14027 rm -f conftest.err conftest.$ac_ext
14028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14029 echo "${ECHO_T}$ac_header_preproc" >&6; }
14031 # So? What about this header?
14032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14034 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14035 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14037 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14038 ac_header_preproc=yes
14041 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14042 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14044 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14046 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14048 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14050 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14052 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14056 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14057 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14058 if test "${ac_cv_header_termcap_h+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 ac_cv_header_termcap_h=$ac_header_preproc
14063 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14064 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14067 if test $ac_cv_header_termcap_h = yes; then
14068 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14069 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14070 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 ac_check_lib_save_LIBS=$LIBS
14074 LIBS="-ltermcap $LIBS"
14075 cat >conftest.$ac_ext <<_ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14082 /* Override any GCC internal prototype to avoid an error.
14083 Use char because int might match the return type of a GCC
14084 builtin and then its argument prototype would still apply. */
14097 rm -f conftest.$ac_objext conftest$ac_exeext
14098 if { (ac_try="$ac_link"
14099 case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_link") 2>conftest.er1
14106 grep -v '^ *+' conftest.er1 >conftest.err
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } && {
14111 test -z "$ac_c_werror_flag" ||
14112 test ! -s conftest.err
14113 } && test -s conftest$ac_exeext &&
14114 $as_test_x conftest$ac_exeext; then
14115 ac_cv_lib_termcap_tgetent=yes
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ac_cv_lib_termcap_tgetent=no
14123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14124 conftest$ac_exeext conftest.$ac_ext
14125 LIBS=$ac_check_lib_save_LIBS
14127 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14128 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14129 if test $ac_cv_lib_termcap_tgetent = yes; then
14130 CONS_LIBS="-ltermcap"
14134 support_readline=no
14136 cat >>confdefs.h <<\_ACEOF
14137 #define HAVE_CONIO 1
14142 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14143 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14144 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 ac_check_lib_save_LIBS=$LIBS
14148 LIBS="-lncurses $LIBS"
14149 cat >conftest.$ac_ext <<_ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14156 /* Override any GCC internal prototype to avoid an error.
14157 Use char because int might match the return type of a GCC
14158 builtin and then its argument prototype would still apply. */
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (ac_try="$ac_link"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_link") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1 >conftest.err
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest$ac_exeext &&
14188 $as_test_x conftest$ac_exeext; then
14189 ac_cv_lib_ncurses_tgetent=yes
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 ac_cv_lib_ncurses_tgetent=no
14197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14201 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14202 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14203 if test $ac_cv_lib_ncurses_tgetent = yes; then
14204 CONS_LIBS="-lncurses"
14208 support_readline=no
14210 cat >>confdefs.h <<\_ACEOF
14211 #define HAVE_CONIO 1
14224 for ac_header in curses.h
14226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 ac_res=`eval echo '${'$as_ac_Header'}'`
14234 { echo "$as_me:$LINENO: result: $ac_res" >&5
14235 echo "${ECHO_T}$ac_res" >&6; }
14237 # Is the header compilable?
14238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14239 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
14247 #include <$ac_header>
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_compile") 2>conftest.er1
14258 grep -v '^ *+' conftest.er1 >conftest.err
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } && {
14263 test -z "$ac_c_werror_flag" ||
14264 test ! -s conftest.err
14265 } && test -s conftest.$ac_objext; then
14266 ac_header_compiler=yes
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 ac_header_compiler=no
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14276 echo "${ECHO_T}$ac_header_compiler" >&6; }
14278 # Is the header present?
14279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14281 cat >conftest.$ac_ext <<_ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 #include <$ac_header>
14289 if { (ac_try="$ac_cpp conftest.$ac_ext"
14290 case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14297 grep -v '^ *+' conftest.er1 >conftest.err
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } >/dev/null && {
14302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14303 test ! -s conftest.err
14305 ac_header_preproc=yes
14307 echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14310 ac_header_preproc=no
14313 rm -f conftest.err conftest.$ac_ext
14314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14315 echo "${ECHO_T}$ac_header_preproc" >&6; }
14317 # So? What about this header?
14318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14324 ac_header_preproc=yes
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 eval "$as_ac_Header=\$ac_header_preproc"
14349 ac_res=`eval echo '${'$as_ac_Header'}'`
14350 { echo "$as_me:$LINENO: result: $ac_res" >&5
14351 echo "${ECHO_T}$ac_res" >&6; }
14354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355 cat >>confdefs.h <<_ACEOF
14356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14363 { echo "$as_me:$LINENO: checking for term.h" >&5
14364 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14365 if test "${ac_cv_header_term_h+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 cat >conftest.$ac_ext <<_ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14375 #include <curses.h>
14381 rm -f conftest.$ac_objext
14382 if { (ac_try="$ac_compile"
14383 case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_compile") 2>conftest.er1
14390 grep -v '^ *+' conftest.er1 >conftest.err
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } && {
14395 test -z "$ac_c_werror_flag" ||
14396 test ! -s conftest.err
14397 } && test -s conftest.$ac_objext; then
14398 ac_cv_header_term_h=yes
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_cv_header_term_h=no
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14409 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14410 if test $ac_cv_header_term_h = yes; then
14411 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14412 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14413 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14414 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 ac_check_lib_save_LIBS=$LIBS
14417 LIBS="-lcurses $LIBS"
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply. */
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_link") 2>conftest.er1
14449 grep -v '^ *+' conftest.er1 >conftest.err
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest$ac_exeext &&
14457 $as_test_x conftest$ac_exeext; then
14458 ac_cv_lib_curses_tgetent=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_cv_lib_curses_tgetent=no
14466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14467 conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14470 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14471 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14472 if test $ac_cv_lib_curses_tgetent = yes; then
14473 CONS_LIBS="-lcurses"
14477 support_readline=no
14479 cat >>confdefs.h <<\_ACEOF
14480 #define HAVE_CONIO 1
14488 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14499 # ---------------------------------------------------
14500 # Check for readline support/directory (default off)
14501 # ---------------------------------------------------
14502 # this allows you to turn it completely off
14503 # Check whether --enable-readline was given.
14504 if test "${enable_readline+set}" = set; then
14505 enableval=$enable_readline; if test x$enableval = xno; then
14506 support_readline=no
14513 if test x$support_readline = xyes; then
14515 # Check whether --with-readline was given.
14516 if test "${with_readline+set}" = set; then
14517 withval=$with_readline;
14518 case "$with_readline" in
14521 if test -f ${with_readline}/readline.h; then
14522 CONS_INC="-I${with_readline}"
14523 CONS_LDFLAGS="-L$with_readline"
14524 elif test -f ${with_readline}/include/readline/readline.h; then
14525 CONS_INC="-I${with_readline}/include/readline"
14526 CONS_LDFLAGS="-L${with_readline}/lib"
14527 with_readline="${with_readline}/include/readline"
14529 with_readline="/usr/include/readline"
14531 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14533 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14534 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 ac_res=`eval echo '${'$as_ac_Header'}'`
14539 { echo "$as_me:$LINENO: result: $ac_res" >&5
14540 echo "${ECHO_T}$ac_res" >&6; }
14542 # Is the header compilable?
14543 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14544 echo $ECHO_N "checking ${with_readline}/readline.h usability... $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 $ac_includes_default
14552 #include <${with_readline}/readline.h>
14554 rm -f conftest.$ac_objext
14555 if { (ac_try="$ac_compile"
14556 case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_compile") 2>conftest.er1
14563 grep -v '^ *+' conftest.er1 >conftest.err
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } && {
14568 test -z "$ac_c_werror_flag" ||
14569 test ! -s conftest.err
14570 } && test -s conftest.$ac_objext; then
14571 ac_header_compiler=yes
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14576 ac_header_compiler=no
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14581 echo "${ECHO_T}$ac_header_compiler" >&6; }
14583 # Is the header present?
14584 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14585 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14586 cat >conftest.$ac_ext <<_ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 #include <${with_readline}/readline.h>
14594 if { (ac_try="$ac_cpp conftest.$ac_ext"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14602 grep -v '^ *+' conftest.er1 >conftest.err
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } >/dev/null && {
14607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14608 test ! -s conftest.err
14610 ac_header_preproc=yes
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14615 ac_header_preproc=no
14618 rm -f conftest.err conftest.$ac_ext
14619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14620 echo "${ECHO_T}$ac_header_preproc" >&6; }
14622 # So? What about this header?
14623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14625 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14626 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14627 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14628 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14629 ac_header_preproc=yes
14632 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14633 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14635 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14637 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14639 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14641 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14643 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14647 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14648 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 eval "$as_ac_Header=\$ac_header_preproc"
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655 { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_READLINE 1
14665 CONS_LIBS="-lreadline -lhistory -ltermcap"
14670 echo "readline.h not found. readline turned off ..."
14682 # check for standard readline library
14683 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14684 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14685 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14686 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14690 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14692 # Is the header compilable?
14693 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14694 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $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 $ac_includes_default
14702 #include </usr/include/readline/readline.h>
14704 rm -f conftest.$ac_objext
14705 if { (ac_try="$ac_compile"
14706 case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_compile") 2>conftest.er1
14713 grep -v '^ *+' conftest.er1 >conftest.err
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } && {
14718 test -z "$ac_c_werror_flag" ||
14719 test ! -s conftest.err
14720 } && test -s conftest.$ac_objext; then
14721 ac_header_compiler=yes
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ac_header_compiler=no
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14731 echo "${ECHO_T}$ac_header_compiler" >&6; }
14733 # Is the header present?
14734 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14735 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14736 cat >conftest.$ac_ext <<_ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 #include </usr/include/readline/readline.h>
14744 if { (ac_try="$ac_cpp conftest.$ac_ext"
14745 case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14752 grep -v '^ *+' conftest.er1 >conftest.err
14754 cat conftest.err >&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } >/dev/null && {
14757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14758 test ! -s conftest.err
14760 ac_header_preproc=yes
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 ac_header_preproc=no
14768 rm -f conftest.err conftest.$ac_ext
14769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14770 echo "${ECHO_T}$ac_header_preproc" >&6; }
14772 # So? What about this header?
14773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14775 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14776 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14778 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14779 ac_header_preproc=yes
14782 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14783 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14785 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14787 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14789 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14791 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14793 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14797 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14798 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14799 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14804 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14805 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14808 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14810 cat >>confdefs.h <<\_ACEOF
14811 #define HAVE_READLINE 1
14815 CONS_INC="-I/usr/include/readline"
14816 CONS_LIBS="-lreadline -ltermcap"
14820 # Did not find standard library, so try Bacula's default
14821 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14823 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14824 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 ac_res=`eval echo '${'$as_ac_Header'}'`
14829 { echo "$as_me:$LINENO: result: $ac_res" >&5
14830 echo "${ECHO_T}$ac_res" >&6; }
14832 # Is the header compilable?
14833 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14834 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $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 $ac_includes_default
14842 #include <${TOP_DIR}/depkgs/readline/readline.h>
14844 rm -f conftest.$ac_objext
14845 if { (ac_try="$ac_compile"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_compile") 2>conftest.er1
14853 grep -v '^ *+' conftest.er1 >conftest.err
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } && {
14858 test -z "$ac_c_werror_flag" ||
14859 test ! -s conftest.err
14860 } && test -s conftest.$ac_objext; then
14861 ac_header_compiler=yes
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_header_compiler=no
14869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14871 echo "${ECHO_T}$ac_header_compiler" >&6; }
14873 # Is the header present?
14874 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14875 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14876 cat >conftest.$ac_ext <<_ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 #include <${TOP_DIR}/depkgs/readline/readline.h>
14884 if { (ac_try="$ac_cpp conftest.$ac_ext"
14885 case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14892 grep -v '^ *+' conftest.er1 >conftest.err
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } >/dev/null && {
14897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14898 test ! -s conftest.err
14900 ac_header_preproc=yes
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14905 ac_header_preproc=no
14908 rm -f conftest.err conftest.$ac_ext
14909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14910 echo "${ECHO_T}$ac_header_preproc" >&6; }
14912 # So? What about this header?
14913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14915 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14916 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14918 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14919 ac_header_preproc=yes
14922 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14923 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14925 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14927 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14929 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14931 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14933 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14937 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14938 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 eval "$as_ac_Header=\$ac_header_preproc"
14944 ac_res=`eval echo '${'$as_ac_Header'}'`
14945 { echo "$as_me:$LINENO: result: $ac_res" >&5
14946 echo "${ECHO_T}$ac_res" >&6; }
14949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_READLINE 1
14956 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14957 CONS_LIBS="-lreadline -lhistory -ltermcap"
14958 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14959 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14963 echo "readline.h not found. readline turned off ..."
14990 # Minimal stuff for readline Makefile configuration
14993 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14994 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14995 if test "${ac_cv_header_stat_broken+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 cat >conftest.$ac_ext <<_ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004 #include <sys/types.h>
15005 #include <sys/stat.h>
15007 #if defined S_ISBLK && defined S_IFDIR
15008 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15011 #if defined S_ISBLK && defined S_IFCHR
15012 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15015 #if defined S_ISLNK && defined S_IFREG
15016 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15019 #if defined S_ISSOCK && defined S_IFREG
15020 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 ac_cv_header_stat_broken=no
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_cv_header_stat_broken=yes
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15052 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15053 if test $ac_cv_header_stat_broken = yes; then
15055 cat >>confdefs.h <<\_ACEOF
15056 #define STAT_MACROS_BROKEN 1
15066 ac_header_dirent=no
15067 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15068 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15069 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15070 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 cat >conftest.$ac_ext <<_ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <sys/types.h>
15092 rm -f conftest.$ac_objext
15093 if { (ac_try="$ac_compile"
15094 case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_compile") 2>conftest.er1
15101 grep -v '^ *+' conftest.er1 >conftest.err
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } && {
15106 test -z "$ac_c_werror_flag" ||
15107 test ! -s conftest.err
15108 } && test -s conftest.$ac_objext; then
15109 eval "$as_ac_Header=yes"
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 eval "$as_ac_Header=no"
15117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 ac_res=`eval echo '${'$as_ac_Header'}'`
15120 { echo "$as_me:$LINENO: result: $ac_res" >&5
15121 echo "${ECHO_T}$ac_res" >&6; }
15122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15123 cat >>confdefs.h <<_ACEOF
15124 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15127 ac_header_dirent=$ac_hdr; break
15131 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15132 if test $ac_header_dirent = dirent.h; then
15133 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15134 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15135 if test "${ac_cv_search_opendir+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 ac_func_search_save_LIBS=$LIBS
15139 cat >conftest.$ac_ext <<_ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15146 /* Override any GCC internal prototype to avoid an error.
15147 Use char because int might match the return type of a GCC
15148 builtin and then its argument prototype would still apply. */
15161 for ac_lib in '' dir; do
15162 if test -z "$ac_lib"; then
15163 ac_res="none required"
15166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15168 rm -f conftest.$ac_objext conftest$ac_exeext
15169 if { (ac_try="$ac_link"
15170 case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_link") 2>conftest.er1
15177 grep -v '^ *+' conftest.er1 >conftest.err
15179 cat conftest.err >&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } && {
15182 test -z "$ac_c_werror_flag" ||
15183 test ! -s conftest.err
15184 } && test -s conftest$ac_exeext &&
15185 $as_test_x conftest$ac_exeext; then
15186 ac_cv_search_opendir=$ac_res
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15196 if test "${ac_cv_search_opendir+set}" = set; then
15200 if test "${ac_cv_search_opendir+set}" = set; then
15203 ac_cv_search_opendir=no
15205 rm conftest.$ac_ext
15206 LIBS=$ac_func_search_save_LIBS
15208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15210 ac_res=$ac_cv_search_opendir
15211 if test "$ac_res" != no; then
15212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15217 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15219 if test "${ac_cv_search_opendir+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 ac_func_search_save_LIBS=$LIBS
15223 cat >conftest.$ac_ext <<_ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15230 /* Override any GCC internal prototype to avoid an error.
15231 Use char because int might match the return type of a GCC
15232 builtin and then its argument prototype would still apply. */
15245 for ac_lib in '' x; do
15246 if test -z "$ac_lib"; then
15247 ac_res="none required"
15250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15252 rm -f conftest.$ac_objext conftest$ac_exeext
15253 if { (ac_try="$ac_link"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_link") 2>conftest.er1
15261 grep -v '^ *+' conftest.er1 >conftest.err
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest$ac_exeext &&
15269 $as_test_x conftest$ac_exeext; then
15270 ac_cv_search_opendir=$ac_res
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15280 if test "${ac_cv_search_opendir+set}" = set; then
15284 if test "${ac_cv_search_opendir+set}" = set; then
15287 ac_cv_search_opendir=no
15289 rm conftest.$ac_ext
15290 LIBS=$ac_func_search_save_LIBS
15292 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15293 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15294 ac_res=$ac_cv_search_opendir
15295 if test "$ac_res" != no; then
15296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15309 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 cat >conftest.$ac_ext <<_ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15325 #define $ac_func innocuous_$ac_func
15327 /* System header to define __stub macros and hopefully few prototypes,
15328 which can conflict with char $ac_func (); below.
15329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15330 <limits.h> exists even on freestanding compilers. */
15333 # include <limits.h>
15335 # include <assert.h>
15340 /* Override any GCC internal prototype to avoid an error.
15341 Use char because int might match the return type of a GCC
15342 builtin and then its argument prototype would still apply. */
15347 /* The GNU C library defines this for functions which it implements
15348 to always fail with ENOSYS. Some functions are actually named
15349 something starting with __ and the normal name is an alias. */
15350 #if defined __stub_$ac_func || defined __stub___$ac_func
15357 return $ac_func ();
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (ac_try="$ac_link"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_link") 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest$ac_exeext &&
15379 $as_test_x conftest$ac_exeext; then
15380 eval "$as_ac_var=yes"
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 eval "$as_ac_var=no"
15388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15389 conftest$ac_exeext conftest.$ac_ext
15391 ac_res=`eval echo '${'$as_ac_var'}'`
15392 { echo "$as_me:$LINENO: result: $ac_res" >&5
15393 echo "${ECHO_T}$ac_res" >&6; }
15394 if test `eval echo '${'$as_ac_var'}'` = yes; then
15395 cat >>confdefs.h <<_ACEOF
15396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15404 for ac_func in nanosleep nl_langinfo
15406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15420 #define $ac_func innocuous_$ac_func
15422 /* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char $ac_func (); below.
15424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425 <limits.h> exists even on freestanding compilers. */
15428 # include <limits.h>
15430 # include <assert.h>
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15442 /* The GNU C library defines this for functions which it implements
15443 to always fail with ENOSYS. Some functions are actually named
15444 something starting with __ and the normal name is an alias. */
15445 #if defined __stub_$ac_func || defined __stub___$ac_func
15452 return $ac_func ();
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (ac_try="$ac_link"
15459 case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_link") 2>conftest.er1
15466 grep -v '^ *+' conftest.er1 >conftest.err
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest$ac_exeext &&
15474 $as_test_x conftest$ac_exeext; then
15475 eval "$as_ac_var=yes"
15477 echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15480 eval "$as_ac_var=no"
15483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484 conftest$ac_exeext conftest.$ac_ext
15486 ac_res=`eval echo '${'$as_ac_var'}'`
15487 { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15489 if test `eval echo '${'$as_ac_var'}'` = yes; then
15490 cat >>confdefs.h <<_ACEOF
15491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15498 for ac_header in varargs.h
15500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 ac_res=`eval echo '${'$as_ac_Header'}'`
15508 { echo "$as_me:$LINENO: result: $ac_res" >&5
15509 echo "${ECHO_T}$ac_res" >&6; }
15511 # Is the header compilable?
15512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15513 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15521 #include <$ac_header>
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_compile") 2>conftest.er1
15532 grep -v '^ *+' conftest.er1 >conftest.err
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest.$ac_objext; then
15540 ac_header_compiler=yes
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 ac_header_compiler=no
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15550 echo "${ECHO_T}$ac_header_compiler" >&6; }
15552 # Is the header present?
15553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15555 cat >conftest.$ac_ext <<_ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 #include <$ac_header>
15563 if { (ac_try="$ac_cpp conftest.$ac_ext"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15571 grep -v '^ *+' conftest.er1 >conftest.err
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } >/dev/null && {
15576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15577 test ! -s conftest.err
15579 ac_header_preproc=yes
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_header_preproc=no
15587 rm -f conftest.err conftest.$ac_ext
15588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15589 echo "${ECHO_T}$ac_header_preproc" >&6; }
15591 # So? What about this header?
15592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15598 ac_header_preproc=yes
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 eval "$as_ac_Header=\$ac_header_preproc"
15623 ac_res=`eval echo '${'$as_ac_Header'}'`
15624 { echo "$as_me:$LINENO: result: $ac_res" >&5
15625 echo "${ECHO_T}$ac_res" >&6; }
15628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15629 cat >>confdefs.h <<_ACEOF
15630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15638 # End of readline/conio stuff
15639 # -----------------------------------------------------------------------
15641 # -----------------------------------------------------------------------
15642 # Check for Python support
15644 { echo "$as_me:$LINENO: checking for Python support" >&5
15645 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15647 # Check whether --with-python was given.
15648 if test "${with_python+set}" = set; then
15649 withval=$with_python;
15652 if test "$withval" != "no"; then
15653 if test "$withval" = "yes"; then
15654 for python_root in /usr /usr/local /usr/sfw; do
15655 for ver in python2.2 python2.3 python2.4 python2.5; do
15656 if test -f $python_root/include/${ver}/Python.h; then
15657 PYTHON_INCDIR=-I$python_root/include/${ver}
15658 if test -d $python_root/lib64/${ver}/config; then
15659 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15661 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15667 if test x$PYTHON_INCDIR = x; then
15668 if test -f $prefix/include/Python.h; then
15669 PYTHON_INCDIR=-I$prefix/include
15670 if test -d $prefix/lib64/config; then
15671 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15673 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15676 { echo "$as_me:$LINENO: result: no" >&5
15677 echo "${ECHO_T}no" >&6; }
15678 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15679 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15680 { (exit 1); exit 1; }; }
15684 if test -f $withval/Python.h; then
15685 PYTHON_INCDIR=-I$withval
15686 PYTHON_LIBS="-L$withval/config -lpython"
15687 elif test -f $withval/include/Python.h; then
15688 PYTHON_INCDIR=-I$withval/include
15689 if test -d $withval/lib64/config; then
15690 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15692 PYTHON_LIBS="-L$withval/lib/config -lpython"
15694 elif test -f $withval/include/python/Python.h; then
15695 PYTHON_INCDIR=-I$withval/include/python
15696 if test -d $withval/lib64/python/config; then
15697 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15699 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15702 { echo "$as_me:$LINENO: result: no" >&5
15703 echo "${ECHO_T}no" >&6; }
15704 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15705 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15706 { (exit 1); exit 1; }; }
15709 cat >>confdefs.h <<\_ACEOF
15710 #define HAVE_PYTHON 1
15713 { echo "$as_me:$LINENO: result: yes" >&5
15714 echo "${ECHO_T}yes" >&6; }
15716 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15717 echo "$as_me: checking for more Python libs" >&6;}
15718 saved_LIBS="$LIBS"; LIBS=
15719 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15720 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15721 if test "${ac_cv_search_shm_open+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 ac_func_search_save_LIBS=$LIBS
15725 cat >conftest.$ac_ext <<_ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15732 /* Override any GCC internal prototype to avoid an error.
15733 Use char because int might match the return type of a GCC
15734 builtin and then its argument prototype would still apply. */
15742 return shm_open ();
15747 for ac_lib in '' rt; do
15748 if test -z "$ac_lib"; then
15749 ac_res="none required"
15752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (ac_try="$ac_link"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_link") 2>conftest.er1
15763 grep -v '^ *+' conftest.er1 >conftest.err
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } && {
15768 test -z "$ac_c_werror_flag" ||
15769 test ! -s conftest.err
15770 } && test -s conftest$ac_exeext &&
15771 $as_test_x conftest$ac_exeext; then
15772 ac_cv_search_shm_open=$ac_res
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15782 if test "${ac_cv_search_shm_open+set}" = set; then
15786 if test "${ac_cv_search_shm_open+set}" = set; then
15789 ac_cv_search_shm_open=no
15791 rm conftest.$ac_ext
15792 LIBS=$ac_func_search_save_LIBS
15794 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15795 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15796 ac_res=$ac_cv_search_shm_open
15797 if test "$ac_res" != no; then
15798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15803 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15804 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15805 if test "${ac_cv_lib_util_openpty+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15808 ac_check_lib_save_LIBS=$LIBS
15809 LIBS="-lutil $LIBS"
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15817 /* Override any GCC internal prototype to avoid an error.
15818 Use char because int might match the return type of a GCC
15819 builtin and then its argument prototype would still apply. */
15832 rm -f conftest.$ac_objext conftest$ac_exeext
15833 if { (ac_try="$ac_link"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_link") 2>conftest.er1
15841 grep -v '^ *+' conftest.er1 >conftest.err
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } && {
15846 test -z "$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15848 } && test -s conftest$ac_exeext &&
15849 $as_test_x conftest$ac_exeext; then
15850 ac_cv_lib_util_openpty=yes
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 ac_cv_lib_util_openpty=no
15858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15859 conftest$ac_exeext conftest.$ac_ext
15860 LIBS=$ac_check_lib_save_LIBS
15862 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15863 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15864 if test $ac_cv_lib_util_openpty = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define HAVE_LIBUTIL 1
15869 LIBS="-lutil $LIBS"
15873 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15876 { echo "$as_me:$LINENO: result: no" >&5
15877 echo "${ECHO_T}no" >&6; }
15882 { echo "$as_me:$LINENO: result: no" >&5
15883 echo "${ECHO_T}no" >&6; }
15891 # Find where sockets are (especially for Solaris)
15892 # Do this before the TCP Wrappers test since tcp wrappers
15893 # uses the socket library and some linkers are stupid.
15895 { echo "$as_me:$LINENO: checking for socket" >&5
15896 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15897 if test "${ac_cv_func_socket+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 cat >conftest.$ac_ext <<_ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15908 #define socket innocuous_socket
15910 /* System header to define __stub macros and hopefully few prototypes,
15911 which can conflict with char socket (); below.
15912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15913 <limits.h> exists even on freestanding compilers. */
15916 # include <limits.h>
15918 # include <assert.h>
15923 /* Override any GCC internal prototype to avoid an error.
15924 Use char because int might match the return type of a GCC
15925 builtin and then its argument prototype would still apply. */
15930 /* The GNU C library defines this for functions which it implements
15931 to always fail with ENOSYS. Some functions are actually named
15932 something starting with __ and the normal name is an alias. */
15933 #if defined __stub_socket || defined __stub___socket
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (ac_try="$ac_link"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952 (eval "$ac_link") 2>conftest.er1
15954 grep -v '^ *+' conftest.er1 >conftest.err
15956 cat conftest.err >&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } && {
15959 test -z "$ac_c_werror_flag" ||
15960 test ! -s conftest.err
15961 } && test -s conftest$ac_exeext &&
15962 $as_test_x conftest$ac_exeext; then
15963 ac_cv_func_socket=yes
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15968 ac_cv_func_socket=no
15971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15972 conftest$ac_exeext conftest.$ac_ext
15974 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15975 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15976 if test $ac_cv_func_socket = yes; then
15977 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15978 echo "${ECHO_T}using libc's socket" >&6; }
15981 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15982 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15983 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 ac_check_lib_save_LIBS=$LIBS
15987 LIBS="-lxnet $LIBS"
15988 cat >conftest.$ac_ext <<_ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15995 /* Override any GCC internal prototype to avoid an error.
15996 Use char because int might match the return type of a GCC
15997 builtin and then its argument prototype would still apply. */
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (ac_try="$ac_link"
16012 case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_link") 2>conftest.er1
16019 grep -v '^ *+' conftest.er1 >conftest.err
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } && {
16024 test -z "$ac_c_werror_flag" ||
16025 test ! -s conftest.err
16026 } && test -s conftest$ac_exeext &&
16027 $as_test_x conftest$ac_exeext; then
16028 ac_cv_lib_xnet_socket=yes
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 ac_cv_lib_xnet_socket=no
16036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16037 conftest$ac_exeext conftest.$ac_ext
16038 LIBS=$ac_check_lib_save_LIBS
16040 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16041 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16042 if test $ac_cv_lib_xnet_socket = yes; then
16043 cat >>confdefs.h <<_ACEOF
16044 #define HAVE_LIBXNET 1
16047 LIBS="-lxnet $LIBS"
16052 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16053 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16054 if test "${ac_cv_lib_socket_socket+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 ac_check_lib_save_LIBS=$LIBS
16058 LIBS="-lsocket $LIBS"
16059 cat >conftest.$ac_ext <<_ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16066 /* Override any GCC internal prototype to avoid an error.
16067 Use char because int might match the return type of a GCC
16068 builtin and then its argument prototype would still apply. */
16081 rm -f conftest.$ac_objext conftest$ac_exeext
16082 if { (ac_try="$ac_link"
16083 case "(($ac_try" in
16084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_link") 2>conftest.er1
16090 grep -v '^ *+' conftest.er1 >conftest.err
16092 cat conftest.err >&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } && {
16095 test -z "$ac_c_werror_flag" ||
16096 test ! -s conftest.err
16097 } && test -s conftest$ac_exeext &&
16098 $as_test_x conftest$ac_exeext; then
16099 ac_cv_lib_socket_socket=yes
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16104 ac_cv_lib_socket_socket=no
16107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16108 conftest$ac_exeext conftest.$ac_ext
16109 LIBS=$ac_check_lib_save_LIBS
16111 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16112 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16113 if test $ac_cv_lib_socket_socket = yes; then
16114 cat >>confdefs.h <<_ACEOF
16115 #define HAVE_LIBSOCKET 1
16118 LIBS="-lsocket $LIBS"
16123 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16124 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16125 if test "${ac_cv_lib_inet_socket+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 ac_check_lib_save_LIBS=$LIBS
16129 LIBS="-linet $LIBS"
16130 cat >conftest.$ac_ext <<_ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16137 /* Override any GCC internal prototype to avoid an error.
16138 Use char because int might match the return type of a GCC
16139 builtin and then its argument prototype would still apply. */
16152 rm -f conftest.$ac_objext conftest$ac_exeext
16153 if { (ac_try="$ac_link"
16154 case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_link") 2>conftest.er1
16161 grep -v '^ *+' conftest.er1 >conftest.err
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } && {
16166 test -z "$ac_c_werror_flag" ||
16167 test ! -s conftest.err
16168 } && test -s conftest$ac_exeext &&
16169 $as_test_x conftest$ac_exeext; then
16170 ac_cv_lib_inet_socket=yes
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 ac_cv_lib_inet_socket=no
16178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16179 conftest$ac_exeext conftest.$ac_ext
16180 LIBS=$ac_check_lib_save_LIBS
16182 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16183 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16184 if test $ac_cv_lib_inet_socket = yes; then
16185 cat >>confdefs.h <<_ACEOF
16186 #define HAVE_LIBINET 1
16189 LIBS="-linet $LIBS"
16197 # -----------------------------------------------------------
16198 # Check whether user wants TCP wrappers support (default off)
16199 # -----------------------------------------------------------
16203 # Check whether --with-tcp-wrappers was given.
16204 if test "${with_tcp_wrappers+set}" = set; then
16205 withval=$with_tcp_wrappers;
16206 if test "x$withval" != "xno" ; then
16208 LIBS="$saved_LIBS -lwrap"
16209 { echo "$as_me:$LINENO: checking for libwrap" >&5
16210 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16211 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16212 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16213 if test "${ac_cv_search_nanosleep+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 ac_func_search_save_LIBS=$LIBS
16217 cat >conftest.$ac_ext <<_ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16224 /* Override any GCC internal prototype to avoid an error.
16225 Use char because int might match the return type of a GCC
16226 builtin and then its argument prototype would still apply. */
16234 return nanosleep ();
16239 for ac_lib in '' rt; do
16240 if test -z "$ac_lib"; then
16241 ac_res="none required"
16244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16246 rm -f conftest.$ac_objext conftest$ac_exeext
16247 if { (ac_try="$ac_link"
16248 case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_link") 2>conftest.er1
16255 grep -v '^ *+' conftest.er1 >conftest.err
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } && {
16260 test -z "$ac_c_werror_flag" ||
16261 test ! -s conftest.err
16262 } && test -s conftest$ac_exeext &&
16263 $as_test_x conftest$ac_exeext; then
16264 ac_cv_search_nanosleep=$ac_res
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16274 if test "${ac_cv_search_nanosleep+set}" = set; then
16278 if test "${ac_cv_search_nanosleep+set}" = set; then
16281 ac_cv_search_nanosleep=no
16283 rm conftest.$ac_ext
16284 LIBS=$ac_func_search_save_LIBS
16286 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16287 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16288 ac_res=$ac_cv_search_nanosleep
16289 if test "$ac_res" != no; then
16290 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 #include <sys/types.h>
16302 int deny_severity = 0;
16303 int allow_severity = 0;
16304 struct request_info *req;
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (ac_try="$ac_link"
16315 case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_link") 2>conftest.er1
16322 grep -v '^ *+' conftest.er1 >conftest.err
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && {
16327 test -z "$ac_c_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest$ac_exeext &&
16330 $as_test_x conftest$ac_exeext; then
16332 { echo "$as_me:$LINENO: result: yes" >&5
16333 echo "${ECHO_T}yes" >&6; }
16335 cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_LIBWRAP 1
16344 echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16348 LIBS="$saved_LIBS -lwrap -lnsl"
16349 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16350 cat >conftest.$ac_ext <<_ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 #include <sys/types.h>
16358 int deny_severity = 0;
16359 int allow_severity = 0;
16360 struct request_info *req;
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (ac_try="$ac_link"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_link") 2>conftest.er1
16378 grep -v '^ *+' conftest.er1 >conftest.err
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } && {
16383 test -z "$ac_c_werror_flag" ||
16384 test ! -s conftest.err
16385 } && test -s conftest$ac_exeext &&
16386 $as_test_x conftest$ac_exeext; then
16388 { echo "$as_me:$LINENO: result: yes" >&5
16389 echo "${ECHO_T}yes" >&6; }
16391 cat >>confdefs.h <<\_ACEOF
16392 #define HAVE_LIBWRAP 1
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16404 echo "$as_me: error: *** libwrap missing" >&2;}
16405 { (exit 1); exit 1; }; }
16409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16410 conftest$ac_exeext conftest.$ac_ext
16414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16415 conftest$ac_exeext conftest.$ac_ext
16422 # -----------------------------------------------------------
16423 # Check whether OpenSSL is available
16424 # -----------------------------------------------------------
16425 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16426 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16428 # Check whether --with-openssl was given.
16429 if test "${with_openssl+set}" = set; then
16430 withval=$with_openssl; with_openssl_directory=${withval}
16434 if test "x$with_openssl_directory" != "x"; then
16435 OPENSSL_LIBS="-lssl -lcrypto"
16438 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16439 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16440 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16443 saved_LIBS="${LIBS}"
16444 saved_CFLAGS="${CFLAGS}"
16445 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16446 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16448 cat >conftest.$ac_ext <<_ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16454 #include <openssl/ssl.h>
16458 CRYPTO_set_id_callback(NULL);
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (ac_try="$ac_link"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_link") 2>conftest.er1
16472 grep -v '^ *+' conftest.er1 >conftest.err
16474 cat conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } && {
16477 test -z "$ac_c_werror_flag" ||
16478 test ! -s conftest.err
16479 } && test -s conftest$ac_exeext &&
16480 $as_test_x conftest$ac_exeext; then
16483 support_crypto="yes"
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16494 conftest$ac_exeext conftest.$ac_ext
16496 cat >conftest.$ac_ext <<_ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16502 #include <openssl/evp.h>
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } && {
16525 test -z "$ac_c_werror_flag" ||
16526 test ! -s conftest.err
16527 } && test -s conftest$ac_exeext &&
16528 $as_test_x conftest$ac_exeext; then
16529 ac_cv_openssl_sha2="yes"
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 ac_cv_openssl_sha2="no"
16538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16539 conftest$ac_exeext conftest.$ac_ext
16541 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16542 # implementation, presumably for export reasons. If 192bit AES
16543 # is available, we assume that we're running with a 'non-export'
16545 cat >conftest.$ac_ext <<_ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 #include <openssl/evp.h>
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_link") 2>conftest.er1
16569 grep -v '^ *+' conftest.er1 >conftest.err
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && {
16574 test -z "$ac_c_werror_flag" ||
16575 test ! -s conftest.err
16576 } && test -s conftest$ac_exeext &&
16577 $as_test_x conftest$ac_exeext; then
16578 ac_cv_openssl_export="no"
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_cv_openssl_export="yes"
16587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16588 conftest$ac_exeext conftest.$ac_ext
16590 LIBS="${saved_LIBS}"
16591 CFLAGS="${saved_CFLAGS}"
16593 if test "$support_tls" = "yes"; then
16595 cat >>confdefs.h <<\_ACEOF
16596 #define HAVE_OPENSSL 1
16600 cat >>confdefs.h <<\_ACEOF
16605 cat >>confdefs.h <<\_ACEOF
16606 #define HAVE_CRYPTO 1
16611 if test "$ac_cv_openssl_sha2" = "yes"; then
16613 cat >>confdefs.h <<\_ACEOF
16614 #define HAVE_SHA2 1
16619 if test "$ac_cv_openssl_export" = "yes"; then
16621 cat >>confdefs.h <<\_ACEOF
16622 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16628 support_crypto="no"
16633 { echo "$as_me:$LINENO: result: $support_tls" >&5
16634 echo "${ECHO_T}$support_tls" >&6; }
16639 # -----------------------------------------------------------
16640 # dlopen is needed for plugins
16641 # -----------------------------------------------------------
16642 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16643 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16644 if test "${ac_cv_search_dlopen+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 ac_func_search_save_LIBS=$LIBS
16648 cat >conftest.$ac_ext <<_ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16655 /* Override any GCC internal prototype to avoid an error.
16656 Use char because int might match the return type of a GCC
16657 builtin and then its argument prototype would still apply. */
16670 for ac_lib in '' dl; do
16671 if test -z "$ac_lib"; then
16672 ac_res="none required"
16675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16677 rm -f conftest.$ac_objext conftest$ac_exeext
16678 if { (ac_try="$ac_link"
16679 case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_link") 2>conftest.er1
16686 grep -v '^ *+' conftest.er1 >conftest.err
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } && {
16691 test -z "$ac_c_werror_flag" ||
16692 test ! -s conftest.err
16693 } && test -s conftest$ac_exeext &&
16694 $as_test_x conftest$ac_exeext; then
16695 ac_cv_search_dlopen=$ac_res
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16705 if test "${ac_cv_search_dlopen+set}" = set; then
16709 if test "${ac_cv_search_dlopen+set}" = set; then
16712 ac_cv_search_dlopen=no
16714 rm conftest.$ac_ext
16715 LIBS=$ac_func_search_save_LIBS
16717 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16718 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16719 ac_res=$ac_cv_search_dlopen
16720 if test "$ac_res" != no; then
16721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16726 # ------------------------------------------
16727 # Where to place working dir
16728 # ------------------------------------------
16729 working_dir=`eval echo ${prefix}/var/bacula/working`
16731 # Check whether --with-working-dir was given.
16732 if test "${with_working_dir+set}" = set; then
16733 withval=$with_working_dir;
16734 if test "x$withval" != "xno" ; then
16735 working_dir=$withval
16744 # ------------------------------------------------------------------
16745 # If the user has not set archivedir, we set our default as /tmp
16746 # ------------------------------------------------------------------
16749 # Check whether --with-archivedir was given.
16750 if test "${with_archivedir+set}" = set; then
16751 withval=$with_archivedir;
16752 if test "x$withval" != "xno" ; then
16753 archivedir=$withval
16764 # ------------------------------------------
16765 # Where to place scriptdir (script files)
16766 # ------------------------------------------
16767 scriptdir=`eval echo ${sysconfdir}`
16769 # Check whether --with-scriptdir was given.
16770 if test "${with_scriptdir+set}" = set; then
16771 withval=$with_scriptdir;
16772 if test "x$withval" != "xno" ; then
16783 # ------------------------------------------
16784 # Where to send dump email
16785 # ------------------------------------------
16786 dump_email=root@localhost
16788 # Check whether --with-dump-email was given.
16789 if test "${with_dump_email+set}" = set; then
16790 withval=$with_dump_email;
16791 if test "x$withval" != "xno" ; then
16792 dump_email=$withval
16801 # ------------------------------------------
16802 # Where to send job email
16803 # ------------------------------------------
16804 job_email=root@localhost
16806 # Check whether --with-job-email was given.
16807 if test "${with_job_email+set}" = set; then
16808 withval=$with_job_email;
16809 if test "x$withval" != "xno" ; then
16819 # ------------------------------------------
16820 # Where to find smtp host
16821 # ------------------------------------------
16822 smtp_host=localhost
16824 # Check whether --with-smtp_host was given.
16825 if test "${with_smtp_host+set}" = set; then
16826 withval=$with_smtp_host;
16827 if test "x$withval" != "xno" ; then
16838 # ------------------------------------
16839 # Where to place pid files
16840 # ------------------------------------
16843 # Check whether --with-pid-dir was given.
16844 if test "${with_pid_dir+set}" = set; then
16845 withval=$with_pid_dir;
16846 if test "x$withval" != "xno" ; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define _PATH_BACULA_PIDDIR "$piddir"
16861 # ------------------------------------
16862 # Where to place subsys "lock file"
16863 # ------------------------------------
16864 subsysdir=/var/run/subsys
16865 if test -d /var/run/subsys; then
16866 subsysdir=/var/run/subsys
16867 elif test -d /var/lock/subsys; then
16868 subsysdir=/var/lock/subsys
16870 subsysdir=/var/run/subsys
16873 # Check whether --with-subsys-dir was given.
16874 if test "${with_subsys_dir+set}" = set; then
16875 withval=$with_subsys_dir;
16876 if test "x$withval" != "xno" ; then
16888 # ------------------------------------
16889 # Where to start assigning ports
16890 # ------------------------------------
16893 # Check whether --with-baseport was given.
16894 if test "${with_baseport+set}" = set; then
16895 withval=$with_baseport;
16896 if test "x$withval" != "xno" ; then
16905 dir_port=`expr $baseport`
16906 fd_port=`expr $baseport + 1`
16907 sd_port=`expr $fd_port + 1`
16914 # ------------------------------------------
16915 # Generate passwords
16916 # ------------------------------------------
16919 # Check whether --with-dir-password was given.
16920 if test "${with_dir_password+set}" = set; then
16921 withval=$with_dir_password;
16922 if test "x$withval" != "xno" ; then
16923 dir_password=$withval
16930 if test "x$dir_password" = "x" ; then
16931 if test "x$OPENSSL" = "xnone" ; then
16932 key=`autoconf/randpass 33`
16934 key=`openssl rand -base64 33`
16941 # Check whether --with-fd-password was given.
16942 if test "${with_fd_password+set}" = set; then
16943 withval=$with_fd_password;
16944 if test "x$withval" != "xno" ; then
16945 fd_password=$withval
16952 if test "x$fd_password" = "x" ; then
16953 if test "x$OPENSSL" = "xnone" ; then
16954 key=`autoconf/randpass 37`
16956 key=`openssl rand -base64 33`
16963 # Check whether --with-sd-password was given.
16964 if test "${with_sd_password+set}" = set; then
16965 withval=$with_sd_password;
16966 if test "x$withval" != "xno" ; then
16967 sd_password=$withval
16974 if test "x$sd_password" = "x" ; then
16975 if test "x$OPENSSL" = "xnone" ; then
16976 key=`autoconf/randpass 41`
16978 key=`openssl rand -base64 33`
16985 # Check whether --with-mon-dir-password was given.
16986 if test "${with_mon_dir_password+set}" = set; then
16987 withval=$with_mon_dir_password;
16988 if test "x$withval" != "xno" ; then
16989 mon_dir_password=$withval
16996 if test "x$mon_dir_password" = "x" ; then
16997 if test "x$OPENSSL" = "xnone" ; then
16998 key=`autoconf/randpass 33`
17000 key=`openssl rand -base64 33`
17002 mon_dir_password=$key
17007 # Check whether --with-mon-fd-password was given.
17008 if test "${with_mon_fd_password+set}" = set; then
17009 withval=$with_mon_fd_password;
17010 if test "x$withval" != "xno" ; then
17011 mon_fd_password=$withval
17018 if test "x$mon_fd_password" = "x" ; then
17019 if test "x$OPENSSL" = "xnone" ; then
17020 key=`autoconf/randpass 37`
17022 key=`openssl rand -base64 33`
17024 mon_fd_password=$key
17029 # Check whether --with-mon-sd-password was given.
17030 if test "${with_mon_sd_password+set}" = set; then
17031 withval=$with_mon_sd_password;
17032 if test "x$withval" != "xno" ; then
17033 mon_sd_password=$withval
17040 if test "x$mon_sd_password" = "x" ; then
17041 if test "x$OPENSSL" = "xnone" ; then
17042 key=`autoconf/randpass 41`
17044 key=`openssl rand -base64 33`
17046 mon_sd_password=$key
17057 # Pickup any database name
17061 # Check whether --with-db_name was given.
17062 if test "${with_db_name+set}" = set; then
17063 withval=$with_db_name;
17064 if test "x$withval" != "x" ; then
17075 # Check whether --with-db_user was given.
17076 if test "${with_db_user+set}" = set; then
17077 withval=$with_db_user;
17078 if test "x$withval" != "x" ; then
17089 # Handle users and groups for each daemon
17093 # Check whether --with-dir_user was given.
17094 if test "${with_dir_user+set}" = set; then
17095 withval=$with_dir_user;
17096 if test "x$withval" != "x" ; then
17106 # Check whether --with-dir_group was given.
17107 if test "${with_dir_group+set}" = set; then
17108 withval=$with_dir_group;
17109 if test "x$withval" != "x" ; then
17119 # Check whether --with-sd_user was given.
17120 if test "${with_sd_user+set}" = set; then
17121 withval=$with_sd_user;
17122 if test "x$withval" != "x" ; then
17132 # Check whether --with-sd_group was given.
17133 if test "${with_sd_group+set}" = set; then
17134 withval=$with_sd_group;
17135 if test "x$withval" != "x" ; then
17145 # Check whether --with-fd_user was given.
17146 if test "${with_fd_user+set}" = set; then
17147 withval=$with_fd_user;
17148 if test "x$withval" != "x" ; then
17158 # Check whether --with-fd_group was given.
17159 if test "${with_fd_group+set}" = set; then
17160 withval=$with_fd_group;
17161 if test "x$withval" != "x" ; then
17177 # allow setting default executable permissions
17181 # Check whether --with-sbin-perm was given.
17182 if test "${with_sbin_perm+set}" = set; then
17183 withval=$with_sbin_perm;
17184 if test "x$withval" != "x" ; then
17194 # ------------------------------------------------
17195 # Bacula check for various SQL database engines
17196 # ------------------------------------------------
17200 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17201 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17203 # Check whether --with-postgresql was given.
17204 if test "${with_postgresql+set}" = set; then
17205 withval=$with_postgresql;
17206 if test "$withval" != "no"; then
17207 if test "$db_found" = "yes"; then
17208 { echo "$as_me:$LINENO: result: error" >&5
17209 echo "${ECHO_T}error" >&6; }
17210 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17211 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17212 { (exit 1); exit 1; }; };
17214 if test "$withval" = "yes"; then
17215 PG_CONFIG=`which pg_config`
17216 if test -n "$PG_CONFIG";then
17217 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17218 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17219 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17220 elif test -f /usr/local/include/libpq-fe.h; then
17221 POSTGRESQL_INCDIR=/usr/local/include
17222 if test -d /usr/local/lib64; then
17223 POSTGRESQL_LIBDIR=/usr/local/lib64
17225 POSTGRESQL_LIBDIR=/usr/local/lib
17227 POSTGRESQL_BINDIR=/usr/local/bin
17228 elif test -f /usr/include/libpq-fe.h; then
17229 POSTGRESQL_INCDIR=/usr/include
17230 if test -d /usr/lib64; then
17231 POSTGRESQL_LIBDIR=/usr/lib64
17233 POSTGRESQL_LIBDIR=/usr/lib
17235 POSTGRESQL_BINDIR=/usr/bin
17236 elif test -f /usr/include/pgsql/libpq-fe.h; then
17237 POSTGRESQL_INCDIR=/usr/include/pgsql
17238 if test -d /usr/lib64/pgsql; then
17239 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17241 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17243 POSTGRESQL_BINDIR=/usr/bin
17244 elif test -f /usr/include/postgresql/libpq-fe.h; then
17245 POSTGRESQL_INCDIR=/usr/include/postgresql
17246 if test -d /usr/lib64/postgresql; then
17247 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17249 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17251 POSTGRESQL_BINDIR=/usr/bin
17253 { echo "$as_me:$LINENO: result: no" >&5
17254 echo "${ECHO_T}no" >&6; }
17255 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17256 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17257 { (exit 1); exit 1; }; }
17259 elif test -f $withval/include/libpq-fe.h; then
17260 POSTGRESQL_INCDIR=$withval/include
17261 POSTGRESQL_LIBDIR=$withval/lib
17262 POSTGRESQL_BINDIR=$withval/bin
17263 elif test -f $withval/include/postgresql/libpq-fe.h; then
17264 POSTGRESQL_INCDIR=$withval/include/postgresql
17265 if test -d $withval/lib64; then
17266 POSTGRESQL_LIBDIR=$withval/lib64
17268 POSTGRESQL_LIBDIR=$withval/lib
17270 POSTGRESQL_BINDIR=$withval/bin
17272 { echo "$as_me:$LINENO: result: no" >&5
17273 echo "${ECHO_T}no" >&6; }
17274 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17275 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17276 { (exit 1); exit 1; }; }
17278 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17279 { echo "$as_me:$LINENO: checking for crypt" >&5
17280 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17281 if test "${ac_cv_func_crypt+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 cat >conftest.$ac_ext <<_ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17292 #define crypt innocuous_crypt
17294 /* System header to define __stub macros and hopefully few prototypes,
17295 which can conflict with char crypt (); below.
17296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17297 <limits.h> exists even on freestanding compilers. */
17300 # include <limits.h>
17302 # include <assert.h>
17307 /* Override any GCC internal prototype to avoid an error.
17308 Use char because int might match the return type of a GCC
17309 builtin and then its argument prototype would still apply. */
17314 /* The GNU C library defines this for functions which it implements
17315 to always fail with ENOSYS. Some functions are actually named
17316 something starting with __ and the normal name is an alias. */
17317 #if defined __stub_crypt || defined __stub___crypt
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_link") 2>conftest.er1
17338 grep -v '^ *+' conftest.er1 >conftest.err
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } && {
17343 test -z "$ac_c_werror_flag" ||
17344 test ! -s conftest.err
17345 } && test -s conftest$ac_exeext &&
17346 $as_test_x conftest$ac_exeext; then
17347 ac_cv_func_crypt=yes
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17352 ac_cv_func_crypt=no
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356 conftest$ac_exeext conftest.$ac_ext
17358 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17359 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17360 if test $ac_cv_func_crypt = yes; then
17363 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17364 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17365 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 ac_check_lib_save_LIBS=$LIBS
17369 LIBS="-lcrypt $LIBS"
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17377 /* Override any GCC internal prototype to avoid an error.
17378 Use char because int might match the return type of a GCC
17379 builtin and then its argument prototype would still apply. */
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (ac_try="$ac_link"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_link") 2>conftest.er1
17401 grep -v '^ *+' conftest.er1 >conftest.err
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest$ac_exeext &&
17409 $as_test_x conftest$ac_exeext; then
17410 ac_cv_lib_crypt_crypt=yes
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 ac_cv_lib_crypt_crypt=no
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419 conftest$ac_exeext conftest.$ac_ext
17420 LIBS=$ac_check_lib_save_LIBS
17422 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17423 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17424 if test $ac_cv_lib_crypt_crypt = yes; then
17425 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17430 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17431 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17432 SQL_BINDIR=$POSTGRESQL_BINDIR
17433 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17435 cat >>confdefs.h <<\_ACEOF
17436 #define HAVE_POSTGRESQL 1
17439 { echo "$as_me:$LINENO: result: yes" >&5
17440 echo "${ECHO_T}yes" >&6; }
17442 support_postgresql=yes
17446 { echo "$as_me:$LINENO: result: no" >&5
17447 echo "${ECHO_T}no" >&6; }
17452 { echo "$as_me:$LINENO: result: no" >&5
17453 echo "${ECHO_T}no" >&6; }
17465 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17466 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17468 # Check whether --with-mysql was given.
17469 if test "${with_mysql+set}" = set; then
17470 withval=$with_mysql;
17471 if test "$withval" != "no"; then
17472 if test "$withval" = "yes"; then
17473 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17474 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17475 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17476 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17477 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17479 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17481 MYSQL_BINDIR=/usr/local/mysql/bin
17482 elif test -f /usr/include/mysql/mysql.h; then
17483 MYSQL_INCDIR=/usr/include/mysql
17484 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17485 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17486 MYSQL_LIBDIR=/usr/lib64/mysql
17487 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17488 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17489 MYSQL_LIBDIR=/usr/lib/mysql
17491 MYSQL_LIBDIR=/usr/lib
17493 MYSQL_BINDIR=/usr/bin
17494 elif test -f /usr/include/mysql.h; then
17495 MYSQL_INCDIR=/usr/include
17496 if test -f /usr/lib64/libmysqlclient_r.a \
17497 -o -f /usr/lib64/libmysqlclient_r.so; then
17498 MYSQL_LIBDIR=/usr/lib64
17500 MYSQL_LIBDIR=/usr/lib
17502 MYSQL_BINDIR=/usr/bin
17503 elif test -f /usr/local/include/mysql/mysql.h; then
17504 MYSQL_INCDIR=/usr/local/include/mysql
17505 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17506 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17507 MYSQL_LIBDIR=/usr/local/lib64/mysql
17509 MYSQL_LIBDIR=/usr/local/lib/mysql
17511 MYSQL_BINDIR=/usr/local/bin
17512 elif test -f /usr/local/include/mysql.h; then
17513 MYSQL_INCDIR=/usr/local/include
17514 if test -f /usr/local/lib64/libmysqlclient_r.a \
17515 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17516 MYSQL_LIBDIR=/usr/local/lib64
17518 MYSQL_LIBDIR=/usr/local/lib
17520 MYSQL_BINDIR=/usr/local/bin
17522 { echo "$as_me:$LINENO: result: no" >&5
17523 echo "${ECHO_T}no" >&6; }
17524 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17525 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17526 { (exit 1); exit 1; }; }
17529 if test -f $withval/include/mysql/mysql.h; then
17530 MYSQL_INCDIR=$withval/include/mysql
17531 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17532 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17533 MYSQL_LIBDIR=$withval/lib64/mysql
17535 MYSQL_LIBDIR=$withval/lib/mysql
17537 if test -f $withval/lib/libmysqlclient_r.so; then
17538 MYSQL_LIBDIR=$withval/lib
17541 MYSQL_BINDIR=$withval/bin
17542 elif test -f $withval/include/mysql.h; then
17543 MYSQL_INCDIR=$withval/include
17544 if test -f $withval/lib64/libmysqlclient_r.a \
17545 -o -f $withval/lib64/libmysqlclient_r.so; then
17546 MYSQL_LIBDIR=$withval/lib64
17548 MYSQL_LIBDIR=$withval/lib
17550 MYSQL_BINDIR=$withval/bin
17552 { echo "$as_me:$LINENO: result: no" >&5
17553 echo "${ECHO_T}no" >&6; }
17554 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17555 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17556 { (exit 1); exit 1; }; }
17559 SQL_INCLUDE=-I$MYSQL_INCDIR
17560 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17561 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17562 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17563 cat >>confdefs.h <<\_ACEOF
17564 #define HAVE_THREAD_SAFE_MYSQL 1
17568 SQL_BINDIR=$MYSQL_BINDIR
17569 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17571 cat >>confdefs.h <<\_ACEOF
17572 #define HAVE_MYSQL 1
17575 { echo "$as_me:$LINENO: result: yes" >&5
17576 echo "${ECHO_T}yes" >&6; }
17583 { echo "$as_me:$LINENO: result: no" >&5
17584 echo "${ECHO_T}no" >&6; }
17592 # Check whether --with-embedded-mysql was given.
17593 if test "${with_embedded_mysql+set}" = set; then
17594 withval=$with_embedded_mysql;
17595 if test "$withval" != "no"; then
17596 if test "$withval" = "yes"; then
17597 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17598 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17599 if test -d /usr/local/mysql/lib64/mysql; then
17600 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17602 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17604 MYSQL_BINDIR=/usr/local/mysql/bin
17605 elif test -f /usr/include/mysql/mysql.h; then
17606 MYSQL_INCDIR=/usr/include/mysql
17607 if test -d /usr/lib64/mysql; then
17608 MYSQL_LIBDIR=/usr/lib64/mysql
17610 MYSQL_LIBDIR=/usr/lib/mysql
17612 MYSQL_BINDIR=/usr/bin
17613 elif test -f /usr/include/mysql.h; then
17614 MYSQL_INCDIR=/usr/include
17615 if test -d /usr/lib64; then
17616 MYSQL_LIBDIR=/usr/lib64
17618 MYSQL_LIBDIR=/usr/lib
17620 MYSQL_BINDIR=/usr/bin
17621 elif test -f /usr/local/include/mysql/mysql.h; then
17622 MYSQL_INCDIR=/usr/local/include/mysql
17623 if test -d /usr/local/lib64/mysql; then
17624 MYSQL_LIBDIR=/usr/local/lib64/mysql
17626 MYSQL_LIBDIR=/usr/local/lib/mysql
17628 MYSQL_BINDIR=/usr/local/bin
17629 elif test -f /usr/local/include/mysql.h; then
17630 MYSQL_INCDIR=/usr/local/include
17631 if test -d /usr/local/lib64; then
17632 MYSQL_LIBDIR=/usr/local/lib64
17634 MYSQL_LIBDIR=/usr/local/lib
17636 MYSQL_BINDIR=/usr/local/bin
17638 { echo "$as_me:$LINENO: result: no" >&5
17639 echo "${ECHO_T}no" >&6; }
17640 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17641 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17642 { (exit 1); exit 1; }; }
17645 if test -f $withval/include/mysql/mysql.h; then
17646 MYSQL_INCDIR=$withval/include/mysql
17647 if test -d $withval/lib64/mysql; then
17648 MYSQL_LIBDIR=$withval/lib64/mysql
17650 MYSQL_LIBDIR=$withval/lib/mysql
17652 MYSQL_BINDIR=$withval/bin
17653 elif test -f $withval/include/mysql.h; then
17654 MYSQL_INCDIR=$withval/include
17655 if test -d $withval/lib64; then
17656 MYSQL_LIBDIR=$withval/lib64
17658 MYSQL_LIBDIR=$withval/lib
17660 MYSQL_BINDIR=$withval/bin
17662 { echo "$as_me:$LINENO: result: no" >&5
17663 echo "${ECHO_T}no" >&6; }
17664 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17665 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17666 { (exit 1); exit 1; }; }
17669 SQL_INCLUDE=-I$MYSQL_INCDIR
17670 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17671 SQL_BINDIR=$MYSQL_BINDIR
17672 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17674 cat >>confdefs.h <<\_ACEOF
17675 #define HAVE_MYSQL 1
17678 cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_EMBEDDED_MYSQL 1
17682 { echo "$as_me:$LINENO: result: yes" >&5
17683 echo "${ECHO_T}yes" >&6; }
17690 { echo "$as_me:$LINENO: result: no" >&5
17691 echo "${ECHO_T}no" >&6; }
17707 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17708 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17710 # Check whether --with-sqlite3 was given.
17711 if test "${with_sqlite3+set}" = set; then
17712 withval=$with_sqlite3;
17713 if test "$withval" != "no"; then
17714 if test "$withval" = "yes"; then
17715 if test -f /usr/local/include/sqlite3.h; then
17716 SQLITE_INCDIR=/usr/local/include
17717 if test -d /usr/local/lib64; then
17718 SQLITE_LIBDIR=/usr/local/lib64
17720 SQLITE_LIBDIR=/usr/local/lib
17722 SQLITE_BINDIR=/usr/local/bin
17723 elif test -f /usr/include/sqlite3.h; then
17724 SQLITE_INCDIR=/usr/include
17725 if test -d /usr/lib64; then
17726 SQLITE_LIBDIR=/usr/lib64
17728 SQLITE_LIBDIR=/usr/lib
17730 SQLITE_BINDIR=/usr/bin
17731 elif test -f $prefix/include/sqlite3.h; then
17732 SQLITE_INCDIR=$prefix/include
17733 if test -d $prefix/lib64; then
17734 SQLITE_LIBDIR=$prefix/lib64
17736 SQLITE_LIBDIR=$prefix/lib
17738 SQLITE_BINDIR=$prefix/bin
17740 { echo "$as_me:$LINENO: result: no" >&5
17741 echo "${ECHO_T}no" >&6; }
17742 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17743 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17744 { (exit 1); exit 1; }; }
17747 if test -f $withval/sqlite3.h; then
17748 SQLITE_INCDIR=$withval
17749 SQLITE_LIBDIR=$withval
17750 SQLITE_BINDIR=$withval
17751 elif test -f $withval/include/sqlite3.h; then
17752 SQLITE_INCDIR=$withval/include
17753 if test -d $withval/lib64; then
17754 SQLITE_LIBDIR=$withval/lib64
17756 SQLITE_LIBDIR=$withval/lib
17758 SQLITE_BINDIR=$withval/bin
17760 { echo "$as_me:$LINENO: result: no" >&5
17761 echo "${ECHO_T}no" >&6; }
17762 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17763 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17764 { (exit 1); exit 1; }; }
17767 SQL_INCLUDE=-I$SQLITE_INCDIR
17768 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17769 SQL_BINDIR=$SQLITE_BINDIR
17770 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17772 cat >>confdefs.h <<\_ACEOF
17773 #define HAVE_SQLITE3 1
17776 { echo "$as_me:$LINENO: result: yes" >&5
17777 echo "${ECHO_T}yes" >&6; }
17779 support_sqlite3=yes
17784 { echo "$as_me:$LINENO: result: no" >&5
17785 echo "${ECHO_T}no" >&6; }
17790 { echo "$as_me:$LINENO: result: no" >&5
17791 echo "${ECHO_T}no" >&6; }
17803 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17804 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17806 # Check whether --with-sqlite was given.
17807 if test "${with_sqlite+set}" = set; then
17808 withval=$with_sqlite;
17809 if test "$withval" != "no"; then
17810 if test "$withval" = "yes"; then
17811 if test -f /usr/local/include/sqlite.h; then
17812 SQLITE_INCDIR=/usr/local/include
17813 if test -d /usr/local/lib64; then
17814 SQLITE_LIBDIR=/usr/local/lib64
17816 SQLITE_LIBDIR=/usr/local/lib
17818 SQLITE_BINDIR=/usr/local/bin
17819 elif test -f /usr/include/sqlite.h; then
17820 SQLITE_INCDIR=/usr/include
17821 if test -d /usr/lib64; then
17822 SQLITE_LIBDIR=/usr/lib64
17824 SQLITE_LIBDIR=/usr/lib
17826 SQLITE_BINDIR=/usr/bin
17827 elif test -f $prefix/include/sqlite.h; then
17828 SQLITE_INCDIR=$prefix/include
17829 if test -d $prefix/lib64; then
17830 SQLITE_LIBDIR=$prefix/lib64
17832 SQLITE_LIBDIR=$prefix/lib
17834 SQLITE_BINDIR=$prefix/bin
17836 { echo "$as_me:$LINENO: result: no" >&5
17837 echo "${ECHO_T}no" >&6; }
17838 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17839 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17840 { (exit 1); exit 1; }; }
17843 if test -f $withval/sqlite.h; then
17844 SQLITE_INCDIR=$withval
17845 SQLITE_LIBDIR=$withval
17846 SQLITE_BINDIR=$withval
17847 elif test -f $withval/include/sqlite.h; then
17848 SQLITE_INCDIR=$withval/include
17849 if test -d $withval/lib64; then
17850 SQLITE_LIBDIR=$withval/lib64
17852 SQLITE_LIBDIR=$withval/lib
17854 SQLITE_BINDIR=$withval/bin
17856 { echo "$as_me:$LINENO: result: no" >&5
17857 echo "${ECHO_T}no" >&6; }
17858 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17859 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17860 { (exit 1); exit 1; }; }
17863 SQL_INCLUDE=-I$SQLITE_INCDIR
17864 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17865 SQL_BINDIR=$SQLITE_BINDIR
17866 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17868 cat >>confdefs.h <<\_ACEOF
17869 #define HAVE_SQLITE 1
17872 { echo "$as_me:$LINENO: result: yes" >&5
17873 echo "${ECHO_T}yes" >&6; }
17880 { echo "$as_me:$LINENO: result: no" >&5
17881 echo "${ECHO_T}no" >&6; }
17886 { echo "$as_me:$LINENO: result: no" >&5
17887 echo "${ECHO_T}no" >&6; }
17899 { echo "$as_me:$LINENO: checking for DBI support" >&5
17900 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17902 # Check whether --with-dbi was given.
17903 if test "${with_dbi+set}" = set; then
17905 if test "$withval" != "no"; then
17906 if test "$withval" = "yes"; then
17907 if test -f /usr/local/include/dbi/dbi.h; then
17908 DBI_INCDIR=/usr/local/dbi/include
17909 if test -d /usr/local/lib64; then
17910 DBI_LIBDIR=/usr/local/lib64
17912 DBI_LIBDIR=/usr/local/lib
17914 DBI_BINDIR=/usr/local/bin
17915 elif test -f /usr/include/dbi/dbi.h; then
17916 DBI_INCDIR=/usr/include
17917 if test -d /usr/lib64; then
17918 DBI_LIBDIR=/usr/lib64
17920 DBI_LIBDIR=/usr/lib
17922 DBI_BINDIR=/usr/bin
17923 elif test -f $prefix/include/dbi/dbi.h; then
17924 DBI_INCDIR=$prefix/include
17925 if test -d $prefix/lib64; then
17926 DBI_LIBDIR=$prefix/lib64
17928 DBI_LIBDIR=$prefix/lib
17930 DBI_BINDIR=$prefix/bin
17932 { echo "$as_me:$LINENO: result: no" >&5
17933 echo "${ECHO_T}no" >&6; }
17934 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17935 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17936 { (exit 1); exit 1; }; }
17938 if test -d /usr/local/lib/dbd; then
17939 DRIVERDIR=/usr/local/lib/dbd
17940 if test -d /usr/local/lib64/dbd; then
17941 DRIVERDIR=/usr/local/lib64/dbd
17943 DRIVERDIR=/usr/local/lib/dbd
17945 elif test -d /usr/lib/dbd; then
17946 DRIVERDIR=/usr/lib/dbd
17947 if test -d /usr/lib64/dbd; then
17948 DRIVERDIR=/usr/lib64/dbd
17950 DRIVERDIR=/usr/lib/dbd
17952 elif test -d $prefix/lib/dbd; then
17953 if test -d $prefix/lib64/dbd; then
17954 DRIVERDIR=$prefix/lib64/dbd
17956 DRIVERDIR=$prefix/lib/dbd
17959 { echo "$as_me:$LINENO: result: no" >&5
17960 echo "${ECHO_T}no" >&6; }
17961 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17962 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17963 { (exit 1); exit 1; }; }
17966 if test -f $withval/dbi.h; then
17967 DBI_INCDIR=$withval
17968 DBI_LIBDIR=$withval
17969 DBI_BINDIR=$withval
17970 elif test -f $withval/include/dbi/dbi.h; then
17971 DBI_INCDIR=$withval/include
17972 if test -d $withval/lib64; then
17973 DBI_LIBDIR=$withval/lib64
17975 DBI_LIBDIR=$withval/lib
17977 DBI_BINDIR=$withval/bin
17979 { echo "$as_me:$LINENO: result: no" >&5
17980 echo "${ECHO_T}no" >&6; }
17981 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17982 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17983 { (exit 1); exit 1; }; }
17985 if test -d $withval/dbd; then
17986 DRIVERDIR=$withval/dbd
17987 elif test -d $withval/lib/; then
17988 if test -d $withval/lib64/dbd; then
17989 DRIVERDIR=$withval/lib64/dbd
17991 DRIVERDIR=$withval/lib/dbd
17994 { echo "$as_me:$LINENO: result: no" >&5
17995 echo "${ECHO_T}no" >&6; }
17996 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17997 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17998 { (exit 1); exit 1; }; }
18001 SQL_INCLUDE=-I$DBI_INCDIR
18002 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
18003 SQL_BINDIR=$DBI_BINDIR
18004 SQL_LIB=$DBI_LIBDIR/libdbi.a
18005 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18008 cat >>confdefs.h <<\_ACEOF
18012 { echo "$as_me:$LINENO: result: yes" >&5
18013 echo "${ECHO_T}yes" >&6; }
18020 { echo "$as_me:$LINENO: result: no" >&5
18021 echo "${ECHO_T}no" >&6; }
18026 { echo "$as_me:$LINENO: result: no" >&5
18027 echo "${ECHO_T}no" >&6; }
18041 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18042 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18044 # Check whether --with-dbi-driver was given.
18045 if test "${with_dbi_driver+set}" = set; then
18046 withval=$with_dbi_driver;
18047 if test "$withval" != "no"; then
18051 if test -f /usr/local/mysql/bin/mysql; then
18052 SQL_BINDIR=/usr/local/mysql/bin
18053 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18054 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18055 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18057 SQL_LIBDIR=/usr/local/mysql/lib/mysql
18059 elif test -f /usr/bin/mysql; then
18060 SQL_BINDIR=/usr/bin
18061 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18062 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18063 SQL_LIBDIR=/usr/lib64/mysql
18064 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18065 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18066 SQL_LIBDIR=/usr/lib/mysql
18068 SQL_LIBDIR=/usr/lib
18070 elif test -f /usr/local/bin/mysql; then
18071 SQL_BINDIR=/usr/local/bin
18072 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18073 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18074 SQL_LIBDIR=/usr/local/lib64/mysql
18075 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18076 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18077 SQL_LIBDIR=/usr/local/lib/mysql
18079 SQL_LIBDIR=/usr/local/lib
18081 elif test -f $withval/bin/mysql; then
18082 SQL_BINDIR=$withval/bin
18083 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18084 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18085 SQL_LIBDIR=$withval/lib64/mysql
18086 elif test -f $withval/lib64/libmysqlclient_r.a \
18087 -o -f $withval/lib64/libmysqlclient_r.so; then
18088 SQL_LIBDIR=$withval/lib64
18089 elif test -f $withval/lib/libmysqlclient_r.a \
18090 -o -f $withval/lib/libmysqlclient_r.so; then
18091 SQL_LIBDIR=$withval/lib/
18093 SQL_LIBDIR=$withval/lib/mysql
18096 { echo "$as_me:$LINENO: result: no" >&5
18097 echo "${ECHO_T}no" >&6; }
18098 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18099 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18100 { (exit 1); exit 1; }; }
18102 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18105 db_prog="postgresql"
18106 PG_CONFIG=`which pg_config`
18107 if test -n "$PG_CONFIG"; then
18108 SQL_BINDIR=`"$PG_CONFIG" --bindir`
18109 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18110 elif test -f /usr/local/bin/psql; then
18111 SQL_BINDIR=/usr/local/bin
18112 if test -d /usr/local/lib64; then
18113 SQL_LIBDIR=/usr/local/lib64
18115 SQL_LIBDIR=/usr/local/lib
18117 elif test -f /usr/bin/psql; then
18118 SQL_BINDIR=/usr/local/bin
18119 if test -d /usr/lib64/postgresql; then
18120 SQL_LIBDIR=/usr/lib64/postgresql
18121 elif test -d /usr/lib/postgresql; then
18122 SQL_LIBDIR=/usr/lib/postgresql
18123 elif test -d /usr/lib64; then
18124 SQL_LIBDIR=/usr/lib64
18126 SQL_LIBDIR=/usr/lib
18128 elif test -f $withval/bin/psql; then
18129 SQL_BINDIR=$withval/bin
18130 if test -d $withval/lib64; then
18131 SQL_LIBDIR=$withval/lib64
18133 SQL_LIBDIR=$withval/lib
18136 { echo "$as_me:$LINENO: result: no" >&5
18137 echo "${ECHO_T}no" >&6; }
18138 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18139 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18140 { (exit 1); exit 1; }; }
18142 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18145 { echo "$as_me:$LINENO: result: no" >&5
18146 echo "${ECHO_T}no" >&6; }
18147 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18148 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18149 { (exit 1); exit 1; }; }
18153 { echo "$as_me:$LINENO: result: yes" >&5
18154 echo "${ECHO_T}yes" >&6; }
18157 { echo "$as_me:$LINENO: result: no" >&5
18158 echo "${ECHO_T}no" >&6; }
18163 { echo "$as_me:$LINENO: result: no" >&5
18164 echo "${ECHO_T}no" >&6; }
18177 # -------------------------------------------
18178 # enable batch attribute DB insert (default on)
18179 # -------------------------------------------
18180 support_batch_insert=no
18181 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18183 if test $pkg = 0; then
18184 support_batch_insert=yes
18185 # Check whether --enable-batch-insert was given.
18186 if test "${enable_batch_insert+set}" = set; then
18187 enableval=$enable_batch_insert; if test x$enableval = xno; then
18188 support_batch_insert=no
18190 support_batch_insert=yes
18196 # Check if postgresql support batch mode
18197 if test x$DB_TYPE = xpostgresql; then
18198 A=`nm $SQL_LIB | grep PQputCopyData`
18200 if test $pkg != 0; then
18201 support_batch_insert=no
18205 if test x$DB_TYPE = xdbi; then
18209 # Check for batch insert
18210 if test $DB_PROG = postgresql; then
18211 A=`nm $DB_PROG_LIB | grep PQputCopyData`
18215 if test $DB_PROG = mysql; then
18216 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18220 if test $pkg = 0; then
18221 # Check whether --enable-batch-insert was given.
18222 if test "${enable_batch_insert+set}" = set; then
18223 enableval=$enable_batch_insert; if test x$enableval = xno; then
18224 support_batch_insert=no
18226 support_batch_insert=yes
18233 if test $support_batch_insert = yes ; then
18235 cat >>confdefs.h <<\_ACEOF
18236 #define HAVE_BATCH_FILE_INSERT 1
18242 cat >>confdefs.h <<\_ACEOF
18243 #define PROTOTYPES 1
18247 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18248 if test -z "$CCOPTS"; then
18249 CCOPTS='-g -O2 -Wall'
18257 largefile_support="no"
18259 # Check whether --enable-largefile was given.
18260 if test "${enable_largefile+set}" = set; then
18261 enableval=$enable_largefile;
18264 if test "$enable_largefile" != no; then
18265 if test -n "$ac_tool_prefix"; then
18266 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18267 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18270 if test "${ac_cv_prog_GETCONF+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18273 if test -n "$GETCONF"; then
18274 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18277 for as_dir in $PATH
18280 test -z "$as_dir" && as_dir=.
18281 for ac_exec_ext in '' $ac_executable_extensions; do
18282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18283 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18293 GETCONF=$ac_cv_prog_GETCONF
18294 if test -n "$GETCONF"; then
18295 { echo "$as_me:$LINENO: result: $GETCONF" >&5
18296 echo "${ECHO_T}$GETCONF" >&6; }
18298 { echo "$as_me:$LINENO: result: no" >&5
18299 echo "${ECHO_T}no" >&6; }
18304 if test -z "$ac_cv_prog_GETCONF"; then
18305 ac_ct_GETCONF=$GETCONF
18306 # Extract the first word of "getconf", so it can be a program name with args.
18307 set dummy getconf; ac_word=$2
18308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18310 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18313 if test -n "$ac_ct_GETCONF"; then
18314 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18317 for as_dir in $PATH
18320 test -z "$as_dir" && as_dir=.
18321 for ac_exec_ext in '' $ac_executable_extensions; do
18322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18323 ac_cv_prog_ac_ct_GETCONF="getconf"
18324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18333 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18334 if test -n "$ac_ct_GETCONF"; then
18335 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18336 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18338 { echo "$as_me:$LINENO: result: no" >&5
18339 echo "${ECHO_T}no" >&6; }
18342 if test "x$ac_ct_GETCONF" = x; then
18345 case $cross_compiling:$ac_tool_warned in
18347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18348 whose name does not start with the host triplet. If you think this
18349 configuration is useful to you, please write to autoconf@gnu.org." >&5
18350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18351 whose name does not start with the host triplet. If you think this
18352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18353 ac_tool_warned=yes ;;
18355 GETCONF=$ac_ct_GETCONF
18358 GETCONF="$ac_cv_prog_GETCONF"
18361 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18362 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18363 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18364 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18367 ac_cv_sys_largefile_CFLAGS=no
18369 # IRIX 6.2 and later require cc -n32.
18370 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18371 if test "$GCC" != yes; then
18372 ac_cv_sys_largefile_CFLAGS=-n32
18375 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18376 cat >conftest.$ac_ext <<_ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (ac_try="$ac_link"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_link") 2>conftest.er1
18400 grep -v '^ *+' conftest.er1 >conftest.err
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } && {
18405 test -z "$ac_c_werror_flag" ||
18406 test ! -s conftest.err
18407 } && test -s conftest$ac_exeext &&
18408 $as_test_x conftest$ac_exeext; then
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 ac_cv_sys_largefile_CFLAGS=no
18417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18418 conftest$ac_exeext conftest.$ac_ext
18423 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18424 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18425 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18426 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18427 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18431 ac_cv_sys_largefile_LDFLAGS=no
18435 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18436 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18437 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18438 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18439 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18443 ac_cv_sys_largefile_LIBS=no
18447 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18448 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18450 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18453 -D_FILE_OFFSET_BITS=*) ;;
18454 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18455 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18460 case "$CPPFLAGS" in
18461 '') CPPFLAGS="$ac_flag" ;;
18462 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18470 '') CFLAGS="$ac_flag" ;;
18471 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18476 case "$ac_cv_sys_largefile_LDFLAGS" in
18480 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18481 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18484 case "$ac_cv_sys_largefile_LIBS" in
18488 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18489 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18492 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18493 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18494 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 ac_cv_sys_file_offset_bits=no
18498 ac_cv_sys_file_offset_bits=64
18499 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18501 -D_FILE_OFFSET_BITS)
18502 ac_cv_sys_file_offset_bits=1 ;;
18503 -D_FILE_OFFSET_BITS=*)
18504 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18509 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18510 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18511 if test "$ac_cv_sys_file_offset_bits" != no; then
18513 cat >>confdefs.h <<_ACEOF
18514 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18518 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18519 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18520 if test "${ac_cv_sys_largefile_source+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 ac_cv_sys_largefile_source=no
18524 ac_cv_sys_largefile_source=1
18525 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18527 -D_LARGEFILE_SOURCE)
18528 ac_cv_sys_largefile_source=1 ;;
18529 -D_LARGEFILE_SOURCE=*)
18530 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18535 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18536 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18537 if test "$ac_cv_sys_largefile_source" != no; then
18539 cat >>confdefs.h <<_ACEOF
18540 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18544 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18545 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18546 if test "${ac_cv_sys_large_files+set}" = set; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18549 ac_cv_sys_large_files=no
18550 ac_cv_sys_large_files=1
18551 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18554 ac_cv_sys_large_files=1 ;;
18556 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18561 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18562 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18563 if test "$ac_cv_sys_large_files" != no; then
18565 cat >>confdefs.h <<_ACEOF
18566 #define _LARGE_FILES $ac_cv_sys_large_files
18574 { echo "$as_me:$LINENO: checking for X" >&5
18575 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18578 # Check whether --with-x was given.
18579 if test "${with_x+set}" = set; then
18583 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18584 if test "x$with_x" = xno; then
18585 # The user explicitly disabled X.
18588 case $x_includes,$x_libraries in #(
18589 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18590 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18591 { (exit 1); exit 1; }; };; #(
18592 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 # One or both of the vars are not set, and there is no cached value.
18596 ac_x_includes=no ac_x_libraries=no
18597 rm -f -r conftest.dir
18598 if mkdir conftest.dir; then
18600 cat >Imakefile <<'_ACEOF'
18602 @echo incroot='${INCROOT}'
18604 @echo usrlibdir='${USRLIBDIR}'
18606 @echo libdir='${LIBDIR}'
18608 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18609 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18610 for ac_var in incroot usrlibdir libdir; do
18611 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18613 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18614 for ac_extension in a so sl; do
18615 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18616 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18617 ac_im_usrlibdir=$ac_im_libdir; break
18620 # Screen out bogus values from the imake configuration. They are
18621 # bogus both because they are the default anyway, and because
18622 # using them would break gcc on systems where it needs fixed includes.
18623 case $ac_im_incroot in
18624 /usr/include) ac_x_includes= ;;
18625 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18627 case $ac_im_usrlibdir in
18628 /usr/lib | /lib) ;;
18629 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18633 rm -f -r conftest.dir
18636 # Standard set of common directories for X headers.
18637 # Check X11 before X11Rn because it is often a symlink to the current release.
18649 /usr/local/X11/include
18650 /usr/local/X11R6/include
18651 /usr/local/X11R5/include
18652 /usr/local/X11R4/include
18654 /usr/local/include/X11
18655 /usr/local/include/X11R6
18656 /usr/local/include/X11R5
18657 /usr/local/include/X11R4
18661 /usr/XFree86/include/X11
18665 /usr/unsupported/include
18666 /usr/athena/include
18667 /usr/local/x11r5/include
18668 /usr/lpp/Xamples/include
18670 /usr/openwin/include
18671 /usr/openwin/share/include'
18673 if test "$ac_x_includes" = no; then
18674 # Guess where to find include files, by looking for Xlib.h.
18675 # First, try using that file with no special directory specified.
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 #include <X11/Xlib.h>
18684 if { (ac_try="$ac_cpp conftest.$ac_ext"
18685 case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } >/dev/null && {
18697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18698 test ! -s conftest.err
18700 # We can compile using X headers with no special include directory.
18703 echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18706 for ac_dir in $ac_x_header_dirs; do
18707 if test -r "$ac_dir/X11/Xlib.h"; then
18708 ac_x_includes=$ac_dir
18714 rm -f conftest.err conftest.$ac_ext
18715 fi # $ac_x_includes = no
18717 if test "$ac_x_libraries" = no; then
18718 # Check for the libraries.
18719 # See if we find them without any special options.
18720 # Don't add to $LIBS permanently.
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18729 #include <X11/Xlib.h>
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (ac_try="$ac_link"
18740 case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_link") 2>conftest.er1
18747 grep -v '^ *+' conftest.er1 >conftest.err
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } && {
18752 test -z "$ac_c_werror_flag" ||
18753 test ! -s conftest.err
18754 } && test -s conftest$ac_exeext &&
18755 $as_test_x conftest$ac_exeext; then
18757 # We can link X programs with no special library path.
18760 echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18764 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18766 # Don't even attempt the hair of trying to link an X program!
18767 for ac_extension in a so sl; do
18768 if test -r "$ac_dir/libX11.$ac_extension"; then
18769 ac_x_libraries=$ac_dir
18776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18777 conftest$ac_exeext conftest.$ac_ext
18778 fi # $ac_x_libraries = no
18780 case $ac_x_includes,$ac_x_libraries in #(
18781 no,* | *,no | *\'*)
18782 # Didn't find X, or a directory has "'" in its name.
18783 ac_cv_have_x="have_x=no";; #(
18785 # Record where we found X for the cache.
18786 ac_cv_have_x="have_x=yes\
18787 ac_x_includes='$ac_x_includes'\
18788 ac_x_libraries='$ac_x_libraries'"
18794 eval "$ac_cv_have_x"
18797 if test "$have_x" != yes; then
18798 { echo "$as_me:$LINENO: result: $have_x" >&5
18799 echo "${ECHO_T}$have_x" >&6; }
18802 # If each of the values was on the command line, it overrides each guess.
18803 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18804 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18805 # Update the cache value to reflect the command line values.
18806 ac_cv_have_x="have_x=yes\
18807 ac_x_includes='$x_includes'\
18808 ac_x_libraries='$x_libraries'"
18809 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18810 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18813 if test "$no_x" = yes; then
18814 # Not all programs may use this symbol, but it does not hurt to define it.
18816 cat >>confdefs.h <<\_ACEOF
18817 #define X_DISPLAY_MISSING 1
18820 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18822 if test -n "$x_includes"; then
18823 X_CFLAGS="$X_CFLAGS -I$x_includes"
18826 # It would also be nice to do this for all -L options, not just this one.
18827 if test -n "$x_libraries"; then
18828 X_LIBS="$X_LIBS -L$x_libraries"
18829 # For Solaris; some versions of Sun CC require a space after -R and
18830 # others require no space. Words are not sufficient . . . .
18831 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18832 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18833 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18834 ac_xsave_c_werror_flag=$ac_c_werror_flag
18835 ac_c_werror_flag=yes
18836 cat >conftest.$ac_ext <<_ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (ac_try="$ac_link"
18853 case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_link") 2>conftest.er1
18860 grep -v '^ *+' conftest.er1 >conftest.err
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } && {
18865 test -z "$ac_c_werror_flag" ||
18866 test ! -s conftest.err
18867 } && test -s conftest$ac_exeext &&
18868 $as_test_x conftest$ac_exeext; then
18869 { echo "$as_me:$LINENO: result: no" >&5
18870 echo "${ECHO_T}no" >&6; }
18871 X_LIBS="$X_LIBS -R$x_libraries"
18873 echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18876 LIBS="$ac_xsave_LIBS -R $x_libraries"
18877 cat >conftest.$ac_ext <<_ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18892 rm -f conftest.$ac_objext conftest$ac_exeext
18893 if { (ac_try="$ac_link"
18894 case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_link") 2>conftest.er1
18901 grep -v '^ *+' conftest.er1 >conftest.err
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } && {
18906 test -z "$ac_c_werror_flag" ||
18907 test ! -s conftest.err
18908 } && test -s conftest$ac_exeext &&
18909 $as_test_x conftest$ac_exeext; then
18910 { echo "$as_me:$LINENO: result: yes" >&5
18911 echo "${ECHO_T}yes" >&6; }
18912 X_LIBS="$X_LIBS -R $x_libraries"
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18917 { echo "$as_me:$LINENO: result: neither works" >&5
18918 echo "${ECHO_T}neither works" >&6; }
18921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18922 conftest$ac_exeext conftest.$ac_ext
18925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18926 conftest$ac_exeext conftest.$ac_ext
18927 ac_c_werror_flag=$ac_xsave_c_werror_flag
18928 LIBS=$ac_xsave_LIBS
18931 # Check for system-dependent libraries X programs must link with.
18932 # Do this before checking for the system-independent R6 libraries
18933 # (-lICE), since we may need -lsocket or whatever for X linking.
18935 if test "$ISC" = yes; then
18936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18938 # Martyn Johnson says this is needed for Ultrix, if the X
18939 # libraries were built with DECnet support. And Karl Berry says
18940 # the Alpha needs dnet_stub (dnet does not exist).
18941 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18942 cat >conftest.$ac_ext <<_ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18949 /* Override any GCC internal prototype to avoid an error.
18950 Use char because int might match the return type of a GCC
18951 builtin and then its argument prototype would still apply. */
18955 char XOpenDisplay ();
18959 return XOpenDisplay ();
18964 rm -f conftest.$ac_objext conftest$ac_exeext
18965 if { (ac_try="$ac_link"
18966 case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_link") 2>conftest.er1
18973 grep -v '^ *+' conftest.er1 >conftest.err
18975 cat conftest.err >&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } && {
18978 test -z "$ac_c_werror_flag" ||
18979 test ! -s conftest.err
18980 } && test -s conftest$ac_exeext &&
18981 $as_test_x conftest$ac_exeext; then
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18988 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18989 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 ac_check_lib_save_LIBS=$LIBS
18993 LIBS="-ldnet $LIBS"
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19001 /* Override any GCC internal prototype to avoid an error.
19002 Use char because int might match the return type of a GCC
19003 builtin and then its argument prototype would still apply. */
19011 return dnet_ntoa ();
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_link") 2>conftest.er1
19025 grep -v '^ *+' conftest.er1 >conftest.err
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } && {
19030 test -z "$ac_c_werror_flag" ||
19031 test ! -s conftest.err
19032 } && test -s conftest$ac_exeext &&
19033 $as_test_x conftest$ac_exeext; then
19034 ac_cv_lib_dnet_dnet_ntoa=yes
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 ac_cv_lib_dnet_dnet_ntoa=no
19042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19043 conftest$ac_exeext conftest.$ac_ext
19044 LIBS=$ac_check_lib_save_LIBS
19046 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19047 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19048 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19049 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19052 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19053 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19054 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19055 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 ac_check_lib_save_LIBS=$LIBS
19059 LIBS="-ldnet_stub $LIBS"
19060 cat >conftest.$ac_ext <<_ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19077 return dnet_ntoa ();
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } && {
19096 test -z "$ac_c_werror_flag" ||
19097 test ! -s conftest.err
19098 } && test -s conftest$ac_exeext &&
19099 $as_test_x conftest$ac_exeext; then
19100 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 ac_cv_lib_dnet_stub_dnet_ntoa=no
19108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19109 conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19112 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19113 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19114 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19115 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19122 conftest$ac_exeext conftest.$ac_ext
19123 LIBS="$ac_xsave_LIBS"
19125 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19126 # to get the SysV transport functions.
19127 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19129 # The nsl library prevents programs from opening the X display
19130 # on Irix 5.2, according to T.E. Dickey.
19131 # The functions gethostbyname, getservbyname, and inet_addr are
19132 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19133 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19134 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19135 if test "${ac_cv_func_gethostbyname+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 cat >conftest.$ac_ext <<_ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19144 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19146 #define gethostbyname innocuous_gethostbyname
19148 /* System header to define __stub macros and hopefully few prototypes,
19149 which can conflict with char gethostbyname (); below.
19150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19151 <limits.h> exists even on freestanding compilers. */
19154 # include <limits.h>
19156 # include <assert.h>
19159 #undef gethostbyname
19161 /* Override any GCC internal prototype to avoid an error.
19162 Use char because int might match the return type of a GCC
19163 builtin and then its argument prototype would still apply. */
19167 char gethostbyname ();
19168 /* The GNU C library defines this for functions which it implements
19169 to always fail with ENOSYS. Some functions are actually named
19170 something starting with __ and the normal name is an alias. */
19171 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19178 return gethostbyname ();
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (ac_try="$ac_link"
19185 case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_link") 2>conftest.er1
19192 grep -v '^ *+' conftest.er1 >conftest.err
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } && {
19197 test -z "$ac_c_werror_flag" ||
19198 test ! -s conftest.err
19199 } && test -s conftest$ac_exeext &&
19200 $as_test_x conftest$ac_exeext; then
19201 ac_cv_func_gethostbyname=yes
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ac_cv_func_gethostbyname=no
19209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19210 conftest$ac_exeext conftest.$ac_ext
19212 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19213 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19215 if test $ac_cv_func_gethostbyname = no; then
19216 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19217 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19218 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19221 ac_check_lib_save_LIBS=$LIBS
19223 cat >conftest.$ac_ext <<_ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19230 /* Override any GCC internal prototype to avoid an error.
19231 Use char because int might match the return type of a GCC
19232 builtin and then its argument prototype would still apply. */
19236 char gethostbyname ();
19240 return gethostbyname ();
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (ac_try="$ac_link"
19247 case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_link") 2>conftest.er1
19254 grep -v '^ *+' conftest.er1 >conftest.err
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } && {
19259 test -z "$ac_c_werror_flag" ||
19260 test ! -s conftest.err
19261 } && test -s conftest$ac_exeext &&
19262 $as_test_x conftest$ac_exeext; then
19263 ac_cv_lib_nsl_gethostbyname=yes
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19268 ac_cv_lib_nsl_gethostbyname=no
19271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19272 conftest$ac_exeext conftest.$ac_ext
19273 LIBS=$ac_check_lib_save_LIBS
19275 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19276 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19277 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19278 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19281 if test $ac_cv_lib_nsl_gethostbyname = no; then
19282 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19283 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19284 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 ac_check_lib_save_LIBS=$LIBS
19289 cat >conftest.$ac_ext <<_ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19296 /* Override any GCC internal prototype to avoid an error.
19297 Use char because int might match the return type of a GCC
19298 builtin and then its argument prototype would still apply. */
19302 char gethostbyname ();
19306 return gethostbyname ();
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (ac_try="$ac_link"
19313 case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_link") 2>conftest.er1
19320 grep -v '^ *+' conftest.er1 >conftest.err
19322 cat conftest.err >&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } && {
19325 test -z "$ac_c_werror_flag" ||
19326 test ! -s conftest.err
19327 } && test -s conftest$ac_exeext &&
19328 $as_test_x conftest$ac_exeext; then
19329 ac_cv_lib_bsd_gethostbyname=yes
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19334 ac_cv_lib_bsd_gethostbyname=no
19337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19338 conftest$ac_exeext conftest.$ac_ext
19339 LIBS=$ac_check_lib_save_LIBS
19341 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19342 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19343 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19344 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19350 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19351 # socket/setsockopt and other routines are undefined under SCO ODT
19352 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19353 # on later versions), says Simon Leinen: it contains gethostby*
19354 # variants that don't use the name server (or something). -lsocket
19355 # must be given before -lnsl if both are needed. We assume that
19356 # if connect needs -lnsl, so does gethostbyname.
19357 { echo "$as_me:$LINENO: checking for connect" >&5
19358 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19359 if test "${ac_cv_func_connect+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 cat >conftest.$ac_ext <<_ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19370 #define connect innocuous_connect
19372 /* System header to define __stub macros and hopefully few prototypes,
19373 which can conflict with char connect (); below.
19374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19375 <limits.h> exists even on freestanding compilers. */
19378 # include <limits.h>
19380 # include <assert.h>
19385 /* Override any GCC internal prototype to avoid an error.
19386 Use char because int might match the return type of a GCC
19387 builtin and then its argument prototype would still apply. */
19392 /* The GNU C library defines this for functions which it implements
19393 to always fail with ENOSYS. Some functions are actually named
19394 something starting with __ and the normal name is an alias. */
19395 #if defined __stub_connect || defined __stub___connect
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (ac_try="$ac_link"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_link") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest$ac_exeext &&
19424 $as_test_x conftest$ac_exeext; then
19425 ac_cv_func_connect=yes
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 ac_cv_func_connect=no
19433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19434 conftest$ac_exeext conftest.$ac_ext
19436 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19437 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19439 if test $ac_cv_func_connect = no; then
19440 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19441 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19442 if test "${ac_cv_lib_socket_connect+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 ac_check_lib_save_LIBS=$LIBS
19446 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19447 cat >conftest.$ac_ext <<_ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19454 /* Override any GCC internal prototype to avoid an error.
19455 Use char because int might match the return type of a GCC
19456 builtin and then its argument prototype would still apply. */
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (ac_try="$ac_link"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_link") 2>conftest.er1
19478 grep -v '^ *+' conftest.er1 >conftest.err
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest$ac_exeext &&
19486 $as_test_x conftest$ac_exeext; then
19487 ac_cv_lib_socket_connect=yes
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19492 ac_cv_lib_socket_connect=no
19495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19496 conftest$ac_exeext conftest.$ac_ext
19497 LIBS=$ac_check_lib_save_LIBS
19499 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19500 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19501 if test $ac_cv_lib_socket_connect = yes; then
19502 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19507 # Guillermo Gomez says -lposix is necessary on A/UX.
19508 { echo "$as_me:$LINENO: checking for remove" >&5
19509 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19510 if test "${ac_cv_func_remove+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 cat >conftest.$ac_ext <<_ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19519 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19521 #define remove innocuous_remove
19523 /* System header to define __stub macros and hopefully few prototypes,
19524 which can conflict with char remove (); below.
19525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19526 <limits.h> exists even on freestanding compilers. */
19529 # include <limits.h>
19531 # include <assert.h>
19536 /* Override any GCC internal prototype to avoid an error.
19537 Use char because int might match the return type of a GCC
19538 builtin and then its argument prototype would still apply. */
19543 /* The GNU C library defines this for functions which it implements
19544 to always fail with ENOSYS. Some functions are actually named
19545 something starting with __ and the normal name is an alias. */
19546 #if defined __stub_remove || defined __stub___remove
19558 rm -f conftest.$ac_objext conftest$ac_exeext
19559 if { (ac_try="$ac_link"
19560 case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_link") 2>conftest.er1
19567 grep -v '^ *+' conftest.er1 >conftest.err
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } && {
19572 test -z "$ac_c_werror_flag" ||
19573 test ! -s conftest.err
19574 } && test -s conftest$ac_exeext &&
19575 $as_test_x conftest$ac_exeext; then
19576 ac_cv_func_remove=yes
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 ac_cv_func_remove=no
19584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19585 conftest$ac_exeext conftest.$ac_ext
19587 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19588 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19590 if test $ac_cv_func_remove = no; then
19591 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19592 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19593 if test "${ac_cv_lib_posix_remove+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lposix $LIBS"
19598 cat >conftest.$ac_ext <<_ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19605 /* Override any GCC internal prototype to avoid an error.
19606 Use char because int might match the return type of a GCC
19607 builtin and then its argument prototype would still apply. */
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_link") 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } && {
19634 test -z "$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19636 } && test -s conftest$ac_exeext &&
19637 $as_test_x conftest$ac_exeext; then
19638 ac_cv_lib_posix_remove=yes
19640 echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 ac_cv_lib_posix_remove=no
19646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19647 conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19650 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19651 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19652 if test $ac_cv_lib_posix_remove = yes; then
19653 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19658 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19659 { echo "$as_me:$LINENO: checking for shmat" >&5
19660 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19661 if test "${ac_cv_func_shmat+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 cat >conftest.$ac_ext <<_ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19672 #define shmat innocuous_shmat
19674 /* System header to define __stub macros and hopefully few prototypes,
19675 which can conflict with char shmat (); below.
19676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19677 <limits.h> exists even on freestanding compilers. */
19680 # include <limits.h>
19682 # include <assert.h>
19687 /* Override any GCC internal prototype to avoid an error.
19688 Use char because int might match the return type of a GCC
19689 builtin and then its argument prototype would still apply. */
19694 /* The GNU C library defines this for functions which it implements
19695 to always fail with ENOSYS. Some functions are actually named
19696 something starting with __ and the normal name is an alias. */
19697 #if defined __stub_shmat || defined __stub___shmat
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (ac_try="$ac_link"
19711 case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_link") 2>conftest.er1
19718 grep -v '^ *+' conftest.er1 >conftest.err
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } && {
19723 test -z "$ac_c_werror_flag" ||
19724 test ! -s conftest.err
19725 } && test -s conftest$ac_exeext &&
19726 $as_test_x conftest$ac_exeext; then
19727 ac_cv_func_shmat=yes
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_func_shmat=no
19735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19736 conftest$ac_exeext conftest.$ac_ext
19738 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19739 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19741 if test $ac_cv_func_shmat = no; then
19742 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19743 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19744 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 ac_check_lib_save_LIBS=$LIBS
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19771 rm -f conftest.$ac_objext conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_link") 2>conftest.er1
19780 grep -v '^ *+' conftest.er1 >conftest.err
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } && {
19785 test -z "$ac_c_werror_flag" ||
19786 test ! -s conftest.err
19787 } && test -s conftest$ac_exeext &&
19788 $as_test_x conftest$ac_exeext; then
19789 ac_cv_lib_ipc_shmat=yes
19791 echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19794 ac_cv_lib_ipc_shmat=no
19797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19798 conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_lib_save_LIBS
19801 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19802 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19803 if test $ac_cv_lib_ipc_shmat = yes; then
19804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19810 # Check for libraries that X11R6 Xt/Xaw programs need.
19811 ac_save_LDFLAGS=$LDFLAGS
19812 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19813 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19814 # check for ICE first), but we must link in the order -lSM -lICE or
19815 # we get undefined symbols. So assume we have SM if we have ICE.
19816 # These have to be linked with before -lX11, unlike the other
19817 # libraries we check for below, so use a different variable.
19818 # John Interrante, Karl Berry
19819 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19820 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19821 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 ac_check_lib_save_LIBS=$LIBS
19825 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19826 cat >conftest.$ac_ext <<_ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19833 /* Override any GCC internal prototype to avoid an error.
19834 Use char because int might match the return type of a GCC
19835 builtin and then its argument prototype would still apply. */
19839 char IceConnectionNumber ();
19843 return IceConnectionNumber ();
19848 rm -f conftest.$ac_objext conftest$ac_exeext
19849 if { (ac_try="$ac_link"
19850 case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_link") 2>conftest.er1
19857 grep -v '^ *+' conftest.er1 >conftest.err
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } && {
19862 test -z "$ac_c_werror_flag" ||
19863 test ! -s conftest.err
19864 } && test -s conftest$ac_exeext &&
19865 $as_test_x conftest$ac_exeext; then
19866 ac_cv_lib_ICE_IceConnectionNumber=yes
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19871 ac_cv_lib_ICE_IceConnectionNumber=no
19874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19875 conftest$ac_exeext conftest.$ac_ext
19876 LIBS=$ac_check_lib_save_LIBS
19878 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19879 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19880 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19881 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19884 LDFLAGS=$ac_save_LDFLAGS
19952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 ac_res=`eval echo '${'$as_ac_Header'}'`
19960 { echo "$as_me:$LINENO: result: $ac_res" >&5
19961 echo "${ECHO_T}$ac_res" >&6; }
19963 # Is the header compilable?
19964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19966 cat >conftest.$ac_ext <<_ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19972 $ac_includes_default
19973 #include <$ac_header>
19975 rm -f conftest.$ac_objext
19976 if { (ac_try="$ac_compile"
19977 case "(($ac_try" in
19978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979 *) ac_try_echo=$ac_try;;
19981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19982 (eval "$ac_compile") 2>conftest.er1
19984 grep -v '^ *+' conftest.er1 >conftest.err
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } && {
19989 test -z "$ac_c_werror_flag" ||
19990 test ! -s conftest.err
19991 } && test -s conftest.$ac_objext; then
19992 ac_header_compiler=yes
19994 echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19997 ac_header_compiler=no
20000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20002 echo "${ECHO_T}$ac_header_compiler" >&6; }
20004 # Is the header present?
20005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20007 cat >conftest.$ac_ext <<_ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20013 #include <$ac_header>
20015 if { (ac_try="$ac_cpp conftest.$ac_ext"
20016 case "(($ac_try" in
20017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20023 grep -v '^ *+' conftest.er1 >conftest.err
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } >/dev/null && {
20028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20029 test ! -s conftest.err
20031 ac_header_preproc=yes
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 ac_header_preproc=no
20039 rm -f conftest.err conftest.$ac_ext
20040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20041 echo "${ECHO_T}$ac_header_preproc" >&6; }
20043 # So? What about this header?
20044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20050 ac_header_preproc=yes
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 eval "$as_ac_Header=\$ac_header_preproc"
20075 ac_res=`eval echo '${'$as_ac_Header'}'`
20076 { echo "$as_me:$LINENO: result: $ac_res" >&5
20077 echo "${ECHO_T}$ac_res" >&6; }
20080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20081 cat >>confdefs.h <<_ACEOF
20082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20089 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20090 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20091 if test "${ac_cv_header_stdc+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 cat >conftest.$ac_ext <<_ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 #include <stdlib.h>
20101 #include <stdarg.h>
20102 #include <string.h>
20113 rm -f conftest.$ac_objext
20114 if { (ac_try="$ac_compile"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_compile") 2>conftest.er1
20122 grep -v '^ *+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest.$ac_objext; then
20130 ac_cv_header_stdc=yes
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20135 ac_cv_header_stdc=no
20138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20140 if test $ac_cv_header_stdc = yes; then
20141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20142 cat >conftest.$ac_ext <<_ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <string.h>
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152 $EGREP "memchr" >/dev/null 2>&1; then
20155 ac_cv_header_stdc=no
20161 if test $ac_cv_header_stdc = yes; then
20162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #include <stdlib.h>
20172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20173 $EGREP "free" >/dev/null 2>&1; then
20176 ac_cv_header_stdc=no
20182 if test $ac_cv_header_stdc = yes; then
20183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20184 if test "$cross_compiling" = yes; then
20187 cat >conftest.$ac_ext <<_ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20194 #include <stdlib.h>
20195 #if ((' ' & 0x0FF) == 0x020)
20196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20199 # define ISLOWER(c) \
20200 (('a' <= (c) && (c) <= 'i') \
20201 || ('j' <= (c) && (c) <= 'r') \
20202 || ('s' <= (c) && (c) <= 'z'))
20203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20211 for (i = 0; i < 256; i++)
20212 if (XOR (islower (i), ISLOWER (i))
20213 || toupper (i) != TOUPPER (i))
20218 rm -f conftest$ac_exeext
20219 if { (ac_try="$ac_link"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_link") 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20229 { (case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_try") 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20240 echo "$as_me: program exited with status $ac_status" >&5
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 ( exit $ac_status )
20245 ac_cv_header_stdc=no
20247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20253 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20254 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20255 if test $ac_cv_header_stdc = yes; then
20257 cat >>confdefs.h <<\_ACEOF
20258 #define STDC_HEADERS 1
20263 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20264 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20265 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 cat >conftest.$ac_ext <<_ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20274 #include <sys/types.h>
20278 return makedev(0, 0);
20283 rm -f conftest.$ac_objext conftest$ac_exeext
20284 if { (ac_try="$ac_link"
20285 case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_link") 2>conftest.er1
20292 grep -v '^ *+' conftest.er1 >conftest.err
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } && {
20297 test -z "$ac_c_werror_flag" ||
20298 test ! -s conftest.err
20299 } && test -s conftest$ac_exeext &&
20300 $as_test_x conftest$ac_exeext; then
20301 ac_cv_header_sys_types_h_makedev=yes
20303 echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20306 ac_cv_header_sys_types_h_makedev=no
20309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20310 conftest$ac_exeext conftest.$ac_ext
20313 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20314 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20316 if test $ac_cv_header_sys_types_h_makedev = no; then
20317 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20318 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20319 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20320 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20324 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20326 # Is the header compilable?
20327 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20328 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20329 cat >conftest.$ac_ext <<_ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h. */
20335 $ac_includes_default
20336 #include <sys/mkdev.h>
20338 rm -f conftest.$ac_objext
20339 if { (ac_try="$ac_compile"
20340 case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_compile") 2>conftest.er1
20347 grep -v '^ *+' conftest.er1 >conftest.err
20349 cat conftest.err >&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } && {
20352 test -z "$ac_c_werror_flag" ||
20353 test ! -s conftest.err
20354 } && test -s conftest.$ac_objext; then
20355 ac_header_compiler=yes
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 ac_header_compiler=no
20363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20365 echo "${ECHO_T}$ac_header_compiler" >&6; }
20367 # Is the header present?
20368 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20369 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20370 cat >conftest.$ac_ext <<_ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20376 #include <sys/mkdev.h>
20378 if { (ac_try="$ac_cpp conftest.$ac_ext"
20379 case "(($ac_try" in
20380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381 *) ac_try_echo=$ac_try;;
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20386 grep -v '^ *+' conftest.er1 >conftest.err
20388 cat conftest.err >&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } >/dev/null && {
20391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20392 test ! -s conftest.err
20394 ac_header_preproc=yes
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20399 ac_header_preproc=no
20402 rm -f conftest.err conftest.$ac_ext
20403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20404 echo "${ECHO_T}$ac_header_preproc" >&6; }
20406 # So? What about this header?
20407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20409 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20410 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20411 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20412 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20413 ac_header_preproc=yes
20416 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20417 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20418 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20419 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20420 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20421 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20422 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20423 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20424 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20425 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20426 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20427 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20431 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20432 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20433 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20438 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20439 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20442 if test $ac_cv_header_sys_mkdev_h = yes; then
20444 cat >>confdefs.h <<\_ACEOF
20445 #define MAJOR_IN_MKDEV 1
20452 if test $ac_cv_header_sys_mkdev_h = no; then
20453 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20454 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20455 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20456 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20459 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20460 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20462 # Is the header compilable?
20463 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20464 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20465 cat >conftest.$ac_ext <<_ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 $ac_includes_default
20472 #include <sys/sysmacros.h>
20474 rm -f conftest.$ac_objext
20475 if { (ac_try="$ac_compile"
20476 case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_compile") 2>conftest.er1
20483 grep -v '^ *+' conftest.er1 >conftest.err
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } && {
20488 test -z "$ac_c_werror_flag" ||
20489 test ! -s conftest.err
20490 } && test -s conftest.$ac_objext; then
20491 ac_header_compiler=yes
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 ac_header_compiler=no
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20501 echo "${ECHO_T}$ac_header_compiler" >&6; }
20503 # Is the header present?
20504 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20505 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20506 cat >conftest.$ac_ext <<_ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h. */
20512 #include <sys/sysmacros.h>
20514 if { (ac_try="$ac_cpp conftest.$ac_ext"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20522 grep -v '^ *+' conftest.er1 >conftest.err
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } >/dev/null && {
20527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20528 test ! -s conftest.err
20530 ac_header_preproc=yes
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 ac_header_preproc=no
20538 rm -f conftest.err conftest.$ac_ext
20539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20540 echo "${ECHO_T}$ac_header_preproc" >&6; }
20542 # So? What about this header?
20543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20545 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20546 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20548 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20549 ac_header_preproc=yes
20552 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20553 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20554 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20555 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20556 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20557 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20558 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20559 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20560 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20561 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20563 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20567 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20568 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20569 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20574 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20575 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20578 if test $ac_cv_header_sys_sysmacros_h = yes; then
20580 cat >>confdefs.h <<\_ACEOF
20581 #define MAJOR_IN_SYSMACROS 1
20595 ac_header_dirent=no
20596 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20597 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20598 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20599 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20603 cat >conftest.$ac_ext <<_ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20609 #include <sys/types.h>
20621 rm -f conftest.$ac_objext
20622 if { (ac_try="$ac_compile"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_compile") 2>conftest.er1
20630 grep -v '^ *+' conftest.er1 >conftest.err
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } && {
20635 test -z "$ac_c_werror_flag" ||
20636 test ! -s conftest.err
20637 } && test -s conftest.$ac_objext; then
20638 eval "$as_ac_Header=yes"
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 eval "$as_ac_Header=no"
20646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20648 ac_res=`eval echo '${'$as_ac_Header'}'`
20649 { echo "$as_me:$LINENO: result: $ac_res" >&5
20650 echo "${ECHO_T}$ac_res" >&6; }
20651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20652 cat >>confdefs.h <<_ACEOF
20653 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20656 ac_header_dirent=$ac_hdr; break
20660 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20661 if test $ac_header_dirent = dirent.h; then
20662 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20664 if test "${ac_cv_search_opendir+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 ac_func_search_save_LIBS=$LIBS
20668 cat >conftest.$ac_ext <<_ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20675 /* Override any GCC internal prototype to avoid an error.
20676 Use char because int might match the return type of a GCC
20677 builtin and then its argument prototype would still apply. */
20690 for ac_lib in '' dir; do
20691 if test -z "$ac_lib"; then
20692 ac_res="none required"
20695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20697 rm -f conftest.$ac_objext conftest$ac_exeext
20698 if { (ac_try="$ac_link"
20699 case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_link") 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } && {
20711 test -z "$ac_c_werror_flag" ||
20712 test ! -s conftest.err
20713 } && test -s conftest$ac_exeext &&
20714 $as_test_x conftest$ac_exeext; then
20715 ac_cv_search_opendir=$ac_res
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20725 if test "${ac_cv_search_opendir+set}" = set; then
20729 if test "${ac_cv_search_opendir+set}" = set; then
20732 ac_cv_search_opendir=no
20734 rm conftest.$ac_ext
20735 LIBS=$ac_func_search_save_LIBS
20737 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20738 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20739 ac_res=$ac_cv_search_opendir
20740 if test "$ac_res" != no; then
20741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20746 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20747 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20748 if test "${ac_cv_search_opendir+set}" = set; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20751 ac_func_search_save_LIBS=$LIBS
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20759 /* Override any GCC internal prototype to avoid an error.
20760 Use char because int might match the return type of a GCC
20761 builtin and then its argument prototype would still apply. */
20774 for ac_lib in '' x; do
20775 if test -z "$ac_lib"; then
20776 ac_res="none required"
20779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20781 rm -f conftest.$ac_objext conftest$ac_exeext
20782 if { (ac_try="$ac_link"
20783 case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788 (eval "$ac_link") 2>conftest.er1
20790 grep -v '^ *+' conftest.er1 >conftest.err
20792 cat conftest.err >&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } && {
20795 test -z "$ac_c_werror_flag" ||
20796 test ! -s conftest.err
20797 } && test -s conftest$ac_exeext &&
20798 $as_test_x conftest$ac_exeext; then
20799 ac_cv_search_opendir=$ac_res
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20809 if test "${ac_cv_search_opendir+set}" = set; then
20813 if test "${ac_cv_search_opendir+set}" = set; then
20816 ac_cv_search_opendir=no
20818 rm conftest.$ac_ext
20819 LIBS=$ac_func_search_save_LIBS
20821 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20822 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20823 ac_res=$ac_cv_search_opendir
20824 if test "$ac_res" != no; then
20825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20831 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20832 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20833 if test "${ac_cv_header_stat_broken+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 cat >conftest.$ac_ext <<_ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 #include <sys/types.h>
20843 #include <sys/stat.h>
20845 #if defined S_ISBLK && defined S_IFDIR
20846 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20849 #if defined S_ISBLK && defined S_IFCHR
20850 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20853 #if defined S_ISLNK && defined S_IFREG
20854 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20857 #if defined S_ISSOCK && defined S_IFREG
20858 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20862 rm -f conftest.$ac_objext
20863 if { (ac_try="$ac_compile"
20864 case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_compile") 2>conftest.er1
20871 grep -v '^ *+' conftest.er1 >conftest.err
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } && {
20876 test -z "$ac_c_werror_flag" ||
20877 test ! -s conftest.err
20878 } && test -s conftest.$ac_objext; then
20879 ac_cv_header_stat_broken=no
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 ac_cv_header_stat_broken=yes
20887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20889 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20890 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20891 if test $ac_cv_header_stat_broken = yes; then
20893 cat >>confdefs.h <<\_ACEOF
20894 #define STAT_MACROS_BROKEN 1
20899 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20900 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20901 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 cat >conftest.$ac_ext <<_ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20910 #include <sys/types.h>
20911 #include <sys/wait.h>
20912 #ifndef WEXITSTATUS
20913 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20916 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20924 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20929 rm -f conftest.$ac_objext
20930 if { (ac_try="$ac_compile"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_compile") 2>conftest.er1
20938 grep -v '^ *+' conftest.er1 >conftest.err
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } && {
20943 test -z "$ac_c_werror_flag" ||
20944 test ! -s conftest.err
20945 } && test -s conftest.$ac_objext; then
20946 ac_cv_header_sys_wait_h=yes
20948 echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20951 ac_cv_header_sys_wait_h=no
20954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20957 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20958 if test $ac_cv_header_sys_wait_h = yes; then
20960 cat >>confdefs.h <<\_ACEOF
20961 #define HAVE_SYS_WAIT_H 1
20966 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20967 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20968 if test "${ac_cv_header_time+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 cat >conftest.$ac_ext <<_ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 #include <sys/types.h>
20978 #include <sys/time.h>
20984 if ((struct tm *) 0)
20990 rm -f conftest.$ac_objext
20991 if { (ac_try="$ac_compile"
20992 case "(($ac_try" in
20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994 *) ac_try_echo=$ac_try;;
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997 (eval "$ac_compile") 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } && {
21004 test -z "$ac_c_werror_flag" ||
21005 test ! -s conftest.err
21006 } && test -s conftest.$ac_objext; then
21007 ac_cv_header_time=yes
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ac_cv_header_time=no
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21018 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21019 if test $ac_cv_header_time = yes; then
21021 cat >>confdefs.h <<\_ACEOF
21022 #define TIME_WITH_SYS_TIME 1
21027 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21028 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21029 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 cat >conftest.$ac_ext <<_ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038 $ac_includes_default
21042 static struct stat ac_aggr;
21043 if (ac_aggr.st_blksize)
21049 rm -f conftest.$ac_objext
21050 if { (ac_try="$ac_compile"
21051 case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21058 grep -v '^ *+' conftest.er1 >conftest.err
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.$ac_objext; then
21066 ac_cv_member_struct_stat_st_blksize=yes
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 $ac_includes_default
21081 static struct stat ac_aggr;
21082 if (sizeof ac_aggr.st_blksize)
21088 rm -f conftest.$ac_objext
21089 if { (ac_try="$ac_compile"
21090 case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_compile") 2>conftest.er1
21097 grep -v '^ *+' conftest.er1 >conftest.err
21099 cat conftest.err >&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } && {
21102 test -z "$ac_c_werror_flag" ||
21103 test ! -s conftest.err
21104 } && test -s conftest.$ac_objext; then
21105 ac_cv_member_struct_stat_st_blksize=yes
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 ac_cv_member_struct_stat_st_blksize=no
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21118 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21119 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21120 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21122 cat >>confdefs.h <<_ACEOF
21123 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21127 cat >>confdefs.h <<\_ACEOF
21128 #define HAVE_ST_BLKSIZE 1
21134 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21135 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21136 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 $ac_includes_default
21149 static struct stat ac_aggr;
21150 if (ac_aggr.st_blocks)
21156 rm -f conftest.$ac_objext
21157 if { (ac_try="$ac_compile"
21158 case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163 (eval "$ac_compile") 2>conftest.er1
21165 grep -v '^ *+' conftest.er1 >conftest.err
21167 cat conftest.err >&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } && {
21170 test -z "$ac_c_werror_flag" ||
21171 test ! -s conftest.err
21172 } && test -s conftest.$ac_objext; then
21173 ac_cv_member_struct_stat_st_blocks=yes
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 $ac_includes_default
21188 static struct stat ac_aggr;
21189 if (sizeof ac_aggr.st_blocks)
21195 rm -f conftest.$ac_objext
21196 if { (ac_try="$ac_compile"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_compile") 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && {
21209 test -z "$ac_c_werror_flag" ||
21210 test ! -s conftest.err
21211 } && test -s conftest.$ac_objext; then
21212 ac_cv_member_struct_stat_st_blocks=yes
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 ac_cv_member_struct_stat_st_blocks=no
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21226 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21227 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21229 cat >>confdefs.h <<_ACEOF
21230 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21234 cat >>confdefs.h <<\_ACEOF
21235 #define HAVE_ST_BLOCKS 1
21239 case " $LIBOBJS " in
21240 *" fileblocks.$ac_objext "* ) ;;
21241 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21248 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21249 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21250 if test "${ac_cv_struct_tm+set}" = set; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 cat >conftest.$ac_ext <<_ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h. */
21259 #include <sys/types.h>
21266 int *p = &tm.tm_sec;
21272 rm -f conftest.$ac_objext
21273 if { (ac_try="$ac_compile"
21274 case "(($ac_try" in
21275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276 *) ac_try_echo=$ac_try;;
21278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21279 (eval "$ac_compile") 2>conftest.er1
21281 grep -v '^ *+' conftest.er1 >conftest.err
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } && {
21286 test -z "$ac_c_werror_flag" ||
21287 test ! -s conftest.err
21288 } && test -s conftest.$ac_objext; then
21289 ac_cv_struct_tm=time.h
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_cv_struct_tm=sys/time.h
21297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21299 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21300 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21301 if test $ac_cv_struct_tm = sys/time.h; then
21303 cat >>confdefs.h <<\_ACEOF
21304 #define TM_IN_SYS_TIME 1
21309 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21310 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21311 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21312 echo $ECHO_N "(cached) $ECHO_C" >&6
21314 cat >conftest.$ac_ext <<_ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21320 #include <sys/types.h>
21321 #include <$ac_cv_struct_tm>
21327 static struct tm ac_aggr;
21328 if (ac_aggr.tm_zone)
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338 *) ac_try_echo=$ac_try;;
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341 (eval "$ac_compile") 2>conftest.er1
21343 grep -v '^ *+' conftest.er1 >conftest.err
21345 cat conftest.err >&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } && {
21348 test -z "$ac_c_werror_flag" ||
21349 test ! -s conftest.err
21350 } && test -s conftest.$ac_objext; then
21351 ac_cv_member_struct_tm_tm_zone=yes
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21356 cat >conftest.$ac_ext <<_ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21362 #include <sys/types.h>
21363 #include <$ac_cv_struct_tm>
21369 static struct tm ac_aggr;
21370 if (sizeof ac_aggr.tm_zone)
21376 rm -f conftest.$ac_objext
21377 if { (ac_try="$ac_compile"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_compile") 2>conftest.er1
21385 grep -v '^ *+' conftest.er1 >conftest.err
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } && {
21390 test -z "$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 } && test -s conftest.$ac_objext; then
21393 ac_cv_member_struct_tm_tm_zone=yes
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21398 ac_cv_member_struct_tm_tm_zone=no
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21407 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21408 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21410 cat >>confdefs.h <<_ACEOF
21411 #define HAVE_STRUCT_TM_TM_ZONE 1
21417 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21419 cat >>confdefs.h <<\_ACEOF
21420 #define HAVE_TM_ZONE 1
21424 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21425 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21426 if test "${ac_cv_have_decl_tzname+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21429 cat >conftest.$ac_ext <<_ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21448 rm -f conftest.$ac_objext
21449 if { (ac_try="$ac_compile"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_compile") 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && {
21462 test -z "$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 } && test -s conftest.$ac_objext; then
21465 ac_cv_have_decl_tzname=yes
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21470 ac_cv_have_decl_tzname=no
21473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21475 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21476 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21477 if test $ac_cv_have_decl_tzname = yes; then
21479 cat >>confdefs.h <<_ACEOF
21480 #define HAVE_DECL_TZNAME 1
21485 cat >>confdefs.h <<_ACEOF
21486 #define HAVE_DECL_TZNAME 0
21493 { echo "$as_me:$LINENO: checking for tzname" >&5
21494 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21495 if test "${ac_cv_var_tzname+set}" = set; then
21496 echo $ECHO_N "(cached) $ECHO_C" >&6
21498 cat >conftest.$ac_ext <<_ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21505 #if !HAVE_DECL_TZNAME
21506 extern char *tzname[];
21512 return tzname[0][0];
21517 rm -f conftest.$ac_objext conftest$ac_exeext
21518 if { (ac_try="$ac_link"
21519 case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_link") 2>conftest.er1
21526 grep -v '^ *+' conftest.er1 >conftest.err
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } && {
21531 test -z "$ac_c_werror_flag" ||
21532 test ! -s conftest.err
21533 } && test -s conftest$ac_exeext &&
21534 $as_test_x conftest$ac_exeext; then
21535 ac_cv_var_tzname=yes
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 ac_cv_var_tzname=no
21543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21544 conftest$ac_exeext conftest.$ac_ext
21546 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21547 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21548 if test $ac_cv_var_tzname = yes; then
21550 cat >>confdefs.h <<\_ACEOF
21551 #define HAVE_TZNAME 1
21558 { echo "$as_me:$LINENO: checking for utime.h" >&5
21559 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21560 if test "${ba_cv_header_utime_h+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21570 #include <sys/types.h>
21580 rm -f conftest.$ac_objext
21581 if { (ac_try="$ac_compile"
21582 case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_compile") 2>conftest.er1
21589 grep -v '^ *+' conftest.er1 >conftest.err
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest.$ac_objext; then
21597 ba_cv_header_utime_h=yes
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21602 ba_cv_header_utime_h=no
21605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21607 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21608 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21609 test $ba_cv_header_utime_h = yes &&
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_UTIME_H 1
21615 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21616 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21617 if test "${ba_cv_header_socklen_t+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 cat >conftest.$ac_ext <<_ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21627 #include <sys/types.h>
21628 #include <sys/socket.h>
21637 rm -f conftest.$ac_objext
21638 if { (ac_try="$ac_compile"
21639 case "(($ac_try" in
21640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641 *) ac_try_echo=$ac_try;;
21643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21644 (eval "$ac_compile") 2>conftest.er1
21646 grep -v '^ *+' conftest.er1 >conftest.err
21648 cat conftest.err >&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } && {
21651 test -z "$ac_c_werror_flag" ||
21652 test ! -s conftest.err
21653 } && test -s conftest.$ac_objext; then
21654 ba_cv_header_socklen_t=yes
21656 echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21659 ba_cv_header_socklen_t=no
21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21665 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21666 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_SOCKLEN_T 1
21671 { echo "$as_me:$LINENO: checking for bigendian" >&5
21672 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21673 if test "${ba_cv_bigendian+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 if test "$cross_compiling" = yes; then
21679 cat >conftest.$ac_ext <<_ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21687 rm -f conftest$ac_exeext
21688 if { (ac_try="$ac_link"
21689 case "(($ac_try" in
21690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694 (eval "$ac_link") 2>&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }; then
21707 ba_cv_bigendian=yes
21709 echo "$as_me: program exited with status $ac_status" >&5
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21713 ( exit $ac_status )
21716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21721 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21722 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21723 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21724 #define HAVE_BIGENDIAN 1
21729 ac_cpp='$CXXCPP $CPPFLAGS'
21730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21735 { echo "$as_me:$LINENO: checking for typeof" >&5
21736 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21737 if test "${ba_cv_have_typeof+set}" = set; then
21738 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 if test "$cross_compiling" = yes; then
21741 ba_cv_have_typeof=no
21743 cat >conftest.$ac_ext <<_ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 main(){char *a = 0; a = (typeof a)a;}
21751 rm -f conftest$ac_exeext
21752 if { (ac_try="$ac_link"
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_link") 2>&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21762 { (case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_try") 2>&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ba_cv_have_typeof=yes
21773 echo "$as_me: program exited with status $ac_status" >&5
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 ( exit $ac_status )
21778 ba_cv_have_typeof=no
21780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21785 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21786 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21787 test $ba_cv_have_typeof = yes &&
21788 cat >>confdefs.h <<\_ACEOF
21789 #define HAVE_TYPEOF 1
21793 ac_cpp='$CPP $CPPFLAGS'
21794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21799 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21800 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21801 if test "${ac_cv_c_const+set}" = set; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21804 cat >conftest.$ac_ext <<_ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21814 /* FIXME: Include the comments suggested by Paul. */
21815 #ifndef __cplusplus
21816 /* Ultrix mips cc rejects this. */
21817 typedef int charset[2];
21819 /* SunOS 4.1.1 cc rejects this. */
21820 char const *const *pcpcc;
21822 /* NEC SVR4.0.2 mips cc rejects this. */
21823 struct point {int x, y;};
21824 static struct point const zero = {0,0};
21825 /* AIX XL C 1.02.0.0 rejects this.
21826 It does not let you subtract one const X* pointer from another in
21827 an arm of an if-expression whose if-part is not a constant
21829 const char *g = "string";
21830 pcpcc = &g + (g ? g-g : 0);
21831 /* HPUX 7.0 cc rejects these. */
21833 ppc = (char**) pcpcc;
21834 pcpcc = (char const *const *) ppc;
21835 { /* SCO 3.2v4 cc rejects this. */
21837 char const *s = 0 ? (char *) 0 : (char const *) 0;
21842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21843 int x[] = {25, 17};
21844 const int *foo = &x[0];
21847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21848 typedef const int *iptr;
21852 { /* AIX XL C 1.02.0.0 rejects this saying
21853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21854 struct s { int j; const int *ap[3]; };
21855 struct s *b; b->j = 5;
21857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21858 const int foo = 10;
21859 if (!foo) return 0;
21861 return !cs[0] && !zero.x;
21868 rm -f conftest.$ac_objext
21869 if { (ac_try="$ac_compile"
21870 case "(($ac_try" in
21871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872 *) ac_try_echo=$ac_try;;
21874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21875 (eval "$ac_compile") 2>conftest.er1
21877 grep -v '^ *+' conftest.er1 >conftest.err
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } && {
21882 test -z "$ac_c_werror_flag" ||
21883 test ! -s conftest.err
21884 } && test -s conftest.$ac_objext; then
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21896 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21897 if test $ac_cv_c_const = no; then
21899 cat >>confdefs.h <<\_ACEOF
21907 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21908 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21910 # The order of these tests is important.
21911 cat >conftest.$ac_ext <<_ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21917 #include <sys/statvfs.h>
21918 #include <sys/fstyp.h>
21920 if { (ac_try="$ac_cpp conftest.$ac_ext"
21921 case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21928 grep -v '^ *+' conftest.er1 >conftest.err
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } >/dev/null && {
21933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21934 test ! -s conftest.err
21936 cat >>confdefs.h <<\_ACEOF
21937 #define FSTYPE_STATVFS 1
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21947 rm -f conftest.err conftest.$ac_ext
21948 if test $fstype = no; then
21949 cat >conftest.$ac_ext <<_ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h. */
21955 #include <sys/statfs.h>
21956 #include <sys/fstyp.h>
21958 if { (ac_try="$ac_cpp conftest.$ac_ext"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21966 grep -v '^ *+' conftest.er1 >conftest.err
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } >/dev/null && {
21971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21972 test ! -s conftest.err
21974 cat >>confdefs.h <<\_ACEOF
21975 #define FSTYPE_USG_STATFS 1
21979 echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21985 rm -f conftest.err conftest.$ac_ext
21987 if test $fstype = no; then
21988 cat >conftest.$ac_ext <<_ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 #include <sys/statfs.h>
21995 #include <sys/vmount.h>
21997 if { (ac_try="$ac_cpp conftest.$ac_ext"
21998 case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22005 grep -v '^ *+' conftest.er1 >conftest.err
22007 cat conftest.err >&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } >/dev/null && {
22010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22011 test ! -s conftest.err
22013 cat >>confdefs.h <<\_ACEOF
22014 #define FSTYPE_AIX_STATFS 1
22018 echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22024 rm -f conftest.err conftest.$ac_ext
22026 if test $fstype = no; then
22027 cat >conftest.$ac_ext <<_ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22033 #include <mntent.h>
22035 if { (ac_try="$ac_cpp conftest.$ac_ext"
22036 case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22043 grep -v '^ *+' conftest.er1 >conftest.err
22045 cat conftest.err >&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); } >/dev/null && {
22048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22049 test ! -s conftest.err
22051 cat >>confdefs.h <<\_ACEOF
22052 #define FSTYPE_MNTENT 1
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22062 rm -f conftest.err conftest.$ac_ext
22064 if test $fstype = no; then
22065 cat >conftest.$ac_ext <<_ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22071 #include <sys/mount.h>
22074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22075 $EGREP "f_type;" >/dev/null 2>&1; then
22076 cat >>confdefs.h <<\_ACEOF
22077 #define FSTYPE_STATFS 1
22084 if test $fstype = no; then
22085 cat >conftest.$ac_ext <<_ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22091 #include <sys/mount.h>
22092 #include <sys/fs_types.h>
22094 if { (ac_try="$ac_cpp conftest.$ac_ext"
22095 case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22102 grep -v '^ *+' conftest.er1 >conftest.err
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } >/dev/null && {
22107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22108 test ! -s conftest.err
22110 cat >>confdefs.h <<\_ACEOF
22111 #define FSTYPE_GETMNT 1
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22121 rm -f conftest.err conftest.$ac_ext
22123 { echo "$as_me:$LINENO: result: $fstype" >&5
22124 echo "${ECHO_T}$fstype" >&6; }
22126 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22127 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22128 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22129 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22130 echo $ECHO_N "(cached) $ECHO_C" >&6
22132 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22133 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22135 # Is the header compilable?
22136 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22137 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 $ac_includes_default
22145 #include <sys/statvfs.h>
22147 rm -f conftest.$ac_objext
22148 if { (ac_try="$ac_compile"
22149 case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_compile") 2>conftest.er1
22156 grep -v '^ *+' conftest.er1 >conftest.err
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } && {
22161 test -z "$ac_c_werror_flag" ||
22162 test ! -s conftest.err
22163 } && test -s conftest.$ac_objext; then
22164 ac_header_compiler=yes
22166 echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22169 ac_header_compiler=no
22172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22174 echo "${ECHO_T}$ac_header_compiler" >&6; }
22176 # Is the header present?
22177 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22178 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22179 cat >conftest.$ac_ext <<_ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 #include <sys/statvfs.h>
22187 if { (ac_try="$ac_cpp conftest.$ac_ext"
22188 case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22195 grep -v '^ *+' conftest.er1 >conftest.err
22197 cat conftest.err >&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } >/dev/null && {
22200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22201 test ! -s conftest.err
22203 ac_header_preproc=yes
22205 echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22208 ac_header_preproc=no
22211 rm -f conftest.err conftest.$ac_ext
22212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22213 echo "${ECHO_T}$ac_header_preproc" >&6; }
22215 # So? What about this header?
22216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22218 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22219 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22220 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22221 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22222 ac_header_preproc=yes
22225 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22226 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22227 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
22228 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22230 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
22232 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22234 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22236 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22240 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22241 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22242 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 ac_cv_header_sys_statvfs_h=$ac_header_preproc
22247 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22248 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22251 if test $ac_cv_header_sys_statvfs_h = yes; then
22253 cat >>confdefs.h <<\_ACEOF
22254 #define HAVE_SYS_STATVFS_H 1
22261 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22262 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22263 if test "${ac_cv_type_signal+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 #include <sys/types.h>
22273 #include <signal.h>
22278 return *(signal (0, 0)) (0) == 1;
22283 rm -f conftest.$ac_objext
22284 if { (ac_try="$ac_compile"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_compile") 2>conftest.er1
22292 grep -v '^ *+' conftest.er1 >conftest.err
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } && {
22297 test -z "$ac_c_werror_flag" ||
22298 test ! -s conftest.err
22299 } && test -s conftest.$ac_objext; then
22300 ac_cv_type_signal=int
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22305 ac_cv_type_signal=void
22308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22311 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22313 cat >>confdefs.h <<_ACEOF
22314 #define RETSIGTYPE $ac_cv_type_signal
22319 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22320 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22321 if test "${bash_cv_signal_vintage+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 cat >conftest.$ac_ext <<_ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 #include <signal.h>
22337 struct sigaction sa;
22338 sigemptyset(&ss); sigsuspend(&ss);
22339 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22340 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22346 rm -f conftest.$ac_objext conftest$ac_exeext
22347 if { (ac_try="$ac_link"
22348 case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_link") 2>conftest.er1
22355 grep -v '^ *+' conftest.er1 >conftest.err
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } && {
22360 test -z "$ac_c_werror_flag" ||
22361 test ! -s conftest.err
22362 } && test -s conftest$ac_exeext &&
22363 $as_test_x conftest$ac_exeext; then
22364 bash_cv_signal_vintage="posix"
22366 echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22370 cat >conftest.$ac_ext <<_ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 #include <signal.h>
22381 int mask = sigmask(SIGINT);
22382 sigsetmask(mask); sigblock(mask); sigpause(mask);
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (ac_try="$ac_link"
22390 case "(($ac_try" in
22391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392 *) ac_try_echo=$ac_try;;
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395 (eval "$ac_link") 2>conftest.er1
22397 grep -v '^ *+' conftest.er1 >conftest.err
22399 cat conftest.err >&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); } && {
22402 test -z "$ac_c_werror_flag" ||
22403 test ! -s conftest.err
22404 } && test -s conftest$ac_exeext &&
22405 $as_test_x conftest$ac_exeext; then
22406 bash_cv_signal_vintage="4.2bsd"
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22412 cat >conftest.$ac_ext <<_ACEOF
22415 cat confdefs.h >>conftest.$ac_ext
22416 cat >>conftest.$ac_ext <<_ACEOF
22417 /* end confdefs.h. */
22419 #include <signal.h>
22420 RETSIGTYPE foo() { }
22425 int mask = sigmask(SIGINT);
22426 sigset(SIGINT, foo); sigrelse(SIGINT);
22427 sighold(SIGINT); sigpause(SIGINT);
22433 rm -f conftest.$ac_objext conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440 (eval "$ac_link") 2>conftest.er1
22442 grep -v '^ *+' conftest.er1 >conftest.err
22444 cat conftest.err >&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } && {
22447 test -z "$ac_c_werror_flag" ||
22448 test ! -s conftest.err
22449 } && test -s conftest$ac_exeext &&
22450 $as_test_x conftest$ac_exeext; then
22451 bash_cv_signal_vintage="svr3"
22453 echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22456 bash_cv_signal_vintage="v7"
22460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22461 conftest$ac_exeext conftest.$ac_ext
22465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22466 conftest$ac_exeext conftest.$ac_ext
22470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22471 conftest$ac_exeext conftest.$ac_ext
22475 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22476 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22477 if test "$bash_cv_signal_vintage" = "posix"; then
22478 cat >>confdefs.h <<\_ACEOF
22479 #define HAVE_POSIX_SIGNALS 1
22482 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22483 cat >>confdefs.h <<\_ACEOF
22484 #define HAVE_BSD_SIGNALS 1
22487 elif test "$bash_cv_signal_vintage" = "svr3"; then
22488 cat >>confdefs.h <<\_ACEOF
22489 #define HAVE_USG_SIGHOLD 1
22494 { echo "$as_me:$LINENO: checking for mode_t" >&5
22495 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22496 if test "${ac_cv_type_mode_t+set}" = set; then
22497 echo $ECHO_N "(cached) $ECHO_C" >&6
22499 cat >conftest.$ac_ext <<_ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h. */
22505 $ac_includes_default
22506 typedef mode_t ac__type_new_;
22510 if ((ac__type_new_ *) 0)
22512 if (sizeof (ac__type_new_))
22518 rm -f conftest.$ac_objext
22519 if { (ac_try="$ac_compile"
22520 case "(($ac_try" in
22521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522 *) ac_try_echo=$ac_try;;
22524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22525 (eval "$ac_compile") 2>conftest.er1
22527 grep -v '^ *+' conftest.er1 >conftest.err
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } && {
22532 test -z "$ac_c_werror_flag" ||
22533 test ! -s conftest.err
22534 } && test -s conftest.$ac_objext; then
22535 ac_cv_type_mode_t=yes
22537 echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22540 ac_cv_type_mode_t=no
22543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22545 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22546 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22547 if test $ac_cv_type_mode_t = yes; then
22551 cat >>confdefs.h <<_ACEOF
22557 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22558 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22559 if test "${ac_cv_type_uid_t+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22562 cat >conftest.$ac_ext <<_ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22568 #include <sys/types.h>
22571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22572 $EGREP "uid_t" >/dev/null 2>&1; then
22573 ac_cv_type_uid_t=yes
22575 ac_cv_type_uid_t=no
22580 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22581 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22582 if test $ac_cv_type_uid_t = no; then
22584 cat >>confdefs.h <<\_ACEOF
22589 cat >>confdefs.h <<\_ACEOF
22595 { echo "$as_me:$LINENO: checking for size_t" >&5
22596 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22597 if test "${ac_cv_type_size_t+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22600 cat >conftest.$ac_ext <<_ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h. */
22606 $ac_includes_default
22607 typedef size_t ac__type_new_;
22611 if ((ac__type_new_ *) 0)
22613 if (sizeof (ac__type_new_))
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_compile") 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest.$ac_objext; then
22636 ac_cv_type_size_t=yes
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 ac_cv_type_size_t=no
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22647 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22648 if test $ac_cv_type_size_t = yes; then
22652 cat >>confdefs.h <<_ACEOF
22653 #define size_t unsigned int
22658 { echo "$as_me:$LINENO: checking for pid_t" >&5
22659 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22660 if test "${ac_cv_type_pid_t+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 $ac_includes_default
22670 typedef pid_t ac__type_new_;
22674 if ((ac__type_new_ *) 0)
22676 if (sizeof (ac__type_new_))
22682 rm -f conftest.$ac_objext
22683 if { (ac_try="$ac_compile"
22684 case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_compile") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest.$ac_objext; then
22699 ac_cv_type_pid_t=yes
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 ac_cv_type_pid_t=no
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22709 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22710 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22711 if test $ac_cv_type_pid_t = yes; then
22715 cat >>confdefs.h <<_ACEOF
22721 { echo "$as_me:$LINENO: checking for off_t" >&5
22722 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22723 if test "${ac_cv_type_off_t+set}" = set; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 cat >conftest.$ac_ext <<_ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h. */
22732 $ac_includes_default
22733 typedef off_t ac__type_new_;
22737 if ((ac__type_new_ *) 0)
22739 if (sizeof (ac__type_new_))
22745 rm -f conftest.$ac_objext
22746 if { (ac_try="$ac_compile"
22747 case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22752 (eval "$ac_compile") 2>conftest.er1
22754 grep -v '^ *+' conftest.er1 >conftest.err
22756 cat conftest.err >&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } && {
22759 test -z "$ac_c_werror_flag" ||
22760 test ! -s conftest.err
22761 } && test -s conftest.$ac_objext; then
22762 ac_cv_type_off_t=yes
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 ac_cv_type_off_t=no
22770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22772 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22773 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22774 if test $ac_cv_type_off_t = yes; then
22778 cat >>confdefs.h <<_ACEOF
22779 #define off_t long int
22784 { echo "$as_me:$LINENO: checking for ino_t" >&5
22785 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22786 if test "${ac_cv_type_ino_t+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 cat >conftest.$ac_ext <<_ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h. */
22795 $ac_includes_default
22796 typedef ino_t ac__type_new_;
22800 if ((ac__type_new_ *) 0)
22802 if (sizeof (ac__type_new_))
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815 (eval "$ac_compile") 2>conftest.er1
22817 grep -v '^ *+' conftest.er1 >conftest.err
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest.$ac_objext; then
22825 ac_cv_type_ino_t=yes
22827 echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22830 ac_cv_type_ino_t=no
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22836 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22837 if test $ac_cv_type_ino_t = yes; then
22841 cat >>confdefs.h <<_ACEOF
22842 #define ino_t unsigned long
22847 { echo "$as_me:$LINENO: checking for dev_t" >&5
22848 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22849 if test "${ac_cv_type_dev_t+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22852 cat >conftest.$ac_ext <<_ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 $ac_includes_default
22859 typedef dev_t ac__type_new_;
22863 if ((ac__type_new_ *) 0)
22865 if (sizeof (ac__type_new_))
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_compile") 2>conftest.er1
22880 grep -v '^ *+' conftest.er1 >conftest.err
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } && {
22885 test -z "$ac_c_werror_flag" ||
22886 test ! -s conftest.err
22887 } && test -s conftest.$ac_objext; then
22888 ac_cv_type_dev_t=yes
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 ac_cv_type_dev_t=no
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22899 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22900 if test $ac_cv_type_dev_t = yes; then
22904 cat >>confdefs.h <<_ACEOF
22905 #define dev_t unsigned long
22910 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22911 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22912 if test "${ac_cv_type_daddr_t+set}" = set; then
22913 echo $ECHO_N "(cached) $ECHO_C" >&6
22915 cat >conftest.$ac_ext <<_ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 $ac_includes_default
22922 typedef daddr_t ac__type_new_;
22926 if ((ac__type_new_ *) 0)
22928 if (sizeof (ac__type_new_))
22934 rm -f conftest.$ac_objext
22935 if { (ac_try="$ac_compile"
22936 case "(($ac_try" in
22937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938 *) ac_try_echo=$ac_try;;
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941 (eval "$ac_compile") 2>conftest.er1
22943 grep -v '^ *+' conftest.er1 >conftest.err
22945 cat conftest.err >&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); } && {
22948 test -z "$ac_c_werror_flag" ||
22949 test ! -s conftest.err
22950 } && test -s conftest.$ac_objext; then
22951 ac_cv_type_daddr_t=yes
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 ac_cv_type_daddr_t=no
22959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22962 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22963 if test $ac_cv_type_daddr_t = yes; then
22967 cat >>confdefs.h <<_ACEOF
22968 #define daddr_t long
22973 { echo "$as_me:$LINENO: checking for major_t" >&5
22974 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22975 if test "${ac_cv_type_major_t+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 $ac_includes_default
22985 typedef major_t ac__type_new_;
22989 if ((ac__type_new_ *) 0)
22991 if (sizeof (ac__type_new_))
22997 rm -f conftest.$ac_objext
22998 if { (ac_try="$ac_compile"
22999 case "(($ac_try" in
23000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23001 *) ac_try_echo=$ac_try;;
23003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23004 (eval "$ac_compile") 2>conftest.er1
23006 grep -v '^ *+' conftest.er1 >conftest.err
23008 cat conftest.err >&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } && {
23011 test -z "$ac_c_werror_flag" ||
23012 test ! -s conftest.err
23013 } && test -s conftest.$ac_objext; then
23014 ac_cv_type_major_t=yes
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 ac_cv_type_major_t=no
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23024 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23025 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23026 if test $ac_cv_type_major_t = yes; then
23030 cat >>confdefs.h <<_ACEOF
23031 #define major_t int
23036 { echo "$as_me:$LINENO: checking for minor_t" >&5
23037 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23038 if test "${ac_cv_type_minor_t+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 cat >conftest.$ac_ext <<_ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 $ac_includes_default
23048 typedef minor_t ac__type_new_;
23052 if ((ac__type_new_ *) 0)
23054 if (sizeof (ac__type_new_))
23060 rm -f conftest.$ac_objext
23061 if { (ac_try="$ac_compile"
23062 case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064 *) ac_try_echo=$ac_try;;
23066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067 (eval "$ac_compile") 2>conftest.er1
23069 grep -v '^ *+' conftest.er1 >conftest.err
23071 cat conftest.err >&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } && {
23074 test -z "$ac_c_werror_flag" ||
23075 test ! -s conftest.err
23076 } && test -s conftest.$ac_objext; then
23077 ac_cv_type_minor_t=yes
23079 echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23082 ac_cv_type_minor_t=no
23085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23088 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23089 if test $ac_cv_type_minor_t = yes; then
23093 cat >>confdefs.h <<_ACEOF
23094 #define minor_t int
23099 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23100 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23101 if test "${ac_cv_type_ssize_t+set}" = set; then
23102 echo $ECHO_N "(cached) $ECHO_C" >&6
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 $ac_includes_default
23111 typedef ssize_t ac__type_new_;
23115 if ((ac__type_new_ *) 0)
23117 if (sizeof (ac__type_new_))
23123 rm -f conftest.$ac_objext
23124 if { (ac_try="$ac_compile"
23125 case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_compile") 2>conftest.er1
23132 grep -v '^ *+' conftest.er1 >conftest.err
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && {
23137 test -z "$ac_c_werror_flag" ||
23138 test ! -s conftest.err
23139 } && test -s conftest.$ac_objext; then
23140 ac_cv_type_ssize_t=yes
23142 echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23145 ac_cv_type_ssize_t=no
23148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23150 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23151 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23152 if test $ac_cv_type_ssize_t = yes; then
23156 cat >>confdefs.h <<_ACEOF
23157 #define ssize_t int
23162 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23163 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23164 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23165 echo $ECHO_N "(cached) $ECHO_C" >&6
23167 cat >conftest.$ac_ext <<_ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h. */
23173 $ac_includes_default
23177 static struct stat ac_aggr;
23178 if (ac_aggr.st_blocks)
23184 rm -f conftest.$ac_objext
23185 if { (ac_try="$ac_compile"
23186 case "(($ac_try" in
23187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188 *) ac_try_echo=$ac_try;;
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191 (eval "$ac_compile") 2>conftest.er1
23193 grep -v '^ *+' conftest.er1 >conftest.err
23195 cat conftest.err >&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } && {
23198 test -z "$ac_c_werror_flag" ||
23199 test ! -s conftest.err
23200 } && test -s conftest.$ac_objext; then
23201 ac_cv_member_struct_stat_st_blocks=yes
23203 echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23206 cat >conftest.$ac_ext <<_ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 $ac_includes_default
23216 static struct stat ac_aggr;
23217 if (sizeof ac_aggr.st_blocks)
23223 rm -f conftest.$ac_objext
23224 if { (ac_try="$ac_compile"
23225 case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_compile") 2>conftest.er1
23232 grep -v '^ *+' conftest.er1 >conftest.err
23234 cat conftest.err >&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } && {
23237 test -z "$ac_c_werror_flag" ||
23238 test ! -s conftest.err
23239 } && test -s conftest.$ac_objext; then
23240 ac_cv_member_struct_stat_st_blocks=yes
23242 echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23245 ac_cv_member_struct_stat_st_blocks=no
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23254 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23255 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23257 cat >>confdefs.h <<_ACEOF
23258 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23262 cat >>confdefs.h <<\_ACEOF
23263 #define HAVE_ST_BLOCKS 1
23267 case " $LIBOBJS " in
23268 *" fileblocks.$ac_objext "* ) ;;
23269 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23276 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23277 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23278 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23281 cat >conftest.$ac_ext <<_ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h. */
23287 $ac_includes_default
23291 static struct stat ac_aggr;
23292 if (ac_aggr.st_rdev)
23298 rm -f conftest.$ac_objext
23299 if { (ac_try="$ac_compile"
23300 case "(($ac_try" in
23301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302 *) ac_try_echo=$ac_try;;
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305 (eval "$ac_compile") 2>conftest.er1
23307 grep -v '^ *+' conftest.er1 >conftest.err
23309 cat conftest.err >&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } && {
23312 test -z "$ac_c_werror_flag" ||
23313 test ! -s conftest.err
23314 } && test -s conftest.$ac_objext; then
23315 ac_cv_member_struct_stat_st_rdev=yes
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23320 cat >conftest.$ac_ext <<_ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23326 $ac_includes_default
23330 static struct stat ac_aggr;
23331 if (sizeof ac_aggr.st_rdev)
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_compile") 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && {
23351 test -z "$ac_c_werror_flag" ||
23352 test ! -s conftest.err
23353 } && test -s conftest.$ac_objext; then
23354 ac_cv_member_struct_stat_st_rdev=yes
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 ac_cv_member_struct_stat_st_rdev=no
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23368 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23369 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23371 cat >>confdefs.h <<_ACEOF
23372 #define HAVE_STRUCT_STAT_ST_RDEV 1
23376 cat >>confdefs.h <<\_ACEOF
23377 #define HAVE_ST_RDEV 1
23383 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23384 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23385 if test "${ac_cv_struct_tm+set}" = set; then
23386 echo $ECHO_N "(cached) $ECHO_C" >&6
23388 cat >conftest.$ac_ext <<_ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23394 #include <sys/types.h>
23401 int *p = &tm.tm_sec;
23407 rm -f conftest.$ac_objext
23408 if { (ac_try="$ac_compile"
23409 case "(($ac_try" in
23410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411 *) ac_try_echo=$ac_try;;
23413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414 (eval "$ac_compile") 2>conftest.er1
23416 grep -v '^ *+' conftest.er1 >conftest.err
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } && {
23421 test -z "$ac_c_werror_flag" ||
23422 test ! -s conftest.err
23423 } && test -s conftest.$ac_objext; then
23424 ac_cv_struct_tm=time.h
23426 echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 ac_cv_struct_tm=sys/time.h
23432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23434 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23435 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23436 if test $ac_cv_struct_tm = sys/time.h; then
23438 cat >>confdefs.h <<\_ACEOF
23439 #define TM_IN_SYS_TIME 1
23444 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23445 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23446 if test "${ac_cv_c_const+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23459 /* FIXME: Include the comments suggested by Paul. */
23460 #ifndef __cplusplus
23461 /* Ultrix mips cc rejects this. */
23462 typedef int charset[2];
23464 /* SunOS 4.1.1 cc rejects this. */
23465 char const *const *pcpcc;
23467 /* NEC SVR4.0.2 mips cc rejects this. */
23468 struct point {int x, y;};
23469 static struct point const zero = {0,0};
23470 /* AIX XL C 1.02.0.0 rejects this.
23471 It does not let you subtract one const X* pointer from another in
23472 an arm of an if-expression whose if-part is not a constant
23474 const char *g = "string";
23475 pcpcc = &g + (g ? g-g : 0);
23476 /* HPUX 7.0 cc rejects these. */
23478 ppc = (char**) pcpcc;
23479 pcpcc = (char const *const *) ppc;
23480 { /* SCO 3.2v4 cc rejects this. */
23482 char const *s = 0 ? (char *) 0 : (char const *) 0;
23487 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23488 int x[] = {25, 17};
23489 const int *foo = &x[0];
23492 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23493 typedef const int *iptr;
23497 { /* AIX XL C 1.02.0.0 rejects this saying
23498 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23499 struct s { int j; const int *ap[3]; };
23500 struct s *b; b->j = 5;
23502 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23503 const int foo = 10;
23504 if (!foo) return 0;
23506 return !cs[0] && !zero.x;
23513 rm -f conftest.$ac_objext
23514 if { (ac_try="$ac_compile"
23515 case "(($ac_try" in
23516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517 *) ac_try_echo=$ac_try;;
23519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23520 (eval "$ac_compile") 2>conftest.er1
23522 grep -v '^ *+' conftest.er1 >conftest.err
23524 cat conftest.err >&5
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); } && {
23527 test -z "$ac_c_werror_flag" ||
23528 test ! -s conftest.err
23529 } && test -s conftest.$ac_objext; then
23532 echo "$as_me: failed program was:" >&5
23533 sed 's/^/| /' conftest.$ac_ext >&5
23538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23540 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23541 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23542 if test $ac_cv_c_const = no; then
23544 cat >>confdefs.h <<\_ACEOF
23552 { echo "$as_me:$LINENO: checking for char" >&5
23553 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23554 if test "${ac_cv_type_char+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23557 cat >conftest.$ac_ext <<_ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h. */
23563 $ac_includes_default
23564 typedef char ac__type_new_;
23568 if ((ac__type_new_ *) 0)
23570 if (sizeof (ac__type_new_))
23576 rm -f conftest.$ac_objext
23577 if { (ac_try="$ac_compile"
23578 case "(($ac_try" in
23579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580 *) ac_try_echo=$ac_try;;
23582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583 (eval "$ac_compile") 2>conftest.er1
23585 grep -v '^ *+' conftest.er1 >conftest.err
23587 cat conftest.err >&5
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } && {
23590 test -z "$ac_c_werror_flag" ||
23591 test ! -s conftest.err
23592 } && test -s conftest.$ac_objext; then
23593 ac_cv_type_char=yes
23595 echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23603 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23604 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23606 # The cast to long int works around a bug in the HP C Compiler
23607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23609 # This bug is HP SR number 8606223364.
23610 { echo "$as_me:$LINENO: checking size of char" >&5
23611 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23612 if test "${ac_cv_sizeof_char+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23615 if test "$cross_compiling" = yes; then
23616 # Depending upon the size, compute the lo and hi bounds.
23617 cat >conftest.$ac_ext <<_ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h. */
23623 $ac_includes_default
23624 typedef char ac__type_sizeof_;
23628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23635 rm -f conftest.$ac_objext
23636 if { (ac_try="$ac_compile"
23637 case "(($ac_try" in
23638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639 *) ac_try_echo=$ac_try;;
23641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23642 (eval "$ac_compile") 2>conftest.er1
23644 grep -v '^ *+' conftest.er1 >conftest.err
23646 cat conftest.err >&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } && {
23649 test -z "$ac_c_werror_flag" ||
23650 test ! -s conftest.err
23651 } && test -s conftest.$ac_objext; then
23654 cat >conftest.$ac_ext <<_ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h. */
23660 $ac_includes_default
23661 typedef char ac__type_sizeof_;
23665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23672 rm -f conftest.$ac_objext
23673 if { (ac_try="$ac_compile"
23674 case "(($ac_try" in
23675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23676 *) ac_try_echo=$ac_try;;
23678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23679 (eval "$ac_compile") 2>conftest.er1
23681 grep -v '^ *+' conftest.er1 >conftest.err
23683 cat conftest.err >&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } && {
23686 test -z "$ac_c_werror_flag" ||
23687 test ! -s conftest.err
23688 } && test -s conftest.$ac_objext; then
23689 ac_hi=$ac_mid; break
23691 echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694 ac_lo=`expr $ac_mid + 1`
23695 if test $ac_lo -le $ac_mid; then
23699 ac_mid=`expr 2 '*' $ac_mid + 1`
23702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23705 echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23708 cat >conftest.$ac_ext <<_ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 $ac_includes_default
23715 typedef char ac__type_sizeof_;
23719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23726 rm -f conftest.$ac_objext
23727 if { (ac_try="$ac_compile"
23728 case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_compile") 2>conftest.er1
23735 grep -v '^ *+' conftest.er1 >conftest.err
23737 cat conftest.err >&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && {
23740 test -z "$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 } && test -s conftest.$ac_objext; then
23745 cat >conftest.$ac_ext <<_ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23751 $ac_includes_default
23752 typedef char ac__type_sizeof_;
23756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23763 rm -f conftest.$ac_objext
23764 if { (ac_try="$ac_compile"
23765 case "(($ac_try" in
23766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767 *) ac_try_echo=$ac_try;;
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770 (eval "$ac_compile") 2>conftest.er1
23772 grep -v '^ *+' conftest.er1 >conftest.err
23774 cat conftest.err >&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } && {
23777 test -z "$ac_c_werror_flag" ||
23778 test ! -s conftest.err
23779 } && test -s conftest.$ac_objext; then
23780 ac_lo=$ac_mid; break
23782 echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23785 ac_hi=`expr '(' $ac_mid ')' - 1`
23786 if test $ac_mid -le $ac_hi; then
23790 ac_mid=`expr 2 '*' $ac_mid`
23793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23796 echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23806 # Binary search between lo and hi bounds.
23807 while test "x$ac_lo" != "x$ac_hi"; do
23808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23809 cat >conftest.$ac_ext <<_ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23815 $ac_includes_default
23816 typedef char ac__type_sizeof_;
23820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23827 rm -f conftest.$ac_objext
23828 if { (ac_try="$ac_compile"
23829 case "(($ac_try" in
23830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23831 *) ac_try_echo=$ac_try;;
23833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23834 (eval "$ac_compile") 2>conftest.er1
23836 grep -v '^ *+' conftest.er1 >conftest.err
23838 cat conftest.err >&5
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); } && {
23841 test -z "$ac_c_werror_flag" ||
23842 test ! -s conftest.err
23843 } && test -s conftest.$ac_objext; then
23846 echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23849 ac_lo=`expr '(' $ac_mid ')' + 1`
23852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855 ?*) ac_cv_sizeof_char=$ac_lo;;
23856 '') if test "$ac_cv_type_char" = yes; then
23857 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23858 See \`config.log' for more details." >&5
23859 echo "$as_me: error: cannot compute sizeof (char)
23860 See \`config.log' for more details." >&2;}
23861 { (exit 77); exit 77; }; }
23863 ac_cv_sizeof_char=0
23867 cat >conftest.$ac_ext <<_ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h. */
23873 $ac_includes_default
23874 typedef char ac__type_sizeof_;
23875 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23876 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23878 #include <stdlib.h>
23883 FILE *f = fopen ("conftest.val", "w");
23886 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23888 long int i = longval ();
23889 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23891 fprintf (f, "%ld\n", i);
23895 unsigned long int i = ulongval ();
23896 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23898 fprintf (f, "%lu\n", i);
23900 return ferror (f) || fclose (f) != 0;
23906 rm -f conftest$ac_exeext
23907 if { (ac_try="$ac_link"
23908 case "(($ac_try" in
23909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910 *) ac_try_echo=$ac_try;;
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913 (eval "$ac_link") 2>&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23917 { (case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_try") 2>&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); }; }; then
23926 ac_cv_sizeof_char=`cat conftest.val`
23928 echo "$as_me: program exited with status $ac_status" >&5
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23932 ( exit $ac_status )
23933 if test "$ac_cv_type_char" = yes; then
23934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23935 See \`config.log' for more details." >&5
23936 echo "$as_me: error: cannot compute sizeof (char)
23937 See \`config.log' for more details." >&2;}
23938 { (exit 77); exit 77; }; }
23940 ac_cv_sizeof_char=0
23943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23947 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23948 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23952 cat >>confdefs.h <<_ACEOF
23953 #define SIZEOF_CHAR $ac_cv_sizeof_char
23957 { echo "$as_me:$LINENO: checking for short int" >&5
23958 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23959 if test "${ac_cv_type_short_int+set}" = set; then
23960 echo $ECHO_N "(cached) $ECHO_C" >&6
23962 cat >conftest.$ac_ext <<_ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h. */
23968 $ac_includes_default
23969 typedef short int ac__type_new_;
23973 if ((ac__type_new_ *) 0)
23975 if (sizeof (ac__type_new_))
23981 rm -f conftest.$ac_objext
23982 if { (ac_try="$ac_compile"
23983 case "(($ac_try" in
23984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985 *) ac_try_echo=$ac_try;;
23987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23988 (eval "$ac_compile") 2>conftest.er1
23990 grep -v '^ *+' conftest.er1 >conftest.err
23992 cat conftest.err >&5
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); } && {
23995 test -z "$ac_c_werror_flag" ||
23996 test ! -s conftest.err
23997 } && test -s conftest.$ac_objext; then
23998 ac_cv_type_short_int=yes
24000 echo "$as_me: failed program was:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24003 ac_cv_type_short_int=no
24006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24008 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24009 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24011 # The cast to long int works around a bug in the HP C Compiler
24012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24014 # This bug is HP SR number 8606223364.
24015 { echo "$as_me:$LINENO: checking size of short int" >&5
24016 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24017 if test "${ac_cv_sizeof_short_int+set}" = set; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
24020 if test "$cross_compiling" = yes; then
24021 # Depending upon the size, compute the lo and hi bounds.
24022 cat >conftest.$ac_ext <<_ACEOF
24025 cat confdefs.h >>conftest.$ac_ext
24026 cat >>conftest.$ac_ext <<_ACEOF
24027 /* end confdefs.h. */
24028 $ac_includes_default
24029 typedef short int ac__type_sizeof_;
24033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24040 rm -f conftest.$ac_objext
24041 if { (ac_try="$ac_compile"
24042 case "(($ac_try" in
24043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044 *) ac_try_echo=$ac_try;;
24046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047 (eval "$ac_compile") 2>conftest.er1
24049 grep -v '^ *+' conftest.er1 >conftest.err
24051 cat conftest.err >&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } && {
24054 test -z "$ac_c_werror_flag" ||
24055 test ! -s conftest.err
24056 } && test -s conftest.$ac_objext; then
24059 cat >conftest.$ac_ext <<_ACEOF
24062 cat confdefs.h >>conftest.$ac_ext
24063 cat >>conftest.$ac_ext <<_ACEOF
24064 /* end confdefs.h. */
24065 $ac_includes_default
24066 typedef short int ac__type_sizeof_;
24070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24077 rm -f conftest.$ac_objext
24078 if { (ac_try="$ac_compile"
24079 case "(($ac_try" in
24080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081 *) ac_try_echo=$ac_try;;
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084 (eval "$ac_compile") 2>conftest.er1
24086 grep -v '^ *+' conftest.er1 >conftest.err
24088 cat conftest.err >&5
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } && {
24091 test -z "$ac_c_werror_flag" ||
24092 test ! -s conftest.err
24093 } && test -s conftest.$ac_objext; then
24094 ac_hi=$ac_mid; break
24096 echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24099 ac_lo=`expr $ac_mid + 1`
24100 if test $ac_lo -le $ac_mid; then
24104 ac_mid=`expr 2 '*' $ac_mid + 1`
24107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24110 echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24113 cat >conftest.$ac_ext <<_ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h. */
24119 $ac_includes_default
24120 typedef short int ac__type_sizeof_;
24124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24131 rm -f conftest.$ac_objext
24132 if { (ac_try="$ac_compile"
24133 case "(($ac_try" in
24134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24135 *) ac_try_echo=$ac_try;;
24137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24138 (eval "$ac_compile") 2>conftest.er1
24140 grep -v '^ *+' conftest.er1 >conftest.err
24142 cat conftest.err >&5
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); } && {
24145 test -z "$ac_c_werror_flag" ||
24146 test ! -s conftest.err
24147 } && test -s conftest.$ac_objext; then
24150 cat >conftest.$ac_ext <<_ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h. */
24156 $ac_includes_default
24157 typedef short int ac__type_sizeof_;
24161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24168 rm -f conftest.$ac_objext
24169 if { (ac_try="$ac_compile"
24170 case "(($ac_try" in
24171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172 *) ac_try_echo=$ac_try;;
24174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24175 (eval "$ac_compile") 2>conftest.er1
24177 grep -v '^ *+' conftest.er1 >conftest.err
24179 cat conftest.err >&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } && {
24182 test -z "$ac_c_werror_flag" ||
24183 test ! -s conftest.err
24184 } && test -s conftest.$ac_objext; then
24185 ac_lo=$ac_mid; break
24187 echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24190 ac_hi=`expr '(' $ac_mid ')' - 1`
24191 if test $ac_mid -le $ac_hi; then
24195 ac_mid=`expr 2 '*' $ac_mid`
24198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24201 echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24211 # Binary search between lo and hi bounds.
24212 while test "x$ac_lo" != "x$ac_hi"; do
24213 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24214 cat >conftest.$ac_ext <<_ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h. */
24220 $ac_includes_default
24221 typedef short int ac__type_sizeof_;
24225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24232 rm -f conftest.$ac_objext
24233 if { (ac_try="$ac_compile"
24234 case "(($ac_try" in
24235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236 *) ac_try_echo=$ac_try;;
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239 (eval "$ac_compile") 2>conftest.er1
24241 grep -v '^ *+' conftest.er1 >conftest.err
24243 cat conftest.err >&5
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); } && {
24246 test -z "$ac_c_werror_flag" ||
24247 test ! -s conftest.err
24248 } && test -s conftest.$ac_objext; then
24251 echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24254 ac_lo=`expr '(' $ac_mid ')' + 1`
24257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24260 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24261 '') if test "$ac_cv_type_short_int" = yes; then
24262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24263 See \`config.log' for more details." >&5
24264 echo "$as_me: error: cannot compute sizeof (short int)
24265 See \`config.log' for more details." >&2;}
24266 { (exit 77); exit 77; }; }
24268 ac_cv_sizeof_short_int=0
24272 cat >conftest.$ac_ext <<_ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h. */
24278 $ac_includes_default
24279 typedef short int ac__type_sizeof_;
24280 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24281 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24283 #include <stdlib.h>
24288 FILE *f = fopen ("conftest.val", "w");
24291 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24293 long int i = longval ();
24294 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24296 fprintf (f, "%ld\n", i);
24300 unsigned long int i = ulongval ();
24301 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24303 fprintf (f, "%lu\n", i);
24305 return ferror (f) || fclose (f) != 0;
24311 rm -f conftest$ac_exeext
24312 if { (ac_try="$ac_link"
24313 case "(($ac_try" in
24314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24315 *) ac_try_echo=$ac_try;;
24317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24318 (eval "$ac_link") 2>&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24322 { (case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_try") 2>&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
24331 ac_cv_sizeof_short_int=`cat conftest.val`
24333 echo "$as_me: program exited with status $ac_status" >&5
24334 echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24337 ( exit $ac_status )
24338 if test "$ac_cv_type_short_int" = yes; then
24339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24340 See \`config.log' for more details." >&5
24341 echo "$as_me: error: cannot compute sizeof (short int)
24342 See \`config.log' for more details." >&2;}
24343 { (exit 77); exit 77; }; }
24345 ac_cv_sizeof_short_int=0
24348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24352 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24353 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24357 cat >>confdefs.h <<_ACEOF
24358 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24362 { echo "$as_me:$LINENO: checking for int" >&5
24363 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24364 if test "${ac_cv_type_int+set}" = set; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24367 cat >conftest.$ac_ext <<_ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h. */
24373 $ac_includes_default
24374 typedef int ac__type_new_;
24378 if ((ac__type_new_ *) 0)
24380 if (sizeof (ac__type_new_))
24386 rm -f conftest.$ac_objext
24387 if { (ac_try="$ac_compile"
24388 case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_compile") 2>conftest.er1
24395 grep -v '^ *+' conftest.er1 >conftest.err
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } && {
24400 test -z "$ac_c_werror_flag" ||
24401 test ! -s conftest.err
24402 } && test -s conftest.$ac_objext; then
24405 echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24413 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24414 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24416 # The cast to long int works around a bug in the HP C Compiler
24417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24419 # This bug is HP SR number 8606223364.
24420 { echo "$as_me:$LINENO: checking size of int" >&5
24421 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24422 if test "${ac_cv_sizeof_int+set}" = set; then
24423 echo $ECHO_N "(cached) $ECHO_C" >&6
24425 if test "$cross_compiling" = yes; then
24426 # Depending upon the size, compute the lo and hi bounds.
24427 cat >conftest.$ac_ext <<_ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h. */
24433 $ac_includes_default
24434 typedef int ac__type_sizeof_;
24438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24445 rm -f conftest.$ac_objext
24446 if { (ac_try="$ac_compile"
24447 case "(($ac_try" in
24448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24449 *) ac_try_echo=$ac_try;;
24451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24452 (eval "$ac_compile") 2>conftest.er1
24454 grep -v '^ *+' conftest.er1 >conftest.err
24456 cat conftest.err >&5
24457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458 (exit $ac_status); } && {
24459 test -z "$ac_c_werror_flag" ||
24460 test ! -s conftest.err
24461 } && test -s conftest.$ac_objext; then
24464 cat >conftest.$ac_ext <<_ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h. */
24470 $ac_includes_default
24471 typedef int ac__type_sizeof_;
24475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24482 rm -f conftest.$ac_objext
24483 if { (ac_try="$ac_compile"
24484 case "(($ac_try" in
24485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486 *) ac_try_echo=$ac_try;;
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489 (eval "$ac_compile") 2>conftest.er1
24491 grep -v '^ *+' conftest.er1 >conftest.err
24493 cat conftest.err >&5
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); } && {
24496 test -z "$ac_c_werror_flag" ||
24497 test ! -s conftest.err
24498 } && test -s conftest.$ac_objext; then
24499 ac_hi=$ac_mid; break
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24504 ac_lo=`expr $ac_mid + 1`
24505 if test $ac_lo -le $ac_mid; then
24509 ac_mid=`expr 2 '*' $ac_mid + 1`
24512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24515 echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.$ac_ext >&5
24518 cat >conftest.$ac_ext <<_ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24524 $ac_includes_default
24525 typedef int ac__type_sizeof_;
24529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24536 rm -f conftest.$ac_objext
24537 if { (ac_try="$ac_compile"
24538 case "(($ac_try" in
24539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24540 *) ac_try_echo=$ac_try;;
24542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24543 (eval "$ac_compile") 2>conftest.er1
24545 grep -v '^ *+' conftest.er1 >conftest.err
24547 cat conftest.err >&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } && {
24550 test -z "$ac_c_werror_flag" ||
24551 test ! -s conftest.err
24552 } && test -s conftest.$ac_objext; then
24555 cat >conftest.$ac_ext <<_ACEOF
24558 cat confdefs.h >>conftest.$ac_ext
24559 cat >>conftest.$ac_ext <<_ACEOF
24560 /* end confdefs.h. */
24561 $ac_includes_default
24562 typedef int ac__type_sizeof_;
24566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24573 rm -f conftest.$ac_objext
24574 if { (ac_try="$ac_compile"
24575 case "(($ac_try" in
24576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24577 *) ac_try_echo=$ac_try;;
24579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24580 (eval "$ac_compile") 2>conftest.er1
24582 grep -v '^ *+' conftest.er1 >conftest.err
24584 cat conftest.err >&5
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); } && {
24587 test -z "$ac_c_werror_flag" ||
24588 test ! -s conftest.err
24589 } && test -s conftest.$ac_objext; then
24590 ac_lo=$ac_mid; break
24592 echo "$as_me: failed program was:" >&5
24593 sed 's/^/| /' conftest.$ac_ext >&5
24595 ac_hi=`expr '(' $ac_mid ')' - 1`
24596 if test $ac_mid -le $ac_hi; then
24600 ac_mid=`expr 2 '*' $ac_mid`
24603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24606 echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24616 # Binary search between lo and hi bounds.
24617 while test "x$ac_lo" != "x$ac_hi"; do
24618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24619 cat >conftest.$ac_ext <<_ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24625 $ac_includes_default
24626 typedef int ac__type_sizeof_;
24630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24637 rm -f conftest.$ac_objext
24638 if { (ac_try="$ac_compile"
24639 case "(($ac_try" in
24640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641 *) ac_try_echo=$ac_try;;
24643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24644 (eval "$ac_compile") 2>conftest.er1
24646 grep -v '^ *+' conftest.er1 >conftest.err
24648 cat conftest.err >&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } && {
24651 test -z "$ac_c_werror_flag" ||
24652 test ! -s conftest.err
24653 } && test -s conftest.$ac_objext; then
24656 echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24659 ac_lo=`expr '(' $ac_mid ')' + 1`
24662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665 ?*) ac_cv_sizeof_int=$ac_lo;;
24666 '') if test "$ac_cv_type_int" = yes; then
24667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24668 See \`config.log' for more details." >&5
24669 echo "$as_me: error: cannot compute sizeof (int)
24670 See \`config.log' for more details." >&2;}
24671 { (exit 77); exit 77; }; }
24677 cat >conftest.$ac_ext <<_ACEOF
24680 cat confdefs.h >>conftest.$ac_ext
24681 cat >>conftest.$ac_ext <<_ACEOF
24682 /* end confdefs.h. */
24683 $ac_includes_default
24684 typedef int ac__type_sizeof_;
24685 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24686 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24688 #include <stdlib.h>
24693 FILE *f = fopen ("conftest.val", "w");
24696 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24698 long int i = longval ();
24699 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24701 fprintf (f, "%ld\n", i);
24705 unsigned long int i = ulongval ();
24706 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24708 fprintf (f, "%lu\n", i);
24710 return ferror (f) || fclose (f) != 0;
24716 rm -f conftest$ac_exeext
24717 if { (ac_try="$ac_link"
24718 case "(($ac_try" in
24719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723 (eval "$ac_link") 2>&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24727 { (case "(($ac_try" in
24728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732 (eval "$ac_try") 2>&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; }; then
24736 ac_cv_sizeof_int=`cat conftest.val`
24738 echo "$as_me: program exited with status $ac_status" >&5
24739 echo "$as_me: failed program was:" >&5
24740 sed 's/^/| /' conftest.$ac_ext >&5
24742 ( exit $ac_status )
24743 if test "$ac_cv_type_int" = yes; then
24744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24745 See \`config.log' for more details." >&5
24746 echo "$as_me: error: cannot compute sizeof (int)
24747 See \`config.log' for more details." >&2;}
24748 { (exit 77); exit 77; }; }
24753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24757 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24758 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24762 cat >>confdefs.h <<_ACEOF
24763 #define SIZEOF_INT $ac_cv_sizeof_int
24767 { echo "$as_me:$LINENO: checking for long int" >&5
24768 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24769 if test "${ac_cv_type_long_int+set}" = set; then
24770 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 cat >conftest.$ac_ext <<_ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h. */
24778 $ac_includes_default
24779 typedef long int ac__type_new_;
24783 if ((ac__type_new_ *) 0)
24785 if (sizeof (ac__type_new_))
24791 rm -f conftest.$ac_objext
24792 if { (ac_try="$ac_compile"
24793 case "(($ac_try" in
24794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795 *) ac_try_echo=$ac_try;;
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798 (eval "$ac_compile") 2>conftest.er1
24800 grep -v '^ *+' conftest.er1 >conftest.err
24802 cat conftest.err >&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } && {
24805 test -z "$ac_c_werror_flag" ||
24806 test ! -s conftest.err
24807 } && test -s conftest.$ac_objext; then
24808 ac_cv_type_long_int=yes
24810 echo "$as_me: failed program was:" >&5
24811 sed 's/^/| /' conftest.$ac_ext >&5
24813 ac_cv_type_long_int=no
24816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24818 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24819 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24821 # The cast to long int works around a bug in the HP C Compiler
24822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24824 # This bug is HP SR number 8606223364.
24825 { echo "$as_me:$LINENO: checking size of long int" >&5
24826 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24827 if test "${ac_cv_sizeof_long_int+set}" = set; then
24828 echo $ECHO_N "(cached) $ECHO_C" >&6
24830 if test "$cross_compiling" = yes; then
24831 # Depending upon the size, compute the lo and hi bounds.
24832 cat >conftest.$ac_ext <<_ACEOF
24835 cat confdefs.h >>conftest.$ac_ext
24836 cat >>conftest.$ac_ext <<_ACEOF
24837 /* end confdefs.h. */
24838 $ac_includes_default
24839 typedef long int ac__type_sizeof_;
24843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24850 rm -f conftest.$ac_objext
24851 if { (ac_try="$ac_compile"
24852 case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24857 (eval "$ac_compile") 2>conftest.er1
24859 grep -v '^ *+' conftest.er1 >conftest.err
24861 cat conftest.err >&5
24862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863 (exit $ac_status); } && {
24864 test -z "$ac_c_werror_flag" ||
24865 test ! -s conftest.err
24866 } && test -s conftest.$ac_objext; then
24869 cat >conftest.$ac_ext <<_ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24875 $ac_includes_default
24876 typedef long int ac__type_sizeof_;
24880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24887 rm -f conftest.$ac_objext
24888 if { (ac_try="$ac_compile"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_compile") 2>conftest.er1
24896 grep -v '^ *+' conftest.er1 >conftest.err
24898 cat conftest.err >&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } && {
24901 test -z "$ac_c_werror_flag" ||
24902 test ! -s conftest.err
24903 } && test -s conftest.$ac_objext; then
24904 ac_hi=$ac_mid; break
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24909 ac_lo=`expr $ac_mid + 1`
24910 if test $ac_lo -le $ac_mid; then
24914 ac_mid=`expr 2 '*' $ac_mid + 1`
24917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24920 echo "$as_me: failed program was:" >&5
24921 sed 's/^/| /' conftest.$ac_ext >&5
24923 cat >conftest.$ac_ext <<_ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h. */
24929 $ac_includes_default
24930 typedef long int ac__type_sizeof_;
24934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24941 rm -f conftest.$ac_objext
24942 if { (ac_try="$ac_compile"
24943 case "(($ac_try" in
24944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945 *) ac_try_echo=$ac_try;;
24947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948 (eval "$ac_compile") 2>conftest.er1
24950 grep -v '^ *+' conftest.er1 >conftest.err
24952 cat conftest.err >&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); } && {
24955 test -z "$ac_c_werror_flag" ||
24956 test ! -s conftest.err
24957 } && test -s conftest.$ac_objext; then
24960 cat >conftest.$ac_ext <<_ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h. */
24966 $ac_includes_default
24967 typedef long int ac__type_sizeof_;
24971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24978 rm -f conftest.$ac_objext
24979 if { (ac_try="$ac_compile"
24980 case "(($ac_try" in
24981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982 *) ac_try_echo=$ac_try;;
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985 (eval "$ac_compile") 2>conftest.er1
24987 grep -v '^ *+' conftest.er1 >conftest.err
24989 cat conftest.err >&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest.$ac_objext; then
24995 ac_lo=$ac_mid; break
24997 echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
25000 ac_hi=`expr '(' $ac_mid ')' - 1`
25001 if test $ac_mid -le $ac_hi; then
25005 ac_mid=`expr 2 '*' $ac_mid`
25008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25011 echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25021 # Binary search between lo and hi bounds.
25022 while test "x$ac_lo" != "x$ac_hi"; do
25023 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25024 cat >conftest.$ac_ext <<_ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h. */
25030 $ac_includes_default
25031 typedef long int ac__type_sizeof_;
25035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25042 rm -f conftest.$ac_objext
25043 if { (ac_try="$ac_compile"
25044 case "(($ac_try" in
25045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046 *) ac_try_echo=$ac_try;;
25048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049 (eval "$ac_compile") 2>conftest.er1
25051 grep -v '^ *+' conftest.er1 >conftest.err
25053 cat conftest.err >&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); } && {
25056 test -z "$ac_c_werror_flag" ||
25057 test ! -s conftest.err
25058 } && test -s conftest.$ac_objext; then
25061 echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25064 ac_lo=`expr '(' $ac_mid ')' + 1`
25067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25070 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25071 '') if test "$ac_cv_type_long_int" = yes; then
25072 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25073 See \`config.log' for more details." >&5
25074 echo "$as_me: error: cannot compute sizeof (long int)
25075 See \`config.log' for more details." >&2;}
25076 { (exit 77); exit 77; }; }
25078 ac_cv_sizeof_long_int=0
25082 cat >conftest.$ac_ext <<_ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25088 $ac_includes_default
25089 typedef long int ac__type_sizeof_;
25090 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25091 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25093 #include <stdlib.h>
25098 FILE *f = fopen ("conftest.val", "w");
25101 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25103 long int i = longval ();
25104 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25106 fprintf (f, "%ld\n", i);
25110 unsigned long int i = ulongval ();
25111 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25113 fprintf (f, "%lu\n", i);
25115 return ferror (f) || fclose (f) != 0;
25121 rm -f conftest$ac_exeext
25122 if { (ac_try="$ac_link"
25123 case "(($ac_try" in
25124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25125 *) ac_try_echo=$ac_try;;
25127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25128 (eval "$ac_link") 2>&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25132 { (case "(($ac_try" in
25133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25134 *) ac_try_echo=$ac_try;;
25136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25137 (eval "$ac_try") 2>&5
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); }; }; then
25141 ac_cv_sizeof_long_int=`cat conftest.val`
25143 echo "$as_me: program exited with status $ac_status" >&5
25144 echo "$as_me: failed program was:" >&5
25145 sed 's/^/| /' conftest.$ac_ext >&5
25147 ( exit $ac_status )
25148 if test "$ac_cv_type_long_int" = yes; then
25149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25150 See \`config.log' for more details." >&5
25151 echo "$as_me: error: cannot compute sizeof (long int)
25152 See \`config.log' for more details." >&2;}
25153 { (exit 77); exit 77; }; }
25155 ac_cv_sizeof_long_int=0
25158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25162 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25163 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25167 cat >>confdefs.h <<_ACEOF
25168 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25172 { echo "$as_me:$LINENO: checking for long long int" >&5
25173 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25174 if test "${ac_cv_type_long_long_int+set}" = set; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
25177 cat >conftest.$ac_ext <<_ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h. */
25183 $ac_includes_default
25184 typedef long long int ac__type_new_;
25188 if ((ac__type_new_ *) 0)
25190 if (sizeof (ac__type_new_))
25196 rm -f conftest.$ac_objext
25197 if { (ac_try="$ac_compile"
25198 case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_compile") 2>conftest.er1
25205 grep -v '^ *+' conftest.er1 >conftest.err
25207 cat conftest.err >&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } && {
25210 test -z "$ac_c_werror_flag" ||
25211 test ! -s conftest.err
25212 } && test -s conftest.$ac_objext; then
25213 ac_cv_type_long_long_int=yes
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25218 ac_cv_type_long_long_int=no
25221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25223 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25224 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25226 # The cast to long int works around a bug in the HP C Compiler
25227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25229 # This bug is HP SR number 8606223364.
25230 { echo "$as_me:$LINENO: checking size of long long int" >&5
25231 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25232 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25233 echo $ECHO_N "(cached) $ECHO_C" >&6
25235 if test "$cross_compiling" = yes; then
25236 # Depending upon the size, compute the lo and hi bounds.
25237 cat >conftest.$ac_ext <<_ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h. */
25243 $ac_includes_default
25244 typedef long long int ac__type_sizeof_;
25248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25255 rm -f conftest.$ac_objext
25256 if { (ac_try="$ac_compile"
25257 case "(($ac_try" in
25258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259 *) ac_try_echo=$ac_try;;
25261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25262 (eval "$ac_compile") 2>conftest.er1
25264 grep -v '^ *+' conftest.er1 >conftest.err
25266 cat conftest.err >&5
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } && {
25269 test -z "$ac_c_werror_flag" ||
25270 test ! -s conftest.err
25271 } && test -s conftest.$ac_objext; then
25274 cat >conftest.$ac_ext <<_ACEOF
25277 cat confdefs.h >>conftest.$ac_ext
25278 cat >>conftest.$ac_ext <<_ACEOF
25279 /* end confdefs.h. */
25280 $ac_includes_default
25281 typedef long long int ac__type_sizeof_;
25285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25292 rm -f conftest.$ac_objext
25293 if { (ac_try="$ac_compile"
25294 case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_compile") 2>conftest.er1
25301 grep -v '^ *+' conftest.er1 >conftest.err
25303 cat conftest.err >&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); } && {
25306 test -z "$ac_c_werror_flag" ||
25307 test ! -s conftest.err
25308 } && test -s conftest.$ac_objext; then
25309 ac_hi=$ac_mid; break
25311 echo "$as_me: failed program was:" >&5
25312 sed 's/^/| /' conftest.$ac_ext >&5
25314 ac_lo=`expr $ac_mid + 1`
25315 if test $ac_lo -le $ac_mid; then
25319 ac_mid=`expr 2 '*' $ac_mid + 1`
25322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325 echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25328 cat >conftest.$ac_ext <<_ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h. */
25334 $ac_includes_default
25335 typedef long long int ac__type_sizeof_;
25339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25346 rm -f conftest.$ac_objext
25347 if { (ac_try="$ac_compile"
25348 case "(($ac_try" in
25349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350 *) ac_try_echo=$ac_try;;
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353 (eval "$ac_compile") 2>conftest.er1
25355 grep -v '^ *+' conftest.er1 >conftest.err
25357 cat conftest.err >&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); } && {
25360 test -z "$ac_c_werror_flag" ||
25361 test ! -s conftest.err
25362 } && test -s conftest.$ac_objext; then
25365 cat >conftest.$ac_ext <<_ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h. */
25371 $ac_includes_default
25372 typedef long long int ac__type_sizeof_;
25376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25383 rm -f conftest.$ac_objext
25384 if { (ac_try="$ac_compile"
25385 case "(($ac_try" in
25386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25387 *) ac_try_echo=$ac_try;;
25389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25390 (eval "$ac_compile") 2>conftest.er1
25392 grep -v '^ *+' conftest.er1 >conftest.err
25394 cat conftest.err >&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } && {
25397 test -z "$ac_c_werror_flag" ||
25398 test ! -s conftest.err
25399 } && test -s conftest.$ac_objext; then
25400 ac_lo=$ac_mid; break
25402 echo "$as_me: failed program was:" >&5
25403 sed 's/^/| /' conftest.$ac_ext >&5
25405 ac_hi=`expr '(' $ac_mid ')' - 1`
25406 if test $ac_mid -le $ac_hi; then
25410 ac_mid=`expr 2 '*' $ac_mid`
25413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 echo "$as_me: failed program was:" >&5
25417 sed 's/^/| /' conftest.$ac_ext >&5
25422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25426 # Binary search between lo and hi bounds.
25427 while test "x$ac_lo" != "x$ac_hi"; do
25428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25429 cat >conftest.$ac_ext <<_ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h. */
25435 $ac_includes_default
25436 typedef long long int ac__type_sizeof_;
25440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25447 rm -f conftest.$ac_objext
25448 if { (ac_try="$ac_compile"
25449 case "(($ac_try" in
25450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25451 *) ac_try_echo=$ac_try;;
25453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25454 (eval "$ac_compile") 2>conftest.er1
25456 grep -v '^ *+' conftest.er1 >conftest.err
25458 cat conftest.err >&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); } && {
25461 test -z "$ac_c_werror_flag" ||
25462 test ! -s conftest.err
25463 } && test -s conftest.$ac_objext; then
25466 echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25469 ac_lo=`expr '(' $ac_mid ')' + 1`
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25475 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25476 '') if test "$ac_cv_type_long_long_int" = yes; then
25477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25478 See \`config.log' for more details." >&5
25479 echo "$as_me: error: cannot compute sizeof (long long int)
25480 See \`config.log' for more details." >&2;}
25481 { (exit 77); exit 77; }; }
25483 ac_cv_sizeof_long_long_int=0
25487 cat >conftest.$ac_ext <<_ACEOF
25490 cat confdefs.h >>conftest.$ac_ext
25491 cat >>conftest.$ac_ext <<_ACEOF
25492 /* end confdefs.h. */
25493 $ac_includes_default
25494 typedef long long int ac__type_sizeof_;
25495 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25496 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25498 #include <stdlib.h>
25503 FILE *f = fopen ("conftest.val", "w");
25506 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25508 long int i = longval ();
25509 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25511 fprintf (f, "%ld\n", i);
25515 unsigned long int i = ulongval ();
25516 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25518 fprintf (f, "%lu\n", i);
25520 return ferror (f) || fclose (f) != 0;
25526 rm -f conftest$ac_exeext
25527 if { (ac_try="$ac_link"
25528 case "(($ac_try" in
25529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25530 *) ac_try_echo=$ac_try;;
25532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25533 (eval "$ac_link") 2>&5
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25537 { (case "(($ac_try" in
25538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539 *) ac_try_echo=$ac_try;;
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542 (eval "$ac_try") 2>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ac_cv_sizeof_long_long_int=`cat conftest.val`
25548 echo "$as_me: program exited with status $ac_status" >&5
25549 echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25552 ( exit $ac_status )
25553 if test "$ac_cv_type_long_long_int" = yes; then
25554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25555 See \`config.log' for more details." >&5
25556 echo "$as_me: error: cannot compute sizeof (long long int)
25557 See \`config.log' for more details." >&2;}
25558 { (exit 77); exit 77; }; }
25560 ac_cv_sizeof_long_long_int=0
25563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25567 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25568 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25572 cat >>confdefs.h <<_ACEOF
25573 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25577 { echo "$as_me:$LINENO: checking for int *" >&5
25578 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25579 if test "${ac_cv_type_int_p+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25582 cat >conftest.$ac_ext <<_ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25588 $ac_includes_default
25589 typedef int * ac__type_new_;
25593 if ((ac__type_new_ *) 0)
25595 if (sizeof (ac__type_new_))
25601 rm -f conftest.$ac_objext
25602 if { (ac_try="$ac_compile"
25603 case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608 (eval "$ac_compile") 2>conftest.er1
25610 grep -v '^ *+' conftest.er1 >conftest.err
25612 cat conftest.err >&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); } && {
25615 test -z "$ac_c_werror_flag" ||
25616 test ! -s conftest.err
25617 } && test -s conftest.$ac_objext; then
25618 ac_cv_type_int_p=yes
25620 echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25623 ac_cv_type_int_p=no
25626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25628 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25629 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25631 # The cast to long int works around a bug in the HP C Compiler
25632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25634 # This bug is HP SR number 8606223364.
25635 { echo "$as_me:$LINENO: checking size of int *" >&5
25636 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25637 if test "${ac_cv_sizeof_int_p+set}" = set; then
25638 echo $ECHO_N "(cached) $ECHO_C" >&6
25640 if test "$cross_compiling" = yes; then
25641 # Depending upon the size, compute the lo and hi bounds.
25642 cat >conftest.$ac_ext <<_ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h. */
25648 $ac_includes_default
25649 typedef int * ac__type_sizeof_;
25653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25660 rm -f conftest.$ac_objext
25661 if { (ac_try="$ac_compile"
25662 case "(($ac_try" in
25663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664 *) ac_try_echo=$ac_try;;
25666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667 (eval "$ac_compile") 2>conftest.er1
25669 grep -v '^ *+' conftest.er1 >conftest.err
25671 cat conftest.err >&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); } && {
25674 test -z "$ac_c_werror_flag" ||
25675 test ! -s conftest.err
25676 } && test -s conftest.$ac_objext; then
25679 cat >conftest.$ac_ext <<_ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h. */
25685 $ac_includes_default
25686 typedef int * ac__type_sizeof_;
25690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25697 rm -f conftest.$ac_objext
25698 if { (ac_try="$ac_compile"
25699 case "(($ac_try" in
25700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701 *) ac_try_echo=$ac_try;;
25703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25704 (eval "$ac_compile") 2>conftest.er1
25706 grep -v '^ *+' conftest.er1 >conftest.err
25708 cat conftest.err >&5
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); } && {
25711 test -z "$ac_c_werror_flag" ||
25712 test ! -s conftest.err
25713 } && test -s conftest.$ac_objext; then
25714 ac_hi=$ac_mid; break
25716 echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25719 ac_lo=`expr $ac_mid + 1`
25720 if test $ac_lo -le $ac_mid; then
25724 ac_mid=`expr 2 '*' $ac_mid + 1`
25727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25730 echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25733 cat >conftest.$ac_ext <<_ACEOF
25736 cat confdefs.h >>conftest.$ac_ext
25737 cat >>conftest.$ac_ext <<_ACEOF
25738 /* end confdefs.h. */
25739 $ac_includes_default
25740 typedef int * ac__type_sizeof_;
25744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25751 rm -f conftest.$ac_objext
25752 if { (ac_try="$ac_compile"
25753 case "(($ac_try" in
25754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25755 *) ac_try_echo=$ac_try;;
25757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25758 (eval "$ac_compile") 2>conftest.er1
25760 grep -v '^ *+' conftest.er1 >conftest.err
25762 cat conftest.err >&5
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); } && {
25765 test -z "$ac_c_werror_flag" ||
25766 test ! -s conftest.err
25767 } && test -s conftest.$ac_objext; then
25770 cat >conftest.$ac_ext <<_ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 $ac_includes_default
25777 typedef int * ac__type_sizeof_;
25781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25788 rm -f conftest.$ac_objext
25789 if { (ac_try="$ac_compile"
25790 case "(($ac_try" in
25791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25792 *) ac_try_echo=$ac_try;;
25794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25795 (eval "$ac_compile") 2>conftest.er1
25797 grep -v '^ *+' conftest.er1 >conftest.err
25799 cat conftest.err >&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); } && {
25802 test -z "$ac_c_werror_flag" ||
25803 test ! -s conftest.err
25804 } && test -s conftest.$ac_objext; then
25805 ac_lo=$ac_mid; break
25807 echo "$as_me: failed program was:" >&5
25808 sed 's/^/| /' conftest.$ac_ext >&5
25810 ac_hi=`expr '(' $ac_mid ')' - 1`
25811 if test $ac_mid -le $ac_hi; then
25815 ac_mid=`expr 2 '*' $ac_mid`
25818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25821 echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831 # Binary search between lo and hi bounds.
25832 while test "x$ac_lo" != "x$ac_hi"; do
25833 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25834 cat >conftest.$ac_ext <<_ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h. */
25840 $ac_includes_default
25841 typedef int * ac__type_sizeof_;
25845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25852 rm -f conftest.$ac_objext
25853 if { (ac_try="$ac_compile"
25854 case "(($ac_try" in
25855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856 *) ac_try_echo=$ac_try;;
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859 (eval "$ac_compile") 2>conftest.er1
25861 grep -v '^ *+' conftest.er1 >conftest.err
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } && {
25866 test -z "$ac_c_werror_flag" ||
25867 test ! -s conftest.err
25868 } && test -s conftest.$ac_objext; then
25871 echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25874 ac_lo=`expr '(' $ac_mid ')' + 1`
25877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25880 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25881 '') if test "$ac_cv_type_int_p" = yes; then
25882 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25883 See \`config.log' for more details." >&5
25884 echo "$as_me: error: cannot compute sizeof (int *)
25885 See \`config.log' for more details." >&2;}
25886 { (exit 77); exit 77; }; }
25888 ac_cv_sizeof_int_p=0
25892 cat >conftest.$ac_ext <<_ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h. */
25898 $ac_includes_default
25899 typedef int * ac__type_sizeof_;
25900 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25901 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25903 #include <stdlib.h>
25908 FILE *f = fopen ("conftest.val", "w");
25911 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25913 long int i = longval ();
25914 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25916 fprintf (f, "%ld\n", i);
25920 unsigned long int i = ulongval ();
25921 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25923 fprintf (f, "%lu\n", i);
25925 return ferror (f) || fclose (f) != 0;
25931 rm -f conftest$ac_exeext
25932 if { (ac_try="$ac_link"
25933 case "(($ac_try" in
25934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25935 *) ac_try_echo=$ac_try;;
25937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25938 (eval "$ac_link") 2>&5
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25942 { (case "(($ac_try" in
25943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944 *) ac_try_echo=$ac_try;;
25946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25947 (eval "$ac_try") 2>&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; }; then
25951 ac_cv_sizeof_int_p=`cat conftest.val`
25953 echo "$as_me: program exited with status $ac_status" >&5
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25957 ( exit $ac_status )
25958 if test "$ac_cv_type_int_p" = yes; then
25959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25960 See \`config.log' for more details." >&5
25961 echo "$as_me: error: cannot compute sizeof (int *)
25962 See \`config.log' for more details." >&2;}
25963 { (exit 77); exit 77; }; }
25965 ac_cv_sizeof_int_p=0
25968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25972 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25973 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25977 cat >>confdefs.h <<_ACEOF
25978 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25983 # Check for sys/types.h types
25984 { echo "$as_me:$LINENO: checking for u_int type" >&5
25985 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25986 if test "${ac_cv_have_u_int+set}" = set; then
25987 echo $ECHO_N "(cached) $ECHO_C" >&6
25990 cat >conftest.$ac_ext <<_ACEOF
25993 cat confdefs.h >>conftest.$ac_ext
25994 cat >>conftest.$ac_ext <<_ACEOF
25995 /* end confdefs.h. */
25996 #include <sys/types.h>
26005 rm -f conftest.$ac_objext
26006 if { (ac_try="$ac_compile"
26007 case "(($ac_try" in
26008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009 *) ac_try_echo=$ac_try;;
26011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26012 (eval "$ac_compile") 2>conftest.er1
26014 grep -v '^ *+' conftest.er1 >conftest.err
26016 cat conftest.err >&5
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } && {
26019 test -z "$ac_c_werror_flag" ||
26020 test ! -s conftest.err
26021 } && test -s conftest.$ac_objext; then
26022 ac_cv_have_u_int="yes"
26024 echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26027 ac_cv_have_u_int="no"
26031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26034 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26035 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26036 if test "x$ac_cv_have_u_int" = "xyes" ; then
26037 cat >>confdefs.h <<\_ACEOF
26038 #define HAVE_U_INT 1
26044 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26045 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26046 if test "${ac_cv_have_intmax_t+set}" = set; then
26047 echo $ECHO_N "(cached) $ECHO_C" >&6
26050 cat >conftest.$ac_ext <<_ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26056 #include <sys/types.h>
26065 rm -f conftest.$ac_objext
26066 if { (ac_try="$ac_compile"
26067 case "(($ac_try" in
26068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26069 *) ac_try_echo=$ac_try;;
26071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26072 (eval "$ac_compile") 2>conftest.er1
26074 grep -v '^ *+' conftest.er1 >conftest.err
26076 cat conftest.err >&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); } && {
26079 test -z "$ac_c_werror_flag" ||
26080 test ! -s conftest.err
26081 } && test -s conftest.$ac_objext; then
26082 ac_cv_have_intmax_t="yes"
26084 echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26088 cat >conftest.$ac_ext <<_ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h. */
26094 #include <stdint.h>
26103 rm -f conftest.$ac_objext
26104 if { (ac_try="$ac_compile"
26105 case "(($ac_try" in
26106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26107 *) ac_try_echo=$ac_try;;
26109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26110 (eval "$ac_compile") 2>conftest.er1
26112 grep -v '^ *+' conftest.er1 >conftest.err
26114 cat conftest.err >&5
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } && {
26117 test -z "$ac_c_werror_flag" ||
26118 test ! -s conftest.err
26119 } && test -s conftest.$ac_objext; then
26120 ac_cv_have_intmax_t="yes"
26122 echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26125 ac_cv_have_intmax_t="no"
26129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26138 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26139 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26140 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26141 cat >>confdefs.h <<\_ACEOF
26142 #define HAVE_INTMAX_T 1
26149 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26150 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26151 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26152 echo $ECHO_N "(cached) $ECHO_C" >&6
26155 cat >conftest.$ac_ext <<_ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h. */
26161 #include <sys/types.h>
26165 u_intmax_t a; a = 1;
26170 rm -f conftest.$ac_objext
26171 if { (ac_try="$ac_compile"
26172 case "(($ac_try" in
26173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26174 *) ac_try_echo=$ac_try;;
26176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26177 (eval "$ac_compile") 2>conftest.er1
26179 grep -v '^ *+' conftest.er1 >conftest.err
26181 cat conftest.err >&5
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); } && {
26184 test -z "$ac_c_werror_flag" ||
26185 test ! -s conftest.err
26186 } && test -s conftest.$ac_objext; then
26187 ac_cv_have_u_intmax_t="yes"
26189 echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26193 cat >conftest.$ac_ext <<_ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h. */
26199 #include <stdint.h>
26203 u_intmax_t a; a = 1;
26208 rm -f conftest.$ac_objext
26209 if { (ac_try="$ac_compile"
26210 case "(($ac_try" in
26211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26212 *) ac_try_echo=$ac_try;;
26214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26215 (eval "$ac_compile") 2>conftest.er1
26217 grep -v '^ *+' conftest.er1 >conftest.err
26219 cat conftest.err >&5
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); } && {
26222 test -z "$ac_c_werror_flag" ||
26223 test ! -s conftest.err
26224 } && test -s conftest.$ac_objext; then
26225 ac_cv_have_u_intmax_t="yes"
26227 echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26230 ac_cv_have_u_intmax_t="no"
26234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26242 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26243 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26244 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26245 cat >>confdefs.h <<\_ACEOF
26246 #define HAVE_U_INTMAX_T 1
26253 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26254 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26255 if test "${ac_cv_have_intxx_t+set}" = set; then
26256 echo $ECHO_N "(cached) $ECHO_C" >&6
26259 cat >conftest.$ac_ext <<_ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h. */
26265 #include <sys/types.h>
26269 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26274 rm -f conftest.$ac_objext
26275 if { (ac_try="$ac_compile"
26276 case "(($ac_try" in
26277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26278 *) ac_try_echo=$ac_try;;
26280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26281 (eval "$ac_compile") 2>conftest.er1
26283 grep -v '^ *+' conftest.er1 >conftest.err
26285 cat conftest.err >&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); } && {
26288 test -z "$ac_c_werror_flag" ||
26289 test ! -s conftest.err
26290 } && test -s conftest.$ac_objext; then
26291 ac_cv_have_intxx_t="yes"
26293 echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26296 ac_cv_have_intxx_t="no"
26300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26304 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26305 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26306 cat >>confdefs.h <<\_ACEOF
26307 #define HAVE_INTXX_T 1
26313 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26314 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26315 if test "${ac_cv_have_int64_t+set}" = set; then
26316 echo $ECHO_N "(cached) $ECHO_C" >&6
26319 cat >conftest.$ac_ext <<_ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325 #include <sys/types.h>
26334 rm -f conftest.$ac_objext
26335 if { (ac_try="$ac_compile"
26336 case "(($ac_try" in
26337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26338 *) ac_try_echo=$ac_try;;
26340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26341 (eval "$ac_compile") 2>conftest.er1
26343 grep -v '^ *+' conftest.er1 >conftest.err
26345 cat conftest.err >&5
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); } && {
26348 test -z "$ac_c_werror_flag" ||
26349 test ! -s conftest.err
26350 } && test -s conftest.$ac_objext; then
26351 ac_cv_have_int64_t="yes"
26353 echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26356 ac_cv_have_int64_t="no"
26360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26363 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26364 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26365 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26366 cat >>confdefs.h <<\_ACEOF
26367 #define HAVE_INT64_T 1
26373 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26374 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26375 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
26379 cat >conftest.$ac_ext <<_ACEOF
26382 cat confdefs.h >>conftest.$ac_ext
26383 cat >>conftest.$ac_ext <<_ACEOF
26384 /* end confdefs.h. */
26385 #include <sys/types.h>
26389 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26394 rm -f conftest.$ac_objext
26395 if { (ac_try="$ac_compile"
26396 case "(($ac_try" in
26397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398 *) ac_try_echo=$ac_try;;
26400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401 (eval "$ac_compile") 2>conftest.er1
26403 grep -v '^ *+' conftest.er1 >conftest.err
26405 cat conftest.err >&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); } && {
26408 test -z "$ac_c_werror_flag" ||
26409 test ! -s conftest.err
26410 } && test -s conftest.$ac_objext; then
26411 ac_cv_have_u_intxx_t="yes"
26413 echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26416 ac_cv_have_u_intxx_t="no"
26420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26423 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26424 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26425 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26426 cat >>confdefs.h <<\_ACEOF
26427 #define HAVE_U_INTXX_T 1
26433 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26434 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26435 if test "${ac_cv_have_u_int64_t+set}" = set; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 cat >conftest.$ac_ext <<_ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26445 #include <sys/types.h>
26449 u_int64_t a; a = 1;
26454 rm -f conftest.$ac_objext
26455 if { (ac_try="$ac_compile"
26456 case "(($ac_try" in
26457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26458 *) ac_try_echo=$ac_try;;
26460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26461 (eval "$ac_compile") 2>conftest.er1
26463 grep -v '^ *+' conftest.er1 >conftest.err
26465 cat conftest.err >&5
26466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467 (exit $ac_status); } && {
26468 test -z "$ac_c_werror_flag" ||
26469 test ! -s conftest.err
26470 } && test -s conftest.$ac_objext; then
26471 ac_cv_have_u_int64_t="yes"
26473 echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26476 ac_cv_have_u_int64_t="no"
26480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26483 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26484 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26485 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26486 cat >>confdefs.h <<\_ACEOF
26487 #define HAVE_U_INT64_T 1
26493 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26494 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26496 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26497 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26498 cat >conftest.$ac_ext <<_ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h. */
26504 #include <sys/bitypes.h>
26508 int8_t a; int16_t b; int32_t c;
26509 u_int8_t e; u_int16_t f; u_int32_t g;
26510 a = b = c = e = f = g = 1;
26515 rm -f conftest.$ac_objext
26516 if { (ac_try="$ac_compile"
26517 case "(($ac_try" in
26518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26519 *) ac_try_echo=$ac_try;;
26521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26522 (eval "$ac_compile") 2>conftest.er1
26524 grep -v '^ *+' conftest.er1 >conftest.err
26526 cat conftest.err >&5
26527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528 (exit $ac_status); } && {
26529 test -z "$ac_c_werror_flag" ||
26530 test ! -s conftest.err
26531 } && test -s conftest.$ac_objext; then
26532 cat >>confdefs.h <<\_ACEOF
26533 #define HAVE_U_INTXX_T 1
26536 cat >>confdefs.h <<\_ACEOF
26537 #define HAVE_INTXX_T 1
26540 cat >>confdefs.h <<\_ACEOF
26541 #define HAVE_SYS_BITYPES_H 1
26544 { echo "$as_me:$LINENO: result: yes" >&5
26545 echo "${ECHO_T}yes" >&6; }
26547 echo "$as_me: failed program was:" >&5
26548 sed 's/^/| /' conftest.$ac_ext >&5
26550 { echo "$as_me:$LINENO: result: no" >&5
26551 echo "${ECHO_T}no" >&6; }
26555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26558 if test -z "$have_u_intxx_t" ; then
26559 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26560 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26561 if test "${ac_cv_have_uintxx_t+set}" = set; then
26562 echo $ECHO_N "(cached) $ECHO_C" >&6
26565 cat >conftest.$ac_ext <<_ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h. */
26571 #include <sys/types.h>
26575 uint8_t a; uint16_t b;
26576 uint32_t c; a = b = c = 1;
26581 rm -f conftest.$ac_objext
26582 if { (ac_try="$ac_compile"
26583 case "(($ac_try" in
26584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585 *) ac_try_echo=$ac_try;;
26587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26588 (eval "$ac_compile") 2>conftest.er1
26590 grep -v '^ *+' conftest.er1 >conftest.err
26592 cat conftest.err >&5
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); } && {
26595 test -z "$ac_c_werror_flag" ||
26596 test ! -s conftest.err
26597 } && test -s conftest.$ac_objext; then
26598 ac_cv_have_uintxx_t="yes"
26600 echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26603 ac_cv_have_uintxx_t="no"
26607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26610 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26611 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26612 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26613 cat >>confdefs.h <<\_ACEOF
26614 #define HAVE_UINTXX_T 1
26620 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26621 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26623 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26624 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26625 cat >conftest.$ac_ext <<_ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h. */
26631 #include <sys/bitypes.h>
26635 int64_t a; u_int64_t b;
26641 rm -f conftest.$ac_objext
26642 if { (ac_try="$ac_compile"
26643 case "(($ac_try" in
26644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645 *) ac_try_echo=$ac_try;;
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648 (eval "$ac_compile") 2>conftest.er1
26650 grep -v '^ *+' conftest.er1 >conftest.err
26652 cat conftest.err >&5
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); } && {
26655 test -z "$ac_c_werror_flag" ||
26656 test ! -s conftest.err
26657 } && test -s conftest.$ac_objext; then
26658 cat >>confdefs.h <<\_ACEOF
26659 #define HAVE_U_INT64_T 1
26662 cat >>confdefs.h <<\_ACEOF
26663 #define HAVE_INT64_T 1
26666 { echo "$as_me:$LINENO: result: yes" >&5
26667 echo "${ECHO_T}yes" >&6; }
26669 echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26672 { echo "$as_me:$LINENO: result: no" >&5
26673 echo "${ECHO_T}no" >&6; }
26677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26680 if (test -z "$have_uintxx_t" && \
26681 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26683 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26684 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26685 cat >conftest.$ac_ext <<_ACEOF
26688 cat confdefs.h >>conftest.$ac_ext
26689 cat >>conftest.$ac_ext <<_ACEOF
26690 /* end confdefs.h. */
26691 #include <sys/bitypes.h>
26695 uint8_t a; uint16_t b;
26696 uint32_t c; a = b = c = 1;
26701 rm -f conftest.$ac_objext
26702 if { (ac_try="$ac_compile"
26703 case "(($ac_try" in
26704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708 (eval "$ac_compile") 2>conftest.er1
26710 grep -v '^ *+' conftest.er1 >conftest.err
26712 cat conftest.err >&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } && {
26715 test -z "$ac_c_werror_flag" ||
26716 test ! -s conftest.err
26717 } && test -s conftest.$ac_objext; then
26718 cat >>confdefs.h <<\_ACEOF
26719 #define HAVE_UINTXX_T 1
26722 { echo "$as_me:$LINENO: result: yes" >&5
26723 echo "${ECHO_T}yes" >&6; }
26725 echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26728 { echo "$as_me:$LINENO: result: no" >&5
26729 echo "${ECHO_T}no" >&6; }
26733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26773 echo $ECHO_N "(cached) $ECHO_C" >&6
26775 cat >conftest.$ac_ext <<_ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h. */
26781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26783 #define $ac_func innocuous_$ac_func
26785 /* System header to define __stub macros and hopefully few prototypes,
26786 which can conflict with char $ac_func (); below.
26787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26788 <limits.h> exists even on freestanding compilers. */
26791 # include <limits.h>
26793 # include <assert.h>
26798 /* Override any GCC internal prototype to avoid an error.
26799 Use char because int might match the return type of a GCC
26800 builtin and then its argument prototype would still apply. */
26805 /* The GNU C library defines this for functions which it implements
26806 to always fail with ENOSYS. Some functions are actually named
26807 something starting with __ and the normal name is an alias. */
26808 #if defined __stub_$ac_func || defined __stub___$ac_func
26815 return $ac_func ();
26820 rm -f conftest.$ac_objext conftest$ac_exeext
26821 if { (ac_try="$ac_link"
26822 case "(($ac_try" in
26823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824 *) ac_try_echo=$ac_try;;
26826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26827 (eval "$ac_link") 2>conftest.er1
26829 grep -v '^ *+' conftest.er1 >conftest.err
26831 cat conftest.err >&5
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); } && {
26834 test -z "$ac_c_werror_flag" ||
26835 test ! -s conftest.err
26836 } && test -s conftest$ac_exeext &&
26837 $as_test_x conftest$ac_exeext; then
26838 eval "$as_ac_var=yes"
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26843 eval "$as_ac_var=no"
26846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26847 conftest$ac_exeext conftest.$ac_ext
26849 ac_res=`eval echo '${'$as_ac_var'}'`
26850 { echo "$as_me:$LINENO: result: $ac_res" >&5
26851 echo "${ECHO_T}$ac_res" >&6; }
26852 if test `eval echo '${'$as_ac_var'}'` = yes; then
26853 cat >>confdefs.h <<_ACEOF
26854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26858 echo 'configure: cannot find needed function.'; exit 1
26865 for ac_func in fchdir
26867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26871 echo $ECHO_N "(cached) $ECHO_C" >&6
26873 cat >conftest.$ac_ext <<_ACEOF
26876 cat confdefs.h >>conftest.$ac_ext
26877 cat >>conftest.$ac_ext <<_ACEOF
26878 /* end confdefs.h. */
26879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26881 #define $ac_func innocuous_$ac_func
26883 /* System header to define __stub macros and hopefully few prototypes,
26884 which can conflict with char $ac_func (); below.
26885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26886 <limits.h> exists even on freestanding compilers. */
26889 # include <limits.h>
26891 # include <assert.h>
26896 /* Override any GCC internal prototype to avoid an error.
26897 Use char because int might match the return type of a GCC
26898 builtin and then its argument prototype would still apply. */
26903 /* The GNU C library defines this for functions which it implements
26904 to always fail with ENOSYS. Some functions are actually named
26905 something starting with __ and the normal name is an alias. */
26906 #if defined __stub_$ac_func || defined __stub___$ac_func
26913 return $ac_func ();
26918 rm -f conftest.$ac_objext conftest$ac_exeext
26919 if { (ac_try="$ac_link"
26920 case "(($ac_try" in
26921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922 *) ac_try_echo=$ac_try;;
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925 (eval "$ac_link") 2>conftest.er1
26927 grep -v '^ *+' conftest.er1 >conftest.err
26929 cat conftest.err >&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } && {
26932 test -z "$ac_c_werror_flag" ||
26933 test ! -s conftest.err
26934 } && test -s conftest$ac_exeext &&
26935 $as_test_x conftest$ac_exeext; then
26936 eval "$as_ac_var=yes"
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26941 eval "$as_ac_var=no"
26944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26945 conftest$ac_exeext conftest.$ac_ext
26947 ac_res=`eval echo '${'$as_ac_var'}'`
26948 { echo "$as_me:$LINENO: result: $ac_res" >&5
26949 echo "${ECHO_T}$ac_res" >&6; }
26950 if test `eval echo '${'$as_ac_var'}'` = yes; then
26951 cat >>confdefs.h <<_ACEOF
26952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26954 cat >>confdefs.h <<\_ACEOF
26955 #define HAVE_FCHDIR 1
26962 for ac_func in strtoll
26964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26968 echo $ECHO_N "(cached) $ECHO_C" >&6
26970 cat >conftest.$ac_ext <<_ACEOF
26973 cat confdefs.h >>conftest.$ac_ext
26974 cat >>conftest.$ac_ext <<_ACEOF
26975 /* end confdefs.h. */
26976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26978 #define $ac_func innocuous_$ac_func
26980 /* System header to define __stub macros and hopefully few prototypes,
26981 which can conflict with char $ac_func (); below.
26982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26983 <limits.h> exists even on freestanding compilers. */
26986 # include <limits.h>
26988 # include <assert.h>
26993 /* Override any GCC internal prototype to avoid an error.
26994 Use char because int might match the return type of a GCC
26995 builtin and then its argument prototype would still apply. */
27000 /* The GNU C library defines this for functions which it implements
27001 to always fail with ENOSYS. Some functions are actually named
27002 something starting with __ and the normal name is an alias. */
27003 #if defined __stub_$ac_func || defined __stub___$ac_func
27010 return $ac_func ();
27015 rm -f conftest.$ac_objext conftest$ac_exeext
27016 if { (ac_try="$ac_link"
27017 case "(($ac_try" in
27018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019 *) ac_try_echo=$ac_try;;
27021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022 (eval "$ac_link") 2>conftest.er1
27024 grep -v '^ *+' conftest.er1 >conftest.err
27026 cat conftest.err >&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } && {
27029 test -z "$ac_c_werror_flag" ||
27030 test ! -s conftest.err
27031 } && test -s conftest$ac_exeext &&
27032 $as_test_x conftest$ac_exeext; then
27033 eval "$as_ac_var=yes"
27035 echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27038 eval "$as_ac_var=no"
27041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27042 conftest$ac_exeext conftest.$ac_ext
27044 ac_res=`eval echo '${'$as_ac_var'}'`
27045 { echo "$as_me:$LINENO: result: $ac_res" >&5
27046 echo "${ECHO_T}$ac_res" >&6; }
27047 if test `eval echo '${'$as_ac_var'}'` = yes; then
27048 cat >>confdefs.h <<_ACEOF
27049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27051 cat >>confdefs.h <<\_ACEOF
27052 #define HAVE_STRTOLL 1
27059 for ac_func in posix_fadvise
27061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27065 echo $ECHO_N "(cached) $ECHO_C" >&6
27067 cat >conftest.$ac_ext <<_ACEOF
27070 cat confdefs.h >>conftest.$ac_ext
27071 cat >>conftest.$ac_ext <<_ACEOF
27072 /* end confdefs.h. */
27073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27075 #define $ac_func innocuous_$ac_func
27077 /* System header to define __stub macros and hopefully few prototypes,
27078 which can conflict with char $ac_func (); below.
27079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27080 <limits.h> exists even on freestanding compilers. */
27083 # include <limits.h>
27085 # include <assert.h>
27090 /* Override any GCC internal prototype to avoid an error.
27091 Use char because int might match the return type of a GCC
27092 builtin and then its argument prototype would still apply. */
27097 /* The GNU C library defines this for functions which it implements
27098 to always fail with ENOSYS. Some functions are actually named
27099 something starting with __ and the normal name is an alias. */
27100 #if defined __stub_$ac_func || defined __stub___$ac_func
27107 return $ac_func ();
27112 rm -f conftest.$ac_objext conftest$ac_exeext
27113 if { (ac_try="$ac_link"
27114 case "(($ac_try" in
27115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116 *) ac_try_echo=$ac_try;;
27118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27119 (eval "$ac_link") 2>conftest.er1
27121 grep -v '^ *+' conftest.er1 >conftest.err
27123 cat conftest.err >&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } && {
27126 test -z "$ac_c_werror_flag" ||
27127 test ! -s conftest.err
27128 } && test -s conftest$ac_exeext &&
27129 $as_test_x conftest$ac_exeext; then
27130 eval "$as_ac_var=yes"
27132 echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27135 eval "$as_ac_var=no"
27138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27139 conftest$ac_exeext conftest.$ac_ext
27141 ac_res=`eval echo '${'$as_ac_var'}'`
27142 { echo "$as_me:$LINENO: result: $ac_res" >&5
27143 echo "${ECHO_T}$ac_res" >&6; }
27144 if test `eval echo '${'$as_ac_var'}'` = yes; then
27145 cat >>confdefs.h <<_ACEOF
27146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27153 for ac_func in fdatasync
27155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27159 echo $ECHO_N "(cached) $ECHO_C" >&6
27161 cat >conftest.$ac_ext <<_ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h. */
27167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27169 #define $ac_func innocuous_$ac_func
27171 /* System header to define __stub macros and hopefully few prototypes,
27172 which can conflict with char $ac_func (); below.
27173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27174 <limits.h> exists even on freestanding compilers. */
27177 # include <limits.h>
27179 # include <assert.h>
27184 /* Override any GCC internal prototype to avoid an error.
27185 Use char because int might match the return type of a GCC
27186 builtin and then its argument prototype would still apply. */
27191 /* The GNU C library defines this for functions which it implements
27192 to always fail with ENOSYS. Some functions are actually named
27193 something starting with __ and the normal name is an alias. */
27194 #if defined __stub_$ac_func || defined __stub___$ac_func
27201 return $ac_func ();
27206 rm -f conftest.$ac_objext conftest$ac_exeext
27207 if { (ac_try="$ac_link"
27208 case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213 (eval "$ac_link") 2>conftest.er1
27215 grep -v '^ *+' conftest.er1 >conftest.err
27217 cat conftest.err >&5
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } && {
27220 test -z "$ac_c_werror_flag" ||
27221 test ! -s conftest.err
27222 } && test -s conftest$ac_exeext &&
27223 $as_test_x conftest$ac_exeext; then
27224 eval "$as_ac_var=yes"
27226 echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27229 eval "$as_ac_var=no"
27232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27233 conftest$ac_exeext conftest.$ac_ext
27235 ac_res=`eval echo '${'$as_ac_var'}'`
27236 { echo "$as_me:$LINENO: result: $ac_res" >&5
27237 echo "${ECHO_T}$ac_res" >&6; }
27238 if test `eval echo '${'$as_ac_var'}'` = yes; then
27239 cat >>confdefs.h <<_ACEOF
27240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27248 for ac_func in chflags
27250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27254 echo $ECHO_N "(cached) $ECHO_C" >&6
27256 cat >conftest.$ac_ext <<_ACEOF
27259 cat confdefs.h >>conftest.$ac_ext
27260 cat >>conftest.$ac_ext <<_ACEOF
27261 /* end confdefs.h. */
27262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27264 #define $ac_func innocuous_$ac_func
27266 /* System header to define __stub macros and hopefully few prototypes,
27267 which can conflict with char $ac_func (); below.
27268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27269 <limits.h> exists even on freestanding compilers. */
27272 # include <limits.h>
27274 # include <assert.h>
27279 /* Override any GCC internal prototype to avoid an error.
27280 Use char because int might match the return type of a GCC
27281 builtin and then its argument prototype would still apply. */
27286 /* The GNU C library defines this for functions which it implements
27287 to always fail with ENOSYS. Some functions are actually named
27288 something starting with __ and the normal name is an alias. */
27289 #if defined __stub_$ac_func || defined __stub___$ac_func
27296 return $ac_func ();
27301 rm -f conftest.$ac_objext conftest$ac_exeext
27302 if { (ac_try="$ac_link"
27303 case "(($ac_try" in
27304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305 *) ac_try_echo=$ac_try;;
27307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308 (eval "$ac_link") 2>conftest.er1
27310 grep -v '^ *+' conftest.er1 >conftest.err
27312 cat conftest.err >&5
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 (exit $ac_status); } && {
27315 test -z "$ac_c_werror_flag" ||
27316 test ! -s conftest.err
27317 } && test -s conftest$ac_exeext &&
27318 $as_test_x conftest$ac_exeext; then
27319 eval "$as_ac_var=yes"
27321 echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27324 eval "$as_ac_var=no"
27327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27328 conftest$ac_exeext conftest.$ac_ext
27330 ac_res=`eval echo '${'$as_ac_var'}'`
27331 { echo "$as_me:$LINENO: result: $ac_res" >&5
27332 echo "${ECHO_T}$ac_res" >&6; }
27333 if test `eval echo '${'$as_ac_var'}'` = yes; then
27334 cat >>confdefs.h <<_ACEOF
27335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27346 for ac_func in snprintf vsnprintf gethostid fseeko
27348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27352 echo $ECHO_N "(cached) $ECHO_C" >&6
27354 cat >conftest.$ac_ext <<_ACEOF
27357 cat confdefs.h >>conftest.$ac_ext
27358 cat >>conftest.$ac_ext <<_ACEOF
27359 /* end confdefs.h. */
27360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27362 #define $ac_func innocuous_$ac_func
27364 /* System header to define __stub macros and hopefully few prototypes,
27365 which can conflict with char $ac_func (); below.
27366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27367 <limits.h> exists even on freestanding compilers. */
27370 # include <limits.h>
27372 # include <assert.h>
27377 /* Override any GCC internal prototype to avoid an error.
27378 Use char because int might match the return type of a GCC
27379 builtin and then its argument prototype would still apply. */
27384 /* The GNU C library defines this for functions which it implements
27385 to always fail with ENOSYS. Some functions are actually named
27386 something starting with __ and the normal name is an alias. */
27387 #if defined __stub_$ac_func || defined __stub___$ac_func
27394 return $ac_func ();
27399 rm -f conftest.$ac_objext conftest$ac_exeext
27400 if { (ac_try="$ac_link"
27401 case "(($ac_try" in
27402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406 (eval "$ac_link") 2>conftest.er1
27408 grep -v '^ *+' conftest.er1 >conftest.err
27410 cat conftest.err >&5
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); } && {
27413 test -z "$ac_c_werror_flag" ||
27414 test ! -s conftest.err
27415 } && test -s conftest$ac_exeext &&
27416 $as_test_x conftest$ac_exeext; then
27417 eval "$as_ac_var=yes"
27419 echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27422 eval "$as_ac_var=no"
27425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27426 conftest$ac_exeext conftest.$ac_ext
27428 ac_res=`eval echo '${'$as_ac_var'}'`
27429 { echo "$as_me:$LINENO: result: $ac_res" >&5
27430 echo "${ECHO_T}$ac_res" >&6; }
27431 if test `eval echo '${'$as_ac_var'}'` = yes; then
27432 cat >>confdefs.h <<_ACEOF
27433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27440 { echo "$as_me:$LINENO: checking for va_copy" >&5
27441 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27442 if test "${ba_cv_va_copy+set}" = set; then
27443 echo $ECHO_N "(cached) $ECHO_C" >&6
27445 cat >conftest.$ac_ext <<_ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h. */
27452 #include <stdarg.h>
27453 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27454 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27459 call_use_va_copy(1,2,3)
27464 rm -f conftest.$ac_objext conftest$ac_exeext
27465 if { (ac_try="$ac_link"
27466 case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_link") 2>conftest.er1
27473 grep -v '^ *+' conftest.er1 >conftest.err
27475 cat conftest.err >&5
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); } && {
27478 test -z "$ac_c_werror_flag" ||
27479 test ! -s conftest.err
27480 } && test -s conftest$ac_exeext &&
27481 $as_test_x conftest$ac_exeext; then
27484 echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27491 conftest$ac_exeext conftest.$ac_ext
27493 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27494 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27495 test $ba_cv_va_copy = yes &&
27496 cat >>confdefs.h <<\_ACEOF
27497 #define HAVE_VA_COPY 1
27506 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27512 echo $ECHO_N "(cached) $ECHO_C" >&6
27514 cat >conftest.$ac_ext <<_ACEOF
27517 cat confdefs.h >>conftest.$ac_ext
27518 cat >>conftest.$ac_ext <<_ACEOF
27519 /* end confdefs.h. */
27520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27522 #define $ac_func innocuous_$ac_func
27524 /* System header to define __stub macros and hopefully few prototypes,
27525 which can conflict with char $ac_func (); below.
27526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27527 <limits.h> exists even on freestanding compilers. */
27530 # include <limits.h>
27532 # include <assert.h>
27537 /* Override any GCC internal prototype to avoid an error.
27538 Use char because int might match the return type of a GCC
27539 builtin and then its argument prototype would still apply. */
27544 /* The GNU C library defines this for functions which it implements
27545 to always fail with ENOSYS. Some functions are actually named
27546 something starting with __ and the normal name is an alias. */
27547 #if defined __stub_$ac_func || defined __stub___$ac_func
27554 return $ac_func ();
27559 rm -f conftest.$ac_objext conftest$ac_exeext
27560 if { (ac_try="$ac_link"
27561 case "(($ac_try" in
27562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563 *) ac_try_echo=$ac_try;;
27565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566 (eval "$ac_link") 2>conftest.er1
27568 grep -v '^ *+' conftest.er1 >conftest.err
27570 cat conftest.err >&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } && {
27573 test -z "$ac_c_werror_flag" ||
27574 test ! -s conftest.err
27575 } && test -s conftest$ac_exeext &&
27576 $as_test_x conftest$ac_exeext; then
27577 eval "$as_ac_var=yes"
27579 echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27582 eval "$as_ac_var=no"
27585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27586 conftest$ac_exeext conftest.$ac_ext
27588 ac_res=`eval echo '${'$as_ac_var'}'`
27589 { echo "$as_me:$LINENO: result: $ac_res" >&5
27590 echo "${ECHO_T}$ac_res" >&6; }
27591 if test `eval echo '${'$as_ac_var'}'` = yes; then
27592 cat >>confdefs.h <<_ACEOF
27593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27600 # If resolver functions are not in libc check for -lnsl or -lresolv.
27601 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27602 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27603 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27604 echo $ECHO_N "(cached) $ECHO_C" >&6
27606 cat >conftest.$ac_ext <<_ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h. */
27612 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27614 #define gethostbyname_r innocuous_gethostbyname_r
27616 /* System header to define __stub macros and hopefully few prototypes,
27617 which can conflict with char gethostbyname_r (); below.
27618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27619 <limits.h> exists even on freestanding compilers. */
27622 # include <limits.h>
27624 # include <assert.h>
27627 #undef gethostbyname_r
27629 /* Override any GCC internal prototype to avoid an error.
27630 Use char because int might match the return type of a GCC
27631 builtin and then its argument prototype would still apply. */
27635 char gethostbyname_r ();
27636 /* The GNU C library defines this for functions which it implements
27637 to always fail with ENOSYS. Some functions are actually named
27638 something starting with __ and the normal name is an alias. */
27639 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27646 return gethostbyname_r ();
27651 rm -f conftest.$ac_objext conftest$ac_exeext
27652 if { (ac_try="$ac_link"
27653 case "(($ac_try" in
27654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655 *) ac_try_echo=$ac_try;;
27657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658 (eval "$ac_link") 2>conftest.er1
27660 grep -v '^ *+' conftest.er1 >conftest.err
27662 cat conftest.err >&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); } && {
27665 test -z "$ac_c_werror_flag" ||
27666 test ! -s conftest.err
27667 } && test -s conftest$ac_exeext &&
27668 $as_test_x conftest$ac_exeext; then
27669 ac_cv_func_gethostbyname_r=yes
27671 echo "$as_me: failed program was:" >&5
27672 sed 's/^/| /' conftest.$ac_ext >&5
27674 ac_cv_func_gethostbyname_r=no
27677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27678 conftest$ac_exeext conftest.$ac_ext
27680 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27681 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27682 if test $ac_cv_func_gethostbyname_r = yes; then
27683 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27684 echo "${ECHO_T}using libc's resolver" >&6; }
27687 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27688 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27689 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27692 ac_check_lib_save_LIBS=$LIBS
27694 cat >conftest.$ac_ext <<_ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h. */
27701 /* Override any GCC internal prototype to avoid an error.
27702 Use char because int might match the return type of a GCC
27703 builtin and then its argument prototype would still apply. */
27707 char gethostbyname_r ();
27711 return gethostbyname_r ();
27716 rm -f conftest.$ac_objext conftest$ac_exeext
27717 if { (ac_try="$ac_link"
27718 case "(($ac_try" in
27719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720 *) ac_try_echo=$ac_try;;
27722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723 (eval "$ac_link") 2>conftest.er1
27725 grep -v '^ *+' conftest.er1 >conftest.err
27727 cat conftest.err >&5
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); } && {
27730 test -z "$ac_c_werror_flag" ||
27731 test ! -s conftest.err
27732 } && test -s conftest$ac_exeext &&
27733 $as_test_x conftest$ac_exeext; then
27734 ac_cv_lib_nsl_gethostbyname_r=yes
27736 echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27739 ac_cv_lib_nsl_gethostbyname_r=no
27742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27743 conftest$ac_exeext conftest.$ac_ext
27744 LIBS=$ac_check_lib_save_LIBS
27746 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27747 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27748 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27749 cat >>confdefs.h <<_ACEOF
27750 #define HAVE_LIBNSL 1
27758 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27759 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27760 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27761 echo $ECHO_N "(cached) $ECHO_C" >&6
27763 ac_check_lib_save_LIBS=$LIBS
27764 LIBS="-lresolv $LIBS"
27765 cat >conftest.$ac_ext <<_ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h. */
27772 /* Override any GCC internal prototype to avoid an error.
27773 Use char because int might match the return type of a GCC
27774 builtin and then its argument prototype would still apply. */
27778 char gethostbyname_r ();
27782 return gethostbyname_r ();
27787 rm -f conftest.$ac_objext conftest$ac_exeext
27788 if { (ac_try="$ac_link"
27789 case "(($ac_try" in
27790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791 *) ac_try_echo=$ac_try;;
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794 (eval "$ac_link") 2>conftest.er1
27796 grep -v '^ *+' conftest.er1 >conftest.err
27798 cat conftest.err >&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); } && {
27801 test -z "$ac_c_werror_flag" ||
27802 test ! -s conftest.err
27803 } && test -s conftest$ac_exeext &&
27804 $as_test_x conftest$ac_exeext; then
27805 ac_cv_lib_resolv_gethostbyname_r=yes
27807 echo "$as_me: failed program was:" >&5
27808 sed 's/^/| /' conftest.$ac_ext >&5
27810 ac_cv_lib_resolv_gethostbyname_r=no
27813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27814 conftest$ac_exeext conftest.$ac_ext
27815 LIBS=$ac_check_lib_save_LIBS
27817 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27818 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27819 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27820 cat >>confdefs.h <<_ACEOF
27821 #define HAVE_LIBRESOLV 1
27824 LIBS="-lresolv $LIBS"
27834 for ac_func in inet_pton
27836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27840 echo $ECHO_N "(cached) $ECHO_C" >&6
27842 cat >conftest.$ac_ext <<_ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h. */
27848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27850 #define $ac_func innocuous_$ac_func
27852 /* System header to define __stub macros and hopefully few prototypes,
27853 which can conflict with char $ac_func (); below.
27854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27855 <limits.h> exists even on freestanding compilers. */
27858 # include <limits.h>
27860 # include <assert.h>
27865 /* Override any GCC internal prototype to avoid an error.
27866 Use char because int might match the return type of a GCC
27867 builtin and then its argument prototype would still apply. */
27872 /* The GNU C library defines this for functions which it implements
27873 to always fail with ENOSYS. Some functions are actually named
27874 something starting with __ and the normal name is an alias. */
27875 #if defined __stub_$ac_func || defined __stub___$ac_func
27882 return $ac_func ();
27887 rm -f conftest.$ac_objext conftest$ac_exeext
27888 if { (ac_try="$ac_link"
27889 case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894 (eval "$ac_link") 2>conftest.er1
27896 grep -v '^ *+' conftest.er1 >conftest.err
27898 cat conftest.err >&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); } && {
27901 test -z "$ac_c_werror_flag" ||
27902 test ! -s conftest.err
27903 } && test -s conftest$ac_exeext &&
27904 $as_test_x conftest$ac_exeext; then
27905 eval "$as_ac_var=yes"
27907 echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27910 eval "$as_ac_var=no"
27913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27914 conftest$ac_exeext conftest.$ac_ext
27916 ac_res=`eval echo '${'$as_ac_var'}'`
27917 { echo "$as_me:$LINENO: result: $ac_res" >&5
27918 echo "${ECHO_T}$ac_res" >&6; }
27919 if test `eval echo '${'$as_ac_var'}'` = yes; then
27920 cat >>confdefs.h <<_ACEOF
27921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27923 cat >>confdefs.h <<\_ACEOF
27924 #define HAVE_INET_PTON 1
27931 for ac_func in inet_ntop
27933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27939 cat >conftest.$ac_ext <<_ACEOF
27942 cat confdefs.h >>conftest.$ac_ext
27943 cat >>conftest.$ac_ext <<_ACEOF
27944 /* end confdefs.h. */
27945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27947 #define $ac_func innocuous_$ac_func
27949 /* System header to define __stub macros and hopefully few prototypes,
27950 which can conflict with char $ac_func (); below.
27951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27952 <limits.h> exists even on freestanding compilers. */
27955 # include <limits.h>
27957 # include <assert.h>
27962 /* Override any GCC internal prototype to avoid an error.
27963 Use char because int might match the return type of a GCC
27964 builtin and then its argument prototype would still apply. */
27969 /* The GNU C library defines this for functions which it implements
27970 to always fail with ENOSYS. Some functions are actually named
27971 something starting with __ and the normal name is an alias. */
27972 #if defined __stub_$ac_func || defined __stub___$ac_func
27979 return $ac_func ();
27984 rm -f conftest.$ac_objext conftest$ac_exeext
27985 if { (ac_try="$ac_link"
27986 case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_link") 2>conftest.er1
27993 grep -v '^ *+' conftest.er1 >conftest.err
27995 cat conftest.err >&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); } && {
27998 test -z "$ac_c_werror_flag" ||
27999 test ! -s conftest.err
28000 } && test -s conftest$ac_exeext &&
28001 $as_test_x conftest$ac_exeext; then
28002 eval "$as_ac_var=yes"
28004 echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28007 eval "$as_ac_var=no"
28010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28011 conftest$ac_exeext conftest.$ac_ext
28013 ac_res=`eval echo '${'$as_ac_var'}'`
28014 { echo "$as_me:$LINENO: result: $ac_res" >&5
28015 echo "${ECHO_T}$ac_res" >&6; }
28016 if test `eval echo '${'$as_ac_var'}'` = yes; then
28017 cat >>confdefs.h <<_ACEOF
28018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28020 cat >>confdefs.h <<\_ACEOF
28021 #define HAVE_INET_NTOP 1
28028 for ac_func in gethostbyname2
28030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28034 echo $ECHO_N "(cached) $ECHO_C" >&6
28036 cat >conftest.$ac_ext <<_ACEOF
28039 cat confdefs.h >>conftest.$ac_ext
28040 cat >>conftest.$ac_ext <<_ACEOF
28041 /* end confdefs.h. */
28042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28044 #define $ac_func innocuous_$ac_func
28046 /* System header to define __stub macros and hopefully few prototypes,
28047 which can conflict with char $ac_func (); below.
28048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28049 <limits.h> exists even on freestanding compilers. */
28052 # include <limits.h>
28054 # include <assert.h>
28059 /* Override any GCC internal prototype to avoid an error.
28060 Use char because int might match the return type of a GCC
28061 builtin and then its argument prototype would still apply. */
28066 /* The GNU C library defines this for functions which it implements
28067 to always fail with ENOSYS. Some functions are actually named
28068 something starting with __ and the normal name is an alias. */
28069 #if defined __stub_$ac_func || defined __stub___$ac_func
28076 return $ac_func ();
28081 rm -f conftest.$ac_objext conftest$ac_exeext
28082 if { (ac_try="$ac_link"
28083 case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_link") 2>conftest.er1
28090 grep -v '^ *+' conftest.er1 >conftest.err
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); } && {
28095 test -z "$ac_c_werror_flag" ||
28096 test ! -s conftest.err
28097 } && test -s conftest$ac_exeext &&
28098 $as_test_x conftest$ac_exeext; then
28099 eval "$as_ac_var=yes"
28101 echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28104 eval "$as_ac_var=no"
28107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28108 conftest$ac_exeext conftest.$ac_ext
28110 ac_res=`eval echo '${'$as_ac_var'}'`
28111 { echo "$as_me:$LINENO: result: $ac_res" >&5
28112 echo "${ECHO_T}$ac_res" >&6; }
28113 if test `eval echo '${'$as_ac_var'}'` = yes; then
28114 cat >>confdefs.h <<_ACEOF
28115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28117 cat >>confdefs.h <<\_ACEOF
28118 #define HAVE_GETHOSTBYNAME2 1
28125 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28126 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28127 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28128 echo $ECHO_N "(cached) $ECHO_C" >&6
28130 cat >conftest.$ac_ext <<_ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h. */
28136 #include <sys/socket.h>
28140 struct sockaddr s; s.sa_len;
28145 rm -f conftest.$ac_objext
28146 if { (ac_try="$ac_compile"
28147 case "(($ac_try" in
28148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149 *) ac_try_echo=$ac_try;;
28151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152 (eval "$ac_compile") 2>conftest.er1
28154 grep -v '^ *+' conftest.er1 >conftest.err
28156 cat conftest.err >&5
28157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158 (exit $ac_status); } && {
28159 test -z "$ac_c_werror_flag" ||
28160 test ! -s conftest.err
28161 } && test -s conftest.$ac_objext; then
28162 ac_cv_struct_sockaddr_sa_len=yes
28164 echo "$as_me: failed program was:" >&5
28165 sed 's/^/| /' conftest.$ac_ext >&5
28167 ac_cv_struct_sockaddr_sa_len=no
28170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28172 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28173 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28175 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28177 cat >>confdefs.h <<\_ACEOF
28178 #define HAVE_SA_LEN 1
28187 for ac_func in strftime
28189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28193 echo $ECHO_N "(cached) $ECHO_C" >&6
28195 cat >conftest.$ac_ext <<_ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h. */
28201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28203 #define $ac_func innocuous_$ac_func
28205 /* System header to define __stub macros and hopefully few prototypes,
28206 which can conflict with char $ac_func (); below.
28207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28208 <limits.h> exists even on freestanding compilers. */
28211 # include <limits.h>
28213 # include <assert.h>
28218 /* Override any GCC internal prototype to avoid an error.
28219 Use char because int might match the return type of a GCC
28220 builtin and then its argument prototype would still apply. */
28225 /* The GNU C library defines this for functions which it implements
28226 to always fail with ENOSYS. Some functions are actually named
28227 something starting with __ and the normal name is an alias. */
28228 #if defined __stub_$ac_func || defined __stub___$ac_func
28235 return $ac_func ();
28240 rm -f conftest.$ac_objext conftest$ac_exeext
28241 if { (ac_try="$ac_link"
28242 case "(($ac_try" in
28243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28244 *) ac_try_echo=$ac_try;;
28246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28247 (eval "$ac_link") 2>conftest.er1
28249 grep -v '^ *+' conftest.er1 >conftest.err
28251 cat conftest.err >&5
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253 (exit $ac_status); } && {
28254 test -z "$ac_c_werror_flag" ||
28255 test ! -s conftest.err
28256 } && test -s conftest$ac_exeext &&
28257 $as_test_x conftest$ac_exeext; then
28258 eval "$as_ac_var=yes"
28260 echo "$as_me: failed program was:" >&5
28261 sed 's/^/| /' conftest.$ac_ext >&5
28263 eval "$as_ac_var=no"
28266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28267 conftest$ac_exeext conftest.$ac_ext
28269 ac_res=`eval echo '${'$as_ac_var'}'`
28270 { echo "$as_me:$LINENO: result: $ac_res" >&5
28271 echo "${ECHO_T}$ac_res" >&6; }
28272 if test `eval echo '${'$as_ac_var'}'` = yes; then
28273 cat >>confdefs.h <<_ACEOF
28274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28278 # strftime is in -lintl on SCO UNIX.
28279 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28280 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28281 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28284 ac_check_lib_save_LIBS=$LIBS
28285 LIBS="-lintl $LIBS"
28286 cat >conftest.$ac_ext <<_ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h. */
28293 /* Override any GCC internal prototype to avoid an error.
28294 Use char because int might match the return type of a GCC
28295 builtin and then its argument prototype would still apply. */
28303 return strftime ();
28308 rm -f conftest.$ac_objext conftest$ac_exeext
28309 if { (ac_try="$ac_link"
28310 case "(($ac_try" in
28311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_link") 2>conftest.er1
28317 grep -v '^ *+' conftest.er1 >conftest.err
28319 cat conftest.err >&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); } && {
28322 test -z "$ac_c_werror_flag" ||
28323 test ! -s conftest.err
28324 } && test -s conftest$ac_exeext &&
28325 $as_test_x conftest$ac_exeext; then
28326 ac_cv_lib_intl_strftime=yes
28328 echo "$as_me: failed program was:" >&5
28329 sed 's/^/| /' conftest.$ac_ext >&5
28331 ac_cv_lib_intl_strftime=no
28334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28335 conftest$ac_exeext conftest.$ac_ext
28336 LIBS=$ac_check_lib_save_LIBS
28338 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28339 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28340 if test $ac_cv_lib_intl_strftime = yes; then
28341 cat >>confdefs.h <<\_ACEOF
28342 #define HAVE_STRFTIME 1
28345 LIBS="-lintl $LIBS"
28352 for ac_func in vprintf
28354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28358 echo $ECHO_N "(cached) $ECHO_C" >&6
28360 cat >conftest.$ac_ext <<_ACEOF
28363 cat confdefs.h >>conftest.$ac_ext
28364 cat >>conftest.$ac_ext <<_ACEOF
28365 /* end confdefs.h. */
28366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28368 #define $ac_func innocuous_$ac_func
28370 /* System header to define __stub macros and hopefully few prototypes,
28371 which can conflict with char $ac_func (); below.
28372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28373 <limits.h> exists even on freestanding compilers. */
28376 # include <limits.h>
28378 # include <assert.h>
28383 /* Override any GCC internal prototype to avoid an error.
28384 Use char because int might match the return type of a GCC
28385 builtin and then its argument prototype would still apply. */
28390 /* The GNU C library defines this for functions which it implements
28391 to always fail with ENOSYS. Some functions are actually named
28392 something starting with __ and the normal name is an alias. */
28393 #if defined __stub_$ac_func || defined __stub___$ac_func
28400 return $ac_func ();
28405 rm -f conftest.$ac_objext conftest$ac_exeext
28406 if { (ac_try="$ac_link"
28407 case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412 (eval "$ac_link") 2>conftest.er1
28414 grep -v '^ *+' conftest.er1 >conftest.err
28416 cat conftest.err >&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); } && {
28419 test -z "$ac_c_werror_flag" ||
28420 test ! -s conftest.err
28421 } && test -s conftest$ac_exeext &&
28422 $as_test_x conftest$ac_exeext; then
28423 eval "$as_ac_var=yes"
28425 echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28428 eval "$as_ac_var=no"
28431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28432 conftest$ac_exeext conftest.$ac_ext
28434 ac_res=`eval echo '${'$as_ac_var'}'`
28435 { echo "$as_me:$LINENO: result: $ac_res" >&5
28436 echo "${ECHO_T}$ac_res" >&6; }
28437 if test `eval echo '${'$as_ac_var'}'` = yes; then
28438 cat >>confdefs.h <<_ACEOF
28439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28442 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28443 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28444 if test "${ac_cv_func__doprnt+set}" = set; then
28445 echo $ECHO_N "(cached) $ECHO_C" >&6
28447 cat >conftest.$ac_ext <<_ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h. */
28453 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28455 #define _doprnt innocuous__doprnt
28457 /* System header to define __stub macros and hopefully few prototypes,
28458 which can conflict with char _doprnt (); below.
28459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28460 <limits.h> exists even on freestanding compilers. */
28463 # include <limits.h>
28465 # include <assert.h>
28470 /* Override any GCC internal prototype to avoid an error.
28471 Use char because int might match the return type of a GCC
28472 builtin and then its argument prototype would still apply. */
28477 /* The GNU C library defines this for functions which it implements
28478 to always fail with ENOSYS. Some functions are actually named
28479 something starting with __ and the normal name is an alias. */
28480 #if defined __stub__doprnt || defined __stub____doprnt
28492 rm -f conftest.$ac_objext conftest$ac_exeext
28493 if { (ac_try="$ac_link"
28494 case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_link") 2>conftest.er1
28501 grep -v '^ *+' conftest.er1 >conftest.err
28503 cat conftest.err >&5
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); } && {
28506 test -z "$ac_c_werror_flag" ||
28507 test ! -s conftest.err
28508 } && test -s conftest$ac_exeext &&
28509 $as_test_x conftest$ac_exeext; then
28510 ac_cv_func__doprnt=yes
28512 echo "$as_me: failed program was:" >&5
28513 sed 's/^/| /' conftest.$ac_ext >&5
28515 ac_cv_func__doprnt=no
28518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28519 conftest$ac_exeext conftest.$ac_ext
28521 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28522 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28523 if test $ac_cv_func__doprnt = yes; then
28525 cat >>confdefs.h <<\_ACEOF
28526 #define HAVE_DOPRNT 1
28535 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28536 # for constant arguments. Useless!
28537 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28538 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28539 if test "${ac_cv_working_alloca_h+set}" = set; then
28540 echo $ECHO_N "(cached) $ECHO_C" >&6
28542 cat >conftest.$ac_ext <<_ACEOF
28545 cat confdefs.h >>conftest.$ac_ext
28546 cat >>conftest.$ac_ext <<_ACEOF
28547 /* end confdefs.h. */
28548 #include <alloca.h>
28552 char *p = (char *) alloca (2 * sizeof (int));
28558 rm -f conftest.$ac_objext conftest$ac_exeext
28559 if { (ac_try="$ac_link"
28560 case "(($ac_try" in
28561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562 *) ac_try_echo=$ac_try;;
28564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565 (eval "$ac_link") 2>conftest.er1
28567 grep -v '^ *+' conftest.er1 >conftest.err
28569 cat conftest.err >&5
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); } && {
28572 test -z "$ac_c_werror_flag" ||
28573 test ! -s conftest.err
28574 } && test -s conftest$ac_exeext &&
28575 $as_test_x conftest$ac_exeext; then
28576 ac_cv_working_alloca_h=yes
28578 echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28581 ac_cv_working_alloca_h=no
28584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28585 conftest$ac_exeext conftest.$ac_ext
28587 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28588 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28589 if test $ac_cv_working_alloca_h = yes; then
28591 cat >>confdefs.h <<\_ACEOF
28592 #define HAVE_ALLOCA_H 1
28597 { echo "$as_me:$LINENO: checking for alloca" >&5
28598 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28599 if test "${ac_cv_func_alloca_works+set}" = set; then
28600 echo $ECHO_N "(cached) $ECHO_C" >&6
28602 cat >conftest.$ac_ext <<_ACEOF
28605 cat confdefs.h >>conftest.$ac_ext
28606 cat >>conftest.$ac_ext <<_ACEOF
28607 /* end confdefs.h. */
28609 # define alloca __builtin_alloca
28612 # include <malloc.h>
28613 # define alloca _alloca
28615 # ifdef HAVE_ALLOCA_H
28616 # include <alloca.h>
28621 # ifndef alloca /* predefined by HP cc +Olibcalls */
28632 char *p = (char *) alloca (1);
28638 rm -f conftest.$ac_objext conftest$ac_exeext
28639 if { (ac_try="$ac_link"
28640 case "(($ac_try" in
28641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28642 *) ac_try_echo=$ac_try;;
28644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28645 (eval "$ac_link") 2>conftest.er1
28647 grep -v '^ *+' conftest.er1 >conftest.err
28649 cat conftest.err >&5
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); } && {
28652 test -z "$ac_c_werror_flag" ||
28653 test ! -s conftest.err
28654 } && test -s conftest$ac_exeext &&
28655 $as_test_x conftest$ac_exeext; then
28656 ac_cv_func_alloca_works=yes
28658 echo "$as_me: failed program was:" >&5
28659 sed 's/^/| /' conftest.$ac_ext >&5
28661 ac_cv_func_alloca_works=no
28664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28665 conftest$ac_exeext conftest.$ac_ext
28667 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28668 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28670 if test $ac_cv_func_alloca_works = yes; then
28672 cat >>confdefs.h <<\_ACEOF
28673 #define HAVE_ALLOCA 1
28677 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28678 # that cause trouble. Some versions do not even contain alloca or
28679 # contain a buggy version. If you still want to use their alloca,
28680 # use ar to extract alloca.o from them instead of compiling alloca.c.
28682 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28684 cat >>confdefs.h <<\_ACEOF
28689 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28690 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28691 if test "${ac_cv_os_cray+set}" = set; then
28692 echo $ECHO_N "(cached) $ECHO_C" >&6
28694 cat >conftest.$ac_ext <<_ACEOF
28697 cat confdefs.h >>conftest.$ac_ext
28698 cat >>conftest.$ac_ext <<_ACEOF
28699 /* end confdefs.h. */
28700 #if defined CRAY && ! defined CRAY2
28707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28708 $EGREP "webecray" >/dev/null 2>&1; then
28716 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28717 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28718 if test $ac_cv_os_cray = yes; then
28719 for ac_func in _getb67 GETB67 getb67; do
28720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28724 echo $ECHO_N "(cached) $ECHO_C" >&6
28726 cat >conftest.$ac_ext <<_ACEOF
28729 cat confdefs.h >>conftest.$ac_ext
28730 cat >>conftest.$ac_ext <<_ACEOF
28731 /* end confdefs.h. */
28732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28734 #define $ac_func innocuous_$ac_func
28736 /* System header to define __stub macros and hopefully few prototypes,
28737 which can conflict with char $ac_func (); below.
28738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28739 <limits.h> exists even on freestanding compilers. */
28742 # include <limits.h>
28744 # include <assert.h>
28749 /* Override any GCC internal prototype to avoid an error.
28750 Use char because int might match the return type of a GCC
28751 builtin and then its argument prototype would still apply. */
28756 /* The GNU C library defines this for functions which it implements
28757 to always fail with ENOSYS. Some functions are actually named
28758 something starting with __ and the normal name is an alias. */
28759 #if defined __stub_$ac_func || defined __stub___$ac_func
28766 return $ac_func ();
28771 rm -f conftest.$ac_objext conftest$ac_exeext
28772 if { (ac_try="$ac_link"
28773 case "(($ac_try" in
28774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28775 *) ac_try_echo=$ac_try;;
28777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28778 (eval "$ac_link") 2>conftest.er1
28780 grep -v '^ *+' conftest.er1 >conftest.err
28782 cat conftest.err >&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); } && {
28785 test -z "$ac_c_werror_flag" ||
28786 test ! -s conftest.err
28787 } && test -s conftest$ac_exeext &&
28788 $as_test_x conftest$ac_exeext; then
28789 eval "$as_ac_var=yes"
28791 echo "$as_me: failed program was:" >&5
28792 sed 's/^/| /' conftest.$ac_ext >&5
28794 eval "$as_ac_var=no"
28797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28798 conftest$ac_exeext conftest.$ac_ext
28800 ac_res=`eval echo '${'$as_ac_var'}'`
28801 { echo "$as_me:$LINENO: result: $ac_res" >&5
28802 echo "${ECHO_T}$ac_res" >&6; }
28803 if test `eval echo '${'$as_ac_var'}'` = yes; then
28805 cat >>confdefs.h <<_ACEOF
28806 #define CRAY_STACKSEG_END $ac_func
28815 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28816 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28817 if test "${ac_cv_c_stack_direction+set}" = set; then
28818 echo $ECHO_N "(cached) $ECHO_C" >&6
28820 if test "$cross_compiling" = yes; then
28821 ac_cv_c_stack_direction=0
28823 cat >conftest.$ac_ext <<_ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h. */
28829 $ac_includes_default
28831 find_stack_direction ()
28833 static char *addr = 0;
28838 return find_stack_direction ();
28841 return (&dummy > addr) ? 1 : -1;
28847 return find_stack_direction () < 0;
28850 rm -f conftest$ac_exeext
28851 if { (ac_try="$ac_link"
28852 case "(($ac_try" in
28853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854 *) ac_try_echo=$ac_try;;
28856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857 (eval "$ac_link") 2>&5
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28861 { (case "(($ac_try" in
28862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863 *) ac_try_echo=$ac_try;;
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866 (eval "$ac_try") 2>&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 ac_cv_c_stack_direction=1
28872 echo "$as_me: program exited with status $ac_status" >&5
28873 echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28876 ( exit $ac_status )
28877 ac_cv_c_stack_direction=-1
28879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28884 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28885 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28887 cat >>confdefs.h <<_ACEOF
28888 #define STACK_DIRECTION $ac_cv_c_stack_direction
28894 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28895 # -lseq on Dynix/PTX, -lgen on Unixware.
28896 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28897 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28898 if test "${ac_cv_search_getmntent+set}" = set; then
28899 echo $ECHO_N "(cached) $ECHO_C" >&6
28901 ac_func_search_save_LIBS=$LIBS
28902 cat >conftest.$ac_ext <<_ACEOF
28905 cat confdefs.h >>conftest.$ac_ext
28906 cat >>conftest.$ac_ext <<_ACEOF
28907 /* end confdefs.h. */
28909 /* Override any GCC internal prototype to avoid an error.
28910 Use char because int might match the return type of a GCC
28911 builtin and then its argument prototype would still apply. */
28919 return getmntent ();
28924 for ac_lib in '' sun seq gen; do
28925 if test -z "$ac_lib"; then
28926 ac_res="none required"
28929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (ac_try="$ac_link"
28933 case "(($ac_try" in
28934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935 *) ac_try_echo=$ac_try;;
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938 (eval "$ac_link") 2>conftest.er1
28940 grep -v '^ *+' conftest.er1 >conftest.err
28942 cat conftest.err >&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } && {
28945 test -z "$ac_c_werror_flag" ||
28946 test ! -s conftest.err
28947 } && test -s conftest$ac_exeext &&
28948 $as_test_x conftest$ac_exeext; then
28949 ac_cv_search_getmntent=$ac_res
28951 echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28959 if test "${ac_cv_search_getmntent+set}" = set; then
28963 if test "${ac_cv_search_getmntent+set}" = set; then
28966 ac_cv_search_getmntent=no
28968 rm conftest.$ac_ext
28969 LIBS=$ac_func_search_save_LIBS
28971 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28972 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28973 ac_res=$ac_cv_search_getmntent
28974 if test "$ac_res" != no; then
28975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28976 ac_cv_func_getmntent=yes
28978 cat >>confdefs.h <<\_ACEOF
28979 #define HAVE_GETMNTENT 1
28983 ac_cv_func_getmntent=no
28987 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28988 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28989 if test "${ac_cv_func_closedir_void+set}" = set; then
28990 echo $ECHO_N "(cached) $ECHO_C" >&6
28992 if test "$cross_compiling" = yes; then
28993 ac_cv_func_closedir_void=yes
28995 cat >conftest.$ac_ext <<_ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h. */
29001 $ac_includes_default
29002 #include <$ac_header_dirent>
29003 #ifndef __cplusplus
29010 return closedir (opendir (".")) != 0;
29015 rm -f conftest$ac_exeext
29016 if { (ac_try="$ac_link"
29017 case "(($ac_try" in
29018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29019 *) ac_try_echo=$ac_try;;
29021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29022 (eval "$ac_link") 2>&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); }; }; then
29035 ac_cv_func_closedir_void=no
29037 echo "$as_me: program exited with status $ac_status" >&5
29038 echo "$as_me: failed program was:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29041 ( exit $ac_status )
29042 ac_cv_func_closedir_void=yes
29044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29049 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29050 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29051 if test $ac_cv_func_closedir_void = yes; then
29053 cat >>confdefs.h <<\_ACEOF
29054 #define CLOSEDIR_VOID 1
29059 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29060 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29061 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29062 echo $ECHO_N "(cached) $ECHO_C" >&6
29064 if test "$cross_compiling" = yes; then
29065 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29066 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29067 { (exit 1); exit 1; }; }
29069 cat >conftest.$ac_ext <<_ACEOF
29072 cat confdefs.h >>conftest.$ac_ext
29073 cat >>conftest.$ac_ext <<_ACEOF
29074 /* end confdefs.h. */
29075 $ac_includes_default
29079 /* If this system has a BSD-style setpgrp which takes arguments,
29080 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29081 exit successfully. */
29082 return setpgrp (1,1) != -1;
29087 rm -f conftest$ac_exeext
29088 if { (ac_try="$ac_link"
29089 case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_link") 2>&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29098 { (case "(($ac_try" in
29099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29100 *) ac_try_echo=$ac_try;;
29102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29103 (eval "$ac_try") 2>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; }; then
29107 ac_cv_func_setpgrp_void=no
29109 echo "$as_me: program exited with status $ac_status" >&5
29110 echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29113 ( exit $ac_status )
29114 ac_cv_func_setpgrp_void=yes
29116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29121 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29122 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29123 if test $ac_cv_func_setpgrp_void = yes; then
29125 cat >>confdefs.h <<\_ACEOF
29126 #define SETPGRP_VOID 1
29130 # AC_FUNC_FNMATCH dnl use local version
29133 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29134 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29135 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29136 echo $ECHO_N "(cached) $ECHO_C" >&6
29138 ac_check_lib_save_LIBS=$LIBS
29139 LIBS="-lintl $LIBS"
29140 cat >conftest.$ac_ext <<_ACEOF
29143 cat confdefs.h >>conftest.$ac_ext
29144 cat >>conftest.$ac_ext <<_ACEOF
29145 /* end confdefs.h. */
29147 /* Override any GCC internal prototype to avoid an error.
29148 Use char because int might match the return type of a GCC
29149 builtin and then its argument prototype would still apply. */
29162 rm -f conftest.$ac_objext conftest$ac_exeext
29163 if { (ac_try="$ac_link"
29164 case "(($ac_try" in
29165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166 *) ac_try_echo=$ac_try;;
29168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29169 (eval "$ac_link") 2>conftest.er1
29171 grep -v '^ *+' conftest.er1 >conftest.err
29173 cat conftest.err >&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } && {
29176 test -z "$ac_c_werror_flag" ||
29177 test ! -s conftest.err
29178 } && test -s conftest$ac_exeext &&
29179 $as_test_x conftest$ac_exeext; then
29180 ac_cv_lib_intl_gettext=yes
29182 echo "$as_me: failed program was:" >&5
29183 sed 's/^/| /' conftest.$ac_ext >&5
29185 ac_cv_lib_intl_gettext=no
29188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29189 conftest$ac_exeext conftest.$ac_ext
29190 LIBS=$ac_check_lib_save_LIBS
29192 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29193 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29194 if test $ac_cv_lib_intl_gettext = yes; then
29195 LIBS="$LIBS -lintl"
29201 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29202 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29203 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29206 ac_check_lib_save_LIBS=$LIBS
29208 cat >conftest.$ac_ext <<_ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h. */
29215 /* Override any GCC internal prototype to avoid an error.
29216 Use char because int might match the return type of a GCC
29217 builtin and then its argument prototype would still apply. */
29225 return getpwnam ();
29230 rm -f conftest.$ac_objext conftest$ac_exeext
29231 if { (ac_try="$ac_link"
29232 case "(($ac_try" in
29233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234 *) ac_try_echo=$ac_try;;
29236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237 (eval "$ac_link") 2>conftest.er1
29239 grep -v '^ *+' conftest.er1 >conftest.err
29241 cat conftest.err >&5
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); } && {
29244 test -z "$ac_c_werror_flag" ||
29245 test ! -s conftest.err
29246 } && test -s conftest$ac_exeext &&
29247 $as_test_x conftest$ac_exeext; then
29248 ac_cv_lib_sun_getpwnam=yes
29250 echo "$as_me: failed program was:" >&5
29251 sed 's/^/| /' conftest.$ac_ext >&5
29253 ac_cv_lib_sun_getpwnam=no
29256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29257 conftest$ac_exeext conftest.$ac_ext
29258 LIBS=$ac_check_lib_save_LIBS
29260 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29261 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29262 if test $ac_cv_lib_sun_getpwnam = yes; then
29263 cat >>confdefs.h <<_ACEOF
29264 #define HAVE_LIBSUN 1
29273 for ac_header in zlib.h
29275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29280 echo $ECHO_N "(cached) $ECHO_C" >&6
29282 ac_res=`eval echo '${'$as_ac_Header'}'`
29283 { echo "$as_me:$LINENO: result: $ac_res" >&5
29284 echo "${ECHO_T}$ac_res" >&6; }
29286 # Is the header compilable?
29287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29289 cat >conftest.$ac_ext <<_ACEOF
29292 cat confdefs.h >>conftest.$ac_ext
29293 cat >>conftest.$ac_ext <<_ACEOF
29294 /* end confdefs.h. */
29295 $ac_includes_default
29296 #include <$ac_header>
29298 rm -f conftest.$ac_objext
29299 if { (ac_try="$ac_compile"
29300 case "(($ac_try" in
29301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302 *) ac_try_echo=$ac_try;;
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305 (eval "$ac_compile") 2>conftest.er1
29307 grep -v '^ *+' conftest.er1 >conftest.err
29309 cat conftest.err >&5
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); } && {
29312 test -z "$ac_c_werror_flag" ||
29313 test ! -s conftest.err
29314 } && test -s conftest.$ac_objext; then
29315 ac_header_compiler=yes
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29320 ac_header_compiler=no
29323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29325 echo "${ECHO_T}$ac_header_compiler" >&6; }
29327 # Is the header present?
29328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29330 cat >conftest.$ac_ext <<_ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h. */
29336 #include <$ac_header>
29338 if { (ac_try="$ac_cpp conftest.$ac_ext"
29339 case "(($ac_try" in
29340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341 *) ac_try_echo=$ac_try;;
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29346 grep -v '^ *+' conftest.er1 >conftest.err
29348 cat conftest.err >&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); } >/dev/null && {
29351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29352 test ! -s conftest.err
29354 ac_header_preproc=yes
29356 echo "$as_me: failed program was:" >&5
29357 sed 's/^/| /' conftest.$ac_ext >&5
29359 ac_header_preproc=no
29362 rm -f conftest.err conftest.$ac_ext
29363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29364 echo "${ECHO_T}$ac_header_preproc" >&6; }
29366 # So? What about this header?
29367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29373 ac_header_preproc=yes
29376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29396 eval "$as_ac_Header=\$ac_header_preproc"
29398 ac_res=`eval echo '${'$as_ac_Header'}'`
29399 { echo "$as_me:$LINENO: result: $ac_res" >&5
29400 echo "${ECHO_T}$ac_res" >&6; }
29403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29404 cat >>confdefs.h <<_ACEOF
29405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29412 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29413 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29414 if test "${ac_cv_lib_z_deflate+set}" = set; then
29415 echo $ECHO_N "(cached) $ECHO_C" >&6
29417 ac_check_lib_save_LIBS=$LIBS
29419 cat >conftest.$ac_ext <<_ACEOF
29422 cat confdefs.h >>conftest.$ac_ext
29423 cat >>conftest.$ac_ext <<_ACEOF
29424 /* end confdefs.h. */
29426 /* Override any GCC internal prototype to avoid an error.
29427 Use char because int might match the return type of a GCC
29428 builtin and then its argument prototype would still apply. */
29441 rm -f conftest.$ac_objext conftest$ac_exeext
29442 if { (ac_try="$ac_link"
29443 case "(($ac_try" in
29444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29445 *) ac_try_echo=$ac_try;;
29447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29448 (eval "$ac_link") 2>conftest.er1
29450 grep -v '^ *+' conftest.er1 >conftest.err
29452 cat conftest.err >&5
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); } && {
29455 test -z "$ac_c_werror_flag" ||
29456 test ! -s conftest.err
29457 } && test -s conftest$ac_exeext &&
29458 $as_test_x conftest$ac_exeext; then
29459 ac_cv_lib_z_deflate=yes
29461 echo "$as_me: failed program was:" >&5
29462 sed 's/^/| /' conftest.$ac_ext >&5
29464 ac_cv_lib_z_deflate=no
29467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29468 conftest$ac_exeext conftest.$ac_ext
29469 LIBS=$ac_check_lib_save_LIBS
29471 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29472 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29473 if test $ac_cv_lib_z_deflate = yes; then
29478 if test x$FDLIBS = x-lz; then
29479 cat >>confdefs.h <<\_ACEOF
29480 #define HAVE_LIBZ 1
29487 # Check for ACL libraries
29490 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29491 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29492 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29493 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29496 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29497 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29499 # Is the header compilable?
29500 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29501 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29502 cat >conftest.$ac_ext <<_ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29508 $ac_includes_default
29509 #include <sys/acl.h>
29511 rm -f conftest.$ac_objext
29512 if { (ac_try="$ac_compile"
29513 case "(($ac_try" in
29514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515 *) ac_try_echo=$ac_try;;
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518 (eval "$ac_compile") 2>conftest.er1
29520 grep -v '^ *+' conftest.er1 >conftest.err
29522 cat conftest.err >&5
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); } && {
29525 test -z "$ac_c_werror_flag" ||
29526 test ! -s conftest.err
29527 } && test -s conftest.$ac_objext; then
29528 ac_header_compiler=yes
29530 echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29533 ac_header_compiler=no
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29538 echo "${ECHO_T}$ac_header_compiler" >&6; }
29540 # Is the header present?
29541 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29542 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29543 cat >conftest.$ac_ext <<_ACEOF
29546 cat confdefs.h >>conftest.$ac_ext
29547 cat >>conftest.$ac_ext <<_ACEOF
29548 /* end confdefs.h. */
29549 #include <sys/acl.h>
29551 if { (ac_try="$ac_cpp conftest.$ac_ext"
29552 case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29559 grep -v '^ *+' conftest.er1 >conftest.err
29561 cat conftest.err >&5
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); } >/dev/null && {
29564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29565 test ! -s conftest.err
29567 ac_header_preproc=yes
29569 echo "$as_me: failed program was:" >&5
29570 sed 's/^/| /' conftest.$ac_ext >&5
29572 ac_header_preproc=no
29575 rm -f conftest.err conftest.$ac_ext
29576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29577 echo "${ECHO_T}$ac_header_preproc" >&6; }
29579 # So? What about this header?
29580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29582 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29583 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29584 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29585 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29586 ac_header_preproc=yes
29589 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29590 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29591 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29592 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29593 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29594 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29595 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29596 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29598 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29599 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29600 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29604 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29605 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29606 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29607 echo $ECHO_N "(cached) $ECHO_C" >&6
29609 ac_cv_header_sys_acl_h=$ac_header_preproc
29611 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29612 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29617 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29618 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29619 if test "${ac_cv_func_acl_get_file+set}" = set; then
29620 echo $ECHO_N "(cached) $ECHO_C" >&6
29622 cat >conftest.$ac_ext <<_ACEOF
29625 cat confdefs.h >>conftest.$ac_ext
29626 cat >>conftest.$ac_ext <<_ACEOF
29627 /* end confdefs.h. */
29628 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29630 #define acl_get_file innocuous_acl_get_file
29632 /* System header to define __stub macros and hopefully few prototypes,
29633 which can conflict with char acl_get_file (); below.
29634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29635 <limits.h> exists even on freestanding compilers. */
29638 # include <limits.h>
29640 # include <assert.h>
29643 #undef acl_get_file
29645 /* Override any GCC internal prototype to avoid an error.
29646 Use char because int might match the return type of a GCC
29647 builtin and then its argument prototype would still apply. */
29651 char acl_get_file ();
29652 /* The GNU C library defines this for functions which it implements
29653 to always fail with ENOSYS. Some functions are actually named
29654 something starting with __ and the normal name is an alias. */
29655 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29662 return acl_get_file ();
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_func_acl_get_file=yes
29687 echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29690 ac_cv_func_acl_get_file=no
29693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29694 conftest$ac_exeext conftest.$ac_ext
29696 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29697 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29698 if test $ac_cv_func_acl_get_file = yes; then
29701 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29702 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29703 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29704 echo $ECHO_N "(cached) $ECHO_C" >&6
29706 ac_check_lib_save_LIBS=$LIBS
29708 cat >conftest.$ac_ext <<_ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h. */
29715 /* Override any GCC internal prototype to avoid an error.
29716 Use char because int might match the return type of a GCC
29717 builtin and then its argument prototype would still apply. */
29721 char acl_get_file ();
29725 return acl_get_file ();
29730 rm -f conftest.$ac_objext conftest$ac_exeext
29731 if { (ac_try="$ac_link"
29732 case "(($ac_try" in
29733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734 *) ac_try_echo=$ac_try;;
29736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29737 (eval "$ac_link") 2>conftest.er1
29739 grep -v '^ *+' conftest.er1 >conftest.err
29741 cat conftest.err >&5
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); } && {
29744 test -z "$ac_c_werror_flag" ||
29745 test ! -s conftest.err
29746 } && test -s conftest$ac_exeext &&
29747 $as_test_x conftest$ac_exeext; then
29748 ac_cv_lib_acl_acl_get_file=yes
29750 echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29753 ac_cv_lib_acl_acl_get_file=no
29756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29757 conftest$ac_exeext conftest.$ac_ext
29758 LIBS=$ac_check_lib_save_LIBS
29760 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29761 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29762 if test $ac_cv_lib_acl_acl_get_file = yes; then
29763 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29765 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29766 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29767 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29768 echo $ECHO_N "(cached) $ECHO_C" >&6
29770 ac_check_lib_save_LIBS=$LIBS
29772 cat >conftest.$ac_ext <<_ACEOF
29775 cat confdefs.h >>conftest.$ac_ext
29776 cat >>conftest.$ac_ext <<_ACEOF
29777 /* end confdefs.h. */
29779 /* Override any GCC internal prototype to avoid an error.
29780 Use char because int might match the return type of a GCC
29781 builtin and then its argument prototype would still apply. */
29789 return acltotext ();
29794 rm -f conftest.$ac_objext conftest$ac_exeext
29795 if { (ac_try="$ac_link"
29796 case "(($ac_try" in
29797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798 *) ac_try_echo=$ac_try;;
29800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29801 (eval "$ac_link") 2>conftest.er1
29803 grep -v '^ *+' conftest.er1 >conftest.err
29805 cat conftest.err >&5
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); } && {
29808 test -z "$ac_c_werror_flag" ||
29809 test ! -s conftest.err
29810 } && test -s conftest$ac_exeext &&
29811 $as_test_x conftest$ac_exeext; then
29812 ac_cv_lib_sec_acltotext=yes
29814 echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.$ac_ext >&5
29817 ac_cv_lib_sec_acltotext=no
29820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29821 conftest$ac_exeext conftest.$ac_ext
29822 LIBS=$ac_check_lib_save_LIBS
29824 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29825 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29826 if test $ac_cv_lib_sec_acltotext = yes; then
29827 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29836 if test $have_acl = yes; then
29837 cat >>confdefs.h <<\_ACEOF
29844 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29845 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29846 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29847 echo $ECHO_N "(cached) $ECHO_C" >&6
29849 ac_check_lib_save_LIBS=$LIBS
29850 LIBS="-lpthread $LIBS"
29851 cat >conftest.$ac_ext <<_ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h. */
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 ();
29868 return pthread_create ();
29873 rm -f conftest.$ac_objext conftest$ac_exeext
29874 if { (ac_try="$ac_link"
29875 case "(($ac_try" in
29876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877 *) ac_try_echo=$ac_try;;
29879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29880 (eval "$ac_link") 2>conftest.er1
29882 grep -v '^ *+' conftest.er1 >conftest.err
29884 cat conftest.err >&5
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); } && {
29887 test -z "$ac_c_werror_flag" ||
29888 test ! -s conftest.err
29889 } && test -s conftest$ac_exeext &&
29890 $as_test_x conftest$ac_exeext; then
29891 ac_cv_lib_pthread_pthread_create=yes
29893 echo "$as_me: failed program was:" >&5
29894 sed 's/^/| /' conftest.$ac_ext >&5
29896 ac_cv_lib_pthread_pthread_create=no
29899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29900 conftest$ac_exeext conftest.$ac_ext
29901 LIBS=$ac_check_lib_save_LIBS
29903 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29904 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29905 if test $ac_cv_lib_pthread_pthread_create = yes; then
29906 PTHREAD_LIB="-lpthread"
29908 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29909 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29910 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29911 echo $ECHO_N "(cached) $ECHO_C" >&6
29913 ac_check_lib_save_LIBS=$LIBS
29914 LIBS="-lpthreads $LIBS"
29915 cat >conftest.$ac_ext <<_ACEOF
29918 cat confdefs.h >>conftest.$ac_ext
29919 cat >>conftest.$ac_ext <<_ACEOF
29920 /* end confdefs.h. */
29922 /* Override any GCC internal prototype to avoid an error.
29923 Use char because int might match the return type of a GCC
29924 builtin and then its argument prototype would still apply. */
29928 char pthread_create ();
29932 return pthread_create ();
29937 rm -f conftest.$ac_objext conftest$ac_exeext
29938 if { (ac_try="$ac_link"
29939 case "(($ac_try" in
29940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941 *) ac_try_echo=$ac_try;;
29943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944 (eval "$ac_link") 2>conftest.er1
29946 grep -v '^ *+' conftest.er1 >conftest.err
29948 cat conftest.err >&5
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); } && {
29951 test -z "$ac_c_werror_flag" ||
29952 test ! -s conftest.err
29953 } && test -s conftest$ac_exeext &&
29954 $as_test_x conftest$ac_exeext; then
29955 ac_cv_lib_pthreads_pthread_create=yes
29957 echo "$as_me: failed program was:" >&5
29958 sed 's/^/| /' conftest.$ac_ext >&5
29960 ac_cv_lib_pthreads_pthread_create=no
29963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29964 conftest$ac_exeext conftest.$ac_ext
29965 LIBS=$ac_check_lib_save_LIBS
29967 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29968 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29969 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29970 PTHREAD_LIB="-lpthreads"
29972 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29973 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29974 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29975 echo $ECHO_N "(cached) $ECHO_C" >&6
29977 ac_check_lib_save_LIBS=$LIBS
29979 cat >conftest.$ac_ext <<_ACEOF
29982 cat confdefs.h >>conftest.$ac_ext
29983 cat >>conftest.$ac_ext <<_ACEOF
29984 /* end confdefs.h. */
29986 /* Override any GCC internal prototype to avoid an error.
29987 Use char because int might match the return type of a GCC
29988 builtin and then its argument prototype would still apply. */
29992 char pthread_create ();
29996 return pthread_create ();
30001 rm -f conftest.$ac_objext conftest$ac_exeext
30002 if { (ac_try="$ac_link"
30003 case "(($ac_try" in
30004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005 *) ac_try_echo=$ac_try;;
30007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008 (eval "$ac_link") 2>conftest.er1
30010 grep -v '^ *+' conftest.er1 >conftest.err
30012 cat conftest.err >&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); } && {
30015 test -z "$ac_c_werror_flag" ||
30016 test ! -s conftest.err
30017 } && test -s conftest$ac_exeext &&
30018 $as_test_x conftest$ac_exeext; then
30019 ac_cv_lib_c_r_pthread_create=yes
30021 echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30024 ac_cv_lib_c_r_pthread_create=no
30027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30028 conftest$ac_exeext conftest.$ac_ext
30029 LIBS=$ac_check_lib_save_LIBS
30031 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30032 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30033 if test $ac_cv_lib_c_r_pthread_create = yes; then
30034 PTHREAD_LIB="-lc_r"
30036 { echo "$as_me:$LINENO: checking for pthread_create" >&5
30037 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30038 if test "${ac_cv_func_pthread_create+set}" = set; then
30039 echo $ECHO_N "(cached) $ECHO_C" >&6
30041 cat >conftest.$ac_ext <<_ACEOF
30044 cat confdefs.h >>conftest.$ac_ext
30045 cat >>conftest.$ac_ext <<_ACEOF
30046 /* end confdefs.h. */
30047 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30049 #define pthread_create innocuous_pthread_create
30051 /* System header to define __stub macros and hopefully few prototypes,
30052 which can conflict with char pthread_create (); below.
30053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30054 <limits.h> exists even on freestanding compilers. */
30057 # include <limits.h>
30059 # include <assert.h>
30062 #undef pthread_create
30064 /* Override any GCC internal prototype to avoid an error.
30065 Use char because int might match the return type of a GCC
30066 builtin and then its argument prototype would still apply. */
30070 char pthread_create ();
30071 /* The GNU C library defines this for functions which it implements
30072 to always fail with ENOSYS. Some functions are actually named
30073 something starting with __ and the normal name is an alias. */
30074 #if defined __stub_pthread_create || defined __stub___pthread_create
30081 return pthread_create ();
30086 rm -f conftest.$ac_objext conftest$ac_exeext
30087 if { (ac_try="$ac_link"
30088 case "(($ac_try" in
30089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30090 *) ac_try_echo=$ac_try;;
30092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093 (eval "$ac_link") 2>conftest.er1
30095 grep -v '^ *+' conftest.er1 >conftest.err
30097 cat conftest.err >&5
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); } && {
30100 test -z "$ac_c_werror_flag" ||
30101 test ! -s conftest.err
30102 } && test -s conftest$ac_exeext &&
30103 $as_test_x conftest$ac_exeext; then
30104 ac_cv_func_pthread_create=yes
30106 echo "$as_me: failed program was:" >&5
30107 sed 's/^/| /' conftest.$ac_ext >&5
30109 ac_cv_func_pthread_create=no
30112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30113 conftest$ac_exeext conftest.$ac_ext
30115 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30116 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30129 cat >>confdefs.h <<\_ACEOF
30135 CFLAGS=${CFLAGS--O}
30137 if test x$have_gcc = xyes ; then
30138 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30139 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30141 LDFLAGS=${LDFLAGS--O}
30142 DB_LIBS="${SQL_LFLAGS}"
30143 CPPFLAGS="$CPPFLAGS"
30171 # Finally we set appropriate distribution specific
30172 # variables and defaults
30174 # PFILES are platform specific files
30175 PFILES="platforms/Makefile"
30179 hostname=`uname -n | cut -d '.' -f 1`
30180 if test x${hostname} = x ; then
30181 hostname="localhost"
30183 case "$DISTNAME" in
30186 PSCMD="ps -e -o pid,comm"
30187 PFILES="${PFILES} \
30188 platforms/aix/Makefile"
30189 TAPEDRIVE="/dev/rmt0.1"
30193 PTHREAD_LIB="-lpthread -lexc"
30194 if test "${CC}" = "gcc" ; then
30201 TAPEDRIVE="/dev/nrmt0"
30204 DISTVER=`uname -a |awk '{print $3}'`
30205 TAPEDRIVE="/dev/nrmt0"
30206 PTHREAD_LIB="-pthread"
30207 CFLAGS="${CFLAGS} -pthread"
30208 PSCMD="ps -ax -o pid,command"
30211 PFILES="${PFILES} \
30212 platforms/bsdi/Makefile \
30213 platforms/bsdi/bacula-fd \
30214 platforms/bsdi/bacula-sd \
30215 platforms/bsdi/bacula-dir"
30216 largefile_support="yes"
30219 DISTVER=`uname -a |awk '{print $3}'`
30220 TAPEDRIVE="/dev/nrst0"
30222 WCFLAGS="-mwindows"
30223 WLDFLAGS="-mwindows"
30227 TAPEDRIVE="/dev/nst0"
30228 PSCMD="ps -e -o pid,command"
30230 PFILES="${PFILES} \
30231 platforms/darwin/Makefile"
30234 if `grep -q ubuntu /etc/apt/sources.list`; then
30237 DISTVER=`cat /etc/debian_version`
30238 if test -f /etc/lsb-release ; then
30240 if test "x$DISTRIB_ID" != "x" ; then
30241 DISTNAME=$DISTRIB_ID
30243 if test "x$DISTRIB_RELEASE" != "x" ; then
30244 DISTVER=$DISTRIB_RELEASE
30247 if test "$DISTNAME" = "Ubuntu" ; then
30250 TAPEDRIVE="/dev/nst0"
30251 PSCMD="ps -e -o pid,command"
30252 if test "$DISTNAME" = "ubuntu" ; then
30253 PFILES="${PFILES} \
30254 platforms/ubuntu/Makefile \
30255 platforms/ubuntu/bacula-fd \
30256 platforms/ubuntu/bacula-sd \
30257 platforms/ubuntu/bacula-dir"
30259 PFILES="${PFILES} \
30260 platforms/debian/Makefile \
30261 platforms/debian/bacula-fd \
30262 platforms/debian/bacula-sd \
30263 platforms/debian/bacula-dir"
30267 DISTVER=`uname -a |awk '{print $3}'`
30268 VER=`echo $DISTVER | cut -c 1`
30269 if test x$VER = x4 ; then
30270 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30271 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30275 TAPEDRIVE="/dev/nrsa0"
30276 PSCMD="ps -ax -o pid,command"
30277 PFILES="${PFILES} \
30278 platforms/freebsd/Makefile \
30279 platforms/freebsd/bacula-fd \
30280 platforms/freebsd/bacula-sd \
30281 platforms/freebsd/bacula-dir"
30282 largefile_support="yes"
30285 PSCMD="UNIX95=1; ps -e -o pid,comm"
30286 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30288 TAPEDRIVE="/dev/rmt/0hnb"
30289 PTHREAD_LIB="-lpthread"
30290 cat >>confdefs.h <<\_ACEOF
30291 #define _INCLUDE_LONGLONG 1
30297 TAPEDRIVE="/dev/rmt/0cbn"
30298 PSCMD="ps -e -o pid,comm"
30299 PFILES="${PFILES} \
30300 platforms/irix/Makefile \
30301 platforms/irix/bacula-fd \
30302 platforms/irix/bacula-sd \
30303 platforms/irix/bacula-dir"
30306 DISTVER=`uname -a |awk '{print $3}'`
30309 TAPEDRIVE="/dev/nrst0"
30310 PSCMD="ps -ax -o pid,command"
30311 PTHREAD_LIB="-pthread"
30312 CFLAGS="${CFLAGS} -pthread"
30315 DISTVER=`uname -a |awk '{print $3}'`
30318 TAPEDRIVE="/dev/nrst0"
30319 PSCMD="ps -ax -o pid,command"
30320 PTHREAD_LIB="-pthread"
30321 CFLAGS="${CFLAGS} -pthread"
30322 PFILES="${PFILES} \
30323 platforms/openbsd/Makefile \
30324 platforms/openbsd/bacula-fd \
30325 platforms/openbsd/bacula-sd \
30326 platforms/openbsd/bacula-dir"
30329 if test -f /etc/whitebox-release ; then
30330 f=/etc/whitebox-release
30332 f=/etc/redhat-release
30334 if test `cat $f | grep release |\
30335 cut -f 3 -d ' '`x = "Enterprise"x ; then
30336 DISTVER="Enterprise "`cat $f | grep release |\
30339 DISTVER=`cat /etc/redhat-release | grep release |\
30342 TAPEDRIVE="/dev/nst0"
30343 PSCMD="ps -e -o pid,command"
30344 PFILES="${PFILES} \
30345 platforms/redhat/Makefile \
30346 platforms/redhat/bacula-fd \
30347 platforms/redhat/bacula-sd \
30348 platforms/redhat/bacula-dir \
30349 platforms/redhat/bacula.spec \
30353 DISTVER=`cat /etc/mandrake-release | grep release |\
30355 TAPEDRIVE="/dev/nst0"
30356 PSCMD="ps -e -o pid,command"
30357 PFILES="${PFILES} \
30358 platforms/mandrake/Makefile \
30359 platforms/mandrake/bacula-fd \
30360 platforms/mandrake/bacula-sd \
30361 platforms/mandrake/bacula-dir \
30362 platforms/mandrake/bacula.spec \
30366 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30367 TAPEDRIVE="/dev/nst0"
30368 PSCMD="ps -e -o pid,command"
30369 PFILES="${PFILES} \
30370 platforms/gentoo/Makefile \
30371 platforms/gentoo/bacula-init \
30372 platforms/gentoo/bacula-fd \
30373 platforms/gentoo/bacula-sd \
30374 platforms/gentoo/bacula-dir"
30377 DISTVER=`cat /etc/slackware-version`
30378 TAPEDRIVE="/dev/nst0"
30379 PSCMD="ps -e -o pid,command"
30380 PFILES="${PFILES} \
30381 platforms/slackware/Makefile \
30382 platforms/slackware/rc.bacula-fd \
30383 platforms/slackware/rc.bacula-sd \
30384 platforms/slackware/rc.bacula-dir\
30385 platforms/slackware/functions.bacula"
30389 TAPEDRIVE="/dev/rmt/0cbn"
30390 PSCMD="ps -e -o pid,comm"
30391 PFILES="${PFILES} \
30392 platforms/solaris/Makefile \
30393 platforms/solaris/bacula-fd \
30394 platforms/solaris/bacula-sd \
30395 platforms/solaris/bacula-dir"
30396 if test x$DISTVER = x5.6 ; then
30397 cat >>confdefs.h <<\_ACEOF
30398 #define HAVE_OLD_SOCKOPT 1
30402 LIBS="$LIBS -lresolv"
30405 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30407 TAPEDRIVE="/dev/nst0"
30408 PSCMD="ps -e -o pid,command"
30409 PFILES="${PFILES} \
30410 platforms/suse/Makefile \
30411 platforms/suse/bacula-fd \
30412 platforms/suse/bacula-sd \
30413 platforms/suse/bacula-dir \
30414 platforms/suse/bacula \
30415 platforms/suse/bacula.spec"
30420 TAPEDRIVE="/dev/nst0"
30421 PSCMD="ps -e -o pid,command"
30422 PFILES="${PFILES} \
30423 platforms/suse/Makefile \
30424 platforms/suse/bacula-fd \
30425 platforms/suse/bacula-sd \
30426 platforms/suse/bacula-dir"
30430 TAPEDRIVE="/dev/nst0"
30433 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30439 LIBS="$PTHREAD_LIB $LIBS"
30441 cat >>confdefs.h <<_ACEOF
30445 cat >>confdefs.h <<_ACEOF
30456 MCOMMON=./autoconf/Make.common
30459 if test "x${subsysdir}" = "x${sbindir}" ; then
30462 echo "You have set both --sbindir and --with-subsys-dir"
30463 echo " equal to: ${subsysdir} "
30464 echo "This is not permitted. Please reconfigure."
30466 echo "Aborting configuration ..."
30472 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
30474 ac_config_commands="$ac_config_commands default"
30476 cat >confcache <<\_ACEOF
30477 # This file is a shell script that caches the results of configure
30478 # tests run on this system so they can be shared between configure
30479 # scripts and configure runs, see configure's option --config-cache.
30480 # It is not useful on other systems. If it contains results you don't
30481 # want to keep, you may remove or edit it.
30483 # config.status only pays attention to the cache file if you give it
30484 # the --recheck option to rerun configure.
30486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30488 # following values.
30492 # The following way of writing the cache mishandles newlines in values,
30493 # but we know of no workaround that is simple, portable, and efficient.
30494 # So, we kill variables containing newlines.
30495 # Ultrix sh set writes to stderr and can't be redirected directly,
30496 # and sets the high bit in the cache file unless we assign to the vars.
30498 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30499 eval ac_val=\$$ac_var
30503 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30504 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30507 _ | IFS | as_nl) ;; #(
30508 *) $as_unset $ac_var ;;
30514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30515 *${as_nl}ac_space=\ *)
30516 # `set' does not quote correctly, so add quotes (double-quote
30517 # substitution turns \\\\ into \\, and sed turns \\ into \).
30520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30523 # `set' quotes correctly as required by POSIX, so do not add quotes.
30524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30538 if test -w "$cache_file"; then
30539 test "x$cache_file" != "x/dev/null" &&
30540 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30541 echo "$as_me: updating cache $cache_file" >&6;}
30542 cat confcache >$cache_file
30544 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30545 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30551 # Let make expand exec_prefix.
30552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30554 DEFS=-DHAVE_CONFIG_H
30558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30559 # 1. Remove the extension, and $U if already installed.
30560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30561 ac_i=`echo "$ac_i" | sed "$ac_script"`
30562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30563 # will be set to the directory where LIBOBJS objects are built.
30564 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30565 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30567 LIBOBJS=$ac_libobjs
30569 LTLIBOBJS=$ac_ltlibobjs
30573 : ${CONFIG_STATUS=./config.status}
30574 ac_clean_files_save=$ac_clean_files
30575 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30576 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30577 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30578 cat >$CONFIG_STATUS <<_ACEOF
30580 # Generated by $as_me.
30581 # Run this file to recreate the current configuration.
30582 # Compiler output produced by configure, useful for debugging
30583 # configure, is in config.log if it exists.
30586 ac_cs_recheck=false
30588 SHELL=\${CONFIG_SHELL-$SHELL}
30591 cat >>$CONFIG_STATUS <<\_ACEOF
30592 ## --------------------- ##
30593 ## M4sh Initialization. ##
30594 ## --------------------- ##
30596 # Be more Bourne compatible
30597 DUALCASE=1; export DUALCASE # for MKS sh
30598 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30601 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30602 # is contrary to our usage. Disable this feature.
30603 alias -g '${1+"$@"}'='"$@"'
30604 setopt NO_GLOB_SUBST
30606 case `(set -o) 2>/dev/null` in
30607 *posix*) set -o posix ;;
30616 # Avoid depending upon Character Ranges.
30617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30620 as_cr_digits='0123456789'
30621 as_cr_alnum=$as_cr_Letters$as_cr_digits
30623 # The user is always right.
30624 if test "${PATH_SEPARATOR+set}" != set; then
30625 echo "#! /bin/sh" >conf$$.sh
30626 echo "exit 0" >>conf$$.sh
30628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30636 # Support unset when possible.
30637 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30645 # We need space, tab and new line, in precisely that order. Quoting is
30646 # there to prevent editors from complaining about space-tab.
30647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30648 # splitting by setting IFS to empty value.)
30653 # Find who we are. Look in the path if we contain no directory separator.
30655 *[\\/]* ) as_myself=$0 ;;
30656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30657 for as_dir in $PATH
30660 test -z "$as_dir" && as_dir=.
30661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30667 # We did not find ourselves, most probably we were run as `sh COMMAND'
30668 # in which case we are not to be found in the path.
30669 if test "x$as_myself" = x; then
30672 if test ! -f "$as_myself"; then
30673 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30674 { (exit 1); exit 1; }
30677 # Work around bugs in pre-3.0 UWIN ksh.
30678 for as_var in ENV MAIL MAILPATH
30679 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30687 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30688 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30689 LC_TELEPHONE LC_TIME
30691 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30692 eval $as_var=C; export $as_var
30694 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30698 # Required to use basename.
30699 if expr a : '\(a\)' >/dev/null 2>&1 &&
30700 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30706 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30707 as_basename=basename
30713 # Name of the executable.
30714 as_me=`$as_basename -- "$0" ||
30715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30716 X"$0" : 'X\(//\)$' \| \
30717 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30719 sed '/^.*\/\([^/][^/]*\)\/*$/{
30738 as_lineno_1=$LINENO
30739 as_lineno_2=$LINENO
30740 test "x$as_lineno_1" != "x$as_lineno_2" &&
30741 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30743 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30744 # uniformly replaced by the line number. The first 'sed' inserts a
30745 # line-number line after each line using $LINENO; the second 'sed'
30746 # does the real work. The second script uses 'N' to pair each
30747 # line-number line with the line containing $LINENO, and appends
30748 # trailing '-' during substitution so that $LINENO is not a special
30749 # case at line end.
30750 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30751 # scripts with optimization help from Paolo Bonzini. Blame Lee
30752 # E. McMahon (1931-1989) for sed's syntax. :-)
30764 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30767 ' >$as_me.lineno &&
30768 chmod +x "$as_me.lineno" ||
30769 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30770 { (exit 1); exit 1; }; }
30772 # Don't try to exec as it changes $[0], causing all sort of problems
30773 # (the dirname of $[0] is not the place where we might find the
30774 # original and so on. Autoconf is especially sensitive to this).
30775 . "./$as_me.lineno"
30776 # Exit status is that of the last command.
30781 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30787 ECHO_C= ECHO_N= ECHO_T=
30788 case `echo -n x` in
30790 case `echo 'x\c'` in
30791 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30798 if expr a : '\(a\)' >/dev/null 2>&1 &&
30799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30805 rm -f conf$$ conf$$.exe conf$$.file
30806 if test -d conf$$.dir; then
30807 rm -f conf$$.dir/conf$$.file
30813 if ln -s conf$$.file conf$$ 2>/dev/null; then
30815 # ... but there are two gotchas:
30816 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30817 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30818 # In both cases, we have to default to `cp -p'.
30819 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30821 elif ln conf$$.file conf$$ 2>/dev/null; then
30826 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30827 rmdir conf$$.dir 2>/dev/null
30829 if mkdir -p . 2>/dev/null; then
30832 test -d ./-p && rmdir ./-p
30836 if test -x / >/dev/null 2>&1; then
30837 as_test_x='test -x'
30839 if ls -dL / >/dev/null 2>&1; then
30846 if test -d "$1"; then
30852 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30853 ???[sx]*):;;*)false;;esac;fi
30857 as_executable_p=$as_test_x
30859 # Sed expression to map a string onto a valid CPP name.
30860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30862 # Sed expression to map a string onto a valid variable name.
30863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30868 # Save the log message, to keep $[0] and so on meaningful, and to
30869 # report actual input values of CONFIG_FILES etc. instead of their
30870 # values after options handling.
30872 This file was extended by $as_me, which was
30873 generated by GNU Autoconf 2.61. Invocation command line was
30875 CONFIG_FILES = $CONFIG_FILES
30876 CONFIG_HEADERS = $CONFIG_HEADERS
30877 CONFIG_LINKS = $CONFIG_LINKS
30878 CONFIG_COMMANDS = $CONFIG_COMMANDS
30881 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30886 cat >>$CONFIG_STATUS <<_ACEOF
30887 # Files that config.status was made for.
30888 config_files="$ac_config_files"
30889 config_headers="$ac_config_headers"
30890 config_commands="$ac_config_commands"
30894 cat >>$CONFIG_STATUS <<\_ACEOF
30896 \`$as_me' instantiates files from templates according to the
30897 current configuration.
30899 Usage: $0 [OPTIONS] [FILE]...
30901 -h, --help print this help, then exit
30902 -V, --version print version number and configuration settings, then exit
30903 -q, --quiet do not print progress messages
30904 -d, --debug don't remove temporary files
30905 --recheck update $as_me by reconfiguring in the same conditions
30906 --file=FILE[:TEMPLATE]
30907 instantiate the configuration file FILE
30908 --header=FILE[:TEMPLATE]
30909 instantiate the configuration header FILE
30911 Configuration files:
30914 Configuration headers:
30917 Configuration commands:
30920 Report bugs to <bug-autoconf@gnu.org>."
30923 cat >>$CONFIG_STATUS <<_ACEOF
30926 configured by $0, generated by GNU Autoconf 2.61,
30927 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30929 Copyright (C) 2006 Free Software Foundation, Inc.
30930 This config.status script is free software; the Free Software Foundation
30931 gives unlimited permission to copy, distribute and modify it."
30938 cat >>$CONFIG_STATUS <<\_ACEOF
30939 # If no file are specified by the user, then we need to provide default
30940 # value. By we need to know if files were specified by the user.
30946 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30947 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30958 # Handling of the options.
30959 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30961 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30962 echo "$ac_cs_version"; exit ;;
30963 --debug | --debu | --deb | --de | --d | -d )
30965 --file | --fil | --fi | --f )
30967 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30968 ac_need_defaults=false;;
30969 --header | --heade | --head | --hea )
30971 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30972 ac_need_defaults=false;;
30974 # Conflict between --help and --header
30975 { echo "$as_me: error: ambiguous option: $1
30976 Try \`$0 --help' for more information." >&2
30977 { (exit 1); exit 1; }; };;
30978 --help | --hel | -h )
30979 echo "$ac_cs_usage"; exit ;;
30980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30981 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30984 # This is an error.
30985 -*) { echo "$as_me: error: unrecognized option: $1
30986 Try \`$0 --help' for more information." >&2
30987 { (exit 1); exit 1; }; } ;;
30989 *) ac_config_targets="$ac_config_targets $1"
30990 ac_need_defaults=false ;;
30996 ac_configure_extra_args=
30998 if $ac_cs_silent; then
31000 ac_configure_extra_args="$ac_configure_extra_args --silent"
31004 cat >>$CONFIG_STATUS <<_ACEOF
31005 if \$ac_cs_recheck; then
31006 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31007 CONFIG_SHELL=$SHELL
31008 export CONFIG_SHELL
31009 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31013 cat >>$CONFIG_STATUS <<\_ACEOF
31017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31018 ## Running $as_me. ##
31024 cat >>$CONFIG_STATUS <<_ACEOF
31028 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31029 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31031 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31032 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31033 LINGUAS="${LINGUAS-%UNSET%}"
31038 cat >>$CONFIG_STATUS <<\_ACEOF
31040 # Handling of arguments.
31041 for ac_config_target in $ac_config_targets
31043 case $ac_config_target in
31044 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31045 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31046 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31047 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31048 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31049 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31050 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31051 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31052 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31053 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31054 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31055 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31056 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31057 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31058 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31059 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31060 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31061 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31062 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31063 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31064 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31065 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31066 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31067 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31068 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31069 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31070 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31071 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31072 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31073 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31074 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31075 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31076 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31077 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31078 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31079 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31080 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31081 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31082 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31083 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31084 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31085 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31086 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31087 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31088 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31089 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31090 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31091 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31092 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31093 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31094 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31095 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31096 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31097 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31098 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31099 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31100 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31101 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31102 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31103 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31104 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31105 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31106 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31107 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31108 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31109 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31110 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31111 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31112 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31113 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31114 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31115 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31116 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31117 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31118 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31119 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31120 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31121 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31122 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31123 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31124 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31125 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31126 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31127 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31128 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31129 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31130 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31131 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31132 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31133 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31134 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31135 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31136 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31137 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31138 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31139 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31140 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31141 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31142 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31143 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31144 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31145 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31146 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31147 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31148 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31149 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31150 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31151 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31152 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31153 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31155 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31156 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31157 { (exit 1); exit 1; }; };;
31162 # If the user did not use the arguments to specify the items to instantiate,
31163 # then the envvar interface is used. Set only those that are not.
31164 # We use the long form for the default assignment because of an extremely
31165 # bizarre bug on SunOS 4.1.3.
31166 if $ac_need_defaults; then
31167 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31168 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31169 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31172 # Have a temporary directory for convenience. Make it in the build tree
31173 # simply because there is no reason against having it here, and in addition,
31174 # creating and moving files from /tmp can sometimes cause problems.
31175 # Hook for its removal unless debugging.
31176 # Note that there is a small window in which the directory will not be cleaned:
31177 # after its creation but before its name has been assigned to `$tmp'.
31181 trap 'exit_status=$?
31182 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31184 trap '{ (exit 1); exit 1; }' 1 2 13 15
31186 # Create a (secure) tmp directory for tmp files.
31189 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31190 test -n "$tmp" && test -d "$tmp"
31193 tmp=./conf$$-$RANDOM
31194 (umask 077 && mkdir "$tmp")
31197 echo "$me: cannot create a temporary directory in ." >&2
31198 { (exit 1); exit 1; }
31202 # Set up the sed scripts for CONFIG_FILES section.
31205 # No need to generate the scripts if there are no CONFIG_FILES.
31206 # This happens for instance when ./config.status config.h
31207 if test -n "$CONFIG_FILES"; then
31211 # Create sed commands to just substitute file output variables.
31213 # Remaining file output variables are in a fragment that also has non-file
31219 for ac_last_try in false false false false false :; do
31220 cat >conf$$subs.sed <<_ACEOF
31221 SHELL!$SHELL$ac_delim
31222 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31223 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31224 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31225 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31226 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31227 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31228 exec_prefix!$exec_prefix$ac_delim
31229 prefix!$prefix$ac_delim
31230 program_transform_name!$program_transform_name$ac_delim
31231 bindir!$bindir$ac_delim
31232 sbindir!$sbindir$ac_delim
31233 libexecdir!$libexecdir$ac_delim
31234 datarootdir!$datarootdir$ac_delim
31235 datadir!$datadir$ac_delim
31236 sysconfdir!$sysconfdir$ac_delim
31237 sharedstatedir!$sharedstatedir$ac_delim
31238 localstatedir!$localstatedir$ac_delim
31239 includedir!$includedir$ac_delim
31240 oldincludedir!$oldincludedir$ac_delim
31241 docdir!$docdir$ac_delim
31242 infodir!$infodir$ac_delim
31243 htmldir!$htmldir$ac_delim
31244 dvidir!$dvidir$ac_delim
31245 pdfdir!$pdfdir$ac_delim
31246 psdir!$psdir$ac_delim
31247 libdir!$libdir$ac_delim
31248 localedir!$localedir$ac_delim
31249 mandir!$mandir$ac_delim
31250 DEFS!$DEFS$ac_delim
31251 ECHO_C!$ECHO_C$ac_delim
31252 ECHO_N!$ECHO_N$ac_delim
31253 ECHO_T!$ECHO_T$ac_delim
31254 LIBS!$LIBS$ac_delim
31255 build_alias!$build_alias$ac_delim
31256 host_alias!$host_alias$ac_delim
31257 target_alias!$target_alias$ac_delim
31258 BUILD_DIR!$BUILD_DIR$ac_delim
31259 TOP_DIR!$TOP_DIR$ac_delim
31260 TRUEPRG!$TRUEPRG$ac_delim
31261 FALSEPRG!$FALSEPRG$ac_delim
31262 VERSION!$VERSION$ac_delim
31263 DATE!$DATE$ac_delim
31264 LSMDATE!$LSMDATE$ac_delim
31266 CFLAGS!$CFLAGS$ac_delim
31267 LDFLAGS!$LDFLAGS$ac_delim
31268 CPPFLAGS!$CPPFLAGS$ac_delim
31269 ac_ct_CC!$ac_ct_CC$ac_delim
31270 EXEEXT!$EXEEXT$ac_delim
31271 OBJEXT!$OBJEXT$ac_delim
31273 CXXFLAGS!$CXXFLAGS$ac_delim
31274 ac_ct_CXX!$ac_ct_CXX$ac_delim
31276 GREP!$GREP$ac_delim
31277 EGREP!$EGREP$ac_delim
31278 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31279 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31280 INSTALL_DATA!$INSTALL_DATA$ac_delim
31281 RANLIB!$RANLIB$ac_delim
31286 ECHO!$ECHO$ac_delim
31290 OPENSSL!$OPENSSL$ac_delim
31293 MKISOFS!$MKISOFS$ac_delim
31294 PYTHON!$PYTHON$ac_delim
31295 GROWISOFS!$GROWISOFS$ac_delim
31296 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31297 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31298 PKGCONFIG!$PKGCONFIG$ac_delim
31299 QMAKE!$QMAKE$ac_delim
31300 QMAKEQT4!$QMAKEQT4$ac_delim
31301 WXCONFIG!$WXCONFIG$ac_delim
31302 WXFLAGS!$WXFLAGS$ac_delim
31303 CDRECORD!$CDRECORD$ac_delim
31304 PIDOF!$PIDOF$ac_delim
31306 ARFLAGS!$ARFLAGS$ac_delim
31307 MAKE_SHELL!$MAKE_SHELL$ac_delim
31308 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31309 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31310 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31311 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31312 build!$build$ac_delim
31313 build_cpu!$build_cpu$ac_delim
31314 build_vendor!$build_vendor$ac_delim
31317 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31319 elif $ac_last_try; then
31320 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31321 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31322 { (exit 1); exit 1; }; }
31324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31328 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31329 if test -n "$ac_eof"; then
31330 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31331 ac_eof=`expr $ac_eof + 1`
31334 cat >>$CONFIG_STATUS <<_ACEOF
31335 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31337 /^[ ]*@MCOMMON@[ ]*$/{
31343 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31344 s/^/s,@/; s/!/@,|#_!!_#|/
31347 s/'"$ac_delim"'$/,g/; t
31349 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31350 ' >>$CONFIG_STATUS <conf$$subs.sed
31351 rm -f conf$$subs.sed
31352 cat >>$CONFIG_STATUS <<_ACEOF
31358 for ac_last_try in false false false false false :; do
31359 cat >conf$$subs.sed <<_ACEOF
31360 build_os!$build_os$ac_delim
31361 host!$host$ac_delim
31362 host_cpu!$host_cpu$ac_delim
31363 host_vendor!$host_vendor$ac_delim
31364 host_os!$host_os$ac_delim
31365 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31366 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31367 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31368 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31369 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31370 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31371 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31372 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31373 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31374 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31375 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31376 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31377 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31378 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31379 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31380 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31381 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31382 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31383 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31384 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31385 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31386 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31387 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31388 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31389 SET_MAKE!$SET_MAKE$ac_delim
31390 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31391 USE_NLS!$USE_NLS$ac_delim
31392 MSGFMT!$MSGFMT$ac_delim
31393 GMSGFMT!$GMSGFMT$ac_delim
31394 XGETTEXT!$XGETTEXT$ac_delim
31395 MSGMERGE!$MSGMERGE$ac_delim
31396 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31397 LIBICONV!$LIBICONV$ac_delim
31398 LTLIBICONV!$LTLIBICONV$ac_delim
31399 INTLLIBS!$INTLLIBS$ac_delim
31400 LIBINTL!$LIBINTL$ac_delim
31401 LTLIBINTL!$LTLIBINTL$ac_delim
31402 POSUB!$POSUB$ac_delim
31403 GLIBC2!$GLIBC2$ac_delim
31404 ALLOCA!$ALLOCA$ac_delim
31405 GLIBC21!$GLIBC21$ac_delim
31406 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31407 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31408 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31409 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31410 INTLBISON!$INTLBISON$ac_delim
31411 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31412 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31413 CATOBJEXT!$CATOBJEXT$ac_delim
31414 DATADIRNAME!$DATADIRNAME$ac_delim
31415 INSTOBJEXT!$INSTOBJEXT$ac_delim
31416 GENCAT!$GENCAT$ac_delim
31417 INTLOBJS!$INTLOBJS$ac_delim
31418 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31419 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31420 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31421 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31422 GNOME_LIBS!$GNOME_LIBS$ac_delim
31423 GNOME_DIR!$GNOME_DIR$ac_delim
31424 BAT_DIR!$BAT_DIR$ac_delim
31425 QWT_INC!$QWT_INC$ac_delim
31426 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31427 QWT_LIB!$QWT_LIB$ac_delim
31429 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31430 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31431 WX_DIR!$WX_DIR$ac_delim
31432 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31433 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31434 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31435 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31436 STATIC_FD!$STATIC_FD$ac_delim
31437 STATIC_SD!$STATIC_SD$ac_delim
31438 STATIC_DIR!$STATIC_DIR$ac_delim
31439 STATIC_CONS!$STATIC_CONS$ac_delim
31440 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31441 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31442 ALL_DIRS!$ALL_DIRS$ac_delim
31443 DIRD_DIR!$DIRD_DIR$ac_delim
31444 DIR_TOOLS!$DIR_TOOLS$ac_delim
31445 STORED_DIR!$STORED_DIR$ac_delim
31446 CONS_INC!$CONS_INC$ac_delim
31447 CONS_OBJ!$CONS_OBJ$ac_delim
31448 CONS_SRC!$CONS_SRC$ac_delim
31449 CONS_LIBS!$CONS_LIBS$ac_delim
31450 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31451 READLINE_SRC!$READLINE_SRC$ac_delim
31452 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31453 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31454 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31455 OPENSSL_INC!$OPENSSL_INC$ac_delim
31456 working_dir!$working_dir$ac_delim
31459 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31461 elif $ac_last_try; then
31462 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31463 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31464 { (exit 1); exit 1; }; }
31466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31470 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31471 if test -n "$ac_eof"; then
31472 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31473 ac_eof=`expr $ac_eof + 1`
31476 cat >>$CONFIG_STATUS <<_ACEOF
31477 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31478 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31481 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31482 s/^/s,@/; s/!/@,|#_!!_#|/
31485 s/'"$ac_delim"'$/,g/; t
31487 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31488 ' >>$CONFIG_STATUS <conf$$subs.sed
31489 rm -f conf$$subs.sed
31490 cat >>$CONFIG_STATUS <<_ACEOF
31496 for ac_last_try in false false false false false :; do
31497 cat >conf$$subs.sed <<_ACEOF
31498 archivedir!$archivedir$ac_delim
31499 scriptdir!$scriptdir$ac_delim
31500 dump_email!$dump_email$ac_delim
31501 job_email!$job_email$ac_delim
31502 smtp_host!$smtp_host$ac_delim
31503 piddir!$piddir$ac_delim
31504 subsysdir!$subsysdir$ac_delim
31505 baseport!$baseport$ac_delim
31506 dir_port!$dir_port$ac_delim
31507 fd_port!$fd_port$ac_delim
31508 sd_port!$sd_port$ac_delim
31509 dir_password!$dir_password$ac_delim
31510 fd_password!$fd_password$ac_delim
31511 sd_password!$sd_password$ac_delim
31512 mon_dir_password!$mon_dir_password$ac_delim
31513 mon_fd_password!$mon_fd_password$ac_delim
31514 mon_sd_password!$mon_sd_password$ac_delim
31515 db_name!$db_name$ac_delim
31516 db_user!$db_user$ac_delim
31517 dir_user!$dir_user$ac_delim
31518 dir_group!$dir_group$ac_delim
31519 sd_user!$sd_user$ac_delim
31520 sd_group!$sd_group$ac_delim
31521 fd_user!$fd_user$ac_delim
31522 fd_group!$fd_group$ac_delim
31523 SBINPERM!$SBINPERM$ac_delim
31524 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31525 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31526 SQL_BINDIR!$SQL_BINDIR$ac_delim
31527 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31528 DB_PROG!$DB_PROG$ac_delim
31529 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31530 cats!$cats$ac_delim
31531 DB_TYPE!$DB_TYPE$ac_delim
31532 GETCONF!$GETCONF$ac_delim
31533 XMKMF!$XMKMF$ac_delim
31534 X_CFLAGS!$X_CFLAGS$ac_delim
31535 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31536 X_LIBS!$X_LIBS$ac_delim
31537 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31538 LIBOBJS!$LIBOBJS$ac_delim
31539 FDLIBS!$FDLIBS$ac_delim
31540 DEBUG!$DEBUG$ac_delim
31541 DINCLUDE!$DINCLUDE$ac_delim
31542 DLIB!$DLIB$ac_delim
31543 DB_LIBS!$DB_LIBS$ac_delim
31544 WCFLAGS!$WCFLAGS$ac_delim
31545 WLDFLAGS!$WLDFLAGS$ac_delim
31546 WRAPLIBS!$WRAPLIBS$ac_delim
31547 OBJLIST!$OBJLIST$ac_delim
31548 hostname!$hostname$ac_delim
31549 TAPEDRIVE!$TAPEDRIVE$ac_delim
31550 PSCMD!$PSCMD$ac_delim
31551 WIN32!$WIN32$ac_delim
31552 MACOSX!$MACOSX$ac_delim
31553 DISTNAME!$DISTNAME$ac_delim
31554 DISTVER!$DISTVER$ac_delim
31555 LTLIBOBJS!$LTLIBOBJS$ac_delim
31558 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
31560 elif $ac_last_try; then
31561 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31562 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31563 { (exit 1); exit 1; }; }
31565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31569 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31570 if test -n "$ac_eof"; then
31571 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31572 ac_eof=`expr $ac_eof + 1`
31575 cat >>$CONFIG_STATUS <<_ACEOF
31576 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31580 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31581 s/^/s,@/; s/!/@,|#_!!_#|/
31584 s/'"$ac_delim"'$/,g/; t
31586 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31587 ' >>$CONFIG_STATUS <conf$$subs.sed
31588 rm -f conf$$subs.sed
31589 cat >>$CONFIG_STATUS <<_ACEOF
31596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31598 # trailing colons and then remove the whole line if VPATH becomes empty
31599 # (actually we leave an empty line to preserve line numbers).
31600 if test "x$srcdir" = x.; then
31601 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31602 s/:*\$(srcdir):*/:/
31603 s/:*\${srcdir}:*/:/
31605 s/^\([^=]*=[ ]*\):*/\1/
31611 cat >>$CONFIG_STATUS <<\_ACEOF
31612 fi # test -n "$CONFIG_FILES"
31615 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31618 :[FHLC]) ac_mode=$ac_tag; continue;;
31620 case $ac_mode$ac_tag in
31622 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31623 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31624 { (exit 1); exit 1; }; };;
31625 :[FH]-) ac_tag=-:-;;
31626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31643 -) ac_f="$tmp/stdin";;
31644 *) # Look for the file first in the build tree, then in the source tree
31645 # (if the path is not absolute). The absolute path cannot be DOS-style,
31646 # because $ac_f cannot contain `:'.
31650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31652 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31653 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31654 { (exit 1); exit 1; }; };;
31656 ac_file_inputs="$ac_file_inputs $ac_f"
31659 # Let's still pretend it is `configure' which instantiates (i.e., don't
31660 # use $as_me), people would be surprised to read:
31661 # /* config.h. Generated by config.status. */
31662 configure_input="Generated from "`IFS=:
31663 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31664 if test x"$ac_file" != x-; then
31665 configure_input="$ac_file. $configure_input"
31666 { echo "$as_me:$LINENO: creating $ac_file" >&5
31667 echo "$as_me: creating $ac_file" >&6;}
31671 *:-:* | *:-) cat >"$tmp/stdin";;
31676 ac_dir=`$as_dirname -- "$ac_file" ||
31677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31678 X"$ac_file" : 'X\(//\)[^/]' \| \
31679 X"$ac_file" : 'X\(//\)$' \| \
31680 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31686 /^X\(\/\/\)[^/].*/{
31701 -*) as_dir=./$as_dir;;
31703 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31707 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31708 *) as_qdir=$as_dir;;
31710 as_dirs="'$as_qdir' $as_dirs"
31711 as_dir=`$as_dirname -- "$as_dir" ||
31712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31713 X"$as_dir" : 'X\(//\)[^/]' \| \
31714 X"$as_dir" : 'X\(//\)$' \| \
31715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31721 /^X\(\/\/\)[^/].*/{
31734 test -d "$as_dir" && break
31736 test -z "$as_dirs" || eval "mkdir $as_dirs"
31737 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31739 { (exit 1); exit 1; }; }; }
31743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31746 # A ".." for each directory in $ac_dir_suffix.
31747 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31748 case $ac_top_builddir_sub in
31749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31753 ac_abs_top_builddir=$ac_pwd
31754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31755 # for backward compatibility:
31756 ac_top_builddir=$ac_top_build_prefix
31759 .) # We are building in place.
31761 ac_top_srcdir=$ac_top_builddir_sub
31762 ac_abs_top_srcdir=$ac_pwd ;;
31763 [\\/]* | ?:[\\/]* ) # Absolute name.
31764 ac_srcdir=$srcdir$ac_dir_suffix;
31765 ac_top_srcdir=$srcdir
31766 ac_abs_top_srcdir=$srcdir ;;
31767 *) # Relative name.
31768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31769 ac_top_srcdir=$ac_top_build_prefix$srcdir
31770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31783 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31787 cat >>$CONFIG_STATUS <<\_ACEOF
31788 # If the template does not know about datarootdir, expand it.
31789 # FIXME: This hack should be removed a few years after 2.60.
31790 ac_datarootdir_hack=; ac_datarootdir_seen=
31792 case `sed -n '/datarootdir/ {
31801 ' $ac_file_inputs` in
31802 *datarootdir*) ac_datarootdir_seen=yes;;
31803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31804 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31805 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31807 cat >>$CONFIG_STATUS <<_ACEOF
31808 ac_datarootdir_hack='
31809 s&@datadir@&$datadir&g
31810 s&@docdir@&$docdir&g
31811 s&@infodir@&$infodir&g
31812 s&@localedir@&$localedir&g
31813 s&@mandir@&$mandir&g
31814 s&\\\${datarootdir}&$datarootdir&g' ;;
31818 # Neutralize VPATH when `$srcdir' = `.'.
31819 # Shell code in configure.ac might set extrasub.
31820 # FIXME: do we really want to maintain this feature?
31821 cat >>$CONFIG_STATUS <<_ACEOF
31825 cat >>$CONFIG_STATUS <<\_ACEOF
31827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31828 s&@configure_input@&$configure_input&;t t
31829 s&@top_builddir@&$ac_top_builddir_sub&;t t
31830 s&@srcdir@&$ac_srcdir&;t t
31831 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31832 s&@top_srcdir@&$ac_top_srcdir&;t t
31833 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31834 s&@builddir@&$ac_builddir&;t t
31835 s&@abs_builddir@&$ac_abs_builddir&;t t
31836 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31837 s&@INSTALL@&$ac_INSTALL&;t t
31838 $ac_datarootdir_hack
31839 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31842 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31844 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31845 which seems to be undefined. Please make sure it is defined." >&5
31846 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31847 which seems to be undefined. Please make sure it is defined." >&2;}
31851 -) cat "$tmp/out"; rm -f "$tmp/out";;
31852 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31861 # Transform confdefs.h into a sed script `conftest.defines', that
31862 # substitutes the proper values into config.h.in to produce config.h.
31863 rm -f conftest.defines conftest.tail
31864 # First, append a space to every undef/define line, to ease matching.
31865 echo 's/$/ /' >conftest.defines
31866 # Then, protect against being on the right side of a sed subst, or in
31867 # an unquoted here document, in config.status. If some macros were
31868 # called several times there might be several #defines for the same
31869 # symbol, which is useless. But do not sort them, since the last
31870 # AC_DEFINE must be honored.
31871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31872 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31873 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31874 # PARAMS is the parameter list in the macro definition--in most cases, it's
31875 # just an empty string.
31876 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31877 ac_dB='\\)[ (].*,\\1define\\2'
31885 s/^[ ]*#[ ]*define[ ][ ]*//
31890 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31891 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31892 ' >>conftest.defines
31894 # Remove the space that was appended to ease matching.
31895 # Then replace #undef with comments. This is necessary, for
31896 # example, in the case of _POSIX_SOURCE, which is predefined and required
31897 # on some systems where configure will not decide to define it.
31898 # (The regexp can be short, since the line contains either #define or #undef.)
31900 s,^[ #]*u.*,/* & */,' >>conftest.defines
31902 # Break up conftest.defines:
31903 ac_max_sed_lines=50
31905 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31906 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31907 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31909 ac_in='$ac_file_inputs'
31910 ac_out='"$tmp/out1"'
31911 ac_nxt='"$tmp/out2"'
31915 # Write a here document:
31916 cat >>$CONFIG_STATUS <<_ACEOF
31917 # First, check the format of the line:
31918 cat >"\$tmp/defines.sed" <<\\CEOF
31919 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31920 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31924 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31926 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31927 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31928 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31929 grep . conftest.tail >/dev/null || break
31930 rm -f conftest.defines
31931 mv conftest.tail conftest.defines
31933 rm -f conftest.defines conftest.tail
31935 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31936 cat >>$CONFIG_STATUS <<\_ACEOF
31937 if test x"$ac_file" != x-; then
31938 echo "/* $configure_input */" >"$tmp/config.h"
31939 cat "$ac_result" >>"$tmp/config.h"
31940 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31941 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31942 echo "$as_me: $ac_file is unchanged" >&6;}
31945 mv "$tmp/config.h" $ac_file
31948 echo "/* $configure_input */"
31954 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31955 echo "$as_me: executing $ac_file commands" >&6;}
31960 case $ac_file$ac_mode in
31962 for ac_file in $CONFIG_FILES; do
31963 # Support "outfile[:infile[:infile...]]"
31965 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31967 # PO directories have a Makefile.in generated from Makefile.in.in.
31968 case "$ac_file" in */Makefile.in)
31969 # Adjust a relative srcdir.
31970 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31971 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31972 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31973 # In autoconf-2.13 it is called $ac_given_srcdir.
31974 # In autoconf-2.50 it is called $srcdir.
31975 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31976 case "$ac_given_srcdir" in
31977 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31978 /*) top_srcdir="$ac_given_srcdir" ;;
31979 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31981 # Treat a directory as a PO directory if and only if it has a
31982 # POTFILES.in file. This allows packages to have multiple PO
31983 # directories under different names or in different locations.
31984 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31985 rm -f "$ac_dir/POTFILES"
31986 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31987 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31988 POMAKEFILEDEPS="POTFILES.in"
31989 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31990 # on $ac_dir but don't depend on user-specified configuration
31992 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31993 # The LINGUAS file contains the set of available languages.
31994 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31995 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31997 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31998 # Hide the ALL_LINGUAS assigment from automake.
31999 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32000 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32002 # The set of available languages was given in configure.in.
32003 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32006 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32007 # Compute UPDATEPOFILES
32008 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32009 # Compute DUMMYPOFILES
32010 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32012 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32013 case "$ac_given_srcdir" in
32015 *) srcdirpre='$(srcdir)/' ;;
32021 for lang in $ALL_LINGUAS; do
32022 POFILES="$POFILES $srcdirpre$lang.po"
32023 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32024 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32025 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32027 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32028 # environment variable.
32030 if test -n "$ALL_LINGUAS"; then
32031 for presentlang in $ALL_LINGUAS; do
32033 if test "%UNSET%" != "$LINGUAS"; then
32034 desiredlanguages="$LINGUAS"
32036 desiredlanguages="$ALL_LINGUAS"
32038 for desiredlang in $desiredlanguages; do
32039 # Use the presentlang catalog if desiredlang is
32040 # a. equal to presentlang, or
32041 # b. a variant of presentlang (because in this case,
32042 # presentlang can be used as a fallback for messages
32043 # which are not translated in the desiredlang catalog).
32044 case "$desiredlang" in
32045 "$presentlang"*) useit=yes;;
32048 if test $useit = yes; then
32049 INST_LINGUAS="$INST_LINGUAS $presentlang"
32054 if test -n "$INST_LINGUAS"; then
32055 for lang in $INST_LINGUAS; do
32056 CATALOGS="$CATALOGS $lang.gmo"
32059 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32060 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"
32061 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32062 if test -f "$f"; then
32064 *.orig | *.bak | *~) ;;
32065 *) cat "$f" >> "$ac_dir/Makefile" ;;
32080 { (exit 0); exit 0; }
32082 chmod +x $CONFIG_STATUS
32083 ac_clean_files=$ac_clean_files_save
32086 # configure is writing to config.log, and then calls config.status.
32087 # config.status does its own redirection, appending to config.log.
32088 # Unfortunately, on DOS this fails, as config.log is still kept open
32089 # by configure, so config.status won't be able to write to it; its
32090 # output is simply discarded. So we exec the FD to /dev/null,
32091 # effectively closing config.log, so it can be properly (re)opened and
32092 # appended to by config.status. When coming back to configure, we
32093 # need to make the FD available again.
32094 if test "$no_create" != yes; then
32096 ac_config_status_args=
32097 test "$silent" = yes &&
32098 ac_config_status_args="$ac_config_status_args --quiet"
32100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32103 # would make configure fail if this is the last instruction.
32104 $ac_cs_success || { (exit 1); exit 1; }
32108 if test "${support_bat}" = "yes" ; then
32109 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32110 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32116 if test "x$QMAKEQT4" != "xnone"; then
32121 chmod 755 install_conf_file build-depkgs-qt-console
32122 echo "Creating bat Makefile"
32127 # configure and prepare libtokyodbm for bacula
32128 pushd src/lib/tokyocabinet > /dev/null
32130 if test x$largefile_support = xyes; then
32131 tcdbm_opt=--enable-off64
32133 ./configure $tcdbm_opt
32135 # need tokyo header files for "make depend"
32136 cp src/lib/tokyocabinet/t*.h src/lib
32138 echo "Doing make of dependencies"
32139 ${MAKE:-make} depend
32142 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32143 chmod 755 dvd-handler dvd-simulator
32144 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32148 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32149 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
32153 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32154 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32156 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32157 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32159 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32160 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32162 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32163 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32165 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32166 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32168 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32169 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32171 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32172 chmod 755 $c/sqlite
32175 chmod 755 src/win32/build-depkgs-mingw32
32179 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32180 largefile_support="yes"
32184 # A whole lot of hand springs to get the compiler version.
32185 # This is because gcc changed the output in version 3.0
32187 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32188 if test "x${CCVERSION}" = "x" ; then
32189 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32191 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32192 if test x"${CXXVERSION}" = x ; then
32193 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32196 if test "x${subsysdir}" = "x${sbindir}" ; then
32199 echo "You have set --sbindir and --with-subsys-dir"
32200 echo " both equal to: ${subsysdir} "
32201 echo " This is not permitted. Please reconfigure."
32203 echo "Aborting configuration ..."
32209 if test "x${db_type}" = "xInternal" ; then
32212 echo "You have not specified either --enable-client-only or one of the"
32213 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32214 echo " This is not permitted. Please reconfigure."
32216 echo "Aborting the configuration ..."
32223 Configuration on `date`:
32225 Host: $host -- ${DISTNAME} ${DISTVER}
32226 Bacula version: ${VERSION} (${DATE})
32227 Source code location: ${srcdir}
32228 Install binaries: ${sbindir}
32229 Install config files: ${sysconfdir}
32230 Scripts directory: ${scriptdir}
32231 Archive directory: ${archivedir}
32232 Working directory: ${working_dir}
32233 PID directory: ${piddir}
32234 Subsys directory: ${subsysdir}
32235 Man directory: ${mandir}
32236 Data directory: ${datadir}
32237 C Compiler: ${CC} ${CCVERSION}
32238 C++ Compiler: ${CXX} ${CXXVERSION}
32239 Compiler flags: ${WCFLAGS} ${CFLAGS}
32240 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32242 Statically Linked Tools: ${support_static_tools}
32243 Statically Linked FD: ${support_static_fd}
32244 Statically Linked SD: ${support_static_sd}
32245 Statically Linked DIR: ${support_static_dir}
32246 Statically Linked CONS: ${support_static_cons}
32247 Database type: ${db_type}
32248 Database lib: ${DB_LIBS}
32249 Database name: ${db_name}
32250 Database user: ${db_user}
32252 Job Output Email: ${job_email}
32253 Traceback Email: ${dump_email}
32254 SMTP Host Address: ${smtp_host}
32256 Director Port: ${dir_port}
32257 File daemon Port: ${fd_port}
32258 Storage daemon Port: ${sd_port}
32260 Director User: ${dir_user}
32261 Director Group: ${dir_group}
32262 Storage Daemon User: ${sd_user}
32263 Storage DaemonGroup: ${sd_group}
32264 File Daemon User: ${fd_user}
32265 File Daemon Group: ${fd_group}
32267 SQL binaries Directory ${SQL_BINDIR}
32269 Large file support: $largefile_support
32270 Bacula conio support: ${got_conio} ${CONS_LIBS}
32271 readline support: ${got_readline} ${PRTREADLINE_SRC}
32272 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32273 TLS support: ${support_tls}
32274 Encryption support: ${support_crypto}
32275 ZLIB support: ${have_zlib}
32276 enable-smartalloc: ${support_smartalloc}
32277 enable-faketape: ${support_faketape}
32278 bat support: ${support_bat} ${QWT_LDFLAGS}
32279 enable-gnome: ${support_gnome} ${gnome_version}
32280 enable-bwx-console: ${support_wx_console} ${wx_version}
32281 enable-tray-monitor: ${support_tray_monitor}
32282 client-only: ${build_client_only}
32283 build-dird: ${build_dird}
32284 build-stored: ${build_stored}
32285 ACL support: ${have_acl}
32286 Python support: ${support_python} ${PYTHON_LIBS}
32287 Batch insert enabled: ${support_batch_insert}