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
866 ac_subst_files='MCOMMON'
867 ac_precious_vars='build_alias
884 # Initialize some variables set by options.
886 ac_init_version=false
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
896 program_transform_name=s,x,x,
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir='${exec_prefix}/bin'
911 sbindir='${exec_prefix}/sbin'
912 libexecdir='${exec_prefix}/libexec'
913 datarootdir='${prefix}/share'
914 datadir='${datarootdir}'
915 sysconfdir='${prefix}/etc'
916 sharedstatedir='${prefix}/com'
917 localstatedir='${prefix}/var'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE}'
921 infodir='${datarootdir}/info'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\$ac_option
942 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 # Accept the important Cygnus configure options, so we can diagnose typos.
948 case $ac_dashdash$ac_option in
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
970 cache_file=config.cache ;;
972 -datadir | --datadir | --datadi | --datad)
974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
975 datadir=$ac_optarg ;;
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
984 -disable-* | --disable-*)
985 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
988 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
989 { (exit 1); exit 1; }; }
990 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
991 eval enable_$ac_feature=no ;;
993 -docdir | --docdir | --docdi | --doc | --do)
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1003 -enable-* | --enable-*)
1004 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008 { (exit 1); exit 1; }; }
1009 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010 eval enable_$ac_feature=\$ac_optarg ;;
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 htmldir=$ac_optarg ;;
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1055 -libdir | --libdir | --libdi | --libd)
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1146 -psdir | --psdir | --psdi | --psd | --ps)
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159 sbindir=$ac_optarg ;;
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170 sharedstatedir=$ac_optarg ;;
1172 -site | --site | --sit)
1174 -site=* | --site=* | --sit=*)
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1201 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 { echo "$as_me: error: invalid package name: $ac_package" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1207 eval with_$ac_package=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 { echo "$as_me: error: invalid package name: $ac_package" >&2
1214 { (exit 1); exit 1; }; }
1215 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1216 eval with_$ac_package=no ;;
1219 # Obsolete; use --with-x.
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1236 -*) { echo "$as_me: error: unrecognized option: $ac_option
1237 Try \`$0 --help' for more information." >&2
1238 { (exit 1); exit 1; }; }
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1245 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1246 { (exit 1); exit 1; }; }
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1251 # FIXME: should be removed in autoconf 3.0.
1252 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1261 if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263 { echo "$as_me: error: missing argument to $ac_option" >&2
1264 { (exit 1); exit 1; }; }
1267 # Be sure to have absolute directory names.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1279 { (exit 1); exit 1; }; }
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294 If a cross compiler is detected then cross compile mode will be used." >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303 test "$silent" = yes && exec 6>/dev/null
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 { echo "$as_me: error: Working directory cannot be determined" >&2
1310 { (exit 1); exit 1; }; }
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 { echo "$as_me: error: pwd does not report name of working directory" >&2
1313 { (exit 1); exit 1; }; }
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$0" ||
1321 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$0" : 'X\(//\)[^/]' \| \
1323 X"$0" : 'X\(//\)$' \| \
1324 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1353 { (exit 1); exit 1; }; }
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1358 { (exit 1); exit 1; }; }
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 # Report the --help message.
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1384 \`configure' configures this package to adapt to many kinds of systems.
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1391 Defaults for the options are specified in brackets.
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1415 For better control, use the options below.
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1442 --x-includes=DIR X include files are in DIR
1443 --x-libraries=DIR X library files are in DIR
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 if test -n "$ac_init_help"; then
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --disable-nls do not use Native Language Support
1459 --disable-rpath do not hardcode runtime library paths
1460 --enable-gnome enable build of bgnome-console GUI disabled
1461 --enable-bat enable build of bat Qt4 GUI disabled
1462 --enable-bwx-console enable build of wxWidgets console disabled
1463 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1464 --enable-smartalloc enable smartalloc 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-db-password=UNAME specify database password (default *none*)
1518 --with-dir-user=USER specify user for Director daemon
1519 --with-dir-group=GROUP specify group for Director daemon
1520 --with-sd-user=USER specify user for Storage daemon
1521 --with-sd-group=GROUP specify group for Storage daemon
1522 --with-fd-user=USER specify user for File daemon
1523 --with-fd-group=GROUP specify group for File daemon
1524 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1525 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1526 base install directory, defaults to /usr/local/pgsql
1528 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1529 install directory, default is to search through
1530 a number of common places for the MySQL files.
1532 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1533 install directory, default is to search through
1534 a number of common places for the MySQL files.
1536 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1537 install directory, default is to search through
1538 a number of common places for the SQLite3 files.
1540 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1541 install directory, default is to search through
1542 a number of common places for the SQLite files.
1544 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1545 install directory, default is to search through
1546 a number of common places for the DBI files.
1548 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1549 the one DBI driver like Mysql, Postgresql, others.
1550 Default is to not configure any driver.
1551 --with-x use the X Window System
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1564 WXCONFIG wx-config command. On some systems, you must set it to
1565 wx-config-2.6 to use wxWidgets 2.6.
1566 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1567 XMKMF Path to xmkmf, Makefile generator for X Window System
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" || continue
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1599 .) # We are building in place.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1623 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1633 generated by GNU Autoconf 2.61
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1646 It was created by $as_me, which was
1647 generated by GNU Autoconf 2.61. Invocation command line was
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1668 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1669 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1672 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1673 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1674 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 echo "PATH: $as_dir"
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1707 ac_must_keep_next=false
1713 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715 | -silent | --silent | --silen | --sile | --sil)
1718 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1723 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724 if test $ac_must_keep_next = true; then
1725 ac_must_keep_next=false # Got value, back to normal.
1728 *=* | --config-cache | -C | -disable-* | --disable-* \
1729 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731 | -with-* | --with-* | -without-* | --without-* | --x)
1732 case "$ac_configure_args0 " in
1733 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736 -* ) ac_must_keep_next=true ;;
1739 ac_configure_args="$ac_configure_args '$ac_arg'"
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log. We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753 # Save into config.log some information that might help in debugging.
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1763 # The following way of writing the cache mishandles newlines in values,
1765 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766 eval ac_val=\$$ac_var
1770 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1771 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1774 _ | IFS | as_nl) ;; #(
1775 *) $as_unset $ac_var ;;
1780 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1781 *${as_nl}ac_space=\ *)
1783 "s/'\''/'\''\\\\'\'''\''/g;
1784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795 ## ----------------- ##
1796 ## Output variables. ##
1797 ## ----------------- ##
1800 for ac_var in $ac_subst_vars
1802 eval ac_val=\$$ac_var
1804 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 echo "$ac_var='\''$ac_val'\''"
1810 if test -n "$ac_subst_files"; then
1812 ## ------------------- ##
1813 ## File substitutions. ##
1814 ## ------------------- ##
1817 for ac_var in $ac_subst_files
1819 eval ac_val=\$$ac_var
1821 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 echo "$ac_var='\''$ac_val'\''"
1828 if test -s confdefs.h; then
1838 test "$ac_signal" != 0 &&
1839 echo "$as_me: caught signal $ac_signal"
1840 echo "$as_me: exit $exit_status"
1842 rm -f core *.core core.conftest.* &&
1843 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846 for ac_signal in 1 2 13 15; do
1847 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1851 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1852 rm -f -r conftest* confdefs.h
1854 # Predefined preprocessor variables.
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_NAME "$PACKAGE_NAME"
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_STRING "$PACKAGE_STRING"
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1881 # Let the site file select an alternate cache file if it wants to.
1882 # Prefer explicitly selected file to automatically selected ones.
1883 if test -n "$CONFIG_SITE"; then
1884 set x "$CONFIG_SITE"
1885 elif test "x$prefix" != xNONE; then
1886 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1888 set x "$ac_default_prefix/share/config.site" \
1889 "$ac_default_prefix/etc/config.site"
1894 if test -r "$ac_site_file"; then
1895 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 echo "$as_me: loading site script $ac_site_file" >&6;}
1897 sed 's/^/| /' "$ac_site_file" >&5
1902 if test -r "$cache_file"; then
1903 # Some versions of bash will fail to source /dev/null (special
1904 # files actually), so we avoid doing that.
1905 if test -f "$cache_file"; then
1906 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 echo "$as_me: loading cache $cache_file" >&6;}
1909 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910 *) . "./$cache_file";;
1914 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 echo "$as_me: creating cache $cache_file" >&6;}
1919 # Check that the precious variables saved in the cache have kept the same
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924 eval ac_new_set=\$ac_env_${ac_var}_set
1925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926 eval ac_new_val=\$ac_env_${ac_var}_value
1927 case $ac_old_set,$ac_new_set in
1929 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931 ac_cache_corrupted=: ;;
1933 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1938 if test "x$ac_old_val" != "x$ac_new_val"; then
1939 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1941 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1942 echo "$as_me: former value: $ac_old_val" >&2;}
1943 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1944 echo "$as_me: current value: $ac_new_val" >&2;}
1945 ac_cache_corrupted=:
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1951 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 if $ac_cache_corrupted; then
1961 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1962 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1963 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1964 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1965 { (exit 1); exit 1; }; }
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1999 if test -f "$ac_dir/install-sh"; then
2001 ac_install_sh="$ac_aux_dir/install-sh -c"
2003 elif test -f "$ac_dir/install.sh"; then
2005 ac_install_sh="$ac_aux_dir/install.sh -c"
2007 elif test -f "$ac_dir/shtool"; then
2009 ac_install_sh="$ac_aux_dir/shtool install -c"
2013 if test -z "$ac_aux_dir"; then
2014 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2015 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2016 { (exit 1); exit 1; }; }
2019 # These three variables are undocumented and unsupported,
2020 # and are intended to be withdrawn in a future Autoconf release.
2021 # They can cause serious problems if a builder's source tree is in a directory
2022 # whose full name contains unusual characters.
2023 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2024 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2025 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2028 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 TRUEPRG=$ac_cv_path_TRUEPRG
2067 if test -n "$TRUEPRG"; then
2068 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2069 echo "${ECHO_T}$TRUEPRG" >&6; }
2071 { echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6; }
2076 test -n "$TRUEPRG" && break
2078 test -n "$TRUEPRG" || TRUEPRG=":"
2080 for ac_prog in false
2082 # Extract the first word of "$ac_prog", so it can be a program name with args.
2083 set dummy $ac_prog; ac_word=$2
2084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2086 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 FALSEPRG=$ac_cv_path_FALSEPRG
2113 if test -n "$FALSEPRG"; then
2114 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2115 echo "${ECHO_T}$FALSEPRG" >&6; }
2117 { echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6; }
2122 test -n "$FALSEPRG" && break
2124 test -n "$FALSEPRG" || FALSEPRG=":"
2128 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2129 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2130 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2131 echo "configuring for bacula $VERSION ($DATE)"
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 if test -n "$CC"; then
2170 { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2179 if test -z "$ac_cv_prog_CC"; then
2181 # Extract the first word of "gcc", so it can be a program name with args.
2182 set dummy gcc; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 if test -n "$ac_ct_CC"; then
2189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_ac_ct_CC="gcc"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211 echo "${ECHO_T}$ac_ct_CC" >&6; }
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2217 if test "x$ac_ct_CC" = x; then
2220 case $cross_compiling:$ac_tool_warned in
2222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet. If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&5
2225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2226 whose name does not start with the host triplet. If you think this
2227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2228 ac_tool_warned=yes ;;
2236 if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
2238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2239 set dummy ${ac_tool_prefix}cc; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_CC="${ac_tool_prefix}cc"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 if test -n "$CC"; then
2267 { echo "$as_me:$LINENO: result: $CC" >&5
2268 echo "${ECHO_T}$CC" >&6; }
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2277 if test -z "$CC"; then
2278 # Extract the first word of "cc", so it can be a program name with args.
2279 set dummy cc; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2297 ac_prog_rejected=yes
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 if test $ac_prog_rejected = yes; then
2309 # We found a bogon in the path, so make sure we never use it.
2310 set dummy $ac_cv_prog_CC
2312 if test $# != 0; then
2313 # We chose a different compiler from the bogus one.
2314 # However, it has the same basename, so the bogon will be chosen
2315 # first if we set CC to just the basename; use the full file name.
2317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2323 if test -n "$CC"; then
2324 { echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6; }
2327 { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2333 if test -z "$CC"; then
2334 if test -n "$ac_tool_prefix"; then
2335 for ac_prog in cl.exe
2337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2374 test -n "$CC" && break
2377 if test -z "$CC"; then
2379 for ac_prog in cl.exe
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 if test -n "$ac_ct_CC"; then
2389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_ac_ct_CC="$ac_prog"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2418 test -n "$ac_ct_CC" && break
2421 if test "x$ac_ct_CC" = x; then
2424 case $cross_compiling:$ac_tool_warned in
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2441 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2447 # Provide some information about the compiler.
2448 echo "$as_me:$LINENO: checking for C compiler version" >&5
2449 ac_compiler=`set X $ac_compile; echo $2`
2450 { (ac_try="$ac_compiler --version >&5"
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compiler --version >&5") 2>&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }
2460 { (ac_try="$ac_compiler -v >&5"
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_compiler -v >&5") 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }
2470 { (ac_try="$ac_compiler -V >&5"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compiler -V >&5") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 ac_clean_files_save=$ac_clean_files
2497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2498 # Try to create an executable without -o first, disregard a.out.
2499 # It will help us diagnose broken compilers, and finding out an intuition
2501 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2505 # List of possible output files, starting from the most likely.
2506 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2507 # only as a last resort. b.out is created by i960 compilers.
2508 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2510 # The IRIX 6 linker writes into existing files which may not be
2511 # executable, retaining their permissions. Remove them first so a
2512 # subsequent execution test works.
2514 for ac_file in $ac_files
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2523 if { (ac_try="$ac_link_default"
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_link_default") 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2536 # so that the user can short-circuit this test for compilers unknown to
2538 for ac_file in $ac_files ''
2540 test -f "$ac_file" || continue
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2545 # We found the default executable, but exeext='' is most
2549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 # We set ac_cv_exeext here because the later test for it is not
2554 # safe: cross compilers may not add the suffix if given an `-o'
2555 # argument, so we may need to know it at that point already.
2556 # Even if this section looks crufty: it has the advantage of
2563 test "$ac_cv_exeext" = no && ac_cv_exeext=
2569 { echo "$as_me:$LINENO: result: $ac_file" >&5
2570 echo "${ECHO_T}$ac_file" >&6; }
2571 if test -z "$ac_file"; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: C compiler cannot create executables
2578 See \`config.log' for more details." >&2;}
2579 { (exit 77); exit 77; }; }
2582 ac_exeext=$ac_cv_exeext
2584 # Check that the compiler produces executables we can run. If not, either
2585 # the compiler is broken, or we cross compile.
2586 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2587 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2588 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2589 # If not cross compiling, check that we can run a simple program.
2590 if test "$cross_compiling" != yes; then
2591 if { ac_try='./$ac_file'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2603 if test "$cross_compiling" = maybe; then
2606 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&2;}
2612 { (exit 1); exit 1; }; }
2616 { echo "$as_me:$LINENO: result: yes" >&5
2617 echo "${ECHO_T}yes" >&6; }
2619 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2620 ac_clean_files=$ac_clean_files_save
2621 # Check that the compiler produces executables we can run. If not, either
2622 # the compiler is broken, or we cross compile.
2623 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2624 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2625 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2626 echo "${ECHO_T}$cross_compiling" >&6; }
2628 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2629 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2630 if { (ac_try="$ac_link"
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636 (eval "$ac_link") 2>&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; then
2640 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2642 # work properly (i.e., refer to `conftest.exe'), while it won't with
2644 for ac_file in conftest.exe conftest conftest.*; do
2645 test -f "$ac_file" || continue
2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2654 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2657 See \`config.log' for more details." >&2;}
2658 { (exit 1); exit 1; }; }
2661 rm -f conftest$ac_cv_exeext
2662 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2663 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2665 rm -f conftest.$ac_ext
2666 EXEEXT=$ac_cv_exeext
2668 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2669 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2670 if test "${ac_cv_objext+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.o conftest.obj
2689 if { (ac_try="$ac_compile"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; then
2699 for ac_file in conftest.o conftest.obj conftest.*; do
2700 test -f "$ac_file" || continue;
2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2703 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2711 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2714 See \`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2720 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2721 echo "${ECHO_T}$ac_cv_objext" >&6; }
2722 OBJEXT=$ac_cv_objext
2724 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2725 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2726 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 cat >conftest.$ac_ext <<_ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>conftest.er1
2756 grep -v '^ *+' conftest.er1 >conftest.err
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } && {
2761 test -z "$ac_c_werror_flag" ||
2762 test ! -s conftest.err
2763 } && test -s conftest.$ac_objext; then
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2776 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2777 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2778 GCC=`test $ac_compiler_gnu = yes && echo yes`
2779 ac_test_CFLAGS=${CFLAGS+set}
2780 ac_save_CFLAGS=$CFLAGS
2781 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2782 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_cc_g+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 ac_save_c_werror_flag=$ac_c_werror_flag
2787 ac_c_werror_flag=yes
2790 cat >conftest.$ac_ext <<_ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2805 rm -f conftest.$ac_objext
2806 if { (ac_try="$ac_compile"
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2814 grep -v '^ *+' conftest.er1 >conftest.err
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compile") 2>conftest.er1
2852 grep -v '^ *+' conftest.er1 >conftest.err
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest.$ac_objext; then
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 ac_c_werror_flag=$ac_save_c_werror_flag
2867 cat >conftest.$ac_ext <<_ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2882 rm -f conftest.$ac_objext
2883 if { (ac_try="$ac_compile"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>conftest.er1
2891 grep -v '^ *+' conftest.er1 >conftest.err
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } && {
2896 test -z "$ac_c_werror_flag" ||
2897 test ! -s conftest.err
2898 } && test -s conftest.$ac_objext; then
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_c_werror_flag=$ac_save_c_werror_flag
2916 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2918 if test "$ac_test_CFLAGS" = set; then
2919 CFLAGS=$ac_save_CFLAGS
2920 elif test $ac_cv_prog_cc_g = yes; then
2921 if test "$GCC" = yes; then
2927 if test "$GCC" = yes; then
2933 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2934 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_cc_c89+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 ac_cv_prog_cc_c89=no
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2948 #include <sys/types.h>
2949 #include <sys/stat.h>
2950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2951 struct buf { int x; };
2952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2953 static char *e (p, i)
2959 static char *f (char * (*g) (char **, int), char **p, ...)
2964 s = g (p, va_arg (v,int));
2969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2970 function prototypes and stuff, but not '\xHH' hex character constants.
2971 These don't provoke an error unfortunately, instead are silently treated
2972 as 'x'. The following induces an error, until -std is added to get
2973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2974 array size at least. It's necessary to write '\x00'==0 to get something
2975 that's true only with -std. */
2976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2979 inside strings and character constants. */
2981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2983 int test (int i, double x);
2984 struct s1 {int (*f) (int a);};
2985 struct s2 {int (*f) (double a);};
2986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2998 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3000 CC="$ac_save_CC $ac_arg"
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3018 ac_cv_prog_cc_c89=$ac_arg
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3026 rm -f core conftest.err conftest.$ac_objext
3027 test "x$ac_cv_prog_cc_c89" != "xno" && break
3029 rm -f conftest.$ac_ext
3034 case "x$ac_cv_prog_cc_c89" in
3036 { echo "$as_me:$LINENO: result: none needed" >&5
3037 echo "${ECHO_T}none needed" >&6; } ;;
3039 { echo "$as_me:$LINENO: result: unsupported" >&5
3040 echo "${ECHO_T}unsupported" >&6; } ;;
3042 CC="$CC $ac_cv_prog_cc_c89"
3043 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3044 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 ac_cpp='$CXXCPP $CPPFLAGS'
3056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3059 if test -z "$CXX"; then
3060 if test -n "$CCC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_CXX+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 if test -n "$CXX"; then
3074 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 if test -n "$CXX"; then
3095 { echo "$as_me:$LINENO: result: $CXX" >&5
3096 echo "${ECHO_T}$CXX" >&6; }
3098 { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3103 test -n "$CXX" && break
3106 if test -z "$CXX"; then
3108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3110 # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3114 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 if test -n "$ac_ct_CXX"; then
3118 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127 ac_cv_prog_ac_ct_CXX="$ac_prog"
3128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3138 if test -n "$ac_ct_CXX"; then
3139 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3140 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3142 { echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6; }
3147 test -n "$ac_ct_CXX" && break
3150 if test "x$ac_ct_CXX" = x; then
3153 case $cross_compiling:$ac_tool_warned in
3155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3156 whose name does not start with the host triplet. If you think this
3157 configuration is useful to you, please write to autoconf@gnu.org." >&5
3158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3159 whose name does not start with the host triplet. If you think this
3160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3161 ac_tool_warned=yes ;;
3169 # Provide some information about the compiler.
3170 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3171 ac_compiler=`set X $ac_compile; echo $2`
3172 { (ac_try="$ac_compiler --version >&5"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compiler --version >&5") 2>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }
3182 { (ac_try="$ac_compiler -v >&5"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compiler -v >&5") 2>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }
3192 { (ac_try="$ac_compiler -V >&5"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compiler -V >&5") 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }
3203 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3204 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3205 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 cat >conftest.$ac_ext <<_ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_cxx_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3255 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3256 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3257 GXX=`test $ac_compiler_gnu = yes && echo yes`
3258 ac_test_CXXFLAGS=${CXXFLAGS+set}
3259 ac_save_CXXFLAGS=$CXXFLAGS
3260 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3261 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_cxx_g+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3266 ac_cxx_werror_flag=yes
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } && {
3298 test -z "$ac_cxx_werror_flag" ||
3299 test ! -s conftest.err
3300 } && test -s conftest.$ac_objext; then
3301 ac_cv_prog_cxx_g=yes
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } && {
3336 test -z "$ac_cxx_werror_flag" ||
3337 test ! -s conftest.err
3338 } && test -s conftest.$ac_objext; then
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && {
3375 test -z "$ac_cxx_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
3378 ac_cv_prog_cxx_g=yes
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3395 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3396 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3397 if test "$ac_test_CXXFLAGS" = set; then
3398 CXXFLAGS=$ac_save_CXXFLAGS
3399 elif test $ac_cv_prog_cxx_g = yes; then
3400 if test "$GXX" = yes; then
3406 if test "$GXX" = yes; then
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 if test "x$CC" != xcc; then
3419 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3420 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3422 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3423 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3425 set dummy $CC; ac_cc=`echo $2 |
3426 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3427 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3445 # Make sure it works both with $CC and with simple cc.
3446 # We do the test twice because some compilers refuse to overwrite an
3447 # existing .o file with -o, though they will create one.
3448 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3450 if { (case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_try") 2>&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } &&
3459 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464 (eval "$ac_try") 2>&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); };
3469 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3470 if test "x$CC" != xcc; then
3471 # Test first that cc exists at all.
3472 if { ac_try='cc -c conftest.$ac_ext >&5'
3473 { (case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_try") 2>&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3484 if { (case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_try") 2>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_try") 2>&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); };
3506 # cc exists but doesn't like -o.
3507 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3512 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3514 rm -f core conftest*
3517 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3518 { echo "$as_me:$LINENO: result: yes" >&5
3519 echo "${ECHO_T}yes" >&6; }
3521 { echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6; }
3524 cat >>confdefs.h <<\_ACEOF
3525 #define NO_MINUS_C_MINUS_O 1
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3536 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3537 # On Suns, sometimes $CPP names a directory.
3538 if test -n "$CPP" && test -d "$CPP"; then
3541 if test -z "$CPP"; then
3542 if test "${ac_cv_prog_CPP+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 # Double quotes because CPP needs to be expanded
3546 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3549 for ac_c_preproc_warn_flag in '' yes
3551 # Use a header file that comes with gcc, so configuring glibc
3552 # with a fresh cross-compiler works.
3553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3554 # <limits.h> exists even on freestanding compilers.
3555 # On the NeXT, cc -E runs the code through the compiler's parser,
3556 # not just through cpp. "Syntax error" is here to catch this case.
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3564 # include <limits.h>
3566 # include <assert.h>
3570 if { (ac_try="$ac_cpp conftest.$ac_ext"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } >/dev/null && {
3583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 # Broken: fails on valid input.
3595 rm -f conftest.err conftest.$ac_ext
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #include <ac_nonexistent.h>
3607 if { (ac_try="$ac_cpp conftest.$ac_ext"
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615 grep -v '^ *+' conftest.er1 >conftest.err
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } >/dev/null && {
3620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3623 # Broken: success on invalid input.
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 # Passes both tests.
3634 rm -f conftest.err conftest.$ac_ext
3637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3638 rm -f conftest.err conftest.$ac_ext
3639 if $ac_preproc_ok; then
3651 { echo "$as_me:$LINENO: result: $CPP" >&5
3652 echo "${ECHO_T}$CPP" >&6; }
3654 for ac_c_preproc_warn_flag in '' yes
3656 # Use a header file that comes with gcc, so configuring glibc
3657 # with a fresh cross-compiler works.
3658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659 # <limits.h> exists even on freestanding compilers.
3660 # On the NeXT, cc -E runs the code through the compiler's parser,
3661 # not just through cpp. "Syntax error" is here to catch this case.
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3669 # include <limits.h>
3671 # include <assert.h>
3675 if { (ac_try="$ac_cpp conftest.$ac_ext"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } >/dev/null && {
3688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3696 # Broken: fails on valid input.
3700 rm -f conftest.err conftest.$ac_ext
3702 # OK, works on sane cases. Now check whether nonexistent headers
3703 # can be detected and how.
3704 cat >conftest.$ac_ext <<_ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 #include <ac_nonexistent.h>
3712 if { (ac_try="$ac_cpp conftest.$ac_ext"
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3720 grep -v '^ *+' conftest.er1 >conftest.err
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } >/dev/null && {
3725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3726 test ! -s conftest.err
3728 # Broken: success on invalid input.
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 # Passes both tests.
3739 rm -f conftest.err conftest.$ac_ext
3742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3743 rm -f conftest.err conftest.$ac_ext
3744 if $ac_preproc_ok; then
3747 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3748 See \`config.log' for more details." >&5
3749 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3750 See \`config.log' for more details." >&2;}
3751 { (exit 1); exit 1; }; }
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3762 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3763 if test "${ac_cv_path_GREP+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 # Extract the first word of "grep ggrep" to use in msg output
3767 if test -z "$GREP"; then
3768 set dummy grep ggrep; ac_prog_name=$2
3769 if test "${ac_cv_path_GREP+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 ac_path_GREP_found=false
3773 # Loop through the user's path and test for each of PROGNAME-LIST
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778 test -z "$as_dir" && as_dir=.
3779 for ac_prog in grep ggrep; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3782 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3783 # Check for GNU ac_path_GREP and select it if it is found.
3784 # Check for GNU $ac_path_GREP
3785 case `"$ac_path_GREP" --version 2>&1` in
3787 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3790 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3793 cat "conftest.in" "conftest.in" >"conftest.tmp"
3794 mv "conftest.tmp" "conftest.in"
3795 cp "conftest.in" "conftest.nl"
3796 echo 'GREP' >> "conftest.nl"
3797 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3799 ac_count=`expr $ac_count + 1`
3800 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3801 # Best one so far, save it but keep looking for a better one
3802 ac_cv_path_GREP="$ac_path_GREP"
3803 ac_path_GREP_max=$ac_count
3805 # 10*(2^10) chars as input seems more than enough
3806 test $ac_count -gt 10 && break
3808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812 $ac_path_GREP_found && break 3
3822 GREP="$ac_cv_path_GREP"
3823 if test -z "$GREP"; then
3824 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3825 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3826 { (exit 1); exit 1; }; }
3830 ac_cv_path_GREP=$GREP
3835 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3836 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3837 GREP="$ac_cv_path_GREP"
3840 { echo "$as_me:$LINENO: checking for egrep" >&5
3841 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3842 if test "${ac_cv_path_EGREP+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3846 then ac_cv_path_EGREP="$GREP -E"
3848 # Extract the first word of "egrep" to use in msg output
3849 if test -z "$EGREP"; then
3850 set dummy egrep; ac_prog_name=$2
3851 if test "${ac_cv_path_EGREP+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 ac_path_EGREP_found=false
3855 # Loop through the user's path and test for each of PROGNAME-LIST
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3860 test -z "$as_dir" && as_dir=.
3861 for ac_prog in egrep; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3864 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3865 # Check for GNU ac_path_EGREP and select it if it is found.
3866 # Check for GNU $ac_path_EGREP
3867 case `"$ac_path_EGREP" --version 2>&1` in
3869 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3872 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3875 cat "conftest.in" "conftest.in" >"conftest.tmp"
3876 mv "conftest.tmp" "conftest.in"
3877 cp "conftest.in" "conftest.nl"
3878 echo 'EGREP' >> "conftest.nl"
3879 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3881 ac_count=`expr $ac_count + 1`
3882 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3883 # Best one so far, save it but keep looking for a better one
3884 ac_cv_path_EGREP="$ac_path_EGREP"
3885 ac_path_EGREP_max=$ac_count
3887 # 10*(2^10) chars as input seems more than enough
3888 test $ac_count -gt 10 && break
3890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3894 $ac_path_EGREP_found && break 3
3904 EGREP="$ac_cv_path_EGREP"
3905 if test -z "$EGREP"; then
3906 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3907 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3908 { (exit 1); exit 1; }; }
3912 ac_cv_path_EGREP=$EGREP
3918 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3919 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3920 EGREP="$ac_cv_path_EGREP"
3923 if test $ac_cv_c_compiler_gnu = yes; then
3924 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3925 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3926 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 ac_pattern="Autoconf.*'x'"
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3941 ac_cv_prog_gcc_traditional=yes
3943 ac_cv_prog_gcc_traditional=no
3948 if test $ac_cv_prog_gcc_traditional = no; then
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3960 ac_cv_prog_gcc_traditional=yes
3966 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3967 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3968 if test $ac_cv_prog_gcc_traditional = yes; then
3969 CC="$CC -traditional"
3973 BASECC=`basename $CC`
3975 if test "x$BASECC" = xgcc; then
3976 cat >>confdefs.h <<\_ACEOF
3982 # Extract the first word of "$CXX", so it can be a program name with args.
3983 set dummy $CXX; ac_word=$2
3984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3986 if test "${ac_cv_path_CXX+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4014 if test -n "$CXX"; then
4015 { echo "$as_me:$LINENO: result: $CXX" >&5
4016 echo "${ECHO_T}$CXX" >&6; }
4018 { echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6; }
4023 if test ! -e $CXX; then
4024 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4025 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4026 { (exit 1); exit 1; }; }
4029 # Find a good install program. We prefer a C program (faster),
4030 # so one script is as good as another. But avoid the broken or
4031 # incompatible versions:
4032 # SysV /etc/install, /usr/sbin/install
4033 # SunOS /usr/etc/install
4034 # IRIX /sbin/install
4036 # AmigaOS /C/install, which installs bootblocks on floppy discs
4037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4040 # OS/2's system install, which has a completely different semantic
4041 # ./install, which can be erroneously created by make from ./install.sh.
4042 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4043 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4044 if test -z "$INSTALL"; then
4045 if test "${ac_cv_path_install+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 test -z "$as_dir" && as_dir=.
4053 # Account for people who put trailing slashes in PATH elements.
4055 ./ | .// | /cC/* | \
4056 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4057 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4060 # OSF1 and SCO ODT 3.0 have their own names for install.
4061 # Don't use installbsd from OSF since it installs stuff as root
4063 for ac_prog in ginstall scoinst install; do
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4066 if test $ac_prog = install &&
4067 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4068 # AIX install. It has an incompatible calling convention.
4070 elif test $ac_prog = install &&
4071 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4072 # program-specific install script used by HP pwplus--don't use.
4075 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4088 if test "${ac_cv_path_install+set}" = set; then
4089 INSTALL=$ac_cv_path_install
4091 # As a last resort, use the slow shell script. Don't cache a
4092 # value for INSTALL within a source directory, because that will
4093 # break other packages using the cache if that directory is
4094 # removed, or if the value is a relative name.
4095 INSTALL=$ac_install_sh
4098 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4099 echo "${ECHO_T}$INSTALL" >&6; }
4101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4102 # It thinks the first close brace ends the variable substitution.
4103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4109 if test -n "$ac_tool_prefix"; then
4110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4114 if test "${ac_cv_prog_RANLIB+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -n "$RANLIB"; then
4118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 RANLIB=$ac_cv_prog_RANLIB
4138 if test -n "$RANLIB"; then
4139 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4140 echo "${ECHO_T}$RANLIB" >&6; }
4142 { echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6; }
4148 if test -z "$ac_cv_prog_RANLIB"; then
4149 ac_ct_RANLIB=$RANLIB
4150 # Extract the first word of "ranlib", so it can be a program name with args.
4151 set dummy ranlib; ac_word=$2
4152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 if test -n "$ac_ct_RANLIB"; then
4158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4167 ac_cv_prog_ac_ct_RANLIB="ranlib"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4178 if test -n "$ac_ct_RANLIB"; then
4179 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4180 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4182 { echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6; }
4186 if test "x$ac_ct_RANLIB" = x; then
4189 case $cross_compiling:$ac_tool_warned in
4191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4192 whose name does not start with the host triplet. If you think this
4193 configuration is useful to you, please write to autoconf@gnu.org." >&5
4194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4195 whose name does not start with the host triplet. If you think this
4196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4197 ac_tool_warned=yes ;;
4199 RANLIB=$ac_ct_RANLIB
4202 RANLIB="$ac_cv_prog_RANLIB"
4205 # Extract the first word of "mv", so it can be a program name with args.
4206 set dummy mv; ac_word=$2
4207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4209 if test "${ac_cv_path_MV+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4237 if test -n "$MV"; then
4238 { echo "$as_me:$LINENO: result: $MV" >&5
4239 echo "${ECHO_T}$MV" >&6; }
4241 { echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6; }
4246 # Extract the first word of "rm", so it can be a program name with args.
4247 set dummy rm; ac_word=$2
4248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250 if test "${ac_cv_path_RM+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4265 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4278 if test -n "$RM"; then
4279 { echo "$as_me:$LINENO: result: $RM" >&5
4280 echo "${ECHO_T}$RM" >&6; }
4282 { echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6; }
4287 # Extract the first word of "cp", so it can be a program name with args.
4288 set dummy cp; ac_word=$2
4289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4291 if test "${ac_cv_path_CP+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4319 if test -n "$CP"; then
4320 { echo "$as_me:$LINENO: result: $CP" >&5
4321 echo "${ECHO_T}$CP" >&6; }
4323 { echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6; }
4328 # Extract the first word of "sed", so it can be a program name with args.
4329 set dummy sed; ac_word=$2
4330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4332 if test "${ac_cv_path_SED+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4360 if test -n "$SED"; then
4361 { echo "$as_me:$LINENO: result: $SED" >&5
4362 echo "${ECHO_T}$SED" >&6; }
4364 { echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6; }
4369 # Extract the first word of "echo", so it can be a program name with args.
4370 set dummy echo; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_path_ECHO+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4400 ECHO=$ac_cv_path_ECHO
4401 if test -n "$ECHO"; then
4402 { echo "$as_me:$LINENO: result: $ECHO" >&5
4403 echo "${ECHO_T}$ECHO" >&6; }
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4410 # Extract the first word of "cmp", so it can be a program name with args.
4411 set dummy cmp; ac_word=$2
4412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414 if test "${ac_cv_path_CMP+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4442 if test -n "$CMP"; then
4443 { echo "$as_me:$LINENO: result: $CMP" >&5
4444 echo "${ECHO_T}$CMP" >&6; }
4446 { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4451 # Extract the first word of "tbl", so it can be a program name with args.
4452 set dummy tbl; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_path_TBL+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4483 if test -n "$TBL"; then
4484 { echo "$as_me:$LINENO: result: $TBL" >&5
4485 echo "${ECHO_T}$TBL" >&6; }
4487 { echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6; }
4492 # Extract the first word of "ar", so it can be a program name with args.
4493 set dummy ar; ac_word=$2
4494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4496 if test "${ac_cv_path_AR+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4524 if test -n "$AR"; then
4525 { echo "$as_me:$LINENO: result: $AR" >&5
4526 echo "${ECHO_T}$AR" >&6; }
4528 { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4533 # Extract the first word of "openssl", so it can be a program name with args.
4534 set dummy openssl; ac_word=$2
4535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4537 if test "${ac_cv_path_OPENSSL+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4564 OPENSSL=$ac_cv_path_OPENSSL
4565 if test -n "$OPENSSL"; then
4566 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4567 echo "${ECHO_T}$OPENSSL" >&6; }
4569 { echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6; }
4574 # Extract the first word of "mtx", so it can be a program name with args.
4575 set dummy mtx; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_path_MTX+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4606 if test -n "$MTX"; then
4607 { echo "$as_me:$LINENO: result: $MTX" >&5
4608 echo "${ECHO_T}$MTX" >&6; }
4610 { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4615 # Extract the first word of "dd", so it can be a program name with args.
4616 set dummy dd; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_path_DD+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4647 if test -n "$DD"; then
4648 { echo "$as_me:$LINENO: result: $DD" >&5
4649 echo "${ECHO_T}$DD" >&6; }
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4656 # Extract the first word of "mkisofs", so it can be a program name with args.
4657 set dummy mkisofs; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_path_MKISOFS+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4687 MKISOFS=$ac_cv_path_MKISOFS
4688 if test -n "$MKISOFS"; then
4689 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4690 echo "${ECHO_T}$MKISOFS" >&6; }
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4697 # Extract the first word of "python", so it can be a program name with args.
4698 set dummy python; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_path_PYTHON+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4728 PYTHON=$ac_cv_path_PYTHON
4729 if test -n "$PYTHON"; then
4730 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4731 echo "${ECHO_T}$PYTHON" >&6; }
4733 { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4738 # Extract the first word of "growisofs", so it can be a program name with args.
4739 set dummy growisofs; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4769 GROWISOFS=$ac_cv_path_GROWISOFS
4770 if test -n "$GROWISOFS"; then
4771 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4772 echo "${ECHO_T}$GROWISOFS" >&6; }
4774 { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4779 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4780 set dummy dvd+rw-mediainfo; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 case $DVDRWMEDIAINFO in
4788 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4810 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4811 if test -n "$DVDRWMEDIAINFO"; then
4812 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4813 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4815 { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4820 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4821 set dummy dvd+rw-format; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 case $DVDRWFORMAT in
4829 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4851 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4852 if test -n "$DVDRWFORMAT"; then
4853 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4854 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4861 # Extract the first word of "pkg-config", so it can be a program name with args.
4862 set dummy pkg-config; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4892 PKGCONFIG=$ac_cv_path_PKGCONFIG
4893 if test -n "$PKGCONFIG"; then
4894 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4895 echo "${ECHO_T}$PKGCONFIG" >&6; }
4897 { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4902 # Extract the first word of "qmake", so it can be a program name with args.
4903 set dummy qmake; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_path_QMAKE+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4933 QMAKE=$ac_cv_path_QMAKE
4934 if test -n "$QMAKE"; then
4935 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4936 echo "${ECHO_T}$QMAKE" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4943 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4944 set dummy qmake-qt4; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4974 QMAKEQT4=$ac_cv_path_QMAKEQT4
4975 if test -n "$QMAKEQT4"; then
4976 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4977 echo "${ECHO_T}$QMAKEQT4" >&6; }
4979 { echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6; }
4985 if test "x$WXCONFIG" = x; then
4988 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4989 set dummy ${WXCONFIG}; ac_word=$2
4990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4992 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5019 WXCONFIG=$ac_cv_path_WXCONFIG
5020 if test -n "$WXCONFIG"; then
5021 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5022 echo "${ECHO_T}$WXCONFIG" >&6; }
5024 { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5030 # Extract the first word of "cdrecord", so it can be a program name with args.
5031 set dummy cdrecord; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_path_CDRECORD+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5061 CDRECORD=$ac_cv_path_CDRECORD
5062 if test -n "$CDRECORD"; then
5063 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5064 echo "${ECHO_T}$CDRECORD" >&6; }
5066 { echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6; }
5071 # Extract the first word of "pidof", so it can be a program name with args.
5072 set dummy pidof; ac_word=$2
5073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5075 if test "${ac_cv_path_PIDOF+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5102 PIDOF=$ac_cv_path_PIDOF
5103 if test -n "$PIDOF"; then
5104 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5105 echo "${ECHO_T}$PIDOF" >&6; }
5107 { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5112 for ac_prog in gawk mawk nawk awk
5114 # Extract the first word of "$ac_prog", so it can be a program name with args.
5115 set dummy $ac_prog; ac_word=$2
5116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118 if test "${ac_cv_prog_AWK+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 if test -n "$AWK"; then
5122 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_AWK="$ac_prog"
5132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 if test -n "$AWK"; then
5143 { echo "$as_me:$LINENO: result: $AWK" >&5
5144 echo "${ECHO_T}$AWK" >&6; }
5146 { echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6; }
5151 test -n "$AWK" && break
5154 # Some AWK programs fail, so test it and warn the user
5155 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5156 { if ((prog == $2) || (("(" prog ")") == $2) ||
5157 (("" prog "") == $2) ||
5158 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5160 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5161 The regex engine of $AWK is too broken to be used you
5162 might want to install GNU AWK.
5163 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5164 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5165 The regex engine of $AWK is too broken to be used you
5166 might want to install GNU AWK.
5167 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5168 { (exit 1); exit 1; }; }
5171 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5172 set dummy $THE_AWK; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_path_AWK+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5203 if test -n "$AWK"; then
5204 { echo "$as_me:$LINENO: result: $AWK" >&5
5205 echo "${ECHO_T}$AWK" >&6; }
5207 { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5214 test -n "$ARFLAG" || ARFLAGS="cr"
5225 # Make sure we can run config.sub.
5226 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5227 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5228 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5229 { (exit 1); exit 1; }; }
5231 { echo "$as_me:$LINENO: checking build system type" >&5
5232 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5233 if test "${ac_cv_build+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 ac_build_alias=$build_alias
5237 test "x$ac_build_alias" = x &&
5238 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5239 test "x$ac_build_alias" = x &&
5240 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5241 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5242 { (exit 1); exit 1; }; }
5243 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5244 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5245 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5246 { (exit 1); exit 1; }; }
5249 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5250 echo "${ECHO_T}$ac_cv_build" >&6; }
5251 case $ac_cv_build in
5253 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5254 echo "$as_me: error: invalid value of canonical build" >&2;}
5255 { (exit 1); exit 1; }; };;
5258 ac_save_IFS=$IFS; IFS='-'
5264 # Remember, the first character of IFS is used to create $*,
5265 # except with old shells:
5268 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5272 { echo "$as_me:$LINENO: checking host system type" >&5
5273 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5274 if test "${ac_cv_host+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 if test "x$host_alias" = x; then
5278 ac_cv_host=$ac_cv_build
5280 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5281 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5282 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5283 { (exit 1); exit 1; }; }
5287 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5288 echo "${ECHO_T}$ac_cv_host" >&6; }
5291 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5292 echo "$as_me: error: invalid value of canonical host" >&2;}
5293 { (exit 1); exit 1; }; };;
5296 ac_save_IFS=$IFS; IFS='-'
5302 # Remember, the first character of IFS is used to create $*,
5303 # except with old shells:
5306 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5310 *cygwin* ) CYGWIN=yes;;
5314 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5320 HAVE_SUN_OS_FALSE='#'
5322 HAVE_SUN_OS_TRUE='#'
5325 cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_SUN_OS 1
5334 HAVE_SUN_OS_FALSE='#'
5336 HAVE_SUN_OS_TRUE='#'
5341 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5347 HAVE_OSF1_OS_FALSE='#'
5349 HAVE_OSF1_OS_TRUE='#'
5352 cat >>confdefs.h <<\_ACEOF
5353 #define HAVE_OSF1_OS 1
5361 HAVE_OSF1_OS_FALSE='#'
5363 HAVE_OSF1_OS_TRUE='#'
5368 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5374 HAVE_AIX_OS_FALSE='#'
5376 HAVE_AIX_OS_TRUE='#'
5379 cat >>confdefs.h <<\_ACEOF
5380 #define HAVE_AIX_OS 1
5388 HAVE_AIX_OS_FALSE='#'
5390 HAVE_AIX_OS_TRUE='#'
5395 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5401 HAVE_HPUX_OS_FALSE='#'
5403 HAVE_HPUX_OS_TRUE='#'
5406 cat >>confdefs.h <<\_ACEOF
5407 #define HAVE_HPUX_OS 1
5415 HAVE_HPUX_OS_FALSE='#'
5417 HAVE_HPUX_OS_TRUE='#'
5422 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5428 HAVE_LINUX_OS_FALSE='#'
5430 HAVE_LINUX_OS_TRUE='#'
5431 HAVE_LINUX_OS_FALSE=
5433 cat >>confdefs.h <<\_ACEOF
5434 #define HAVE_LINUX_OS 1
5442 HAVE_LINUX_OS_FALSE='#'
5444 HAVE_LINUX_OS_TRUE='#'
5445 HAVE_LINUX_OS_FALSE=
5449 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5454 HAVE_FREEBSD_OS_TRUE=
5455 HAVE_FREEBSD_OS_FALSE='#'
5457 HAVE_FREEBSD_OS_TRUE='#'
5458 HAVE_FREEBSD_OS_FALSE=
5460 cat >>confdefs.h <<\_ACEOF
5461 #define HAVE_FREEBSD_OS 1
5468 HAVE_FREEBSD_OS_TRUE=
5469 HAVE_FREEBSD_OS_FALSE='#'
5471 HAVE_FREEBSD_OS_TRUE='#'
5472 HAVE_FREEBSD_OS_FALSE=
5476 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5481 HAVE_NETBSD_OS_TRUE=
5482 HAVE_NETBSD_OS_FALSE='#'
5484 HAVE_NETBSD_OS_TRUE='#'
5485 HAVE_NETBSD_OS_FALSE=
5487 cat >>confdefs.h <<\_ACEOF
5488 #define HAVE_NETBSD_OS 1
5495 HAVE_NETBSD_OS_TRUE=
5496 HAVE_NETBSD_OS_FALSE='#'
5498 HAVE_NETBSD_OS_TRUE='#'
5499 HAVE_NETBSD_OS_FALSE=
5503 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5508 HAVE_OPENBSD_OS_TRUE=
5509 HAVE_OPENBSD_OS_FALSE='#'
5511 HAVE_OPENBSD_OS_TRUE='#'
5512 HAVE_OPENBSD_OS_FALSE=
5514 cat >>confdefs.h <<\_ACEOF
5515 #define HAVE_OPENBSD_OS 1
5522 HAVE_OPENBSD_OS_TRUE=
5523 HAVE_OPENBSD_OS_FALSE='#'
5525 HAVE_OPENBSD_OS_TRUE='#'
5526 HAVE_OPENBSD_OS_FALSE=
5530 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5536 HAVE_BSDI_OS_FALSE='#'
5538 HAVE_BSDI_OS_TRUE='#'
5541 cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_BSDI_OS 1
5550 HAVE_BSDI_OS_FALSE='#'
5552 HAVE_BSDI_OS_TRUE='#'
5557 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5563 HAVE_SGI_OS_FALSE='#'
5565 HAVE_SGI_OS_TRUE='#'
5568 cat >>confdefs.h <<\_ACEOF
5569 #define HAVE_SGI_OS 1
5577 HAVE_SGI_OS_FALSE='#'
5579 HAVE_SGI_OS_TRUE='#'
5584 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5590 HAVE_IRIX_OS_FALSE='#'
5592 HAVE_IRIX_OS_TRUE='#'
5595 cat >>confdefs.h <<\_ACEOF
5596 #define HAVE_IRIX_OS 1
5604 HAVE_IRIX_OS_FALSE='#'
5606 HAVE_IRIX_OS_TRUE='#'
5611 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5616 HAVE_DARWIN_OS_TRUE=
5617 HAVE_DARWIN_OS_FALSE='#'
5619 HAVE_DARWIN_OS_TRUE='#'
5620 HAVE_DARWIN_OS_FALSE=
5622 cat >>confdefs.h <<\_ACEOF
5623 #define HAVE_DARWIN_OS 1
5630 HAVE_DARWIN_OS_TRUE=
5631 HAVE_DARWIN_OS_FALSE='#'
5633 HAVE_DARWIN_OS_TRUE='#'
5634 HAVE_DARWIN_OS_FALSE=
5639 # -----------------------------------------------------------
5640 # ----------------------------------------------------------
5641 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5642 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5643 if test "x$DISTNAME" != "x"
5645 echo "distname set to $DISTNAME"
5646 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5649 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5652 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5667 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5670 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5673 elif test -f /etc/SuSE-release
5676 elif test -d /etc/SuSEconfig
5679 elif test -f /etc/mandrake-release
5682 elif test -f /etc/whitebox-release
5685 elif test -f /etc/redhat-release
5688 elif test -f /etc/gentoo-release
5691 elif test -f /etc/debian_version
5694 elif test -f /etc/slackware-version
5697 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5700 elif test -f /etc/engarde-version
5703 elif test "$CYGWIN" = yes
5706 cat >>confdefs.h <<\_ACEOF
5707 #define HAVE_CYGWIN 1
5713 { echo "$as_me:$LINENO: result: done" >&5
5714 echo "${ECHO_T}done" >&6; }
5717 # --------------------------------------------------
5718 # Suppport for gettext (translations)
5719 # By default, $datadir is ${prefix}/share
5720 # --------------------------------------------------
5721 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5722 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5723 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5724 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 cat >conftest.make <<\_ACEOF
5730 @echo '@@@%%%=$(MAKE)=@@@%%%'
5732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5733 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5735 eval ac_cv_prog_make_${ac_make}_set=yes;;
5737 eval ac_cv_prog_make_${ac_make}_set=no;;
5741 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5742 { echo "$as_me:$LINENO: result: yes" >&5
5743 echo "${ECHO_T}yes" >&6; }
5746 { echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6; }
5748 SET_MAKE="MAKE=${MAKE-make}"
5754 if test -n "$ac_aux_dir"; then
5755 case "$ac_aux_dir" in
5756 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5757 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5760 if test -z "$MKINSTALLDIRS"; then
5761 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5766 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5767 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5768 # Check whether --enable-nls was given.
5769 if test "${enable_nls+set}" = set; then
5770 enableval=$enable_nls; USE_NLS=$enableval
5775 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5776 echo "${ECHO_T}$USE_NLS" >&6; }
5783 # Prepare PATH_SEPARATOR.
5784 # The user is always right.
5785 if test "${PATH_SEPARATOR+set}" != set; then
5786 echo "#! /bin/sh" >conf$$.sh
5787 echo "exit 0" >>conf$$.sh
5789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5797 # Find out how to test for executable files. Don't use a zero-byte file,
5798 # as systems may use methods other than mode bits to determine executability.
5799 cat >conf$$.file <<_ASEOF
5803 chmod +x conf$$.file
5804 if test -x conf$$.file >/dev/null 2>&1; then
5805 ac_executable_p="test -x"
5807 ac_executable_p="test -f"
5811 # Extract the first word of "msgfmt", so it can be a program name with args.
5812 set dummy msgfmt; ac_word=$2
5813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815 if test "${ac_cv_path_MSGFMT+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5823 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5824 for ac_dir in $PATH; do
5826 test -z "$ac_dir" && ac_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5829 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5830 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5831 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5832 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5839 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5843 MSGFMT="$ac_cv_path_MSGFMT"
5844 if test "$MSGFMT" != ":"; then
5845 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5846 echo "${ECHO_T}$MSGFMT" >&6; }
5848 { echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6; }
5852 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5853 set dummy gmsgfmt; ac_word=$2
5854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5856 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5883 GMSGFMT=$ac_cv_path_GMSGFMT
5884 if test -n "$GMSGFMT"; then
5885 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5886 echo "${ECHO_T}$GMSGFMT" >&6; }
5888 { echo "$as_me:$LINENO: result: no" >&5
5889 echo "${ECHO_T}no" >&6; }
5895 # Prepare PATH_SEPARATOR.
5896 # The user is always right.
5897 if test "${PATH_SEPARATOR+set}" != set; then
5898 echo "#! /bin/sh" >conf$$.sh
5899 echo "exit 0" >>conf$$.sh
5901 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5909 # Find out how to test for executable files. Don't use a zero-byte file,
5910 # as systems may use methods other than mode bits to determine executability.
5911 cat >conf$$.file <<_ASEOF
5915 chmod +x conf$$.file
5916 if test -x conf$$.file >/dev/null 2>&1; then
5917 ac_executable_p="test -x"
5919 ac_executable_p="test -f"
5923 # Extract the first word of "xgettext", so it can be a program name with args.
5924 set dummy xgettext; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5935 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5936 for ac_dir in $PATH; do
5938 test -z "$ac_dir" && ac_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5941 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5942 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5943 (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
5944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5951 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5955 XGETTEXT="$ac_cv_path_XGETTEXT"
5956 if test "$XGETTEXT" != ":"; then
5957 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5958 echo "${ECHO_T}$XGETTEXT" >&6; }
5960 { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5967 # Prepare PATH_SEPARATOR.
5968 # The user is always right.
5969 if test "${PATH_SEPARATOR+set}" != set; then
5970 echo "#! /bin/sh" >conf$$.sh
5971 echo "exit 0" >>conf$$.sh
5973 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5981 # Find out how to test for executable files. Don't use a zero-byte file,
5982 # as systems may use methods other than mode bits to determine executability.
5983 cat >conf$$.file <<_ASEOF
5987 chmod +x conf$$.file
5988 if test -x conf$$.file >/dev/null 2>&1; then
5989 ac_executable_p="test -x"
5991 ac_executable_p="test -f"
5995 # Extract the first word of "msgmerge", so it can be a program name with args.
5996 set dummy msgmerge; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6007 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6008 for ac_dir in $PATH; do
6010 test -z "$ac_dir" && ac_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6013 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6014 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6015 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6022 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6026 MSGMERGE="$ac_cv_path_MSGMERGE"
6027 if test "$MSGMERGE" != ":"; then
6028 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6029 echo "${ECHO_T}$MSGMERGE" >&6; }
6031 { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6036 if test "$GMSGFMT" != ":"; then
6037 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6038 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6041 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6042 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6043 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6048 if test "$XGETTEXT" != ":"; then
6049 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6050 (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
6053 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6054 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6060 ac_config_commands="$ac_config_commands default-1"
6064 if test "X$prefix" = "XNONE"; then
6065 acl_final_prefix="$ac_default_prefix"
6067 acl_final_prefix="$prefix"
6069 if test "X$exec_prefix" = "XNONE"; then
6070 acl_final_exec_prefix='${prefix}'
6072 acl_final_exec_prefix="$exec_prefix"
6074 acl_save_prefix="$prefix"
6075 prefix="$acl_final_prefix"
6076 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6077 prefix="$acl_save_prefix"
6080 # Check whether --with-gnu-ld was given.
6081 if test "${with_gnu_ld+set}" = set; then
6082 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6087 # Prepare PATH_SEPARATOR.
6088 # The user is always right.
6089 if test "${PATH_SEPARATOR+set}" != set; then
6090 echo "#! /bin/sh" >conf$$.sh
6091 echo "exit 0" >>conf$$.sh
6093 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6101 if test "$GCC" = yes; then
6102 # Check if gcc -print-prog-name=ld gives a path.
6103 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6104 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6107 # gcc leaves a trailing carriage return which upsets mingw
6108 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6110 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6113 # Accept absolute paths.
6114 [\\/]* | [A-Za-z]:[\\/]*)
6115 re_direlt='/[^/][^/]*/\.\./'
6116 # Canonicalize the path of ld
6117 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6118 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6119 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6121 test -z "$LD" && LD="$ac_prog"
6124 # If it fails, then pretend we aren't using GCC.
6128 # If it is relative, then search for the first ld in PATH.
6132 elif test "$with_gnu_ld" = yes; then
6133 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6134 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6136 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6137 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6139 if test "${acl_cv_path_LD+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 if test -z "$LD"; then
6143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6144 for ac_dir in $PATH; do
6145 test -z "$ac_dir" && ac_dir=.
6146 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6147 acl_cv_path_LD="$ac_dir/$ac_prog"
6148 # Check to see if the program is GNU ld. I'd rather use --version,
6149 # but apparently some GNU ld's only accept -v.
6150 # Break only if it was the GNU/non-GNU ld that we prefer.
6151 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6152 *GNU* | *'with BFD'*)
6153 test "$with_gnu_ld" != no && break ;;
6155 test "$with_gnu_ld" != yes && break ;;
6161 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6165 LD="$acl_cv_path_LD"
6166 if test -n "$LD"; then
6167 { echo "$as_me:$LINENO: result: $LD" >&5
6168 echo "${ECHO_T}$LD" >&6; }
6170 { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6173 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6174 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6175 { (exit 1); exit 1; }; }
6176 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6177 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6178 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6182 case `$LD -v 2>&1 </dev/null` in
6183 *GNU* | *'with BFD'*)
6184 acl_cv_prog_gnu_ld=yes ;;
6186 acl_cv_prog_gnu_ld=no ;;
6189 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6190 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6191 with_gnu_ld=$acl_cv_prog_gnu_ld
6196 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6197 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6198 if test "${acl_cv_rpath+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6203 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6209 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6210 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6212 libext="$acl_cv_libext"
6213 shlibext="$acl_cv_shlibext"
6214 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6215 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6216 hardcode_direct="$acl_cv_hardcode_direct"
6217 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6218 # Check whether --enable-rpath was given.
6219 if test "${enable_rpath+set}" = set; then
6220 enableval=$enable_rpath; :
6234 acl_save_prefix="$prefix"
6235 prefix="$acl_final_prefix"
6236 acl_save_exec_prefix="$exec_prefix"
6237 exec_prefix="$acl_final_exec_prefix"
6239 eval additional_includedir=\"$includedir\"
6240 eval additional_libdir=\"$libdir\"
6242 exec_prefix="$acl_save_exec_prefix"
6243 prefix="$acl_save_prefix"
6246 # Check whether --with-libiconv-prefix was given.
6247 if test "${with_libiconv_prefix+set}" = set; then
6248 withval=$with_libiconv_prefix;
6249 if test "X$withval" = "Xno"; then
6252 if test "X$withval" = "X"; then
6254 acl_save_prefix="$prefix"
6255 prefix="$acl_final_prefix"
6256 acl_save_exec_prefix="$exec_prefix"
6257 exec_prefix="$acl_final_exec_prefix"
6259 eval additional_includedir=\"$includedir\"
6260 eval additional_libdir=\"$libdir\"
6262 exec_prefix="$acl_save_exec_prefix"
6263 prefix="$acl_save_prefix"
6266 additional_includedir="$withval/include"
6267 additional_libdir="$withval/lib"
6278 names_already_handled=
6279 names_next_round='iconv '
6280 while test -n "$names_next_round"; do
6281 names_this_round="$names_next_round"
6283 for name in $names_this_round; do
6285 for n in $names_already_handled; do
6286 if test "$n" = "$name"; then
6291 if test -z "$already_handled"; then
6292 names_already_handled="$names_already_handled $name"
6293 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6294 eval value=\"\$HAVE_LIB$uppername\"
6295 if test -n "$value"; then
6296 if test "$value" = yes; then
6297 eval value=\"\$LIB$uppername\"
6298 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6299 eval value=\"\$LTLIB$uppername\"
6300 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6309 if test $use_additional = yes; then
6310 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6311 found_dir="$additional_libdir"
6312 found_so="$additional_libdir/lib$name.$shlibext"
6313 if test -f "$additional_libdir/lib$name.la"; then
6314 found_la="$additional_libdir/lib$name.la"
6317 if test -f "$additional_libdir/lib$name.$libext"; then
6318 found_dir="$additional_libdir"
6319 found_a="$additional_libdir/lib$name.$libext"
6320 if test -f "$additional_libdir/lib$name.la"; then
6321 found_la="$additional_libdir/lib$name.la"
6326 if test "X$found_dir" = "X"; then
6327 for x in $LDFLAGS $LTLIBICONV; do
6329 acl_save_prefix="$prefix"
6330 prefix="$acl_final_prefix"
6331 acl_save_exec_prefix="$exec_prefix"
6332 exec_prefix="$acl_final_exec_prefix"
6334 exec_prefix="$acl_save_exec_prefix"
6335 prefix="$acl_save_prefix"
6339 dir=`echo "X$x" | sed -e 's/^X-L//'`
6340 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6342 found_so="$dir/lib$name.$shlibext"
6343 if test -f "$dir/lib$name.la"; then
6344 found_la="$dir/lib$name.la"
6347 if test -f "$dir/lib$name.$libext"; then
6349 found_a="$dir/lib$name.$libext"
6350 if test -f "$dir/lib$name.la"; then
6351 found_la="$dir/lib$name.la"
6357 if test "X$found_dir" != "X"; then
6362 if test "X$found_dir" != "X"; then
6363 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6364 if test "X$found_so" != "X"; then
6365 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6366 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6369 for x in $ltrpathdirs; do
6370 if test "X$x" = "X$found_dir"; then
6375 if test -z "$haveit"; then
6376 ltrpathdirs="$ltrpathdirs $found_dir"
6378 if test "$hardcode_direct" = yes; then
6379 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6381 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6384 for x in $rpathdirs; do
6385 if test "X$x" = "X$found_dir"; then
6390 if test -z "$haveit"; then
6391 rpathdirs="$rpathdirs $found_dir"
6395 for x in $LDFLAGS $LIBICONV; do
6397 acl_save_prefix="$prefix"
6398 prefix="$acl_final_prefix"
6399 acl_save_exec_prefix="$exec_prefix"
6400 exec_prefix="$acl_final_exec_prefix"
6402 exec_prefix="$acl_save_exec_prefix"
6403 prefix="$acl_save_prefix"
6405 if test "X$x" = "X-L$found_dir"; then
6410 if test -z "$haveit"; then
6411 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6413 if test "$hardcode_minus_L" != no; then
6414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6416 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6422 if test "X$found_a" != "X"; then
6423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6425 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6428 additional_includedir=
6429 case "$found_dir" in
6431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6432 additional_includedir="$basedir/include"
6435 if test "X$additional_includedir" != "X"; then
6436 if test "X$additional_includedir" != "X/usr/include"; then
6438 if test "X$additional_includedir" = "X/usr/local/include"; then
6439 if test -n "$GCC"; then
6441 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6445 if test -z "$haveit"; then
6446 for x in $CPPFLAGS $INCICONV; do
6448 acl_save_prefix="$prefix"
6449 prefix="$acl_final_prefix"
6450 acl_save_exec_prefix="$exec_prefix"
6451 exec_prefix="$acl_final_exec_prefix"
6453 exec_prefix="$acl_save_exec_prefix"
6454 prefix="$acl_save_prefix"
6456 if test "X$x" = "X-I$additional_includedir"; then
6461 if test -z "$haveit"; then
6462 if test -d "$additional_includedir"; then
6463 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6469 if test -n "$found_la"; then
6470 save_libdir="$libdir"
6472 */* | *\\*) . "$found_la" ;;
6473 *) . "./$found_la" ;;
6475 libdir="$save_libdir"
6476 for dep in $dependency_libs; do
6479 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6480 if test "X$additional_libdir" != "X/usr/lib"; then
6482 if test "X$additional_libdir" = "X/usr/local/lib"; then
6483 if test -n "$GCC"; then
6485 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6489 if test -z "$haveit"; then
6491 for x in $LDFLAGS $LIBICONV; do
6493 acl_save_prefix="$prefix"
6494 prefix="$acl_final_prefix"
6495 acl_save_exec_prefix="$exec_prefix"
6496 exec_prefix="$acl_final_exec_prefix"
6498 exec_prefix="$acl_save_exec_prefix"
6499 prefix="$acl_save_prefix"
6501 if test "X$x" = "X-L$additional_libdir"; then
6506 if test -z "$haveit"; then
6507 if test -d "$additional_libdir"; then
6508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6512 for x in $LDFLAGS $LTLIBICONV; do
6514 acl_save_prefix="$prefix"
6515 prefix="$acl_final_prefix"
6516 acl_save_exec_prefix="$exec_prefix"
6517 exec_prefix="$acl_final_exec_prefix"
6519 exec_prefix="$acl_save_exec_prefix"
6520 prefix="$acl_save_prefix"
6522 if test "X$x" = "X-L$additional_libdir"; then
6527 if test -z "$haveit"; then
6528 if test -d "$additional_libdir"; then
6529 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6536 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6537 if test "$enable_rpath" != no; then
6539 for x in $rpathdirs; do
6540 if test "X$x" = "X$dir"; then
6545 if test -z "$haveit"; then
6546 rpathdirs="$rpathdirs $dir"
6549 for x in $ltrpathdirs; do
6550 if test "X$x" = "X$dir"; then
6555 if test -z "$haveit"; then
6556 ltrpathdirs="$ltrpathdirs $dir"
6561 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6567 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6574 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6575 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6581 if test "X$rpathdirs" != "X"; then
6582 if test -n "$hardcode_libdir_separator"; then
6584 for found_dir in $rpathdirs; do
6585 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6587 acl_save_libdir="$libdir"
6589 eval flag=\"$hardcode_libdir_flag_spec\"
6590 libdir="$acl_save_libdir"
6591 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6593 for found_dir in $rpathdirs; do
6594 acl_save_libdir="$libdir"
6596 eval flag=\"$hardcode_libdir_flag_spec\"
6597 libdir="$acl_save_libdir"
6598 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6602 if test "X$ltrpathdirs" != "X"; then
6603 for found_dir in $ltrpathdirs; do
6604 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6625 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6626 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6627 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 gt_save_CPPFLAGS="$CPPFLAGS"
6631 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6632 gt_save_LIBS="$LIBS"
6633 LIBS="$LIBS -framework CoreFoundation"
6634 cat >conftest.$ac_ext <<_ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 #include <CFPreferences.h>
6644 CFPreferencesCopyAppValue(NULL, NULL)
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (ac_try="$ac_link"
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_link") 2>conftest.er1
6658 grep -v '^ *+' conftest.er1 >conftest.err
6660 cat conftest.err >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest$ac_exeext &&
6666 $as_test_x conftest$ac_exeext; then
6667 gt_cv_func_CFPreferencesCopyAppValue=yes
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 gt_cv_func_CFPreferencesCopyAppValue=no
6675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6676 conftest$ac_exeext conftest.$ac_ext
6677 CPPFLAGS="$gt_save_CPPFLAGS"
6678 LIBS="$gt_save_LIBS"
6680 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6681 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6682 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6684 cat >>confdefs.h <<\_ACEOF
6685 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6689 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6690 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6691 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 gt_save_CPPFLAGS="$CPPFLAGS"
6695 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6696 gt_save_LIBS="$LIBS"
6697 LIBS="$LIBS -framework CoreFoundation"
6698 cat >conftest.$ac_ext <<_ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 #include <CFLocale.h>
6708 CFLocaleCopyCurrent();
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_link") 2>conftest.er1
6722 grep -v '^ *+' conftest.er1 >conftest.err
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest$ac_exeext &&
6730 $as_test_x conftest$ac_exeext; then
6731 gt_cv_func_CFLocaleCopyCurrent=yes
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6736 gt_cv_func_CFLocaleCopyCurrent=no
6739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6740 conftest$ac_exeext conftest.$ac_ext
6741 CPPFLAGS="$gt_save_CPPFLAGS"
6742 LIBS="$gt_save_LIBS"
6744 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6745 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6746 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_CFLOCALECOPYCURRENT 1
6754 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6755 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6761 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6762 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6763 # Check whether --enable-nls was given.
6764 if test "${enable_nls+set}" = set; then
6765 enableval=$enable_nls; USE_NLS=$enableval
6770 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6771 echo "${ECHO_T}$USE_NLS" >&6; }
6780 if test "$USE_NLS" = "yes"; then
6781 gt_use_preinstalled_gnugettext=no
6788 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6789 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6790 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 cat >conftest.$ac_ext <<_ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6799 #include <libintl.h>
6800 extern int _nl_msg_cat_cntr;
6801 extern int *_nl_domain_bindings;
6805 bindtextdomain ("", "");
6806 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (ac_try="$ac_link"
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_link") 2>conftest.er1
6820 grep -v '^ *+' conftest.er1 >conftest.err
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } && {
6825 test -z "$ac_c_werror_flag" ||
6826 test ! -s conftest.err
6827 } && test -s conftest$ac_exeext &&
6828 $as_test_x conftest$ac_exeext; then
6829 gt_cv_func_gnugettext1_libc=yes
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6834 gt_cv_func_gnugettext1_libc=no
6837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6838 conftest$ac_exeext conftest.$ac_ext
6840 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6841 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6843 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6849 am_save_CPPFLAGS="$CPPFLAGS"
6851 for element in $INCICONV; do
6853 for x in $CPPFLAGS; do
6855 acl_save_prefix="$prefix"
6856 prefix="$acl_final_prefix"
6857 acl_save_exec_prefix="$exec_prefix"
6858 exec_prefix="$acl_final_exec_prefix"
6860 exec_prefix="$acl_save_exec_prefix"
6861 prefix="$acl_save_prefix"
6863 if test "X$x" = "X$element"; then
6868 if test -z "$haveit"; then
6869 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6874 { echo "$as_me:$LINENO: checking for iconv" >&5
6875 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6876 if test "${am_cv_func_iconv+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 am_cv_func_iconv="no, consider installing GNU libiconv"
6882 cat >conftest.$ac_ext <<_ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6893 iconv_t cd = iconv_open("","");
6894 iconv(cd,NULL,NULL,NULL,NULL);
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (ac_try="$ac_link"
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_link") 2>conftest.er1
6909 grep -v '^ *+' conftest.er1 >conftest.err
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest$ac_exeext &&
6917 $as_test_x conftest$ac_exeext; then
6918 am_cv_func_iconv=yes
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6927 conftest$ac_exeext conftest.$ac_ext
6928 if test "$am_cv_func_iconv" != yes; then
6929 am_save_LIBS="$LIBS"
6930 LIBS="$LIBS $LIBICONV"
6931 cat >conftest.$ac_ext <<_ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6942 iconv_t cd = iconv_open("","");
6943 iconv(cd,NULL,NULL,NULL,NULL);
6949 rm -f conftest.$ac_objext conftest$ac_exeext
6950 if { (ac_try="$ac_link"
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6956 (eval "$ac_link") 2>conftest.er1
6958 grep -v '^ *+' conftest.er1 >conftest.err
6960 cat conftest.err >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest$ac_exeext &&
6966 $as_test_x conftest$ac_exeext; then
6968 am_cv_func_iconv=yes
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6977 conftest$ac_exeext conftest.$ac_ext
6978 LIBS="$am_save_LIBS"
6982 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6983 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6984 if test "$am_cv_func_iconv" = yes; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_ICONV 1
6991 if test "$am_cv_lib_iconv" = yes; then
6992 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6993 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6994 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6995 echo "${ECHO_T}$LIBICONV" >&6; }
6997 CPPFLAGS="$am_save_CPPFLAGS"
7009 acl_save_prefix="$prefix"
7010 prefix="$acl_final_prefix"
7011 acl_save_exec_prefix="$exec_prefix"
7012 exec_prefix="$acl_final_exec_prefix"
7014 eval additional_includedir=\"$includedir\"
7015 eval additional_libdir=\"$libdir\"
7017 exec_prefix="$acl_save_exec_prefix"
7018 prefix="$acl_save_prefix"
7021 # Check whether --with-libintl-prefix was given.
7022 if test "${with_libintl_prefix+set}" = set; then
7023 withval=$with_libintl_prefix;
7024 if test "X$withval" = "Xno"; then
7027 if test "X$withval" = "X"; then
7029 acl_save_prefix="$prefix"
7030 prefix="$acl_final_prefix"
7031 acl_save_exec_prefix="$exec_prefix"
7032 exec_prefix="$acl_final_exec_prefix"
7034 eval additional_includedir=\"$includedir\"
7035 eval additional_libdir=\"$libdir\"
7037 exec_prefix="$acl_save_exec_prefix"
7038 prefix="$acl_save_prefix"
7041 additional_includedir="$withval/include"
7042 additional_libdir="$withval/lib"
7053 names_already_handled=
7054 names_next_round='intl '
7055 while test -n "$names_next_round"; do
7056 names_this_round="$names_next_round"
7058 for name in $names_this_round; do
7060 for n in $names_already_handled; do
7061 if test "$n" = "$name"; then
7066 if test -z "$already_handled"; then
7067 names_already_handled="$names_already_handled $name"
7068 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7069 eval value=\"\$HAVE_LIB$uppername\"
7070 if test -n "$value"; then
7071 if test "$value" = yes; then
7072 eval value=\"\$LIB$uppername\"
7073 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7074 eval value=\"\$LTLIB$uppername\"
7075 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7084 if test $use_additional = yes; then
7085 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7086 found_dir="$additional_libdir"
7087 found_so="$additional_libdir/lib$name.$shlibext"
7088 if test -f "$additional_libdir/lib$name.la"; then
7089 found_la="$additional_libdir/lib$name.la"
7092 if test -f "$additional_libdir/lib$name.$libext"; then
7093 found_dir="$additional_libdir"
7094 found_a="$additional_libdir/lib$name.$libext"
7095 if test -f "$additional_libdir/lib$name.la"; then
7096 found_la="$additional_libdir/lib$name.la"
7101 if test "X$found_dir" = "X"; then
7102 for x in $LDFLAGS $LTLIBINTL; do
7104 acl_save_prefix="$prefix"
7105 prefix="$acl_final_prefix"
7106 acl_save_exec_prefix="$exec_prefix"
7107 exec_prefix="$acl_final_exec_prefix"
7109 exec_prefix="$acl_save_exec_prefix"
7110 prefix="$acl_save_prefix"
7114 dir=`echo "X$x" | sed -e 's/^X-L//'`
7115 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7117 found_so="$dir/lib$name.$shlibext"
7118 if test -f "$dir/lib$name.la"; then
7119 found_la="$dir/lib$name.la"
7122 if test -f "$dir/lib$name.$libext"; then
7124 found_a="$dir/lib$name.$libext"
7125 if test -f "$dir/lib$name.la"; then
7126 found_la="$dir/lib$name.la"
7132 if test "X$found_dir" != "X"; then
7137 if test "X$found_dir" != "X"; then
7138 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7139 if test "X$found_so" != "X"; then
7140 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7141 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7144 for x in $ltrpathdirs; do
7145 if test "X$x" = "X$found_dir"; then
7150 if test -z "$haveit"; then
7151 ltrpathdirs="$ltrpathdirs $found_dir"
7153 if test "$hardcode_direct" = yes; then
7154 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7156 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7157 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7159 for x in $rpathdirs; do
7160 if test "X$x" = "X$found_dir"; then
7165 if test -z "$haveit"; then
7166 rpathdirs="$rpathdirs $found_dir"
7170 for x in $LDFLAGS $LIBINTL; do
7172 acl_save_prefix="$prefix"
7173 prefix="$acl_final_prefix"
7174 acl_save_exec_prefix="$exec_prefix"
7175 exec_prefix="$acl_final_exec_prefix"
7177 exec_prefix="$acl_save_exec_prefix"
7178 prefix="$acl_save_prefix"
7180 if test "X$x" = "X-L$found_dir"; then
7185 if test -z "$haveit"; then
7186 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7188 if test "$hardcode_minus_L" != no; then
7189 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7191 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7197 if test "X$found_a" != "X"; then
7198 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7200 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7203 additional_includedir=
7204 case "$found_dir" in
7206 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7207 additional_includedir="$basedir/include"
7210 if test "X$additional_includedir" != "X"; then
7211 if test "X$additional_includedir" != "X/usr/include"; then
7213 if test "X$additional_includedir" = "X/usr/local/include"; then
7214 if test -n "$GCC"; then
7216 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7220 if test -z "$haveit"; then
7221 for x in $CPPFLAGS $INCINTL; do
7223 acl_save_prefix="$prefix"
7224 prefix="$acl_final_prefix"
7225 acl_save_exec_prefix="$exec_prefix"
7226 exec_prefix="$acl_final_exec_prefix"
7228 exec_prefix="$acl_save_exec_prefix"
7229 prefix="$acl_save_prefix"
7231 if test "X$x" = "X-I$additional_includedir"; then
7236 if test -z "$haveit"; then
7237 if test -d "$additional_includedir"; then
7238 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7244 if test -n "$found_la"; then
7245 save_libdir="$libdir"
7247 */* | *\\*) . "$found_la" ;;
7248 *) . "./$found_la" ;;
7250 libdir="$save_libdir"
7251 for dep in $dependency_libs; do
7254 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7255 if test "X$additional_libdir" != "X/usr/lib"; then
7257 if test "X$additional_libdir" = "X/usr/local/lib"; then
7258 if test -n "$GCC"; then
7260 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7264 if test -z "$haveit"; then
7266 for x in $LDFLAGS $LIBINTL; do
7268 acl_save_prefix="$prefix"
7269 prefix="$acl_final_prefix"
7270 acl_save_exec_prefix="$exec_prefix"
7271 exec_prefix="$acl_final_exec_prefix"
7273 exec_prefix="$acl_save_exec_prefix"
7274 prefix="$acl_save_prefix"
7276 if test "X$x" = "X-L$additional_libdir"; then
7281 if test -z "$haveit"; then
7282 if test -d "$additional_libdir"; then
7283 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7287 for x in $LDFLAGS $LTLIBINTL; do
7289 acl_save_prefix="$prefix"
7290 prefix="$acl_final_prefix"
7291 acl_save_exec_prefix="$exec_prefix"
7292 exec_prefix="$acl_final_exec_prefix"
7294 exec_prefix="$acl_save_exec_prefix"
7295 prefix="$acl_save_prefix"
7297 if test "X$x" = "X-L$additional_libdir"; then
7302 if test -z "$haveit"; then
7303 if test -d "$additional_libdir"; then
7304 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7311 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7312 if test "$enable_rpath" != no; then
7314 for x in $rpathdirs; do
7315 if test "X$x" = "X$dir"; then
7320 if test -z "$haveit"; then
7321 rpathdirs="$rpathdirs $dir"
7324 for x in $ltrpathdirs; do
7325 if test "X$x" = "X$dir"; then
7330 if test -z "$haveit"; then
7331 ltrpathdirs="$ltrpathdirs $dir"
7336 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7339 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7342 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7343 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7349 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7350 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7356 if test "X$rpathdirs" != "X"; then
7357 if test -n "$hardcode_libdir_separator"; then
7359 for found_dir in $rpathdirs; do
7360 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7362 acl_save_libdir="$libdir"
7364 eval flag=\"$hardcode_libdir_flag_spec\"
7365 libdir="$acl_save_libdir"
7366 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7368 for found_dir in $rpathdirs; do
7369 acl_save_libdir="$libdir"
7371 eval flag=\"$hardcode_libdir_flag_spec\"
7372 libdir="$acl_save_libdir"
7373 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7377 if test "X$ltrpathdirs" != "X"; then
7378 for found_dir in $ltrpathdirs; do
7379 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7383 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7384 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7385 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 gt_save_CPPFLAGS="$CPPFLAGS"
7389 CPPFLAGS="$CPPFLAGS $INCINTL"
7390 gt_save_LIBS="$LIBS"
7391 LIBS="$LIBS $LIBINTL"
7392 cat >conftest.$ac_ext <<_ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 #include <libintl.h>
7399 extern int _nl_msg_cat_cntr;
7404 const char *_nl_expand_alias (const char *);
7408 bindtextdomain ("", "");
7409 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (ac_try="$ac_link"
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421 (eval "$ac_link") 2>conftest.er1
7423 grep -v '^ *+' conftest.er1 >conftest.err
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest$ac_exeext &&
7431 $as_test_x conftest$ac_exeext; then
7432 gt_cv_func_gnugettext1_libintl=yes
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7437 gt_cv_func_gnugettext1_libintl=no
7440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7441 conftest$ac_exeext conftest.$ac_ext
7442 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7443 LIBS="$LIBS $LIBICONV"
7444 cat >conftest.$ac_ext <<_ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 #include <libintl.h>
7451 extern int _nl_msg_cat_cntr;
7456 const char *_nl_expand_alias (const char *);
7460 bindtextdomain ("", "");
7461 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7466 rm -f conftest.$ac_objext conftest$ac_exeext
7467 if { (ac_try="$ac_link"
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473 (eval "$ac_link") 2>conftest.er1
7475 grep -v '^ *+' conftest.er1 >conftest.err
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest$ac_exeext &&
7483 $as_test_x conftest$ac_exeext; then
7484 LIBINTL="$LIBINTL $LIBICONV"
7485 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7486 gt_cv_func_gnugettext1_libintl=yes
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7496 conftest$ac_exeext conftest.$ac_ext
7498 CPPFLAGS="$gt_save_CPPFLAGS"
7499 LIBS="$gt_save_LIBS"
7501 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7502 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7505 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7506 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7507 && test "$PACKAGE" != gettext-runtime \
7508 && test "$PACKAGE" != gettext-tools; }; then
7509 gt_use_preinstalled_gnugettext=yes
7518 if test -n "$INTL_MACOSX_LIBS"; then
7519 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7520 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7521 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7522 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7526 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7527 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7529 cat >>confdefs.h <<\_ACEOF
7530 #define ENABLE_NLS 1
7538 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7539 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7540 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7541 echo "${ECHO_T}$USE_NLS" >&6; }
7542 if test "$USE_NLS" = "yes"; then
7543 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7544 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7545 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7546 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7547 gt_source="external libintl"
7552 gt_source="included intl directory"
7554 { echo "$as_me:$LINENO: result: $gt_source" >&5
7555 echo "${ECHO_T}$gt_source" >&6; }
7558 if test "$USE_NLS" = "yes"; then
7560 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7561 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7562 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7563 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7564 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7565 echo "${ECHO_T}$LIBINTL" >&6; }
7567 for element in $INCINTL; do
7569 for x in $CPPFLAGS; do
7571 acl_save_prefix="$prefix"
7572 prefix="$acl_final_prefix"
7573 acl_save_exec_prefix="$exec_prefix"
7574 exec_prefix="$acl_final_exec_prefix"
7576 exec_prefix="$acl_save_exec_prefix"
7577 prefix="$acl_save_prefix"
7579 if test "X$x" = "X$element"; then
7584 if test -z "$haveit"; then
7585 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7592 cat >>confdefs.h <<\_ACEOF
7593 #define HAVE_GETTEXT 1
7597 cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_DCGETTEXT 1
7615 if test x${prefix} = xNONE ; then
7616 if test `eval echo ${datadir}` = NONE/share ; then
7621 # ------------------------------------------------------------------
7622 # If the user has not set --prefix, we set our default to nothing.
7623 # In this case, if the user has not set --sysconfdir, we set it
7624 # to the package default of /etc/bacula. If either --prefix or
7625 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7626 # ------------------------------------------------------------------
7627 if test x${prefix} = xNONE ; then
7628 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7629 sysconfdir=/etc/bacula
7633 sysconfdir=`eval echo ${sysconfdir}`
7634 datadir=`eval echo ${datadir}`
7635 localedir=`eval echo ${datadir}/locale`
7636 cat >>confdefs.h <<_ACEOF
7637 #define LOCALEDIR "$localedir"
7640 cat >>confdefs.h <<_ACEOF
7641 #define SYSCONFDIR "$sysconfdir"
7645 # -------------------------------------------------------------------------
7646 # If the user has not set --exec-prefix, we default to ${prefix}
7647 # -------------------------------------------------------------------------
7648 if test x${exec_prefix} = xNONE ; then
7649 exec_prefix=${prefix}
7652 # ------------------------------------------------------------------
7653 # If the user has not set --sbindir, we set our default as /sbin
7654 # ------------------------------------------------------------------
7655 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7656 sbindir=${exec_prefix}/sbin
7658 sbindir=`eval echo ${sbindir}`
7661 # -------------------------------------------------------------------------
7662 # If the user has not set --mandir, we default to /usr/share/man
7663 # -------------------------------------------------------------------------
7664 if test x$mandir = x'${prefix}/man' ; then
7665 mandir=/usr/share/man
7669 for ac_prog in msgfmt
7671 # Extract the first word of "$ac_prog", so it can be a program name with args.
7672 set dummy $ac_prog; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_path_MSGFMT+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 MSGFMT=$ac_cv_path_MSGFMT
7702 if test -n "$MSGFMT"; then
7703 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7704 echo "${ECHO_T}$MSGFMT" >&6; }
7706 { echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6; }
7711 test -n "$MSGFMT" && break
7713 test -n "$MSGFMT" || MSGFMT="no"
7715 if test "$MSGFMT" = "no"
7717 echo 'msgfmt program not found, disabling NLS !'
7719 USE_INCLUDED_LIBINTL=no
7722 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7723 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7724 if test "${ac_cv_gnu_library_2+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 cat >conftest.$ac_ext <<_ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7734 #include <features.h>
7735 #ifdef __GNU_LIBRARY__
7736 #if (__GLIBC__ >= 2)
7742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7743 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7744 ac_cv_gnu_library_2=yes
7746 ac_cv_gnu_library_2=no
7753 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7754 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7756 GLIBC2="$ac_cv_gnu_library_2"
7760 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7761 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7762 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 ac_check_lib_save_LIBS=$LIBS
7766 LIBS="-lcposix $LIBS"
7767 cat >conftest.$ac_ext <<_ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7774 /* Override any GCC internal prototype to avoid an error.
7775 Use char because int might match the return type of a GCC
7776 builtin and then its argument prototype would still apply. */
7789 rm -f conftest.$ac_objext conftest$ac_exeext
7790 if { (ac_try="$ac_link"
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796 (eval "$ac_link") 2>conftest.er1
7798 grep -v '^ *+' conftest.er1 >conftest.err
7800 cat conftest.err >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); } && {
7803 test -z "$ac_c_werror_flag" ||
7804 test ! -s conftest.err
7805 } && test -s conftest$ac_exeext &&
7806 $as_test_x conftest$ac_exeext; then
7807 ac_cv_lib_cposix_strerror=yes
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_cv_lib_cposix_strerror=no
7815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7816 conftest$ac_exeext conftest.$ac_ext
7817 LIBS=$ac_check_lib_save_LIBS
7819 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7820 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7821 if test $ac_cv_lib_cposix_strerror = yes; then
7822 LIBS="$LIBS -lcposix"
7827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7829 if test "${ac_cv_header_stdc+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 cat >conftest.$ac_ext <<_ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7851 rm -f conftest.$ac_objext
7852 if { (ac_try="$ac_compile"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_compile") 2>conftest.er1
7860 grep -v '^ *+' conftest.er1 >conftest.err
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } && {
7865 test -z "$ac_c_werror_flag" ||
7866 test ! -s conftest.err
7867 } && test -s conftest.$ac_objext; then
7868 ac_cv_header_stdc=yes
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7873 ac_cv_header_stdc=no
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 if test $ac_cv_header_stdc = yes; then
7879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7890 $EGREP "memchr" >/dev/null 2>&1; then
7893 ac_cv_header_stdc=no
7899 if test $ac_cv_header_stdc = yes; then
7900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7901 cat >conftest.$ac_ext <<_ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7911 $EGREP "free" >/dev/null 2>&1; then
7914 ac_cv_header_stdc=no
7920 if test $ac_cv_header_stdc = yes; then
7921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7922 if test "$cross_compiling" = yes; then
7925 cat >conftest.$ac_ext <<_ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7933 #if ((' ' & 0x0FF) == 0x020)
7934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7937 # define ISLOWER(c) \
7938 (('a' <= (c) && (c) <= 'i') \
7939 || ('j' <= (c) && (c) <= 'r') \
7940 || ('s' <= (c) && (c) <= 'z'))
7941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7949 for (i = 0; i < 256; i++)
7950 if (XOR (islower (i), ISLOWER (i))
7951 || toupper (i) != TOUPPER (i))
7956 rm -f conftest$ac_exeext
7957 if { (ac_try="$ac_link"
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_link") 2>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7967 { (case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_try") 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7978 echo "$as_me: program exited with status $ac_status" >&5
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_cv_header_stdc=no
7985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7991 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7992 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7993 if test $ac_cv_header_stdc = yes; then
7995 cat >>confdefs.h <<\_ACEOF
7996 #define STDC_HEADERS 1
8001 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8002 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8003 if test "${ac_cv_c_const+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8016 /* FIXME: Include the comments suggested by Paul. */
8018 /* Ultrix mips cc rejects this. */
8019 typedef int charset[2];
8021 /* SunOS 4.1.1 cc rejects this. */
8022 char const *const *pcpcc;
8024 /* NEC SVR4.0.2 mips cc rejects this. */
8025 struct point {int x, y;};
8026 static struct point const zero = {0,0};
8027 /* AIX XL C 1.02.0.0 rejects this.
8028 It does not let you subtract one const X* pointer from another in
8029 an arm of an if-expression whose if-part is not a constant
8031 const char *g = "string";
8032 pcpcc = &g + (g ? g-g : 0);
8033 /* HPUX 7.0 cc rejects these. */
8035 ppc = (char**) pcpcc;
8036 pcpcc = (char const *const *) ppc;
8037 { /* SCO 3.2v4 cc rejects this. */
8039 char const *s = 0 ? (char *) 0 : (char const *) 0;
8044 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8046 const int *foo = &x[0];
8049 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8050 typedef const int *iptr;
8054 { /* AIX XL C 1.02.0.0 rejects this saying
8055 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8056 struct s { int j; const int *ap[3]; };
8057 struct s *b; b->j = 5;
8059 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8063 return !cs[0] && !zero.x;
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_compile") 2>conftest.er1
8079 grep -v '^ *+' conftest.er1 >conftest.err
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } && {
8084 test -z "$ac_c_werror_flag" ||
8085 test ! -s conftest.err
8086 } && test -s conftest.$ac_objext; then
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8098 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8099 if test $ac_cv_c_const = no; then
8101 cat >>confdefs.h <<\_ACEOF
8108 { echo "$as_me:$LINENO: checking for signed" >&5
8109 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8110 if test "${bh_cv_c_signed+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8128 rm -f conftest.$ac_objext
8129 if { (ac_try="$ac_compile"
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_compile") 2>conftest.er1
8137 grep -v '^ *+' conftest.er1 >conftest.err
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } && {
8142 test -z "$ac_c_werror_flag" ||
8143 test ! -s conftest.err
8144 } && test -s conftest.$ac_objext; then
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8156 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8157 if test $bh_cv_c_signed = no; then
8159 cat >>confdefs.h <<\_ACEOF
8165 { echo "$as_me:$LINENO: checking for inline" >&5
8166 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8167 if test "${ac_cv_c_inline+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 for ac_kw in inline __inline__ __inline; do
8172 cat >conftest.$ac_ext <<_ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8180 static $ac_kw foo_t static_foo () {return 0; }
8181 $ac_kw foo_t foo () {return 0; }
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest.$ac_objext; then
8202 ac_cv_c_inline=$ac_kw
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 test "$ac_cv_c_inline" != no && break
8215 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8216 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8219 case $ac_cv_c_inline in
8222 case $ac_cv_c_inline in
8224 *) ac_val=$ac_cv_c_inline;;
8226 cat >>confdefs.h <<_ACEOF
8228 #define inline $ac_val
8234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8244 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8245 inttypes.h stdint.h unistd.h
8247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 cat >conftest.$ac_ext <<_ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8259 $ac_includes_default
8261 #include <$ac_header>
8263 rm -f conftest.$ac_objext
8264 if { (ac_try="$ac_compile"
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_compile") 2>conftest.er1
8272 grep -v '^ *+' conftest.er1 >conftest.err
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } && {
8277 test -z "$ac_c_werror_flag" ||
8278 test ! -s conftest.err
8279 } && test -s conftest.$ac_objext; then
8280 eval "$as_ac_Header=yes"
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8285 eval "$as_ac_Header=no"
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290 ac_res=`eval echo '${'$as_ac_Header'}'`
8291 { echo "$as_me:$LINENO: result: $ac_res" >&5
8292 echo "${ECHO_T}$ac_res" >&6; }
8293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8294 cat >>confdefs.h <<_ACEOF
8295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8303 { echo "$as_me:$LINENO: checking for off_t" >&5
8304 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8305 if test "${ac_cv_type_off_t+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 $ac_includes_default
8315 typedef off_t ac__type_new_;
8319 if ((ac__type_new_ *) 0)
8321 if (sizeof (ac__type_new_))
8327 rm -f conftest.$ac_objext
8328 if { (ac_try="$ac_compile"
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_compile") 2>conftest.er1
8336 grep -v '^ *+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } && {
8341 test -z "$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8343 } && test -s conftest.$ac_objext; then
8344 ac_cv_type_off_t=yes
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8355 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8356 if test $ac_cv_type_off_t = yes; then
8360 cat >>confdefs.h <<_ACEOF
8361 #define off_t long int
8366 { echo "$as_me:$LINENO: checking for size_t" >&5
8367 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8368 if test "${ac_cv_type_size_t+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 cat >conftest.$ac_ext <<_ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 $ac_includes_default
8378 typedef size_t ac__type_new_;
8382 if ((ac__type_new_ *) 0)
8384 if (sizeof (ac__type_new_))
8390 rm -f conftest.$ac_objext
8391 if { (ac_try="$ac_compile"
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_compile") 2>conftest.er1
8399 grep -v '^ *+' conftest.er1 >conftest.err
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest.$ac_objext; then
8407 ac_cv_type_size_t=yes
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_cv_type_size_t=no
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8418 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8419 if test $ac_cv_type_size_t = yes; then
8423 cat >>confdefs.h <<_ACEOF
8424 #define size_t unsigned int
8430 { echo "$as_me:$LINENO: checking for long long" >&5
8431 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8432 if test "${ac_cv_type_long_long+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 long long ll = 1LL; int i = 63;
8445 long long llmax = (long long) -1;
8446 return ll << i | ll >> i | llmax / ll | llmax % ll;
8451 rm -f conftest.$ac_objext conftest$ac_exeext
8452 if { (ac_try="$ac_link"
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_link") 2>conftest.er1
8460 grep -v '^ *+' conftest.er1 >conftest.err
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && {
8465 test -z "$ac_c_werror_flag" ||
8466 test ! -s conftest.err
8467 } && test -s conftest$ac_exeext &&
8468 $as_test_x conftest$ac_exeext; then
8469 ac_cv_type_long_long=yes
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_cv_type_long_long=no
8477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8478 conftest$ac_exeext conftest.$ac_ext
8480 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8481 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8482 if test $ac_cv_type_long_long = yes; then
8484 cat >>confdefs.h <<\_ACEOF
8485 #define HAVE_LONG_LONG 1
8491 { echo "$as_me:$LINENO: checking for long double" >&5
8492 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8493 if test "${gt_cv_c_long_double+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 if test "$GCC" = yes; then
8497 gt_cv_c_long_double=yes
8499 cat >conftest.$ac_ext <<_ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8506 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8507 long double foo = 0.0;
8508 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8509 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_compile") 2>conftest.er1
8528 grep -v '^ *+' conftest.er1 >conftest.err
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && {
8533 test -z "$ac_c_werror_flag" ||
8534 test ! -s conftest.err
8535 } && test -s conftest.$ac_objext; then
8536 gt_cv_c_long_double=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 gt_cv_c_long_double=no
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8548 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8549 if test $gt_cv_c_long_double = yes; then
8551 cat >>confdefs.h <<\_ACEOF
8552 #define HAVE_LONG_DOUBLE 1
8558 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8559 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8560 if test "${gt_cv_c_wchar_t+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8570 wchar_t foo = (wchar_t)'\0';
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586 (eval "$ac_compile") 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } && {
8593 test -z "$ac_c_werror_flag" ||
8594 test ! -s conftest.err
8595 } && test -s conftest.$ac_objext; then
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8607 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8608 if test $gt_cv_c_wchar_t = yes; then
8610 cat >>confdefs.h <<\_ACEOF
8611 #define HAVE_WCHAR_T 1
8617 { echo "$as_me:$LINENO: checking for wint_t" >&5
8618 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8619 if test "${gt_cv_c_wint_t+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8629 wint_t foo = (wchar_t)'\0';
8638 rm -f conftest.$ac_objext
8639 if { (ac_try="$ac_compile"
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_compile") 2>conftest.er1
8647 grep -v '^ *+' conftest.er1 >conftest.err
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } && {
8652 test -z "$ac_c_werror_flag" ||
8653 test ! -s conftest.err
8654 } && test -s conftest.$ac_objext; then
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8666 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8667 if test $gt_cv_c_wint_t = yes; then
8669 cat >>confdefs.h <<\_ACEOF
8670 #define HAVE_WINT_T 1
8676 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8677 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8678 if test "${gl_cv_header_inttypes_h+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 cat >conftest.$ac_ext <<_ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8687 #include <sys/types.h>
8688 #include <inttypes.h>
8692 uintmax_t i = (uintmax_t) -1;
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8706 grep -v '^ *+' conftest.er1 >conftest.err
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.$ac_objext; then
8714 gl_cv_header_inttypes_h=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 gl_cv_header_inttypes_h=no
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8725 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8726 if test $gl_cv_header_inttypes_h = yes; then
8728 cat >>confdefs.h <<_ACEOF
8729 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8735 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8736 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8737 if test "${gl_cv_header_stdint_h+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 cat >conftest.$ac_ext <<_ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8746 #include <sys/types.h>
8751 uintmax_t i = (uintmax_t) -1;
8756 rm -f conftest.$ac_objext
8757 if { (ac_try="$ac_compile"
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_compile") 2>conftest.er1
8765 grep -v '^ *+' conftest.er1 >conftest.err
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 } && test -s conftest.$ac_objext; then
8773 gl_cv_header_stdint_h=yes
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 gl_cv_header_stdint_h=no
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8784 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8785 if test $gl_cv_header_stdint_h = yes; then
8787 cat >>confdefs.h <<_ACEOF
8788 #define HAVE_STDINT_H_WITH_UINTMAX 1
8796 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8797 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8798 if test "${gt_cv_c_intmax_t+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8810 #if HAVE_STDINT_H_WITH_UINTMAX
8813 #if HAVE_INTTYPES_H_WITH_UINTMAX
8814 #include <inttypes.h>
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.$ac_objext; then
8842 gt_cv_c_intmax_t=yes
8844 echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8853 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8854 if test $gt_cv_c_intmax_t = yes; then
8856 cat >>confdefs.h <<\_ACEOF
8857 #define HAVE_INTMAX_T 1
8864 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8865 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8866 if test "${gt_cv_func_printf_posix+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 if test "$cross_compiling" = yes; then
8872 cat >conftest.$ac_ext <<_ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8879 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8885 $EGREP "notposix" >/dev/null 2>&1; then
8886 gt_cv_func_printf_posix="guessing no"
8888 gt_cv_func_printf_posix="guessing yes"
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8903 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8904 dollar expansion (possibly an autoconf bug). */
8905 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8906 static char buf[100];
8909 sprintf (buf, format, 33, 55);
8910 return (strcmp (buf, "55 33") != 0);
8913 rm -f conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_link") 2>&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8924 { (case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929 (eval "$ac_try") 2>&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 gt_cv_func_printf_posix=yes
8935 echo "$as_me: program exited with status $ac_status" >&5
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8940 gt_cv_func_printf_posix=no
8942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8948 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8949 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8950 case $gt_cv_func_printf_posix in
8953 cat >>confdefs.h <<\_ACEOF
8954 #define HAVE_POSIX_PRINTF 1
8960 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8961 # for constant arguments. Useless!
8962 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8963 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8964 if test "${ac_cv_working_alloca_h+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 cat >conftest.$ac_ext <<_ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8977 char *p = (char *) alloca (2 * sizeof (int));
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_link") 2>conftest.er1
8992 grep -v '^ *+' conftest.er1 >conftest.err
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_c_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest$ac_exeext &&
9000 $as_test_x conftest$ac_exeext; then
9001 ac_cv_working_alloca_h=yes
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 ac_cv_working_alloca_h=no
9009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9010 conftest$ac_exeext conftest.$ac_ext
9012 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9013 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9014 if test $ac_cv_working_alloca_h = yes; then
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_ALLOCA_H 1
9022 { echo "$as_me:$LINENO: checking for alloca" >&5
9023 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9024 if test "${ac_cv_func_alloca_works+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9034 # define alloca __builtin_alloca
9037 # include <malloc.h>
9038 # define alloca _alloca
9040 # ifdef HAVE_ALLOCA_H
9041 # include <alloca.h>
9046 # ifndef alloca /* predefined by HP cc +Olibcalls */
9057 char *p = (char *) alloca (1);
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (ac_try="$ac_link"
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_link") 2>conftest.er1
9072 grep -v '^ *+' conftest.er1 >conftest.err
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } && {
9077 test -z "$ac_c_werror_flag" ||
9078 test ! -s conftest.err
9079 } && test -s conftest$ac_exeext &&
9080 $as_test_x conftest$ac_exeext; then
9081 ac_cv_func_alloca_works=yes
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_cv_func_alloca_works=no
9089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9090 conftest$ac_exeext conftest.$ac_ext
9092 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9093 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9095 if test $ac_cv_func_alloca_works = yes; then
9097 cat >>confdefs.h <<\_ACEOF
9098 #define HAVE_ALLOCA 1
9102 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9103 # that cause trouble. Some versions do not even contain alloca or
9104 # contain a buggy version. If you still want to use their alloca,
9105 # use ar to extract alloca.o from them instead of compiling alloca.c.
9107 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9109 cat >>confdefs.h <<\_ACEOF
9114 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9115 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9116 if test "${ac_cv_os_cray+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 cat >conftest.$ac_ext <<_ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 #if defined CRAY && ! defined CRAY2
9132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9133 $EGREP "webecray" >/dev/null 2>&1; then
9141 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9142 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9143 if test $ac_cv_os_cray = yes; then
9144 for ac_func in _getb67 GETB67 getb67; do
9145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 cat >conftest.$ac_ext <<_ACEOF
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h. */
9157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9159 #define $ac_func innocuous_$ac_func
9161 /* System header to define __stub macros and hopefully few prototypes,
9162 which can conflict with char $ac_func (); below.
9163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9164 <limits.h> exists even on freestanding compilers. */
9167 # include <limits.h>
9169 # include <assert.h>
9174 /* Override any GCC internal prototype to avoid an error.
9175 Use char because int might match the return type of a GCC
9176 builtin and then its argument prototype would still apply. */
9181 /* The GNU C library defines this for functions which it implements
9182 to always fail with ENOSYS. Some functions are actually named
9183 something starting with __ and the normal name is an alias. */
9184 #if defined __stub_$ac_func || defined __stub___$ac_func
9196 rm -f conftest.$ac_objext conftest$ac_exeext
9197 if { (ac_try="$ac_link"
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_link") 2>conftest.er1
9205 grep -v '^ *+' conftest.er1 >conftest.err
9207 cat conftest.err >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } && {
9210 test -z "$ac_c_werror_flag" ||
9211 test ! -s conftest.err
9212 } && test -s conftest$ac_exeext &&
9213 $as_test_x conftest$ac_exeext; then
9214 eval "$as_ac_var=yes"
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 eval "$as_ac_var=no"
9222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9223 conftest$ac_exeext conftest.$ac_ext
9225 ac_res=`eval echo '${'$as_ac_var'}'`
9226 { echo "$as_me:$LINENO: result: $ac_res" >&5
9227 echo "${ECHO_T}$ac_res" >&6; }
9228 if test `eval echo '${'$as_ac_var'}'` = yes; then
9230 cat >>confdefs.h <<_ACEOF
9231 #define CRAY_STACKSEG_END $ac_func
9240 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9241 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9242 if test "${ac_cv_c_stack_direction+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 if test "$cross_compiling" = yes; then
9246 ac_cv_c_stack_direction=0
9248 cat >conftest.$ac_ext <<_ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 $ac_includes_default
9256 find_stack_direction ()
9258 static char *addr = 0;
9263 return find_stack_direction ();
9266 return (&dummy > addr) ? 1 : -1;
9272 return find_stack_direction () < 0;
9275 rm -f conftest$ac_exeext
9276 if { (ac_try="$ac_link"
9278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_link") 2>&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9286 { (case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_try") 2>&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_c_stack_direction=1
9297 echo "$as_me: program exited with status $ac_status" >&5
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_cv_c_stack_direction=-1
9304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9309 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9310 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9312 cat >>confdefs.h <<_ACEOF
9313 #define STACK_DIRECTION $ac_cv_c_stack_direction
9321 for ac_header in stdlib.h unistd.h
9323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 ac_res=`eval echo '${'$as_ac_Header'}'`
9331 { echo "$as_me:$LINENO: result: $ac_res" >&5
9332 echo "${ECHO_T}$ac_res" >&6; }
9334 # Is the header compilable?
9335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9337 cat >conftest.$ac_ext <<_ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 $ac_includes_default
9344 #include <$ac_header>
9346 rm -f conftest.$ac_objext
9347 if { (ac_try="$ac_compile"
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_compile") 2>conftest.er1
9355 grep -v '^ *+' conftest.er1 >conftest.err
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && {
9360 test -z "$ac_c_werror_flag" ||
9361 test ! -s conftest.err
9362 } && test -s conftest.$ac_objext; then
9363 ac_header_compiler=yes
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9368 ac_header_compiler=no
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9373 echo "${ECHO_T}$ac_header_compiler" >&6; }
9375 # Is the header present?
9376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9378 cat >conftest.$ac_ext <<_ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 #include <$ac_header>
9386 if { (ac_try="$ac_cpp conftest.$ac_ext"
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } >/dev/null && {
9399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9402 ac_header_preproc=yes
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_header_preproc=no
9410 rm -f conftest.err conftest.$ac_ext
9411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9412 echo "${ECHO_T}$ac_header_preproc" >&6; }
9414 # So? What about this header?
9415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9421 ac_header_preproc=yes
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 eval "$as_ac_Header=\$ac_header_preproc"
9446 ac_res=`eval echo '${'$as_ac_Header'}'`
9447 { echo "$as_me:$LINENO: result: $ac_res" >&5
9448 echo "${ECHO_T}$ac_res" >&6; }
9451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9452 cat >>confdefs.h <<_ACEOF
9453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9461 for ac_func in getpagesize
9463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 cat >conftest.$ac_ext <<_ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9477 #define $ac_func innocuous_$ac_func
9479 /* System header to define __stub macros and hopefully few prototypes,
9480 which can conflict with char $ac_func (); below.
9481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9482 <limits.h> exists even on freestanding compilers. */
9485 # include <limits.h>
9487 # include <assert.h>
9492 /* Override any GCC internal prototype to avoid an error.
9493 Use char because int might match the return type of a GCC
9494 builtin and then its argument prototype would still apply. */
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined __stub_$ac_func || defined __stub___$ac_func
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (ac_try="$ac_link"
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_link") 2>conftest.er1
9523 grep -v '^ *+' conftest.er1 >conftest.err
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && {
9528 test -z "$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9530 } && test -s conftest$ac_exeext &&
9531 $as_test_x conftest$ac_exeext; then
9532 eval "$as_ac_var=yes"
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 eval "$as_ac_var=no"
9540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9541 conftest$ac_exeext conftest.$ac_ext
9543 ac_res=`eval echo '${'$as_ac_var'}'`
9544 { echo "$as_me:$LINENO: result: $ac_res" >&5
9545 echo "${ECHO_T}$ac_res" >&6; }
9546 if test `eval echo '${'$as_ac_var'}'` = yes; then
9547 cat >>confdefs.h <<_ACEOF
9548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9554 { echo "$as_me:$LINENO: checking for working mmap" >&5
9555 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9556 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 if test "$cross_compiling" = yes; then
9560 ac_cv_func_mmap_fixed_mapped=no
9562 cat >conftest.$ac_ext <<_ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 $ac_includes_default
9569 /* malloc might have been renamed as rpl_malloc. */
9572 /* Thanks to Mike Haertel and Jim Avera for this test.
9573 Here is a matrix of mmap possibilities:
9574 mmap private not fixed
9575 mmap private fixed at somewhere currently unmapped
9576 mmap private fixed at somewhere already mapped
9577 mmap shared not fixed
9578 mmap shared fixed at somewhere currently unmapped
9579 mmap shared fixed at somewhere already mapped
9580 For private mappings, we should verify that changes cannot be read()
9581 back from the file, nor mmap's back from the file at a different
9582 address. (There have been systems where private was not correctly
9583 implemented like the infamous i386 svr4.0, and systems where the
9584 VM page cache was not coherent with the file system buffer cache
9585 like early versions of FreeBSD and possibly contemporary NetBSD.)
9586 For shared mappings, we should conversely verify that changes get
9587 propagated back to all the places they're supposed to be.
9589 Grep wants private fixed already mapped.
9590 The main things grep needs to know about mmap are:
9591 * does it exist and is it safe to write into the mmap'd area
9592 * how to use it (BSD variants) */
9595 #include <sys/mman.h>
9597 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9601 /* This mess was copied from the GNU getpagesize.h. */
9602 #ifndef HAVE_GETPAGESIZE
9603 /* Assume that all systems that can run configure have sys/param.h. */
9604 # ifndef HAVE_SYS_PARAM_H
9605 # define HAVE_SYS_PARAM_H 1
9608 # ifdef _SC_PAGESIZE
9609 # define getpagesize() sysconf(_SC_PAGESIZE)
9610 # else /* no _SC_PAGESIZE */
9611 # ifdef HAVE_SYS_PARAM_H
9612 # include <sys/param.h>
9613 # ifdef EXEC_PAGESIZE
9614 # define getpagesize() EXEC_PAGESIZE
9615 # else /* no EXEC_PAGESIZE */
9617 # define getpagesize() NBPG * CLSIZE
9620 # endif /* no CLSIZE */
9621 # else /* no NBPG */
9623 # define getpagesize() NBPC
9624 # else /* no NBPC */
9626 # define getpagesize() PAGESIZE
9627 # endif /* PAGESIZE */
9628 # endif /* no NBPC */
9629 # endif /* no NBPG */
9630 # endif /* no EXEC_PAGESIZE */
9631 # else /* no HAVE_SYS_PARAM_H */
9632 # define getpagesize() 8192 /* punt totally */
9633 # endif /* no HAVE_SYS_PARAM_H */
9634 # endif /* no _SC_PAGESIZE */
9636 #endif /* no HAVE_GETPAGESIZE */
9641 char *data, *data2, *data3;
9645 pagesize = getpagesize ();
9647 /* First, make a file with some known garbage in it. */
9648 data = (char *) malloc (pagesize);
9651 for (i = 0; i < pagesize; ++i)
9652 *(data + i) = rand ();
9654 fd = creat ("conftest.mmap", 0600);
9657 if (write (fd, data, pagesize) != pagesize)
9661 /* Next, try to mmap the file at a fixed address which already has
9662 something else allocated at it. If we can, also make sure that
9663 we see the same garbage. */
9664 fd = open ("conftest.mmap", O_RDWR);
9667 data2 = (char *) malloc (2 * pagesize);
9670 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9671 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9672 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9674 for (i = 0; i < pagesize; ++i)
9675 if (*(data + i) != *(data2 + i))
9678 /* Finally, make sure that changes to the mapped area do not
9679 percolate back to the file as seen by read(). (This is a bug on
9680 some variants of i386 svr4.0.) */
9681 for (i = 0; i < pagesize; ++i)
9682 *(data2 + i) = *(data2 + i) + 1;
9683 data3 = (char *) malloc (pagesize);
9686 if (read (fd, data3, pagesize) != pagesize)
9688 for (i = 0; i < pagesize; ++i)
9689 if (*(data + i) != *(data3 + i))
9695 rm -f conftest$ac_exeext
9696 if { (ac_try="$ac_link"
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_link") 2>&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9706 { (case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_try") 2>&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 ac_cv_func_mmap_fixed_mapped=yes
9717 echo "$as_me: program exited with status $ac_status" >&5
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_cv_func_mmap_fixed_mapped=no
9724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9729 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9730 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9731 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9733 cat >>confdefs.h <<\_ACEOF
9741 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9742 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9743 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 cat >conftest.$ac_ext <<_ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9753 #include <features.h>
9754 #ifdef __GNU_LIBRARY__
9755 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9762 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9763 ac_cv_gnu_library_2_1=yes
9765 ac_cv_gnu_library_2_1=no
9772 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9773 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9775 GLIBC21="$ac_cv_gnu_library_2_1"
9780 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9781 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9782 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 if test "$cross_compiling" = yes; then
9788 # Guess based on the CPU.
9790 alpha* | i3456786 | m68k | s390*)
9791 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9793 gt_cv_int_divbyzero_sigfpe="guessing no";;
9797 cat >conftest.$ac_ext <<_ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9809 sigfpe_handler (int sig)
9811 sigfpe_handler (sig) int sig;
9814 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9815 exit (sig != SIGFPE);
9825 signal (SIGFPE, sigfpe_handler);
9826 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9827 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9828 signal (SIGTRAP, sigfpe_handler);
9830 /* Linux/SPARC yields signal SIGILL. */
9831 #if defined (__sparc__) && defined (__linux__)
9832 signal (SIGILL, sigfpe_handler);
9841 rm -f conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_link") 2>&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9852 { (case "(($ac_try" in
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_try") 2>&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 gt_cv_int_divbyzero_sigfpe=yes
9863 echo "$as_me: program exited with status $ac_status" >&5
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9868 gt_cv_int_divbyzero_sigfpe=no
9870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9876 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9877 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9878 case "$gt_cv_int_divbyzero_sigfpe" in
9883 cat >>confdefs.h <<_ACEOF
9884 #define INTDIV0_RAISES_SIGFPE $value
9889 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9890 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9891 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 cat >conftest.$ac_ext <<_ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 unsigned long long ull = 1ULL; int i = 63;
9904 unsigned long long ullmax = (unsigned long long) -1;
9905 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (ac_try="$ac_link"
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_link") 2>conftest.er1
9919 grep -v '^ *+' conftest.er1 >conftest.err
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } && {
9924 test -z "$ac_c_werror_flag" ||
9925 test ! -s conftest.err
9926 } && test -s conftest$ac_exeext &&
9927 $as_test_x conftest$ac_exeext; then
9928 ac_cv_type_unsigned_long_long=yes
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ac_cv_type_unsigned_long_long=no
9936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9937 conftest$ac_exeext conftest.$ac_ext
9939 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9940 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9941 if test $ac_cv_type_unsigned_long_long = yes; then
9943 cat >>confdefs.h <<\_ACEOF
9944 #define HAVE_UNSIGNED_LONG_LONG 1
9952 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9954 test $ac_cv_type_unsigned_long_long = yes \
9955 && ac_type='unsigned long long' \
9956 || ac_type='unsigned long'
9958 cat >>confdefs.h <<_ACEOF
9959 #define uintmax_t $ac_type
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_UINTMAX_T 1
9971 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9972 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9973 if test "${gt_cv_header_inttypes_h+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 #include <sys/types.h>
9984 #include <inttypes.h>
9993 rm -f conftest.$ac_objext
9994 if { (ac_try="$ac_compile"
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_compile") 2>conftest.er1
10002 grep -v '^ *+' conftest.er1 >conftest.err
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest.$ac_objext; then
10010 gt_cv_header_inttypes_h=yes
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 gt_cv_header_inttypes_h=no
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10022 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10023 if test $gt_cv_header_inttypes_h = yes; then
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_INTTYPES_H 1
10033 if test $gt_cv_header_inttypes_h = yes; then
10034 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10035 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10036 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #include <inttypes.h>
10059 rm -f conftest.$ac_objext
10060 if { (ac_try="$ac_compile"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_compile") 2>conftest.er1
10068 grep -v '^ *+' conftest.er1 >conftest.err
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && {
10073 test -z "$ac_c_werror_flag" ||
10074 test ! -s conftest.err
10075 } && test -s conftest.$ac_objext; then
10076 gt_cv_inttypes_pri_broken=no
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 gt_cv_inttypes_pri_broken=yes
10084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10088 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10090 if test "$gt_cv_inttypes_pri_broken" = yes; then
10092 cat >>confdefs.h <<_ACEOF
10093 #define PRI_MACROS_BROKEN 1
10100 for ac_header in stdint.h
10102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 ac_res=`eval echo '${'$as_ac_Header'}'`
10110 { echo "$as_me:$LINENO: result: $ac_res" >&5
10111 echo "${ECHO_T}$ac_res" >&6; }
10113 # Is the header compilable?
10114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 #include <$ac_header>
10125 rm -f conftest.$ac_objext
10126 if { (ac_try="$ac_compile"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_compile") 2>conftest.er1
10134 grep -v '^ *+' conftest.er1 >conftest.err
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } && {
10139 test -z "$ac_c_werror_flag" ||
10140 test ! -s conftest.err
10141 } && test -s conftest.$ac_objext; then
10142 ac_header_compiler=yes
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 ac_header_compiler=no
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10152 echo "${ECHO_T}$ac_header_compiler" >&6; }
10154 # Is the header present?
10155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 #include <$ac_header>
10165 if { (ac_try="$ac_cpp conftest.$ac_ext"
10166 case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10173 grep -v '^ *+' conftest.er1 >conftest.err
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } >/dev/null && {
10178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10179 test ! -s conftest.err
10181 ac_header_preproc=yes
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ac_header_preproc=no
10189 rm -f conftest.err conftest.$ac_ext
10190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10191 echo "${ECHO_T}$ac_header_preproc" >&6; }
10193 # So? What about this header?
10194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10200 ac_header_preproc=yes
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 eval "$as_ac_Header=\$ac_header_preproc"
10225 ac_res=`eval echo '${'$as_ac_Header'}'`
10226 { echo "$as_me:$LINENO: result: $ac_res" >&5
10227 echo "${ECHO_T}$ac_res" >&6; }
10230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10231 cat >>confdefs.h <<_ACEOF
10232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10239 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10240 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10249 #include <limits.h>
10251 #include <stdint.h>
10258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10259 $EGREP "Found it" >/dev/null 2>&1; then
10264 if test -z "$result"; then
10265 if test "$cross_compiling" = yes; then
10266 # Depending upon the size, compute the lo and hi bounds.
10267 cat >conftest.$ac_ext <<_ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10273 #include <stddef.h>
10277 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10284 rm -f conftest.$ac_objext
10285 if { (ac_try="$ac_compile"
10286 case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_compile") 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && {
10298 test -z "$ac_c_werror_flag" ||
10299 test ! -s conftest.err
10300 } && test -s conftest.$ac_objext; then
10303 cat >conftest.$ac_ext <<_ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 #include <stddef.h>
10313 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10320 rm -f conftest.$ac_objext
10321 if { (ac_try="$ac_compile"
10322 case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_compile") 2>conftest.er1
10329 grep -v '^ *+' conftest.er1 >conftest.err
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } && {
10334 test -z "$ac_c_werror_flag" ||
10335 test ! -s conftest.err
10336 } && test -s conftest.$ac_objext; then
10337 ac_hi=$ac_mid; break
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10342 ac_lo=`expr $ac_mid + 1`
10343 if test $ac_lo -le $ac_mid; then
10347 ac_mid=`expr 2 '*' $ac_mid + 1`
10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 cat >conftest.$ac_ext <<_ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 #include <stddef.h>
10366 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10373 rm -f conftest.$ac_objext
10374 if { (ac_try="$ac_compile"
10375 case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_compile") 2>conftest.er1
10382 grep -v '^ *+' conftest.er1 >conftest.err
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } && {
10387 test -z "$ac_c_werror_flag" ||
10388 test ! -s conftest.err
10389 } && test -s conftest.$ac_objext; then
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 #include <stddef.h>
10402 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10409 rm -f conftest.$ac_objext
10410 if { (ac_try="$ac_compile"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_compile") 2>conftest.er1
10418 grep -v '^ *+' conftest.er1 >conftest.err
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } && {
10423 test -z "$ac_c_werror_flag" ||
10424 test ! -s conftest.err
10425 } && test -s conftest.$ac_objext; then
10426 ac_lo=$ac_mid; break
10428 echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10431 ac_hi=`expr '(' $ac_mid ')' - 1`
10432 if test $ac_mid -le $ac_hi; then
10436 ac_mid=`expr 2 '*' $ac_mid`
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10452 # Binary search between lo and hi bounds.
10453 while test "x$ac_lo" != "x$ac_hi"; do
10454 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10455 cat >conftest.$ac_ext <<_ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 #include <stddef.h>
10465 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10472 rm -f conftest.$ac_objext
10473 if { (ac_try="$ac_compile"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_compile") 2>conftest.er1
10481 grep -v '^ *+' conftest.er1 >conftest.err
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } && {
10486 test -z "$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 } && test -s conftest.$ac_objext; then
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10494 ac_lo=`expr '(' $ac_mid ')' + 1`
10497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10500 ?*) res_hi=$ac_lo;;
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 #include <stddef.h>
10511 static long int longval () { return ~(size_t)0 / 10; }
10512 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10514 #include <stdlib.h>
10519 FILE *f = fopen ("conftest.val", "w");
10522 if ((~(size_t)0 / 10) < 0)
10524 long int i = longval ();
10525 if (i != (~(size_t)0 / 10))
10527 fprintf (f, "%ld\n", i);
10531 unsigned long int i = ulongval ();
10532 if (i != (~(size_t)0 / 10))
10534 fprintf (f, "%lu\n", i);
10536 return ferror (f) || fclose (f) != 0;
10542 rm -f conftest$ac_exeext
10543 if { (ac_try="$ac_link"
10544 case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_link") 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10553 { (case "(($ac_try" in
10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555 *) ac_try_echo=$ac_try;;
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558 (eval "$ac_try") 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10562 res_hi=`cat conftest.val`
10564 echo "$as_me: program exited with status $ac_status" >&5
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ( exit $ac_status )
10571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10575 if test "$cross_compiling" = yes; then
10576 # Depending upon the size, compute the lo and hi bounds.
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 #include <stddef.h>
10587 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10594 rm -f conftest.$ac_objext
10595 if { (ac_try="$ac_compile"
10596 case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601 (eval "$ac_compile") 2>conftest.er1
10603 grep -v '^ *+' conftest.er1 >conftest.err
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } && {
10608 test -z "$ac_c_werror_flag" ||
10609 test ! -s conftest.err
10610 } && test -s conftest.$ac_objext; then
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 #include <stddef.h>
10623 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10630 rm -f conftest.$ac_objext
10631 if { (ac_try="$ac_compile"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_compile") 2>conftest.er1
10639 grep -v '^ *+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest.$ac_objext; then
10647 ac_hi=$ac_mid; break
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ac_lo=`expr $ac_mid + 1`
10653 if test $ac_lo -le $ac_mid; then
10657 ac_mid=`expr 2 '*' $ac_mid + 1`
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 cat >conftest.$ac_ext <<_ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672 #include <stddef.h>
10676 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10683 rm -f conftest.$ac_objext
10684 if { (ac_try="$ac_compile"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_compile") 2>conftest.er1
10692 grep -v '^ *+' conftest.er1 >conftest.err
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } && {
10697 test -z "$ac_c_werror_flag" ||
10698 test ! -s conftest.err
10699 } && test -s conftest.$ac_objext; then
10702 cat >conftest.$ac_ext <<_ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 #include <stddef.h>
10712 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10719 rm -f conftest.$ac_objext
10720 if { (ac_try="$ac_compile"
10721 case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_compile") 2>conftest.er1
10728 grep -v '^ *+' conftest.er1 >conftest.err
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } && {
10733 test -z "$ac_c_werror_flag" ||
10734 test ! -s conftest.err
10735 } && test -s conftest.$ac_objext; then
10736 ac_lo=$ac_mid; break
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_hi=`expr '(' $ac_mid ')' - 1`
10742 if test $ac_mid -le $ac_hi; then
10746 ac_mid=`expr 2 '*' $ac_mid`
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 # Binary search between lo and hi bounds.
10763 while test "x$ac_lo" != "x$ac_hi"; do
10764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <stddef.h>
10775 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10782 rm -f conftest.$ac_objext
10783 if { (ac_try="$ac_compile"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_compile") 2>conftest.er1
10791 grep -v '^ *+' conftest.er1 >conftest.err
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } && {
10796 test -z "$ac_c_werror_flag" ||
10797 test ! -s conftest.err
10798 } && test -s conftest.$ac_objext; then
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 ac_lo=`expr '(' $ac_mid ')' + 1`
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 ?*) res_lo=$ac_lo;;
10814 cat >conftest.$ac_ext <<_ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10820 #include <stddef.h>
10821 static long int longval () { return ~(size_t)0 % 10; }
10822 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10824 #include <stdlib.h>
10829 FILE *f = fopen ("conftest.val", "w");
10832 if ((~(size_t)0 % 10) < 0)
10834 long int i = longval ();
10835 if (i != (~(size_t)0 % 10))
10837 fprintf (f, "%ld\n", i);
10841 unsigned long int i = ulongval ();
10842 if (i != (~(size_t)0 % 10))
10844 fprintf (f, "%lu\n", i);
10846 return ferror (f) || fclose (f) != 0;
10852 rm -f conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_link") 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10863 { (case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_try") 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; }; then
10872 res_lo=`cat conftest.val`
10874 echo "$as_me: program exited with status $ac_status" >&5
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10878 ( exit $ac_status )
10881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10885 if test "$cross_compiling" = yes; then
10886 # Depending upon the size, compute the lo and hi bounds.
10887 cat >conftest.$ac_ext <<_ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893 #include <stddef.h>
10897 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10904 rm -f conftest.$ac_objext
10905 if { (ac_try="$ac_compile"
10906 case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_compile") 2>conftest.er1
10913 grep -v '^ *+' conftest.er1 >conftest.err
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && {
10918 test -z "$ac_c_werror_flag" ||
10919 test ! -s conftest.err
10920 } && test -s conftest.$ac_objext; then
10923 cat >conftest.$ac_ext <<_ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 #include <stddef.h>
10933 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10940 rm -f conftest.$ac_objext
10941 if { (ac_try="$ac_compile"
10942 case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_compile") 2>conftest.er1
10949 grep -v '^ *+' conftest.er1 >conftest.err
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } && {
10954 test -z "$ac_c_werror_flag" ||
10955 test ! -s conftest.err
10956 } && test -s conftest.$ac_objext; then
10957 ac_hi=$ac_mid; break
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 ac_lo=`expr $ac_mid + 1`
10963 if test $ac_lo -le $ac_mid; then
10967 ac_mid=`expr 2 '*' $ac_mid + 1`
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 #include <stddef.h>
10986 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10993 rm -f conftest.$ac_objext
10994 if { (ac_try="$ac_compile"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && {
11007 test -z "$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest.$ac_objext; then
11012 cat >conftest.$ac_ext <<_ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 #include <stddef.h>
11022 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11029 rm -f conftest.$ac_objext
11030 if { (ac_try="$ac_compile"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_compile") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && {
11043 test -z "$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11045 } && test -s conftest.$ac_objext; then
11046 ac_lo=$ac_mid; break
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_hi=`expr '(' $ac_mid ')' - 1`
11052 if test $ac_mid -le $ac_hi; then
11056 ac_mid=`expr 2 '*' $ac_mid`
11059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 # Binary search between lo and hi bounds.
11073 while test "x$ac_lo" != "x$ac_hi"; do
11074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11075 cat >conftest.$ac_ext <<_ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11081 #include <stddef.h>
11085 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11092 rm -f conftest.$ac_objext
11093 if { (ac_try="$ac_compile"
11094 case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_compile") 2>conftest.er1
11101 grep -v '^ *+' conftest.er1 >conftest.err
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest.$ac_objext; then
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 ac_lo=`expr '(' $ac_mid ')' + 1`
11117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 ?*) fits_in_uint=$ac_lo;;
11124 cat >conftest.$ac_ext <<_ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 #include <stddef.h>
11131 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11132 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11134 #include <stdlib.h>
11139 FILE *f = fopen ("conftest.val", "w");
11142 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11144 long int i = longval ();
11145 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11147 fprintf (f, "%ld\n", i);
11151 unsigned long int i = ulongval ();
11152 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11154 fprintf (f, "%lu\n", i);
11156 return ferror (f) || fclose (f) != 0;
11162 rm -f conftest$ac_exeext
11163 if { (ac_try="$ac_link"
11164 case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_link") 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 fits_in_uint=`cat conftest.val`
11184 echo "$as_me: program exited with status $ac_status" >&5
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ( exit $ac_status )
11191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11195 if test "$fits_in_uint" = 1; then
11196 cat >conftest.$ac_ext <<_ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #include <stddef.h>
11204 extern unsigned long foo;
11214 rm -f conftest.$ac_objext
11215 if { (ac_try="$ac_compile"
11216 case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_compile") 2>conftest.er1
11223 grep -v '^ *+' conftest.er1 >conftest.err
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } && {
11228 test -z "$ac_c_werror_flag" ||
11229 test ! -s conftest.err
11230 } && test -s conftest.$ac_objext; then
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 if test -z "$result"; then
11242 if test "$fits_in_uint" = 1; then
11243 result="$res_hi$res_lo"U
11245 result="$res_hi$res_lo"UL
11248 result='~(size_t)0'
11251 { echo "$as_me:$LINENO: result: $result" >&5
11252 echo "${ECHO_T}$result" >&6; }
11253 if test "$result" != yes; then
11255 cat >>confdefs.h <<_ACEOF
11256 #define SIZE_MAX $result
11265 for ac_header in stdint.h
11267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11278 # Is the header compilable?
11279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11281 cat >conftest.$ac_ext <<_ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 $ac_includes_default
11288 #include <$ac_header>
11290 rm -f conftest.$ac_objext
11291 if { (ac_try="$ac_compile"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && {
11304 test -z "$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 } && test -s conftest.$ac_objext; then
11307 ac_header_compiler=yes
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11312 ac_header_compiler=no
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11317 echo "${ECHO_T}$ac_header_compiler" >&6; }
11319 # Is the header present?
11320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <$ac_header>
11330 if { (ac_try="$ac_cpp conftest.$ac_ext"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } >/dev/null && {
11343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11346 ac_header_preproc=yes
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ac_header_preproc=no
11354 rm -f conftest.err conftest.$ac_ext
11355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11356 echo "${ECHO_T}$ac_header_preproc" >&6; }
11358 # So? What about this header?
11359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11365 ac_header_preproc=yes
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 eval "$as_ac_Header=\$ac_header_preproc"
11390 ac_res=`eval echo '${'$as_ac_Header'}'`
11391 { echo "$as_me:$LINENO: result: $ac_res" >&5
11392 echo "${ECHO_T}$ac_res" >&6; }
11395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11396 cat >>confdefs.h <<_ACEOF
11397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11411 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11412 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11413 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 cat >conftest.$ac_ext <<_ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 $ac_includes_default
11423 typedef ptrdiff_t ac__type_new_;
11427 if ((ac__type_new_ *) 0)
11429 if (sizeof (ac__type_new_))
11435 rm -f conftest.$ac_objext
11436 if { (ac_try="$ac_compile"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_compile") 2>conftest.er1
11444 grep -v '^ *+' conftest.er1 >conftest.err
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest.$ac_objext; then
11452 ac_cv_type_ptrdiff_t=yes
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 ac_cv_type_ptrdiff_t=no
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11463 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11464 if test $ac_cv_type_ptrdiff_t = yes; then
11468 cat >>confdefs.h <<\_ACEOF
11469 #define ptrdiff_t long
11485 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11486 stdlib.h string.h unistd.h sys/param.h
11488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11499 # Is the header compilable?
11500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header>
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_compile") 2>conftest.er1
11520 grep -v '^ *+' conftest.er1 >conftest.err
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && {
11525 test -z "$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 } && test -s conftest.$ac_objext; then
11528 ac_header_compiler=yes
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 ac_header_compiler=no
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11538 echo "${ECHO_T}$ac_header_compiler" >&6; }
11540 # Is the header present?
11541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11543 cat >conftest.$ac_ext <<_ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 #include <$ac_header>
11551 if { (ac_try="$ac_cpp conftest.$ac_ext"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11559 grep -v '^ *+' conftest.er1 >conftest.err
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } >/dev/null && {
11564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11565 test ! -s conftest.err
11567 ac_header_preproc=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_header_preproc=no
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11579 # So? What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586 ac_header_preproc=yes
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 eval "$as_ac_Header=\$ac_header_preproc"
11611 ac_res=`eval echo '${'$as_ac_Header'}'`
11612 { echo "$as_me:$LINENO: result: $ac_res" >&5
11613 echo "${ECHO_T}$ac_res" >&6; }
11616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11617 cat >>confdefs.h <<_ACEOF
11618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11648 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11649 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11650 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11667 #define $ac_func innocuous_$ac_func
11669 /* System header to define __stub macros and hopefully few prototypes,
11670 which can conflict with char $ac_func (); below.
11671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672 <limits.h> exists even on freestanding compilers. */
11675 # include <limits.h>
11677 # include <assert.h>
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11689 /* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11699 return $ac_func ();
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } && {
11718 test -z "$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11720 } && test -s conftest$ac_exeext &&
11721 $as_test_x conftest$ac_exeext; then
11722 eval "$as_ac_var=yes"
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 eval "$as_ac_var=no"
11730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11731 conftest$ac_exeext conftest.$ac_ext
11733 ac_res=`eval echo '${'$as_ac_var'}'`
11734 { echo "$as_me:$LINENO: result: $ac_res" >&5
11735 echo "${ECHO_T}$ac_res" >&6; }
11736 if test `eval echo '${'$as_ac_var'}'` = yes; then
11737 cat >>confdefs.h <<_ACEOF
11738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11747 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11748 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11763 char *p = (char *) _snprintf;
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11787 ac_cv_have_decl__snprintf=yes
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_cv_have_decl__snprintf=no
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11797 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11798 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11799 if test $ac_cv_have_decl__snprintf = yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define HAVE_DECL__SNPRINTF $gt_value
11811 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11812 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11813 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 cat >conftest.$ac_ext <<_ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11828 char *p = (char *) _snwprintf;
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_compile") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest.$ac_objext; then
11852 ac_cv_have_decl__snwprintf=yes
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_cv_have_decl__snwprintf=no
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11863 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11864 if test $ac_cv_have_decl__snwprintf = yes; then
11870 cat >>confdefs.h <<_ACEOF
11871 #define HAVE_DECL__SNWPRINTF $gt_value
11877 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11878 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11879 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11893 #ifndef feof_unlocked
11894 char *p = (char *) feof_unlocked;
11901 rm -f conftest.$ac_objext
11902 if { (ac_try="$ac_compile"
11903 case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_compile") 2>conftest.er1
11910 grep -v '^ *+' conftest.er1 >conftest.err
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest.$ac_objext; then
11918 ac_cv_have_decl_feof_unlocked=yes
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_cv_have_decl_feof_unlocked=no
11926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11929 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11930 if test $ac_cv_have_decl_feof_unlocked = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11942 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11943 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11944 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11958 #ifndef fgets_unlocked
11959 char *p = (char *) fgets_unlocked;
11966 rm -f conftest.$ac_objext
11967 if { (ac_try="$ac_compile"
11968 case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_compile") 2>conftest.er1
11975 grep -v '^ *+' conftest.er1 >conftest.err
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } && {
11980 test -z "$ac_c_werror_flag" ||
11981 test ! -s conftest.err
11982 } && test -s conftest.$ac_objext; then
11983 ac_cv_have_decl_fgets_unlocked=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_have_decl_fgets_unlocked=no
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11993 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11994 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11995 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12001 cat >>confdefs.h <<_ACEOF
12002 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12007 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12008 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12009 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 cat >conftest.$ac_ext <<_ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12023 #ifndef getc_unlocked
12024 char *p = (char *) getc_unlocked;
12031 rm -f conftest.$ac_objext
12032 if { (ac_try="$ac_compile"
12033 case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_compile") 2>conftest.er1
12040 grep -v '^ *+' conftest.er1 >conftest.err
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } && {
12045 test -z "$ac_c_werror_flag" ||
12046 test ! -s conftest.err
12047 } && test -s conftest.$ac_objext; then
12048 ac_cv_have_decl_getc_unlocked=yes
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 ac_cv_have_decl_getc_unlocked=no
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12059 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12060 if test $ac_cv_have_decl_getc_unlocked = yes; then
12066 cat >>confdefs.h <<_ACEOF
12067 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12072 case $gt_cv_func_printf_posix in
12073 *yes) HAVE_POSIX_PRINTF=1 ;;
12074 *) HAVE_POSIX_PRINTF=0 ;;
12077 if test "$ac_cv_func_asprintf" = yes; then
12083 if test "$ac_cv_func_snprintf" = yes; then
12089 if test "$ac_cv_func_wprintf" = yes; then
12101 am_save_CPPFLAGS="$CPPFLAGS"
12103 for element in $INCICONV; do
12105 for x in $CPPFLAGS; do
12107 acl_save_prefix="$prefix"
12108 prefix="$acl_final_prefix"
12109 acl_save_exec_prefix="$exec_prefix"
12110 exec_prefix="$acl_final_exec_prefix"
12112 exec_prefix="$acl_save_exec_prefix"
12113 prefix="$acl_save_prefix"
12115 if test "X$x" = "X$element"; then
12120 if test -z "$haveit"; then
12121 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12126 { echo "$as_me:$LINENO: checking for iconv" >&5
12127 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12128 if test "${am_cv_func_iconv+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 am_cv_func_iconv="no, consider installing GNU libiconv"
12134 cat >conftest.$ac_ext <<_ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 #include <stdlib.h>
12145 iconv_t cd = iconv_open("","");
12146 iconv(cd,NULL,NULL,NULL,NULL);
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (ac_try="$ac_link"
12154 case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_link") 2>conftest.er1
12161 grep -v '^ *+' conftest.er1 >conftest.err
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } && {
12166 test -z "$ac_c_werror_flag" ||
12167 test ! -s conftest.err
12168 } && test -s conftest$ac_exeext &&
12169 $as_test_x conftest$ac_exeext; then
12170 am_cv_func_iconv=yes
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12179 conftest$ac_exeext conftest.$ac_ext
12180 if test "$am_cv_func_iconv" != yes; then
12181 am_save_LIBS="$LIBS"
12182 LIBS="$LIBS $LIBICONV"
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #include <stdlib.h>
12194 iconv_t cd = iconv_open("","");
12195 iconv(cd,NULL,NULL,NULL,NULL);
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_link") 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } && {
12215 test -z "$ac_c_werror_flag" ||
12216 test ! -s conftest.err
12217 } && test -s conftest$ac_exeext &&
12218 $as_test_x conftest$ac_exeext; then
12219 am_cv_lib_iconv=yes
12220 am_cv_func_iconv=yes
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS="$am_save_LIBS"
12234 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12235 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12236 if test "$am_cv_func_iconv" = yes; then
12238 cat >>confdefs.h <<\_ACEOF
12239 #define HAVE_ICONV 1
12243 if test "$am_cv_lib_iconv" = yes; then
12244 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12245 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12246 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12247 echo "${ECHO_T}$LIBICONV" >&6; }
12249 CPPFLAGS="$am_save_CPPFLAGS"
12256 if test "$am_cv_func_iconv" = yes; then
12257 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12258 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12259 if test "${am_cv_proto_iconv+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12270 #include <stdlib.h>
12276 #if defined(__STDC__) || defined(__cplusplus)
12277 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_compile") 2>conftest.er1
12299 grep -v '^ *+' conftest.er1 >conftest.err
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest.$ac_objext; then
12307 am_cv_proto_iconv_arg1=""
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 am_cv_proto_iconv_arg1="const"
12315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316 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);"
12319 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12320 { echo "$as_me:$LINENO: result: ${ac_t:-
12321 }$am_cv_proto_iconv" >&5
12322 echo "${ECHO_T}${ac_t:-
12323 }$am_cv_proto_iconv" >&6; }
12325 cat >>confdefs.h <<_ACEOF
12326 #define ICONV_CONST $am_cv_proto_iconv_arg1
12332 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12333 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12334 if test "${am_cv_langinfo_codeset+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 #include <langinfo.h>
12347 char* cs = nl_langinfo(CODESET);
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (ac_try="$ac_link"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_link") 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && {
12366 test -z "$ac_c_werror_flag" ||
12367 test ! -s conftest.err
12368 } && test -s conftest$ac_exeext &&
12369 $as_test_x conftest$ac_exeext; then
12370 am_cv_langinfo_codeset=yes
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 am_cv_langinfo_codeset=no
12378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12379 conftest$ac_exeext conftest.$ac_ext
12382 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12383 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12384 if test $am_cv_langinfo_codeset = yes; then
12386 cat >>confdefs.h <<\_ACEOF
12387 #define HAVE_LANGINFO_CODESET 1
12392 if test $ac_cv_header_locale_h = yes; then
12394 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12395 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12396 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 #include <locale.h>
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (ac_try="$ac_link"
12416 case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_link") 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && {
12428 test -z "$ac_c_werror_flag" ||
12429 test ! -s conftest.err
12430 } && test -s conftest$ac_exeext &&
12431 $as_test_x conftest$ac_exeext; then
12432 gt_cv_val_LC_MESSAGES=yes
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 gt_cv_val_LC_MESSAGES=no
12440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12441 conftest$ac_exeext conftest.$ac_ext
12443 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12444 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12445 if test $gt_cv_val_LC_MESSAGES = yes; then
12447 cat >>confdefs.h <<\_ACEOF
12448 #define HAVE_LC_MESSAGES 1
12455 if test -n "$INTL_MACOSX_LIBS"; then
12456 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12459 for ac_prog in bison
12461 # Extract the first word of "$ac_prog", so it can be a program name with args.
12462 set dummy $ac_prog; ac_word=$2
12463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12465 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 if test -n "$INTLBISON"; then
12469 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in $PATH
12475 test -z "$as_dir" && as_dir=.
12476 for ac_exec_ext in '' $ac_executable_extensions; do
12477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12478 ac_cv_prog_INTLBISON="$ac_prog"
12479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 INTLBISON=$ac_cv_prog_INTLBISON
12489 if test -n "$INTLBISON"; then
12490 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12491 echo "${ECHO_T}$INTLBISON" >&6; }
12493 { echo "$as_me:$LINENO: result: no" >&5
12494 echo "${ECHO_T}no" >&6; }
12498 test -n "$INTLBISON" && break
12501 if test -z "$INTLBISON"; then
12504 { echo "$as_me:$LINENO: checking version of bison" >&5
12505 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12506 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12507 case $ac_prog_version in
12508 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12509 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12510 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12511 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12513 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12514 echo "${ECHO_T}$ac_prog_version" >&6; }
12516 if test $ac_verc_fail = yes; then
12535 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12536 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12537 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 gt_save_CPPFLAGS="$CPPFLAGS"
12541 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12542 gt_save_LIBS="$LIBS"
12543 LIBS="$LIBS -framework CoreFoundation"
12544 cat >conftest.$ac_ext <<_ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 #include <CFPreferences.h>
12554 CFPreferencesCopyAppValue(NULL, NULL)
12559 rm -f conftest.$ac_objext conftest$ac_exeext
12560 if { (ac_try="$ac_link"
12561 case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_link") 2>conftest.er1
12568 grep -v '^ *+' conftest.er1 >conftest.err
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } && {
12573 test -z "$ac_c_werror_flag" ||
12574 test ! -s conftest.err
12575 } && test -s conftest$ac_exeext &&
12576 $as_test_x conftest$ac_exeext; then
12577 gt_cv_func_CFPreferencesCopyAppValue=yes
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12582 gt_cv_func_CFPreferencesCopyAppValue=no
12585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12586 conftest$ac_exeext conftest.$ac_ext
12587 CPPFLAGS="$gt_save_CPPFLAGS"
12588 LIBS="$gt_save_LIBS"
12590 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12591 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12592 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12594 cat >>confdefs.h <<\_ACEOF
12595 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12599 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12600 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12601 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 gt_save_CPPFLAGS="$CPPFLAGS"
12605 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12606 gt_save_LIBS="$LIBS"
12607 LIBS="$LIBS -framework CoreFoundation"
12608 cat >conftest.$ac_ext <<_ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12614 #include <CFLocale.h>
12618 CFLocaleCopyCurrent();
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (ac_try="$ac_link"
12625 case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_link") 2>conftest.er1
12632 grep -v '^ *+' conftest.er1 >conftest.err
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest$ac_exeext &&
12640 $as_test_x conftest$ac_exeext; then
12641 gt_cv_func_CFLocaleCopyCurrent=yes
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 gt_cv_func_CFLocaleCopyCurrent=no
12649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12650 conftest$ac_exeext conftest.$ac_ext
12651 CPPFLAGS="$gt_save_CPPFLAGS"
12652 LIBS="$gt_save_LIBS"
12654 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12655 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12656 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12658 cat >>confdefs.h <<\_ACEOF
12659 #define HAVE_CFLOCALECOPYCURRENT 1
12664 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12665 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12671 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12672 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12673 # Check whether --enable-nls was given.
12674 if test "${enable_nls+set}" = set; then
12675 enableval=$enable_nls; USE_NLS=$enableval
12680 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12681 echo "${ECHO_T}$USE_NLS" >&6; }
12686 BUILD_INCLUDED_LIBINTL=no
12687 USE_INCLUDED_LIBINTL=no
12693 if test "$USE_NLS" = "yes"; then
12694 gt_use_preinstalled_gnugettext=no
12696 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12697 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12699 # Check whether --with-included-gettext was given.
12700 if test "${with_included_gettext+set}" = set; then
12701 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12703 nls_cv_force_use_gnu_gettext=no
12706 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12707 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12709 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12710 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12717 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12718 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12719 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 cat >conftest.$ac_ext <<_ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12728 #include <libintl.h>
12729 extern int _nl_msg_cat_cntr;
12730 extern int *_nl_domain_bindings;
12734 bindtextdomain ("", "");
12735 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12740 rm -f conftest.$ac_objext conftest$ac_exeext
12741 if { (ac_try="$ac_link"
12742 case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_link") 2>conftest.er1
12749 grep -v '^ *+' conftest.er1 >conftest.err
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && {
12754 test -z "$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 } && test -s conftest$ac_exeext &&
12757 $as_test_x conftest$ac_exeext; then
12758 gt_cv_func_gnugettext1_libc=yes
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 gt_cv_func_gnugettext1_libc=no
12766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12767 conftest$ac_exeext conftest.$ac_ext
12769 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12770 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12772 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12778 acl_save_prefix="$prefix"
12779 prefix="$acl_final_prefix"
12780 acl_save_exec_prefix="$exec_prefix"
12781 exec_prefix="$acl_final_exec_prefix"
12783 eval additional_includedir=\"$includedir\"
12784 eval additional_libdir=\"$libdir\"
12786 exec_prefix="$acl_save_exec_prefix"
12787 prefix="$acl_save_prefix"
12790 # Check whether --with-libintl-prefix was given.
12791 if test "${with_libintl_prefix+set}" = set; then
12792 withval=$with_libintl_prefix;
12793 if test "X$withval" = "Xno"; then
12796 if test "X$withval" = "X"; then
12798 acl_save_prefix="$prefix"
12799 prefix="$acl_final_prefix"
12800 acl_save_exec_prefix="$exec_prefix"
12801 exec_prefix="$acl_final_exec_prefix"
12803 eval additional_includedir=\"$includedir\"
12804 eval additional_libdir=\"$libdir\"
12806 exec_prefix="$acl_save_exec_prefix"
12807 prefix="$acl_save_prefix"
12810 additional_includedir="$withval/include"
12811 additional_libdir="$withval/lib"
12822 names_already_handled=
12823 names_next_round='intl '
12824 while test -n "$names_next_round"; do
12825 names_this_round="$names_next_round"
12827 for name in $names_this_round; do
12829 for n in $names_already_handled; do
12830 if test "$n" = "$name"; then
12831 already_handled=yes
12835 if test -z "$already_handled"; then
12836 names_already_handled="$names_already_handled $name"
12837 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12838 eval value=\"\$HAVE_LIB$uppername\"
12839 if test -n "$value"; then
12840 if test "$value" = yes; then
12841 eval value=\"\$LIB$uppername\"
12842 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12843 eval value=\"\$LTLIB$uppername\"
12844 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12853 if test $use_additional = yes; then
12854 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12855 found_dir="$additional_libdir"
12856 found_so="$additional_libdir/lib$name.$shlibext"
12857 if test -f "$additional_libdir/lib$name.la"; then
12858 found_la="$additional_libdir/lib$name.la"
12861 if test -f "$additional_libdir/lib$name.$libext"; then
12862 found_dir="$additional_libdir"
12863 found_a="$additional_libdir/lib$name.$libext"
12864 if test -f "$additional_libdir/lib$name.la"; then
12865 found_la="$additional_libdir/lib$name.la"
12870 if test "X$found_dir" = "X"; then
12871 for x in $LDFLAGS $LTLIBINTL; do
12873 acl_save_prefix="$prefix"
12874 prefix="$acl_final_prefix"
12875 acl_save_exec_prefix="$exec_prefix"
12876 exec_prefix="$acl_final_exec_prefix"
12878 exec_prefix="$acl_save_exec_prefix"
12879 prefix="$acl_save_prefix"
12883 dir=`echo "X$x" | sed -e 's/^X-L//'`
12884 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12886 found_so="$dir/lib$name.$shlibext"
12887 if test -f "$dir/lib$name.la"; then
12888 found_la="$dir/lib$name.la"
12891 if test -f "$dir/lib$name.$libext"; then
12893 found_a="$dir/lib$name.$libext"
12894 if test -f "$dir/lib$name.la"; then
12895 found_la="$dir/lib$name.la"
12901 if test "X$found_dir" != "X"; then
12906 if test "X$found_dir" != "X"; then
12907 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12908 if test "X$found_so" != "X"; then
12909 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12910 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12913 for x in $ltrpathdirs; do
12914 if test "X$x" = "X$found_dir"; then
12919 if test -z "$haveit"; then
12920 ltrpathdirs="$ltrpathdirs $found_dir"
12922 if test "$hardcode_direct" = yes; then
12923 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12925 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12926 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12928 for x in $rpathdirs; do
12929 if test "X$x" = "X$found_dir"; then
12934 if test -z "$haveit"; then
12935 rpathdirs="$rpathdirs $found_dir"
12939 for x in $LDFLAGS $LIBINTL; do
12941 acl_save_prefix="$prefix"
12942 prefix="$acl_final_prefix"
12943 acl_save_exec_prefix="$exec_prefix"
12944 exec_prefix="$acl_final_exec_prefix"
12946 exec_prefix="$acl_save_exec_prefix"
12947 prefix="$acl_save_prefix"
12949 if test "X$x" = "X-L$found_dir"; then
12954 if test -z "$haveit"; then
12955 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12957 if test "$hardcode_minus_L" != no; then
12958 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12960 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12966 if test "X$found_a" != "X"; then
12967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12969 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12972 additional_includedir=
12973 case "$found_dir" in
12975 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12976 additional_includedir="$basedir/include"
12979 if test "X$additional_includedir" != "X"; then
12980 if test "X$additional_includedir" != "X/usr/include"; then
12982 if test "X$additional_includedir" = "X/usr/local/include"; then
12983 if test -n "$GCC"; then
12985 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12989 if test -z "$haveit"; then
12990 for x in $CPPFLAGS $INCINTL; do
12992 acl_save_prefix="$prefix"
12993 prefix="$acl_final_prefix"
12994 acl_save_exec_prefix="$exec_prefix"
12995 exec_prefix="$acl_final_exec_prefix"
12997 exec_prefix="$acl_save_exec_prefix"
12998 prefix="$acl_save_prefix"
13000 if test "X$x" = "X-I$additional_includedir"; then
13005 if test -z "$haveit"; then
13006 if test -d "$additional_includedir"; then
13007 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13013 if test -n "$found_la"; then
13014 save_libdir="$libdir"
13015 case "$found_la" in
13016 */* | *\\*) . "$found_la" ;;
13017 *) . "./$found_la" ;;
13019 libdir="$save_libdir"
13020 for dep in $dependency_libs; do
13023 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13024 if test "X$additional_libdir" != "X/usr/lib"; then
13026 if test "X$additional_libdir" = "X/usr/local/lib"; then
13027 if test -n "$GCC"; then
13029 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13033 if test -z "$haveit"; then
13035 for x in $LDFLAGS $LIBINTL; do
13037 acl_save_prefix="$prefix"
13038 prefix="$acl_final_prefix"
13039 acl_save_exec_prefix="$exec_prefix"
13040 exec_prefix="$acl_final_exec_prefix"
13042 exec_prefix="$acl_save_exec_prefix"
13043 prefix="$acl_save_prefix"
13045 if test "X$x" = "X-L$additional_libdir"; then
13050 if test -z "$haveit"; then
13051 if test -d "$additional_libdir"; then
13052 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13056 for x in $LDFLAGS $LTLIBINTL; do
13058 acl_save_prefix="$prefix"
13059 prefix="$acl_final_prefix"
13060 acl_save_exec_prefix="$exec_prefix"
13061 exec_prefix="$acl_final_exec_prefix"
13063 exec_prefix="$acl_save_exec_prefix"
13064 prefix="$acl_save_prefix"
13066 if test "X$x" = "X-L$additional_libdir"; then
13071 if test -z "$haveit"; then
13072 if test -d "$additional_libdir"; then
13073 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13080 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13081 if test "$enable_rpath" != no; then
13083 for x in $rpathdirs; do
13084 if test "X$x" = "X$dir"; then
13089 if test -z "$haveit"; then
13090 rpathdirs="$rpathdirs $dir"
13093 for x in $ltrpathdirs; do
13094 if test "X$x" = "X$dir"; then
13099 if test -z "$haveit"; then
13100 ltrpathdirs="$ltrpathdirs $dir"
13105 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13108 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13111 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13112 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13118 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13119 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13125 if test "X$rpathdirs" != "X"; then
13126 if test -n "$hardcode_libdir_separator"; then
13128 for found_dir in $rpathdirs; do
13129 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13131 acl_save_libdir="$libdir"
13133 eval flag=\"$hardcode_libdir_flag_spec\"
13134 libdir="$acl_save_libdir"
13135 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13137 for found_dir in $rpathdirs; do
13138 acl_save_libdir="$libdir"
13139 libdir="$found_dir"
13140 eval flag=\"$hardcode_libdir_flag_spec\"
13141 libdir="$acl_save_libdir"
13142 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13146 if test "X$ltrpathdirs" != "X"; then
13147 for found_dir in $ltrpathdirs; do
13148 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13152 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13153 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13154 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 gt_save_CPPFLAGS="$CPPFLAGS"
13158 CPPFLAGS="$CPPFLAGS $INCINTL"
13159 gt_save_LIBS="$LIBS"
13160 LIBS="$LIBS $LIBINTL"
13161 cat >conftest.$ac_ext <<_ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13167 #include <libintl.h>
13168 extern int _nl_msg_cat_cntr;
13173 const char *_nl_expand_alias (const char *);
13177 bindtextdomain ("", "");
13178 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13183 rm -f conftest.$ac_objext conftest$ac_exeext
13184 if { (ac_try="$ac_link"
13185 case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_link") 2>conftest.er1
13192 grep -v '^ *+' conftest.er1 >conftest.err
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } && {
13197 test -z "$ac_c_werror_flag" ||
13198 test ! -s conftest.err
13199 } && test -s conftest$ac_exeext &&
13200 $as_test_x conftest$ac_exeext; then
13201 gt_cv_func_gnugettext1_libintl=yes
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 gt_cv_func_gnugettext1_libintl=no
13209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13210 conftest$ac_exeext conftest.$ac_ext
13211 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13212 LIBS="$LIBS $LIBICONV"
13213 cat >conftest.$ac_ext <<_ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 #include <libintl.h>
13220 extern int _nl_msg_cat_cntr;
13225 const char *_nl_expand_alias (const char *);
13229 bindtextdomain ("", "");
13230 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13235 rm -f conftest.$ac_objext conftest$ac_exeext
13236 if { (ac_try="$ac_link"
13237 case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_link") 2>conftest.er1
13244 grep -v '^ *+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest$ac_exeext &&
13252 $as_test_x conftest$ac_exeext; then
13253 LIBINTL="$LIBINTL $LIBICONV"
13254 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13255 gt_cv_func_gnugettext1_libintl=yes
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13265 conftest$ac_exeext conftest.$ac_ext
13267 CPPFLAGS="$gt_save_CPPFLAGS"
13268 LIBS="$gt_save_LIBS"
13270 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13271 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13274 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13275 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13276 && test "$PACKAGE" != gettext-runtime \
13277 && test "$PACKAGE" != gettext-tools; }; then
13278 gt_use_preinstalled_gnugettext=yes
13286 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13287 nls_cv_use_gnu_gettext=yes
13291 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13292 BUILD_INCLUDED_LIBINTL=yes
13293 USE_INCLUDED_LIBINTL=yes
13294 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13295 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13296 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13300 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13301 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13306 if test -n "$INTL_MACOSX_LIBS"; then
13307 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13308 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13309 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13310 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13314 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13315 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13317 cat >>confdefs.h <<\_ACEOF
13318 #define ENABLE_NLS 1
13326 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13327 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13328 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13329 echo "${ECHO_T}$USE_NLS" >&6; }
13330 if test "$USE_NLS" = "yes"; then
13331 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13332 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13333 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13334 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13335 gt_source="external libintl"
13340 gt_source="included intl directory"
13342 { echo "$as_me:$LINENO: result: $gt_source" >&5
13343 echo "${ECHO_T}$gt_source" >&6; }
13346 if test "$USE_NLS" = "yes"; then
13348 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13349 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13350 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13351 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13352 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13353 echo "${ECHO_T}$LIBINTL" >&6; }
13355 for element in $INCINTL; do
13357 for x in $CPPFLAGS; do
13359 acl_save_prefix="$prefix"
13360 prefix="$acl_final_prefix"
13361 acl_save_exec_prefix="$exec_prefix"
13362 exec_prefix="$acl_final_exec_prefix"
13364 exec_prefix="$acl_save_exec_prefix"
13365 prefix="$acl_save_prefix"
13367 if test "X$x" = "X$element"; then
13372 if test -z "$haveit"; then
13373 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13380 cat >>confdefs.h <<\_ACEOF
13381 #define HAVE_GETTEXT 1
13385 cat >>confdefs.h <<\_ACEOF
13386 #define HAVE_DCGETTEXT 1
13395 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13396 BUILD_INCLUDED_LIBINTL=yes
13403 nls_cv_header_intl=
13404 nls_cv_header_libgt=
13416 if test "$USE_INCLUDED_LIBINTL" = yes; then
13417 INTLOBJS="\$(GETTOBJS)"
13421 INTL_LIBTOOL_SUFFIX_PREFIX=
13425 INTLLIBS="$LIBINTL"
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 # static-tools (default off)
13690 # -------------------------------------------
13691 # Check whether --enable-static-tools was given.
13692 if test "${enable_static_tools+set}" = set; then
13693 enableval=$enable_static_tools; if test x$enableval = xyes; then
13694 support_static_tools=yes
13700 if test x$support_static_tools = xyes; then
13701 TTOOL_LDFLAGS="-static"
13705 # -------------------------------------------
13706 # static-fd (default off)
13707 # -------------------------------------------
13708 # Check whether --enable-static-fd was given.
13709 if test "${enable_static_fd+set}" = set; then
13710 enableval=$enable_static_fd; if test x$enableval = xyes; then
13711 support_static_fd=yes
13717 if test x$support_static_fd = xyes; then
13718 STATIC_FD="static-bacula-fd"
13722 # -------------------------------------------
13723 # static-sd (default off)
13724 # -------------------------------------------
13725 # Check whether --enable-static-sd was given.
13726 if test "${enable_static_sd+set}" = set; then
13727 enableval=$enable_static_sd; if test x$enableval = xyes; then
13728 support_static_sd=yes
13734 if test x$support_static_sd = xyes; then
13735 STATIC_SD="static-bacula-sd"
13739 # -------------------------------------------
13740 # static-dir (default off)
13741 # -------------------------------------------
13742 # Check whether --enable-static-dir was given.
13743 if test "${enable_static_dir+set}" = set; then
13744 enableval=$enable_static_dir; if test x$enableval = xyes; then
13745 support_static_dir=yes
13751 if test x$support_static_dir = xyes; then
13752 STATIC_DIR="static-bacula-dir"
13756 # -------------------------------------------
13757 # static-cons (default off)
13758 # -------------------------------------------
13759 # Check whether --enable-static-cons was given.
13760 if test "${enable_static_cons+set}" = set; then
13761 enableval=$enable_static_cons; if test x$enableval = xyes; then
13762 support_static_cons=yes
13770 if test x$support_static_cons = xyes; then
13771 STATIC_CONS="static-bconsole"
13772 STATIC_GNOME_CONS="static-bgnome-console"
13773 STATIC_WX_CONS="static-bwx-console"
13779 # -------------------------------------------
13780 # client_only (default off)
13781 # -------------------------------------------
13782 # Check whether --enable-client-only was given.
13783 if test "${enable_client_only+set}" = set; then
13784 enableval=$enable_client_only; if test x$enableval = xyes; then
13785 build_client_only=yes
13791 if test x$build_client_only = xno; then
13798 # -------------------------------------------
13799 # director (default on)
13800 # -------------------------------------------
13801 # Check whether --enable-build-dird was given.
13802 if test "${enable_build_dird+set}" = set; then
13803 enableval=$enable_build_dird; if test x$enableval = xno; then
13808 if test x$build_dird = xyes; then
13809 DIRD_DIR="src/dird"
13810 DIR_TOOLS="DIRTOOLS"
13813 DIR_TOOLS="NODIRTOOLS"
13818 # -------------------------------------------
13819 # stored (default on)
13820 # -------------------------------------------
13821 # Check whether --enable-build-stored was given.
13822 if test "${enable_build_stored+set}" = set; then
13823 enableval=$enable_build_stored; if test x$enableval = xno; then
13828 if test x$build_stored = xyes; then
13829 STORED_DIR="src/stored"
13835 # ---------------------------------------------------
13836 # Check for conio (Bacula readline substitute)(
13837 # ---------------------------------------------------
13838 # this allows you to turn it completely off
13839 # Check whether --enable-conio was given.
13840 if test "${enable_conio+set}" = set; then
13841 enableval=$enable_conio; if test x$enableval = xno; then
13849 # ---------------------------------------------------
13850 # Check for IPv6 support
13851 # ---------------------------------------------------
13852 # this allows you to turn it completely off
13854 # Check whether --enable-ipv6 was given.
13855 if test "${enable_ipv6+set}" = set; then
13856 enableval=$enable_ipv6; if test x$enableval = xno; then
13863 if test x$support_ipv6 = xyes; then
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 #include <sys/types.h>
13871 #include <sys/socket.h>
13872 #include <netinet/in.h>
13876 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13881 rm -f conftest.$ac_objext conftest$ac_exeext
13882 if { (ac_try="$ac_link"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_link") 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } && {
13895 test -z "$ac_c_werror_flag" ||
13896 test ! -s conftest.err
13897 } && test -s conftest$ac_exeext &&
13898 $as_test_x conftest$ac_exeext; then
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13908 conftest$ac_exeext conftest.$ac_ext
13911 if test x$support_ipv6 = xyes; then
13913 cat >>confdefs.h <<\_ACEOF
13914 #define HAVE_IPV6 1
13922 if test x$support_conio = xyes; then
13923 if test "${ac_cv_header_termcap_h+set}" = set; then
13924 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13925 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13926 if test "${ac_cv_header_termcap_h+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13930 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13932 # Is the header compilable?
13933 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13934 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13935 cat >conftest.$ac_ext <<_ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 $ac_includes_default
13942 #include <termcap.h>
13944 rm -f conftest.$ac_objext
13945 if { (ac_try="$ac_compile"
13946 case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_compile") 2>conftest.er1
13953 grep -v '^ *+' conftest.er1 >conftest.err
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } && {
13958 test -z "$ac_c_werror_flag" ||
13959 test ! -s conftest.err
13960 } && test -s conftest.$ac_objext; then
13961 ac_header_compiler=yes
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13966 ac_header_compiler=no
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13971 echo "${ECHO_T}$ac_header_compiler" >&6; }
13973 # Is the header present?
13974 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13975 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13976 cat >conftest.$ac_ext <<_ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 #include <termcap.h>
13984 if { (ac_try="$ac_cpp conftest.$ac_ext"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13992 grep -v '^ *+' conftest.er1 >conftest.err
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } >/dev/null && {
13997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13998 test ! -s conftest.err
14000 ac_header_preproc=yes
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_header_preproc=no
14008 rm -f conftest.err conftest.$ac_ext
14009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14010 echo "${ECHO_T}$ac_header_preproc" >&6; }
14012 # So? What about this header?
14013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14015 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14016 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14018 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14019 ac_header_preproc=yes
14022 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14023 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14025 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14027 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14029 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14031 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14033 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14037 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14038 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14039 if test "${ac_cv_header_termcap_h+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 ac_cv_header_termcap_h=$ac_header_preproc
14044 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14045 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14048 if test $ac_cv_header_termcap_h = yes; then
14049 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14050 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14051 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 ac_check_lib_save_LIBS=$LIBS
14055 LIBS="-ltermcap $LIBS"
14056 cat >conftest.$ac_ext <<_ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14063 /* Override any GCC internal prototype to avoid an error.
14064 Use char because int might match the return type of a GCC
14065 builtin and then its argument prototype would still apply. */
14078 rm -f conftest.$ac_objext conftest$ac_exeext
14079 if { (ac_try="$ac_link"
14080 case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_link") 2>conftest.er1
14087 grep -v '^ *+' conftest.er1 >conftest.err
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest$ac_exeext &&
14095 $as_test_x conftest$ac_exeext; then
14096 ac_cv_lib_termcap_tgetent=yes
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_cv_lib_termcap_tgetent=no
14104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14108 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14109 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14110 if test $ac_cv_lib_termcap_tgetent = yes; then
14111 CONS_LIBS="-ltermcap"
14115 support_readline=no
14117 cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_CONIO 1
14123 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14124 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14125 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 ac_check_lib_save_LIBS=$LIBS
14129 LIBS="-lncurses $LIBS"
14130 cat >conftest.$ac_ext <<_ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14137 /* Override any GCC internal prototype to avoid an error.
14138 Use char because int might match the return type of a GCC
14139 builtin and then its argument prototype would still apply. */
14152 rm -f conftest.$ac_objext conftest$ac_exeext
14153 if { (ac_try="$ac_link"
14154 case "(($ac_try" in
14155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156 *) ac_try_echo=$ac_try;;
14158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159 (eval "$ac_link") 2>conftest.er1
14161 grep -v '^ *+' conftest.er1 >conftest.err
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } && {
14166 test -z "$ac_c_werror_flag" ||
14167 test ! -s conftest.err
14168 } && test -s conftest$ac_exeext &&
14169 $as_test_x conftest$ac_exeext; then
14170 ac_cv_lib_ncurses_tgetent=yes
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 ac_cv_lib_ncurses_tgetent=no
14178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14179 conftest$ac_exeext conftest.$ac_ext
14180 LIBS=$ac_check_lib_save_LIBS
14182 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14183 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14184 if test $ac_cv_lib_ncurses_tgetent = yes; then
14185 CONS_LIBS="-lncurses"
14189 support_readline=no
14191 cat >>confdefs.h <<\_ACEOF
14192 #define HAVE_CONIO 1
14205 for ac_header in curses.h
14207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 ac_res=`eval echo '${'$as_ac_Header'}'`
14215 { echo "$as_me:$LINENO: result: $ac_res" >&5
14216 echo "${ECHO_T}$ac_res" >&6; }
14218 # Is the header compilable?
14219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14221 cat >conftest.$ac_ext <<_ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227 $ac_includes_default
14228 #include <$ac_header>
14230 rm -f conftest.$ac_objext
14231 if { (ac_try="$ac_compile"
14232 case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237 (eval "$ac_compile") 2>conftest.er1
14239 grep -v '^ *+' conftest.er1 >conftest.err
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } && {
14244 test -z "$ac_c_werror_flag" ||
14245 test ! -s conftest.err
14246 } && test -s conftest.$ac_objext; then
14247 ac_header_compiler=yes
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_header_compiler=no
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14257 echo "${ECHO_T}$ac_header_compiler" >&6; }
14259 # Is the header present?
14260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14262 cat >conftest.$ac_ext <<_ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 #include <$ac_header>
14270 if { (ac_try="$ac_cpp conftest.$ac_ext"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14278 grep -v '^ *+' conftest.er1 >conftest.err
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } >/dev/null && {
14283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14284 test ! -s conftest.err
14286 ac_header_preproc=yes
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14291 ac_header_preproc=no
14294 rm -f conftest.err conftest.$ac_ext
14295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14296 echo "${ECHO_T}$ac_header_preproc" >&6; }
14298 # So? What about this header?
14299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14305 ac_header_preproc=yes
14308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14328 eval "$as_ac_Header=\$ac_header_preproc"
14330 ac_res=`eval echo '${'$as_ac_Header'}'`
14331 { echo "$as_me:$LINENO: result: $ac_res" >&5
14332 echo "${ECHO_T}$ac_res" >&6; }
14335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14336 cat >>confdefs.h <<_ACEOF
14337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14344 { echo "$as_me:$LINENO: checking for term.h" >&5
14345 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14346 if test "${ac_cv_header_term_h+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14356 #include <curses.h>
14362 rm -f conftest.$ac_objext
14363 if { (ac_try="$ac_compile"
14364 case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369 (eval "$ac_compile") 2>conftest.er1
14371 grep -v '^ *+' conftest.er1 >conftest.err
14373 cat conftest.err >&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } && {
14376 test -z "$ac_c_werror_flag" ||
14377 test ! -s conftest.err
14378 } && test -s conftest.$ac_objext; then
14379 ac_cv_header_term_h=yes
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14384 ac_cv_header_term_h=no
14387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14390 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14391 if test $ac_cv_header_term_h = yes; then
14392 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14393 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14394 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 ac_check_lib_save_LIBS=$LIBS
14398 LIBS="-lcurses $LIBS"
14399 cat >conftest.$ac_ext <<_ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14406 /* Override any GCC internal prototype to avoid an error.
14407 Use char because int might match the return type of a GCC
14408 builtin and then its argument prototype would still apply. */
14421 rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (ac_try="$ac_link"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_link") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } && {
14435 test -z "$ac_c_werror_flag" ||
14436 test ! -s conftest.err
14437 } && test -s conftest$ac_exeext &&
14438 $as_test_x conftest$ac_exeext; then
14439 ac_cv_lib_curses_tgetent=yes
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14444 ac_cv_lib_curses_tgetent=no
14447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14448 conftest$ac_exeext conftest.$ac_ext
14449 LIBS=$ac_check_lib_save_LIBS
14451 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14452 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14453 if test $ac_cv_lib_curses_tgetent = yes; then
14454 CONS_LIBS="-lcurses"
14458 support_readline=no
14460 cat >>confdefs.h <<\_ACEOF
14461 #define HAVE_CONIO 1
14469 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14480 # ---------------------------------------------------
14481 # Check for readline support/directory (default off)
14482 # ---------------------------------------------------
14483 # this allows you to turn it completely off
14484 # Check whether --enable-readline was given.
14485 if test "${enable_readline+set}" = set; then
14486 enableval=$enable_readline; if test x$enableval = xno; then
14487 support_readline=no
14494 if test x$support_readline = xyes; then
14496 # Check whether --with-readline was given.
14497 if test "${with_readline+set}" = set; then
14498 withval=$with_readline;
14499 case "$with_readline" in
14502 if test -f ${with_readline}/readline.h; then
14503 CONS_INC="-I${with_readline}"
14504 CONS_LDFLAGS="-L$with_readline"
14505 elif test -f ${with_readline}/include/readline/readline.h; then
14506 CONS_INC="-I${with_readline}/include/readline"
14507 CONS_LDFLAGS="-L${with_readline}/lib"
14508 with_readline="${with_readline}/include/readline"
14510 with_readline="/usr/include/readline"
14512 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14515 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 ac_res=`eval echo '${'$as_ac_Header'}'`
14520 { echo "$as_me:$LINENO: result: $ac_res" >&5
14521 echo "${ECHO_T}$ac_res" >&6; }
14523 # Is the header compilable?
14524 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14525 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14526 cat >conftest.$ac_ext <<_ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 $ac_includes_default
14533 #include <${with_readline}/readline.h>
14535 rm -f conftest.$ac_objext
14536 if { (ac_try="$ac_compile"
14537 case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_compile") 2>conftest.er1
14544 grep -v '^ *+' conftest.er1 >conftest.err
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } && {
14549 test -z "$ac_c_werror_flag" ||
14550 test ! -s conftest.err
14551 } && test -s conftest.$ac_objext; then
14552 ac_header_compiler=yes
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14557 ac_header_compiler=no
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14562 echo "${ECHO_T}$ac_header_compiler" >&6; }
14564 # Is the header present?
14565 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14566 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14567 cat >conftest.$ac_ext <<_ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 #include <${with_readline}/readline.h>
14575 if { (ac_try="$ac_cpp conftest.$ac_ext"
14576 case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14583 grep -v '^ *+' conftest.er1 >conftest.err
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } >/dev/null && {
14588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14589 test ! -s conftest.err
14591 ac_header_preproc=yes
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 ac_header_preproc=no
14599 rm -f conftest.err conftest.$ac_ext
14600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14601 echo "${ECHO_T}$ac_header_preproc" >&6; }
14603 # So? What about this header?
14604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14606 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14607 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14609 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14610 ac_header_preproc=yes
14613 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14614 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14616 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14618 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14620 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14621 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14622 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14624 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14628 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14629 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 eval "$as_ac_Header=\$ac_header_preproc"
14635 ac_res=`eval echo '${'$as_ac_Header'}'`
14636 { echo "$as_me:$LINENO: result: $ac_res" >&5
14637 echo "${ECHO_T}$ac_res" >&6; }
14640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14642 cat >>confdefs.h <<\_ACEOF
14643 #define HAVE_READLINE 1
14646 CONS_LIBS="-lreadline -lhistory -ltermcap"
14651 echo "readline.h not found. readline turned off ..."
14663 # check for standard readline library
14664 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14665 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14666 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14667 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14671 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14673 # Is the header compilable?
14674 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14675 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14676 cat >conftest.$ac_ext <<_ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 $ac_includes_default
14683 #include </usr/include/readline/readline.h>
14685 rm -f conftest.$ac_objext
14686 if { (ac_try="$ac_compile"
14687 case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_compile") 2>conftest.er1
14694 grep -v '^ *+' conftest.er1 >conftest.err
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest.$ac_objext; then
14702 ac_header_compiler=yes
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14707 ac_header_compiler=no
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14712 echo "${ECHO_T}$ac_header_compiler" >&6; }
14714 # Is the header present?
14715 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14716 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include </usr/include/readline/readline.h>
14725 if { (ac_try="$ac_cpp conftest.$ac_ext"
14726 case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } >/dev/null && {
14738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14741 ac_header_preproc=yes
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_header_preproc=no
14749 rm -f conftest.err conftest.$ac_ext
14750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751 echo "${ECHO_T}$ac_header_preproc" >&6; }
14753 # So? What about this header?
14754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14756 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14757 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14759 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14760 ac_header_preproc=yes
14763 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14764 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14766 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14768 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14770 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14772 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14774 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14778 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14779 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14780 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14783 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14785 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14786 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14789 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_READLINE 1
14796 CONS_INC="-I/usr/include/readline"
14797 CONS_LIBS="-lreadline -ltermcap"
14801 # Did not find standard library, so try Bacula's default
14802 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14804 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14805 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 ac_res=`eval echo '${'$as_ac_Header'}'`
14810 { echo "$as_me:$LINENO: result: $ac_res" >&5
14811 echo "${ECHO_T}$ac_res" >&6; }
14813 # Is the header compilable?
14814 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14815 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14816 cat >conftest.$ac_ext <<_ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 $ac_includes_default
14823 #include <${TOP_DIR}/depkgs/readline/readline.h>
14825 rm -f conftest.$ac_objext
14826 if { (ac_try="$ac_compile"
14827 case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_compile") 2>conftest.er1
14834 grep -v '^ *+' conftest.er1 >conftest.err
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } && {
14839 test -z "$ac_c_werror_flag" ||
14840 test ! -s conftest.err
14841 } && test -s conftest.$ac_objext; then
14842 ac_header_compiler=yes
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14847 ac_header_compiler=no
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14852 echo "${ECHO_T}$ac_header_compiler" >&6; }
14854 # Is the header present?
14855 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14856 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 #include <${TOP_DIR}/depkgs/readline/readline.h>
14865 if { (ac_try="$ac_cpp conftest.$ac_ext"
14866 case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14873 grep -v '^ *+' conftest.er1 >conftest.err
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } >/dev/null && {
14878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14879 test ! -s conftest.err
14881 ac_header_preproc=yes
14883 echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14886 ac_header_preproc=no
14889 rm -f conftest.err conftest.$ac_ext
14890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14891 echo "${ECHO_T}$ac_header_preproc" >&6; }
14893 # So? What about this header?
14894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14896 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14897 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14899 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14900 ac_header_preproc=yes
14903 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14904 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14906 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14908 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14910 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14912 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14914 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14918 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14919 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 eval "$as_ac_Header=\$ac_header_preproc"
14925 ac_res=`eval echo '${'$as_ac_Header'}'`
14926 { echo "$as_me:$LINENO: result: $ac_res" >&5
14927 echo "${ECHO_T}$ac_res" >&6; }
14930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14932 cat >>confdefs.h <<\_ACEOF
14933 #define HAVE_READLINE 1
14937 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14938 CONS_LIBS="-lreadline -lhistory -ltermcap"
14939 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14940 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14944 echo "readline.h not found. readline turned off ..."
14971 # Minimal stuff for readline Makefile configuration
14974 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14975 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14976 if test "${ac_cv_header_stat_broken+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 cat >conftest.$ac_ext <<_ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 #include <sys/types.h>
14986 #include <sys/stat.h>
14988 #if defined S_ISBLK && defined S_IFDIR
14989 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14992 #if defined S_ISBLK && defined S_IFCHR
14993 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14996 #if defined S_ISLNK && defined S_IFREG
14997 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15000 #if defined S_ISSOCK && defined S_IFREG
15001 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15005 rm -f conftest.$ac_objext
15006 if { (ac_try="$ac_compile"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_compile") 2>conftest.er1
15014 grep -v '^ *+' conftest.er1 >conftest.err
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_c_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest.$ac_objext; then
15022 ac_cv_header_stat_broken=no
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15027 ac_cv_header_stat_broken=yes
15030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15033 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15034 if test $ac_cv_header_stat_broken = yes; then
15036 cat >>confdefs.h <<\_ACEOF
15037 #define STAT_MACROS_BROKEN 1
15047 ac_header_dirent=no
15048 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15049 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15050 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15051 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 cat >conftest.$ac_ext <<_ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15061 #include <sys/types.h>
15073 rm -f conftest.$ac_objext
15074 if { (ac_try="$ac_compile"
15075 case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_compile") 2>conftest.er1
15082 grep -v '^ *+' conftest.er1 >conftest.err
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } && {
15087 test -z "$ac_c_werror_flag" ||
15088 test ! -s conftest.err
15089 } && test -s conftest.$ac_objext; then
15090 eval "$as_ac_Header=yes"
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15095 eval "$as_ac_Header=no"
15098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15100 ac_res=`eval echo '${'$as_ac_Header'}'`
15101 { echo "$as_me:$LINENO: result: $ac_res" >&5
15102 echo "${ECHO_T}$ac_res" >&6; }
15103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15104 cat >>confdefs.h <<_ACEOF
15105 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15108 ac_header_dirent=$ac_hdr; break
15112 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15113 if test $ac_header_dirent = dirent.h; then
15114 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15115 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15116 if test "${ac_cv_search_opendir+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 ac_func_search_save_LIBS=$LIBS
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15127 /* Override any GCC internal prototype to avoid an error.
15128 Use char because int might match the return type of a GCC
15129 builtin and then its argument prototype would still apply. */
15142 for ac_lib in '' dir; do
15143 if test -z "$ac_lib"; then
15144 ac_res="none required"
15147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15149 rm -f conftest.$ac_objext conftest$ac_exeext
15150 if { (ac_try="$ac_link"
15151 case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_link") 2>conftest.er1
15158 grep -v '^ *+' conftest.er1 >conftest.err
15160 cat conftest.err >&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } && {
15163 test -z "$ac_c_werror_flag" ||
15164 test ! -s conftest.err
15165 } && test -s conftest$ac_exeext &&
15166 $as_test_x conftest$ac_exeext; then
15167 ac_cv_search_opendir=$ac_res
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15177 if test "${ac_cv_search_opendir+set}" = set; then
15181 if test "${ac_cv_search_opendir+set}" = set; then
15184 ac_cv_search_opendir=no
15186 rm conftest.$ac_ext
15187 LIBS=$ac_func_search_save_LIBS
15189 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15190 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15191 ac_res=$ac_cv_search_opendir
15192 if test "$ac_res" != no; then
15193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15198 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15199 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15200 if test "${ac_cv_search_opendir+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 ac_func_search_save_LIBS=$LIBS
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15211 /* Override any GCC internal prototype to avoid an error.
15212 Use char because int might match the return type of a GCC
15213 builtin and then its argument prototype would still apply. */
15226 for ac_lib in '' x; do
15227 if test -z "$ac_lib"; then
15228 ac_res="none required"
15231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15233 rm -f conftest.$ac_objext conftest$ac_exeext
15234 if { (ac_try="$ac_link"
15235 case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_link") 2>conftest.er1
15242 grep -v '^ *+' conftest.er1 >conftest.err
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && {
15247 test -z "$ac_c_werror_flag" ||
15248 test ! -s conftest.err
15249 } && test -s conftest$ac_exeext &&
15250 $as_test_x conftest$ac_exeext; then
15251 ac_cv_search_opendir=$ac_res
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15261 if test "${ac_cv_search_opendir+set}" = set; then
15265 if test "${ac_cv_search_opendir+set}" = set; then
15268 ac_cv_search_opendir=no
15270 rm conftest.$ac_ext
15271 LIBS=$ac_func_search_save_LIBS
15273 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15274 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15275 ac_res=$ac_cv_search_opendir
15276 if test "$ac_res" != no; then
15277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15290 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 cat >conftest.$ac_ext <<_ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15306 #define $ac_func innocuous_$ac_func
15308 /* System header to define __stub macros and hopefully few prototypes,
15309 which can conflict with char $ac_func (); below.
15310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15311 <limits.h> exists even on freestanding compilers. */
15314 # include <limits.h>
15316 # include <assert.h>
15321 /* Override any GCC internal prototype to avoid an error.
15322 Use char because int might match the return type of a GCC
15323 builtin and then its argument prototype would still apply. */
15328 /* The GNU C library defines this for functions which it implements
15329 to always fail with ENOSYS. Some functions are actually named
15330 something starting with __ and the normal name is an alias. */
15331 #if defined __stub_$ac_func || defined __stub___$ac_func
15338 return $ac_func ();
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (ac_try="$ac_link"
15345 case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_link") 2>conftest.er1
15352 grep -v '^ *+' conftest.er1 >conftest.err
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && {
15357 test -z "$ac_c_werror_flag" ||
15358 test ! -s conftest.err
15359 } && test -s conftest$ac_exeext &&
15360 $as_test_x conftest$ac_exeext; then
15361 eval "$as_ac_var=yes"
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 eval "$as_ac_var=no"
15369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15370 conftest$ac_exeext conftest.$ac_ext
15372 ac_res=`eval echo '${'$as_ac_var'}'`
15373 { echo "$as_me:$LINENO: result: $ac_res" >&5
15374 echo "${ECHO_T}$ac_res" >&6; }
15375 if test `eval echo '${'$as_ac_var'}'` = yes; then
15376 cat >>confdefs.h <<_ACEOF
15377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15385 for ac_func in nanosleep nl_langinfo
15387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 cat >conftest.$ac_ext <<_ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15401 #define $ac_func innocuous_$ac_func
15403 /* System header to define __stub macros and hopefully few prototypes,
15404 which can conflict with char $ac_func (); below.
15405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15406 <limits.h> exists even on freestanding compilers. */
15409 # include <limits.h>
15411 # include <assert.h>
15416 /* Override any GCC internal prototype to avoid an error.
15417 Use char because int might match the return type of a GCC
15418 builtin and then its argument prototype would still apply. */
15423 /* The GNU C library defines this for functions which it implements
15424 to always fail with ENOSYS. Some functions are actually named
15425 something starting with __ and the normal name is an alias. */
15426 #if defined __stub_$ac_func || defined __stub___$ac_func
15433 return $ac_func ();
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (ac_try="$ac_link"
15440 case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_link") 2>conftest.er1
15447 grep -v '^ *+' conftest.er1 >conftest.err
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } && {
15452 test -z "$ac_c_werror_flag" ||
15453 test ! -s conftest.err
15454 } && test -s conftest$ac_exeext &&
15455 $as_test_x conftest$ac_exeext; then
15456 eval "$as_ac_var=yes"
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 eval "$as_ac_var=no"
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465 conftest$ac_exeext conftest.$ac_ext
15467 ac_res=`eval echo '${'$as_ac_var'}'`
15468 { echo "$as_me:$LINENO: result: $ac_res" >&5
15469 echo "${ECHO_T}$ac_res" >&6; }
15470 if test `eval echo '${'$as_ac_var'}'` = yes; then
15471 cat >>confdefs.h <<_ACEOF
15472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15479 for ac_header in varargs.h
15481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 ac_res=`eval echo '${'$as_ac_Header'}'`
15489 { echo "$as_me:$LINENO: result: $ac_res" >&5
15490 echo "${ECHO_T}$ac_res" >&6; }
15492 # Is the header compilable?
15493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 $ac_includes_default
15502 #include <$ac_header>
15504 rm -f conftest.$ac_objext
15505 if { (ac_try="$ac_compile"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_compile") 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest.$ac_objext; then
15521 ac_header_compiler=yes
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_header_compiler=no
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531 echo "${ECHO_T}$ac_header_compiler" >&6; }
15533 # Is the header present?
15534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 #include <$ac_header>
15544 if { (ac_try="$ac_cpp conftest.$ac_ext"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15552 grep -v '^ *+' conftest.er1 >conftest.err
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } >/dev/null && {
15557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15560 ac_header_preproc=yes
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 ac_header_preproc=no
15568 rm -f conftest.err conftest.$ac_ext
15569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15570 echo "${ECHO_T}$ac_header_preproc" >&6; }
15572 # So? What about this header?
15573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15579 ac_header_preproc=yes
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 eval "$as_ac_Header=\$ac_header_preproc"
15604 ac_res=`eval echo '${'$as_ac_Header'}'`
15605 { echo "$as_me:$LINENO: result: $ac_res" >&5
15606 echo "${ECHO_T}$ac_res" >&6; }
15609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15610 cat >>confdefs.h <<_ACEOF
15611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15619 # End of readline/conio stuff
15620 # -----------------------------------------------------------------------
15622 # -----------------------------------------------------------------------
15623 # Check for Python support
15625 { echo "$as_me:$LINENO: checking for Python support" >&5
15626 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15628 # Check whether --with-python was given.
15629 if test "${with_python+set}" = set; then
15630 withval=$with_python;
15633 if test "$withval" != "no"; then
15634 if test "$withval" = "yes"; then
15635 for python_root in /usr /usr/local /usr/sfw; do
15636 for ver in python2.2 python2.3 python2.4 python2.5; do
15637 if test -f $python_root/include/${ver}/Python.h; then
15638 PYTHON_INCDIR=-I$python_root/include/${ver}
15639 if test -d $python_root/lib64/${ver}/config; then
15640 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15642 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15648 if test x$PYTHON_INCDIR = x; then
15649 if test -f $prefix/include/Python.h; then
15650 PYTHON_INCDIR=-I$prefix/include
15651 if test -d $prefix/lib64/config; then
15652 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15654 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15657 { echo "$as_me:$LINENO: result: no" >&5
15658 echo "${ECHO_T}no" >&6; }
15659 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15660 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15661 { (exit 1); exit 1; }; }
15665 if test -f $withval/Python.h; then
15666 PYTHON_INCDIR=-I$withval
15667 PYTHON_LIBS="-L$withval/config -lpython"
15668 elif test -f $withval/include/Python.h; then
15669 PYTHON_INCDIR=-I$withval/include
15670 if test -d $withval/lib64/config; then
15671 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15673 PYTHON_LIBS="-L$withval/lib/config -lpython"
15675 elif test -f $withval/include/python/Python.h; then
15676 PYTHON_INCDIR=-I$withval/include/python
15677 if test -d $withval/lib64/python/config; then
15678 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15680 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15683 { echo "$as_me:$LINENO: result: no" >&5
15684 echo "${ECHO_T}no" >&6; }
15685 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15686 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15687 { (exit 1); exit 1; }; }
15690 cat >>confdefs.h <<\_ACEOF
15691 #define HAVE_PYTHON 1
15694 { echo "$as_me:$LINENO: result: yes" >&5
15695 echo "${ECHO_T}yes" >&6; }
15697 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15698 echo "$as_me: checking for more Python libs" >&6;}
15699 saved_LIBS="$LIBS"; LIBS=
15700 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15701 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15702 if test "${ac_cv_search_shm_open+set}" = set; then
15703 echo $ECHO_N "(cached) $ECHO_C" >&6
15705 ac_func_search_save_LIBS=$LIBS
15706 cat >conftest.$ac_ext <<_ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15713 /* Override any GCC internal prototype to avoid an error.
15714 Use char because int might match the return type of a GCC
15715 builtin and then its argument prototype would still apply. */
15723 return shm_open ();
15728 for ac_lib in '' rt; do
15729 if test -z "$ac_lib"; then
15730 ac_res="none required"
15733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15735 rm -f conftest.$ac_objext conftest$ac_exeext
15736 if { (ac_try="$ac_link"
15737 case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_link") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && {
15749 test -z "$ac_c_werror_flag" ||
15750 test ! -s conftest.err
15751 } && test -s conftest$ac_exeext &&
15752 $as_test_x conftest$ac_exeext; then
15753 ac_cv_search_shm_open=$ac_res
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15763 if test "${ac_cv_search_shm_open+set}" = set; then
15767 if test "${ac_cv_search_shm_open+set}" = set; then
15770 ac_cv_search_shm_open=no
15772 rm conftest.$ac_ext
15773 LIBS=$ac_func_search_save_LIBS
15775 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15776 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15777 ac_res=$ac_cv_search_shm_open
15778 if test "$ac_res" != no; then
15779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15784 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15785 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15786 if test "${ac_cv_lib_util_openpty+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 ac_check_lib_save_LIBS=$LIBS
15790 LIBS="-lutil $LIBS"
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15798 /* Override any GCC internal prototype to avoid an error.
15799 Use char because int might match the return type of a GCC
15800 builtin and then its argument prototype would still apply. */
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (ac_try="$ac_link"
15815 case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_link") 2>conftest.er1
15822 grep -v '^ *+' conftest.er1 >conftest.err
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } && {
15827 test -z "$ac_c_werror_flag" ||
15828 test ! -s conftest.err
15829 } && test -s conftest$ac_exeext &&
15830 $as_test_x conftest$ac_exeext; then
15831 ac_cv_lib_util_openpty=yes
15833 echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15836 ac_cv_lib_util_openpty=no
15839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15840 conftest$ac_exeext conftest.$ac_ext
15841 LIBS=$ac_check_lib_save_LIBS
15843 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15844 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15845 if test $ac_cv_lib_util_openpty = yes; then
15846 cat >>confdefs.h <<_ACEOF
15847 #define HAVE_LIBUTIL 1
15850 LIBS="-lutil $LIBS"
15854 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15857 { echo "$as_me:$LINENO: result: no" >&5
15858 echo "${ECHO_T}no" >&6; }
15863 { echo "$as_me:$LINENO: result: no" >&5
15864 echo "${ECHO_T}no" >&6; }
15872 # Find where sockets are (especially for Solaris)
15873 # Do this before the TCP Wrappers test since tcp wrappers
15874 # uses the socket library and some linkers are stupid.
15876 { echo "$as_me:$LINENO: checking for socket" >&5
15877 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15878 if test "${ac_cv_func_socket+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15889 #define socket innocuous_socket
15891 /* System header to define __stub macros and hopefully few prototypes,
15892 which can conflict with char socket (); below.
15893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15894 <limits.h> exists even on freestanding compilers. */
15897 # include <limits.h>
15899 # include <assert.h>
15904 /* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
15911 /* The GNU C library defines this for functions which it implements
15912 to always fail with ENOSYS. Some functions are actually named
15913 something starting with __ and the normal name is an alias. */
15914 #if defined __stub_socket || defined __stub___socket
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (ac_try="$ac_link"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_link") 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } && {
15940 test -z "$ac_c_werror_flag" ||
15941 test ! -s conftest.err
15942 } && test -s conftest$ac_exeext &&
15943 $as_test_x conftest$ac_exeext; then
15944 ac_cv_func_socket=yes
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_cv_func_socket=no
15952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15953 conftest$ac_exeext conftest.$ac_ext
15955 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15956 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15957 if test $ac_cv_func_socket = yes; then
15958 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15959 echo "${ECHO_T}using libc's socket" >&6; }
15962 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15963 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15964 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 ac_check_lib_save_LIBS=$LIBS
15968 LIBS="-lxnet $LIBS"
15969 cat >conftest.$ac_ext <<_ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15976 /* Override any GCC internal prototype to avoid an error.
15977 Use char because int might match the return type of a GCC
15978 builtin and then its argument prototype would still apply. */
15991 rm -f conftest.$ac_objext conftest$ac_exeext
15992 if { (ac_try="$ac_link"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_link") 2>conftest.er1
16000 grep -v '^ *+' conftest.er1 >conftest.err
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } && {
16005 test -z "$ac_c_werror_flag" ||
16006 test ! -s conftest.err
16007 } && test -s conftest$ac_exeext &&
16008 $as_test_x conftest$ac_exeext; then
16009 ac_cv_lib_xnet_socket=yes
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16014 ac_cv_lib_xnet_socket=no
16017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16018 conftest$ac_exeext conftest.$ac_ext
16019 LIBS=$ac_check_lib_save_LIBS
16021 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16022 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16023 if test $ac_cv_lib_xnet_socket = yes; then
16024 cat >>confdefs.h <<_ACEOF
16025 #define HAVE_LIBXNET 1
16028 LIBS="-lxnet $LIBS"
16033 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16034 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16035 if test "${ac_cv_lib_socket_socket+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 ac_check_lib_save_LIBS=$LIBS
16039 LIBS="-lsocket $LIBS"
16040 cat >conftest.$ac_ext <<_ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16047 /* Override any GCC internal prototype to avoid an error.
16048 Use char because int might match the return type of a GCC
16049 builtin and then its argument prototype would still apply. */
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (ac_try="$ac_link"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_link") 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } && {
16076 test -z "$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 } && test -s conftest$ac_exeext &&
16079 $as_test_x conftest$ac_exeext; then
16080 ac_cv_lib_socket_socket=yes
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ac_cv_lib_socket_socket=no
16088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16089 conftest$ac_exeext conftest.$ac_ext
16090 LIBS=$ac_check_lib_save_LIBS
16092 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16093 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16094 if test $ac_cv_lib_socket_socket = yes; then
16095 cat >>confdefs.h <<_ACEOF
16096 #define HAVE_LIBSOCKET 1
16099 LIBS="-lsocket $LIBS"
16104 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16105 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16106 if test "${ac_cv_lib_inet_socket+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 ac_check_lib_save_LIBS=$LIBS
16110 LIBS="-linet $LIBS"
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16118 /* Override any GCC internal prototype to avoid an error.
16119 Use char because int might match the return type of a GCC
16120 builtin and then its argument prototype would still apply. */
16133 rm -f conftest.$ac_objext conftest$ac_exeext
16134 if { (ac_try="$ac_link"
16135 case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_link") 2>conftest.er1
16142 grep -v '^ *+' conftest.er1 >conftest.err
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } && {
16147 test -z "$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 } && test -s conftest$ac_exeext &&
16150 $as_test_x conftest$ac_exeext; then
16151 ac_cv_lib_inet_socket=yes
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 ac_cv_lib_inet_socket=no
16159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16160 conftest$ac_exeext conftest.$ac_ext
16161 LIBS=$ac_check_lib_save_LIBS
16163 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16164 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16165 if test $ac_cv_lib_inet_socket = yes; then
16166 cat >>confdefs.h <<_ACEOF
16167 #define HAVE_LIBINET 1
16170 LIBS="-linet $LIBS"
16178 # -----------------------------------------------------------
16179 # Check whether user wants TCP wrappers support (default off)
16180 # -----------------------------------------------------------
16184 # Check whether --with-tcp-wrappers was given.
16185 if test "${with_tcp_wrappers+set}" = set; then
16186 withval=$with_tcp_wrappers;
16187 if test "x$withval" != "xno" ; then
16189 LIBS="$saved_LIBS -lwrap"
16190 { echo "$as_me:$LINENO: checking for libwrap" >&5
16191 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16192 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16193 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16194 if test "${ac_cv_search_nanosleep+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 ac_func_search_save_LIBS=$LIBS
16198 cat >conftest.$ac_ext <<_ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16205 /* Override any GCC internal prototype to avoid an error.
16206 Use char because int might match the return type of a GCC
16207 builtin and then its argument prototype would still apply. */
16215 return nanosleep ();
16220 for ac_lib in '' rt; do
16221 if test -z "$ac_lib"; then
16222 ac_res="none required"
16225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16227 rm -f conftest.$ac_objext conftest$ac_exeext
16228 if { (ac_try="$ac_link"
16229 case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_link") 2>conftest.er1
16236 grep -v '^ *+' conftest.er1 >conftest.err
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } && {
16241 test -z "$ac_c_werror_flag" ||
16242 test ! -s conftest.err
16243 } && test -s conftest$ac_exeext &&
16244 $as_test_x conftest$ac_exeext; then
16245 ac_cv_search_nanosleep=$ac_res
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16255 if test "${ac_cv_search_nanosleep+set}" = set; then
16259 if test "${ac_cv_search_nanosleep+set}" = set; then
16262 ac_cv_search_nanosleep=no
16264 rm conftest.$ac_ext
16265 LIBS=$ac_func_search_save_LIBS
16267 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16268 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16269 ac_res=$ac_cv_search_nanosleep
16270 if test "$ac_res" != no; then
16271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16275 cat >conftest.$ac_ext <<_ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 #include <sys/types.h>
16283 int deny_severity = 0;
16284 int allow_severity = 0;
16285 struct request_info *req;
16294 rm -f conftest.$ac_objext conftest$ac_exeext
16295 if { (ac_try="$ac_link"
16296 case "(($ac_try" in
16297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298 *) ac_try_echo=$ac_try;;
16300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16301 (eval "$ac_link") 2>conftest.er1
16303 grep -v '^ *+' conftest.er1 >conftest.err
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } && {
16308 test -z "$ac_c_werror_flag" ||
16309 test ! -s conftest.err
16310 } && test -s conftest$ac_exeext &&
16311 $as_test_x conftest$ac_exeext; then
16313 { echo "$as_me:$LINENO: result: yes" >&5
16314 echo "${ECHO_T}yes" >&6; }
16316 cat >>confdefs.h <<\_ACEOF
16317 #define HAVE_LIBWRAP 1
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16329 LIBS="$saved_LIBS -lwrap -lnsl"
16330 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16331 cat >conftest.$ac_ext <<_ACEOF
16334 cat confdefs.h >>conftest.$ac_ext
16335 cat >>conftest.$ac_ext <<_ACEOF
16336 /* end confdefs.h. */
16337 #include <sys/types.h>
16339 int deny_severity = 0;
16340 int allow_severity = 0;
16341 struct request_info *req;
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (ac_try="$ac_link"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_link") 2>conftest.er1
16359 grep -v '^ *+' conftest.er1 >conftest.err
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } && {
16364 test -z "$ac_c_werror_flag" ||
16365 test ! -s conftest.err
16366 } && test -s conftest$ac_exeext &&
16367 $as_test_x conftest$ac_exeext; then
16369 { echo "$as_me:$LINENO: result: yes" >&5
16370 echo "${ECHO_T}yes" >&6; }
16372 cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_LIBWRAP 1
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16385 echo "$as_me: error: *** libwrap missing" >&2;}
16386 { (exit 1); exit 1; }; }
16390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16391 conftest$ac_exeext conftest.$ac_ext
16395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16396 conftest$ac_exeext conftest.$ac_ext
16403 # -----------------------------------------------------------
16404 # Check whether OpenSSL is available
16405 # -----------------------------------------------------------
16406 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16407 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16409 # Check whether --with-openssl was given.
16410 if test "${with_openssl+set}" = set; then
16411 withval=$with_openssl; with_openssl_directory=${withval}
16415 if test "x$with_openssl_directory" != "x"; then
16416 OPENSSL_LIBS="-lssl -lcrypto"
16419 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16420 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16421 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16424 saved_LIBS="${LIBS}"
16425 saved_CFLAGS="${CFLAGS}"
16426 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16427 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16429 cat >conftest.$ac_ext <<_ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 #include <openssl/ssl.h>
16439 CRYPTO_set_id_callback(NULL);
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (ac_try="$ac_link"
16446 case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_link") 2>conftest.er1
16453 grep -v '^ *+' conftest.er1 >conftest.err
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } && {
16458 test -z "$ac_c_werror_flag" ||
16459 test ! -s conftest.err
16460 } && test -s conftest$ac_exeext &&
16461 $as_test_x conftest$ac_exeext; then
16464 support_crypto="yes"
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16475 conftest$ac_exeext conftest.$ac_ext
16477 cat >conftest.$ac_ext <<_ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 #include <openssl/evp.h>
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (ac_try="$ac_link"
16494 case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_link") 2>conftest.er1
16501 grep -v '^ *+' conftest.er1 >conftest.err
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } && {
16506 test -z "$ac_c_werror_flag" ||
16507 test ! -s conftest.err
16508 } && test -s conftest$ac_exeext &&
16509 $as_test_x conftest$ac_exeext; then
16510 ac_cv_openssl_sha2="yes"
16512 echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16515 ac_cv_openssl_sha2="no"
16519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16520 conftest$ac_exeext conftest.$ac_ext
16522 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16523 # implementation, presumably for export reasons. If 192bit AES
16524 # is available, we assume that we're running with a 'non-export'
16526 cat >conftest.$ac_ext <<_ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 #include <openssl/evp.h>
16541 rm -f conftest.$ac_objext conftest$ac_exeext
16542 if { (ac_try="$ac_link"
16543 case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548 (eval "$ac_link") 2>conftest.er1
16550 grep -v '^ *+' conftest.er1 >conftest.err
16552 cat conftest.err >&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } && {
16555 test -z "$ac_c_werror_flag" ||
16556 test ! -s conftest.err
16557 } && test -s conftest$ac_exeext &&
16558 $as_test_x conftest$ac_exeext; then
16559 ac_cv_openssl_export="no"
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ac_cv_openssl_export="yes"
16568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16569 conftest$ac_exeext conftest.$ac_ext
16571 LIBS="${saved_LIBS}"
16572 CFLAGS="${saved_CFLAGS}"
16574 if test "$support_tls" = "yes"; then
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_OPENSSL 1
16581 cat >>confdefs.h <<\_ACEOF
16586 cat >>confdefs.h <<\_ACEOF
16587 #define HAVE_CRYPTO 1
16592 if test "$ac_cv_openssl_sha2" = "yes"; then
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_SHA2 1
16600 if test "$ac_cv_openssl_export" = "yes"; then
16602 cat >>confdefs.h <<\_ACEOF
16603 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16609 support_crypto="no"
16614 { echo "$as_me:$LINENO: result: $support_tls" >&5
16615 echo "${ECHO_T}$support_tls" >&6; }
16620 # -----------------------------------------------------------
16621 # dlopen is needed for plugins
16622 # -----------------------------------------------------------
16623 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16624 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16625 if test "${ac_cv_search_dlopen+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 ac_func_search_save_LIBS=$LIBS
16629 cat >conftest.$ac_ext <<_ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16636 /* Override any GCC internal prototype to avoid an error.
16637 Use char because int might match the return type of a GCC
16638 builtin and then its argument prototype would still apply. */
16651 for ac_lib in '' dl; do
16652 if test -z "$ac_lib"; then
16653 ac_res="none required"
16656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16658 rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (ac_try="$ac_link"
16660 case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_link") 2>conftest.er1
16667 grep -v '^ *+' conftest.er1 >conftest.err
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } && {
16672 test -z "$ac_c_werror_flag" ||
16673 test ! -s conftest.err
16674 } && test -s conftest$ac_exeext &&
16675 $as_test_x conftest$ac_exeext; then
16676 ac_cv_search_dlopen=$ac_res
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16686 if test "${ac_cv_search_dlopen+set}" = set; then
16690 if test "${ac_cv_search_dlopen+set}" = set; then
16693 ac_cv_search_dlopen=no
16695 rm conftest.$ac_ext
16696 LIBS=$ac_func_search_save_LIBS
16698 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16699 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16700 ac_res=$ac_cv_search_dlopen
16701 if test "$ac_res" != no; then
16702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16707 # ------------------------------------------
16708 # Where to place working dir
16709 # ------------------------------------------
16710 working_dir=`eval echo ${prefix}/var/bacula/working`
16712 # Check whether --with-working-dir was given.
16713 if test "${with_working_dir+set}" = set; then
16714 withval=$with_working_dir;
16715 if test "x$withval" != "xno" ; then
16716 working_dir=$withval
16725 # ------------------------------------------------------------------
16726 # If the user has not set archivedir, we set our default as /tmp
16727 # ------------------------------------------------------------------
16730 # Check whether --with-archivedir was given.
16731 if test "${with_archivedir+set}" = set; then
16732 withval=$with_archivedir;
16733 if test "x$withval" != "xno" ; then
16734 archivedir=$withval
16745 # ------------------------------------------
16746 # Where to place scriptdir (script files)
16747 # ------------------------------------------
16748 scriptdir=`eval echo ${sysconfdir}`
16750 # Check whether --with-scriptdir was given.
16751 if test "${with_scriptdir+set}" = set; then
16752 withval=$with_scriptdir;
16753 if test "x$withval" != "xno" ; then
16764 # ------------------------------------------
16765 # Where to send dump email
16766 # ------------------------------------------
16767 dump_email=root@localhost
16769 # Check whether --with-dump-email was given.
16770 if test "${with_dump_email+set}" = set; then
16771 withval=$with_dump_email;
16772 if test "x$withval" != "xno" ; then
16773 dump_email=$withval
16782 # ------------------------------------------
16783 # Where to send job email
16784 # ------------------------------------------
16785 job_email=root@localhost
16787 # Check whether --with-job-email was given.
16788 if test "${with_job_email+set}" = set; then
16789 withval=$with_job_email;
16790 if test "x$withval" != "xno" ; then
16800 # ------------------------------------------
16801 # Where to find smtp host
16802 # ------------------------------------------
16803 smtp_host=localhost
16805 # Check whether --with-smtp_host was given.
16806 if test "${with_smtp_host+set}" = set; then
16807 withval=$with_smtp_host;
16808 if test "x$withval" != "xno" ; then
16819 # ------------------------------------
16820 # Where to place pid files
16821 # ------------------------------------
16824 # Check whether --with-pid-dir was given.
16825 if test "${with_pid_dir+set}" = set; then
16826 withval=$with_pid_dir;
16827 if test "x$withval" != "xno" ; then
16835 cat >>confdefs.h <<_ACEOF
16836 #define _PATH_BACULA_PIDDIR "$piddir"
16842 # ------------------------------------
16843 # Where to place subsys "lock file"
16844 # ------------------------------------
16845 subsysdir=/var/run/subsys
16846 if test -d /var/run/subsys; then
16847 subsysdir=/var/run/subsys
16848 elif test -d /var/lock/subsys; then
16849 subsysdir=/var/lock/subsys
16851 subsysdir=/var/run/subsys
16854 # Check whether --with-subsys-dir was given.
16855 if test "${with_subsys_dir+set}" = set; then
16856 withval=$with_subsys_dir;
16857 if test "x$withval" != "xno" ; then
16869 # ------------------------------------
16870 # Where to start assigning ports
16871 # ------------------------------------
16874 # Check whether --with-baseport was given.
16875 if test "${with_baseport+set}" = set; then
16876 withval=$with_baseport;
16877 if test "x$withval" != "xno" ; then
16886 dir_port=`expr $baseport`
16887 fd_port=`expr $baseport + 1`
16888 sd_port=`expr $fd_port + 1`
16895 # ------------------------------------------
16896 # Generate passwords
16897 # ------------------------------------------
16900 # Check whether --with-dir-password was given.
16901 if test "${with_dir_password+set}" = set; then
16902 withval=$with_dir_password;
16903 if test "x$withval" != "xno" ; then
16904 dir_password=$withval
16911 if test "x$dir_password" = "x" ; then
16912 if test "x$OPENSSL" = "xnone" ; then
16913 key=`autoconf/randpass 33`
16915 key=`openssl rand -base64 33`
16922 # Check whether --with-fd-password was given.
16923 if test "${with_fd_password+set}" = set; then
16924 withval=$with_fd_password;
16925 if test "x$withval" != "xno" ; then
16926 fd_password=$withval
16933 if test "x$fd_password" = "x" ; then
16934 if test "x$OPENSSL" = "xnone" ; then
16935 key=`autoconf/randpass 37`
16937 key=`openssl rand -base64 33`
16944 # Check whether --with-sd-password was given.
16945 if test "${with_sd_password+set}" = set; then
16946 withval=$with_sd_password;
16947 if test "x$withval" != "xno" ; then
16948 sd_password=$withval
16955 if test "x$sd_password" = "x" ; then
16956 if test "x$OPENSSL" = "xnone" ; then
16957 key=`autoconf/randpass 41`
16959 key=`openssl rand -base64 33`
16966 # Check whether --with-mon-dir-password was given.
16967 if test "${with_mon_dir_password+set}" = set; then
16968 withval=$with_mon_dir_password;
16969 if test "x$withval" != "xno" ; then
16970 mon_dir_password=$withval
16977 if test "x$mon_dir_password" = "x" ; then
16978 if test "x$OPENSSL" = "xnone" ; then
16979 key=`autoconf/randpass 33`
16981 key=`openssl rand -base64 33`
16983 mon_dir_password=$key
16988 # Check whether --with-mon-fd-password was given.
16989 if test "${with_mon_fd_password+set}" = set; then
16990 withval=$with_mon_fd_password;
16991 if test "x$withval" != "xno" ; then
16992 mon_fd_password=$withval
16999 if test "x$mon_fd_password" = "x" ; then
17000 if test "x$OPENSSL" = "xnone" ; then
17001 key=`autoconf/randpass 37`
17003 key=`openssl rand -base64 33`
17005 mon_fd_password=$key
17010 # Check whether --with-mon-sd-password was given.
17011 if test "${with_mon_sd_password+set}" = set; then
17012 withval=$with_mon_sd_password;
17013 if test "x$withval" != "xno" ; then
17014 mon_sd_password=$withval
17021 if test "x$mon_sd_password" = "x" ; then
17022 if test "x$OPENSSL" = "xnone" ; then
17023 key=`autoconf/randpass 41`
17025 key=`openssl rand -base64 33`
17027 mon_sd_password=$key
17038 # Pickup any database name
17042 # Check whether --with-db_name was given.
17043 if test "${with_db_name+set}" = set; then
17044 withval=$with_db_name;
17045 if test "x$withval" != "x" ; then
17056 # Check whether --with-db_user was given.
17057 if test "${with_db_user+set}" = set; then
17058 withval=$with_db_user;
17059 if test "x$withval" != "x" ; then
17070 # Check whether --with-db_password was given.
17071 if test "${with_db_password+set}" = set; then
17072 withval=$with_db_password;
17073 if test "x$withval" != "x" ; then
17074 db_password=$withval
17083 # Handle users and groups for each daemon
17087 # Check whether --with-dir_user was given.
17088 if test "${with_dir_user+set}" = set; then
17089 withval=$with_dir_user;
17090 if test "x$withval" != "x" ; then
17100 # Check whether --with-dir_group was given.
17101 if test "${with_dir_group+set}" = set; then
17102 withval=$with_dir_group;
17103 if test "x$withval" != "x" ; then
17113 # Check whether --with-sd_user was given.
17114 if test "${with_sd_user+set}" = set; then
17115 withval=$with_sd_user;
17116 if test "x$withval" != "x" ; then
17126 # Check whether --with-sd_group was given.
17127 if test "${with_sd_group+set}" = set; then
17128 withval=$with_sd_group;
17129 if test "x$withval" != "x" ; then
17139 # Check whether --with-fd_user was given.
17140 if test "${with_fd_user+set}" = set; then
17141 withval=$with_fd_user;
17142 if test "x$withval" != "x" ; then
17152 # Check whether --with-fd_group was given.
17153 if test "${with_fd_group+set}" = set; then
17154 withval=$with_fd_group;
17155 if test "x$withval" != "x" ; then
17171 # allow setting default executable permissions
17175 # Check whether --with-sbin-perm was given.
17176 if test "${with_sbin_perm+set}" = set; then
17177 withval=$with_sbin_perm;
17178 if test "x$withval" != "x" ; then
17188 # ------------------------------------------------
17189 # Bacula check for various SQL database engines
17190 # ------------------------------------------------
17194 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17195 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17197 # Check whether --with-postgresql was given.
17198 if test "${with_postgresql+set}" = set; then
17199 withval=$with_postgresql;
17200 if test "$withval" != "no"; then
17201 if test "$db_found" = "yes"; then
17202 { echo "$as_me:$LINENO: result: error" >&5
17203 echo "${ECHO_T}error" >&6; }
17204 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17205 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17206 { (exit 1); exit 1; }; };
17208 if test "$withval" = "yes"; then
17209 PG_CONFIG=`which pg_config`
17210 if test -n "$PG_CONFIG";then
17211 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17212 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17213 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17214 elif test -f /usr/local/include/libpq-fe.h; then
17215 POSTGRESQL_INCDIR=/usr/local/include
17216 if test -d /usr/local/lib64; then
17217 POSTGRESQL_LIBDIR=/usr/local/lib64
17219 POSTGRESQL_LIBDIR=/usr/local/lib
17221 POSTGRESQL_BINDIR=/usr/local/bin
17222 elif test -f /usr/include/libpq-fe.h; then
17223 POSTGRESQL_INCDIR=/usr/include
17224 if test -d /usr/lib64; then
17225 POSTGRESQL_LIBDIR=/usr/lib64
17227 POSTGRESQL_LIBDIR=/usr/lib
17229 POSTGRESQL_BINDIR=/usr/bin
17230 elif test -f /usr/include/pgsql/libpq-fe.h; then
17231 POSTGRESQL_INCDIR=/usr/include/pgsql
17232 if test -d /usr/lib64/pgsql; then
17233 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17235 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17237 POSTGRESQL_BINDIR=/usr/bin
17238 elif test -f /usr/include/postgresql/libpq-fe.h; then
17239 POSTGRESQL_INCDIR=/usr/include/postgresql
17240 if test -d /usr/lib64/postgresql; then
17241 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17243 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17245 POSTGRESQL_BINDIR=/usr/bin
17247 { echo "$as_me:$LINENO: result: no" >&5
17248 echo "${ECHO_T}no" >&6; }
17249 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17250 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17251 { (exit 1); exit 1; }; }
17253 elif test -f $withval/include/libpq-fe.h; then
17254 POSTGRESQL_INCDIR=$withval/include
17255 POSTGRESQL_LIBDIR=$withval/lib
17256 POSTGRESQL_BINDIR=$withval/bin
17257 elif test -f $withval/include/postgresql/libpq-fe.h; then
17258 POSTGRESQL_INCDIR=$withval/include/postgresql
17259 if test -d $withval/lib64; then
17260 POSTGRESQL_LIBDIR=$withval/lib64
17262 POSTGRESQL_LIBDIR=$withval/lib
17264 POSTGRESQL_BINDIR=$withval/bin
17266 { echo "$as_me:$LINENO: result: no" >&5
17267 echo "${ECHO_T}no" >&6; }
17268 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17269 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17270 { (exit 1); exit 1; }; }
17272 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17273 { echo "$as_me:$LINENO: checking for crypt" >&5
17274 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17275 if test "${ac_cv_func_crypt+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 cat >conftest.$ac_ext <<_ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17286 #define crypt innocuous_crypt
17288 /* System header to define __stub macros and hopefully few prototypes,
17289 which can conflict with char crypt (); below.
17290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17291 <limits.h> exists even on freestanding compilers. */
17294 # include <limits.h>
17296 # include <assert.h>
17301 /* Override any GCC internal prototype to avoid an error.
17302 Use char because int might match the return type of a GCC
17303 builtin and then its argument prototype would still apply. */
17308 /* The GNU C library defines this for functions which it implements
17309 to always fail with ENOSYS. Some functions are actually named
17310 something starting with __ and the normal name is an alias. */
17311 #if defined __stub_crypt || defined __stub___crypt
17323 rm -f conftest.$ac_objext conftest$ac_exeext
17324 if { (ac_try="$ac_link"
17325 case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_link") 2>conftest.er1
17332 grep -v '^ *+' conftest.er1 >conftest.err
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } && {
17337 test -z "$ac_c_werror_flag" ||
17338 test ! -s conftest.err
17339 } && test -s conftest$ac_exeext &&
17340 $as_test_x conftest$ac_exeext; then
17341 ac_cv_func_crypt=yes
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17346 ac_cv_func_crypt=no
17349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17350 conftest$ac_exeext conftest.$ac_ext
17352 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17353 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17354 if test $ac_cv_func_crypt = yes; then
17357 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17358 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17359 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 ac_check_lib_save_LIBS=$LIBS
17363 LIBS="-lcrypt $LIBS"
17364 cat >conftest.$ac_ext <<_ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17371 /* Override any GCC internal prototype to avoid an error.
17372 Use char because int might match the return type of a GCC
17373 builtin and then its argument prototype would still apply. */
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (ac_try="$ac_link"
17388 case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_link") 2>conftest.er1
17395 grep -v '^ *+' conftest.er1 >conftest.err
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } && {
17400 test -z "$ac_c_werror_flag" ||
17401 test ! -s conftest.err
17402 } && test -s conftest$ac_exeext &&
17403 $as_test_x conftest$ac_exeext; then
17404 ac_cv_lib_crypt_crypt=yes
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 ac_cv_lib_crypt_crypt=no
17412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17413 conftest$ac_exeext conftest.$ac_ext
17414 LIBS=$ac_check_lib_save_LIBS
17416 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17417 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17418 if test $ac_cv_lib_crypt_crypt = yes; then
17419 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17424 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17425 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17426 SQL_BINDIR=$POSTGRESQL_BINDIR
17427 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17429 cat >>confdefs.h <<\_ACEOF
17430 #define HAVE_POSTGRESQL 1
17433 { echo "$as_me:$LINENO: result: yes" >&5
17434 echo "${ECHO_T}yes" >&6; }
17436 support_postgresql=yes
17440 { echo "$as_me:$LINENO: result: no" >&5
17441 echo "${ECHO_T}no" >&6; }
17446 { echo "$as_me:$LINENO: result: no" >&5
17447 echo "${ECHO_T}no" >&6; }
17459 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17460 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17462 # Check whether --with-mysql was given.
17463 if test "${with_mysql+set}" = set; then
17464 withval=$with_mysql;
17465 if test "$withval" != "no"; then
17466 if test "$withval" = "yes"; then
17467 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17468 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17469 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17470 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17471 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17473 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17475 MYSQL_BINDIR=/usr/local/mysql/bin
17476 elif test -f /usr/include/mysql/mysql.h; then
17477 MYSQL_INCDIR=/usr/include/mysql
17478 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17479 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17480 MYSQL_LIBDIR=/usr/lib64/mysql
17481 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17482 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17483 MYSQL_LIBDIR=/usr/lib/mysql
17485 MYSQL_LIBDIR=/usr/lib
17487 MYSQL_BINDIR=/usr/bin
17488 elif test -f /usr/include/mysql.h; then
17489 MYSQL_INCDIR=/usr/include
17490 if test -f /usr/lib64/libmysqlclient_r.a \
17491 -o -f /usr/lib64/libmysqlclient_r.so; then
17492 MYSQL_LIBDIR=/usr/lib64
17494 MYSQL_LIBDIR=/usr/lib
17496 MYSQL_BINDIR=/usr/bin
17497 elif test -f /usr/local/include/mysql/mysql.h; then
17498 MYSQL_INCDIR=/usr/local/include/mysql
17499 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17500 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17501 MYSQL_LIBDIR=/usr/local/lib64/mysql
17503 MYSQL_LIBDIR=/usr/local/lib/mysql
17505 MYSQL_BINDIR=/usr/local/bin
17506 elif test -f /usr/local/include/mysql.h; then
17507 MYSQL_INCDIR=/usr/local/include
17508 if test -f /usr/local/lib64/libmysqlclient_r.a \
17509 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17510 MYSQL_LIBDIR=/usr/local/lib64
17512 MYSQL_LIBDIR=/usr/local/lib
17514 MYSQL_BINDIR=/usr/local/bin
17516 { echo "$as_me:$LINENO: result: no" >&5
17517 echo "${ECHO_T}no" >&6; }
17518 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17519 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17520 { (exit 1); exit 1; }; }
17523 if test -f $withval/include/mysql/mysql.h; then
17524 MYSQL_INCDIR=$withval/include/mysql
17525 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17526 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17527 MYSQL_LIBDIR=$withval/lib64/mysql
17529 MYSQL_LIBDIR=$withval/lib/mysql
17531 if test -f $withval/lib/libmysqlclient_r.so; then
17532 MYSQL_LIBDIR=$withval/lib
17535 MYSQL_BINDIR=$withval/bin
17536 elif test -f $withval/include/mysql.h; then
17537 MYSQL_INCDIR=$withval/include
17538 if test -f $withval/lib64/libmysqlclient_r.a \
17539 -o -f $withval/lib64/libmysqlclient_r.so; then
17540 MYSQL_LIBDIR=$withval/lib64
17542 MYSQL_LIBDIR=$withval/lib
17544 MYSQL_BINDIR=$withval/bin
17546 { echo "$as_me:$LINENO: result: no" >&5
17547 echo "${ECHO_T}no" >&6; }
17548 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17549 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17550 { (exit 1); exit 1; }; }
17553 SQL_INCLUDE=-I$MYSQL_INCDIR
17554 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17555 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17556 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17557 cat >>confdefs.h <<\_ACEOF
17558 #define HAVE_THREAD_SAFE_MYSQL 1
17562 SQL_BINDIR=$MYSQL_BINDIR
17563 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17565 cat >>confdefs.h <<\_ACEOF
17566 #define HAVE_MYSQL 1
17569 { echo "$as_me:$LINENO: result: yes" >&5
17570 echo "${ECHO_T}yes" >&6; }
17577 { echo "$as_me:$LINENO: result: no" >&5
17578 echo "${ECHO_T}no" >&6; }
17586 # Check whether --with-embedded-mysql was given.
17587 if test "${with_embedded_mysql+set}" = set; then
17588 withval=$with_embedded_mysql;
17589 if test "$withval" != "no"; then
17590 if test "$withval" = "yes"; then
17591 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17592 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17593 if test -d /usr/local/mysql/lib64/mysql; then
17594 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17596 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17598 MYSQL_BINDIR=/usr/local/mysql/bin
17599 elif test -f /usr/include/mysql/mysql.h; then
17600 MYSQL_INCDIR=/usr/include/mysql
17601 if test -d /usr/lib64/mysql; then
17602 MYSQL_LIBDIR=/usr/lib64/mysql
17604 MYSQL_LIBDIR=/usr/lib/mysql
17606 MYSQL_BINDIR=/usr/bin
17607 elif test -f /usr/include/mysql.h; then
17608 MYSQL_INCDIR=/usr/include
17609 if test -d /usr/lib64; then
17610 MYSQL_LIBDIR=/usr/lib64
17612 MYSQL_LIBDIR=/usr/lib
17614 MYSQL_BINDIR=/usr/bin
17615 elif test -f /usr/local/include/mysql/mysql.h; then
17616 MYSQL_INCDIR=/usr/local/include/mysql
17617 if test -d /usr/local/lib64/mysql; then
17618 MYSQL_LIBDIR=/usr/local/lib64/mysql
17620 MYSQL_LIBDIR=/usr/local/lib/mysql
17622 MYSQL_BINDIR=/usr/local/bin
17623 elif test -f /usr/local/include/mysql.h; then
17624 MYSQL_INCDIR=/usr/local/include
17625 if test -d /usr/local/lib64; then
17626 MYSQL_LIBDIR=/usr/local/lib64
17628 MYSQL_LIBDIR=/usr/local/lib
17630 MYSQL_BINDIR=/usr/local/bin
17632 { echo "$as_me:$LINENO: result: no" >&5
17633 echo "${ECHO_T}no" >&6; }
17634 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17635 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17636 { (exit 1); exit 1; }; }
17639 if test -f $withval/include/mysql/mysql.h; then
17640 MYSQL_INCDIR=$withval/include/mysql
17641 if test -d $withval/lib64/mysql; then
17642 MYSQL_LIBDIR=$withval/lib64/mysql
17644 MYSQL_LIBDIR=$withval/lib/mysql
17646 MYSQL_BINDIR=$withval/bin
17647 elif test -f $withval/include/mysql.h; then
17648 MYSQL_INCDIR=$withval/include
17649 if test -d $withval/lib64; then
17650 MYSQL_LIBDIR=$withval/lib64
17652 MYSQL_LIBDIR=$withval/lib
17654 MYSQL_BINDIR=$withval/bin
17656 { echo "$as_me:$LINENO: result: no" >&5
17657 echo "${ECHO_T}no" >&6; }
17658 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17659 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17660 { (exit 1); exit 1; }; }
17663 SQL_INCLUDE=-I$MYSQL_INCDIR
17664 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17665 SQL_BINDIR=$MYSQL_BINDIR
17666 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17668 cat >>confdefs.h <<\_ACEOF
17669 #define HAVE_MYSQL 1
17672 cat >>confdefs.h <<\_ACEOF
17673 #define HAVE_EMBEDDED_MYSQL 1
17676 { echo "$as_me:$LINENO: result: yes" >&5
17677 echo "${ECHO_T}yes" >&6; }
17684 { echo "$as_me:$LINENO: result: no" >&5
17685 echo "${ECHO_T}no" >&6; }
17701 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17702 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17704 # Check whether --with-sqlite3 was given.
17705 if test "${with_sqlite3+set}" = set; then
17706 withval=$with_sqlite3;
17707 if test "$withval" != "no"; then
17708 if test "$withval" = "yes"; then
17709 if test -f /usr/local/include/sqlite3.h; then
17710 SQLITE_INCDIR=/usr/local/include
17711 if test -d /usr/local/lib64; then
17712 SQLITE_LIBDIR=/usr/local/lib64
17714 SQLITE_LIBDIR=/usr/local/lib
17716 SQLITE_BINDIR=/usr/local/bin
17717 elif test -f /usr/include/sqlite3.h; then
17718 SQLITE_INCDIR=/usr/include
17719 if test -d /usr/lib64; then
17720 SQLITE_LIBDIR=/usr/lib64
17722 SQLITE_LIBDIR=/usr/lib
17724 SQLITE_BINDIR=/usr/bin
17725 elif test -f $prefix/include/sqlite3.h; then
17726 SQLITE_INCDIR=$prefix/include
17727 if test -d $prefix/lib64; then
17728 SQLITE_LIBDIR=$prefix/lib64
17730 SQLITE_LIBDIR=$prefix/lib
17732 SQLITE_BINDIR=$prefix/bin
17734 { echo "$as_me:$LINENO: result: no" >&5
17735 echo "${ECHO_T}no" >&6; }
17736 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17737 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17738 { (exit 1); exit 1; }; }
17741 if test -f $withval/sqlite3.h; then
17742 SQLITE_INCDIR=$withval
17743 SQLITE_LIBDIR=$withval
17744 SQLITE_BINDIR=$withval
17745 elif test -f $withval/include/sqlite3.h; then
17746 SQLITE_INCDIR=$withval/include
17747 if test -d $withval/lib64; then
17748 SQLITE_LIBDIR=$withval/lib64
17750 SQLITE_LIBDIR=$withval/lib
17752 SQLITE_BINDIR=$withval/bin
17754 { echo "$as_me:$LINENO: result: no" >&5
17755 echo "${ECHO_T}no" >&6; }
17756 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17757 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17758 { (exit 1); exit 1; }; }
17761 SQL_INCLUDE=-I$SQLITE_INCDIR
17762 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17763 SQL_BINDIR=$SQLITE_BINDIR
17764 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17766 cat >>confdefs.h <<\_ACEOF
17767 #define HAVE_SQLITE3 1
17770 { echo "$as_me:$LINENO: result: yes" >&5
17771 echo "${ECHO_T}yes" >&6; }
17773 support_sqlite3=yes
17778 { echo "$as_me:$LINENO: result: no" >&5
17779 echo "${ECHO_T}no" >&6; }
17784 { echo "$as_me:$LINENO: result: no" >&5
17785 echo "${ECHO_T}no" >&6; }
17797 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17798 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17800 # Check whether --with-sqlite was given.
17801 if test "${with_sqlite+set}" = set; then
17802 withval=$with_sqlite;
17803 if test "$withval" != "no"; then
17804 if test "$withval" = "yes"; then
17805 if test -f /usr/local/include/sqlite.h; then
17806 SQLITE_INCDIR=/usr/local/include
17807 if test -d /usr/local/lib64; then
17808 SQLITE_LIBDIR=/usr/local/lib64
17810 SQLITE_LIBDIR=/usr/local/lib
17812 SQLITE_BINDIR=/usr/local/bin
17813 elif test -f /usr/include/sqlite.h; then
17814 SQLITE_INCDIR=/usr/include
17815 if test -d /usr/lib64; then
17816 SQLITE_LIBDIR=/usr/lib64
17818 SQLITE_LIBDIR=/usr/lib
17820 SQLITE_BINDIR=/usr/bin
17821 elif test -f $prefix/include/sqlite.h; then
17822 SQLITE_INCDIR=$prefix/include
17823 if test -d $prefix/lib64; then
17824 SQLITE_LIBDIR=$prefix/lib64
17826 SQLITE_LIBDIR=$prefix/lib
17828 SQLITE_BINDIR=$prefix/bin
17830 { echo "$as_me:$LINENO: result: no" >&5
17831 echo "${ECHO_T}no" >&6; }
17832 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17833 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17834 { (exit 1); exit 1; }; }
17837 if test -f $withval/sqlite.h; then
17838 SQLITE_INCDIR=$withval
17839 SQLITE_LIBDIR=$withval
17840 SQLITE_BINDIR=$withval
17841 elif test -f $withval/include/sqlite.h; then
17842 SQLITE_INCDIR=$withval/include
17843 if test -d $withval/lib64; then
17844 SQLITE_LIBDIR=$withval/lib64
17846 SQLITE_LIBDIR=$withval/lib
17848 SQLITE_BINDIR=$withval/bin
17850 { echo "$as_me:$LINENO: result: no" >&5
17851 echo "${ECHO_T}no" >&6; }
17852 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17853 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17854 { (exit 1); exit 1; }; }
17857 SQL_INCLUDE=-I$SQLITE_INCDIR
17858 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17859 SQL_BINDIR=$SQLITE_BINDIR
17860 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17862 cat >>confdefs.h <<\_ACEOF
17863 #define HAVE_SQLITE 1
17866 { echo "$as_me:$LINENO: result: yes" >&5
17867 echo "${ECHO_T}yes" >&6; }
17874 { echo "$as_me:$LINENO: result: no" >&5
17875 echo "${ECHO_T}no" >&6; }
17880 { echo "$as_me:$LINENO: result: no" >&5
17881 echo "${ECHO_T}no" >&6; }
17893 { echo "$as_me:$LINENO: checking for DBI support" >&5
17894 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17896 # Check whether --with-dbi was given.
17897 if test "${with_dbi+set}" = set; then
17899 if test "$withval" != "no"; then
17900 if test "$withval" = "yes"; then
17901 if test -f /usr/local/include/dbi/dbi.h; then
17902 DBI_INCDIR=/usr/local/dbi/include
17903 if test -d /usr/local/lib64; then
17904 DBI_LIBDIR=/usr/local/lib64
17906 DBI_LIBDIR=/usr/local/lib
17908 DBI_BINDIR=/usr/local/bin
17909 elif test -f /usr/include/dbi/dbi.h; then
17910 DBI_INCDIR=/usr/include
17911 if test -d /usr/lib64; then
17912 DBI_LIBDIR=/usr/lib64
17914 DBI_LIBDIR=/usr/lib
17916 DBI_BINDIR=/usr/bin
17917 elif test -f $prefix/include/dbi/dbi.h; then
17918 DBI_INCDIR=$prefix/include
17919 if test -d $prefix/lib64; then
17920 DBI_LIBDIR=$prefix/lib64
17922 DBI_LIBDIR=$prefix/lib
17924 DBI_BINDIR=$prefix/bin
17926 { echo "$as_me:$LINENO: result: no" >&5
17927 echo "${ECHO_T}no" >&6; }
17928 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17929 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17930 { (exit 1); exit 1; }; }
17932 if test -d /usr/local/lib/dbd; then
17933 DRIVERDIR=/usr/local/lib/dbd
17934 if test -d /usr/local/lib64/dbd; then
17935 DRIVERDIR=/usr/local/lib64/dbd
17937 DRIVERDIR=/usr/local/lib/dbd
17939 elif test -d /usr/lib/dbd; then
17940 DRIVERDIR=/usr/lib/dbd
17941 if test -d /usr/lib64/dbd; then
17942 DRIVERDIR=/usr/lib64/dbd
17944 DRIVERDIR=/usr/lib/dbd
17946 elif test -d $prefix/lib/dbd; then
17947 if test -d $prefix/lib64/dbd; then
17948 DRIVERDIR=$prefix/lib64/dbd
17950 DRIVERDIR=$prefix/lib/dbd
17953 { echo "$as_me:$LINENO: result: no" >&5
17954 echo "${ECHO_T}no" >&6; }
17955 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17956 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17957 { (exit 1); exit 1; }; }
17960 if test -f $withval/dbi.h; then
17961 DBI_INCDIR=$withval
17962 DBI_LIBDIR=$withval
17963 DBI_BINDIR=$withval
17964 elif test -f $withval/include/dbi/dbi.h; then
17965 DBI_INCDIR=$withval/include
17966 if test -d $withval/lib64; then
17967 DBI_LIBDIR=$withval/lib64
17969 DBI_LIBDIR=$withval/lib
17971 DBI_BINDIR=$withval/bin
17973 { echo "$as_me:$LINENO: result: no" >&5
17974 echo "${ECHO_T}no" >&6; }
17975 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17976 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17977 { (exit 1); exit 1; }; }
17979 if test -d $withval/dbd; then
17980 DRIVERDIR=$withval/dbd
17981 elif test -d $withval/lib/; then
17982 if test -d $withval/lib64/dbd; then
17983 DRIVERDIR=$withval/lib64/dbd
17985 DRIVERDIR=$withval/lib/dbd
17988 { echo "$as_me:$LINENO: result: no" >&5
17989 echo "${ECHO_T}no" >&6; }
17990 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17991 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17992 { (exit 1); exit 1; }; }
17995 SQL_INCLUDE=-I$DBI_INCDIR
17996 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17997 SQL_BINDIR=$DBI_BINDIR
17998 SQL_LIB=$DBI_LIBDIR/libdbi.a
17999 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18002 cat >>confdefs.h <<\_ACEOF
18006 { echo "$as_me:$LINENO: result: yes" >&5
18007 echo "${ECHO_T}yes" >&6; }
18014 { echo "$as_me:$LINENO: result: no" >&5
18015 echo "${ECHO_T}no" >&6; }
18020 { echo "$as_me:$LINENO: result: no" >&5
18021 echo "${ECHO_T}no" >&6; }
18035 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18036 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18038 # Check whether --with-dbi-driver was given.
18039 if test "${with_dbi_driver+set}" = set; then
18040 withval=$with_dbi_driver;
18041 if test "$withval" != "no"; then
18045 if test -f /usr/local/mysql/bin/mysql; then
18046 SQL_BINDIR=/usr/local/mysql/bin
18047 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18048 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18049 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18051 SQL_LIBDIR=/usr/local/mysql/lib/mysql
18053 elif test -f /usr/bin/mysql; then
18054 SQL_BINDIR=/usr/bin
18055 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18056 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18057 SQL_LIBDIR=/usr/lib64/mysql
18058 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18059 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18060 SQL_LIBDIR=/usr/lib/mysql
18062 SQL_LIBDIR=/usr/lib
18064 elif test -f /usr/local/bin/mysql; then
18065 SQL_BINDIR=/usr/local/bin
18066 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18067 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18068 SQL_LIBDIR=/usr/local/lib64/mysql
18069 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18070 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18071 SQL_LIBDIR=/usr/local/lib/mysql
18073 SQL_LIBDIR=/usr/local/lib
18075 elif test -f $withval/bin/mysql; then
18076 SQL_BINDIR=$withval/bin
18077 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18078 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18079 SQL_LIBDIR=$withval/lib64/mysql
18080 elif test -f $withval/lib64/libmysqlclient_r.a \
18081 -o -f $withval/lib64/libmysqlclient_r.so; then
18082 SQL_LIBDIR=$withval/lib64
18083 elif test -f $withval/lib/libmysqlclient_r.a \
18084 -o -f $withval/lib/libmysqlclient_r.so; then
18085 SQL_LIBDIR=$withval/lib/
18087 SQL_LIBDIR=$withval/lib/mysql
18090 { echo "$as_me:$LINENO: result: no" >&5
18091 echo "${ECHO_T}no" >&6; }
18092 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18093 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18094 { (exit 1); exit 1; }; }
18096 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18099 db_prog="postgresql"
18100 PG_CONFIG=`which pg_config`
18101 if test -n "$PG_CONFIG"; then
18102 SQL_BINDIR=`"$PG_CONFIG" --bindir`
18103 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18104 elif test -f /usr/local/bin/psql; then
18105 SQL_BINDIR=/usr/local/bin
18106 if test -d /usr/local/lib64; then
18107 SQL_LIBDIR=/usr/local/lib64
18109 SQL_LIBDIR=/usr/local/lib
18111 elif test -f /usr/bin/psql; then
18112 SQL_BINDIR=/usr/local/bin
18113 if test -d /usr/lib64/postgresql; then
18114 SQL_LIBDIR=/usr/lib64/postgresql
18115 elif test -d /usr/lib/postgresql; then
18116 SQL_LIBDIR=/usr/lib/postgresql
18117 elif test -d /usr/lib64; then
18118 SQL_LIBDIR=/usr/lib64
18120 SQL_LIBDIR=/usr/lib
18122 elif test -f $withval/bin/psql; then
18123 SQL_BINDIR=$withval/bin
18124 if test -d $withval/lib64; then
18125 SQL_LIBDIR=$withval/lib64
18127 SQL_LIBDIR=$withval/lib
18130 { echo "$as_me:$LINENO: result: no" >&5
18131 echo "${ECHO_T}no" >&6; }
18132 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18133 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18134 { (exit 1); exit 1; }; }
18136 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18139 { echo "$as_me:$LINENO: result: no" >&5
18140 echo "${ECHO_T}no" >&6; }
18141 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18142 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18143 { (exit 1); exit 1; }; }
18147 { echo "$as_me:$LINENO: result: yes" >&5
18148 echo "${ECHO_T}yes" >&6; }
18151 { echo "$as_me:$LINENO: result: no" >&5
18152 echo "${ECHO_T}no" >&6; }
18157 { echo "$as_me:$LINENO: result: no" >&5
18158 echo "${ECHO_T}no" >&6; }
18171 # -------------------------------------------
18172 # enable batch attribute DB insert (default on)
18173 # -------------------------------------------
18174 support_batch_insert=no
18175 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18177 if test $pkg = 0; then
18178 support_batch_insert=yes
18179 # Check whether --enable-batch-insert was given.
18180 if test "${enable_batch_insert+set}" = set; then
18181 enableval=$enable_batch_insert; if test x$enableval = xno; then
18182 support_batch_insert=no
18184 support_batch_insert=yes
18190 # Check if postgresql support batch mode
18191 if test x$DB_TYPE = xpostgresql; then
18192 A=`nm $SQL_LIB | grep PQputCopyData`
18194 if test $pkg != 0; then
18195 support_batch_insert=no
18199 if test x$DB_TYPE = xdbi; then
18203 # Check for batch insert
18204 if test $DB_PROG = postgresql; then
18205 A=`nm $DB_PROG_LIB | grep PQputCopyData`
18209 if test $DB_PROG = mysql; then
18210 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18214 if test $pkg = 0; then
18215 # Check whether --enable-batch-insert was given.
18216 if test "${enable_batch_insert+set}" = set; then
18217 enableval=$enable_batch_insert; if test x$enableval = xno; then
18218 support_batch_insert=no
18220 support_batch_insert=yes
18227 if test $support_batch_insert = yes ; then
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_BATCH_FILE_INSERT 1
18236 cat >>confdefs.h <<\_ACEOF
18237 #define PROTOTYPES 1
18241 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18242 if test -z "$CCOPTS"; then
18243 CCOPTS='-g -O2 -Wall'
18251 largefile_support="no"
18253 # Check whether --enable-largefile was given.
18254 if test "${enable_largefile+set}" = set; then
18255 enableval=$enable_largefile;
18258 if test "$enable_largefile" != no; then
18259 if test -n "$ac_tool_prefix"; then
18260 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18261 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18264 if test "${ac_cv_prog_GETCONF+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 if test -n "$GETCONF"; then
18268 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18271 for as_dir in $PATH
18274 test -z "$as_dir" && as_dir=.
18275 for ac_exec_ext in '' $ac_executable_extensions; do
18276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18277 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18287 GETCONF=$ac_cv_prog_GETCONF
18288 if test -n "$GETCONF"; then
18289 { echo "$as_me:$LINENO: result: $GETCONF" >&5
18290 echo "${ECHO_T}$GETCONF" >&6; }
18292 { echo "$as_me:$LINENO: result: no" >&5
18293 echo "${ECHO_T}no" >&6; }
18298 if test -z "$ac_cv_prog_GETCONF"; then
18299 ac_ct_GETCONF=$GETCONF
18300 # Extract the first word of "getconf", so it can be a program name with args.
18301 set dummy getconf; ac_word=$2
18302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18304 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 if test -n "$ac_ct_GETCONF"; then
18308 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18311 for as_dir in $PATH
18314 test -z "$as_dir" && as_dir=.
18315 for ac_exec_ext in '' $ac_executable_extensions; do
18316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18317 ac_cv_prog_ac_ct_GETCONF="getconf"
18318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18327 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18328 if test -n "$ac_ct_GETCONF"; then
18329 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18330 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18332 { echo "$as_me:$LINENO: result: no" >&5
18333 echo "${ECHO_T}no" >&6; }
18336 if test "x$ac_ct_GETCONF" = x; then
18339 case $cross_compiling:$ac_tool_warned in
18341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18342 whose name does not start with the host triplet. If you think this
18343 configuration is useful to you, please write to autoconf@gnu.org." >&5
18344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18345 whose name does not start with the host triplet. If you think this
18346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18347 ac_tool_warned=yes ;;
18349 GETCONF=$ac_ct_GETCONF
18352 GETCONF="$ac_cv_prog_GETCONF"
18355 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18356 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18357 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18361 ac_cv_sys_largefile_CFLAGS=no
18363 # IRIX 6.2 and later require cc -n32.
18364 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18365 if test "$GCC" != yes; then
18366 ac_cv_sys_largefile_CFLAGS=-n32
18369 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (ac_try="$ac_link"
18387 case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_link") 2>conftest.er1
18394 grep -v '^ *+' conftest.er1 >conftest.err
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } && {
18399 test -z "$ac_c_werror_flag" ||
18400 test ! -s conftest.err
18401 } && test -s conftest$ac_exeext &&
18402 $as_test_x conftest$ac_exeext; then
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18408 ac_cv_sys_largefile_CFLAGS=no
18411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18412 conftest$ac_exeext conftest.$ac_ext
18417 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18418 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18419 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18420 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18421 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18422 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18425 ac_cv_sys_largefile_LDFLAGS=no
18429 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18430 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18431 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18432 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18433 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
18436 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18437 ac_cv_sys_largefile_LIBS=no
18441 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18442 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18444 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18447 -D_FILE_OFFSET_BITS=*) ;;
18448 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18449 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18454 case "$CPPFLAGS" in
18455 '') CPPFLAGS="$ac_flag" ;;
18456 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18464 '') CFLAGS="$ac_flag" ;;
18465 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18470 case "$ac_cv_sys_largefile_LDFLAGS" in
18474 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18475 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18478 case "$ac_cv_sys_largefile_LIBS" in
18482 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18483 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18486 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18487 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18488 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18491 ac_cv_sys_file_offset_bits=no
18492 ac_cv_sys_file_offset_bits=64
18493 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18495 -D_FILE_OFFSET_BITS)
18496 ac_cv_sys_file_offset_bits=1 ;;
18497 -D_FILE_OFFSET_BITS=*)
18498 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18503 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18504 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18505 if test "$ac_cv_sys_file_offset_bits" != no; then
18507 cat >>confdefs.h <<_ACEOF
18508 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18512 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18513 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18514 if test "${ac_cv_sys_largefile_source+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 ac_cv_sys_largefile_source=no
18518 ac_cv_sys_largefile_source=1
18519 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18521 -D_LARGEFILE_SOURCE)
18522 ac_cv_sys_largefile_source=1 ;;
18523 -D_LARGEFILE_SOURCE=*)
18524 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18529 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18530 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18531 if test "$ac_cv_sys_largefile_source" != no; then
18533 cat >>confdefs.h <<_ACEOF
18534 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18538 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18539 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18540 if test "${ac_cv_sys_large_files+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 ac_cv_sys_large_files=no
18544 ac_cv_sys_large_files=1
18545 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18548 ac_cv_sys_large_files=1 ;;
18550 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18555 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18556 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18557 if test "$ac_cv_sys_large_files" != no; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define _LARGE_FILES $ac_cv_sys_large_files
18568 { echo "$as_me:$LINENO: checking for X" >&5
18569 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18572 # Check whether --with-x was given.
18573 if test "${with_x+set}" = set; then
18577 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18578 if test "x$with_x" = xno; then
18579 # The user explicitly disabled X.
18582 case $x_includes,$x_libraries in #(
18583 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18584 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18585 { (exit 1); exit 1; }; };; #(
18586 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 # One or both of the vars are not set, and there is no cached value.
18590 ac_x_includes=no ac_x_libraries=no
18591 rm -f -r conftest.dir
18592 if mkdir conftest.dir; then
18594 cat >Imakefile <<'_ACEOF'
18596 @echo incroot='${INCROOT}'
18598 @echo usrlibdir='${USRLIBDIR}'
18600 @echo libdir='${LIBDIR}'
18602 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18603 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18604 for ac_var in incroot usrlibdir libdir; do
18605 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18607 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18608 for ac_extension in a so sl; do
18609 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18610 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18611 ac_im_usrlibdir=$ac_im_libdir; break
18614 # Screen out bogus values from the imake configuration. They are
18615 # bogus both because they are the default anyway, and because
18616 # using them would break gcc on systems where it needs fixed includes.
18617 case $ac_im_incroot in
18618 /usr/include) ac_x_includes= ;;
18619 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18621 case $ac_im_usrlibdir in
18622 /usr/lib | /lib) ;;
18623 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18627 rm -f -r conftest.dir
18630 # Standard set of common directories for X headers.
18631 # Check X11 before X11Rn because it is often a symlink to the current release.
18643 /usr/local/X11/include
18644 /usr/local/X11R6/include
18645 /usr/local/X11R5/include
18646 /usr/local/X11R4/include
18648 /usr/local/include/X11
18649 /usr/local/include/X11R6
18650 /usr/local/include/X11R5
18651 /usr/local/include/X11R4
18655 /usr/XFree86/include/X11
18659 /usr/unsupported/include
18660 /usr/athena/include
18661 /usr/local/x11r5/include
18662 /usr/lpp/Xamples/include
18664 /usr/openwin/include
18665 /usr/openwin/share/include'
18667 if test "$ac_x_includes" = no; then
18668 # Guess where to find include files, by looking for Xlib.h.
18669 # First, try using that file with no special directory specified.
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18676 #include <X11/Xlib.h>
18678 if { (ac_try="$ac_cpp conftest.$ac_ext"
18679 case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18686 grep -v '^ *+' conftest.er1 >conftest.err
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } >/dev/null && {
18691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18692 test ! -s conftest.err
18694 # We can compile using X headers with no special include directory.
18697 echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18700 for ac_dir in $ac_x_header_dirs; do
18701 if test -r "$ac_dir/X11/Xlib.h"; then
18702 ac_x_includes=$ac_dir
18708 rm -f conftest.err conftest.$ac_ext
18709 fi # $ac_x_includes = no
18711 if test "$ac_x_libraries" = no; then
18712 # Check for the libraries.
18713 # See if we find them without any special options.
18714 # Don't add to $LIBS permanently.
18717 cat >conftest.$ac_ext <<_ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 #include <X11/Xlib.h>
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (ac_try="$ac_link"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_link") 2>conftest.er1
18741 grep -v '^ *+' conftest.er1 >conftest.err
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } && {
18746 test -z "$ac_c_werror_flag" ||
18747 test ! -s conftest.err
18748 } && test -s conftest$ac_exeext &&
18749 $as_test_x conftest$ac_exeext; then
18751 # We can link X programs with no special library path.
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18758 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18760 # Don't even attempt the hair of trying to link an X program!
18761 for ac_extension in a so sl; do
18762 if test -r "$ac_dir/libX11.$ac_extension"; then
18763 ac_x_libraries=$ac_dir
18770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18771 conftest$ac_exeext conftest.$ac_ext
18772 fi # $ac_x_libraries = no
18774 case $ac_x_includes,$ac_x_libraries in #(
18775 no,* | *,no | *\'*)
18776 # Didn't find X, or a directory has "'" in its name.
18777 ac_cv_have_x="have_x=no";; #(
18779 # Record where we found X for the cache.
18780 ac_cv_have_x="have_x=yes\
18781 ac_x_includes='$ac_x_includes'\
18782 ac_x_libraries='$ac_x_libraries'"
18788 eval "$ac_cv_have_x"
18791 if test "$have_x" != yes; then
18792 { echo "$as_me:$LINENO: result: $have_x" >&5
18793 echo "${ECHO_T}$have_x" >&6; }
18796 # If each of the values was on the command line, it overrides each guess.
18797 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18798 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18799 # Update the cache value to reflect the command line values.
18800 ac_cv_have_x="have_x=yes\
18801 ac_x_includes='$x_includes'\
18802 ac_x_libraries='$x_libraries'"
18803 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18804 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18807 if test "$no_x" = yes; then
18808 # Not all programs may use this symbol, but it does not hurt to define it.
18810 cat >>confdefs.h <<\_ACEOF
18811 #define X_DISPLAY_MISSING 1
18814 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18816 if test -n "$x_includes"; then
18817 X_CFLAGS="$X_CFLAGS -I$x_includes"
18820 # It would also be nice to do this for all -L options, not just this one.
18821 if test -n "$x_libraries"; then
18822 X_LIBS="$X_LIBS -L$x_libraries"
18823 # For Solaris; some versions of Sun CC require a space after -R and
18824 # others require no space. Words are not sufficient . . . .
18825 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18826 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18827 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18828 ac_xsave_c_werror_flag=$ac_c_werror_flag
18829 ac_c_werror_flag=yes
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18845 rm -f conftest.$ac_objext conftest$ac_exeext
18846 if { (ac_try="$ac_link"
18847 case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_link") 2>conftest.er1
18854 grep -v '^ *+' conftest.er1 >conftest.err
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } && {
18859 test -z "$ac_c_werror_flag" ||
18860 test ! -s conftest.err
18861 } && test -s conftest$ac_exeext &&
18862 $as_test_x conftest$ac_exeext; then
18863 { echo "$as_me:$LINENO: result: no" >&5
18864 echo "${ECHO_T}no" >&6; }
18865 X_LIBS="$X_LIBS -R$x_libraries"
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 LIBS="$ac_xsave_LIBS -R $x_libraries"
18871 cat >conftest.$ac_ext <<_ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18886 rm -f conftest.$ac_objext conftest$ac_exeext
18887 if { (ac_try="$ac_link"
18888 case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_link") 2>conftest.er1
18895 grep -v '^ *+' conftest.er1 >conftest.err
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } && {
18900 test -z "$ac_c_werror_flag" ||
18901 test ! -s conftest.err
18902 } && test -s conftest$ac_exeext &&
18903 $as_test_x conftest$ac_exeext; then
18904 { echo "$as_me:$LINENO: result: yes" >&5
18905 echo "${ECHO_T}yes" >&6; }
18906 X_LIBS="$X_LIBS -R $x_libraries"
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18911 { echo "$as_me:$LINENO: result: neither works" >&5
18912 echo "${ECHO_T}neither works" >&6; }
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916 conftest$ac_exeext conftest.$ac_ext
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920 conftest$ac_exeext conftest.$ac_ext
18921 ac_c_werror_flag=$ac_xsave_c_werror_flag
18922 LIBS=$ac_xsave_LIBS
18925 # Check for system-dependent libraries X programs must link with.
18926 # Do this before checking for the system-independent R6 libraries
18927 # (-lICE), since we may need -lsocket or whatever for X linking.
18929 if test "$ISC" = yes; then
18930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18932 # Martyn Johnson says this is needed for Ultrix, if the X
18933 # libraries were built with DECnet support. And Karl Berry says
18934 # the Alpha needs dnet_stub (dnet does not exist).
18935 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18936 cat >conftest.$ac_ext <<_ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18943 /* Override any GCC internal prototype to avoid an error.
18944 Use char because int might match the return type of a GCC
18945 builtin and then its argument prototype would still apply. */
18949 char XOpenDisplay ();
18953 return XOpenDisplay ();
18958 rm -f conftest.$ac_objext conftest$ac_exeext
18959 if { (ac_try="$ac_link"
18960 case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_link") 2>conftest.er1
18967 grep -v '^ *+' conftest.er1 >conftest.err
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } && {
18972 test -z "$ac_c_werror_flag" ||
18973 test ! -s conftest.err
18974 } && test -s conftest$ac_exeext &&
18975 $as_test_x conftest$ac_exeext; then
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18981 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18982 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18983 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
18986 ac_check_lib_save_LIBS=$LIBS
18987 LIBS="-ldnet $LIBS"
18988 cat >conftest.$ac_ext <<_ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18995 /* Override any GCC internal prototype to avoid an error.
18996 Use char because int might match the return type of a GCC
18997 builtin and then its argument prototype would still apply. */
19005 return dnet_ntoa ();
19010 rm -f conftest.$ac_objext conftest$ac_exeext
19011 if { (ac_try="$ac_link"
19012 case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_link") 2>conftest.er1
19019 grep -v '^ *+' conftest.er1 >conftest.err
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } && {
19024 test -z "$ac_c_werror_flag" ||
19025 test ! -s conftest.err
19026 } && test -s conftest$ac_exeext &&
19027 $as_test_x conftest$ac_exeext; then
19028 ac_cv_lib_dnet_dnet_ntoa=yes
19030 echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19033 ac_cv_lib_dnet_dnet_ntoa=no
19036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19037 conftest$ac_exeext conftest.$ac_ext
19038 LIBS=$ac_check_lib_save_LIBS
19040 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19041 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19042 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19043 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19046 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19047 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19048 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19049 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 ac_check_lib_save_LIBS=$LIBS
19053 LIBS="-ldnet_stub $LIBS"
19054 cat >conftest.$ac_ext <<_ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19061 /* Override any GCC internal prototype to avoid an error.
19062 Use char because int might match the return type of a GCC
19063 builtin and then its argument prototype would still apply. */
19071 return dnet_ntoa ();
19076 rm -f conftest.$ac_objext conftest$ac_exeext
19077 if { (ac_try="$ac_link"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_link") 2>conftest.er1
19085 grep -v '^ *+' conftest.er1 >conftest.err
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } && {
19090 test -z "$ac_c_werror_flag" ||
19091 test ! -s conftest.err
19092 } && test -s conftest$ac_exeext &&
19093 $as_test_x conftest$ac_exeext; then
19094 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19096 echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19099 ac_cv_lib_dnet_stub_dnet_ntoa=no
19102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19103 conftest$ac_exeext conftest.$ac_ext
19104 LIBS=$ac_check_lib_save_LIBS
19106 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19107 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19108 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19109 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19116 conftest$ac_exeext conftest.$ac_ext
19117 LIBS="$ac_xsave_LIBS"
19119 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19120 # to get the SysV transport functions.
19121 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19123 # The nsl library prevents programs from opening the X display
19124 # on Irix 5.2, according to T.E. Dickey.
19125 # The functions gethostbyname, getservbyname, and inet_addr are
19126 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19127 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19128 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19129 if test "${ac_cv_func_gethostbyname+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 cat >conftest.$ac_ext <<_ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19140 #define gethostbyname innocuous_gethostbyname
19142 /* System header to define __stub macros and hopefully few prototypes,
19143 which can conflict with char gethostbyname (); below.
19144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19145 <limits.h> exists even on freestanding compilers. */
19148 # include <limits.h>
19150 # include <assert.h>
19153 #undef gethostbyname
19155 /* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19161 char gethostbyname ();
19162 /* The GNU C library defines this for functions which it implements
19163 to always fail with ENOSYS. Some functions are actually named
19164 something starting with __ and the normal name is an alias. */
19165 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19172 return gethostbyname ();
19177 rm -f conftest.$ac_objext conftest$ac_exeext
19178 if { (ac_try="$ac_link"
19179 case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_link") 2>conftest.er1
19186 grep -v '^ *+' conftest.er1 >conftest.err
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest$ac_exeext &&
19194 $as_test_x conftest$ac_exeext; then
19195 ac_cv_func_gethostbyname=yes
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_cv_func_gethostbyname=no
19203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19204 conftest$ac_exeext conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19207 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19209 if test $ac_cv_func_gethostbyname = no; then
19210 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19211 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19212 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 ac_check_lib_save_LIBS=$LIBS
19217 cat >conftest.$ac_ext <<_ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19224 /* Override any GCC internal prototype to avoid an error.
19225 Use char because int might match the return type of a GCC
19226 builtin and then its argument prototype would still apply. */
19230 char gethostbyname ();
19234 return gethostbyname ();
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (ac_try="$ac_link"
19241 case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_link") 2>conftest.er1
19248 grep -v '^ *+' conftest.er1 >conftest.err
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest$ac_exeext &&
19256 $as_test_x conftest$ac_exeext; then
19257 ac_cv_lib_nsl_gethostbyname=yes
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19262 ac_cv_lib_nsl_gethostbyname=no
19265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19266 conftest$ac_exeext conftest.$ac_ext
19267 LIBS=$ac_check_lib_save_LIBS
19269 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19270 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19271 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19275 if test $ac_cv_lib_nsl_gethostbyname = no; then
19276 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19277 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19278 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 ac_check_lib_save_LIBS=$LIBS
19283 cat >conftest.$ac_ext <<_ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19290 /* Override any GCC internal prototype to avoid an error.
19291 Use char because int might match the return type of a GCC
19292 builtin and then its argument prototype would still apply. */
19296 char gethostbyname ();
19300 return gethostbyname ();
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (ac_try="$ac_link"
19307 case "(($ac_try" in
19308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309 *) ac_try_echo=$ac_try;;
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312 (eval "$ac_link") 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && {
19319 test -z "$ac_c_werror_flag" ||
19320 test ! -s conftest.err
19321 } && test -s conftest$ac_exeext &&
19322 $as_test_x conftest$ac_exeext; then
19323 ac_cv_lib_bsd_gethostbyname=yes
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ac_cv_lib_bsd_gethostbyname=no
19331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19332 conftest$ac_exeext conftest.$ac_ext
19333 LIBS=$ac_check_lib_save_LIBS
19335 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19336 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19337 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19338 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19344 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19345 # socket/setsockopt and other routines are undefined under SCO ODT
19346 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19347 # on later versions), says Simon Leinen: it contains gethostby*
19348 # variants that don't use the name server (or something). -lsocket
19349 # must be given before -lnsl if both are needed. We assume that
19350 # if connect needs -lnsl, so does gethostbyname.
19351 { echo "$as_me:$LINENO: checking for connect" >&5
19352 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19353 if test "${ac_cv_func_connect+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 cat >conftest.$ac_ext <<_ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19362 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19364 #define connect innocuous_connect
19366 /* System header to define __stub macros and hopefully few prototypes,
19367 which can conflict with char connect (); below.
19368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19369 <limits.h> exists even on freestanding compilers. */
19372 # include <limits.h>
19374 # include <assert.h>
19379 /* Override any GCC internal prototype to avoid an error.
19380 Use char because int might match the return type of a GCC
19381 builtin and then its argument prototype would still apply. */
19386 /* The GNU C library defines this for functions which it implements
19387 to always fail with ENOSYS. Some functions are actually named
19388 something starting with __ and the normal name is an alias. */
19389 #if defined __stub_connect || defined __stub___connect
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (ac_try="$ac_link"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_link") 2>conftest.er1
19410 grep -v '^ *+' conftest.er1 >conftest.err
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest$ac_exeext &&
19418 $as_test_x conftest$ac_exeext; then
19419 ac_cv_func_connect=yes
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ac_cv_func_connect=no
19427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19428 conftest$ac_exeext conftest.$ac_ext
19430 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19431 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19433 if test $ac_cv_func_connect = no; then
19434 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19435 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19436 if test "${ac_cv_lib_socket_connect+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 ac_check_lib_save_LIBS=$LIBS
19440 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19448 /* Override any GCC internal prototype to avoid an error.
19449 Use char because int might match the return type of a GCC
19450 builtin and then its argument prototype would still apply. */
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (ac_try="$ac_link"
19465 case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_link") 2>conftest.er1
19472 grep -v '^ *+' conftest.er1 >conftest.err
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && {
19477 test -z "$ac_c_werror_flag" ||
19478 test ! -s conftest.err
19479 } && test -s conftest$ac_exeext &&
19480 $as_test_x conftest$ac_exeext; then
19481 ac_cv_lib_socket_connect=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_lib_socket_connect=no
19489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19490 conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19493 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19494 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19495 if test $ac_cv_lib_socket_connect = yes; then
19496 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19501 # Guillermo Gomez says -lposix is necessary on A/UX.
19502 { echo "$as_me:$LINENO: checking for remove" >&5
19503 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19504 if test "${ac_cv_func_remove+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 cat >conftest.$ac_ext <<_ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19513 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19515 #define remove innocuous_remove
19517 /* System header to define __stub macros and hopefully few prototypes,
19518 which can conflict with char remove (); below.
19519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19520 <limits.h> exists even on freestanding compilers. */
19523 # include <limits.h>
19525 # include <assert.h>
19530 /* Override any GCC internal prototype to avoid an error.
19531 Use char because int might match the return type of a GCC
19532 builtin and then its argument prototype would still apply. */
19537 /* The GNU C library defines this for functions which it implements
19538 to always fail with ENOSYS. Some functions are actually named
19539 something starting with __ and the normal name is an alias. */
19540 #if defined __stub_remove || defined __stub___remove
19552 rm -f conftest.$ac_objext conftest$ac_exeext
19553 if { (ac_try="$ac_link"
19554 case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_link") 2>conftest.er1
19561 grep -v '^ *+' conftest.er1 >conftest.err
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest$ac_exeext &&
19569 $as_test_x conftest$ac_exeext; then
19570 ac_cv_func_remove=yes
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_cv_func_remove=no
19578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19579 conftest$ac_exeext conftest.$ac_ext
19581 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19582 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19584 if test $ac_cv_func_remove = no; then
19585 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19586 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19587 if test "${ac_cv_lib_posix_remove+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_check_lib_save_LIBS=$LIBS
19591 LIBS="-lposix $LIBS"
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19599 /* Override any GCC internal prototype to avoid an error.
19600 Use char because int might match the return type of a GCC
19601 builtin and then its argument prototype would still apply. */
19614 rm -f conftest.$ac_objext conftest$ac_exeext
19615 if { (ac_try="$ac_link"
19616 case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_link") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } && {
19628 test -z "$ac_c_werror_flag" ||
19629 test ! -s conftest.err
19630 } && test -s conftest$ac_exeext &&
19631 $as_test_x conftest$ac_exeext; then
19632 ac_cv_lib_posix_remove=yes
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 ac_cv_lib_posix_remove=no
19640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19641 conftest$ac_exeext conftest.$ac_ext
19642 LIBS=$ac_check_lib_save_LIBS
19644 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19645 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19646 if test $ac_cv_lib_posix_remove = yes; then
19647 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19652 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19653 { echo "$as_me:$LINENO: checking for shmat" >&5
19654 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19655 if test "${ac_cv_func_shmat+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 cat >conftest.$ac_ext <<_ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19664 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19666 #define shmat innocuous_shmat
19668 /* System header to define __stub macros and hopefully few prototypes,
19669 which can conflict with char shmat (); below.
19670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19671 <limits.h> exists even on freestanding compilers. */
19674 # include <limits.h>
19676 # include <assert.h>
19681 /* Override any GCC internal prototype to avoid an error.
19682 Use char because int might match the return type of a GCC
19683 builtin and then its argument prototype would still apply. */
19688 /* The GNU C library defines this for functions which it implements
19689 to always fail with ENOSYS. Some functions are actually named
19690 something starting with __ and the normal name is an alias. */
19691 #if defined __stub_shmat || defined __stub___shmat
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (ac_try="$ac_link"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_link") 2>conftest.er1
19712 grep -v '^ *+' conftest.er1 >conftest.err
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } && {
19717 test -z "$ac_c_werror_flag" ||
19718 test ! -s conftest.err
19719 } && test -s conftest$ac_exeext &&
19720 $as_test_x conftest$ac_exeext; then
19721 ac_cv_func_shmat=yes
19723 echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19726 ac_cv_func_shmat=no
19729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19730 conftest$ac_exeext conftest.$ac_ext
19732 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19733 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19735 if test $ac_cv_func_shmat = no; then
19736 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19737 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19738 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 ac_check_lib_save_LIBS=$LIBS
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19750 /* Override any GCC internal prototype to avoid an error.
19751 Use char because int might match the return type of a GCC
19752 builtin and then its argument prototype would still apply. */
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (ac_try="$ac_link"
19767 case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_link") 2>conftest.er1
19774 grep -v '^ *+' conftest.er1 >conftest.err
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest$ac_exeext &&
19782 $as_test_x conftest$ac_exeext; then
19783 ac_cv_lib_ipc_shmat=yes
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 ac_cv_lib_ipc_shmat=no
19791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19792 conftest$ac_exeext conftest.$ac_ext
19793 LIBS=$ac_check_lib_save_LIBS
19795 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19796 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19797 if test $ac_cv_lib_ipc_shmat = yes; then
19798 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19804 # Check for libraries that X11R6 Xt/Xaw programs need.
19805 ac_save_LDFLAGS=$LDFLAGS
19806 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19807 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19808 # check for ICE first), but we must link in the order -lSM -lICE or
19809 # we get undefined symbols. So assume we have SM if we have ICE.
19810 # These have to be linked with before -lX11, unlike the other
19811 # libraries we check for below, so use a different variable.
19812 # John Interrante, Karl Berry
19813 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19814 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19815 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 ac_check_lib_save_LIBS=$LIBS
19819 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19820 cat >conftest.$ac_ext <<_ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19827 /* Override any GCC internal prototype to avoid an error.
19828 Use char because int might match the return type of a GCC
19829 builtin and then its argument prototype would still apply. */
19833 char IceConnectionNumber ();
19837 return IceConnectionNumber ();
19842 rm -f conftest.$ac_objext conftest$ac_exeext
19843 if { (ac_try="$ac_link"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_link") 2>conftest.er1
19851 grep -v '^ *+' conftest.er1 >conftest.err
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest$ac_exeext &&
19859 $as_test_x conftest$ac_exeext; then
19860 ac_cv_lib_ICE_IceConnectionNumber=yes
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 ac_cv_lib_ICE_IceConnectionNumber=no
19868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19872 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19873 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19874 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19875 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19878 LDFLAGS=$ac_save_LDFLAGS
19946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 ac_res=`eval echo '${'$as_ac_Header'}'`
19954 { echo "$as_me:$LINENO: result: $ac_res" >&5
19955 echo "${ECHO_T}$ac_res" >&6; }
19957 # Is the header compilable?
19958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 $ac_includes_default
19967 #include <$ac_header>
19969 rm -f conftest.$ac_objext
19970 if { (ac_try="$ac_compile"
19971 case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_compile") 2>conftest.er1
19978 grep -v '^ *+' conftest.er1 >conftest.err
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } && {
19983 test -z "$ac_c_werror_flag" ||
19984 test ! -s conftest.err
19985 } && test -s conftest.$ac_objext; then
19986 ac_header_compiler=yes
19988 echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19991 ac_header_compiler=no
19994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19996 echo "${ECHO_T}$ac_header_compiler" >&6; }
19998 # Is the header present?
19999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20001 cat >conftest.$ac_ext <<_ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20007 #include <$ac_header>
20009 if { (ac_try="$ac_cpp conftest.$ac_ext"
20010 case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20017 grep -v '^ *+' conftest.er1 >conftest.err
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } >/dev/null && {
20022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20023 test ! -s conftest.err
20025 ac_header_preproc=yes
20027 echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_header_preproc=no
20033 rm -f conftest.err conftest.$ac_ext
20034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20035 echo "${ECHO_T}$ac_header_preproc" >&6; }
20037 # So? What about this header?
20038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20044 ac_header_preproc=yes
20047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20067 eval "$as_ac_Header=\$ac_header_preproc"
20069 ac_res=`eval echo '${'$as_ac_Header'}'`
20070 { echo "$as_me:$LINENO: result: $ac_res" >&5
20071 echo "${ECHO_T}$ac_res" >&6; }
20074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20075 cat >>confdefs.h <<_ACEOF
20076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20083 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20085 if test "${ac_cv_header_stdc+set}" = set; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 cat >conftest.$ac_ext <<_ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 #include <stdlib.h>
20095 #include <stdarg.h>
20096 #include <string.h>
20107 rm -f conftest.$ac_objext
20108 if { (ac_try="$ac_compile"
20109 case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_compile") 2>conftest.er1
20116 grep -v '^ *+' conftest.er1 >conftest.err
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } && {
20121 test -z "$ac_c_werror_flag" ||
20122 test ! -s conftest.err
20123 } && test -s conftest.$ac_objext; then
20124 ac_cv_header_stdc=yes
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ac_cv_header_stdc=no
20132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20134 if test $ac_cv_header_stdc = yes; then
20135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20136 cat >conftest.$ac_ext <<_ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20142 #include <string.h>
20145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20146 $EGREP "memchr" >/dev/null 2>&1; then
20149 ac_cv_header_stdc=no
20155 if test $ac_cv_header_stdc = yes; then
20156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #include <stdlib.h>
20166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20167 $EGREP "free" >/dev/null 2>&1; then
20170 ac_cv_header_stdc=no
20176 if test $ac_cv_header_stdc = yes; then
20177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20178 if test "$cross_compiling" = yes; then
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20188 #include <stdlib.h>
20189 #if ((' ' & 0x0FF) == 0x020)
20190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20193 # define ISLOWER(c) \
20194 (('a' <= (c) && (c) <= 'i') \
20195 || ('j' <= (c) && (c) <= 'r') \
20196 || ('s' <= (c) && (c) <= 'z'))
20197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20205 for (i = 0; i < 256; i++)
20206 if (XOR (islower (i), ISLOWER (i))
20207 || toupper (i) != TOUPPER (i))
20212 rm -f conftest$ac_exeext
20213 if { (ac_try="$ac_link"
20214 case "(($ac_try" in
20215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_link") 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20223 { (case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_try") 2>&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; }; then
20234 echo "$as_me: program exited with status $ac_status" >&5
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20238 ( exit $ac_status )
20239 ac_cv_header_stdc=no
20241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20247 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20248 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20249 if test $ac_cv_header_stdc = yes; then
20251 cat >>confdefs.h <<\_ACEOF
20252 #define STDC_HEADERS 1
20257 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20258 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20259 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 cat >conftest.$ac_ext <<_ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268 #include <sys/types.h>
20272 return makedev(0, 0);
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (ac_try="$ac_link"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_link") 2>conftest.er1
20286 grep -v '^ *+' conftest.er1 >conftest.err
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } && {
20291 test -z "$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 } && test -s conftest$ac_exeext &&
20294 $as_test_x conftest$ac_exeext; then
20295 ac_cv_header_sys_types_h_makedev=yes
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ac_cv_header_sys_types_h_makedev=no
20303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20304 conftest$ac_exeext conftest.$ac_ext
20307 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20308 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20310 if test $ac_cv_header_sys_types_h_makedev = no; then
20311 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20312 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20313 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20314 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20318 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20320 # Is the header compilable?
20321 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20322 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 $ac_includes_default
20330 #include <sys/mkdev.h>
20332 rm -f conftest.$ac_objext
20333 if { (ac_try="$ac_compile"
20334 case "(($ac_try" in
20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336 *) ac_try_echo=$ac_try;;
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339 (eval "$ac_compile") 2>conftest.er1
20341 grep -v '^ *+' conftest.er1 >conftest.err
20343 cat conftest.err >&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } && {
20346 test -z "$ac_c_werror_flag" ||
20347 test ! -s conftest.err
20348 } && test -s conftest.$ac_objext; then
20349 ac_header_compiler=yes
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ac_header_compiler=no
20357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20359 echo "${ECHO_T}$ac_header_compiler" >&6; }
20361 # Is the header present?
20362 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20363 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20364 cat >conftest.$ac_ext <<_ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 #include <sys/mkdev.h>
20372 if { (ac_try="$ac_cpp conftest.$ac_ext"
20373 case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20380 grep -v '^ *+' conftest.er1 >conftest.err
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } >/dev/null && {
20385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20386 test ! -s conftest.err
20388 ac_header_preproc=yes
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20393 ac_header_preproc=no
20396 rm -f conftest.err conftest.$ac_ext
20397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20398 echo "${ECHO_T}$ac_header_preproc" >&6; }
20400 # So? What about this header?
20401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20403 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20404 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20406 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20407 ac_header_preproc=yes
20410 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20411 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20413 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20415 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20417 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20418 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20419 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20420 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20421 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20425 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20426 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20427 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20430 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20432 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20433 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20436 if test $ac_cv_header_sys_mkdev_h = yes; then
20438 cat >>confdefs.h <<\_ACEOF
20439 #define MAJOR_IN_MKDEV 1
20446 if test $ac_cv_header_sys_mkdev_h = no; then
20447 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20448 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20449 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20450 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20453 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20454 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20456 # Is the header compilable?
20457 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20458 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20459 cat >conftest.$ac_ext <<_ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 $ac_includes_default
20466 #include <sys/sysmacros.h>
20468 rm -f conftest.$ac_objext
20469 if { (ac_try="$ac_compile"
20470 case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_compile") 2>conftest.er1
20477 grep -v '^ *+' conftest.er1 >conftest.err
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } && {
20482 test -z "$ac_c_werror_flag" ||
20483 test ! -s conftest.err
20484 } && test -s conftest.$ac_objext; then
20485 ac_header_compiler=yes
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_header_compiler=no
20493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20495 echo "${ECHO_T}$ac_header_compiler" >&6; }
20497 # Is the header present?
20498 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20499 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20500 cat >conftest.$ac_ext <<_ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 #include <sys/sysmacros.h>
20508 if { (ac_try="$ac_cpp conftest.$ac_ext"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20516 grep -v '^ *+' conftest.er1 >conftest.err
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } >/dev/null && {
20521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20522 test ! -s conftest.err
20524 ac_header_preproc=yes
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20529 ac_header_preproc=no
20532 rm -f conftest.err conftest.$ac_ext
20533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20534 echo "${ECHO_T}$ac_header_preproc" >&6; }
20536 # So? What about this header?
20537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20539 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20540 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20542 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20543 ac_header_preproc=yes
20546 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20547 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20549 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20550 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20551 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20552 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20553 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20554 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20555 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20556 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20557 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20561 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20562 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20563 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20566 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20568 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20569 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20572 if test $ac_cv_header_sys_sysmacros_h = yes; then
20574 cat >>confdefs.h <<\_ACEOF
20575 #define MAJOR_IN_SYSMACROS 1
20589 ac_header_dirent=no
20590 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20591 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20592 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20593 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 cat >conftest.$ac_ext <<_ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20603 #include <sys/types.h>
20615 rm -f conftest.$ac_objext
20616 if { (ac_try="$ac_compile"
20617 case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_compile") 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } && {
20629 test -z "$ac_c_werror_flag" ||
20630 test ! -s conftest.err
20631 } && test -s conftest.$ac_objext; then
20632 eval "$as_ac_Header=yes"
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 eval "$as_ac_Header=no"
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 ac_res=`eval echo '${'$as_ac_Header'}'`
20643 { echo "$as_me:$LINENO: result: $ac_res" >&5
20644 echo "${ECHO_T}$ac_res" >&6; }
20645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20646 cat >>confdefs.h <<_ACEOF
20647 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20650 ac_header_dirent=$ac_hdr; break
20654 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20655 if test $ac_header_dirent = dirent.h; then
20656 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20657 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20658 if test "${ac_cv_search_opendir+set}" = set; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20661 ac_func_search_save_LIBS=$LIBS
20662 cat >conftest.$ac_ext <<_ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20669 /* Override any GCC internal prototype to avoid an error.
20670 Use char because int might match the return type of a GCC
20671 builtin and then its argument prototype would still apply. */
20684 for ac_lib in '' dir; do
20685 if test -z "$ac_lib"; then
20686 ac_res="none required"
20689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20691 rm -f conftest.$ac_objext conftest$ac_exeext
20692 if { (ac_try="$ac_link"
20693 case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_link") 2>conftest.er1
20700 grep -v '^ *+' conftest.er1 >conftest.err
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } && {
20705 test -z "$ac_c_werror_flag" ||
20706 test ! -s conftest.err
20707 } && test -s conftest$ac_exeext &&
20708 $as_test_x conftest$ac_exeext; then
20709 ac_cv_search_opendir=$ac_res
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20719 if test "${ac_cv_search_opendir+set}" = set; then
20723 if test "${ac_cv_search_opendir+set}" = set; then
20726 ac_cv_search_opendir=no
20728 rm conftest.$ac_ext
20729 LIBS=$ac_func_search_save_LIBS
20731 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20732 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20733 ac_res=$ac_cv_search_opendir
20734 if test "$ac_res" != no; then
20735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20740 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20741 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20742 if test "${ac_cv_search_opendir+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 ac_func_search_save_LIBS=$LIBS
20746 cat >conftest.$ac_ext <<_ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20753 /* Override any GCC internal prototype to avoid an error.
20754 Use char because int might match the return type of a GCC
20755 builtin and then its argument prototype would still apply. */
20768 for ac_lib in '' x; do
20769 if test -z "$ac_lib"; then
20770 ac_res="none required"
20773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20775 rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_link") 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && {
20789 test -z "$ac_c_werror_flag" ||
20790 test ! -s conftest.err
20791 } && test -s conftest$ac_exeext &&
20792 $as_test_x conftest$ac_exeext; then
20793 ac_cv_search_opendir=$ac_res
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20803 if test "${ac_cv_search_opendir+set}" = set; then
20807 if test "${ac_cv_search_opendir+set}" = set; then
20810 ac_cv_search_opendir=no
20812 rm conftest.$ac_ext
20813 LIBS=$ac_func_search_save_LIBS
20815 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20816 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20817 ac_res=$ac_cv_search_opendir
20818 if test "$ac_res" != no; then
20819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20825 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20826 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20827 if test "${ac_cv_header_stat_broken+set}" = set; then
20828 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 #include <sys/types.h>
20837 #include <sys/stat.h>
20839 #if defined S_ISBLK && defined S_IFDIR
20840 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20843 #if defined S_ISBLK && defined S_IFCHR
20844 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20847 #if defined S_ISLNK && defined S_IFREG
20848 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20851 #if defined S_ISSOCK && defined S_IFREG
20852 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_compile") 2>conftest.er1
20865 grep -v '^ *+' conftest.er1 >conftest.err
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } && {
20870 test -z "$ac_c_werror_flag" ||
20871 test ! -s conftest.err
20872 } && test -s conftest.$ac_objext; then
20873 ac_cv_header_stat_broken=no
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20878 ac_cv_header_stat_broken=yes
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20884 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20885 if test $ac_cv_header_stat_broken = yes; then
20887 cat >>confdefs.h <<\_ACEOF
20888 #define STAT_MACROS_BROKEN 1
20893 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20894 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20895 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20904 #include <sys/types.h>
20905 #include <sys/wait.h>
20906 #ifndef WEXITSTATUS
20907 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20910 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20918 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20932 grep -v '^ *+' conftest.er1 >conftest.err
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest.$ac_objext; then
20940 ac_cv_header_sys_wait_h=yes
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_cv_header_sys_wait_h=no
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20951 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20952 if test $ac_cv_header_sys_wait_h = yes; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define HAVE_SYS_WAIT_H 1
20960 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20961 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20962 if test "${ac_cv_header_time+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 #include <sys/types.h>
20972 #include <sys/time.h>
20978 if ((struct tm *) 0)
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1 >conftest.err
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest.$ac_objext; then
21001 ac_cv_header_time=yes
21003 echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21006 ac_cv_header_time=no
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21012 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21013 if test $ac_cv_header_time = yes; then
21015 cat >>confdefs.h <<\_ACEOF
21016 #define TIME_WITH_SYS_TIME 1
21021 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21022 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21023 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21026 cat >conftest.$ac_ext <<_ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21032 $ac_includes_default
21036 static struct stat ac_aggr;
21037 if (ac_aggr.st_blksize)
21043 rm -f conftest.$ac_objext
21044 if { (ac_try="$ac_compile"
21045 case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_compile") 2>conftest.er1
21052 grep -v '^ *+' conftest.er1 >conftest.err
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } && {
21057 test -z "$ac_c_werror_flag" ||
21058 test ! -s conftest.err
21059 } && test -s conftest.$ac_objext; then
21060 ac_cv_member_struct_stat_st_blksize=yes
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 cat >conftest.$ac_ext <<_ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21071 $ac_includes_default
21075 static struct stat ac_aggr;
21076 if (sizeof ac_aggr.st_blksize)
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_compile") 2>conftest.er1
21091 grep -v '^ *+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && {
21096 test -z "$ac_c_werror_flag" ||
21097 test ! -s conftest.err
21098 } && test -s conftest.$ac_objext; then
21099 ac_cv_member_struct_stat_st_blksize=yes
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21104 ac_cv_member_struct_stat_st_blksize=no
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21113 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21114 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21116 cat >>confdefs.h <<_ACEOF
21117 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21121 cat >>confdefs.h <<\_ACEOF
21122 #define HAVE_ST_BLKSIZE 1
21128 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21129 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21130 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 $ac_includes_default
21143 static struct stat ac_aggr;
21144 if (ac_aggr.st_blocks)
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_compile") 2>conftest.er1
21159 grep -v '^ *+' conftest.er1 >conftest.err
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } && {
21164 test -z "$ac_c_werror_flag" ||
21165 test ! -s conftest.err
21166 } && test -s conftest.$ac_objext; then
21167 ac_cv_member_struct_stat_st_blocks=yes
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 cat >conftest.$ac_ext <<_ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 $ac_includes_default
21182 static struct stat ac_aggr;
21183 if (sizeof ac_aggr.st_blocks)
21189 rm -f conftest.$ac_objext
21190 if { (ac_try="$ac_compile"
21191 case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_compile") 2>conftest.er1
21198 grep -v '^ *+' conftest.er1 >conftest.err
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } && {
21203 test -z "$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21205 } && test -s conftest.$ac_objext; then
21206 ac_cv_member_struct_stat_st_blocks=yes
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_cv_member_struct_stat_st_blocks=no
21214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21220 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21221 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21223 cat >>confdefs.h <<_ACEOF
21224 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21228 cat >>confdefs.h <<\_ACEOF
21229 #define HAVE_ST_BLOCKS 1
21233 case " $LIBOBJS " in
21234 *" fileblocks.$ac_objext "* ) ;;
21235 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21242 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21243 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21244 if test "${ac_cv_struct_tm+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 cat >conftest.$ac_ext <<_ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 #include <sys/types.h>
21260 int *p = &tm.tm_sec;
21266 rm -f conftest.$ac_objext
21267 if { (ac_try="$ac_compile"
21268 case "(($ac_try" in
21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270 *) ac_try_echo=$ac_try;;
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_compile") 2>conftest.er1
21275 grep -v '^ *+' conftest.er1 >conftest.err
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } && {
21280 test -z "$ac_c_werror_flag" ||
21281 test ! -s conftest.err
21282 } && test -s conftest.$ac_objext; then
21283 ac_cv_struct_tm=time.h
21285 echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21288 ac_cv_struct_tm=sys/time.h
21291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21294 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21295 if test $ac_cv_struct_tm = sys/time.h; then
21297 cat >>confdefs.h <<\_ACEOF
21298 #define TM_IN_SYS_TIME 1
21303 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21304 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21305 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 cat >conftest.$ac_ext <<_ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 #include <sys/types.h>
21315 #include <$ac_cv_struct_tm>
21321 static struct tm ac_aggr;
21322 if (ac_aggr.tm_zone)
21328 rm -f conftest.$ac_objext
21329 if { (ac_try="$ac_compile"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_compile") 2>conftest.er1
21337 grep -v '^ *+' conftest.er1 >conftest.err
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } && {
21342 test -z "$ac_c_werror_flag" ||
21343 test ! -s conftest.err
21344 } && test -s conftest.$ac_objext; then
21345 ac_cv_member_struct_tm_tm_zone=yes
21347 echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21350 cat >conftest.$ac_ext <<_ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 #include <sys/types.h>
21357 #include <$ac_cv_struct_tm>
21363 static struct tm ac_aggr;
21364 if (sizeof ac_aggr.tm_zone)
21370 rm -f conftest.$ac_objext
21371 if { (ac_try="$ac_compile"
21372 case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_compile") 2>conftest.er1
21379 grep -v '^ *+' conftest.er1 >conftest.err
21381 cat conftest.err >&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } && {
21384 test -z "$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21386 } && test -s conftest.$ac_objext; then
21387 ac_cv_member_struct_tm_tm_zone=yes
21389 echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 ac_cv_member_struct_tm_tm_zone=no
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21401 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21402 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21404 cat >>confdefs.h <<_ACEOF
21405 #define HAVE_STRUCT_TM_TM_ZONE 1
21411 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21413 cat >>confdefs.h <<\_ACEOF
21414 #define HAVE_TM_ZONE 1
21418 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21419 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21420 if test "${ac_cv_have_decl_tzname+set}" = set; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 cat >conftest.$ac_ext <<_ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21442 rm -f conftest.$ac_objext
21443 if { (ac_try="$ac_compile"
21444 case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_compile") 2>conftest.er1
21451 grep -v '^ *+' conftest.er1 >conftest.err
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest.$ac_objext; then
21459 ac_cv_have_decl_tzname=yes
21461 echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21464 ac_cv_have_decl_tzname=no
21467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21470 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21471 if test $ac_cv_have_decl_tzname = yes; then
21473 cat >>confdefs.h <<_ACEOF
21474 #define HAVE_DECL_TZNAME 1
21479 cat >>confdefs.h <<_ACEOF
21480 #define HAVE_DECL_TZNAME 0
21487 { echo "$as_me:$LINENO: checking for tzname" >&5
21488 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21489 if test "${ac_cv_var_tzname+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 cat >conftest.$ac_ext <<_ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21499 #if !HAVE_DECL_TZNAME
21500 extern char *tzname[];
21506 return tzname[0][0];
21511 rm -f conftest.$ac_objext conftest$ac_exeext
21512 if { (ac_try="$ac_link"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_link") 2>conftest.er1
21520 grep -v '^ *+' conftest.er1 >conftest.err
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && {
21525 test -z "$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21527 } && test -s conftest$ac_exeext &&
21528 $as_test_x conftest$ac_exeext; then
21529 ac_cv_var_tzname=yes
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21534 ac_cv_var_tzname=no
21537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21538 conftest$ac_exeext conftest.$ac_ext
21540 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21541 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21542 if test $ac_cv_var_tzname = yes; then
21544 cat >>confdefs.h <<\_ACEOF
21545 #define HAVE_TZNAME 1
21552 { echo "$as_me:$LINENO: checking for utime.h" >&5
21553 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21554 if test "${ba_cv_header_utime_h+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 cat >conftest.$ac_ext <<_ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21564 #include <sys/types.h>
21574 rm -f conftest.$ac_objext
21575 if { (ac_try="$ac_compile"
21576 case "(($ac_try" in
21577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578 *) ac_try_echo=$ac_try;;
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581 (eval "$ac_compile") 2>conftest.er1
21583 grep -v '^ *+' conftest.er1 >conftest.err
21585 cat conftest.err >&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); } && {
21588 test -z "$ac_c_werror_flag" ||
21589 test ! -s conftest.err
21590 } && test -s conftest.$ac_objext; then
21591 ba_cv_header_utime_h=yes
21593 echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21596 ba_cv_header_utime_h=no
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21602 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21603 test $ba_cv_header_utime_h = yes &&
21604 cat >>confdefs.h <<\_ACEOF
21605 #define HAVE_UTIME_H 1
21609 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21610 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21611 if test "${ba_cv_header_socklen_t+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21621 #include <sys/types.h>
21622 #include <sys/socket.h>
21631 rm -f conftest.$ac_objext
21632 if { (ac_try="$ac_compile"
21633 case "(($ac_try" in
21634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635 *) ac_try_echo=$ac_try;;
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638 (eval "$ac_compile") 2>conftest.er1
21640 grep -v '^ *+' conftest.er1 >conftest.err
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } && {
21645 test -z "$ac_c_werror_flag" ||
21646 test ! -s conftest.err
21647 } && test -s conftest.$ac_objext; then
21648 ba_cv_header_socklen_t=yes
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21653 ba_cv_header_socklen_t=no
21656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21658 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21659 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21660 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21661 #define HAVE_SOCKLEN_T 1
21665 { echo "$as_me:$LINENO: checking for bigendian" >&5
21666 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21667 if test "${ba_cv_bigendian+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 if test "$cross_compiling" = yes; then
21673 cat >conftest.$ac_ext <<_ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h. */
21679 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21681 rm -f conftest$ac_exeext
21682 if { (ac_try="$ac_link"
21683 case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_link") 2>&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21692 { (case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_try") 2>&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 ba_cv_bigendian=yes
21703 echo "$as_me: program exited with status $ac_status" >&5
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21707 ( exit $ac_status )
21710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21715 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21716 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21717 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21718 #define HAVE_BIGENDIAN 1
21723 ac_cpp='$CXXCPP $CPPFLAGS'
21724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21729 { echo "$as_me:$LINENO: checking for typeof" >&5
21730 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21731 if test "${ba_cv_have_typeof+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 if test "$cross_compiling" = yes; then
21735 ba_cv_have_typeof=no
21737 cat >conftest.$ac_ext <<_ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 main(){char *a = 0; a = (typeof a)a;}
21745 rm -f conftest$ac_exeext
21746 if { (ac_try="$ac_link"
21747 case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_link") 2>&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21756 { (case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_try") 2>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 ba_cv_have_typeof=yes
21767 echo "$as_me: program exited with status $ac_status" >&5
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 ( exit $ac_status )
21772 ba_cv_have_typeof=no
21774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21779 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21780 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21781 test $ba_cv_have_typeof = yes &&
21782 cat >>confdefs.h <<\_ACEOF
21783 #define HAVE_TYPEOF 1
21787 ac_cpp='$CPP $CPPFLAGS'
21788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21793 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21794 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21795 if test "${ac_cv_c_const+set}" = set; then
21796 echo $ECHO_N "(cached) $ECHO_C" >&6
21798 cat >conftest.$ac_ext <<_ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21808 /* FIXME: Include the comments suggested by Paul. */
21809 #ifndef __cplusplus
21810 /* Ultrix mips cc rejects this. */
21811 typedef int charset[2];
21813 /* SunOS 4.1.1 cc rejects this. */
21814 char const *const *pcpcc;
21816 /* NEC SVR4.0.2 mips cc rejects this. */
21817 struct point {int x, y;};
21818 static struct point const zero = {0,0};
21819 /* AIX XL C 1.02.0.0 rejects this.
21820 It does not let you subtract one const X* pointer from another in
21821 an arm of an if-expression whose if-part is not a constant
21823 const char *g = "string";
21824 pcpcc = &g + (g ? g-g : 0);
21825 /* HPUX 7.0 cc rejects these. */
21827 ppc = (char**) pcpcc;
21828 pcpcc = (char const *const *) ppc;
21829 { /* SCO 3.2v4 cc rejects this. */
21831 char const *s = 0 ? (char *) 0 : (char const *) 0;
21836 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21837 int x[] = {25, 17};
21838 const int *foo = &x[0];
21841 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21842 typedef const int *iptr;
21846 { /* AIX XL C 1.02.0.0 rejects this saying
21847 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21848 struct s { int j; const int *ap[3]; };
21849 struct s *b; b->j = 5;
21851 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21852 const int foo = 10;
21853 if (!foo) return 0;
21855 return !cs[0] && !zero.x;
21862 rm -f conftest.$ac_objext
21863 if { (ac_try="$ac_compile"
21864 case "(($ac_try" in
21865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866 *) ac_try_echo=$ac_try;;
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869 (eval "$ac_compile") 2>conftest.er1
21871 grep -v '^ *+' conftest.er1 >conftest.err
21873 cat conftest.err >&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } && {
21876 test -z "$ac_c_werror_flag" ||
21877 test ! -s conftest.err
21878 } && test -s conftest.$ac_objext; then
21881 echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21889 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21890 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21891 if test $ac_cv_c_const = no; then
21893 cat >>confdefs.h <<\_ACEOF
21901 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21902 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21904 # The order of these tests is important.
21905 cat >conftest.$ac_ext <<_ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21911 #include <sys/statvfs.h>
21912 #include <sys/fstyp.h>
21914 if { (ac_try="$ac_cpp conftest.$ac_ext"
21915 case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21922 grep -v '^ *+' conftest.er1 >conftest.err
21924 cat conftest.err >&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } >/dev/null && {
21927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21928 test ! -s conftest.err
21930 cat >>confdefs.h <<\_ACEOF
21931 #define FSTYPE_STATVFS 1
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21941 rm -f conftest.err conftest.$ac_ext
21942 if test $fstype = no; then
21943 cat >conftest.$ac_ext <<_ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21949 #include <sys/statfs.h>
21950 #include <sys/fstyp.h>
21952 if { (ac_try="$ac_cpp conftest.$ac_ext"
21953 case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } >/dev/null && {
21965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21968 cat >>confdefs.h <<\_ACEOF
21969 #define FSTYPE_USG_STATFS 1
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21979 rm -f conftest.err conftest.$ac_ext
21981 if test $fstype = no; then
21982 cat >conftest.$ac_ext <<_ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 #include <sys/statfs.h>
21989 #include <sys/vmount.h>
21991 if { (ac_try="$ac_cpp conftest.$ac_ext"
21992 case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21999 grep -v '^ *+' conftest.er1 >conftest.err
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } >/dev/null && {
22004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22005 test ! -s conftest.err
22007 cat >>confdefs.h <<\_ACEOF
22008 #define FSTYPE_AIX_STATFS 1
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22018 rm -f conftest.err conftest.$ac_ext
22020 if test $fstype = no; then
22021 cat >conftest.$ac_ext <<_ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 #include <mntent.h>
22029 if { (ac_try="$ac_cpp conftest.$ac_ext"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22037 grep -v '^ *+' conftest.er1 >conftest.err
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } >/dev/null && {
22042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22045 cat >>confdefs.h <<\_ACEOF
22046 #define FSTYPE_MNTENT 1
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22056 rm -f conftest.err conftest.$ac_ext
22058 if test $fstype = no; then
22059 cat >conftest.$ac_ext <<_ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 #include <sys/mount.h>
22068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22069 $EGREP "f_type;" >/dev/null 2>&1; then
22070 cat >>confdefs.h <<\_ACEOF
22071 #define FSTYPE_STATFS 1
22078 if test $fstype = no; then
22079 cat >conftest.$ac_ext <<_ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22085 #include <sys/mount.h>
22086 #include <sys/fs_types.h>
22088 if { (ac_try="$ac_cpp conftest.$ac_ext"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22096 grep -v '^ *+' conftest.er1 >conftest.err
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } >/dev/null && {
22101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22102 test ! -s conftest.err
22104 cat >>confdefs.h <<\_ACEOF
22105 #define FSTYPE_GETMNT 1
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22115 rm -f conftest.err conftest.$ac_ext
22117 { echo "$as_me:$LINENO: result: $fstype" >&5
22118 echo "${ECHO_T}$fstype" >&6; }
22120 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22121 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22122 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22123 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22127 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22129 # Is the header compilable?
22130 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22131 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22132 cat >conftest.$ac_ext <<_ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 $ac_includes_default
22139 #include <sys/statvfs.h>
22141 rm -f conftest.$ac_objext
22142 if { (ac_try="$ac_compile"
22143 case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_compile") 2>conftest.er1
22150 grep -v '^ *+' conftest.er1 >conftest.err
22152 cat conftest.err >&5
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); } && {
22155 test -z "$ac_c_werror_flag" ||
22156 test ! -s conftest.err
22157 } && test -s conftest.$ac_objext; then
22158 ac_header_compiler=yes
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22163 ac_header_compiler=no
22166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22168 echo "${ECHO_T}$ac_header_compiler" >&6; }
22170 # Is the header present?
22171 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22172 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22173 cat >conftest.$ac_ext <<_ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h. */
22179 #include <sys/statvfs.h>
22181 if { (ac_try="$ac_cpp conftest.$ac_ext"
22182 case "(($ac_try" in
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184 *) ac_try_echo=$ac_try;;
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22189 grep -v '^ *+' conftest.er1 >conftest.err
22191 cat conftest.err >&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } >/dev/null && {
22194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22195 test ! -s conftest.err
22197 ac_header_preproc=yes
22199 echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22202 ac_header_preproc=no
22205 rm -f conftest.err conftest.$ac_ext
22206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22207 echo "${ECHO_T}$ac_header_preproc" >&6; }
22209 # So? What about this header?
22210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22212 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22213 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22214 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22215 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22216 ac_header_preproc=yes
22219 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22220 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22221 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
22222 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
22223 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22224 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22225 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
22226 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22227 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22228 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22230 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22234 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22235 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22236 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22237 echo $ECHO_N "(cached) $ECHO_C" >&6
22239 ac_cv_header_sys_statvfs_h=$ac_header_preproc
22241 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22242 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22245 if test $ac_cv_header_sys_statvfs_h = yes; then
22247 cat >>confdefs.h <<\_ACEOF
22248 #define HAVE_SYS_STATVFS_H 1
22255 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22256 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22257 if test "${ac_cv_type_signal+set}" = set; then
22258 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 cat >conftest.$ac_ext <<_ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
22266 #include <sys/types.h>
22267 #include <signal.h>
22272 return *(signal (0, 0)) (0) == 1;
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_compile") 2>conftest.er1
22286 grep -v '^ *+' conftest.er1 >conftest.err
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && {
22291 test -z "$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22293 } && test -s conftest.$ac_objext; then
22294 ac_cv_type_signal=int
22296 echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22299 ac_cv_type_signal=void
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22305 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22307 cat >>confdefs.h <<_ACEOF
22308 #define RETSIGTYPE $ac_cv_type_signal
22313 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22314 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22315 if test "${bash_cv_signal_vintage+set}" = set; then
22316 echo $ECHO_N "(cached) $ECHO_C" >&6
22319 cat >conftest.$ac_ext <<_ACEOF
22322 cat confdefs.h >>conftest.$ac_ext
22323 cat >>conftest.$ac_ext <<_ACEOF
22324 /* end confdefs.h. */
22325 #include <signal.h>
22331 struct sigaction sa;
22332 sigemptyset(&ss); sigsuspend(&ss);
22333 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22334 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22340 rm -f conftest.$ac_objext conftest$ac_exeext
22341 if { (ac_try="$ac_link"
22342 case "(($ac_try" in
22343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344 *) ac_try_echo=$ac_try;;
22346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347 (eval "$ac_link") 2>conftest.er1
22349 grep -v '^ *+' conftest.er1 >conftest.err
22351 cat conftest.err >&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } && {
22354 test -z "$ac_c_werror_flag" ||
22355 test ! -s conftest.err
22356 } && test -s conftest$ac_exeext &&
22357 $as_test_x conftest$ac_exeext; then
22358 bash_cv_signal_vintage="posix"
22360 echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22364 cat >conftest.$ac_ext <<_ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h. */
22370 #include <signal.h>
22375 int mask = sigmask(SIGINT);
22376 sigsetmask(mask); sigblock(mask); sigpause(mask);
22382 rm -f conftest.$ac_objext conftest$ac_exeext
22383 if { (ac_try="$ac_link"
22384 case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_link") 2>conftest.er1
22391 grep -v '^ *+' conftest.er1 >conftest.err
22393 cat conftest.err >&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } && {
22396 test -z "$ac_c_werror_flag" ||
22397 test ! -s conftest.err
22398 } && test -s conftest$ac_exeext &&
22399 $as_test_x conftest$ac_exeext; then
22400 bash_cv_signal_vintage="4.2bsd"
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22406 cat >conftest.$ac_ext <<_ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h. */
22413 #include <signal.h>
22414 RETSIGTYPE foo() { }
22419 int mask = sigmask(SIGINT);
22420 sigset(SIGINT, foo); sigrelse(SIGINT);
22421 sighold(SIGINT); sigpause(SIGINT);
22427 rm -f conftest.$ac_objext conftest$ac_exeext
22428 if { (ac_try="$ac_link"
22429 case "(($ac_try" in
22430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431 *) ac_try_echo=$ac_try;;
22433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22434 (eval "$ac_link") 2>conftest.er1
22436 grep -v '^ *+' conftest.er1 >conftest.err
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } && {
22441 test -z "$ac_c_werror_flag" ||
22442 test ! -s conftest.err
22443 } && test -s conftest$ac_exeext &&
22444 $as_test_x conftest$ac_exeext; then
22445 bash_cv_signal_vintage="svr3"
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 bash_cv_signal_vintage="v7"
22454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22455 conftest$ac_exeext conftest.$ac_ext
22459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22460 conftest$ac_exeext conftest.$ac_ext
22464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22465 conftest$ac_exeext conftest.$ac_ext
22469 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22470 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22471 if test "$bash_cv_signal_vintage" = "posix"; then
22472 cat >>confdefs.h <<\_ACEOF
22473 #define HAVE_POSIX_SIGNALS 1
22476 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22477 cat >>confdefs.h <<\_ACEOF
22478 #define HAVE_BSD_SIGNALS 1
22481 elif test "$bash_cv_signal_vintage" = "svr3"; then
22482 cat >>confdefs.h <<\_ACEOF
22483 #define HAVE_USG_SIGHOLD 1
22488 { echo "$as_me:$LINENO: checking for mode_t" >&5
22489 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22490 if test "${ac_cv_type_mode_t+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22493 cat >conftest.$ac_ext <<_ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h. */
22499 $ac_includes_default
22500 typedef mode_t ac__type_new_;
22504 if ((ac__type_new_ *) 0)
22506 if (sizeof (ac__type_new_))
22512 rm -f conftest.$ac_objext
22513 if { (ac_try="$ac_compile"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_compile") 2>conftest.er1
22521 grep -v '^ *+' conftest.er1 >conftest.err
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && {
22526 test -z "$ac_c_werror_flag" ||
22527 test ! -s conftest.err
22528 } && test -s conftest.$ac_objext; then
22529 ac_cv_type_mode_t=yes
22531 echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22534 ac_cv_type_mode_t=no
22537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22540 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22541 if test $ac_cv_type_mode_t = yes; then
22545 cat >>confdefs.h <<_ACEOF
22551 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22552 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22553 if test "${ac_cv_type_uid_t+set}" = set; then
22554 echo $ECHO_N "(cached) $ECHO_C" >&6
22556 cat >conftest.$ac_ext <<_ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h. */
22562 #include <sys/types.h>
22565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22566 $EGREP "uid_t" >/dev/null 2>&1; then
22567 ac_cv_type_uid_t=yes
22569 ac_cv_type_uid_t=no
22574 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22575 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22576 if test $ac_cv_type_uid_t = no; then
22578 cat >>confdefs.h <<\_ACEOF
22583 cat >>confdefs.h <<\_ACEOF
22589 { echo "$as_me:$LINENO: checking for size_t" >&5
22590 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22591 if test "${ac_cv_type_size_t+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22600 $ac_includes_default
22601 typedef size_t ac__type_new_;
22605 if ((ac__type_new_ *) 0)
22607 if (sizeof (ac__type_new_))
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620 (eval "$ac_compile") 2>conftest.er1
22622 grep -v '^ *+' conftest.er1 >conftest.err
22624 cat conftest.err >&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && {
22627 test -z "$ac_c_werror_flag" ||
22628 test ! -s conftest.err
22629 } && test -s conftest.$ac_objext; then
22630 ac_cv_type_size_t=yes
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22635 ac_cv_type_size_t=no
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22641 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22642 if test $ac_cv_type_size_t = yes; then
22646 cat >>confdefs.h <<_ACEOF
22647 #define size_t unsigned int
22652 { echo "$as_me:$LINENO: checking for pid_t" >&5
22653 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22654 if test "${ac_cv_type_pid_t+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 cat >conftest.$ac_ext <<_ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663 $ac_includes_default
22664 typedef pid_t ac__type_new_;
22668 if ((ac__type_new_ *) 0)
22670 if (sizeof (ac__type_new_))
22676 rm -f conftest.$ac_objext
22677 if { (ac_try="$ac_compile"
22678 case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683 (eval "$ac_compile") 2>conftest.er1
22685 grep -v '^ *+' conftest.er1 >conftest.err
22687 cat conftest.err >&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } && {
22690 test -z "$ac_c_werror_flag" ||
22691 test ! -s conftest.err
22692 } && test -s conftest.$ac_objext; then
22693 ac_cv_type_pid_t=yes
22695 echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22698 ac_cv_type_pid_t=no
22701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22704 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22705 if test $ac_cv_type_pid_t = yes; then
22709 cat >>confdefs.h <<_ACEOF
22715 { echo "$as_me:$LINENO: checking for off_t" >&5
22716 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22717 if test "${ac_cv_type_off_t+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 cat >conftest.$ac_ext <<_ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 $ac_includes_default
22727 typedef off_t ac__type_new_;
22731 if ((ac__type_new_ *) 0)
22733 if (sizeof (ac__type_new_))
22739 rm -f conftest.$ac_objext
22740 if { (ac_try="$ac_compile"
22741 case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_compile") 2>conftest.er1
22748 grep -v '^ *+' conftest.er1 >conftest.err
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } && {
22753 test -z "$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 } && test -s conftest.$ac_objext; then
22756 ac_cv_type_off_t=yes
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ac_cv_type_off_t=no
22764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22767 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22768 if test $ac_cv_type_off_t = yes; then
22772 cat >>confdefs.h <<_ACEOF
22773 #define off_t long int
22778 { echo "$as_me:$LINENO: checking for ino_t" >&5
22779 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22780 if test "${ac_cv_type_ino_t+set}" = set; then
22781 echo $ECHO_N "(cached) $ECHO_C" >&6
22783 cat >conftest.$ac_ext <<_ACEOF
22786 cat confdefs.h >>conftest.$ac_ext
22787 cat >>conftest.$ac_ext <<_ACEOF
22788 /* end confdefs.h. */
22789 $ac_includes_default
22790 typedef ino_t ac__type_new_;
22794 if ((ac__type_new_ *) 0)
22796 if (sizeof (ac__type_new_))
22802 rm -f conftest.$ac_objext
22803 if { (ac_try="$ac_compile"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_compile") 2>conftest.er1
22811 grep -v '^ *+' conftest.er1 >conftest.err
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest.$ac_objext; then
22819 ac_cv_type_ino_t=yes
22821 echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22824 ac_cv_type_ino_t=no
22827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22830 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22831 if test $ac_cv_type_ino_t = yes; then
22835 cat >>confdefs.h <<_ACEOF
22836 #define ino_t unsigned long
22841 { echo "$as_me:$LINENO: checking for dev_t" >&5
22842 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22843 if test "${ac_cv_type_dev_t+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 cat >conftest.$ac_ext <<_ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22852 $ac_includes_default
22853 typedef dev_t ac__type_new_;
22857 if ((ac__type_new_ *) 0)
22859 if (sizeof (ac__type_new_))
22865 rm -f conftest.$ac_objext
22866 if { (ac_try="$ac_compile"
22867 case "(($ac_try" in
22868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869 *) ac_try_echo=$ac_try;;
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_compile") 2>conftest.er1
22874 grep -v '^ *+' conftest.er1 >conftest.err
22876 cat conftest.err >&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && {
22879 test -z "$ac_c_werror_flag" ||
22880 test ! -s conftest.err
22881 } && test -s conftest.$ac_objext; then
22882 ac_cv_type_dev_t=yes
22884 echo "$as_me: failed program was:" >&5
22885 sed 's/^/| /' conftest.$ac_ext >&5
22887 ac_cv_type_dev_t=no
22890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22892 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22893 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22894 if test $ac_cv_type_dev_t = yes; then
22898 cat >>confdefs.h <<_ACEOF
22899 #define dev_t unsigned long
22904 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22905 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22906 if test "${ac_cv_type_daddr_t+set}" = set; then
22907 echo $ECHO_N "(cached) $ECHO_C" >&6
22909 cat >conftest.$ac_ext <<_ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915 $ac_includes_default
22916 typedef daddr_t ac__type_new_;
22920 if ((ac__type_new_ *) 0)
22922 if (sizeof (ac__type_new_))
22928 rm -f conftest.$ac_objext
22929 if { (ac_try="$ac_compile"
22930 case "(($ac_try" in
22931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932 *) ac_try_echo=$ac_try;;
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935 (eval "$ac_compile") 2>conftest.er1
22937 grep -v '^ *+' conftest.er1 >conftest.err
22939 cat conftest.err >&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } && {
22942 test -z "$ac_c_werror_flag" ||
22943 test ! -s conftest.err
22944 } && test -s conftest.$ac_objext; then
22945 ac_cv_type_daddr_t=yes
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22950 ac_cv_type_daddr_t=no
22953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22955 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22956 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22957 if test $ac_cv_type_daddr_t = yes; then
22961 cat >>confdefs.h <<_ACEOF
22962 #define daddr_t long
22967 { echo "$as_me:$LINENO: checking for major_t" >&5
22968 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22969 if test "${ac_cv_type_major_t+set}" = set; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22972 cat >conftest.$ac_ext <<_ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h. */
22978 $ac_includes_default
22979 typedef major_t ac__type_new_;
22983 if ((ac__type_new_ *) 0)
22985 if (sizeof (ac__type_new_))
22991 rm -f conftest.$ac_objext
22992 if { (ac_try="$ac_compile"
22993 case "(($ac_try" in
22994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995 *) ac_try_echo=$ac_try;;
22997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22998 (eval "$ac_compile") 2>conftest.er1
23000 grep -v '^ *+' conftest.er1 >conftest.err
23002 cat conftest.err >&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } && {
23005 test -z "$ac_c_werror_flag" ||
23006 test ! -s conftest.err
23007 } && test -s conftest.$ac_objext; then
23008 ac_cv_type_major_t=yes
23010 echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23013 ac_cv_type_major_t=no
23016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23019 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23020 if test $ac_cv_type_major_t = yes; then
23024 cat >>confdefs.h <<_ACEOF
23025 #define major_t int
23030 { echo "$as_me:$LINENO: checking for minor_t" >&5
23031 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23032 if test "${ac_cv_type_minor_t+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23035 cat >conftest.$ac_ext <<_ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23041 $ac_includes_default
23042 typedef minor_t ac__type_new_;
23046 if ((ac__type_new_ *) 0)
23048 if (sizeof (ac__type_new_))
23054 rm -f conftest.$ac_objext
23055 if { (ac_try="$ac_compile"
23056 case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_compile") 2>conftest.er1
23063 grep -v '^ *+' conftest.er1 >conftest.err
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } && {
23068 test -z "$ac_c_werror_flag" ||
23069 test ! -s conftest.err
23070 } && test -s conftest.$ac_objext; then
23071 ac_cv_type_minor_t=yes
23073 echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23076 ac_cv_type_minor_t=no
23079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23082 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23083 if test $ac_cv_type_minor_t = yes; then
23087 cat >>confdefs.h <<_ACEOF
23088 #define minor_t int
23093 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23094 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23095 if test "${ac_cv_type_ssize_t+set}" = set; then
23096 echo $ECHO_N "(cached) $ECHO_C" >&6
23098 cat >conftest.$ac_ext <<_ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h. */
23104 $ac_includes_default
23105 typedef ssize_t ac__type_new_;
23109 if ((ac__type_new_ *) 0)
23111 if (sizeof (ac__type_new_))
23117 rm -f conftest.$ac_objext
23118 if { (ac_try="$ac_compile"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124 (eval "$ac_compile") 2>conftest.er1
23126 grep -v '^ *+' conftest.er1 >conftest.err
23128 cat conftest.err >&5
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && {
23131 test -z "$ac_c_werror_flag" ||
23132 test ! -s conftest.err
23133 } && test -s conftest.$ac_objext; then
23134 ac_cv_type_ssize_t=yes
23136 echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23139 ac_cv_type_ssize_t=no
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23145 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23146 if test $ac_cv_type_ssize_t = yes; then
23150 cat >>confdefs.h <<_ACEOF
23151 #define ssize_t int
23156 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23157 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23158 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23159 echo $ECHO_N "(cached) $ECHO_C" >&6
23161 cat >conftest.$ac_ext <<_ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h. */
23167 $ac_includes_default
23171 static struct stat ac_aggr;
23172 if (ac_aggr.st_blocks)
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182 *) ac_try_echo=$ac_try;;
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185 (eval "$ac_compile") 2>conftest.er1
23187 grep -v '^ *+' conftest.er1 >conftest.err
23189 cat conftest.err >&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); } && {
23192 test -z "$ac_c_werror_flag" ||
23193 test ! -s conftest.err
23194 } && test -s conftest.$ac_objext; then
23195 ac_cv_member_struct_stat_st_blocks=yes
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 cat >conftest.$ac_ext <<_ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h. */
23206 $ac_includes_default
23210 static struct stat ac_aggr;
23211 if (sizeof ac_aggr.st_blocks)
23217 rm -f conftest.$ac_objext
23218 if { (ac_try="$ac_compile"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_compile") 2>conftest.er1
23226 grep -v '^ *+' conftest.er1 >conftest.err
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && {
23231 test -z "$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23233 } && test -s conftest.$ac_objext; then
23234 ac_cv_member_struct_stat_st_blocks=yes
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_cv_member_struct_stat_st_blocks=no
23242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23247 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23248 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23249 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23251 cat >>confdefs.h <<_ACEOF
23252 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23256 cat >>confdefs.h <<\_ACEOF
23257 #define HAVE_ST_BLOCKS 1
23261 case " $LIBOBJS " in
23262 *" fileblocks.$ac_objext "* ) ;;
23263 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23270 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23271 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23272 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23273 echo $ECHO_N "(cached) $ECHO_C" >&6
23275 cat >conftest.$ac_ext <<_ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23281 $ac_includes_default
23285 static struct stat ac_aggr;
23286 if (ac_aggr.st_rdev)
23292 rm -f conftest.$ac_objext
23293 if { (ac_try="$ac_compile"
23294 case "(($ac_try" in
23295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296 *) ac_try_echo=$ac_try;;
23298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23299 (eval "$ac_compile") 2>conftest.er1
23301 grep -v '^ *+' conftest.er1 >conftest.err
23303 cat conftest.err >&5
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } && {
23306 test -z "$ac_c_werror_flag" ||
23307 test ! -s conftest.err
23308 } && test -s conftest.$ac_objext; then
23309 ac_cv_member_struct_stat_st_rdev=yes
23311 echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 $ac_includes_default
23324 static struct stat ac_aggr;
23325 if (sizeof ac_aggr.st_rdev)
23331 rm -f conftest.$ac_objext
23332 if { (ac_try="$ac_compile"
23333 case "(($ac_try" in
23334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23335 *) ac_try_echo=$ac_try;;
23337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23338 (eval "$ac_compile") 2>conftest.er1
23340 grep -v '^ *+' conftest.er1 >conftest.err
23342 cat conftest.err >&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } && {
23345 test -z "$ac_c_werror_flag" ||
23346 test ! -s conftest.err
23347 } && test -s conftest.$ac_objext; then
23348 ac_cv_member_struct_stat_st_rdev=yes
23350 echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23353 ac_cv_member_struct_stat_st_rdev=no
23356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23362 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23363 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23365 cat >>confdefs.h <<_ACEOF
23366 #define HAVE_STRUCT_STAT_ST_RDEV 1
23370 cat >>confdefs.h <<\_ACEOF
23371 #define HAVE_ST_RDEV 1
23377 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23378 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23379 if test "${ac_cv_struct_tm+set}" = set; then
23380 echo $ECHO_N "(cached) $ECHO_C" >&6
23382 cat >conftest.$ac_ext <<_ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h. */
23388 #include <sys/types.h>
23395 int *p = &tm.tm_sec;
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 ac_cv_struct_tm=time.h
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ac_cv_struct_tm=sys/time.h
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23429 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23430 if test $ac_cv_struct_tm = sys/time.h; then
23432 cat >>confdefs.h <<\_ACEOF
23433 #define TM_IN_SYS_TIME 1
23438 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23439 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23440 if test "${ac_cv_c_const+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23443 cat >conftest.$ac_ext <<_ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23453 /* FIXME: Include the comments suggested by Paul. */
23454 #ifndef __cplusplus
23455 /* Ultrix mips cc rejects this. */
23456 typedef int charset[2];
23458 /* SunOS 4.1.1 cc rejects this. */
23459 char const *const *pcpcc;
23461 /* NEC SVR4.0.2 mips cc rejects this. */
23462 struct point {int x, y;};
23463 static struct point const zero = {0,0};
23464 /* AIX XL C 1.02.0.0 rejects this.
23465 It does not let you subtract one const X* pointer from another in
23466 an arm of an if-expression whose if-part is not a constant
23468 const char *g = "string";
23469 pcpcc = &g + (g ? g-g : 0);
23470 /* HPUX 7.0 cc rejects these. */
23472 ppc = (char**) pcpcc;
23473 pcpcc = (char const *const *) ppc;
23474 { /* SCO 3.2v4 cc rejects this. */
23476 char const *s = 0 ? (char *) 0 : (char const *) 0;
23481 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23482 int x[] = {25, 17};
23483 const int *foo = &x[0];
23486 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23487 typedef const int *iptr;
23491 { /* AIX XL C 1.02.0.0 rejects this saying
23492 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23493 struct s { int j; const int *ap[3]; };
23494 struct s *b; b->j = 5;
23496 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23497 const int foo = 10;
23498 if (!foo) return 0;
23500 return !cs[0] && !zero.x;
23507 rm -f conftest.$ac_objext
23508 if { (ac_try="$ac_compile"
23509 case "(($ac_try" in
23510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511 *) ac_try_echo=$ac_try;;
23513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23514 (eval "$ac_compile") 2>conftest.er1
23516 grep -v '^ *+' conftest.er1 >conftest.err
23518 cat conftest.err >&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } && {
23521 test -z "$ac_c_werror_flag" ||
23522 test ! -s conftest.err
23523 } && test -s conftest.$ac_objext; then
23526 echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23535 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23536 if test $ac_cv_c_const = no; then
23538 cat >>confdefs.h <<\_ACEOF
23546 { echo "$as_me:$LINENO: checking for char" >&5
23547 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23548 if test "${ac_cv_type_char+set}" = set; then
23549 echo $ECHO_N "(cached) $ECHO_C" >&6
23551 cat >conftest.$ac_ext <<_ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 $ac_includes_default
23558 typedef char ac__type_new_;
23562 if ((ac__type_new_ *) 0)
23564 if (sizeof (ac__type_new_))
23570 rm -f conftest.$ac_objext
23571 if { (ac_try="$ac_compile"
23572 case "(($ac_try" in
23573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23574 *) ac_try_echo=$ac_try;;
23576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23577 (eval "$ac_compile") 2>conftest.er1
23579 grep -v '^ *+' conftest.er1 >conftest.err
23581 cat conftest.err >&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } && {
23584 test -z "$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 } && test -s conftest.$ac_objext; then
23587 ac_cv_type_char=yes
23589 echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23598 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23600 # The cast to long int works around a bug in the HP C Compiler
23601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23603 # This bug is HP SR number 8606223364.
23604 { echo "$as_me:$LINENO: checking size of char" >&5
23605 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23606 if test "${ac_cv_sizeof_char+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23609 if test "$cross_compiling" = yes; then
23610 # Depending upon the size, compute the lo and hi bounds.
23611 cat >conftest.$ac_ext <<_ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h. */
23617 $ac_includes_default
23618 typedef char ac__type_sizeof_;
23622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23638 grep -v '^ *+' conftest.er1 >conftest.err
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } && {
23643 test -z "$ac_c_werror_flag" ||
23644 test ! -s conftest.err
23645 } && test -s conftest.$ac_objext; then
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 $ac_includes_default
23655 typedef char ac__type_sizeof_;
23659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673 (eval "$ac_compile") 2>conftest.er1
23675 grep -v '^ *+' conftest.er1 >conftest.err
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } && {
23680 test -z "$ac_c_werror_flag" ||
23681 test ! -s conftest.err
23682 } && test -s conftest.$ac_objext; then
23683 ac_hi=$ac_mid; break
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 ac_lo=`expr $ac_mid + 1`
23689 if test $ac_lo -le $ac_mid; then
23693 ac_mid=`expr 2 '*' $ac_mid + 1`
23696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 cat >conftest.$ac_ext <<_ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h. */
23708 $ac_includes_default
23709 typedef char ac__type_sizeof_;
23713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23720 rm -f conftest.$ac_objext
23721 if { (ac_try="$ac_compile"
23722 case "(($ac_try" in
23723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724 *) ac_try_echo=$ac_try;;
23726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727 (eval "$ac_compile") 2>conftest.er1
23729 grep -v '^ *+' conftest.er1 >conftest.err
23731 cat conftest.err >&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } && {
23734 test -z "$ac_c_werror_flag" ||
23735 test ! -s conftest.err
23736 } && test -s conftest.$ac_objext; then
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23745 $ac_includes_default
23746 typedef char ac__type_sizeof_;
23750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23757 rm -f conftest.$ac_objext
23758 if { (ac_try="$ac_compile"
23759 case "(($ac_try" in
23760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761 *) ac_try_echo=$ac_try;;
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764 (eval "$ac_compile") 2>conftest.er1
23766 grep -v '^ *+' conftest.er1 >conftest.err
23768 cat conftest.err >&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } && {
23771 test -z "$ac_c_werror_flag" ||
23772 test ! -s conftest.err
23773 } && test -s conftest.$ac_objext; then
23774 ac_lo=$ac_mid; break
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23779 ac_hi=`expr '(' $ac_mid ')' - 1`
23780 if test $ac_mid -le $ac_hi; then
23784 ac_mid=`expr 2 '*' $ac_mid`
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23800 # Binary search between lo and hi bounds.
23801 while test "x$ac_lo" != "x$ac_hi"; do
23802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23803 cat >conftest.$ac_ext <<_ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h. */
23809 $ac_includes_default
23810 typedef char ac__type_sizeof_;
23814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23821 rm -f conftest.$ac_objext
23822 if { (ac_try="$ac_compile"
23823 case "(($ac_try" in
23824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825 *) ac_try_echo=$ac_try;;
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828 (eval "$ac_compile") 2>conftest.er1
23830 grep -v '^ *+' conftest.er1 >conftest.err
23832 cat conftest.err >&5
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); } && {
23835 test -z "$ac_c_werror_flag" ||
23836 test ! -s conftest.err
23837 } && test -s conftest.$ac_objext; then
23840 echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23843 ac_lo=`expr '(' $ac_mid ')' + 1`
23846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849 ?*) ac_cv_sizeof_char=$ac_lo;;
23850 '') if test "$ac_cv_type_char" = yes; then
23851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23852 See \`config.log' for more details." >&5
23853 echo "$as_me: error: cannot compute sizeof (char)
23854 See \`config.log' for more details." >&2;}
23855 { (exit 77); exit 77; }; }
23857 ac_cv_sizeof_char=0
23861 cat >conftest.$ac_ext <<_ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h. */
23867 $ac_includes_default
23868 typedef char ac__type_sizeof_;
23869 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23870 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23872 #include <stdlib.h>
23877 FILE *f = fopen ("conftest.val", "w");
23880 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23882 long int i = longval ();
23883 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23885 fprintf (f, "%ld\n", i);
23889 unsigned long int i = ulongval ();
23890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23892 fprintf (f, "%lu\n", i);
23894 return ferror (f) || fclose (f) != 0;
23900 rm -f conftest$ac_exeext
23901 if { (ac_try="$ac_link"
23902 case "(($ac_try" in
23903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23904 *) ac_try_echo=$ac_try;;
23906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23907 (eval "$ac_link") 2>&5
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23911 { (case "(($ac_try" in
23912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23913 *) ac_try_echo=$ac_try;;
23915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23916 (eval "$ac_try") 2>&5
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; }; then
23920 ac_cv_sizeof_char=`cat conftest.val`
23922 echo "$as_me: program exited with status $ac_status" >&5
23923 echo "$as_me: failed program was:" >&5
23924 sed 's/^/| /' conftest.$ac_ext >&5
23926 ( exit $ac_status )
23927 if test "$ac_cv_type_char" = yes; then
23928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23929 See \`config.log' for more details." >&5
23930 echo "$as_me: error: cannot compute sizeof (char)
23931 See \`config.log' for more details." >&2;}
23932 { (exit 77); exit 77; }; }
23934 ac_cv_sizeof_char=0
23937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23941 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23942 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23946 cat >>confdefs.h <<_ACEOF
23947 #define SIZEOF_CHAR $ac_cv_sizeof_char
23951 { echo "$as_me:$LINENO: checking for short int" >&5
23952 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23953 if test "${ac_cv_type_short_int+set}" = set; then
23954 echo $ECHO_N "(cached) $ECHO_C" >&6
23956 cat >conftest.$ac_ext <<_ACEOF
23959 cat confdefs.h >>conftest.$ac_ext
23960 cat >>conftest.$ac_ext <<_ACEOF
23961 /* end confdefs.h. */
23962 $ac_includes_default
23963 typedef short int ac__type_new_;
23967 if ((ac__type_new_ *) 0)
23969 if (sizeof (ac__type_new_))
23975 rm -f conftest.$ac_objext
23976 if { (ac_try="$ac_compile"
23977 case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982 (eval "$ac_compile") 2>conftest.er1
23984 grep -v '^ *+' conftest.er1 >conftest.err
23986 cat conftest.err >&5
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); } && {
23989 test -z "$ac_c_werror_flag" ||
23990 test ! -s conftest.err
23991 } && test -s conftest.$ac_objext; then
23992 ac_cv_type_short_int=yes
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23997 ac_cv_type_short_int=no
24000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24002 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24003 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24005 # The cast to long int works around a bug in the HP C Compiler
24006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24008 # This bug is HP SR number 8606223364.
24009 { echo "$as_me:$LINENO: checking size of short int" >&5
24010 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24011 if test "${ac_cv_sizeof_short_int+set}" = set; then
24012 echo $ECHO_N "(cached) $ECHO_C" >&6
24014 if test "$cross_compiling" = yes; then
24015 # Depending upon the size, compute the lo and hi bounds.
24016 cat >conftest.$ac_ext <<_ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24022 $ac_includes_default
24023 typedef short int ac__type_sizeof_;
24027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24034 rm -f conftest.$ac_objext
24035 if { (ac_try="$ac_compile"
24036 case "(($ac_try" in
24037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038 *) ac_try_echo=$ac_try;;
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041 (eval "$ac_compile") 2>conftest.er1
24043 grep -v '^ *+' conftest.er1 >conftest.err
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && {
24048 test -z "$ac_c_werror_flag" ||
24049 test ! -s conftest.err
24050 } && test -s conftest.$ac_objext; then
24053 cat >conftest.$ac_ext <<_ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24059 $ac_includes_default
24060 typedef short int ac__type_sizeof_;
24064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24071 rm -f conftest.$ac_objext
24072 if { (ac_try="$ac_compile"
24073 case "(($ac_try" in
24074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24075 *) ac_try_echo=$ac_try;;
24077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24078 (eval "$ac_compile") 2>conftest.er1
24080 grep -v '^ *+' conftest.er1 >conftest.err
24082 cat conftest.err >&5
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); } && {
24085 test -z "$ac_c_werror_flag" ||
24086 test ! -s conftest.err
24087 } && test -s conftest.$ac_objext; then
24088 ac_hi=$ac_mid; break
24090 echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24093 ac_lo=`expr $ac_mid + 1`
24094 if test $ac_lo -le $ac_mid; then
24098 ac_mid=`expr 2 '*' $ac_mid + 1`
24101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24104 echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.$ac_ext >&5
24107 cat >conftest.$ac_ext <<_ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h. */
24113 $ac_includes_default
24114 typedef short int ac__type_sizeof_;
24118 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24125 rm -f conftest.$ac_objext
24126 if { (ac_try="$ac_compile"
24127 case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24132 (eval "$ac_compile") 2>conftest.er1
24134 grep -v '^ *+' conftest.er1 >conftest.err
24136 cat conftest.err >&5
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); } && {
24139 test -z "$ac_c_werror_flag" ||
24140 test ! -s conftest.err
24141 } && test -s conftest.$ac_objext; then
24144 cat >conftest.$ac_ext <<_ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h. */
24150 $ac_includes_default
24151 typedef short int ac__type_sizeof_;
24155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24162 rm -f conftest.$ac_objext
24163 if { (ac_try="$ac_compile"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169 (eval "$ac_compile") 2>conftest.er1
24171 grep -v '^ *+' conftest.er1 >conftest.err
24173 cat conftest.err >&5
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); } && {
24176 test -z "$ac_c_werror_flag" ||
24177 test ! -s conftest.err
24178 } && test -s conftest.$ac_objext; then
24179 ac_lo=$ac_mid; break
24181 echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24184 ac_hi=`expr '(' $ac_mid ')' - 1`
24185 if test $ac_mid -le $ac_hi; then
24189 ac_mid=`expr 2 '*' $ac_mid`
24192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24195 echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24205 # Binary search between lo and hi bounds.
24206 while test "x$ac_lo" != "x$ac_hi"; do
24207 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24208 cat >conftest.$ac_ext <<_ACEOF
24211 cat confdefs.h >>conftest.$ac_ext
24212 cat >>conftest.$ac_ext <<_ACEOF
24213 /* end confdefs.h. */
24214 $ac_includes_default
24215 typedef short int ac__type_sizeof_;
24219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24226 rm -f conftest.$ac_objext
24227 if { (ac_try="$ac_compile"
24228 case "(($ac_try" in
24229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24230 *) ac_try_echo=$ac_try;;
24232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24233 (eval "$ac_compile") 2>conftest.er1
24235 grep -v '^ *+' conftest.er1 >conftest.err
24237 cat conftest.err >&5
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } && {
24240 test -z "$ac_c_werror_flag" ||
24241 test ! -s conftest.err
24242 } && test -s conftest.$ac_objext; then
24245 echo "$as_me: failed program was:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24248 ac_lo=`expr '(' $ac_mid ')' + 1`
24251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24254 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24255 '') if test "$ac_cv_type_short_int" = yes; then
24256 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24257 See \`config.log' for more details." >&5
24258 echo "$as_me: error: cannot compute sizeof (short int)
24259 See \`config.log' for more details." >&2;}
24260 { (exit 77); exit 77; }; }
24262 ac_cv_sizeof_short_int=0
24266 cat >conftest.$ac_ext <<_ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 $ac_includes_default
24273 typedef short int ac__type_sizeof_;
24274 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24275 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24277 #include <stdlib.h>
24282 FILE *f = fopen ("conftest.val", "w");
24285 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24287 long int i = longval ();
24288 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24290 fprintf (f, "%ld\n", i);
24294 unsigned long int i = ulongval ();
24295 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24297 fprintf (f, "%lu\n", i);
24299 return ferror (f) || fclose (f) != 0;
24305 rm -f conftest$ac_exeext
24306 if { (ac_try="$ac_link"
24307 case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312 (eval "$ac_link") 2>&5
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24316 { (case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_try") 2>&5
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; }; then
24325 ac_cv_sizeof_short_int=`cat conftest.val`
24327 echo "$as_me: program exited with status $ac_status" >&5
24328 echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24331 ( exit $ac_status )
24332 if test "$ac_cv_type_short_int" = yes; then
24333 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24334 See \`config.log' for more details." >&5
24335 echo "$as_me: error: cannot compute sizeof (short int)
24336 See \`config.log' for more details." >&2;}
24337 { (exit 77); exit 77; }; }
24339 ac_cv_sizeof_short_int=0
24342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24346 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24347 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24351 cat >>confdefs.h <<_ACEOF
24352 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24356 { echo "$as_me:$LINENO: checking for int" >&5
24357 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24358 if test "${ac_cv_type_int+set}" = set; then
24359 echo $ECHO_N "(cached) $ECHO_C" >&6
24361 cat >conftest.$ac_ext <<_ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24367 $ac_includes_default
24368 typedef int ac__type_new_;
24372 if ((ac__type_new_ *) 0)
24374 if (sizeof (ac__type_new_))
24380 rm -f conftest.$ac_objext
24381 if { (ac_try="$ac_compile"
24382 case "(($ac_try" in
24383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384 *) ac_try_echo=$ac_try;;
24386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24387 (eval "$ac_compile") 2>conftest.er1
24389 grep -v '^ *+' conftest.er1 >conftest.err
24391 cat conftest.err >&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); } && {
24394 test -z "$ac_c_werror_flag" ||
24395 test ! -s conftest.err
24396 } && test -s conftest.$ac_objext; then
24399 echo "$as_me: failed program was:" >&5
24400 sed 's/^/| /' conftest.$ac_ext >&5
24405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24407 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24408 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24410 # The cast to long int works around a bug in the HP C Compiler
24411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24413 # This bug is HP SR number 8606223364.
24414 { echo "$as_me:$LINENO: checking size of int" >&5
24415 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24416 if test "${ac_cv_sizeof_int+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24419 if test "$cross_compiling" = yes; then
24420 # Depending upon the size, compute the lo and hi bounds.
24421 cat >conftest.$ac_ext <<_ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 $ac_includes_default
24428 typedef int ac__type_sizeof_;
24432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24439 rm -f conftest.$ac_objext
24440 if { (ac_try="$ac_compile"
24441 case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_compile") 2>conftest.er1
24448 grep -v '^ *+' conftest.er1 >conftest.err
24450 cat conftest.err >&5
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest.$ac_objext; then
24458 cat >conftest.$ac_ext <<_ACEOF
24461 cat confdefs.h >>conftest.$ac_ext
24462 cat >>conftest.$ac_ext <<_ACEOF
24463 /* end confdefs.h. */
24464 $ac_includes_default
24465 typedef int ac__type_sizeof_;
24469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24476 rm -f conftest.$ac_objext
24477 if { (ac_try="$ac_compile"
24478 case "(($ac_try" in
24479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480 *) ac_try_echo=$ac_try;;
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483 (eval "$ac_compile") 2>conftest.er1
24485 grep -v '^ *+' conftest.er1 >conftest.err
24487 cat conftest.err >&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); } && {
24490 test -z "$ac_c_werror_flag" ||
24491 test ! -s conftest.err
24492 } && test -s conftest.$ac_objext; then
24493 ac_hi=$ac_mid; break
24495 echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24498 ac_lo=`expr $ac_mid + 1`
24499 if test $ac_lo -le $ac_mid; then
24503 ac_mid=`expr 2 '*' $ac_mid + 1`
24506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24509 echo "$as_me: failed program was:" >&5
24510 sed 's/^/| /' conftest.$ac_ext >&5
24512 cat >conftest.$ac_ext <<_ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 $ac_includes_default
24519 typedef int ac__type_sizeof_;
24523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537 (eval "$ac_compile") 2>conftest.er1
24539 grep -v '^ *+' conftest.er1 >conftest.err
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } && {
24544 test -z "$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 } && test -s conftest.$ac_objext; then
24549 cat >conftest.$ac_ext <<_ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555 $ac_includes_default
24556 typedef int ac__type_sizeof_;
24560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24567 rm -f conftest.$ac_objext
24568 if { (ac_try="$ac_compile"
24569 case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574 (eval "$ac_compile") 2>conftest.er1
24576 grep -v '^ *+' conftest.er1 >conftest.err
24578 cat conftest.err >&5
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); } && {
24581 test -z "$ac_c_werror_flag" ||
24582 test ! -s conftest.err
24583 } && test -s conftest.$ac_objext; then
24584 ac_lo=$ac_mid; break
24586 echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 ac_hi=`expr '(' $ac_mid ')' - 1`
24590 if test $ac_mid -le $ac_hi; then
24594 ac_mid=`expr 2 '*' $ac_mid`
24597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24600 echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24610 # Binary search between lo and hi bounds.
24611 while test "x$ac_lo" != "x$ac_hi"; do
24612 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24613 cat >conftest.$ac_ext <<_ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h. */
24619 $ac_includes_default
24620 typedef int ac__type_sizeof_;
24624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24631 rm -f conftest.$ac_objext
24632 if { (ac_try="$ac_compile"
24633 case "(($ac_try" in
24634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635 *) ac_try_echo=$ac_try;;
24637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24638 (eval "$ac_compile") 2>conftest.er1
24640 grep -v '^ *+' conftest.er1 >conftest.err
24642 cat conftest.err >&5
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); } && {
24645 test -z "$ac_c_werror_flag" ||
24646 test ! -s conftest.err
24647 } && test -s conftest.$ac_objext; then
24650 echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24653 ac_lo=`expr '(' $ac_mid ')' + 1`
24656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24659 ?*) ac_cv_sizeof_int=$ac_lo;;
24660 '') if test "$ac_cv_type_int" = yes; then
24661 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24662 See \`config.log' for more details." >&5
24663 echo "$as_me: error: cannot compute sizeof (int)
24664 See \`config.log' for more details." >&2;}
24665 { (exit 77); exit 77; }; }
24671 cat >conftest.$ac_ext <<_ACEOF
24674 cat confdefs.h >>conftest.$ac_ext
24675 cat >>conftest.$ac_ext <<_ACEOF
24676 /* end confdefs.h. */
24677 $ac_includes_default
24678 typedef int ac__type_sizeof_;
24679 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24680 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24682 #include <stdlib.h>
24687 FILE *f = fopen ("conftest.val", "w");
24690 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24692 long int i = longval ();
24693 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24695 fprintf (f, "%ld\n", i);
24699 unsigned long int i = ulongval ();
24700 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24702 fprintf (f, "%lu\n", i);
24704 return ferror (f) || fclose (f) != 0;
24710 rm -f conftest$ac_exeext
24711 if { (ac_try="$ac_link"
24712 case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_link") 2>&5
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24721 { (case "(($ac_try" in
24722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723 *) ac_try_echo=$ac_try;;
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726 (eval "$ac_try") 2>&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); }; }; then
24730 ac_cv_sizeof_int=`cat conftest.val`
24732 echo "$as_me: program exited with status $ac_status" >&5
24733 echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24736 ( exit $ac_status )
24737 if test "$ac_cv_type_int" = yes; then
24738 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24739 See \`config.log' for more details." >&5
24740 echo "$as_me: error: cannot compute sizeof (int)
24741 See \`config.log' for more details." >&2;}
24742 { (exit 77); exit 77; }; }
24747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24751 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24752 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24756 cat >>confdefs.h <<_ACEOF
24757 #define SIZEOF_INT $ac_cv_sizeof_int
24761 { echo "$as_me:$LINENO: checking for long int" >&5
24762 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24763 if test "${ac_cv_type_long_int+set}" = set; then
24764 echo $ECHO_N "(cached) $ECHO_C" >&6
24766 cat >conftest.$ac_ext <<_ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h. */
24772 $ac_includes_default
24773 typedef long int ac__type_new_;
24777 if ((ac__type_new_ *) 0)
24779 if (sizeof (ac__type_new_))
24785 rm -f conftest.$ac_objext
24786 if { (ac_try="$ac_compile"
24787 case "(($ac_try" in
24788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24789 *) ac_try_echo=$ac_try;;
24791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24792 (eval "$ac_compile") 2>conftest.er1
24794 grep -v '^ *+' conftest.er1 >conftest.err
24796 cat conftest.err >&5
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); } && {
24799 test -z "$ac_c_werror_flag" ||
24800 test ! -s conftest.err
24801 } && test -s conftest.$ac_objext; then
24802 ac_cv_type_long_int=yes
24804 echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24807 ac_cv_type_long_int=no
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24812 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24813 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24815 # The cast to long int works around a bug in the HP C Compiler
24816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24818 # This bug is HP SR number 8606223364.
24819 { echo "$as_me:$LINENO: checking size of long int" >&5
24820 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24821 if test "${ac_cv_sizeof_long_int+set}" = set; then
24822 echo $ECHO_N "(cached) $ECHO_C" >&6
24824 if test "$cross_compiling" = yes; then
24825 # Depending upon the size, compute the lo and hi bounds.
24826 cat >conftest.$ac_ext <<_ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 $ac_includes_default
24833 typedef long int ac__type_sizeof_;
24837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24844 rm -f conftest.$ac_objext
24845 if { (ac_try="$ac_compile"
24846 case "(($ac_try" in
24847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848 *) ac_try_echo=$ac_try;;
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851 (eval "$ac_compile") 2>conftest.er1
24853 grep -v '^ *+' conftest.er1 >conftest.err
24855 cat conftest.err >&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } && {
24858 test -z "$ac_c_werror_flag" ||
24859 test ! -s conftest.err
24860 } && test -s conftest.$ac_objext; then
24863 cat >conftest.$ac_ext <<_ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 $ac_includes_default
24870 typedef long int ac__type_sizeof_;
24874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24881 rm -f conftest.$ac_objext
24882 if { (ac_try="$ac_compile"
24883 case "(($ac_try" in
24884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885 *) ac_try_echo=$ac_try;;
24887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888 (eval "$ac_compile") 2>conftest.er1
24890 grep -v '^ *+' conftest.er1 >conftest.err
24892 cat conftest.err >&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); } && {
24895 test -z "$ac_c_werror_flag" ||
24896 test ! -s conftest.err
24897 } && test -s conftest.$ac_objext; then
24898 ac_hi=$ac_mid; break
24900 echo "$as_me: failed program was:" >&5
24901 sed 's/^/| /' conftest.$ac_ext >&5
24903 ac_lo=`expr $ac_mid + 1`
24904 if test $ac_lo -le $ac_mid; then
24908 ac_mid=`expr 2 '*' $ac_mid + 1`
24911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24914 echo "$as_me: failed program was:" >&5
24915 sed 's/^/| /' conftest.$ac_ext >&5
24917 cat >conftest.$ac_ext <<_ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h. */
24923 $ac_includes_default
24924 typedef long int ac__type_sizeof_;
24928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24935 rm -f conftest.$ac_objext
24936 if { (ac_try="$ac_compile"
24937 case "(($ac_try" in
24938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939 *) ac_try_echo=$ac_try;;
24941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942 (eval "$ac_compile") 2>conftest.er1
24944 grep -v '^ *+' conftest.er1 >conftest.err
24946 cat conftest.err >&5
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } && {
24949 test -z "$ac_c_werror_flag" ||
24950 test ! -s conftest.err
24951 } && test -s conftest.$ac_objext; then
24954 cat >conftest.$ac_ext <<_ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h. */
24960 $ac_includes_default
24961 typedef long int ac__type_sizeof_;
24965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24972 rm -f conftest.$ac_objext
24973 if { (ac_try="$ac_compile"
24974 case "(($ac_try" in
24975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976 *) ac_try_echo=$ac_try;;
24978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979 (eval "$ac_compile") 2>conftest.er1
24981 grep -v '^ *+' conftest.er1 >conftest.err
24983 cat conftest.err >&5
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); } && {
24986 test -z "$ac_c_werror_flag" ||
24987 test ! -s conftest.err
24988 } && test -s conftest.$ac_objext; then
24989 ac_lo=$ac_mid; break
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24994 ac_hi=`expr '(' $ac_mid ')' - 1`
24995 if test $ac_mid -le $ac_hi; then
24999 ac_mid=`expr 2 '*' $ac_mid`
25002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25015 # Binary search between lo and hi bounds.
25016 while test "x$ac_lo" != "x$ac_hi"; do
25017 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25018 cat >conftest.$ac_ext <<_ACEOF
25021 cat confdefs.h >>conftest.$ac_ext
25022 cat >>conftest.$ac_ext <<_ACEOF
25023 /* end confdefs.h. */
25024 $ac_includes_default
25025 typedef long int ac__type_sizeof_;
25029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25036 rm -f conftest.$ac_objext
25037 if { (ac_try="$ac_compile"
25038 case "(($ac_try" in
25039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040 *) ac_try_echo=$ac_try;;
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043 (eval "$ac_compile") 2>conftest.er1
25045 grep -v '^ *+' conftest.er1 >conftest.err
25047 cat conftest.err >&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); } && {
25050 test -z "$ac_c_werror_flag" ||
25051 test ! -s conftest.err
25052 } && test -s conftest.$ac_objext; then
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25058 ac_lo=`expr '(' $ac_mid ')' + 1`
25061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25065 '') if test "$ac_cv_type_long_int" = yes; then
25066 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25067 See \`config.log' for more details." >&5
25068 echo "$as_me: error: cannot compute sizeof (long int)
25069 See \`config.log' for more details." >&2;}
25070 { (exit 77); exit 77; }; }
25072 ac_cv_sizeof_long_int=0
25076 cat >conftest.$ac_ext <<_ACEOF
25079 cat confdefs.h >>conftest.$ac_ext
25080 cat >>conftest.$ac_ext <<_ACEOF
25081 /* end confdefs.h. */
25082 $ac_includes_default
25083 typedef long int ac__type_sizeof_;
25084 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25085 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25087 #include <stdlib.h>
25092 FILE *f = fopen ("conftest.val", "w");
25095 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25097 long int i = longval ();
25098 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25100 fprintf (f, "%ld\n", i);
25104 unsigned long int i = ulongval ();
25105 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25107 fprintf (f, "%lu\n", i);
25109 return ferror (f) || fclose (f) != 0;
25115 rm -f conftest$ac_exeext
25116 if { (ac_try="$ac_link"
25117 case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122 (eval "$ac_link") 2>&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25126 { (case "(($ac_try" in
25127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25128 *) ac_try_echo=$ac_try;;
25130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25131 (eval "$ac_try") 2>&5
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); }; }; then
25135 ac_cv_sizeof_long_int=`cat conftest.val`
25137 echo "$as_me: program exited with status $ac_status" >&5
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 ( exit $ac_status )
25142 if test "$ac_cv_type_long_int" = yes; then
25143 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25144 See \`config.log' for more details." >&5
25145 echo "$as_me: error: cannot compute sizeof (long int)
25146 See \`config.log' for more details." >&2;}
25147 { (exit 77); exit 77; }; }
25149 ac_cv_sizeof_long_int=0
25152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25156 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25157 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25161 cat >>confdefs.h <<_ACEOF
25162 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25166 { echo "$as_me:$LINENO: checking for long long int" >&5
25167 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25168 if test "${ac_cv_type_long_long_int+set}" = set; then
25169 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 cat >conftest.$ac_ext <<_ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25177 $ac_includes_default
25178 typedef long long int ac__type_new_;
25182 if ((ac__type_new_ *) 0)
25184 if (sizeof (ac__type_new_))
25190 rm -f conftest.$ac_objext
25191 if { (ac_try="$ac_compile"
25192 case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197 (eval "$ac_compile") 2>conftest.er1
25199 grep -v '^ *+' conftest.er1 >conftest.err
25201 cat conftest.err >&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } && {
25204 test -z "$ac_c_werror_flag" ||
25205 test ! -s conftest.err
25206 } && test -s conftest.$ac_objext; then
25207 ac_cv_type_long_long_int=yes
25209 echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25212 ac_cv_type_long_long_int=no
25215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25217 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25218 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25220 # The cast to long int works around a bug in the HP C Compiler
25221 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25222 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25223 # This bug is HP SR number 8606223364.
25224 { echo "$as_me:$LINENO: checking size of long long int" >&5
25225 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25226 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25227 echo $ECHO_N "(cached) $ECHO_C" >&6
25229 if test "$cross_compiling" = yes; then
25230 # Depending upon the size, compute the lo and hi bounds.
25231 cat >conftest.$ac_ext <<_ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h. */
25237 $ac_includes_default
25238 typedef long long int ac__type_sizeof_;
25242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25249 rm -f conftest.$ac_objext
25250 if { (ac_try="$ac_compile"
25251 case "(($ac_try" in
25252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25253 *) ac_try_echo=$ac_try;;
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256 (eval "$ac_compile") 2>conftest.er1
25258 grep -v '^ *+' conftest.er1 >conftest.err
25260 cat conftest.err >&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); } && {
25263 test -z "$ac_c_werror_flag" ||
25264 test ! -s conftest.err
25265 } && test -s conftest.$ac_objext; then
25268 cat >conftest.$ac_ext <<_ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h. */
25274 $ac_includes_default
25275 typedef long long int ac__type_sizeof_;
25279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25286 rm -f conftest.$ac_objext
25287 if { (ac_try="$ac_compile"
25288 case "(($ac_try" in
25289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25290 *) ac_try_echo=$ac_try;;
25292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25293 (eval "$ac_compile") 2>conftest.er1
25295 grep -v '^ *+' conftest.er1 >conftest.err
25297 cat conftest.err >&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); } && {
25300 test -z "$ac_c_werror_flag" ||
25301 test ! -s conftest.err
25302 } && test -s conftest.$ac_objext; then
25303 ac_hi=$ac_mid; break
25305 echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25308 ac_lo=`expr $ac_mid + 1`
25309 if test $ac_lo -le $ac_mid; then
25313 ac_mid=`expr 2 '*' $ac_mid + 1`
25316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25319 echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25322 cat >conftest.$ac_ext <<_ACEOF
25325 cat confdefs.h >>conftest.$ac_ext
25326 cat >>conftest.$ac_ext <<_ACEOF
25327 /* end confdefs.h. */
25328 $ac_includes_default
25329 typedef long long int ac__type_sizeof_;
25333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25340 rm -f conftest.$ac_objext
25341 if { (ac_try="$ac_compile"
25342 case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347 (eval "$ac_compile") 2>conftest.er1
25349 grep -v '^ *+' conftest.er1 >conftest.err
25351 cat conftest.err >&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); } && {
25354 test -z "$ac_c_werror_flag" ||
25355 test ! -s conftest.err
25356 } && test -s conftest.$ac_objext; then
25359 cat >conftest.$ac_ext <<_ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25365 $ac_includes_default
25366 typedef long long int ac__type_sizeof_;
25370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25377 rm -f conftest.$ac_objext
25378 if { (ac_try="$ac_compile"
25379 case "(($ac_try" in
25380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381 *) ac_try_echo=$ac_try;;
25383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25384 (eval "$ac_compile") 2>conftest.er1
25386 grep -v '^ *+' conftest.er1 >conftest.err
25388 cat conftest.err >&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); } && {
25391 test -z "$ac_c_werror_flag" ||
25392 test ! -s conftest.err
25393 } && test -s conftest.$ac_objext; then
25394 ac_lo=$ac_mid; break
25396 echo "$as_me: failed program was:" >&5
25397 sed 's/^/| /' conftest.$ac_ext >&5
25399 ac_hi=`expr '(' $ac_mid ')' - 1`
25400 if test $ac_mid -le $ac_hi; then
25404 ac_mid=`expr 2 '*' $ac_mid`
25407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25410 echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25420 # Binary search between lo and hi bounds.
25421 while test "x$ac_lo" != "x$ac_hi"; do
25422 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25423 cat >conftest.$ac_ext <<_ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h. */
25429 $ac_includes_default
25430 typedef long long int ac__type_sizeof_;
25434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25441 rm -f conftest.$ac_objext
25442 if { (ac_try="$ac_compile"
25443 case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448 (eval "$ac_compile") 2>conftest.er1
25450 grep -v '^ *+' conftest.er1 >conftest.err
25452 cat conftest.err >&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } && {
25455 test -z "$ac_c_werror_flag" ||
25456 test ! -s conftest.err
25457 } && test -s conftest.$ac_objext; then
25460 echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25463 ac_lo=`expr '(' $ac_mid ')' + 1`
25466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25470 '') if test "$ac_cv_type_long_long_int" = yes; then
25471 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25472 See \`config.log' for more details." >&5
25473 echo "$as_me: error: cannot compute sizeof (long long int)
25474 See \`config.log' for more details." >&2;}
25475 { (exit 77); exit 77; }; }
25477 ac_cv_sizeof_long_long_int=0
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 $ac_includes_default
25488 typedef long long int ac__type_sizeof_;
25489 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25490 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25492 #include <stdlib.h>
25497 FILE *f = fopen ("conftest.val", "w");
25500 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25502 long int i = longval ();
25503 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25505 fprintf (f, "%ld\n", i);
25509 unsigned long int i = ulongval ();
25510 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25512 fprintf (f, "%lu\n", i);
25514 return ferror (f) || fclose (f) != 0;
25520 rm -f conftest$ac_exeext
25521 if { (ac_try="$ac_link"
25522 case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527 (eval "$ac_link") 2>&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25531 { (case "(($ac_try" in
25532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25533 *) ac_try_echo=$ac_try;;
25535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25536 (eval "$ac_try") 2>&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; }; then
25540 ac_cv_sizeof_long_long_int=`cat conftest.val`
25542 echo "$as_me: program exited with status $ac_status" >&5
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 ( exit $ac_status )
25547 if test "$ac_cv_type_long_long_int" = yes; then
25548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25549 See \`config.log' for more details." >&5
25550 echo "$as_me: error: cannot compute sizeof (long long int)
25551 See \`config.log' for more details." >&2;}
25552 { (exit 77); exit 77; }; }
25554 ac_cv_sizeof_long_long_int=0
25557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25561 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25562 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25566 cat >>confdefs.h <<_ACEOF
25567 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25571 { echo "$as_me:$LINENO: checking for int *" >&5
25572 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25573 if test "${ac_cv_type_int_p+set}" = set; then
25574 echo $ECHO_N "(cached) $ECHO_C" >&6
25576 cat >conftest.$ac_ext <<_ACEOF
25579 cat confdefs.h >>conftest.$ac_ext
25580 cat >>conftest.$ac_ext <<_ACEOF
25581 /* end confdefs.h. */
25582 $ac_includes_default
25583 typedef int * ac__type_new_;
25587 if ((ac__type_new_ *) 0)
25589 if (sizeof (ac__type_new_))
25595 rm -f conftest.$ac_objext
25596 if { (ac_try="$ac_compile"
25597 case "(($ac_try" in
25598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599 *) ac_try_echo=$ac_try;;
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602 (eval "$ac_compile") 2>conftest.er1
25604 grep -v '^ *+' conftest.er1 >conftest.err
25606 cat conftest.err >&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); } && {
25609 test -z "$ac_c_werror_flag" ||
25610 test ! -s conftest.err
25611 } && test -s conftest.$ac_objext; then
25612 ac_cv_type_int_p=yes
25614 echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25617 ac_cv_type_int_p=no
25620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25622 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25623 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25625 # The cast to long int works around a bug in the HP C Compiler
25626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25628 # This bug is HP SR number 8606223364.
25629 { echo "$as_me:$LINENO: checking size of int *" >&5
25630 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25631 if test "${ac_cv_sizeof_int_p+set}" = set; then
25632 echo $ECHO_N "(cached) $ECHO_C" >&6
25634 if test "$cross_compiling" = yes; then
25635 # Depending upon the size, compute the lo and hi bounds.
25636 cat >conftest.$ac_ext <<_ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h. */
25642 $ac_includes_default
25643 typedef int * ac__type_sizeof_;
25647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25654 rm -f conftest.$ac_objext
25655 if { (ac_try="$ac_compile"
25656 case "(($ac_try" in
25657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25658 *) ac_try_echo=$ac_try;;
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661 (eval "$ac_compile") 2>conftest.er1
25663 grep -v '^ *+' conftest.er1 >conftest.err
25665 cat conftest.err >&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); } && {
25668 test -z "$ac_c_werror_flag" ||
25669 test ! -s conftest.err
25670 } && test -s conftest.$ac_objext; then
25673 cat >conftest.$ac_ext <<_ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h. */
25679 $ac_includes_default
25680 typedef int * ac__type_sizeof_;
25684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25691 rm -f conftest.$ac_objext
25692 if { (ac_try="$ac_compile"
25693 case "(($ac_try" in
25694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25695 *) ac_try_echo=$ac_try;;
25697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25698 (eval "$ac_compile") 2>conftest.er1
25700 grep -v '^ *+' conftest.er1 >conftest.err
25702 cat conftest.err >&5
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); } && {
25705 test -z "$ac_c_werror_flag" ||
25706 test ! -s conftest.err
25707 } && test -s conftest.$ac_objext; then
25708 ac_hi=$ac_mid; break
25710 echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25713 ac_lo=`expr $ac_mid + 1`
25714 if test $ac_lo -le $ac_mid; then
25718 ac_mid=`expr 2 '*' $ac_mid + 1`
25721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724 echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25727 cat >conftest.$ac_ext <<_ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25733 $ac_includes_default
25734 typedef int * ac__type_sizeof_;
25738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25745 rm -f conftest.$ac_objext
25746 if { (ac_try="$ac_compile"
25747 case "(($ac_try" in
25748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749 *) ac_try_echo=$ac_try;;
25751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25752 (eval "$ac_compile") 2>conftest.er1
25754 grep -v '^ *+' conftest.er1 >conftest.err
25756 cat conftest.err >&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); } && {
25759 test -z "$ac_c_werror_flag" ||
25760 test ! -s conftest.err
25761 } && test -s conftest.$ac_objext; then
25764 cat >conftest.$ac_ext <<_ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h. */
25770 $ac_includes_default
25771 typedef int * ac__type_sizeof_;
25775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25782 rm -f conftest.$ac_objext
25783 if { (ac_try="$ac_compile"
25784 case "(($ac_try" in
25785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25786 *) ac_try_echo=$ac_try;;
25788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25789 (eval "$ac_compile") 2>conftest.er1
25791 grep -v '^ *+' conftest.er1 >conftest.err
25793 cat conftest.err >&5
25794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795 (exit $ac_status); } && {
25796 test -z "$ac_c_werror_flag" ||
25797 test ! -s conftest.err
25798 } && test -s conftest.$ac_objext; then
25799 ac_lo=$ac_mid; break
25801 echo "$as_me: failed program was:" >&5
25802 sed 's/^/| /' conftest.$ac_ext >&5
25804 ac_hi=`expr '(' $ac_mid ')' - 1`
25805 if test $ac_mid -le $ac_hi; then
25809 ac_mid=`expr 2 '*' $ac_mid`
25812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25815 echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25825 # Binary search between lo and hi bounds.
25826 while test "x$ac_lo" != "x$ac_hi"; do
25827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25828 cat >conftest.$ac_ext <<_ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25834 $ac_includes_default
25835 typedef int * ac__type_sizeof_;
25839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25846 rm -f conftest.$ac_objext
25847 if { (ac_try="$ac_compile"
25848 case "(($ac_try" in
25849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850 *) ac_try_echo=$ac_try;;
25852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25853 (eval "$ac_compile") 2>conftest.er1
25855 grep -v '^ *+' conftest.er1 >conftest.err
25857 cat conftest.err >&5
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); } && {
25860 test -z "$ac_c_werror_flag" ||
25861 test ! -s conftest.err
25862 } && test -s conftest.$ac_objext; then
25865 echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25868 ac_lo=`expr '(' $ac_mid ')' + 1`
25871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25874 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25875 '') if test "$ac_cv_type_int_p" = yes; then
25876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25877 See \`config.log' for more details." >&5
25878 echo "$as_me: error: cannot compute sizeof (int *)
25879 See \`config.log' for more details." >&2;}
25880 { (exit 77); exit 77; }; }
25882 ac_cv_sizeof_int_p=0
25886 cat >conftest.$ac_ext <<_ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h. */
25892 $ac_includes_default
25893 typedef int * ac__type_sizeof_;
25894 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25895 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25897 #include <stdlib.h>
25902 FILE *f = fopen ("conftest.val", "w");
25905 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25907 long int i = longval ();
25908 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25910 fprintf (f, "%ld\n", i);
25914 unsigned long int i = ulongval ();
25915 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25917 fprintf (f, "%lu\n", i);
25919 return ferror (f) || fclose (f) != 0;
25925 rm -f conftest$ac_exeext
25926 if { (ac_try="$ac_link"
25927 case "(($ac_try" in
25928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929 *) ac_try_echo=$ac_try;;
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932 (eval "$ac_link") 2>&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25936 { (case "(($ac_try" in
25937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938 *) ac_try_echo=$ac_try;;
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941 (eval "$ac_try") 2>&5
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; }; then
25945 ac_cv_sizeof_int_p=`cat conftest.val`
25947 echo "$as_me: program exited with status $ac_status" >&5
25948 echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25951 ( exit $ac_status )
25952 if test "$ac_cv_type_int_p" = yes; then
25953 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25954 See \`config.log' for more details." >&5
25955 echo "$as_me: error: cannot compute sizeof (int *)
25956 See \`config.log' for more details." >&2;}
25957 { (exit 77); exit 77; }; }
25959 ac_cv_sizeof_int_p=0
25962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25966 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25967 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25971 cat >>confdefs.h <<_ACEOF
25972 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25977 # Check for sys/types.h types
25978 { echo "$as_me:$LINENO: checking for u_int type" >&5
25979 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25980 if test "${ac_cv_have_u_int+set}" = set; then
25981 echo $ECHO_N "(cached) $ECHO_C" >&6
25984 cat >conftest.$ac_ext <<_ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h. */
25990 #include <sys/types.h>
25999 rm -f conftest.$ac_objext
26000 if { (ac_try="$ac_compile"
26001 case "(($ac_try" in
26002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003 *) ac_try_echo=$ac_try;;
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006 (eval "$ac_compile") 2>conftest.er1
26008 grep -v '^ *+' conftest.er1 >conftest.err
26010 cat conftest.err >&5
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } && {
26013 test -z "$ac_c_werror_flag" ||
26014 test ! -s conftest.err
26015 } && test -s conftest.$ac_objext; then
26016 ac_cv_have_u_int="yes"
26018 echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26021 ac_cv_have_u_int="no"
26025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26029 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26030 if test "x$ac_cv_have_u_int" = "xyes" ; then
26031 cat >>confdefs.h <<\_ACEOF
26032 #define HAVE_U_INT 1
26038 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26039 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26040 if test "${ac_cv_have_intmax_t+set}" = set; then
26041 echo $ECHO_N "(cached) $ECHO_C" >&6
26044 cat >conftest.$ac_ext <<_ACEOF
26047 cat confdefs.h >>conftest.$ac_ext
26048 cat >>conftest.$ac_ext <<_ACEOF
26049 /* end confdefs.h. */
26050 #include <sys/types.h>
26059 rm -f conftest.$ac_objext
26060 if { (ac_try="$ac_compile"
26061 case "(($ac_try" in
26062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26063 *) ac_try_echo=$ac_try;;
26065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26066 (eval "$ac_compile") 2>conftest.er1
26068 grep -v '^ *+' conftest.er1 >conftest.err
26070 cat conftest.err >&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); } && {
26073 test -z "$ac_c_werror_flag" ||
26074 test ! -s conftest.err
26075 } && test -s conftest.$ac_objext; then
26076 ac_cv_have_intmax_t="yes"
26078 echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26082 cat >conftest.$ac_ext <<_ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h. */
26088 #include <stdint.h>
26097 rm -f conftest.$ac_objext
26098 if { (ac_try="$ac_compile"
26099 case "(($ac_try" in
26100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26104 (eval "$ac_compile") 2>conftest.er1
26106 grep -v '^ *+' conftest.er1 >conftest.err
26108 cat conftest.err >&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); } && {
26111 test -z "$ac_c_werror_flag" ||
26112 test ! -s conftest.err
26113 } && test -s conftest.$ac_objext; then
26114 ac_cv_have_intmax_t="yes"
26116 echo "$as_me: failed program was:" >&5
26117 sed 's/^/| /' conftest.$ac_ext >&5
26119 ac_cv_have_intmax_t="no"
26123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26132 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26133 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26134 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26135 cat >>confdefs.h <<\_ACEOF
26136 #define HAVE_INTMAX_T 1
26143 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26144 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26145 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26146 echo $ECHO_N "(cached) $ECHO_C" >&6
26149 cat >conftest.$ac_ext <<_ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h. */
26155 #include <sys/types.h>
26159 u_intmax_t a; a = 1;
26164 rm -f conftest.$ac_objext
26165 if { (ac_try="$ac_compile"
26166 case "(($ac_try" in
26167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168 *) ac_try_echo=$ac_try;;
26170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26171 (eval "$ac_compile") 2>conftest.er1
26173 grep -v '^ *+' conftest.er1 >conftest.err
26175 cat conftest.err >&5
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); } && {
26178 test -z "$ac_c_werror_flag" ||
26179 test ! -s conftest.err
26180 } && test -s conftest.$ac_objext; then
26181 ac_cv_have_u_intmax_t="yes"
26183 echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26187 cat >conftest.$ac_ext <<_ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h. */
26193 #include <stdint.h>
26197 u_intmax_t a; a = 1;
26202 rm -f conftest.$ac_objext
26203 if { (ac_try="$ac_compile"
26204 case "(($ac_try" in
26205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206 *) ac_try_echo=$ac_try;;
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209 (eval "$ac_compile") 2>conftest.er1
26211 grep -v '^ *+' conftest.er1 >conftest.err
26213 cat conftest.err >&5
26214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215 (exit $ac_status); } && {
26216 test -z "$ac_c_werror_flag" ||
26217 test ! -s conftest.err
26218 } && test -s conftest.$ac_objext; then
26219 ac_cv_have_u_intmax_t="yes"
26221 echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.$ac_ext >&5
26224 ac_cv_have_u_intmax_t="no"
26228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26236 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26237 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26238 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26239 cat >>confdefs.h <<\_ACEOF
26240 #define HAVE_U_INTMAX_T 1
26247 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26248 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26249 if test "${ac_cv_have_intxx_t+set}" = set; then
26250 echo $ECHO_N "(cached) $ECHO_C" >&6
26253 cat >conftest.$ac_ext <<_ACEOF
26256 cat confdefs.h >>conftest.$ac_ext
26257 cat >>conftest.$ac_ext <<_ACEOF
26258 /* end confdefs.h. */
26259 #include <sys/types.h>
26263 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26268 rm -f conftest.$ac_objext
26269 if { (ac_try="$ac_compile"
26270 case "(($ac_try" in
26271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272 *) ac_try_echo=$ac_try;;
26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275 (eval "$ac_compile") 2>conftest.er1
26277 grep -v '^ *+' conftest.er1 >conftest.err
26279 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } && {
26282 test -z "$ac_c_werror_flag" ||
26283 test ! -s conftest.err
26284 } && test -s conftest.$ac_objext; then
26285 ac_cv_have_intxx_t="yes"
26287 echo "$as_me: failed program was:" >&5
26288 sed 's/^/| /' conftest.$ac_ext >&5
26290 ac_cv_have_intxx_t="no"
26294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26297 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26298 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26299 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26300 cat >>confdefs.h <<\_ACEOF
26301 #define HAVE_INTXX_T 1
26307 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26308 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26309 if test "${ac_cv_have_int64_t+set}" = set; then
26310 echo $ECHO_N "(cached) $ECHO_C" >&6
26313 cat >conftest.$ac_ext <<_ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h. */
26319 #include <sys/types.h>
26328 rm -f conftest.$ac_objext
26329 if { (ac_try="$ac_compile"
26330 case "(($ac_try" in
26331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332 *) ac_try_echo=$ac_try;;
26334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335 (eval "$ac_compile") 2>conftest.er1
26337 grep -v '^ *+' conftest.er1 >conftest.err
26339 cat conftest.err >&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); } && {
26342 test -z "$ac_c_werror_flag" ||
26343 test ! -s conftest.err
26344 } && test -s conftest.$ac_objext; then
26345 ac_cv_have_int64_t="yes"
26347 echo "$as_me: failed program was:" >&5
26348 sed 's/^/| /' conftest.$ac_ext >&5
26350 ac_cv_have_int64_t="no"
26354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26357 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26358 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26359 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26360 cat >>confdefs.h <<\_ACEOF
26361 #define HAVE_INT64_T 1
26367 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26368 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26369 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26370 echo $ECHO_N "(cached) $ECHO_C" >&6
26373 cat >conftest.$ac_ext <<_ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h. */
26379 #include <sys/types.h>
26383 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26388 rm -f conftest.$ac_objext
26389 if { (ac_try="$ac_compile"
26390 case "(($ac_try" in
26391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26392 *) ac_try_echo=$ac_try;;
26394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26395 (eval "$ac_compile") 2>conftest.er1
26397 grep -v '^ *+' conftest.er1 >conftest.err
26399 cat conftest.err >&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); } && {
26402 test -z "$ac_c_werror_flag" ||
26403 test ! -s conftest.err
26404 } && test -s conftest.$ac_objext; then
26405 ac_cv_have_u_intxx_t="yes"
26407 echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26410 ac_cv_have_u_intxx_t="no"
26414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26417 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26418 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26419 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26420 cat >>confdefs.h <<\_ACEOF
26421 #define HAVE_U_INTXX_T 1
26427 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26428 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26429 if test "${ac_cv_have_u_int64_t+set}" = set; then
26430 echo $ECHO_N "(cached) $ECHO_C" >&6
26433 cat >conftest.$ac_ext <<_ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h. */
26439 #include <sys/types.h>
26443 u_int64_t a; a = 1;
26448 rm -f conftest.$ac_objext
26449 if { (ac_try="$ac_compile"
26450 case "(($ac_try" in
26451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26452 *) ac_try_echo=$ac_try;;
26454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26455 (eval "$ac_compile") 2>conftest.er1
26457 grep -v '^ *+' conftest.er1 >conftest.err
26459 cat conftest.err >&5
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); } && {
26462 test -z "$ac_c_werror_flag" ||
26463 test ! -s conftest.err
26464 } && test -s conftest.$ac_objext; then
26465 ac_cv_have_u_int64_t="yes"
26467 echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26470 ac_cv_have_u_int64_t="no"
26474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26477 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26478 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26479 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26480 cat >>confdefs.h <<\_ACEOF
26481 #define HAVE_U_INT64_T 1
26487 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26488 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26490 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26491 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26492 cat >conftest.$ac_ext <<_ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h. */
26498 #include <sys/bitypes.h>
26502 int8_t a; int16_t b; int32_t c;
26503 u_int8_t e; u_int16_t f; u_int32_t g;
26504 a = b = c = e = f = g = 1;
26509 rm -f conftest.$ac_objext
26510 if { (ac_try="$ac_compile"
26511 case "(($ac_try" in
26512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26513 *) ac_try_echo=$ac_try;;
26515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26516 (eval "$ac_compile") 2>conftest.er1
26518 grep -v '^ *+' conftest.er1 >conftest.err
26520 cat conftest.err >&5
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); } && {
26523 test -z "$ac_c_werror_flag" ||
26524 test ! -s conftest.err
26525 } && test -s conftest.$ac_objext; then
26526 cat >>confdefs.h <<\_ACEOF
26527 #define HAVE_U_INTXX_T 1
26530 cat >>confdefs.h <<\_ACEOF
26531 #define HAVE_INTXX_T 1
26534 cat >>confdefs.h <<\_ACEOF
26535 #define HAVE_SYS_BITYPES_H 1
26538 { echo "$as_me:$LINENO: result: yes" >&5
26539 echo "${ECHO_T}yes" >&6; }
26541 echo "$as_me: failed program was:" >&5
26542 sed 's/^/| /' conftest.$ac_ext >&5
26544 { echo "$as_me:$LINENO: result: no" >&5
26545 echo "${ECHO_T}no" >&6; }
26549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26552 if test -z "$have_u_intxx_t" ; then
26553 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26554 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26555 if test "${ac_cv_have_uintxx_t+set}" = set; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26559 cat >conftest.$ac_ext <<_ACEOF
26562 cat confdefs.h >>conftest.$ac_ext
26563 cat >>conftest.$ac_ext <<_ACEOF
26564 /* end confdefs.h. */
26565 #include <sys/types.h>
26569 uint8_t a; uint16_t b;
26570 uint32_t c; a = b = c = 1;
26575 rm -f conftest.$ac_objext
26576 if { (ac_try="$ac_compile"
26577 case "(($ac_try" in
26578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579 *) ac_try_echo=$ac_try;;
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582 (eval "$ac_compile") 2>conftest.er1
26584 grep -v '^ *+' conftest.er1 >conftest.err
26586 cat conftest.err >&5
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); } && {
26589 test -z "$ac_c_werror_flag" ||
26590 test ! -s conftest.err
26591 } && test -s conftest.$ac_objext; then
26592 ac_cv_have_uintxx_t="yes"
26594 echo "$as_me: failed program was:" >&5
26595 sed 's/^/| /' conftest.$ac_ext >&5
26597 ac_cv_have_uintxx_t="no"
26601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26604 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26605 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26606 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26607 cat >>confdefs.h <<\_ACEOF
26608 #define HAVE_UINTXX_T 1
26614 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26615 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26617 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26618 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26619 cat >conftest.$ac_ext <<_ACEOF
26622 cat confdefs.h >>conftest.$ac_ext
26623 cat >>conftest.$ac_ext <<_ACEOF
26624 /* end confdefs.h. */
26625 #include <sys/bitypes.h>
26629 int64_t a; u_int64_t b;
26635 rm -f conftest.$ac_objext
26636 if { (ac_try="$ac_compile"
26637 case "(($ac_try" in
26638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26639 *) ac_try_echo=$ac_try;;
26641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26642 (eval "$ac_compile") 2>conftest.er1
26644 grep -v '^ *+' conftest.er1 >conftest.err
26646 cat conftest.err >&5
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); } && {
26649 test -z "$ac_c_werror_flag" ||
26650 test ! -s conftest.err
26651 } && test -s conftest.$ac_objext; then
26652 cat >>confdefs.h <<\_ACEOF
26653 #define HAVE_U_INT64_T 1
26656 cat >>confdefs.h <<\_ACEOF
26657 #define HAVE_INT64_T 1
26660 { echo "$as_me:$LINENO: result: yes" >&5
26661 echo "${ECHO_T}yes" >&6; }
26663 echo "$as_me: failed program was:" >&5
26664 sed 's/^/| /' conftest.$ac_ext >&5
26666 { echo "$as_me:$LINENO: result: no" >&5
26667 echo "${ECHO_T}no" >&6; }
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26674 if (test -z "$have_uintxx_t" && \
26675 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26677 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26678 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26679 cat >conftest.$ac_ext <<_ACEOF
26682 cat confdefs.h >>conftest.$ac_ext
26683 cat >>conftest.$ac_ext <<_ACEOF
26684 /* end confdefs.h. */
26685 #include <sys/bitypes.h>
26689 uint8_t a; uint16_t b;
26690 uint32_t c; a = b = c = 1;
26695 rm -f conftest.$ac_objext
26696 if { (ac_try="$ac_compile"
26697 case "(($ac_try" in
26698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26699 *) ac_try_echo=$ac_try;;
26701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26702 (eval "$ac_compile") 2>conftest.er1
26704 grep -v '^ *+' conftest.er1 >conftest.err
26706 cat conftest.err >&5
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); } && {
26709 test -z "$ac_c_werror_flag" ||
26710 test ! -s conftest.err
26711 } && test -s conftest.$ac_objext; then
26712 cat >>confdefs.h <<\_ACEOF
26713 #define HAVE_UINTXX_T 1
26716 { echo "$as_me:$LINENO: result: yes" >&5
26717 echo "${ECHO_T}yes" >&6; }
26719 echo "$as_me: failed program was:" >&5
26720 sed 's/^/| /' conftest.$ac_ext >&5
26722 { echo "$as_me:$LINENO: result: no" >&5
26723 echo "${ECHO_T}no" >&6; }
26727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26767 echo $ECHO_N "(cached) $ECHO_C" >&6
26769 cat >conftest.$ac_ext <<_ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h. */
26775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26777 #define $ac_func innocuous_$ac_func
26779 /* System header to define __stub macros and hopefully few prototypes,
26780 which can conflict with char $ac_func (); below.
26781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26782 <limits.h> exists even on freestanding compilers. */
26785 # include <limits.h>
26787 # include <assert.h>
26792 /* Override any GCC internal prototype to avoid an error.
26793 Use char because int might match the return type of a GCC
26794 builtin and then its argument prototype would still apply. */
26799 /* The GNU C library defines this for functions which it implements
26800 to always fail with ENOSYS. Some functions are actually named
26801 something starting with __ and the normal name is an alias. */
26802 #if defined __stub_$ac_func || defined __stub___$ac_func
26809 return $ac_func ();
26814 rm -f conftest.$ac_objext conftest$ac_exeext
26815 if { (ac_try="$ac_link"
26816 case "(($ac_try" in
26817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818 *) ac_try_echo=$ac_try;;
26820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821 (eval "$ac_link") 2>conftest.er1
26823 grep -v '^ *+' conftest.er1 >conftest.err
26825 cat conftest.err >&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } && {
26828 test -z "$ac_c_werror_flag" ||
26829 test ! -s conftest.err
26830 } && test -s conftest$ac_exeext &&
26831 $as_test_x conftest$ac_exeext; then
26832 eval "$as_ac_var=yes"
26834 echo "$as_me: failed program was:" >&5
26835 sed 's/^/| /' conftest.$ac_ext >&5
26837 eval "$as_ac_var=no"
26840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26841 conftest$ac_exeext conftest.$ac_ext
26843 ac_res=`eval echo '${'$as_ac_var'}'`
26844 { echo "$as_me:$LINENO: result: $ac_res" >&5
26845 echo "${ECHO_T}$ac_res" >&6; }
26846 if test `eval echo '${'$as_ac_var'}'` = yes; then
26847 cat >>confdefs.h <<_ACEOF
26848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26852 echo 'configure: cannot find needed function.'; exit 1
26859 for ac_func in fchdir
26861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26865 echo $ECHO_N "(cached) $ECHO_C" >&6
26867 cat >conftest.$ac_ext <<_ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h. */
26873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26875 #define $ac_func innocuous_$ac_func
26877 /* System header to define __stub macros and hopefully few prototypes,
26878 which can conflict with char $ac_func (); below.
26879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26880 <limits.h> exists even on freestanding compilers. */
26883 # include <limits.h>
26885 # include <assert.h>
26890 /* Override any GCC internal prototype to avoid an error.
26891 Use char because int might match the return type of a GCC
26892 builtin and then its argument prototype would still apply. */
26897 /* The GNU C library defines this for functions which it implements
26898 to always fail with ENOSYS. Some functions are actually named
26899 something starting with __ and the normal name is an alias. */
26900 #if defined __stub_$ac_func || defined __stub___$ac_func
26907 return $ac_func ();
26912 rm -f conftest.$ac_objext conftest$ac_exeext
26913 if { (ac_try="$ac_link"
26914 case "(($ac_try" in
26915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916 *) ac_try_echo=$ac_try;;
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919 (eval "$ac_link") 2>conftest.er1
26921 grep -v '^ *+' conftest.er1 >conftest.err
26923 cat conftest.err >&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); } && {
26926 test -z "$ac_c_werror_flag" ||
26927 test ! -s conftest.err
26928 } && test -s conftest$ac_exeext &&
26929 $as_test_x conftest$ac_exeext; then
26930 eval "$as_ac_var=yes"
26932 echo "$as_me: failed program was:" >&5
26933 sed 's/^/| /' conftest.$ac_ext >&5
26935 eval "$as_ac_var=no"
26938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26939 conftest$ac_exeext conftest.$ac_ext
26941 ac_res=`eval echo '${'$as_ac_var'}'`
26942 { echo "$as_me:$LINENO: result: $ac_res" >&5
26943 echo "${ECHO_T}$ac_res" >&6; }
26944 if test `eval echo '${'$as_ac_var'}'` = yes; then
26945 cat >>confdefs.h <<_ACEOF
26946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26948 cat >>confdefs.h <<\_ACEOF
26949 #define HAVE_FCHDIR 1
26956 for ac_func in strtoll
26958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26962 echo $ECHO_N "(cached) $ECHO_C" >&6
26964 cat >conftest.$ac_ext <<_ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h. */
26970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26972 #define $ac_func innocuous_$ac_func
26974 /* System header to define __stub macros and hopefully few prototypes,
26975 which can conflict with char $ac_func (); below.
26976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26977 <limits.h> exists even on freestanding compilers. */
26980 # include <limits.h>
26982 # include <assert.h>
26987 /* Override any GCC internal prototype to avoid an error.
26988 Use char because int might match the return type of a GCC
26989 builtin and then its argument prototype would still apply. */
26994 /* The GNU C library defines this for functions which it implements
26995 to always fail with ENOSYS. Some functions are actually named
26996 something starting with __ and the normal name is an alias. */
26997 #if defined __stub_$ac_func || defined __stub___$ac_func
27004 return $ac_func ();
27009 rm -f conftest.$ac_objext conftest$ac_exeext
27010 if { (ac_try="$ac_link"
27011 case "(($ac_try" in
27012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013 *) ac_try_echo=$ac_try;;
27015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27016 (eval "$ac_link") 2>conftest.er1
27018 grep -v '^ *+' conftest.er1 >conftest.err
27020 cat conftest.err >&5
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); } && {
27023 test -z "$ac_c_werror_flag" ||
27024 test ! -s conftest.err
27025 } && test -s conftest$ac_exeext &&
27026 $as_test_x conftest$ac_exeext; then
27027 eval "$as_ac_var=yes"
27029 echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27032 eval "$as_ac_var=no"
27035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27036 conftest$ac_exeext conftest.$ac_ext
27038 ac_res=`eval echo '${'$as_ac_var'}'`
27039 { echo "$as_me:$LINENO: result: $ac_res" >&5
27040 echo "${ECHO_T}$ac_res" >&6; }
27041 if test `eval echo '${'$as_ac_var'}'` = yes; then
27042 cat >>confdefs.h <<_ACEOF
27043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27045 cat >>confdefs.h <<\_ACEOF
27046 #define HAVE_STRTOLL 1
27053 for ac_func in posix_fadvise
27055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27059 echo $ECHO_N "(cached) $ECHO_C" >&6
27061 cat >conftest.$ac_ext <<_ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h. */
27067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27069 #define $ac_func innocuous_$ac_func
27071 /* System header to define __stub macros and hopefully few prototypes,
27072 which can conflict with char $ac_func (); below.
27073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27074 <limits.h> exists even on freestanding compilers. */
27077 # include <limits.h>
27079 # include <assert.h>
27084 /* Override any GCC internal prototype to avoid an error.
27085 Use char because int might match the return type of a GCC
27086 builtin and then its argument prototype would still apply. */
27091 /* The GNU C library defines this for functions which it implements
27092 to always fail with ENOSYS. Some functions are actually named
27093 something starting with __ and the normal name is an alias. */
27094 #if defined __stub_$ac_func || defined __stub___$ac_func
27101 return $ac_func ();
27106 rm -f conftest.$ac_objext conftest$ac_exeext
27107 if { (ac_try="$ac_link"
27108 case "(($ac_try" in
27109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110 *) ac_try_echo=$ac_try;;
27112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27113 (eval "$ac_link") 2>conftest.er1
27115 grep -v '^ *+' conftest.er1 >conftest.err
27117 cat conftest.err >&5
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); } && {
27120 test -z "$ac_c_werror_flag" ||
27121 test ! -s conftest.err
27122 } && test -s conftest$ac_exeext &&
27123 $as_test_x conftest$ac_exeext; then
27124 eval "$as_ac_var=yes"
27126 echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27129 eval "$as_ac_var=no"
27132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27133 conftest$ac_exeext conftest.$ac_ext
27135 ac_res=`eval echo '${'$as_ac_var'}'`
27136 { echo "$as_me:$LINENO: result: $ac_res" >&5
27137 echo "${ECHO_T}$ac_res" >&6; }
27138 if test `eval echo '${'$as_ac_var'}'` = yes; then
27139 cat >>confdefs.h <<_ACEOF
27140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27147 for ac_func in fdatasync
27149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27153 echo $ECHO_N "(cached) $ECHO_C" >&6
27155 cat >conftest.$ac_ext <<_ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h. */
27161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27163 #define $ac_func innocuous_$ac_func
27165 /* System header to define __stub macros and hopefully few prototypes,
27166 which can conflict with char $ac_func (); below.
27167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27168 <limits.h> exists even on freestanding compilers. */
27171 # include <limits.h>
27173 # include <assert.h>
27178 /* Override any GCC internal prototype to avoid an error.
27179 Use char because int might match the return type of a GCC
27180 builtin and then its argument prototype would still apply. */
27185 /* The GNU C library defines this for functions which it implements
27186 to always fail with ENOSYS. Some functions are actually named
27187 something starting with __ and the normal name is an alias. */
27188 #if defined __stub_$ac_func || defined __stub___$ac_func
27195 return $ac_func ();
27200 rm -f conftest.$ac_objext conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_link") 2>conftest.er1
27209 grep -v '^ *+' conftest.er1 >conftest.err
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } && {
27214 test -z "$ac_c_werror_flag" ||
27215 test ! -s conftest.err
27216 } && test -s conftest$ac_exeext &&
27217 $as_test_x conftest$ac_exeext; then
27218 eval "$as_ac_var=yes"
27220 echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27223 eval "$as_ac_var=no"
27226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27227 conftest$ac_exeext conftest.$ac_ext
27229 ac_res=`eval echo '${'$as_ac_var'}'`
27230 { echo "$as_me:$LINENO: result: $ac_res" >&5
27231 echo "${ECHO_T}$ac_res" >&6; }
27232 if test `eval echo '${'$as_ac_var'}'` = yes; then
27233 cat >>confdefs.h <<_ACEOF
27234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27242 for ac_func in chflags
27244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27248 echo $ECHO_N "(cached) $ECHO_C" >&6
27250 cat >conftest.$ac_ext <<_ACEOF
27253 cat confdefs.h >>conftest.$ac_ext
27254 cat >>conftest.$ac_ext <<_ACEOF
27255 /* end confdefs.h. */
27256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27258 #define $ac_func innocuous_$ac_func
27260 /* System header to define __stub macros and hopefully few prototypes,
27261 which can conflict with char $ac_func (); below.
27262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27263 <limits.h> exists even on freestanding compilers. */
27266 # include <limits.h>
27268 # include <assert.h>
27273 /* Override any GCC internal prototype to avoid an error.
27274 Use char because int might match the return type of a GCC
27275 builtin and then its argument prototype would still apply. */
27280 /* The GNU C library defines this for functions which it implements
27281 to always fail with ENOSYS. Some functions are actually named
27282 something starting with __ and the normal name is an alias. */
27283 #if defined __stub_$ac_func || defined __stub___$ac_func
27290 return $ac_func ();
27295 rm -f conftest.$ac_objext conftest$ac_exeext
27296 if { (ac_try="$ac_link"
27297 case "(($ac_try" in
27298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299 *) ac_try_echo=$ac_try;;
27301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302 (eval "$ac_link") 2>conftest.er1
27304 grep -v '^ *+' conftest.er1 >conftest.err
27306 cat conftest.err >&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); } && {
27309 test -z "$ac_c_werror_flag" ||
27310 test ! -s conftest.err
27311 } && test -s conftest$ac_exeext &&
27312 $as_test_x conftest$ac_exeext; then
27313 eval "$as_ac_var=yes"
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27318 eval "$as_ac_var=no"
27321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27322 conftest$ac_exeext conftest.$ac_ext
27324 ac_res=`eval echo '${'$as_ac_var'}'`
27325 { echo "$as_me:$LINENO: result: $ac_res" >&5
27326 echo "${ECHO_T}$ac_res" >&6; }
27327 if test `eval echo '${'$as_ac_var'}'` = yes; then
27328 cat >>confdefs.h <<_ACEOF
27329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27340 for ac_func in snprintf vsnprintf gethostid fseeko
27342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27348 cat >conftest.$ac_ext <<_ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h. */
27354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27356 #define $ac_func innocuous_$ac_func
27358 /* System header to define __stub macros and hopefully few prototypes,
27359 which can conflict with char $ac_func (); below.
27360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27361 <limits.h> exists even on freestanding compilers. */
27364 # include <limits.h>
27366 # include <assert.h>
27371 /* Override any GCC internal prototype to avoid an error.
27372 Use char because int might match the return type of a GCC
27373 builtin and then its argument prototype would still apply. */
27378 /* The GNU C library defines this for functions which it implements
27379 to always fail with ENOSYS. Some functions are actually named
27380 something starting with __ and the normal name is an alias. */
27381 #if defined __stub_$ac_func || defined __stub___$ac_func
27388 return $ac_func ();
27393 rm -f conftest.$ac_objext conftest$ac_exeext
27394 if { (ac_try="$ac_link"
27395 case "(($ac_try" in
27396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27397 *) ac_try_echo=$ac_try;;
27399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27400 (eval "$ac_link") 2>conftest.er1
27402 grep -v '^ *+' conftest.er1 >conftest.err
27404 cat conftest.err >&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } && {
27407 test -z "$ac_c_werror_flag" ||
27408 test ! -s conftest.err
27409 } && test -s conftest$ac_exeext &&
27410 $as_test_x conftest$ac_exeext; then
27411 eval "$as_ac_var=yes"
27413 echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27416 eval "$as_ac_var=no"
27419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27420 conftest$ac_exeext conftest.$ac_ext
27422 ac_res=`eval echo '${'$as_ac_var'}'`
27423 { echo "$as_me:$LINENO: result: $ac_res" >&5
27424 echo "${ECHO_T}$ac_res" >&6; }
27425 if test `eval echo '${'$as_ac_var'}'` = yes; then
27426 cat >>confdefs.h <<_ACEOF
27427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27434 { echo "$as_me:$LINENO: checking for va_copy" >&5
27435 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27436 if test "${ba_cv_va_copy+set}" = set; then
27437 echo $ECHO_N "(cached) $ECHO_C" >&6
27439 cat >conftest.$ac_ext <<_ACEOF
27442 cat confdefs.h >>conftest.$ac_ext
27443 cat >>conftest.$ac_ext <<_ACEOF
27444 /* end confdefs.h. */
27446 #include <stdarg.h>
27447 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27448 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27453 call_use_va_copy(1,2,3)
27458 rm -f conftest.$ac_objext conftest$ac_exeext
27459 if { (ac_try="$ac_link"
27460 case "(($ac_try" in
27461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462 *) ac_try_echo=$ac_try;;
27464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27465 (eval "$ac_link") 2>conftest.er1
27467 grep -v '^ *+' conftest.er1 >conftest.err
27469 cat conftest.err >&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } && {
27472 test -z "$ac_c_werror_flag" ||
27473 test ! -s conftest.err
27474 } && test -s conftest$ac_exeext &&
27475 $as_test_x conftest$ac_exeext; then
27478 echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27485 conftest$ac_exeext conftest.$ac_ext
27487 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27488 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27489 test $ba_cv_va_copy = yes &&
27490 cat >>confdefs.h <<\_ACEOF
27491 #define HAVE_VA_COPY 1
27500 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27506 echo $ECHO_N "(cached) $ECHO_C" >&6
27508 cat >conftest.$ac_ext <<_ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h. */
27514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27516 #define $ac_func innocuous_$ac_func
27518 /* System header to define __stub macros and hopefully few prototypes,
27519 which can conflict with char $ac_func (); below.
27520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27521 <limits.h> exists even on freestanding compilers. */
27524 # include <limits.h>
27526 # include <assert.h>
27531 /* Override any GCC internal prototype to avoid an error.
27532 Use char because int might match the return type of a GCC
27533 builtin and then its argument prototype would still apply. */
27538 /* The GNU C library defines this for functions which it implements
27539 to always fail with ENOSYS. Some functions are actually named
27540 something starting with __ and the normal name is an alias. */
27541 #if defined __stub_$ac_func || defined __stub___$ac_func
27548 return $ac_func ();
27553 rm -f conftest.$ac_objext conftest$ac_exeext
27554 if { (ac_try="$ac_link"
27555 case "(($ac_try" in
27556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557 *) ac_try_echo=$ac_try;;
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_link") 2>conftest.er1
27562 grep -v '^ *+' conftest.er1 >conftest.err
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } && {
27567 test -z "$ac_c_werror_flag" ||
27568 test ! -s conftest.err
27569 } && test -s conftest$ac_exeext &&
27570 $as_test_x conftest$ac_exeext; then
27571 eval "$as_ac_var=yes"
27573 echo "$as_me: failed program was:" >&5
27574 sed 's/^/| /' conftest.$ac_ext >&5
27576 eval "$as_ac_var=no"
27579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27580 conftest$ac_exeext conftest.$ac_ext
27582 ac_res=`eval echo '${'$as_ac_var'}'`
27583 { echo "$as_me:$LINENO: result: $ac_res" >&5
27584 echo "${ECHO_T}$ac_res" >&6; }
27585 if test `eval echo '${'$as_ac_var'}'` = yes; then
27586 cat >>confdefs.h <<_ACEOF
27587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27594 # If resolver functions are not in libc check for -lnsl or -lresolv.
27595 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27596 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27597 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27598 echo $ECHO_N "(cached) $ECHO_C" >&6
27600 cat >conftest.$ac_ext <<_ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h. */
27606 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27608 #define gethostbyname_r innocuous_gethostbyname_r
27610 /* System header to define __stub macros and hopefully few prototypes,
27611 which can conflict with char gethostbyname_r (); below.
27612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27613 <limits.h> exists even on freestanding compilers. */
27616 # include <limits.h>
27618 # include <assert.h>
27621 #undef gethostbyname_r
27623 /* Override any GCC internal prototype to avoid an error.
27624 Use char because int might match the return type of a GCC
27625 builtin and then its argument prototype would still apply. */
27629 char gethostbyname_r ();
27630 /* The GNU C library defines this for functions which it implements
27631 to always fail with ENOSYS. Some functions are actually named
27632 something starting with __ and the normal name is an alias. */
27633 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27640 return gethostbyname_r ();
27645 rm -f conftest.$ac_objext conftest$ac_exeext
27646 if { (ac_try="$ac_link"
27647 case "(($ac_try" in
27648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_link") 2>conftest.er1
27654 grep -v '^ *+' conftest.er1 >conftest.err
27656 cat conftest.err >&5
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } && {
27659 test -z "$ac_c_werror_flag" ||
27660 test ! -s conftest.err
27661 } && test -s conftest$ac_exeext &&
27662 $as_test_x conftest$ac_exeext; then
27663 ac_cv_func_gethostbyname_r=yes
27665 echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27668 ac_cv_func_gethostbyname_r=no
27671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27672 conftest$ac_exeext conftest.$ac_ext
27674 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27675 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27676 if test $ac_cv_func_gethostbyname_r = yes; then
27677 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27678 echo "${ECHO_T}using libc's resolver" >&6; }
27681 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27682 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27683 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27684 echo $ECHO_N "(cached) $ECHO_C" >&6
27686 ac_check_lib_save_LIBS=$LIBS
27688 cat >conftest.$ac_ext <<_ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h. */
27695 /* Override any GCC internal prototype to avoid an error.
27696 Use char because int might match the return type of a GCC
27697 builtin and then its argument prototype would still apply. */
27701 char gethostbyname_r ();
27705 return gethostbyname_r ();
27710 rm -f conftest.$ac_objext conftest$ac_exeext
27711 if { (ac_try="$ac_link"
27712 case "(($ac_try" in
27713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714 *) ac_try_echo=$ac_try;;
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717 (eval "$ac_link") 2>conftest.er1
27719 grep -v '^ *+' conftest.er1 >conftest.err
27721 cat conftest.err >&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } && {
27724 test -z "$ac_c_werror_flag" ||
27725 test ! -s conftest.err
27726 } && test -s conftest$ac_exeext &&
27727 $as_test_x conftest$ac_exeext; then
27728 ac_cv_lib_nsl_gethostbyname_r=yes
27730 echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27733 ac_cv_lib_nsl_gethostbyname_r=no
27736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27737 conftest$ac_exeext conftest.$ac_ext
27738 LIBS=$ac_check_lib_save_LIBS
27740 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27741 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27742 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27743 cat >>confdefs.h <<_ACEOF
27744 #define HAVE_LIBNSL 1
27752 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27753 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27754 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
27757 ac_check_lib_save_LIBS=$LIBS
27758 LIBS="-lresolv $LIBS"
27759 cat >conftest.$ac_ext <<_ACEOF
27762 cat confdefs.h >>conftest.$ac_ext
27763 cat >>conftest.$ac_ext <<_ACEOF
27764 /* end confdefs.h. */
27766 /* Override any GCC internal prototype to avoid an error.
27767 Use char because int might match the return type of a GCC
27768 builtin and then its argument prototype would still apply. */
27772 char gethostbyname_r ();
27776 return gethostbyname_r ();
27781 rm -f conftest.$ac_objext conftest$ac_exeext
27782 if { (ac_try="$ac_link"
27783 case "(($ac_try" in
27784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785 *) ac_try_echo=$ac_try;;
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_link") 2>conftest.er1
27790 grep -v '^ *+' conftest.er1 >conftest.err
27792 cat conftest.err >&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); } && {
27795 test -z "$ac_c_werror_flag" ||
27796 test ! -s conftest.err
27797 } && test -s conftest$ac_exeext &&
27798 $as_test_x conftest$ac_exeext; then
27799 ac_cv_lib_resolv_gethostbyname_r=yes
27801 echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.$ac_ext >&5
27804 ac_cv_lib_resolv_gethostbyname_r=no
27807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27808 conftest$ac_exeext conftest.$ac_ext
27809 LIBS=$ac_check_lib_save_LIBS
27811 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27812 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27813 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27814 cat >>confdefs.h <<_ACEOF
27815 #define HAVE_LIBRESOLV 1
27818 LIBS="-lresolv $LIBS"
27828 for ac_func in inet_pton
27830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27834 echo $ECHO_N "(cached) $ECHO_C" >&6
27836 cat >conftest.$ac_ext <<_ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h. */
27842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27844 #define $ac_func innocuous_$ac_func
27846 /* System header to define __stub macros and hopefully few prototypes,
27847 which can conflict with char $ac_func (); below.
27848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27849 <limits.h> exists even on freestanding compilers. */
27852 # include <limits.h>
27854 # include <assert.h>
27859 /* Override any GCC internal prototype to avoid an error.
27860 Use char because int might match the return type of a GCC
27861 builtin and then its argument prototype would still apply. */
27866 /* The GNU C library defines this for functions which it implements
27867 to always fail with ENOSYS. Some functions are actually named
27868 something starting with __ and the normal name is an alias. */
27869 #if defined __stub_$ac_func || defined __stub___$ac_func
27876 return $ac_func ();
27881 rm -f conftest.$ac_objext conftest$ac_exeext
27882 if { (ac_try="$ac_link"
27883 case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_link") 2>conftest.er1
27890 grep -v '^ *+' conftest.er1 >conftest.err
27892 cat conftest.err >&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); } && {
27895 test -z "$ac_c_werror_flag" ||
27896 test ! -s conftest.err
27897 } && test -s conftest$ac_exeext &&
27898 $as_test_x conftest$ac_exeext; then
27899 eval "$as_ac_var=yes"
27901 echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27904 eval "$as_ac_var=no"
27907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27908 conftest$ac_exeext conftest.$ac_ext
27910 ac_res=`eval echo '${'$as_ac_var'}'`
27911 { echo "$as_me:$LINENO: result: $ac_res" >&5
27912 echo "${ECHO_T}$ac_res" >&6; }
27913 if test `eval echo '${'$as_ac_var'}'` = yes; then
27914 cat >>confdefs.h <<_ACEOF
27915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27917 cat >>confdefs.h <<\_ACEOF
27918 #define HAVE_INET_PTON 1
27925 for ac_func in inet_ntop
27927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27931 echo $ECHO_N "(cached) $ECHO_C" >&6
27933 cat >conftest.$ac_ext <<_ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h. */
27939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27941 #define $ac_func innocuous_$ac_func
27943 /* System header to define __stub macros and hopefully few prototypes,
27944 which can conflict with char $ac_func (); below.
27945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27946 <limits.h> exists even on freestanding compilers. */
27949 # include <limits.h>
27951 # include <assert.h>
27956 /* Override any GCC internal prototype to avoid an error.
27957 Use char because int might match the return type of a GCC
27958 builtin and then its argument prototype would still apply. */
27963 /* The GNU C library defines this for functions which it implements
27964 to always fail with ENOSYS. Some functions are actually named
27965 something starting with __ and the normal name is an alias. */
27966 #if defined __stub_$ac_func || defined __stub___$ac_func
27973 return $ac_func ();
27978 rm -f conftest.$ac_objext conftest$ac_exeext
27979 if { (ac_try="$ac_link"
27980 case "(($ac_try" in
27981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982 *) ac_try_echo=$ac_try;;
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985 (eval "$ac_link") 2>conftest.er1
27987 grep -v '^ *+' conftest.er1 >conftest.err
27989 cat conftest.err >&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } && {
27992 test -z "$ac_c_werror_flag" ||
27993 test ! -s conftest.err
27994 } && test -s conftest$ac_exeext &&
27995 $as_test_x conftest$ac_exeext; then
27996 eval "$as_ac_var=yes"
27998 echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28001 eval "$as_ac_var=no"
28004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28005 conftest$ac_exeext conftest.$ac_ext
28007 ac_res=`eval echo '${'$as_ac_var'}'`
28008 { echo "$as_me:$LINENO: result: $ac_res" >&5
28009 echo "${ECHO_T}$ac_res" >&6; }
28010 if test `eval echo '${'$as_ac_var'}'` = yes; then
28011 cat >>confdefs.h <<_ACEOF
28012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28014 cat >>confdefs.h <<\_ACEOF
28015 #define HAVE_INET_NTOP 1
28022 for ac_func in gethostbyname2
28024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28028 echo $ECHO_N "(cached) $ECHO_C" >&6
28030 cat >conftest.$ac_ext <<_ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h. */
28036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28038 #define $ac_func innocuous_$ac_func
28040 /* System header to define __stub macros and hopefully few prototypes,
28041 which can conflict with char $ac_func (); below.
28042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28043 <limits.h> exists even on freestanding compilers. */
28046 # include <limits.h>
28048 # include <assert.h>
28053 /* Override any GCC internal prototype to avoid an error.
28054 Use char because int might match the return type of a GCC
28055 builtin and then its argument prototype would still apply. */
28060 /* The GNU C library defines this for functions which it implements
28061 to always fail with ENOSYS. Some functions are actually named
28062 something starting with __ and the normal name is an alias. */
28063 #if defined __stub_$ac_func || defined __stub___$ac_func
28070 return $ac_func ();
28075 rm -f conftest.$ac_objext conftest$ac_exeext
28076 if { (ac_try="$ac_link"
28077 case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_link") 2>conftest.er1
28084 grep -v '^ *+' conftest.er1 >conftest.err
28086 cat conftest.err >&5
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); } && {
28089 test -z "$ac_c_werror_flag" ||
28090 test ! -s conftest.err
28091 } && test -s conftest$ac_exeext &&
28092 $as_test_x conftest$ac_exeext; then
28093 eval "$as_ac_var=yes"
28095 echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28098 eval "$as_ac_var=no"
28101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28102 conftest$ac_exeext conftest.$ac_ext
28104 ac_res=`eval echo '${'$as_ac_var'}'`
28105 { echo "$as_me:$LINENO: result: $ac_res" >&5
28106 echo "${ECHO_T}$ac_res" >&6; }
28107 if test `eval echo '${'$as_ac_var'}'` = yes; then
28108 cat >>confdefs.h <<_ACEOF
28109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28111 cat >>confdefs.h <<\_ACEOF
28112 #define HAVE_GETHOSTBYNAME2 1
28119 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28120 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28121 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28122 echo $ECHO_N "(cached) $ECHO_C" >&6
28124 cat >conftest.$ac_ext <<_ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h. */
28130 #include <sys/socket.h>
28134 struct sockaddr s; s.sa_len;
28139 rm -f conftest.$ac_objext
28140 if { (ac_try="$ac_compile"
28141 case "(($ac_try" in
28142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143 *) ac_try_echo=$ac_try;;
28145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28146 (eval "$ac_compile") 2>conftest.er1
28148 grep -v '^ *+' conftest.er1 >conftest.err
28150 cat conftest.err >&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } && {
28153 test -z "$ac_c_werror_flag" ||
28154 test ! -s conftest.err
28155 } && test -s conftest.$ac_objext; then
28156 ac_cv_struct_sockaddr_sa_len=yes
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28161 ac_cv_struct_sockaddr_sa_len=no
28164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28166 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28167 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28169 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28171 cat >>confdefs.h <<\_ACEOF
28172 #define HAVE_SA_LEN 1
28181 for ac_func in strftime
28183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28184 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28187 echo $ECHO_N "(cached) $ECHO_C" >&6
28189 cat >conftest.$ac_ext <<_ACEOF
28192 cat confdefs.h >>conftest.$ac_ext
28193 cat >>conftest.$ac_ext <<_ACEOF
28194 /* end confdefs.h. */
28195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28197 #define $ac_func innocuous_$ac_func
28199 /* System header to define __stub macros and hopefully few prototypes,
28200 which can conflict with char $ac_func (); below.
28201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28202 <limits.h> exists even on freestanding compilers. */
28205 # include <limits.h>
28207 # include <assert.h>
28212 /* Override any GCC internal prototype to avoid an error.
28213 Use char because int might match the return type of a GCC
28214 builtin and then its argument prototype would still apply. */
28219 /* The GNU C library defines this for functions which it implements
28220 to always fail with ENOSYS. Some functions are actually named
28221 something starting with __ and the normal name is an alias. */
28222 #if defined __stub_$ac_func || defined __stub___$ac_func
28229 return $ac_func ();
28234 rm -f conftest.$ac_objext conftest$ac_exeext
28235 if { (ac_try="$ac_link"
28236 case "(($ac_try" in
28237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238 *) ac_try_echo=$ac_try;;
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241 (eval "$ac_link") 2>conftest.er1
28243 grep -v '^ *+' conftest.er1 >conftest.err
28245 cat conftest.err >&5
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); } && {
28248 test -z "$ac_c_werror_flag" ||
28249 test ! -s conftest.err
28250 } && test -s conftest$ac_exeext &&
28251 $as_test_x conftest$ac_exeext; then
28252 eval "$as_ac_var=yes"
28254 echo "$as_me: failed program was:" >&5
28255 sed 's/^/| /' conftest.$ac_ext >&5
28257 eval "$as_ac_var=no"
28260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28261 conftest$ac_exeext conftest.$ac_ext
28263 ac_res=`eval echo '${'$as_ac_var'}'`
28264 { echo "$as_me:$LINENO: result: $ac_res" >&5
28265 echo "${ECHO_T}$ac_res" >&6; }
28266 if test `eval echo '${'$as_ac_var'}'` = yes; then
28267 cat >>confdefs.h <<_ACEOF
28268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28272 # strftime is in -lintl on SCO UNIX.
28273 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28274 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28275 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28276 echo $ECHO_N "(cached) $ECHO_C" >&6
28278 ac_check_lib_save_LIBS=$LIBS
28279 LIBS="-lintl $LIBS"
28280 cat >conftest.$ac_ext <<_ACEOF
28283 cat confdefs.h >>conftest.$ac_ext
28284 cat >>conftest.$ac_ext <<_ACEOF
28285 /* end confdefs.h. */
28287 /* Override any GCC internal prototype to avoid an error.
28288 Use char because int might match the return type of a GCC
28289 builtin and then its argument prototype would still apply. */
28297 return strftime ();
28302 rm -f conftest.$ac_objext conftest$ac_exeext
28303 if { (ac_try="$ac_link"
28304 case "(($ac_try" in
28305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306 *) ac_try_echo=$ac_try;;
28308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309 (eval "$ac_link") 2>conftest.er1
28311 grep -v '^ *+' conftest.er1 >conftest.err
28313 cat conftest.err >&5
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); } && {
28316 test -z "$ac_c_werror_flag" ||
28317 test ! -s conftest.err
28318 } && test -s conftest$ac_exeext &&
28319 $as_test_x conftest$ac_exeext; then
28320 ac_cv_lib_intl_strftime=yes
28322 echo "$as_me: failed program was:" >&5
28323 sed 's/^/| /' conftest.$ac_ext >&5
28325 ac_cv_lib_intl_strftime=no
28328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28329 conftest$ac_exeext conftest.$ac_ext
28330 LIBS=$ac_check_lib_save_LIBS
28332 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28333 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28334 if test $ac_cv_lib_intl_strftime = yes; then
28335 cat >>confdefs.h <<\_ACEOF
28336 #define HAVE_STRFTIME 1
28339 LIBS="-lintl $LIBS"
28346 for ac_func in vprintf
28348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28352 echo $ECHO_N "(cached) $ECHO_C" >&6
28354 cat >conftest.$ac_ext <<_ACEOF
28357 cat confdefs.h >>conftest.$ac_ext
28358 cat >>conftest.$ac_ext <<_ACEOF
28359 /* end confdefs.h. */
28360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28362 #define $ac_func innocuous_$ac_func
28364 /* System header to define __stub macros and hopefully few prototypes,
28365 which can conflict with char $ac_func (); below.
28366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28367 <limits.h> exists even on freestanding compilers. */
28370 # include <limits.h>
28372 # include <assert.h>
28377 /* Override any GCC internal prototype to avoid an error.
28378 Use char because int might match the return type of a GCC
28379 builtin and then its argument prototype would still apply. */
28384 /* The GNU C library defines this for functions which it implements
28385 to always fail with ENOSYS. Some functions are actually named
28386 something starting with __ and the normal name is an alias. */
28387 #if defined __stub_$ac_func || defined __stub___$ac_func
28394 return $ac_func ();
28399 rm -f conftest.$ac_objext conftest$ac_exeext
28400 if { (ac_try="$ac_link"
28401 case "(($ac_try" in
28402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28403 *) ac_try_echo=$ac_try;;
28405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28406 (eval "$ac_link") 2>conftest.er1
28408 grep -v '^ *+' conftest.er1 >conftest.err
28410 cat conftest.err >&5
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); } && {
28413 test -z "$ac_c_werror_flag" ||
28414 test ! -s conftest.err
28415 } && test -s conftest$ac_exeext &&
28416 $as_test_x conftest$ac_exeext; then
28417 eval "$as_ac_var=yes"
28419 echo "$as_me: failed program was:" >&5
28420 sed 's/^/| /' conftest.$ac_ext >&5
28422 eval "$as_ac_var=no"
28425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28426 conftest$ac_exeext conftest.$ac_ext
28428 ac_res=`eval echo '${'$as_ac_var'}'`
28429 { echo "$as_me:$LINENO: result: $ac_res" >&5
28430 echo "${ECHO_T}$ac_res" >&6; }
28431 if test `eval echo '${'$as_ac_var'}'` = yes; then
28432 cat >>confdefs.h <<_ACEOF
28433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28436 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28437 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28438 if test "${ac_cv_func__doprnt+set}" = set; then
28439 echo $ECHO_N "(cached) $ECHO_C" >&6
28441 cat >conftest.$ac_ext <<_ACEOF
28444 cat confdefs.h >>conftest.$ac_ext
28445 cat >>conftest.$ac_ext <<_ACEOF
28446 /* end confdefs.h. */
28447 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28449 #define _doprnt innocuous__doprnt
28451 /* System header to define __stub macros and hopefully few prototypes,
28452 which can conflict with char _doprnt (); below.
28453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28454 <limits.h> exists even on freestanding compilers. */
28457 # include <limits.h>
28459 # include <assert.h>
28464 /* Override any GCC internal prototype to avoid an error.
28465 Use char because int might match the return type of a GCC
28466 builtin and then its argument prototype would still apply. */
28471 /* The GNU C library defines this for functions which it implements
28472 to always fail with ENOSYS. Some functions are actually named
28473 something starting with __ and the normal name is an alias. */
28474 #if defined __stub__doprnt || defined __stub____doprnt
28486 rm -f conftest.$ac_objext conftest$ac_exeext
28487 if { (ac_try="$ac_link"
28488 case "(($ac_try" in
28489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28490 *) ac_try_echo=$ac_try;;
28492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28493 (eval "$ac_link") 2>conftest.er1
28495 grep -v '^ *+' conftest.er1 >conftest.err
28497 cat conftest.err >&5
28498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); } && {
28500 test -z "$ac_c_werror_flag" ||
28501 test ! -s conftest.err
28502 } && test -s conftest$ac_exeext &&
28503 $as_test_x conftest$ac_exeext; then
28504 ac_cv_func__doprnt=yes
28506 echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28509 ac_cv_func__doprnt=no
28512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28513 conftest$ac_exeext conftest.$ac_ext
28515 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28516 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28517 if test $ac_cv_func__doprnt = yes; then
28519 cat >>confdefs.h <<\_ACEOF
28520 #define HAVE_DOPRNT 1
28529 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28530 # for constant arguments. Useless!
28531 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28532 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28533 if test "${ac_cv_working_alloca_h+set}" = set; then
28534 echo $ECHO_N "(cached) $ECHO_C" >&6
28536 cat >conftest.$ac_ext <<_ACEOF
28539 cat confdefs.h >>conftest.$ac_ext
28540 cat >>conftest.$ac_ext <<_ACEOF
28541 /* end confdefs.h. */
28542 #include <alloca.h>
28546 char *p = (char *) alloca (2 * sizeof (int));
28552 rm -f conftest.$ac_objext conftest$ac_exeext
28553 if { (ac_try="$ac_link"
28554 case "(($ac_try" in
28555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556 *) ac_try_echo=$ac_try;;
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559 (eval "$ac_link") 2>conftest.er1
28561 grep -v '^ *+' conftest.er1 >conftest.err
28563 cat conftest.err >&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } && {
28566 test -z "$ac_c_werror_flag" ||
28567 test ! -s conftest.err
28568 } && test -s conftest$ac_exeext &&
28569 $as_test_x conftest$ac_exeext; then
28570 ac_cv_working_alloca_h=yes
28572 echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28575 ac_cv_working_alloca_h=no
28578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28579 conftest$ac_exeext conftest.$ac_ext
28581 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28582 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28583 if test $ac_cv_working_alloca_h = yes; then
28585 cat >>confdefs.h <<\_ACEOF
28586 #define HAVE_ALLOCA_H 1
28591 { echo "$as_me:$LINENO: checking for alloca" >&5
28592 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28593 if test "${ac_cv_func_alloca_works+set}" = set; then
28594 echo $ECHO_N "(cached) $ECHO_C" >&6
28596 cat >conftest.$ac_ext <<_ACEOF
28599 cat confdefs.h >>conftest.$ac_ext
28600 cat >>conftest.$ac_ext <<_ACEOF
28601 /* end confdefs.h. */
28603 # define alloca __builtin_alloca
28606 # include <malloc.h>
28607 # define alloca _alloca
28609 # ifdef HAVE_ALLOCA_H
28610 # include <alloca.h>
28615 # ifndef alloca /* predefined by HP cc +Olibcalls */
28626 char *p = (char *) alloca (1);
28632 rm -f conftest.$ac_objext conftest$ac_exeext
28633 if { (ac_try="$ac_link"
28634 case "(($ac_try" in
28635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28636 *) ac_try_echo=$ac_try;;
28638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28639 (eval "$ac_link") 2>conftest.er1
28641 grep -v '^ *+' conftest.er1 >conftest.err
28643 cat conftest.err >&5
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); } && {
28646 test -z "$ac_c_werror_flag" ||
28647 test ! -s conftest.err
28648 } && test -s conftest$ac_exeext &&
28649 $as_test_x conftest$ac_exeext; then
28650 ac_cv_func_alloca_works=yes
28652 echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28655 ac_cv_func_alloca_works=no
28658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28659 conftest$ac_exeext conftest.$ac_ext
28661 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28662 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28664 if test $ac_cv_func_alloca_works = yes; then
28666 cat >>confdefs.h <<\_ACEOF
28667 #define HAVE_ALLOCA 1
28671 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28672 # that cause trouble. Some versions do not even contain alloca or
28673 # contain a buggy version. If you still want to use their alloca,
28674 # use ar to extract alloca.o from them instead of compiling alloca.c.
28676 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28678 cat >>confdefs.h <<\_ACEOF
28683 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28684 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28685 if test "${ac_cv_os_cray+set}" = set; then
28686 echo $ECHO_N "(cached) $ECHO_C" >&6
28688 cat >conftest.$ac_ext <<_ACEOF
28691 cat confdefs.h >>conftest.$ac_ext
28692 cat >>conftest.$ac_ext <<_ACEOF
28693 /* end confdefs.h. */
28694 #if defined CRAY && ! defined CRAY2
28701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28702 $EGREP "webecray" >/dev/null 2>&1; then
28710 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28711 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28712 if test $ac_cv_os_cray = yes; then
28713 for ac_func in _getb67 GETB67 getb67; do
28714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28718 echo $ECHO_N "(cached) $ECHO_C" >&6
28720 cat >conftest.$ac_ext <<_ACEOF
28723 cat confdefs.h >>conftest.$ac_ext
28724 cat >>conftest.$ac_ext <<_ACEOF
28725 /* end confdefs.h. */
28726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28728 #define $ac_func innocuous_$ac_func
28730 /* System header to define __stub macros and hopefully few prototypes,
28731 which can conflict with char $ac_func (); below.
28732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28733 <limits.h> exists even on freestanding compilers. */
28736 # include <limits.h>
28738 # include <assert.h>
28743 /* Override any GCC internal prototype to avoid an error.
28744 Use char because int might match the return type of a GCC
28745 builtin and then its argument prototype would still apply. */
28750 /* The GNU C library defines this for functions which it implements
28751 to always fail with ENOSYS. Some functions are actually named
28752 something starting with __ and the normal name is an alias. */
28753 #if defined __stub_$ac_func || defined __stub___$ac_func
28760 return $ac_func ();
28765 rm -f conftest.$ac_objext conftest$ac_exeext
28766 if { (ac_try="$ac_link"
28767 case "(($ac_try" in
28768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769 *) ac_try_echo=$ac_try;;
28771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772 (eval "$ac_link") 2>conftest.er1
28774 grep -v '^ *+' conftest.er1 >conftest.err
28776 cat conftest.err >&5
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); } && {
28779 test -z "$ac_c_werror_flag" ||
28780 test ! -s conftest.err
28781 } && test -s conftest$ac_exeext &&
28782 $as_test_x conftest$ac_exeext; then
28783 eval "$as_ac_var=yes"
28785 echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28788 eval "$as_ac_var=no"
28791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28792 conftest$ac_exeext conftest.$ac_ext
28794 ac_res=`eval echo '${'$as_ac_var'}'`
28795 { echo "$as_me:$LINENO: result: $ac_res" >&5
28796 echo "${ECHO_T}$ac_res" >&6; }
28797 if test `eval echo '${'$as_ac_var'}'` = yes; then
28799 cat >>confdefs.h <<_ACEOF
28800 #define CRAY_STACKSEG_END $ac_func
28809 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28810 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28811 if test "${ac_cv_c_stack_direction+set}" = set; then
28812 echo $ECHO_N "(cached) $ECHO_C" >&6
28814 if test "$cross_compiling" = yes; then
28815 ac_cv_c_stack_direction=0
28817 cat >conftest.$ac_ext <<_ACEOF
28820 cat confdefs.h >>conftest.$ac_ext
28821 cat >>conftest.$ac_ext <<_ACEOF
28822 /* end confdefs.h. */
28823 $ac_includes_default
28825 find_stack_direction ()
28827 static char *addr = 0;
28832 return find_stack_direction ();
28835 return (&dummy > addr) ? 1 : -1;
28841 return find_stack_direction () < 0;
28844 rm -f conftest$ac_exeext
28845 if { (ac_try="$ac_link"
28846 case "(($ac_try" in
28847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28848 *) ac_try_echo=$ac_try;;
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851 (eval "$ac_link") 2>&5
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28855 { (case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860 (eval "$ac_try") 2>&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; }; then
28864 ac_cv_c_stack_direction=1
28866 echo "$as_me: program exited with status $ac_status" >&5
28867 echo "$as_me: failed program was:" >&5
28868 sed 's/^/| /' conftest.$ac_ext >&5
28870 ( exit $ac_status )
28871 ac_cv_c_stack_direction=-1
28873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28878 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28879 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28881 cat >>confdefs.h <<_ACEOF
28882 #define STACK_DIRECTION $ac_cv_c_stack_direction
28888 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28889 # -lseq on Dynix/PTX, -lgen on Unixware.
28890 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28891 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28892 if test "${ac_cv_search_getmntent+set}" = set; then
28893 echo $ECHO_N "(cached) $ECHO_C" >&6
28895 ac_func_search_save_LIBS=$LIBS
28896 cat >conftest.$ac_ext <<_ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h. */
28903 /* Override any GCC internal prototype to avoid an error.
28904 Use char because int might match the return type of a GCC
28905 builtin and then its argument prototype would still apply. */
28913 return getmntent ();
28918 for ac_lib in '' sun seq gen; do
28919 if test -z "$ac_lib"; then
28920 ac_res="none required"
28923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28925 rm -f conftest.$ac_objext conftest$ac_exeext
28926 if { (ac_try="$ac_link"
28927 case "(($ac_try" in
28928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28929 *) ac_try_echo=$ac_try;;
28931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28932 (eval "$ac_link") 2>conftest.er1
28934 grep -v '^ *+' conftest.er1 >conftest.err
28936 cat conftest.err >&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); } && {
28939 test -z "$ac_c_werror_flag" ||
28940 test ! -s conftest.err
28941 } && test -s conftest$ac_exeext &&
28942 $as_test_x conftest$ac_exeext; then
28943 ac_cv_search_getmntent=$ac_res
28945 echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28953 if test "${ac_cv_search_getmntent+set}" = set; then
28957 if test "${ac_cv_search_getmntent+set}" = set; then
28960 ac_cv_search_getmntent=no
28962 rm conftest.$ac_ext
28963 LIBS=$ac_func_search_save_LIBS
28965 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28966 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28967 ac_res=$ac_cv_search_getmntent
28968 if test "$ac_res" != no; then
28969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28970 ac_cv_func_getmntent=yes
28972 cat >>confdefs.h <<\_ACEOF
28973 #define HAVE_GETMNTENT 1
28977 ac_cv_func_getmntent=no
28981 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28982 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28983 if test "${ac_cv_func_closedir_void+set}" = set; then
28984 echo $ECHO_N "(cached) $ECHO_C" >&6
28986 if test "$cross_compiling" = yes; then
28987 ac_cv_func_closedir_void=yes
28989 cat >conftest.$ac_ext <<_ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h. */
28995 $ac_includes_default
28996 #include <$ac_header_dirent>
28997 #ifndef __cplusplus
29004 return closedir (opendir (".")) != 0;
29009 rm -f conftest$ac_exeext
29010 if { (ac_try="$ac_link"
29011 case "(($ac_try" in
29012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29013 *) ac_try_echo=$ac_try;;
29015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29016 (eval "$ac_link") 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29020 { (case "(($ac_try" in
29021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29022 *) ac_try_echo=$ac_try;;
29024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29025 (eval "$ac_try") 2>&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); }; }; then
29029 ac_cv_func_closedir_void=no
29031 echo "$as_me: program exited with status $ac_status" >&5
29032 echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29035 ( exit $ac_status )
29036 ac_cv_func_closedir_void=yes
29038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29043 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29044 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29045 if test $ac_cv_func_closedir_void = yes; then
29047 cat >>confdefs.h <<\_ACEOF
29048 #define CLOSEDIR_VOID 1
29053 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29054 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29055 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29056 echo $ECHO_N "(cached) $ECHO_C" >&6
29058 if test "$cross_compiling" = yes; then
29059 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29060 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29061 { (exit 1); exit 1; }; }
29063 cat >conftest.$ac_ext <<_ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h. */
29069 $ac_includes_default
29073 /* If this system has a BSD-style setpgrp which takes arguments,
29074 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29075 exit successfully. */
29076 return setpgrp (1,1) != -1;
29081 rm -f conftest$ac_exeext
29082 if { (ac_try="$ac_link"
29083 case "(($ac_try" in
29084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085 *) ac_try_echo=$ac_try;;
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088 (eval "$ac_link") 2>&5
29090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29092 { (case "(($ac_try" in
29093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094 *) ac_try_echo=$ac_try;;
29096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29097 (eval "$ac_try") 2>&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; }; then
29101 ac_cv_func_setpgrp_void=no
29103 echo "$as_me: program exited with status $ac_status" >&5
29104 echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29107 ( exit $ac_status )
29108 ac_cv_func_setpgrp_void=yes
29110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29115 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29116 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29117 if test $ac_cv_func_setpgrp_void = yes; then
29119 cat >>confdefs.h <<\_ACEOF
29120 #define SETPGRP_VOID 1
29124 # AC_FUNC_FNMATCH dnl use local version
29127 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29128 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29129 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29130 echo $ECHO_N "(cached) $ECHO_C" >&6
29132 ac_check_lib_save_LIBS=$LIBS
29133 LIBS="-lintl $LIBS"
29134 cat >conftest.$ac_ext <<_ACEOF
29137 cat confdefs.h >>conftest.$ac_ext
29138 cat >>conftest.$ac_ext <<_ACEOF
29139 /* end confdefs.h. */
29141 /* Override any GCC internal prototype to avoid an error.
29142 Use char because int might match the return type of a GCC
29143 builtin and then its argument prototype would still apply. */
29156 rm -f conftest.$ac_objext conftest$ac_exeext
29157 if { (ac_try="$ac_link"
29158 case "(($ac_try" in
29159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160 *) ac_try_echo=$ac_try;;
29162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163 (eval "$ac_link") 2>conftest.er1
29165 grep -v '^ *+' conftest.er1 >conftest.err
29167 cat conftest.err >&5
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); } && {
29170 test -z "$ac_c_werror_flag" ||
29171 test ! -s conftest.err
29172 } && test -s conftest$ac_exeext &&
29173 $as_test_x conftest$ac_exeext; then
29174 ac_cv_lib_intl_gettext=yes
29176 echo "$as_me: failed program was:" >&5
29177 sed 's/^/| /' conftest.$ac_ext >&5
29179 ac_cv_lib_intl_gettext=no
29182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29183 conftest$ac_exeext conftest.$ac_ext
29184 LIBS=$ac_check_lib_save_LIBS
29186 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29187 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29188 if test $ac_cv_lib_intl_gettext = yes; then
29189 LIBS="$LIBS -lintl"
29195 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29196 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29197 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29198 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 ac_check_lib_save_LIBS=$LIBS
29202 cat >conftest.$ac_ext <<_ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h. */
29209 /* Override any GCC internal prototype to avoid an error.
29210 Use char because int might match the return type of a GCC
29211 builtin and then its argument prototype would still apply. */
29219 return getpwnam ();
29224 rm -f conftest.$ac_objext conftest$ac_exeext
29225 if { (ac_try="$ac_link"
29226 case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231 (eval "$ac_link") 2>conftest.er1
29233 grep -v '^ *+' conftest.er1 >conftest.err
29235 cat conftest.err >&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); } && {
29238 test -z "$ac_c_werror_flag" ||
29239 test ! -s conftest.err
29240 } && test -s conftest$ac_exeext &&
29241 $as_test_x conftest$ac_exeext; then
29242 ac_cv_lib_sun_getpwnam=yes
29244 echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29247 ac_cv_lib_sun_getpwnam=no
29250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29251 conftest$ac_exeext conftest.$ac_ext
29252 LIBS=$ac_check_lib_save_LIBS
29254 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29255 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29256 if test $ac_cv_lib_sun_getpwnam = yes; then
29257 cat >>confdefs.h <<_ACEOF
29258 #define HAVE_LIBSUN 1
29267 for ac_header in zlib.h
29269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29274 echo $ECHO_N "(cached) $ECHO_C" >&6
29276 ac_res=`eval echo '${'$as_ac_Header'}'`
29277 { echo "$as_me:$LINENO: result: $ac_res" >&5
29278 echo "${ECHO_T}$ac_res" >&6; }
29280 # Is the header compilable?
29281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29283 cat >conftest.$ac_ext <<_ACEOF
29286 cat confdefs.h >>conftest.$ac_ext
29287 cat >>conftest.$ac_ext <<_ACEOF
29288 /* end confdefs.h. */
29289 $ac_includes_default
29290 #include <$ac_header>
29292 rm -f conftest.$ac_objext
29293 if { (ac_try="$ac_compile"
29294 case "(($ac_try" in
29295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296 *) ac_try_echo=$ac_try;;
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299 (eval "$ac_compile") 2>conftest.er1
29301 grep -v '^ *+' conftest.er1 >conftest.err
29303 cat conftest.err >&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); } && {
29306 test -z "$ac_c_werror_flag" ||
29307 test ! -s conftest.err
29308 } && test -s conftest.$ac_objext; then
29309 ac_header_compiler=yes
29311 echo "$as_me: failed program was:" >&5
29312 sed 's/^/| /' conftest.$ac_ext >&5
29314 ac_header_compiler=no
29317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29319 echo "${ECHO_T}$ac_header_compiler" >&6; }
29321 # Is the header present?
29322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29324 cat >conftest.$ac_ext <<_ACEOF
29327 cat confdefs.h >>conftest.$ac_ext
29328 cat >>conftest.$ac_ext <<_ACEOF
29329 /* end confdefs.h. */
29330 #include <$ac_header>
29332 if { (ac_try="$ac_cpp conftest.$ac_ext"
29333 case "(($ac_try" in
29334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335 *) ac_try_echo=$ac_try;;
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29340 grep -v '^ *+' conftest.er1 >conftest.err
29342 cat conftest.err >&5
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); } >/dev/null && {
29345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29346 test ! -s conftest.err
29348 ac_header_preproc=yes
29350 echo "$as_me: failed program was:" >&5
29351 sed 's/^/| /' conftest.$ac_ext >&5
29353 ac_header_preproc=no
29356 rm -f conftest.err conftest.$ac_ext
29357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29358 echo "${ECHO_T}$ac_header_preproc" >&6; }
29360 # So? What about this header?
29361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29367 ac_header_preproc=yes
29370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29388 echo $ECHO_N "(cached) $ECHO_C" >&6
29390 eval "$as_ac_Header=\$ac_header_preproc"
29392 ac_res=`eval echo '${'$as_ac_Header'}'`
29393 { echo "$as_me:$LINENO: result: $ac_res" >&5
29394 echo "${ECHO_T}$ac_res" >&6; }
29397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29398 cat >>confdefs.h <<_ACEOF
29399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29406 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29407 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29408 if test "${ac_cv_lib_z_deflate+set}" = set; then
29409 echo $ECHO_N "(cached) $ECHO_C" >&6
29411 ac_check_lib_save_LIBS=$LIBS
29413 cat >conftest.$ac_ext <<_ACEOF
29416 cat confdefs.h >>conftest.$ac_ext
29417 cat >>conftest.$ac_ext <<_ACEOF
29418 /* end confdefs.h. */
29420 /* Override any GCC internal prototype to avoid an error.
29421 Use char because int might match the return type of a GCC
29422 builtin and then its argument prototype would still apply. */
29435 rm -f conftest.$ac_objext conftest$ac_exeext
29436 if { (ac_try="$ac_link"
29437 case "(($ac_try" in
29438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439 *) ac_try_echo=$ac_try;;
29441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442 (eval "$ac_link") 2>conftest.er1
29444 grep -v '^ *+' conftest.er1 >conftest.err
29446 cat conftest.err >&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); } && {
29449 test -z "$ac_c_werror_flag" ||
29450 test ! -s conftest.err
29451 } && test -s conftest$ac_exeext &&
29452 $as_test_x conftest$ac_exeext; then
29453 ac_cv_lib_z_deflate=yes
29455 echo "$as_me: failed program was:" >&5
29456 sed 's/^/| /' conftest.$ac_ext >&5
29458 ac_cv_lib_z_deflate=no
29461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29462 conftest$ac_exeext conftest.$ac_ext
29463 LIBS=$ac_check_lib_save_LIBS
29465 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29466 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29467 if test $ac_cv_lib_z_deflate = yes; then
29472 if test x$FDLIBS = x-lz; then
29473 cat >>confdefs.h <<\_ACEOF
29474 #define HAVE_LIBZ 1
29481 # Check for ACL libraries
29484 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29485 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29486 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29487 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29488 echo $ECHO_N "(cached) $ECHO_C" >&6
29490 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29491 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29493 # Is the header compilable?
29494 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29495 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29496 cat >conftest.$ac_ext <<_ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h. */
29502 $ac_includes_default
29503 #include <sys/acl.h>
29505 rm -f conftest.$ac_objext
29506 if { (ac_try="$ac_compile"
29507 case "(($ac_try" in
29508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509 *) ac_try_echo=$ac_try;;
29511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512 (eval "$ac_compile") 2>conftest.er1
29514 grep -v '^ *+' conftest.er1 >conftest.err
29516 cat conftest.err >&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); } && {
29519 test -z "$ac_c_werror_flag" ||
29520 test ! -s conftest.err
29521 } && test -s conftest.$ac_objext; then
29522 ac_header_compiler=yes
29524 echo "$as_me: failed program was:" >&5
29525 sed 's/^/| /' conftest.$ac_ext >&5
29527 ac_header_compiler=no
29530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29532 echo "${ECHO_T}$ac_header_compiler" >&6; }
29534 # Is the header present?
29535 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29536 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29537 cat >conftest.$ac_ext <<_ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h. */
29543 #include <sys/acl.h>
29545 if { (ac_try="$ac_cpp conftest.$ac_ext"
29546 case "(($ac_try" in
29547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29548 *) ac_try_echo=$ac_try;;
29550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29553 grep -v '^ *+' conftest.er1 >conftest.err
29555 cat conftest.err >&5
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); } >/dev/null && {
29558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29559 test ! -s conftest.err
29561 ac_header_preproc=yes
29563 echo "$as_me: failed program was:" >&5
29564 sed 's/^/| /' conftest.$ac_ext >&5
29566 ac_header_preproc=no
29569 rm -f conftest.err conftest.$ac_ext
29570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29571 echo "${ECHO_T}$ac_header_preproc" >&6; }
29573 # So? What about this header?
29574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29576 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29577 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29578 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29579 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29580 ac_header_preproc=yes
29583 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29584 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29585 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29586 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29587 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29588 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29589 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29590 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29591 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29592 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29593 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29594 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29598 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29599 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29600 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29603 ac_cv_header_sys_acl_h=$ac_header_preproc
29605 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29606 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29611 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29612 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29613 if test "${ac_cv_func_acl_get_file+set}" = set; then
29614 echo $ECHO_N "(cached) $ECHO_C" >&6
29616 cat >conftest.$ac_ext <<_ACEOF
29619 cat confdefs.h >>conftest.$ac_ext
29620 cat >>conftest.$ac_ext <<_ACEOF
29621 /* end confdefs.h. */
29622 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29624 #define acl_get_file innocuous_acl_get_file
29626 /* System header to define __stub macros and hopefully few prototypes,
29627 which can conflict with char acl_get_file (); below.
29628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29629 <limits.h> exists even on freestanding compilers. */
29632 # include <limits.h>
29634 # include <assert.h>
29637 #undef acl_get_file
29639 /* Override any GCC internal prototype to avoid an error.
29640 Use char because int might match the return type of a GCC
29641 builtin and then its argument prototype would still apply. */
29645 char acl_get_file ();
29646 /* The GNU C library defines this for functions which it implements
29647 to always fail with ENOSYS. Some functions are actually named
29648 something starting with __ and the normal name is an alias. */
29649 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29656 return acl_get_file ();
29661 rm -f conftest.$ac_objext conftest$ac_exeext
29662 if { (ac_try="$ac_link"
29663 case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_link") 2>conftest.er1
29670 grep -v '^ *+' conftest.er1 >conftest.err
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } && {
29675 test -z "$ac_c_werror_flag" ||
29676 test ! -s conftest.err
29677 } && test -s conftest$ac_exeext &&
29678 $as_test_x conftest$ac_exeext; then
29679 ac_cv_func_acl_get_file=yes
29681 echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29684 ac_cv_func_acl_get_file=no
29687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29688 conftest$ac_exeext conftest.$ac_ext
29690 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29691 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29692 if test $ac_cv_func_acl_get_file = yes; then
29695 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29696 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29697 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29698 echo $ECHO_N "(cached) $ECHO_C" >&6
29700 ac_check_lib_save_LIBS=$LIBS
29702 cat >conftest.$ac_ext <<_ACEOF
29705 cat confdefs.h >>conftest.$ac_ext
29706 cat >>conftest.$ac_ext <<_ACEOF
29707 /* end confdefs.h. */
29709 /* Override any GCC internal prototype to avoid an error.
29710 Use char because int might match the return type of a GCC
29711 builtin and then its argument prototype would still apply. */
29715 char acl_get_file ();
29719 return acl_get_file ();
29724 rm -f conftest.$ac_objext conftest$ac_exeext
29725 if { (ac_try="$ac_link"
29726 case "(($ac_try" in
29727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728 *) ac_try_echo=$ac_try;;
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731 (eval "$ac_link") 2>conftest.er1
29733 grep -v '^ *+' conftest.er1 >conftest.err
29735 cat conftest.err >&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); } && {
29738 test -z "$ac_c_werror_flag" ||
29739 test ! -s conftest.err
29740 } && test -s conftest$ac_exeext &&
29741 $as_test_x conftest$ac_exeext; then
29742 ac_cv_lib_acl_acl_get_file=yes
29744 echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29747 ac_cv_lib_acl_acl_get_file=no
29750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29751 conftest$ac_exeext conftest.$ac_ext
29752 LIBS=$ac_check_lib_save_LIBS
29754 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29755 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29756 if test $ac_cv_lib_acl_acl_get_file = yes; then
29757 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29759 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29760 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29761 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29762 echo $ECHO_N "(cached) $ECHO_C" >&6
29764 ac_check_lib_save_LIBS=$LIBS
29766 cat >conftest.$ac_ext <<_ACEOF
29769 cat confdefs.h >>conftest.$ac_ext
29770 cat >>conftest.$ac_ext <<_ACEOF
29771 /* end confdefs.h. */
29773 /* Override any GCC internal prototype to avoid an error.
29774 Use char because int might match the return type of a GCC
29775 builtin and then its argument prototype would still apply. */
29783 return acltotext ();
29788 rm -f conftest.$ac_objext conftest$ac_exeext
29789 if { (ac_try="$ac_link"
29790 case "(($ac_try" in
29791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29792 *) ac_try_echo=$ac_try;;
29794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29795 (eval "$ac_link") 2>conftest.er1
29797 grep -v '^ *+' conftest.er1 >conftest.err
29799 cat conftest.err >&5
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } && {
29802 test -z "$ac_c_werror_flag" ||
29803 test ! -s conftest.err
29804 } && test -s conftest$ac_exeext &&
29805 $as_test_x conftest$ac_exeext; then
29806 ac_cv_lib_sec_acltotext=yes
29808 echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29811 ac_cv_lib_sec_acltotext=no
29814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29815 conftest$ac_exeext conftest.$ac_ext
29816 LIBS=$ac_check_lib_save_LIBS
29818 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29819 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29820 if test $ac_cv_lib_sec_acltotext = yes; then
29821 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29830 if test $have_acl = yes; then
29831 cat >>confdefs.h <<\_ACEOF
29838 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29839 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29840 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29841 echo $ECHO_N "(cached) $ECHO_C" >&6
29843 ac_check_lib_save_LIBS=$LIBS
29844 LIBS="-lpthread $LIBS"
29845 cat >conftest.$ac_ext <<_ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h. */
29852 /* Override any GCC internal prototype to avoid an error.
29853 Use char because int might match the return type of a GCC
29854 builtin and then its argument prototype would still apply. */
29858 char pthread_create ();
29862 return pthread_create ();
29867 rm -f conftest.$ac_objext conftest$ac_exeext
29868 if { (ac_try="$ac_link"
29869 case "(($ac_try" in
29870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29871 *) ac_try_echo=$ac_try;;
29873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29874 (eval "$ac_link") 2>conftest.er1
29876 grep -v '^ *+' conftest.er1 >conftest.err
29878 cat conftest.err >&5
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); } && {
29881 test -z "$ac_c_werror_flag" ||
29882 test ! -s conftest.err
29883 } && test -s conftest$ac_exeext &&
29884 $as_test_x conftest$ac_exeext; then
29885 ac_cv_lib_pthread_pthread_create=yes
29887 echo "$as_me: failed program was:" >&5
29888 sed 's/^/| /' conftest.$ac_ext >&5
29890 ac_cv_lib_pthread_pthread_create=no
29893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29894 conftest$ac_exeext conftest.$ac_ext
29895 LIBS=$ac_check_lib_save_LIBS
29897 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29898 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29899 if test $ac_cv_lib_pthread_pthread_create = yes; then
29900 PTHREAD_LIB="-lpthread"
29902 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29903 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29904 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29905 echo $ECHO_N "(cached) $ECHO_C" >&6
29907 ac_check_lib_save_LIBS=$LIBS
29908 LIBS="-lpthreads $LIBS"
29909 cat >conftest.$ac_ext <<_ACEOF
29912 cat confdefs.h >>conftest.$ac_ext
29913 cat >>conftest.$ac_ext <<_ACEOF
29914 /* end confdefs.h. */
29916 /* Override any GCC internal prototype to avoid an error.
29917 Use char because int might match the return type of a GCC
29918 builtin and then its argument prototype would still apply. */
29922 char pthread_create ();
29926 return pthread_create ();
29931 rm -f conftest.$ac_objext conftest$ac_exeext
29932 if { (ac_try="$ac_link"
29933 case "(($ac_try" in
29934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29935 *) ac_try_echo=$ac_try;;
29937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29938 (eval "$ac_link") 2>conftest.er1
29940 grep -v '^ *+' conftest.er1 >conftest.err
29942 cat conftest.err >&5
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); } && {
29945 test -z "$ac_c_werror_flag" ||
29946 test ! -s conftest.err
29947 } && test -s conftest$ac_exeext &&
29948 $as_test_x conftest$ac_exeext; then
29949 ac_cv_lib_pthreads_pthread_create=yes
29951 echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29954 ac_cv_lib_pthreads_pthread_create=no
29957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29958 conftest$ac_exeext conftest.$ac_ext
29959 LIBS=$ac_check_lib_save_LIBS
29961 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29962 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29963 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29964 PTHREAD_LIB="-lpthreads"
29966 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29967 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29968 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29969 echo $ECHO_N "(cached) $ECHO_C" >&6
29971 ac_check_lib_save_LIBS=$LIBS
29973 cat >conftest.$ac_ext <<_ACEOF
29976 cat confdefs.h >>conftest.$ac_ext
29977 cat >>conftest.$ac_ext <<_ACEOF
29978 /* end confdefs.h. */
29980 /* Override any GCC internal prototype to avoid an error.
29981 Use char because int might match the return type of a GCC
29982 builtin and then its argument prototype would still apply. */
29986 char pthread_create ();
29990 return pthread_create ();
29995 rm -f conftest.$ac_objext conftest$ac_exeext
29996 if { (ac_try="$ac_link"
29997 case "(($ac_try" in
29998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29999 *) ac_try_echo=$ac_try;;
30001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30002 (eval "$ac_link") 2>conftest.er1
30004 grep -v '^ *+' conftest.er1 >conftest.err
30006 cat conftest.err >&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); } && {
30009 test -z "$ac_c_werror_flag" ||
30010 test ! -s conftest.err
30011 } && test -s conftest$ac_exeext &&
30012 $as_test_x conftest$ac_exeext; then
30013 ac_cv_lib_c_r_pthread_create=yes
30015 echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30018 ac_cv_lib_c_r_pthread_create=no
30021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30022 conftest$ac_exeext conftest.$ac_ext
30023 LIBS=$ac_check_lib_save_LIBS
30025 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30026 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30027 if test $ac_cv_lib_c_r_pthread_create = yes; then
30028 PTHREAD_LIB="-lc_r"
30030 { echo "$as_me:$LINENO: checking for pthread_create" >&5
30031 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30032 if test "${ac_cv_func_pthread_create+set}" = set; then
30033 echo $ECHO_N "(cached) $ECHO_C" >&6
30035 cat >conftest.$ac_ext <<_ACEOF
30038 cat confdefs.h >>conftest.$ac_ext
30039 cat >>conftest.$ac_ext <<_ACEOF
30040 /* end confdefs.h. */
30041 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30043 #define pthread_create innocuous_pthread_create
30045 /* System header to define __stub macros and hopefully few prototypes,
30046 which can conflict with char pthread_create (); below.
30047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30048 <limits.h> exists even on freestanding compilers. */
30051 # include <limits.h>
30053 # include <assert.h>
30056 #undef pthread_create
30058 /* Override any GCC internal prototype to avoid an error.
30059 Use char because int might match the return type of a GCC
30060 builtin and then its argument prototype would still apply. */
30064 char pthread_create ();
30065 /* The GNU C library defines this for functions which it implements
30066 to always fail with ENOSYS. Some functions are actually named
30067 something starting with __ and the normal name is an alias. */
30068 #if defined __stub_pthread_create || defined __stub___pthread_create
30075 return pthread_create ();
30080 rm -f conftest.$ac_objext conftest$ac_exeext
30081 if { (ac_try="$ac_link"
30082 case "(($ac_try" in
30083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30084 *) ac_try_echo=$ac_try;;
30086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30087 (eval "$ac_link") 2>conftest.er1
30089 grep -v '^ *+' conftest.er1 >conftest.err
30091 cat conftest.err >&5
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); } && {
30094 test -z "$ac_c_werror_flag" ||
30095 test ! -s conftest.err
30096 } && test -s conftest$ac_exeext &&
30097 $as_test_x conftest$ac_exeext; then
30098 ac_cv_func_pthread_create=yes
30100 echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30103 ac_cv_func_pthread_create=no
30106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30107 conftest$ac_exeext conftest.$ac_ext
30109 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30110 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30123 cat >>confdefs.h <<\_ACEOF
30129 CFLAGS=${CFLAGS--O}
30131 if test x$have_gcc = xyes ; then
30132 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30133 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30135 LDFLAGS=${LDFLAGS--O}
30136 DB_LIBS="${SQL_LFLAGS}"
30137 CPPFLAGS="$CPPFLAGS"
30165 # Finally we set appropriate distribution specific
30166 # variables and defaults
30168 # PFILES are platform specific files
30169 PFILES="platforms/Makefile"
30173 hostname=`uname -n | cut -d '.' -f 1`
30174 if test x${hostname} = x ; then
30175 hostname="localhost"
30177 case "$DISTNAME" in
30180 PSCMD="ps -e -o pid,comm"
30181 PFILES="${PFILES} \
30182 platforms/aix/Makefile"
30183 TAPEDRIVE="/dev/rmt0.1"
30187 PTHREAD_LIB="-lpthread -lexc"
30188 if test "${CC}" = "gcc" ; then
30195 TAPEDRIVE="/dev/nrmt0"
30198 DISTVER=`uname -a |awk '{print $3}'`
30199 TAPEDRIVE="/dev/nrmt0"
30200 PTHREAD_LIB="-pthread"
30201 CFLAGS="${CFLAGS} -pthread"
30202 PSCMD="ps -ax -o pid,command"
30205 PFILES="${PFILES} \
30206 platforms/bsdi/Makefile \
30207 platforms/bsdi/bacula-fd \
30208 platforms/bsdi/bacula-sd \
30209 platforms/bsdi/bacula-dir"
30210 largefile_support="yes"
30213 DISTVER=`uname -a |awk '{print $3}'`
30214 TAPEDRIVE="/dev/nrst0"
30216 WCFLAGS="-mwindows"
30217 WLDFLAGS="-mwindows"
30221 TAPEDRIVE="/dev/nst0"
30222 PSCMD="ps -e -o pid,command"
30224 PFILES="${PFILES} \
30225 platforms/darwin/Makefile"
30228 if `grep -q ubuntu /etc/apt/sources.list`; then
30231 DISTVER=`cat /etc/debian_version`
30232 if test -f /etc/lsb-release ; then
30234 if test "x$DISTRIB_ID" != "x" ; then
30235 DISTNAME=$DISTRIB_ID
30237 if test "x$DISTRIB_RELEASE" != "x" ; then
30238 DISTVER=$DISTRIB_RELEASE
30241 if test "$DISTNAME" = "Ubuntu" ; then
30244 TAPEDRIVE="/dev/nst0"
30245 PSCMD="ps -e -o pid,command"
30246 if test "$DISTNAME" = "ubuntu" ; then
30247 PFILES="${PFILES} \
30248 platforms/ubuntu/Makefile \
30249 platforms/ubuntu/bacula-fd \
30250 platforms/ubuntu/bacula-sd \
30251 platforms/ubuntu/bacula-dir"
30253 PFILES="${PFILES} \
30254 platforms/debian/Makefile \
30255 platforms/debian/bacula-fd \
30256 platforms/debian/bacula-sd \
30257 platforms/debian/bacula-dir"
30261 DISTVER=`uname -a |awk '{print $3}'`
30262 VER=`echo $DISTVER | cut -c 1`
30263 if test x$VER = x4 ; then
30264 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30265 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30269 TAPEDRIVE="/dev/nrsa0"
30270 PSCMD="ps -ax -o pid,command"
30271 PFILES="${PFILES} \
30272 platforms/freebsd/Makefile \
30273 platforms/freebsd/bacula-fd \
30274 platforms/freebsd/bacula-sd \
30275 platforms/freebsd/bacula-dir"
30276 largefile_support="yes"
30279 PSCMD="UNIX95=1; ps -e -o pid,comm"
30280 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30282 TAPEDRIVE="/dev/rmt/0hnb"
30283 PTHREAD_LIB="-lpthread"
30284 cat >>confdefs.h <<\_ACEOF
30285 #define _INCLUDE_LONGLONG 1
30291 TAPEDRIVE="/dev/rmt/0cbn"
30292 PSCMD="ps -e -o pid,comm"
30293 PFILES="${PFILES} \
30294 platforms/irix/Makefile \
30295 platforms/irix/bacula-fd \
30296 platforms/irix/bacula-sd \
30297 platforms/irix/bacula-dir"
30300 DISTVER=`uname -a |awk '{print $3}'`
30303 TAPEDRIVE="/dev/nrst0"
30304 PSCMD="ps -ax -o pid,command"
30305 PTHREAD_LIB="-pthread"
30306 CFLAGS="${CFLAGS} -pthread"
30309 DISTVER=`uname -a |awk '{print $3}'`
30312 TAPEDRIVE="/dev/nrst0"
30313 PSCMD="ps -ax -o pid,command"
30314 PTHREAD_LIB="-pthread"
30315 CFLAGS="${CFLAGS} -pthread"
30316 PFILES="${PFILES} \
30317 platforms/openbsd/Makefile \
30318 platforms/openbsd/bacula-fd \
30319 platforms/openbsd/bacula-sd \
30320 platforms/openbsd/bacula-dir"
30323 if test -f /etc/whitebox-release ; then
30324 f=/etc/whitebox-release
30326 f=/etc/redhat-release
30328 if test `cat $f | grep release |\
30329 cut -f 3 -d ' '`x = "Enterprise"x ; then
30330 DISTVER="Enterprise "`cat $f | grep release |\
30333 DISTVER=`cat /etc/redhat-release | grep release |\
30336 TAPEDRIVE="/dev/nst0"
30337 PSCMD="ps -e -o pid,command"
30338 PFILES="${PFILES} \
30339 platforms/redhat/Makefile \
30340 platforms/redhat/bacula-fd \
30341 platforms/redhat/bacula-sd \
30342 platforms/redhat/bacula-dir \
30343 platforms/redhat/bacula.spec \
30347 DISTVER=`cat /etc/mandrake-release | grep release |\
30349 TAPEDRIVE="/dev/nst0"
30350 PSCMD="ps -e -o pid,command"
30351 PFILES="${PFILES} \
30352 platforms/mandrake/Makefile \
30353 platforms/mandrake/bacula-fd \
30354 platforms/mandrake/bacula-sd \
30355 platforms/mandrake/bacula-dir \
30356 platforms/mandrake/bacula.spec \
30360 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30361 TAPEDRIVE="/dev/nst0"
30362 PSCMD="ps -e -o pid,command"
30363 PFILES="${PFILES} \
30364 platforms/gentoo/Makefile \
30365 platforms/gentoo/bacula-init \
30366 platforms/gentoo/bacula-fd \
30367 platforms/gentoo/bacula-sd \
30368 platforms/gentoo/bacula-dir"
30371 DISTVER=`cat /etc/slackware-version`
30372 TAPEDRIVE="/dev/nst0"
30373 PSCMD="ps -e -o pid,command"
30374 PFILES="${PFILES} \
30375 platforms/slackware/Makefile \
30376 platforms/slackware/rc.bacula-fd \
30377 platforms/slackware/rc.bacula-sd \
30378 platforms/slackware/rc.bacula-dir\
30379 platforms/slackware/functions.bacula"
30383 TAPEDRIVE="/dev/rmt/0cbn"
30384 PSCMD="ps -e -o pid,comm"
30385 PFILES="${PFILES} \
30386 platforms/solaris/Makefile \
30387 platforms/solaris/bacula-fd \
30388 platforms/solaris/bacula-sd \
30389 platforms/solaris/bacula-dir"
30390 if test x$DISTVER = x5.6 ; then
30391 cat >>confdefs.h <<\_ACEOF
30392 #define HAVE_OLD_SOCKOPT 1
30396 LIBS="$LIBS -lresolv"
30399 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30401 TAPEDRIVE="/dev/nst0"
30402 PSCMD="ps -e -o pid,command"
30403 PFILES="${PFILES} \
30404 platforms/suse/Makefile \
30405 platforms/suse/bacula-fd \
30406 platforms/suse/bacula-sd \
30407 platforms/suse/bacula-dir \
30408 platforms/suse/bacula \
30409 platforms/suse/bacula.spec"
30414 TAPEDRIVE="/dev/nst0"
30415 PSCMD="ps -e -o pid,command"
30416 PFILES="${PFILES} \
30417 platforms/suse/Makefile \
30418 platforms/suse/bacula-fd \
30419 platforms/suse/bacula-sd \
30420 platforms/suse/bacula-dir"
30424 TAPEDRIVE="/dev/nst0"
30427 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30433 LIBS="$PTHREAD_LIB $LIBS"
30435 cat >>confdefs.h <<_ACEOF
30439 cat >>confdefs.h <<_ACEOF
30450 MCOMMON=./autoconf/Make.common
30453 if test "x${subsysdir}" = "x${sbindir}" ; then
30456 echo "You have set both --sbindir and --with-subsys-dir"
30457 echo " equal to: ${subsysdir} "
30458 echo "This is not permitted. Please reconfigure."
30460 echo "Aborting configuration ..."
30466 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"
30468 ac_config_commands="$ac_config_commands default"
30470 cat >confcache <<\_ACEOF
30471 # This file is a shell script that caches the results of configure
30472 # tests run on this system so they can be shared between configure
30473 # scripts and configure runs, see configure's option --config-cache.
30474 # It is not useful on other systems. If it contains results you don't
30475 # want to keep, you may remove or edit it.
30477 # config.status only pays attention to the cache file if you give it
30478 # the --recheck option to rerun configure.
30480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30482 # following values.
30486 # The following way of writing the cache mishandles newlines in values,
30487 # but we know of no workaround that is simple, portable, and efficient.
30488 # So, we kill variables containing newlines.
30489 # Ultrix sh set writes to stderr and can't be redirected directly,
30490 # and sets the high bit in the cache file unless we assign to the vars.
30492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30493 eval ac_val=\$$ac_var
30497 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30498 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30501 _ | IFS | as_nl) ;; #(
30502 *) $as_unset $ac_var ;;
30508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30509 *${as_nl}ac_space=\ *)
30510 # `set' does not quote correctly, so add quotes (double-quote
30511 # substitution turns \\\\ into \\, and sed turns \\ into \).
30514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30517 # `set' quotes correctly as required by POSIX, so do not add quotes.
30518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30532 if test -w "$cache_file"; then
30533 test "x$cache_file" != "x/dev/null" &&
30534 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30535 echo "$as_me: updating cache $cache_file" >&6;}
30536 cat confcache >$cache_file
30538 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30539 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30545 # Let make expand exec_prefix.
30546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30548 DEFS=-DHAVE_CONFIG_H
30552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30553 # 1. Remove the extension, and $U if already installed.
30554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30555 ac_i=`echo "$ac_i" | sed "$ac_script"`
30556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30557 # will be set to the directory where LIBOBJS objects are built.
30558 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30559 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30561 LIBOBJS=$ac_libobjs
30563 LTLIBOBJS=$ac_ltlibobjs
30567 : ${CONFIG_STATUS=./config.status}
30568 ac_clean_files_save=$ac_clean_files
30569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30570 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30571 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30572 cat >$CONFIG_STATUS <<_ACEOF
30574 # Generated by $as_me.
30575 # Run this file to recreate the current configuration.
30576 # Compiler output produced by configure, useful for debugging
30577 # configure, is in config.log if it exists.
30580 ac_cs_recheck=false
30582 SHELL=\${CONFIG_SHELL-$SHELL}
30585 cat >>$CONFIG_STATUS <<\_ACEOF
30586 ## --------------------- ##
30587 ## M4sh Initialization. ##
30588 ## --------------------- ##
30590 # Be more Bourne compatible
30591 DUALCASE=1; export DUALCASE # for MKS sh
30592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30596 # is contrary to our usage. Disable this feature.
30597 alias -g '${1+"$@"}'='"$@"'
30598 setopt NO_GLOB_SUBST
30600 case `(set -o) 2>/dev/null` in
30601 *posix*) set -o posix ;;
30610 # Avoid depending upon Character Ranges.
30611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30614 as_cr_digits='0123456789'
30615 as_cr_alnum=$as_cr_Letters$as_cr_digits
30617 # The user is always right.
30618 if test "${PATH_SEPARATOR+set}" != set; then
30619 echo "#! /bin/sh" >conf$$.sh
30620 echo "exit 0" >>conf$$.sh
30622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30630 # Support unset when possible.
30631 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30639 # We need space, tab and new line, in precisely that order. Quoting is
30640 # there to prevent editors from complaining about space-tab.
30641 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30642 # splitting by setting IFS to empty value.)
30647 # Find who we are. Look in the path if we contain no directory separator.
30649 *[\\/]* ) as_myself=$0 ;;
30650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30651 for as_dir in $PATH
30654 test -z "$as_dir" && as_dir=.
30655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30661 # We did not find ourselves, most probably we were run as `sh COMMAND'
30662 # in which case we are not to be found in the path.
30663 if test "x$as_myself" = x; then
30666 if test ! -f "$as_myself"; then
30667 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30668 { (exit 1); exit 1; }
30671 # Work around bugs in pre-3.0 UWIN ksh.
30672 for as_var in ENV MAIL MAILPATH
30673 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30683 LC_TELEPHONE LC_TIME
30685 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30686 eval $as_var=C; export $as_var
30688 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30692 # Required to use basename.
30693 if expr a : '\(a\)' >/dev/null 2>&1 &&
30694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30700 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30701 as_basename=basename
30707 # Name of the executable.
30708 as_me=`$as_basename -- "$0" ||
30709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30710 X"$0" : 'X\(//\)$' \| \
30711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30713 sed '/^.*\/\([^/][^/]*\)\/*$/{
30732 as_lineno_1=$LINENO
30733 as_lineno_2=$LINENO
30734 test "x$as_lineno_1" != "x$as_lineno_2" &&
30735 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30737 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30738 # uniformly replaced by the line number. The first 'sed' inserts a
30739 # line-number line after each line using $LINENO; the second 'sed'
30740 # does the real work. The second script uses 'N' to pair each
30741 # line-number line with the line containing $LINENO, and appends
30742 # trailing '-' during substitution so that $LINENO is not a special
30743 # case at line end.
30744 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30745 # scripts with optimization help from Paolo Bonzini. Blame Lee
30746 # E. McMahon (1931-1989) for sed's syntax. :-)
30758 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30761 ' >$as_me.lineno &&
30762 chmod +x "$as_me.lineno" ||
30763 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30764 { (exit 1); exit 1; }; }
30766 # Don't try to exec as it changes $[0], causing all sort of problems
30767 # (the dirname of $[0] is not the place where we might find the
30768 # original and so on. Autoconf is especially sensitive to this).
30769 . "./$as_me.lineno"
30770 # Exit status is that of the last command.
30775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30781 ECHO_C= ECHO_N= ECHO_T=
30782 case `echo -n x` in
30784 case `echo 'x\c'` in
30785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30792 if expr a : '\(a\)' >/dev/null 2>&1 &&
30793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30799 rm -f conf$$ conf$$.exe conf$$.file
30800 if test -d conf$$.dir; then
30801 rm -f conf$$.dir/conf$$.file
30807 if ln -s conf$$.file conf$$ 2>/dev/null; then
30809 # ... but there are two gotchas:
30810 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30811 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30812 # In both cases, we have to default to `cp -p'.
30813 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30815 elif ln conf$$.file conf$$ 2>/dev/null; then
30820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30821 rmdir conf$$.dir 2>/dev/null
30823 if mkdir -p . 2>/dev/null; then
30826 test -d ./-p && rmdir ./-p
30830 if test -x / >/dev/null 2>&1; then
30831 as_test_x='test -x'
30833 if ls -dL / >/dev/null 2>&1; then
30840 if test -d "$1"; then
30846 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30847 ???[sx]*):;;*)false;;esac;fi
30851 as_executable_p=$as_test_x
30853 # Sed expression to map a string onto a valid CPP name.
30854 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30856 # Sed expression to map a string onto a valid variable name.
30857 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30862 # Save the log message, to keep $[0] and so on meaningful, and to
30863 # report actual input values of CONFIG_FILES etc. instead of their
30864 # values after options handling.
30866 This file was extended by $as_me, which was
30867 generated by GNU Autoconf 2.61. Invocation command line was
30869 CONFIG_FILES = $CONFIG_FILES
30870 CONFIG_HEADERS = $CONFIG_HEADERS
30871 CONFIG_LINKS = $CONFIG_LINKS
30872 CONFIG_COMMANDS = $CONFIG_COMMANDS
30875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30880 cat >>$CONFIG_STATUS <<_ACEOF
30881 # Files that config.status was made for.
30882 config_files="$ac_config_files"
30883 config_headers="$ac_config_headers"
30884 config_commands="$ac_config_commands"
30888 cat >>$CONFIG_STATUS <<\_ACEOF
30890 \`$as_me' instantiates files from templates according to the
30891 current configuration.
30893 Usage: $0 [OPTIONS] [FILE]...
30895 -h, --help print this help, then exit
30896 -V, --version print version number and configuration settings, then exit
30897 -q, --quiet do not print progress messages
30898 -d, --debug don't remove temporary files
30899 --recheck update $as_me by reconfiguring in the same conditions
30900 --file=FILE[:TEMPLATE]
30901 instantiate the configuration file FILE
30902 --header=FILE[:TEMPLATE]
30903 instantiate the configuration header FILE
30905 Configuration files:
30908 Configuration headers:
30911 Configuration commands:
30914 Report bugs to <bug-autoconf@gnu.org>."
30917 cat >>$CONFIG_STATUS <<_ACEOF
30920 configured by $0, generated by GNU Autoconf 2.61,
30921 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30923 Copyright (C) 2006 Free Software Foundation, Inc.
30924 This config.status script is free software; the Free Software Foundation
30925 gives unlimited permission to copy, distribute and modify it."
30932 cat >>$CONFIG_STATUS <<\_ACEOF
30933 # If no file are specified by the user, then we need to provide default
30934 # value. By we need to know if files were specified by the user.
30940 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30941 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30952 # Handling of the options.
30953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30955 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30956 echo "$ac_cs_version"; exit ;;
30957 --debug | --debu | --deb | --de | --d | -d )
30959 --file | --fil | --fi | --f )
30961 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30962 ac_need_defaults=false;;
30963 --header | --heade | --head | --hea )
30965 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30966 ac_need_defaults=false;;
30968 # Conflict between --help and --header
30969 { echo "$as_me: error: ambiguous option: $1
30970 Try \`$0 --help' for more information." >&2
30971 { (exit 1); exit 1; }; };;
30972 --help | --hel | -h )
30973 echo "$ac_cs_usage"; exit ;;
30974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30978 # This is an error.
30979 -*) { echo "$as_me: error: unrecognized option: $1
30980 Try \`$0 --help' for more information." >&2
30981 { (exit 1); exit 1; }; } ;;
30983 *) ac_config_targets="$ac_config_targets $1"
30984 ac_need_defaults=false ;;
30990 ac_configure_extra_args=
30992 if $ac_cs_silent; then
30994 ac_configure_extra_args="$ac_configure_extra_args --silent"
30998 cat >>$CONFIG_STATUS <<_ACEOF
30999 if \$ac_cs_recheck; then
31000 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31001 CONFIG_SHELL=$SHELL
31002 export CONFIG_SHELL
31003 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31007 cat >>$CONFIG_STATUS <<\_ACEOF
31011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31012 ## Running $as_me. ##
31018 cat >>$CONFIG_STATUS <<_ACEOF
31022 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31023 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31025 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31026 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31027 LINGUAS="${LINGUAS-%UNSET%}"
31032 cat >>$CONFIG_STATUS <<\_ACEOF
31034 # Handling of arguments.
31035 for ac_config_target in $ac_config_targets
31037 case $ac_config_target in
31038 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31039 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31040 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31041 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31042 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31043 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31044 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31045 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31046 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31047 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31048 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31049 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31050 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31051 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31052 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31053 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31054 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31055 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31056 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31057 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31058 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31059 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31060 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31061 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31062 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31063 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31064 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31065 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31066 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31067 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31068 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31069 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31070 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31071 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31072 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31073 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31074 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31075 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31076 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31077 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31078 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31079 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31080 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31081 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31082 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31083 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31084 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31085 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31086 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31087 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31088 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31089 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31090 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31091 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31092 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31093 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31094 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31095 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31096 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31097 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31098 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31099 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31100 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31101 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31102 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31103 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31104 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31105 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31106 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31107 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31108 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31109 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31110 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31111 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31112 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31113 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31114 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31115 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31116 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31117 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31118 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31119 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31120 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31121 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31122 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31123 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31124 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31125 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31126 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31127 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31128 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31129 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31130 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31131 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31132 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31133 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31134 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31135 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31136 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31137 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31138 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31139 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31140 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31141 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31142 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31143 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31144 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31145 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31146 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31147 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31149 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31150 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31151 { (exit 1); exit 1; }; };;
31156 # If the user did not use the arguments to specify the items to instantiate,
31157 # then the envvar interface is used. Set only those that are not.
31158 # We use the long form for the default assignment because of an extremely
31159 # bizarre bug on SunOS 4.1.3.
31160 if $ac_need_defaults; then
31161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31166 # Have a temporary directory for convenience. Make it in the build tree
31167 # simply because there is no reason against having it here, and in addition,
31168 # creating and moving files from /tmp can sometimes cause problems.
31169 # Hook for its removal unless debugging.
31170 # Note that there is a small window in which the directory will not be cleaned:
31171 # after its creation but before its name has been assigned to `$tmp'.
31175 trap 'exit_status=$?
31176 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31178 trap '{ (exit 1); exit 1; }' 1 2 13 15
31180 # Create a (secure) tmp directory for tmp files.
31183 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31184 test -n "$tmp" && test -d "$tmp"
31187 tmp=./conf$$-$RANDOM
31188 (umask 077 && mkdir "$tmp")
31191 echo "$me: cannot create a temporary directory in ." >&2
31192 { (exit 1); exit 1; }
31196 # Set up the sed scripts for CONFIG_FILES section.
31199 # No need to generate the scripts if there are no CONFIG_FILES.
31200 # This happens for instance when ./config.status config.h
31201 if test -n "$CONFIG_FILES"; then
31205 # Create sed commands to just substitute file output variables.
31207 # Remaining file output variables are in a fragment that also has non-file
31213 for ac_last_try in false false false false false :; do
31214 cat >conf$$subs.sed <<_ACEOF
31215 SHELL!$SHELL$ac_delim
31216 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31217 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31218 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31219 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31220 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31221 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31222 exec_prefix!$exec_prefix$ac_delim
31223 prefix!$prefix$ac_delim
31224 program_transform_name!$program_transform_name$ac_delim
31225 bindir!$bindir$ac_delim
31226 sbindir!$sbindir$ac_delim
31227 libexecdir!$libexecdir$ac_delim
31228 datarootdir!$datarootdir$ac_delim
31229 datadir!$datadir$ac_delim
31230 sysconfdir!$sysconfdir$ac_delim
31231 sharedstatedir!$sharedstatedir$ac_delim
31232 localstatedir!$localstatedir$ac_delim
31233 includedir!$includedir$ac_delim
31234 oldincludedir!$oldincludedir$ac_delim
31235 docdir!$docdir$ac_delim
31236 infodir!$infodir$ac_delim
31237 htmldir!$htmldir$ac_delim
31238 dvidir!$dvidir$ac_delim
31239 pdfdir!$pdfdir$ac_delim
31240 psdir!$psdir$ac_delim
31241 libdir!$libdir$ac_delim
31242 localedir!$localedir$ac_delim
31243 mandir!$mandir$ac_delim
31244 DEFS!$DEFS$ac_delim
31245 ECHO_C!$ECHO_C$ac_delim
31246 ECHO_N!$ECHO_N$ac_delim
31247 ECHO_T!$ECHO_T$ac_delim
31248 LIBS!$LIBS$ac_delim
31249 build_alias!$build_alias$ac_delim
31250 host_alias!$host_alias$ac_delim
31251 target_alias!$target_alias$ac_delim
31252 BUILD_DIR!$BUILD_DIR$ac_delim
31253 TOP_DIR!$TOP_DIR$ac_delim
31254 TRUEPRG!$TRUEPRG$ac_delim
31255 FALSEPRG!$FALSEPRG$ac_delim
31256 VERSION!$VERSION$ac_delim
31257 DATE!$DATE$ac_delim
31258 LSMDATE!$LSMDATE$ac_delim
31260 CFLAGS!$CFLAGS$ac_delim
31261 LDFLAGS!$LDFLAGS$ac_delim
31262 CPPFLAGS!$CPPFLAGS$ac_delim
31263 ac_ct_CC!$ac_ct_CC$ac_delim
31264 EXEEXT!$EXEEXT$ac_delim
31265 OBJEXT!$OBJEXT$ac_delim
31267 CXXFLAGS!$CXXFLAGS$ac_delim
31268 ac_ct_CXX!$ac_ct_CXX$ac_delim
31270 GREP!$GREP$ac_delim
31271 EGREP!$EGREP$ac_delim
31272 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31273 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31274 INSTALL_DATA!$INSTALL_DATA$ac_delim
31275 RANLIB!$RANLIB$ac_delim
31280 ECHO!$ECHO$ac_delim
31284 OPENSSL!$OPENSSL$ac_delim
31287 MKISOFS!$MKISOFS$ac_delim
31288 PYTHON!$PYTHON$ac_delim
31289 GROWISOFS!$GROWISOFS$ac_delim
31290 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31291 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31292 PKGCONFIG!$PKGCONFIG$ac_delim
31293 QMAKE!$QMAKE$ac_delim
31294 QMAKEQT4!$QMAKEQT4$ac_delim
31295 WXCONFIG!$WXCONFIG$ac_delim
31296 WXFLAGS!$WXFLAGS$ac_delim
31297 CDRECORD!$CDRECORD$ac_delim
31298 PIDOF!$PIDOF$ac_delim
31300 ARFLAGS!$ARFLAGS$ac_delim
31301 MAKE_SHELL!$MAKE_SHELL$ac_delim
31302 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31303 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31304 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31305 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31306 build!$build$ac_delim
31307 build_cpu!$build_cpu$ac_delim
31308 build_vendor!$build_vendor$ac_delim
31311 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31313 elif $ac_last_try; then
31314 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31315 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31316 { (exit 1); exit 1; }; }
31318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31322 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31323 if test -n "$ac_eof"; then
31324 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31325 ac_eof=`expr $ac_eof + 1`
31328 cat >>$CONFIG_STATUS <<_ACEOF
31329 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31331 /^[ ]*@MCOMMON@[ ]*$/{
31337 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31338 s/^/s,@/; s/!/@,|#_!!_#|/
31341 s/'"$ac_delim"'$/,g/; t
31343 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31344 ' >>$CONFIG_STATUS <conf$$subs.sed
31345 rm -f conf$$subs.sed
31346 cat >>$CONFIG_STATUS <<_ACEOF
31352 for ac_last_try in false false false false false :; do
31353 cat >conf$$subs.sed <<_ACEOF
31354 build_os!$build_os$ac_delim
31355 host!$host$ac_delim
31356 host_cpu!$host_cpu$ac_delim
31357 host_vendor!$host_vendor$ac_delim
31358 host_os!$host_os$ac_delim
31359 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31360 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31361 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31362 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31363 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31364 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31365 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31366 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31367 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31368 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31369 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31370 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31371 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31372 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31373 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31374 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31375 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31376 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31377 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31378 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31379 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31380 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31381 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31382 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31383 SET_MAKE!$SET_MAKE$ac_delim
31384 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31385 USE_NLS!$USE_NLS$ac_delim
31386 MSGFMT!$MSGFMT$ac_delim
31387 GMSGFMT!$GMSGFMT$ac_delim
31388 XGETTEXT!$XGETTEXT$ac_delim
31389 MSGMERGE!$MSGMERGE$ac_delim
31390 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31391 LIBICONV!$LIBICONV$ac_delim
31392 LTLIBICONV!$LTLIBICONV$ac_delim
31393 INTLLIBS!$INTLLIBS$ac_delim
31394 LIBINTL!$LIBINTL$ac_delim
31395 LTLIBINTL!$LTLIBINTL$ac_delim
31396 POSUB!$POSUB$ac_delim
31397 GLIBC2!$GLIBC2$ac_delim
31398 ALLOCA!$ALLOCA$ac_delim
31399 GLIBC21!$GLIBC21$ac_delim
31400 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31401 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31402 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31403 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31404 INTLBISON!$INTLBISON$ac_delim
31405 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31406 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31407 CATOBJEXT!$CATOBJEXT$ac_delim
31408 DATADIRNAME!$DATADIRNAME$ac_delim
31409 INSTOBJEXT!$INSTOBJEXT$ac_delim
31410 GENCAT!$GENCAT$ac_delim
31411 INTLOBJS!$INTLOBJS$ac_delim
31412 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31413 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31414 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31415 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31416 GNOME_LIBS!$GNOME_LIBS$ac_delim
31417 GNOME_DIR!$GNOME_DIR$ac_delim
31418 BAT_DIR!$BAT_DIR$ac_delim
31419 QWT_INC!$QWT_INC$ac_delim
31420 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31421 QWT_LIB!$QWT_LIB$ac_delim
31423 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31424 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31425 WX_DIR!$WX_DIR$ac_delim
31426 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31427 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31428 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31429 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31430 STATIC_FD!$STATIC_FD$ac_delim
31431 STATIC_SD!$STATIC_SD$ac_delim
31432 STATIC_DIR!$STATIC_DIR$ac_delim
31433 STATIC_CONS!$STATIC_CONS$ac_delim
31434 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31435 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31436 ALL_DIRS!$ALL_DIRS$ac_delim
31437 DIRD_DIR!$DIRD_DIR$ac_delim
31438 DIR_TOOLS!$DIR_TOOLS$ac_delim
31439 STORED_DIR!$STORED_DIR$ac_delim
31440 CONS_INC!$CONS_INC$ac_delim
31441 CONS_OBJ!$CONS_OBJ$ac_delim
31442 CONS_SRC!$CONS_SRC$ac_delim
31443 CONS_LIBS!$CONS_LIBS$ac_delim
31444 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31445 READLINE_SRC!$READLINE_SRC$ac_delim
31446 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31447 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31448 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31449 OPENSSL_INC!$OPENSSL_INC$ac_delim
31450 working_dir!$working_dir$ac_delim
31453 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31455 elif $ac_last_try; then
31456 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31457 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31458 { (exit 1); exit 1; }; }
31460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31464 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31465 if test -n "$ac_eof"; then
31466 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31467 ac_eof=`expr $ac_eof + 1`
31470 cat >>$CONFIG_STATUS <<_ACEOF
31471 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31475 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31476 s/^/s,@/; s/!/@,|#_!!_#|/
31479 s/'"$ac_delim"'$/,g/; t
31481 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31482 ' >>$CONFIG_STATUS <conf$$subs.sed
31483 rm -f conf$$subs.sed
31484 cat >>$CONFIG_STATUS <<_ACEOF
31490 for ac_last_try in false false false false false :; do
31491 cat >conf$$subs.sed <<_ACEOF
31492 archivedir!$archivedir$ac_delim
31493 scriptdir!$scriptdir$ac_delim
31494 dump_email!$dump_email$ac_delim
31495 job_email!$job_email$ac_delim
31496 smtp_host!$smtp_host$ac_delim
31497 piddir!$piddir$ac_delim
31498 subsysdir!$subsysdir$ac_delim
31499 baseport!$baseport$ac_delim
31500 dir_port!$dir_port$ac_delim
31501 fd_port!$fd_port$ac_delim
31502 sd_port!$sd_port$ac_delim
31503 dir_password!$dir_password$ac_delim
31504 fd_password!$fd_password$ac_delim
31505 sd_password!$sd_password$ac_delim
31506 mon_dir_password!$mon_dir_password$ac_delim
31507 mon_fd_password!$mon_fd_password$ac_delim
31508 mon_sd_password!$mon_sd_password$ac_delim
31509 db_name!$db_name$ac_delim
31510 db_user!$db_user$ac_delim
31511 db_password!$db_password$ac_delim
31512 dir_user!$dir_user$ac_delim
31513 dir_group!$dir_group$ac_delim
31514 sd_user!$sd_user$ac_delim
31515 sd_group!$sd_group$ac_delim
31516 fd_user!$fd_user$ac_delim
31517 fd_group!$fd_group$ac_delim
31518 SBINPERM!$SBINPERM$ac_delim
31519 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31520 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31521 SQL_BINDIR!$SQL_BINDIR$ac_delim
31522 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31523 DB_PROG!$DB_PROG$ac_delim
31524 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31525 cats!$cats$ac_delim
31526 DB_TYPE!$DB_TYPE$ac_delim
31527 GETCONF!$GETCONF$ac_delim
31528 XMKMF!$XMKMF$ac_delim
31529 X_CFLAGS!$X_CFLAGS$ac_delim
31530 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31531 X_LIBS!$X_LIBS$ac_delim
31532 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31533 LIBOBJS!$LIBOBJS$ac_delim
31534 FDLIBS!$FDLIBS$ac_delim
31535 DEBUG!$DEBUG$ac_delim
31536 DINCLUDE!$DINCLUDE$ac_delim
31537 DLIB!$DLIB$ac_delim
31538 DB_LIBS!$DB_LIBS$ac_delim
31539 WCFLAGS!$WCFLAGS$ac_delim
31540 WLDFLAGS!$WLDFLAGS$ac_delim
31541 WRAPLIBS!$WRAPLIBS$ac_delim
31542 OBJLIST!$OBJLIST$ac_delim
31543 hostname!$hostname$ac_delim
31544 TAPEDRIVE!$TAPEDRIVE$ac_delim
31545 PSCMD!$PSCMD$ac_delim
31546 WIN32!$WIN32$ac_delim
31547 MACOSX!$MACOSX$ac_delim
31548 DISTNAME!$DISTNAME$ac_delim
31549 DISTVER!$DISTVER$ac_delim
31550 LTLIBOBJS!$LTLIBOBJS$ac_delim
31553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
31555 elif $ac_last_try; then
31556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31558 { (exit 1); exit 1; }; }
31560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31564 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31565 if test -n "$ac_eof"; then
31566 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31567 ac_eof=`expr $ac_eof + 1`
31570 cat >>$CONFIG_STATUS <<_ACEOF
31571 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31576 s/^/s,@/; s/!/@,|#_!!_#|/
31579 s/'"$ac_delim"'$/,g/; t
31581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31582 ' >>$CONFIG_STATUS <conf$$subs.sed
31583 rm -f conf$$subs.sed
31584 cat >>$CONFIG_STATUS <<_ACEOF
31591 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31592 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31593 # trailing colons and then remove the whole line if VPATH becomes empty
31594 # (actually we leave an empty line to preserve line numbers).
31595 if test "x$srcdir" = x.; then
31596 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31597 s/:*\$(srcdir):*/:/
31598 s/:*\${srcdir}:*/:/
31600 s/^\([^=]*=[ ]*\):*/\1/
31606 cat >>$CONFIG_STATUS <<\_ACEOF
31607 fi # test -n "$CONFIG_FILES"
31610 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31613 :[FHLC]) ac_mode=$ac_tag; continue;;
31615 case $ac_mode$ac_tag in
31617 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31618 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31619 { (exit 1); exit 1; }; };;
31620 :[FH]-) ac_tag=-:-;;
31621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31638 -) ac_f="$tmp/stdin";;
31639 *) # Look for the file first in the build tree, then in the source tree
31640 # (if the path is not absolute). The absolute path cannot be DOS-style,
31641 # because $ac_f cannot contain `:'.
31645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31647 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31648 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31649 { (exit 1); exit 1; }; };;
31651 ac_file_inputs="$ac_file_inputs $ac_f"
31654 # Let's still pretend it is `configure' which instantiates (i.e., don't
31655 # use $as_me), people would be surprised to read:
31656 # /* config.h. Generated by config.status. */
31657 configure_input="Generated from "`IFS=:
31658 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31659 if test x"$ac_file" != x-; then
31660 configure_input="$ac_file. $configure_input"
31661 { echo "$as_me:$LINENO: creating $ac_file" >&5
31662 echo "$as_me: creating $ac_file" >&6;}
31666 *:-:* | *:-) cat >"$tmp/stdin";;
31671 ac_dir=`$as_dirname -- "$ac_file" ||
31672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31673 X"$ac_file" : 'X\(//\)[^/]' \| \
31674 X"$ac_file" : 'X\(//\)$' \| \
31675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31681 /^X\(\/\/\)[^/].*/{
31696 -*) as_dir=./$as_dir;;
31698 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31702 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31703 *) as_qdir=$as_dir;;
31705 as_dirs="'$as_qdir' $as_dirs"
31706 as_dir=`$as_dirname -- "$as_dir" ||
31707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31708 X"$as_dir" : 'X\(//\)[^/]' \| \
31709 X"$as_dir" : 'X\(//\)$' \| \
31710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31716 /^X\(\/\/\)[^/].*/{
31729 test -d "$as_dir" && break
31731 test -z "$as_dirs" || eval "mkdir $as_dirs"
31732 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31733 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31734 { (exit 1); exit 1; }; }; }
31738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31740 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31741 # A ".." for each directory in $ac_dir_suffix.
31742 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31743 case $ac_top_builddir_sub in
31744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31748 ac_abs_top_builddir=$ac_pwd
31749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31750 # for backward compatibility:
31751 ac_top_builddir=$ac_top_build_prefix
31754 .) # We are building in place.
31756 ac_top_srcdir=$ac_top_builddir_sub
31757 ac_abs_top_srcdir=$ac_pwd ;;
31758 [\\/]* | ?:[\\/]* ) # Absolute name.
31759 ac_srcdir=$srcdir$ac_dir_suffix;
31760 ac_top_srcdir=$srcdir
31761 ac_abs_top_srcdir=$srcdir ;;
31762 *) # Relative name.
31763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31764 ac_top_srcdir=$ac_top_build_prefix$srcdir
31765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31777 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31778 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31782 cat >>$CONFIG_STATUS <<\_ACEOF
31783 # If the template does not know about datarootdir, expand it.
31784 # FIXME: This hack should be removed a few years after 2.60.
31785 ac_datarootdir_hack=; ac_datarootdir_seen=
31787 case `sed -n '/datarootdir/ {
31796 ' $ac_file_inputs` in
31797 *datarootdir*) ac_datarootdir_seen=yes;;
31798 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31799 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31800 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31802 cat >>$CONFIG_STATUS <<_ACEOF
31803 ac_datarootdir_hack='
31804 s&@datadir@&$datadir&g
31805 s&@docdir@&$docdir&g
31806 s&@infodir@&$infodir&g
31807 s&@localedir@&$localedir&g
31808 s&@mandir@&$mandir&g
31809 s&\\\${datarootdir}&$datarootdir&g' ;;
31813 # Neutralize VPATH when `$srcdir' = `.'.
31814 # Shell code in configure.ac might set extrasub.
31815 # FIXME: do we really want to maintain this feature?
31816 cat >>$CONFIG_STATUS <<_ACEOF
31820 cat >>$CONFIG_STATUS <<\_ACEOF
31822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31823 s&@configure_input@&$configure_input&;t t
31824 s&@top_builddir@&$ac_top_builddir_sub&;t t
31825 s&@srcdir@&$ac_srcdir&;t t
31826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31827 s&@top_srcdir@&$ac_top_srcdir&;t t
31828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31829 s&@builddir@&$ac_builddir&;t t
31830 s&@abs_builddir@&$ac_abs_builddir&;t t
31831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31832 s&@INSTALL@&$ac_INSTALL&;t t
31833 $ac_datarootdir_hack
31834 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31836 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31837 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31838 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31839 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31840 which seems to be undefined. Please make sure it is defined." >&5
31841 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31842 which seems to be undefined. Please make sure it is defined." >&2;}
31846 -) cat "$tmp/out"; rm -f "$tmp/out";;
31847 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31856 # Transform confdefs.h into a sed script `conftest.defines', that
31857 # substitutes the proper values into config.h.in to produce config.h.
31858 rm -f conftest.defines conftest.tail
31859 # First, append a space to every undef/define line, to ease matching.
31860 echo 's/$/ /' >conftest.defines
31861 # Then, protect against being on the right side of a sed subst, or in
31862 # an unquoted here document, in config.status. If some macros were
31863 # called several times there might be several #defines for the same
31864 # symbol, which is useless. But do not sort them, since the last
31865 # AC_DEFINE must be honored.
31866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31867 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31868 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31869 # PARAMS is the parameter list in the macro definition--in most cases, it's
31870 # just an empty string.
31871 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31872 ac_dB='\\)[ (].*,\\1define\\2'
31880 s/^[ ]*#[ ]*define[ ][ ]*//
31885 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31886 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31887 ' >>conftest.defines
31889 # Remove the space that was appended to ease matching.
31890 # Then replace #undef with comments. This is necessary, for
31891 # example, in the case of _POSIX_SOURCE, which is predefined and required
31892 # on some systems where configure will not decide to define it.
31893 # (The regexp can be short, since the line contains either #define or #undef.)
31895 s,^[ #]*u.*,/* & */,' >>conftest.defines
31897 # Break up conftest.defines:
31898 ac_max_sed_lines=50
31900 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31901 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31902 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31904 ac_in='$ac_file_inputs'
31905 ac_out='"$tmp/out1"'
31906 ac_nxt='"$tmp/out2"'
31910 # Write a here document:
31911 cat >>$CONFIG_STATUS <<_ACEOF
31912 # First, check the format of the line:
31913 cat >"\$tmp/defines.sed" <<\\CEOF
31914 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31915 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31919 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31921 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31922 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31923 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31924 grep . conftest.tail >/dev/null || break
31925 rm -f conftest.defines
31926 mv conftest.tail conftest.defines
31928 rm -f conftest.defines conftest.tail
31930 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31931 cat >>$CONFIG_STATUS <<\_ACEOF
31932 if test x"$ac_file" != x-; then
31933 echo "/* $configure_input */" >"$tmp/config.h"
31934 cat "$ac_result" >>"$tmp/config.h"
31935 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31936 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31937 echo "$as_me: $ac_file is unchanged" >&6;}
31940 mv "$tmp/config.h" $ac_file
31943 echo "/* $configure_input */"
31949 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31950 echo "$as_me: executing $ac_file commands" >&6;}
31955 case $ac_file$ac_mode in
31957 for ac_file in $CONFIG_FILES; do
31958 # Support "outfile[:infile[:infile...]]"
31960 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31962 # PO directories have a Makefile.in generated from Makefile.in.in.
31963 case "$ac_file" in */Makefile.in)
31964 # Adjust a relative srcdir.
31965 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31966 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31967 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31968 # In autoconf-2.13 it is called $ac_given_srcdir.
31969 # In autoconf-2.50 it is called $srcdir.
31970 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31971 case "$ac_given_srcdir" in
31972 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31973 /*) top_srcdir="$ac_given_srcdir" ;;
31974 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31976 # Treat a directory as a PO directory if and only if it has a
31977 # POTFILES.in file. This allows packages to have multiple PO
31978 # directories under different names or in different locations.
31979 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31980 rm -f "$ac_dir/POTFILES"
31981 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31982 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31983 POMAKEFILEDEPS="POTFILES.in"
31984 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31985 # on $ac_dir but don't depend on user-specified configuration
31987 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31988 # The LINGUAS file contains the set of available languages.
31989 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31990 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31992 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31993 # Hide the ALL_LINGUAS assigment from automake.
31994 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31995 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31997 # The set of available languages was given in configure.in.
31998 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32001 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32002 # Compute UPDATEPOFILES
32003 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32004 # Compute DUMMYPOFILES
32005 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32007 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32008 case "$ac_given_srcdir" in
32010 *) srcdirpre='$(srcdir)/' ;;
32016 for lang in $ALL_LINGUAS; do
32017 POFILES="$POFILES $srcdirpre$lang.po"
32018 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32019 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32020 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32022 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32023 # environment variable.
32025 if test -n "$ALL_LINGUAS"; then
32026 for presentlang in $ALL_LINGUAS; do
32028 if test "%UNSET%" != "$LINGUAS"; then
32029 desiredlanguages="$LINGUAS"
32031 desiredlanguages="$ALL_LINGUAS"
32033 for desiredlang in $desiredlanguages; do
32034 # Use the presentlang catalog if desiredlang is
32035 # a. equal to presentlang, or
32036 # b. a variant of presentlang (because in this case,
32037 # presentlang can be used as a fallback for messages
32038 # which are not translated in the desiredlang catalog).
32039 case "$desiredlang" in
32040 "$presentlang"*) useit=yes;;
32043 if test $useit = yes; then
32044 INST_LINGUAS="$INST_LINGUAS $presentlang"
32049 if test -n "$INST_LINGUAS"; then
32050 for lang in $INST_LINGUAS; do
32051 CATALOGS="$CATALOGS $lang.gmo"
32054 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32055 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"
32056 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32057 if test -f "$f"; then
32059 *.orig | *.bak | *~) ;;
32060 *) cat "$f" >> "$ac_dir/Makefile" ;;
32075 { (exit 0); exit 0; }
32077 chmod +x $CONFIG_STATUS
32078 ac_clean_files=$ac_clean_files_save
32081 # configure is writing to config.log, and then calls config.status.
32082 # config.status does its own redirection, appending to config.log.
32083 # Unfortunately, on DOS this fails, as config.log is still kept open
32084 # by configure, so config.status won't be able to write to it; its
32085 # output is simply discarded. So we exec the FD to /dev/null,
32086 # effectively closing config.log, so it can be properly (re)opened and
32087 # appended to by config.status. When coming back to configure, we
32088 # need to make the FD available again.
32089 if test "$no_create" != yes; then
32091 ac_config_status_args=
32092 test "$silent" = yes &&
32093 ac_config_status_args="$ac_config_status_args --quiet"
32095 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32098 # would make configure fail if this is the last instruction.
32099 $ac_cs_success || { (exit 1); exit 1; }
32103 if test "${support_bat}" = "yes" ; then
32104 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32105 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32111 if test "x$QMAKEQT4" != "xnone"; then
32116 chmod 755 install_conf_file build-depkgs-qt-console
32117 echo "Creating bat Makefile"
32123 # configure and prepare libtokyodbm for bacula
32124 pushd src/lib/tokyocabinet > /dev/null
32126 if test x$largefile_support = xyes; then
32127 tcdbm_opt=--enable-off64
32129 ./configure $tcdbm_opt
32131 # need tokyo header files for "make depend"
32132 cp src/lib/tokyocabinet/t*.h src/lib
32134 echo "Doing make of dependencies"
32135 ${MAKE:-make} depend
32138 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32139 chmod 755 dvd-handler dvd-simulator
32140 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32144 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32145 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
32149 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32150 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32152 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32153 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32155 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32156 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32158 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32159 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32161 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32162 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32164 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32165 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32167 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32168 chmod 755 $c/sqlite
32171 chmod 755 src/win32/build-depkgs-mingw32
32175 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32176 largefile_support="yes"
32180 # A whole lot of hand springs to get the compiler version.
32181 # This is because gcc changed the output in version 3.0
32183 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32184 if test "x${CCVERSION}" = "x" ; then
32185 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32187 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32188 if test x"${CXXVERSION}" = x ; then
32189 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32192 if test "x${subsysdir}" = "x${sbindir}" ; then
32195 echo "You have set --sbindir and --with-subsys-dir"
32196 echo " both equal to: ${subsysdir} "
32197 echo " This is not permitted. Please reconfigure."
32199 echo "Aborting configuration ..."
32205 if test "x${db_type}" = "xInternal" ; then
32208 echo "You have not specified either --enable-client-only or one of the"
32209 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32210 echo " This is not permitted. Please reconfigure."
32212 echo "Aborting the configuration ..."
32219 Configuration on `date`:
32221 Host: $host -- ${DISTNAME} ${DISTVER}
32222 Bacula version: ${VERSION} (${DATE})
32223 Source code location: ${srcdir}
32224 Install binaries: ${sbindir}
32225 Install config files: ${sysconfdir}
32226 Scripts directory: ${scriptdir}
32227 Archive directory: ${archivedir}
32228 Working directory: ${working_dir}
32229 PID directory: ${piddir}
32230 Subsys directory: ${subsysdir}
32231 Man directory: ${mandir}
32232 Data directory: ${datadir}
32233 C Compiler: ${CC} ${CCVERSION}
32234 C++ Compiler: ${CXX} ${CXXVERSION}
32235 Compiler flags: ${WCFLAGS} ${CFLAGS}
32236 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32238 Statically Linked Tools: ${support_static_tools}
32239 Statically Linked FD: ${support_static_fd}
32240 Statically Linked SD: ${support_static_sd}
32241 Statically Linked DIR: ${support_static_dir}
32242 Statically Linked CONS: ${support_static_cons}
32243 Database type: ${db_type}
32244 Database lib: ${DB_LIBS}
32245 Database name: ${db_name}
32246 Database user: ${db_user}
32248 Job Output Email: ${job_email}
32249 Traceback Email: ${dump_email}
32250 SMTP Host Address: ${smtp_host}
32252 Director Port: ${dir_port}
32253 File daemon Port: ${fd_port}
32254 Storage daemon Port: ${sd_port}
32256 Director User: ${dir_user}
32257 Director Group: ${dir_group}
32258 Storage Daemon User: ${sd_user}
32259 Storage DaemonGroup: ${sd_group}
32260 File Daemon User: ${fd_user}
32261 File Daemon Group: ${fd_group}
32263 SQL binaries Directory ${SQL_BINDIR}
32265 Large file support: $largefile_support
32266 Bacula conio support: ${got_conio} ${CONS_LIBS}
32267 readline support: ${got_readline} ${PRTREADLINE_SRC}
32268 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32269 TLS support: ${support_tls}
32270 Encryption support: ${support_crypto}
32271 ZLIB support: ${have_zlib}
32272 enable-smartalloc: ${support_smartalloc}
32273 bat support: ${support_bat} ${QWT_LDFLAGS}
32274 enable-gnome: ${support_gnome} ${gnome_version}
32275 enable-bwx-console: ${support_wx_console} ${wx_version}
32276 enable-tray-monitor: ${support_tray_monitor}
32277 client-only: ${build_client_only}
32278 build-dird: ${build_dird}
32279 build-stored: ${build_stored}
32280 ACL support: ${have_acl}
32281 Python support: ${support_python} ${PYTHON_LIBS}
32282 Batch insert enabled: ${support_batch_insert}